Minor Changes
-
c9dd0f0: Replace
specs/tokens.jsonandspecs/semantic-tokens.jsonwith onespecs/design-system.jsoncovering
every token, condition and theme. It records what each token resolves through, so tools can answer what a semantic
token points at and what breaks when a primitive changes. Read it withparseDesignSystemand query it with
indexDesignSystemfrom@pandacss/compiler-shared. -
006e5c0: Let a component's
cssprop accept some properties but not others:import type { SystemStyleObjectWith } from '../styled-system/types' interface ButtonProps { css?: SystemStyleObjectWith<'margin' | 'marginTop' | 'width'> }
Conditions and nested selectors still work inside it.
SystemStyleObjectWithout<K>is the inverse. -
4db4f75:
panda lib --specnow records the spec inpanda/lib.jsonasspec, relative to the manifest likepreset
andbuildInfo. Tooling that reads the manifest can tell whether a package shipped one instead of trying the path.A
--specpath that package.jsonfileswould not publish is left out with adesign_system_spec_not_publishable
warning, so the manifest never points at a file that did not ship. -
8bbb6bb: The design system spec now describes more than tokens:
recipes,slotRecipesandpatterns, keyed by name, with variants, defaults and resolved property kindskeyframes,colorPalettes,textStyles,layerStylesandanimationStylesoriginalValueon tokens: the value before reference expansion or derivation
Empty tables are left out. The reader gains
recipes(),slotRecipes(),patterns(),keyframes(),
colorPalettes()andcomposition(kind).
Patch Changes
-
7e328bd: Fix
forceImportExtensionemitting declaration files that TypeScript rejects. Generated.d.tsre-exports
now point at the runtime module (export * from './css.js') instead of the declaration file, which no longer fails
tscwith TS2846.Also fix
jsx/index.d.tsreporting a duplicateUnstyledPropsexport (TS2308) — the recipe context artifacts now
share the declaration intypes/jsxinstead of each redeclaring it. -
c9dd0f0: Fix negative spacing tokens for names containing a dot.
spacing.0.5now generatesspacing.-0.5instead of
spacing.0.-5, somt: '-0.5'resolves. Spacing tokens whose value is zero in any unit (0,0px,0%) no longer
get a meaningless negative twin. -
c5c4e2b: Keep the
node:prefix on built-in imports in the published output. tsup was stripping it, so Deno refused
to load Panda's files directly withImport "child_process" not a dependency. -
c9dd0f0: Rename the compiler binding's
token_dictionary()totokenDictionary(), the only snake_case name on either
binding. -
Updated dependencies [c9dd0f0]
-
Updated dependencies [048c70c]
-
Updated dependencies [4db4f75]
-
Updated dependencies [8bbb6bb]
-
Updated dependencies [c014979]
- @pandacss/compiler-shared@2.0.0-beta.18
- @pandacss/types@2.0.0-beta.18