@pallas-ui/style-context 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/index.js +26 -22
  2. package/dist/index.mjs +26 -22
  3. package/package.json +4 -4
  4. package/styled-system/css/conditions.mjs +1 -1
  5. package/styled-system/css/css.mjs +1 -1
  6. package/styled-system/css/sva.mjs +9 -4
  7. package/styled-system/helpers.mjs +12 -20
  8. package/styled-system/jsx/create-style-context.d.ts +54 -0
  9. package/styled-system/jsx/create-style-context.mjs +118 -0
  10. package/styled-system/jsx/factory.mjs +14 -5
  11. package/styled-system/jsx/index.d.ts +1 -0
  12. package/styled-system/jsx/index.mjs +1 -0
  13. package/styled-system/jsx/is-valid-prop.mjs +2 -2
  14. package/styled-system/patterns/aspect-ratio.d.ts +0 -1
  15. package/styled-system/patterns/bleed.d.ts +0 -1
  16. package/styled-system/patterns/box.d.ts +0 -1
  17. package/styled-system/patterns/center.d.ts +0 -1
  18. package/styled-system/patterns/circle.d.ts +0 -1
  19. package/styled-system/patterns/container.d.ts +0 -1
  20. package/styled-system/patterns/cq.d.ts +0 -1
  21. package/styled-system/patterns/divider.d.ts +0 -1
  22. package/styled-system/patterns/flex.d.ts +0 -1
  23. package/styled-system/patterns/float.d.ts +0 -1
  24. package/styled-system/patterns/grid-item.d.ts +0 -1
  25. package/styled-system/patterns/grid.d.ts +0 -1
  26. package/styled-system/patterns/grid.mjs +1 -1
  27. package/styled-system/patterns/hstack.d.ts +0 -1
  28. package/styled-system/patterns/hstack.mjs +1 -1
  29. package/styled-system/patterns/link-overlay.d.ts +0 -1
  30. package/styled-system/patterns/spacer.d.ts +0 -1
  31. package/styled-system/patterns/spacer.mjs +6 -2
  32. package/styled-system/patterns/square.d.ts +0 -1
  33. package/styled-system/patterns/stack.d.ts +0 -1
  34. package/styled-system/patterns/stack.mjs +1 -1
  35. package/styled-system/patterns/visually-hidden.d.ts +0 -1
  36. package/styled-system/patterns/vstack.d.ts +0 -1
  37. package/styled-system/patterns/vstack.mjs +1 -1
  38. package/styled-system/patterns/wrap.d.ts +0 -1
  39. package/styled-system/patterns/wrap.mjs +1 -1
  40. package/styled-system/tokens/index.mjs +43 -7
  41. package/styled-system/tokens/tokens.d.ts +5 -5
  42. package/styled-system/types/composition.d.ts +86 -23
  43. package/styled-system/types/conditions.d.ts +49 -13
  44. package/styled-system/types/csstype.d.ts +6405 -5133
  45. package/styled-system/types/jsx.d.ts +27 -10
  46. package/styled-system/types/pattern.d.ts +4 -4
  47. package/styled-system/types/prop-type.d.ts +11 -1
  48. package/styled-system/types/style-props.d.ts +2851 -2230
  49. package/styled-system/types/system-types.d.ts +44 -2
@@ -3,7 +3,7 @@ import { css } from '../css/index.mjs';
3
3
 
4
4
  const wrapConfig = {
5
5
  transform(props) {
6
- const { columnGap, rowGap, gap = columnGap || rowGap ? void 0 : "10px", align, justify, ...rest } = props;
6
+ const { columnGap, rowGap, gap = columnGap || rowGap ? void 0 : "8px", align, justify, ...rest } = props;
7
7
  return {
8
8
  display: "flex",
9
9
  flexWrap: "wrap",
@@ -263,6 +263,10 @@ const tokens = {
263
263
  "value": "8rem",
264
264
  "variable": "var(--font-sizes-9xl)"
265
265
  },
266
+ "shadows.2xs": {
267
+ "value": "0 1px rgb(0 0 0 / 0.05)",
268
+ "variable": "var(--shadows-2xs)"
269
+ },
266
270
  "shadows.xs": {
267
271
  "value": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
268
272
  "variable": "var(--shadows-xs)"
@@ -287,9 +291,17 @@ const tokens = {
287
291
  "value": "0 25px 50px -12px rgb(0 0 0 / 0.25)",
288
292
  "variable": "var(--shadows-2xl)"
289
293
  },
290
- "shadows.inner": {
291
- "value": "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",
292
- "variable": "var(--shadows-inner)"
294
+ "shadows.inset-2xs": {
295
+ "value": "inset 0 1px rgb(0 0 0 / 0.05)",
296
+ "variable": "var(--shadows-inset-2xs)"
297
+ },
298
+ "shadows.inset-xs": {
299
+ "value": "inset 0 1px 1px rgb(0 0 0 / 0.05)",
300
+ "variable": "var(--shadows-inset-xs)"
301
+ },
302
+ "shadows.inset-sm": {
303
+ "value": "inset 0 2px 4px rgb(0 0 0 / 0.05)",
304
+ "variable": "var(--shadows-inset-sm)"
293
305
  },
294
306
  "colors.current": {
295
307
  "value": "currentColor",
@@ -1275,13 +1287,13 @@ const tokens = {
1275
1287
  "value": "#020617",
1276
1288
  "variable": "var(--colors-slate-950)"
1277
1289
  },
1278
- "blurs.sm": {
1290
+ "blurs.xs": {
1279
1291
  "value": "4px",
1280
- "variable": "var(--blurs-sm)"
1292
+ "variable": "var(--blurs-xs)"
1281
1293
  },
1282
- "blurs.base": {
1294
+ "blurs.sm": {
1283
1295
  "value": "8px",
1284
- "variable": "var(--blurs-base)"
1296
+ "variable": "var(--blurs-sm)"
1285
1297
  },
1286
1298
  "blurs.md": {
1287
1299
  "value": "12px",
@@ -1439,6 +1451,14 @@ const tokens = {
1439
1451
  "value": "0.875rem",
1440
1452
  "variable": "var(--spacing-3\\.5)"
1441
1453
  },
1454
+ "spacing.4.5": {
1455
+ "value": "1.125rem",
1456
+ "variable": "var(--spacing-4\\.5)"
1457
+ },
1458
+ "spacing.5.5": {
1459
+ "value": "1.375rem",
1460
+ "variable": "var(--spacing-5\\.5)"
1461
+ },
1442
1462
  "sizes.0": {
1443
1463
  "value": "0rem",
1444
1464
  "variable": "var(--sizes-0)"
@@ -1575,6 +1595,14 @@ const tokens = {
1575
1595
  "value": "0.875rem",
1576
1596
  "variable": "var(--sizes-3\\.5)"
1577
1597
  },
1598
+ "sizes.4.5": {
1599
+ "value": "1.125rem",
1600
+ "variable": "var(--sizes-4\\.5)"
1601
+ },
1602
+ "sizes.5.5": {
1603
+ "value": "1.375rem",
1604
+ "variable": "var(--sizes-5\\.5)"
1605
+ },
1578
1606
  "sizes.xs": {
1579
1607
  "value": "20rem",
1580
1608
  "variable": "var(--sizes-xs)"
@@ -1831,6 +1859,14 @@ const tokens = {
1831
1859
  "value": "calc(var(--spacing-3\\.5) * -1)",
1832
1860
  "variable": "var(--spacing-3\\.5)"
1833
1861
  },
1862
+ "spacing.-4.5": {
1863
+ "value": "calc(var(--spacing-4\\.5) * -1)",
1864
+ "variable": "var(--spacing-4\\.5)"
1865
+ },
1866
+ "spacing.-5.5": {
1867
+ "value": "calc(var(--spacing-5\\.5) * -1)",
1868
+ "variable": "var(--spacing-5\\.5)"
1869
+ },
1834
1870
  "colors.colorPalette": {
1835
1871
  "value": "var(--colors-color-palette)",
1836
1872
  "variable": "var(--colors-color-palette)"
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable */
2
- export type Token = "aspectRatios.square" | "aspectRatios.landscape" | "aspectRatios.portrait" | "aspectRatios.wide" | "aspectRatios.ultrawide" | "aspectRatios.golden" | "borders.none" | "easings.default" | "easings.linear" | "easings.in" | "easings.out" | "easings.in-out" | "durations.fastest" | "durations.faster" | "durations.fast" | "durations.normal" | "durations.slow" | "durations.slower" | "durations.slowest" | "radii.xs" | "radii.sm" | "radii.md" | "radii.lg" | "radii.xl" | "radii.2xl" | "radii.3xl" | "radii.4xl" | "radii.full" | "fontWeights.thin" | "fontWeights.extralight" | "fontWeights.light" | "fontWeights.normal" | "fontWeights.medium" | "fontWeights.semibold" | "fontWeights.bold" | "fontWeights.extrabold" | "fontWeights.black" | "lineHeights.none" | "lineHeights.tight" | "lineHeights.snug" | "lineHeights.normal" | "lineHeights.relaxed" | "lineHeights.loose" | "fonts.sans" | "fonts.serif" | "fonts.mono" | "letterSpacings.tighter" | "letterSpacings.tight" | "letterSpacings.normal" | "letterSpacings.wide" | "letterSpacings.wider" | "letterSpacings.widest" | "fontSizes.2xs" | "fontSizes.xs" | "fontSizes.sm" | "fontSizes.md" | "fontSizes.lg" | "fontSizes.xl" | "fontSizes.2xl" | "fontSizes.3xl" | "fontSizes.4xl" | "fontSizes.5xl" | "fontSizes.6xl" | "fontSizes.7xl" | "fontSizes.8xl" | "fontSizes.9xl" | "shadows.xs" | "shadows.sm" | "shadows.md" | "shadows.lg" | "shadows.xl" | "shadows.2xl" | "shadows.inner" | "colors.current" | "colors.black" | "colors.white" | "colors.transparent" | "colors.rose.50" | "colors.rose.100" | "colors.rose.200" | "colors.rose.300" | "colors.rose.400" | "colors.rose.500" | "colors.rose.600" | "colors.rose.700" | "colors.rose.800" | "colors.rose.900" | "colors.rose.950" | "colors.pink.50" | "colors.pink.100" | "colors.pink.200" | "colors.pink.300" | "colors.pink.400" | "colors.pink.500" | "colors.pink.600" | "colors.pink.700" | "colors.pink.800" | "colors.pink.900" | "colors.pink.950" | "colors.fuchsia.50" | "colors.fuchsia.100" | "colors.fuchsia.200" | "colors.fuchsia.300" | "colors.fuchsia.400" | "colors.fuchsia.500" | "colors.fuchsia.600" | "colors.fuchsia.700" | "colors.fuchsia.800" | "colors.fuchsia.900" | "colors.fuchsia.950" | "colors.purple.50" | "colors.purple.100" | "colors.purple.200" | "colors.purple.300" | "colors.purple.400" | "colors.purple.500" | "colors.purple.600" | "colors.purple.700" | "colors.purple.800" | "colors.purple.900" | "colors.purple.950" | "colors.violet.50" | "colors.violet.100" | "colors.violet.200" | "colors.violet.300" | "colors.violet.400" | "colors.violet.500" | "colors.violet.600" | "colors.violet.700" | "colors.violet.800" | "colors.violet.900" | "colors.violet.950" | "colors.indigo.50" | "colors.indigo.100" | "colors.indigo.200" | "colors.indigo.300" | "colors.indigo.400" | "colors.indigo.500" | "colors.indigo.600" | "colors.indigo.700" | "colors.indigo.800" | "colors.indigo.900" | "colors.indigo.950" | "colors.blue.50" | "colors.blue.100" | "colors.blue.200" | "colors.blue.300" | "colors.blue.400" | "colors.blue.500" | "colors.blue.600" | "colors.blue.700" | "colors.blue.800" | "colors.blue.900" | "colors.blue.950" | "colors.sky.50" | "colors.sky.100" | "colors.sky.200" | "colors.sky.300" | "colors.sky.400" | "colors.sky.500" | "colors.sky.600" | "colors.sky.700" | "colors.sky.800" | "colors.sky.900" | "colors.sky.950" | "colors.cyan.50" | "colors.cyan.100" | "colors.cyan.200" | "colors.cyan.300" | "colors.cyan.400" | "colors.cyan.500" | "colors.cyan.600" | "colors.cyan.700" | "colors.cyan.800" | "colors.cyan.900" | "colors.cyan.950" | "colors.teal.50" | "colors.teal.100" | "colors.teal.200" | "colors.teal.300" | "colors.teal.400" | "colors.teal.500" | "colors.teal.600" | "colors.teal.700" | "colors.teal.800" | "colors.teal.900" | "colors.teal.950" | "colors.emerald.50" | "colors.emerald.100" | "colors.emerald.200" | "colors.emerald.300" | "colors.emerald.400" | "colors.emerald.500" | "colors.emerald.600" | "colors.emerald.700" | "colors.emerald.800" | "colors.emerald.900" | "colors.emerald.950" | "colors.green.50" | "colors.green.100" | "colors.green.200" | "colors.green.300" | "colors.green.400" | "colors.green.500" | "colors.green.600" | "colors.green.700" | "colors.green.800" | "colors.green.900" | "colors.green.950" | "colors.lime.50" | "colors.lime.100" | "colors.lime.200" | "colors.lime.300" | "colors.lime.400" | "colors.lime.500" | "colors.lime.600" | "colors.lime.700" | "colors.lime.800" | "colors.lime.900" | "colors.lime.950" | "colors.yellow.50" | "colors.yellow.100" | "colors.yellow.200" | "colors.yellow.300" | "colors.yellow.400" | "colors.yellow.500" | "colors.yellow.600" | "colors.yellow.700" | "colors.yellow.800" | "colors.yellow.900" | "colors.yellow.950" | "colors.amber.50" | "colors.amber.100" | "colors.amber.200" | "colors.amber.300" | "colors.amber.400" | "colors.amber.500" | "colors.amber.600" | "colors.amber.700" | "colors.amber.800" | "colors.amber.900" | "colors.amber.950" | "colors.orange.50" | "colors.orange.100" | "colors.orange.200" | "colors.orange.300" | "colors.orange.400" | "colors.orange.500" | "colors.orange.600" | "colors.orange.700" | "colors.orange.800" | "colors.orange.900" | "colors.orange.950" | "colors.red.50" | "colors.red.100" | "colors.red.200" | "colors.red.300" | "colors.red.400" | "colors.red.500" | "colors.red.600" | "colors.red.700" | "colors.red.800" | "colors.red.900" | "colors.red.950" | "colors.neutral.50" | "colors.neutral.100" | "colors.neutral.200" | "colors.neutral.300" | "colors.neutral.400" | "colors.neutral.500" | "colors.neutral.600" | "colors.neutral.700" | "colors.neutral.800" | "colors.neutral.900" | "colors.neutral.950" | "colors.stone.50" | "colors.stone.100" | "colors.stone.200" | "colors.stone.300" | "colors.stone.400" | "colors.stone.500" | "colors.stone.600" | "colors.stone.700" | "colors.stone.800" | "colors.stone.900" | "colors.stone.950" | "colors.zinc.50" | "colors.zinc.100" | "colors.zinc.200" | "colors.zinc.300" | "colors.zinc.400" | "colors.zinc.500" | "colors.zinc.600" | "colors.zinc.700" | "colors.zinc.800" | "colors.zinc.900" | "colors.zinc.950" | "colors.gray.50" | "colors.gray.100" | "colors.gray.200" | "colors.gray.300" | "colors.gray.400" | "colors.gray.500" | "colors.gray.600" | "colors.gray.700" | "colors.gray.800" | "colors.gray.900" | "colors.gray.950" | "colors.slate.50" | "colors.slate.100" | "colors.slate.200" | "colors.slate.300" | "colors.slate.400" | "colors.slate.500" | "colors.slate.600" | "colors.slate.700" | "colors.slate.800" | "colors.slate.900" | "colors.slate.950" | "blurs.sm" | "blurs.base" | "blurs.md" | "blurs.lg" | "blurs.xl" | "blurs.2xl" | "blurs.3xl" | "spacing.0" | "spacing.1" | "spacing.2" | "spacing.3" | "spacing.4" | "spacing.5" | "spacing.6" | "spacing.7" | "spacing.8" | "spacing.9" | "spacing.10" | "spacing.11" | "spacing.12" | "spacing.14" | "spacing.16" | "spacing.20" | "spacing.24" | "spacing.28" | "spacing.32" | "spacing.36" | "spacing.40" | "spacing.44" | "spacing.48" | "spacing.52" | "spacing.56" | "spacing.60" | "spacing.64" | "spacing.72" | "spacing.80" | "spacing.96" | "spacing.0.5" | "spacing.1.5" | "spacing.2.5" | "spacing.3.5" | "sizes.0" | "sizes.1" | "sizes.2" | "sizes.3" | "sizes.4" | "sizes.5" | "sizes.6" | "sizes.7" | "sizes.8" | "sizes.9" | "sizes.10" | "sizes.11" | "sizes.12" | "sizes.14" | "sizes.16" | "sizes.20" | "sizes.24" | "sizes.28" | "sizes.32" | "sizes.36" | "sizes.40" | "sizes.44" | "sizes.48" | "sizes.52" | "sizes.56" | "sizes.60" | "sizes.64" | "sizes.72" | "sizes.80" | "sizes.96" | "sizes.0.5" | "sizes.1.5" | "sizes.2.5" | "sizes.3.5" | "sizes.xs" | "sizes.sm" | "sizes.md" | "sizes.lg" | "sizes.xl" | "sizes.2xl" | "sizes.3xl" | "sizes.4xl" | "sizes.5xl" | "sizes.6xl" | "sizes.7xl" | "sizes.8xl" | "sizes.prose" | "sizes.full" | "sizes.min" | "sizes.max" | "sizes.fit" | "sizes.breakpoint-sm" | "sizes.breakpoint-md" | "sizes.breakpoint-lg" | "sizes.breakpoint-xl" | "sizes.breakpoint-2xl" | "animations.spin" | "animations.ping" | "animations.pulse" | "animations.bounce" | "breakpoints.sm" | "breakpoints.md" | "breakpoints.lg" | "breakpoints.xl" | "breakpoints.2xl" | "spacing.-1" | "spacing.-2" | "spacing.-3" | "spacing.-4" | "spacing.-5" | "spacing.-6" | "spacing.-7" | "spacing.-8" | "spacing.-9" | "spacing.-10" | "spacing.-11" | "spacing.-12" | "spacing.-14" | "spacing.-16" | "spacing.-20" | "spacing.-24" | "spacing.-28" | "spacing.-32" | "spacing.-36" | "spacing.-40" | "spacing.-44" | "spacing.-48" | "spacing.-52" | "spacing.-56" | "spacing.-60" | "spacing.-64" | "spacing.-72" | "spacing.-80" | "spacing.-96" | "spacing.-0.5" | "spacing.-1.5" | "spacing.-2.5" | "spacing.-3.5" | "colors.colorPalette" | "colors.colorPalette.50" | "colors.colorPalette.100" | "colors.colorPalette.200" | "colors.colorPalette.300" | "colors.colorPalette.400" | "colors.colorPalette.500" | "colors.colorPalette.600" | "colors.colorPalette.700" | "colors.colorPalette.800" | "colors.colorPalette.900" | "colors.colorPalette.950"
2
+ export type Token = `aspectRatios.${AspectRatioToken}` | `borders.${BorderToken}` | `easings.${EasingToken}` | `durations.${DurationToken}` | `radii.${RadiusToken}` | `fontWeights.${FontWeightToken}` | `lineHeights.${LineHeightToken}` | `fonts.${FontToken}` | `letterSpacings.${LetterSpacingToken}` | `fontSizes.${FontSizeToken}` | `shadows.${ShadowToken}` | `colors.${ColorToken}` | `blurs.${BlurToken}` | `spacing.${SpacingToken}` | `sizes.${SizeToken}` | `animations.${AnimationToken}` | `breakpoints.${BreakpointToken}`
3
3
 
4
4
  export type ColorPalette = "current" | "black" | "white" | "transparent" | "rose" | "pink" | "fuchsia" | "purple" | "violet" | "indigo" | "blue" | "sky" | "cyan" | "teal" | "emerald" | "green" | "lime" | "yellow" | "amber" | "orange" | "red" | "neutral" | "stone" | "zinc" | "gray" | "slate"
5
5
 
@@ -23,15 +23,15 @@ export type LetterSpacingToken = "tighter" | "tight" | "normal" | "wide" | "wide
23
23
 
24
24
  export type FontSizeToken = "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl"
25
25
 
26
- export type ShadowToken = "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "inner"
26
+ export type ShadowToken = "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "inset-2xs" | "inset-xs" | "inset-sm"
27
27
 
28
28
  export type ColorToken = "current" | "black" | "white" | "transparent" | "rose.50" | "rose.100" | "rose.200" | "rose.300" | "rose.400" | "rose.500" | "rose.600" | "rose.700" | "rose.800" | "rose.900" | "rose.950" | "pink.50" | "pink.100" | "pink.200" | "pink.300" | "pink.400" | "pink.500" | "pink.600" | "pink.700" | "pink.800" | "pink.900" | "pink.950" | "fuchsia.50" | "fuchsia.100" | "fuchsia.200" | "fuchsia.300" | "fuchsia.400" | "fuchsia.500" | "fuchsia.600" | "fuchsia.700" | "fuchsia.800" | "fuchsia.900" | "fuchsia.950" | "purple.50" | "purple.100" | "purple.200" | "purple.300" | "purple.400" | "purple.500" | "purple.600" | "purple.700" | "purple.800" | "purple.900" | "purple.950" | "violet.50" | "violet.100" | "violet.200" | "violet.300" | "violet.400" | "violet.500" | "violet.600" | "violet.700" | "violet.800" | "violet.900" | "violet.950" | "indigo.50" | "indigo.100" | "indigo.200" | "indigo.300" | "indigo.400" | "indigo.500" | "indigo.600" | "indigo.700" | "indigo.800" | "indigo.900" | "indigo.950" | "blue.50" | "blue.100" | "blue.200" | "blue.300" | "blue.400" | "blue.500" | "blue.600" | "blue.700" | "blue.800" | "blue.900" | "blue.950" | "sky.50" | "sky.100" | "sky.200" | "sky.300" | "sky.400" | "sky.500" | "sky.600" | "sky.700" | "sky.800" | "sky.900" | "sky.950" | "cyan.50" | "cyan.100" | "cyan.200" | "cyan.300" | "cyan.400" | "cyan.500" | "cyan.600" | "cyan.700" | "cyan.800" | "cyan.900" | "cyan.950" | "teal.50" | "teal.100" | "teal.200" | "teal.300" | "teal.400" | "teal.500" | "teal.600" | "teal.700" | "teal.800" | "teal.900" | "teal.950" | "emerald.50" | "emerald.100" | "emerald.200" | "emerald.300" | "emerald.400" | "emerald.500" | "emerald.600" | "emerald.700" | "emerald.800" | "emerald.900" | "emerald.950" | "green.50" | "green.100" | "green.200" | "green.300" | "green.400" | "green.500" | "green.600" | "green.700" | "green.800" | "green.900" | "green.950" | "lime.50" | "lime.100" | "lime.200" | "lime.300" | "lime.400" | "lime.500" | "lime.600" | "lime.700" | "lime.800" | "lime.900" | "lime.950" | "yellow.50" | "yellow.100" | "yellow.200" | "yellow.300" | "yellow.400" | "yellow.500" | "yellow.600" | "yellow.700" | "yellow.800" | "yellow.900" | "yellow.950" | "amber.50" | "amber.100" | "amber.200" | "amber.300" | "amber.400" | "amber.500" | "amber.600" | "amber.700" | "amber.800" | "amber.900" | "amber.950" | "orange.50" | "orange.100" | "orange.200" | "orange.300" | "orange.400" | "orange.500" | "orange.600" | "orange.700" | "orange.800" | "orange.900" | "orange.950" | "red.50" | "red.100" | "red.200" | "red.300" | "red.400" | "red.500" | "red.600" | "red.700" | "red.800" | "red.900" | "red.950" | "neutral.50" | "neutral.100" | "neutral.200" | "neutral.300" | "neutral.400" | "neutral.500" | "neutral.600" | "neutral.700" | "neutral.800" | "neutral.900" | "neutral.950" | "stone.50" | "stone.100" | "stone.200" | "stone.300" | "stone.400" | "stone.500" | "stone.600" | "stone.700" | "stone.800" | "stone.900" | "stone.950" | "zinc.50" | "zinc.100" | "zinc.200" | "zinc.300" | "zinc.400" | "zinc.500" | "zinc.600" | "zinc.700" | "zinc.800" | "zinc.900" | "zinc.950" | "gray.50" | "gray.100" | "gray.200" | "gray.300" | "gray.400" | "gray.500" | "gray.600" | "gray.700" | "gray.800" | "gray.900" | "gray.950" | "slate.50" | "slate.100" | "slate.200" | "slate.300" | "slate.400" | "slate.500" | "slate.600" | "slate.700" | "slate.800" | "slate.900" | "slate.950" | "colorPalette" | "colorPalette.50" | "colorPalette.100" | "colorPalette.200" | "colorPalette.300" | "colorPalette.400" | "colorPalette.500" | "colorPalette.600" | "colorPalette.700" | "colorPalette.800" | "colorPalette.900" | "colorPalette.950"
29
29
 
30
- export type BlurToken = "sm" | "base" | "md" | "lg" | "xl" | "2xl" | "3xl"
30
+ export type BlurToken = "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl"
31
31
 
32
- export type SpacingToken = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | "0.5" | "1.5" | "2.5" | "3.5" | "-1" | "-2" | "-3" | "-4" | "-5" | "-6" | "-7" | "-8" | "-9" | "-10" | "-11" | "-12" | "-14" | "-16" | "-20" | "-24" | "-28" | "-32" | "-36" | "-40" | "-44" | "-48" | "-52" | "-56" | "-60" | "-64" | "-72" | "-80" | "-96" | "-0.5" | "-1.5" | "-2.5" | "-3.5"
32
+ export type SpacingToken = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "-1" | "-2" | "-3" | "-4" | "-5" | "-6" | "-7" | "-8" | "-9" | "-10" | "-11" | "-12" | "-14" | "-16" | "-20" | "-24" | "-28" | "-32" | "-36" | "-40" | "-44" | "-48" | "-52" | "-56" | "-60" | "-64" | "-72" | "-80" | "-96" | "-0.5" | "-1.5" | "-2.5" | "-3.5" | "-4.5" | "-5.5"
33
33
 
34
- export type SizeToken = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | "0.5" | "1.5" | "2.5" | "3.5" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "prose" | "full" | "min" | "max" | "fit" | "breakpoint-sm" | "breakpoint-md" | "breakpoint-lg" | "breakpoint-xl" | "breakpoint-2xl"
34
+ export type SizeToken = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "prose" | "full" | "min" | "max" | "fit" | "breakpoint-sm" | "breakpoint-md" | "breakpoint-lg" | "breakpoint-xl" | "breakpoint-2xl"
35
35
 
36
36
  export type AnimationToken = "spin" | "ping" | "pulse" | "bounce"
37
37
 
@@ -15,6 +15,8 @@ interface Recursive<T> {
15
15
  * -----------------------------------------------------------------------------*/
16
16
 
17
17
  type TextStyleProperty =
18
+ | 'color'
19
+ | 'direction'
18
20
  | 'font'
19
21
  | 'fontFamily'
20
22
  | 'fontFeatureSettings'
@@ -35,6 +37,7 @@ type TextStyleProperty =
35
37
  | 'fontVariantPosition'
36
38
  | 'fontVariationSettings'
37
39
  | 'fontWeight'
40
+ | 'hangingPunctuation'
38
41
  | 'hypens'
39
42
  | 'hyphenateCharacter'
40
43
  | 'hyphenateLimitChars'
@@ -43,11 +46,20 @@ type TextStyleProperty =
43
46
  | 'lineHeight'
44
47
  | 'quotes'
45
48
  | 'overflowWrap'
49
+ | 'tabSize'
50
+ | 'textAlign'
51
+ | 'textAlignLast'
52
+ | 'textBox'
53
+ | 'textBoxEdge'
54
+ | 'textBoxTrim'
46
55
  | 'textCombineUpright'
47
56
  | 'textDecoration'
48
57
  | 'textDecorationColor'
49
58
  | 'textDecorationLine'
59
+ | 'textDecorationSkip'
60
+ | 'textDecorationSkipBox'
50
61
  | 'textDecorationSkipInk'
62
+ | 'textDecorationSkipInset'
51
63
  | 'textDecorationStyle'
52
64
  | 'textDecorationThickness'
53
65
  | 'textEmphasis'
@@ -60,16 +72,21 @@ type TextStyleProperty =
60
72
  | 'textOverflow'
61
73
  | 'textRendering'
62
74
  | 'textShadow'
75
+ | 'textStroke'
76
+ | 'textStrokeColor'
77
+ | 'textStrokeWidth'
63
78
  | 'textTransform'
64
79
  | 'textUnderlineOffset'
65
80
  | 'textUnderlinePosition'
66
81
  | 'textWrap'
67
82
  | 'textWrapMode'
68
83
  | 'textWrapStyle'
84
+ | 'unicodeBidi'
69
85
  | 'verticalAlign'
70
86
  | 'whiteSpace'
71
87
  | 'wordBreak'
72
88
  | 'wordSpacing'
89
+ | 'writingMode'
73
90
 
74
91
  export type TextStyle = CompositionStyleObject<TextStyleProperty>
75
92
 
@@ -79,17 +96,11 @@ export type TextStyles = Recursive<Token<TextStyle>>
79
96
  * Layer styles
80
97
  * -----------------------------------------------------------------------------*/
81
98
 
82
- type Placement =
83
- | 'Top'
84
- | 'Right'
85
- | 'Bottom'
86
- | 'Left'
87
- | 'Inline'
88
- | 'Block'
89
- | 'InlineStart'
90
- | 'InlineEnd'
91
- | 'BlockStart'
92
- | 'BlockEnd'
99
+ type LogicalPlacement = 'Inline' | 'Block' | 'InlineStart' | 'InlineEnd' | 'BlockStart' | 'BlockEnd'
100
+
101
+ type PhysicalPlacement = 'Top' | 'Right' | 'Bottom' | 'Left'
102
+
103
+ type Placement = PhysicalPlacement | LogicalPlacement
93
104
 
94
105
  type Radius =
95
106
  | `Top${'Right' | 'Left'}`
@@ -98,20 +109,80 @@ type Radius =
98
109
  | `End${'Start' | 'End'}`
99
110
 
100
111
  type LayerStyleProperty =
112
+ | 'aspectRatio'
101
113
  | 'background'
102
114
  | 'backgroundColor'
103
115
  | 'backgroundImage'
104
- | 'borderRadius'
105
116
  | 'border'
106
- | 'borderWidth'
107
117
  | 'borderColor'
118
+ | 'borderImage'
119
+ | 'borderImageOutset'
120
+ | 'borderImageRepeat'
121
+ | 'borderImageSlice'
122
+ | 'borderImageSource'
123
+ | 'borderImageWidth'
124
+ | 'borderRadius'
108
125
  | 'borderStyle'
126
+ | 'borderWidth'
127
+ | `border${Placement}`
128
+ | `border${Placement}Color`
129
+ | `border${Placement}Style`
130
+ | `border${Placement}Width`
131
+ | 'borderRadius'
132
+ | `border${Radius}Radius`
109
133
  | 'boxShadow'
134
+ | 'boxShadowColor'
135
+ | 'clipPath'
136
+ | 'color'
137
+ | 'contain'
138
+ | 'content'
139
+ | 'contentVisibility'
140
+ | 'cursor'
141
+ | 'display'
110
142
  | 'filter'
111
143
  | 'backdropFilter'
112
- | 'transform'
113
- | 'color'
144
+ | 'height'
145
+ | 'width'
146
+ | 'minHeight'
147
+ | 'minWidth'
148
+ | 'maxHeight'
149
+ | 'maxWidth'
150
+ | `margin${Placement}`
151
+ | 'inset'
152
+ | `inset${LogicalPlacement}`
153
+ | Lowercase<PhysicalPlacement>
154
+ | 'isolation'
155
+ | 'mask'
156
+ | 'maskClip'
157
+ | 'maskComposite'
158
+ | 'maskImage'
159
+ | 'maskMode'
160
+ | 'maskOrigin'
161
+ | 'maskPosition'
162
+ | 'maskRepeat'
163
+ | 'maskSize'
164
+ | 'mixBlendMode'
165
+ | 'objectFit'
166
+ | 'objectPosition'
114
167
  | 'opacity'
168
+ | 'outline'
169
+ | 'outlineColor'
170
+ | 'outlineOffset'
171
+ | 'outlineStyle'
172
+ | 'outlineWidth'
173
+ | 'overflow'
174
+ | 'overflowX'
175
+ | 'overflowY'
176
+ | 'padding'
177
+ | `padding${Placement}`
178
+ | 'pointerEvents'
179
+ | 'position'
180
+ | 'resize'
181
+ | 'transform'
182
+ | 'transition'
183
+ | 'visibility'
184
+ | 'willChange'
185
+ | 'zIndex'
115
186
  | 'backgroundBlendMode'
116
187
  | 'backgroundAttachment'
117
188
  | 'backgroundClip'
@@ -119,14 +190,6 @@ type LayerStyleProperty =
119
190
  | 'backgroundPosition'
120
191
  | 'backgroundRepeat'
121
192
  | 'backgroundSize'
122
- | `border${Placement}`
123
- | `border${Placement}Width`
124
- | 'borderRadius'
125
- | `border${Radius}Radius`
126
- | `border${Placement}Color`
127
- | `border${Placement}Style`
128
- | 'padding'
129
- | `padding${Placement}`
130
193
 
131
194
  export type LayerStyle = CompositionStyleObject<LayerStyleProperty>
132
195
 
@@ -10,7 +10,7 @@ export interface Conditions {
10
10
  "_focusWithin": string
11
11
  /** `&:is(:focus-visible, [data-focus-visible])` */
12
12
  "_focusVisible": string
13
- /** `&:is(:disabled, [disabled], [data-disabled])` */
13
+ /** `&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])` */
14
14
  "_disabled": string
15
15
  /** `&:is(:active, [data-active])` */
16
16
  "_active": string
@@ -18,7 +18,7 @@ export interface Conditions {
18
18
  "_visited": string
19
19
  /** `&:target` */
20
20
  "_target": string
21
- /** `&:is(:read-only, [data-read-only])` */
21
+ /** `&:is(:read-only, [data-read-only], [aria-readonly=true])` */
22
22
  "_readOnly": string
23
23
  /** `&:read-write` */
24
24
  "_readWrite": string
@@ -32,6 +32,12 @@ export interface Conditions {
32
32
  "_expanded": string
33
33
  /** `&[data-highlighted]` */
34
34
  "_highlighted": string
35
+ /** `&[data-complete]` */
36
+ "_complete": string
37
+ /** `&[data-incomplete]` */
38
+ "_incomplete": string
39
+ /** `&[data-dragging]` */
40
+ "_dragging": string
35
41
  /** `&::before` */
36
42
  "_before": string
37
43
  /** `&::after` */
@@ -40,7 +46,7 @@ export interface Conditions {
40
46
  "_firstLetter": string
41
47
  /** `&::first-line` */
42
48
  "_firstLine": string
43
- /** `&::marker` */
49
+ /** `&::marker, &::-webkit-details-marker` */
44
50
  "_marker": string
45
51
  /** `&::selection` */
46
52
  "_selection": string
@@ -74,7 +80,7 @@ export interface Conditions {
74
80
  "_peerFocusWithin": string
75
81
  /** `.peer:is(:focus-visible, [data-focus-visible]) ~ &` */
76
82
  "_peerFocusVisible": string
77
- /** `.peer:is(:disabled, [disabled], [data-disabled]) ~ &` */
83
+ /** `.peer:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) ~ &` */
78
84
  "_peerDisabled": string
79
85
  /** `.peer:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) ~ &` */
80
86
  "_peerChecked": string
@@ -94,13 +100,13 @@ export interface Conditions {
94
100
  "_groupFocusWithin": string
95
101
  /** `.group:is(:focus-visible, [data-focus-visible]) &` */
96
102
  "_groupFocusVisible": string
97
- /** `.group:is(:disabled, [disabled], [data-disabled]) &` */
103
+ /** `.group:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) &` */
98
104
  "_groupDisabled": string
99
105
  /** `.group:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) &` */
100
106
  "_groupChecked": string
101
107
  /** `.group:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) &` */
102
108
  "_groupExpanded": string
103
- /** `.group:invalid &` */
109
+ /** `.group:is(:invalid, [data-invalid], [aria-invalid=true]) &` */
104
110
  "_groupInvalid": string
105
111
  /** `&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state="indeterminate"])` */
106
112
  "_indeterminate": string
@@ -108,13 +114,13 @@ export interface Conditions {
108
114
  "_required": string
109
115
  /** `&:is(:valid, [data-valid])` */
110
116
  "_valid": string
111
- /** `&:is(:invalid, [data-invalid])` */
117
+ /** `&:is(:invalid, [data-invalid], [aria-invalid=true])` */
112
118
  "_invalid": string
113
119
  /** `&:autofill` */
114
120
  "_autofill": string
115
- /** `&:in-range` */
121
+ /** `&:is(:in-range, [data-in-range])` */
116
122
  "_inRange": string
117
- /** `&:out-of-range` */
123
+ /** `&:is(:out-of-range, [data-outside-range])` */
118
124
  "_outOfRange": string
119
125
  /** `&::placeholder, &[data-placeholder]` */
120
126
  "_placeholder": string
@@ -124,22 +130,46 @@ export interface Conditions {
124
130
  "_pressed": string
125
131
  /** `&:is([aria-selected=true], [data-selected])` */
126
132
  "_selected": string
133
+ /** `&:is([aria-grabbed=true], [data-grabbed])` */
134
+ "_grabbed": string
135
+ /** `&[data-state=under-value]` */
136
+ "_underValue": string
137
+ /** `&[data-state=over-value]` */
138
+ "_overValue": string
139
+ /** `&[data-state=at-value]` */
140
+ "_atValue": string
127
141
  /** `&:default` */
128
142
  "_default": string
129
143
  /** `&:optional` */
130
144
  "_optional": string
131
- /** `&:is([open], [data-open], [data-state="open"])` */
145
+ /** `&:is([open], [data-open], [data-state="open"], :popover-open)` */
132
146
  "_open": string
133
147
  /** `&:is([closed], [data-closed], [data-state="closed"])` */
134
148
  "_closed": string
135
- /** `&:fullscreen` */
149
+ /** `&:is(:fullscreen, [data-fullscreen])` */
136
150
  "_fullscreen": string
137
151
  /** `&:is([data-loading], [aria-busy=true])` */
138
152
  "_loading": string
153
+ /** `&:is([hidden], [data-hidden])` */
154
+ "_hidden": string
155
+ /** `&:is([aria-current=true], [data-current])` */
156
+ "_current": string
139
157
  /** `&[aria-current=page]` */
140
158
  "_currentPage": string
141
159
  /** `&[aria-current=step]` */
142
160
  "_currentStep": string
161
+ /** `&[data-today]` */
162
+ "_today": string
163
+ /** `&[data-unavailable]` */
164
+ "_unavailable": string
165
+ /** `&[data-range-start]` */
166
+ "_rangeStart": string
167
+ /** `&[data-range-end]` */
168
+ "_rangeEnd": string
169
+ /** `&[data-now]` */
170
+ "_now": string
171
+ /** `&[data-topmost]` */
172
+ "_topmost": string
143
173
  /** `@media (prefers-reduced-motion: reduce)` */
144
174
  "_motionReduce": string
145
175
  /** `@media (prefers-reduced-motion: no-preference)` */
@@ -164,9 +194,9 @@ export interface Conditions {
164
194
  "_lessContrast": string
165
195
  /** `@media (prefers-contrast: more)` */
166
196
  "_moreContrast": string
167
- /** `[dir=ltr] &` */
197
+ /** `:where([dir=ltr], :dir(ltr)) &` */
168
198
  "_ltr": string
169
- /** `[dir=rtl] &` */
199
+ /** `:where([dir=rtl], :dir(rtl)) &` */
170
200
  "_rtl": string
171
201
  /** `&::-webkit-scrollbar` */
172
202
  "_scrollbar": string
@@ -178,8 +208,14 @@ export interface Conditions {
178
208
  "_horizontal": string
179
209
  /** `&[data-orientation=vertical]` */
180
210
  "_vertical": string
211
+ /** `& :where(svg)` */
212
+ "_icon": string
181
213
  /** `@starting-style` */
182
214
  "_starting": string
215
+ /** `@media (scripting: none)` */
216
+ "_noscript": string
217
+ /** `@media (inverted-colors: inverted)` */
218
+ "_invertedColors": string
183
219
  /** `@media screen and (min-width: 40rem)` */
184
220
  "sm": string
185
221
  /** `@media screen and (min-width: 40rem) and (max-width: 47.9975rem)` */