qstd 0.2.17 → 0.2.18

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 (124) hide show
  1. package/dist/block/test-types.d.ts.map +1 -1
  2. package/dist/react/index.css +12 -0
  3. package/package.json +22 -20
  4. package/styled-system/css/conditions.mjs +36 -0
  5. package/styled-system/css/css.d.ts +22 -0
  6. package/styled-system/css/css.mjs +45 -0
  7. package/styled-system/css/cva.d.ts +6 -0
  8. package/styled-system/css/cva.mjs +87 -0
  9. package/styled-system/css/cx.d.ts +5 -0
  10. package/styled-system/css/cx.mjs +15 -0
  11. package/styled-system/css/index.d.ts +5 -0
  12. package/styled-system/css/index.mjs +4 -0
  13. package/styled-system/css/sva.d.ts +4 -0
  14. package/styled-system/css/sva.mjs +46 -0
  15. package/styled-system/helpers.mjs +328 -0
  16. package/styled-system/jsx/aspect-ratio.d.ts +10 -0
  17. package/styled-system/jsx/aspect-ratio.mjs +14 -0
  18. package/styled-system/jsx/bleed.d.ts +10 -0
  19. package/styled-system/jsx/bleed.mjs +14 -0
  20. package/styled-system/jsx/box.d.ts +10 -0
  21. package/styled-system/jsx/box.mjs +14 -0
  22. package/styled-system/jsx/center.d.ts +10 -0
  23. package/styled-system/jsx/center.mjs +14 -0
  24. package/styled-system/jsx/circle.d.ts +10 -0
  25. package/styled-system/jsx/circle.mjs +14 -0
  26. package/styled-system/jsx/container.d.ts +10 -0
  27. package/styled-system/jsx/container.mjs +14 -0
  28. package/styled-system/jsx/cq.d.ts +10 -0
  29. package/styled-system/jsx/cq.mjs +14 -0
  30. package/styled-system/jsx/create-style-context.d.ts +54 -0
  31. package/styled-system/jsx/create-style-context.mjs +98 -0
  32. package/styled-system/jsx/divider.d.ts +10 -0
  33. package/styled-system/jsx/divider.mjs +14 -0
  34. package/styled-system/jsx/factory-helper.mjs +22 -0
  35. package/styled-system/jsx/factory.d.ts +3 -0
  36. package/styled-system/jsx/factory.mjs +89 -0
  37. package/styled-system/jsx/flex.d.ts +10 -0
  38. package/styled-system/jsx/flex.mjs +14 -0
  39. package/styled-system/jsx/float.d.ts +10 -0
  40. package/styled-system/jsx/float.mjs +14 -0
  41. package/styled-system/jsx/grid-item.d.ts +10 -0
  42. package/styled-system/jsx/grid-item.mjs +14 -0
  43. package/styled-system/jsx/grid.d.ts +10 -0
  44. package/styled-system/jsx/grid.mjs +14 -0
  45. package/styled-system/jsx/hstack.d.ts +10 -0
  46. package/styled-system/jsx/hstack.mjs +14 -0
  47. package/styled-system/jsx/index.d.ts +25 -0
  48. package/styled-system/jsx/index.mjs +23 -0
  49. package/styled-system/jsx/is-valid-prop.d.ts +11 -0
  50. package/styled-system/jsx/is-valid-prop.mjs +17 -0
  51. package/styled-system/jsx/link-overlay.d.ts +10 -0
  52. package/styled-system/jsx/link-overlay.mjs +14 -0
  53. package/styled-system/jsx/spacer.d.ts +10 -0
  54. package/styled-system/jsx/spacer.mjs +14 -0
  55. package/styled-system/jsx/square.d.ts +10 -0
  56. package/styled-system/jsx/square.mjs +14 -0
  57. package/styled-system/jsx/stack.d.ts +10 -0
  58. package/styled-system/jsx/stack.mjs +14 -0
  59. package/styled-system/jsx/visually-hidden.d.ts +10 -0
  60. package/styled-system/jsx/visually-hidden.mjs +14 -0
  61. package/styled-system/jsx/vstack.d.ts +10 -0
  62. package/styled-system/jsx/vstack.mjs +14 -0
  63. package/styled-system/jsx/wrap.d.ts +10 -0
  64. package/styled-system/jsx/wrap.mjs +14 -0
  65. package/styled-system/patterns/aspect-ratio.d.ts +20 -0
  66. package/styled-system/patterns/aspect-ratio.mjs +38 -0
  67. package/styled-system/patterns/bleed.d.ts +21 -0
  68. package/styled-system/patterns/bleed.mjs +24 -0
  69. package/styled-system/patterns/box.d.ts +20 -0
  70. package/styled-system/patterns/box.mjs +15 -0
  71. package/styled-system/patterns/center.d.ts +20 -0
  72. package/styled-system/patterns/center.mjs +21 -0
  73. package/styled-system/patterns/circle.d.ts +20 -0
  74. package/styled-system/patterns/circle.mjs +25 -0
  75. package/styled-system/patterns/container.d.ts +20 -0
  76. package/styled-system/patterns/container.mjs +21 -0
  77. package/styled-system/patterns/cq.d.ts +21 -0
  78. package/styled-system/patterns/cq.mjs +21 -0
  79. package/styled-system/patterns/divider.d.ts +22 -0
  80. package/styled-system/patterns/divider.mjs +25 -0
  81. package/styled-system/patterns/flex.d.ts +26 -0
  82. package/styled-system/patterns/flex.mjs +26 -0
  83. package/styled-system/patterns/float.d.ts +23 -0
  84. package/styled-system/patterns/float.mjs +52 -0
  85. package/styled-system/patterns/grid-item.d.ts +25 -0
  86. package/styled-system/patterns/grid-item.mjs +25 -0
  87. package/styled-system/patterns/grid.d.ts +24 -0
  88. package/styled-system/patterns/grid.mjs +27 -0
  89. package/styled-system/patterns/hstack.d.ts +21 -0
  90. package/styled-system/patterns/hstack.mjs +24 -0
  91. package/styled-system/patterns/index.d.ts +21 -0
  92. package/styled-system/patterns/index.mjs +20 -0
  93. package/styled-system/patterns/link-overlay.d.ts +20 -0
  94. package/styled-system/patterns/link-overlay.mjs +24 -0
  95. package/styled-system/patterns/spacer.d.ts +20 -0
  96. package/styled-system/patterns/spacer.mjs +21 -0
  97. package/styled-system/patterns/square.d.ts +20 -0
  98. package/styled-system/patterns/square.mjs +24 -0
  99. package/styled-system/patterns/stack.d.ts +23 -0
  100. package/styled-system/patterns/stack.mjs +24 -0
  101. package/styled-system/patterns/visually-hidden.d.ts +20 -0
  102. package/styled-system/patterns/visually-hidden.mjs +18 -0
  103. package/styled-system/patterns/vstack.d.ts +21 -0
  104. package/styled-system/patterns/vstack.mjs +24 -0
  105. package/styled-system/patterns/wrap.d.ts +24 -0
  106. package/styled-system/patterns/wrap.mjs +25 -0
  107. package/styled-system/styles.css +1749 -0
  108. package/styled-system/tokens/index.d.ts +9 -0
  109. package/styled-system/tokens/index.mjs +1976 -0
  110. package/styled-system/tokens/tokens.d.ts +60 -0
  111. package/styled-system/types/composition.d.ts +224 -0
  112. package/styled-system/types/conditions.d.ts +348 -0
  113. package/styled-system/types/csstype.d.ts +21298 -0
  114. package/styled-system/types/global.d.ts +20 -0
  115. package/styled-system/types/index.d.ts +8 -0
  116. package/styled-system/types/jsx.d.ts +67 -0
  117. package/styled-system/types/parts.d.ts +8 -0
  118. package/styled-system/types/pattern.d.ts +78 -0
  119. package/styled-system/types/prop-type.d.ts +277 -0
  120. package/styled-system/types/recipe.d.ts +181 -0
  121. package/styled-system/types/selectors.d.ts +59 -0
  122. package/styled-system/types/static-css.d.ts +56 -0
  123. package/styled-system/types/style-props.d.ts +7639 -0
  124. package/styled-system/types/system-types.d.ts +269 -0
@@ -0,0 +1,60 @@
1
+ /* eslint-disable */
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
+
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" | "text-primary" | "text-secondary" | "text-inverted" | "text-alert" | "input-border-color" | "input-border-color-error" | "input-outline-color-error" | "input-label-color" | "input-label-color-lifted" | "input-label-bg"
5
+
6
+ export type AspectRatioToken = "square" | "landscape" | "portrait" | "wide" | "ultrawide" | "golden"
7
+
8
+ export type BorderToken = "none"
9
+
10
+ export type EasingToken = "default" | "linear" | "in" | "out" | "in-out"
11
+
12
+ export type DurationToken = "fastest" | "faster" | "fast" | "normal" | "slow" | "slower" | "slowest"
13
+
14
+ export type RadiusToken = "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "full"
15
+
16
+ export type FontWeightToken = "thin" | "extralight" | "light" | "normal" | "medium" | "semibold" | "bold" | "extrabold" | "black"
17
+
18
+ export type LineHeightToken = "none" | "tight" | "snug" | "normal" | "relaxed" | "loose"
19
+
20
+ export type FontToken = "sans" | "serif" | "mono"
21
+
22
+ export type LetterSpacingToken = "tighter" | "tight" | "normal" | "wide" | "wider" | "widest"
23
+
24
+ export type FontSizeToken = "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl"
25
+
26
+ export type ShadowToken = "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "inset-2xs" | "inset-xs" | "inset-sm"
27
+
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" | "text-primary" | "text-secondary" | "text-inverted" | "text-alert" | "input-border-color" | "input-border-color-error" | "input-outline-color-error" | "input-label-color" | "input-label-color-lifted" | "input-label-bg" | "colorPalette" | "colorPalette.50" | "colorPalette.100" | "colorPalette.200" | "colorPalette.300" | "colorPalette.400" | "colorPalette.500" | "colorPalette.600" | "colorPalette.700" | "colorPalette.800" | "colorPalette.900" | "colorPalette.950"
29
+
30
+ export type BlurToken = "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl"
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" | "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
+
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" | "breakpoint-xs"
35
+
36
+ export type AnimationToken = "spin" | "ping" | "pulse" | "bounce"
37
+
38
+ export type BreakpointToken = "sm" | "md" | "lg" | "xl" | "2xl" | "xs"
39
+
40
+ export type Tokens = {
41
+ aspectRatios: AspectRatioToken
42
+ borders: BorderToken
43
+ easings: EasingToken
44
+ durations: DurationToken
45
+ radii: RadiusToken
46
+ fontWeights: FontWeightToken
47
+ lineHeights: LineHeightToken
48
+ fonts: FontToken
49
+ letterSpacings: LetterSpacingToken
50
+ fontSizes: FontSizeToken
51
+ shadows: ShadowToken
52
+ colors: ColorToken
53
+ blurs: BlurToken
54
+ spacing: SpacingToken
55
+ sizes: SizeToken
56
+ animations: AnimationToken
57
+ breakpoints: BreakpointToken
58
+ } & { [token: string]: never }
59
+
60
+ export type TokenCategory = "aspectRatios" | "zIndex" | "opacity" | "colors" | "fonts" | "fontSizes" | "fontWeights" | "lineHeights" | "letterSpacings" | "sizes" | "cursor" | "shadows" | "spacing" | "radii" | "borders" | "borderWidths" | "durations" | "easings" | "animations" | "blurs" | "gradients" | "breakpoints" | "assets"
@@ -0,0 +1,224 @@
1
+ /* eslint-disable */
2
+ import type { CompositionStyleObject } from './system-types';
3
+
4
+ interface Token<T> {
5
+ value: T
6
+ description?: string
7
+ }
8
+
9
+ interface Recursive<T> {
10
+ [key: string]: Recursive<T> | T
11
+ }
12
+
13
+ /* -----------------------------------------------------------------------------
14
+ * Text styles
15
+ * -----------------------------------------------------------------------------*/
16
+
17
+ type TextStyleProperty =
18
+ | 'color'
19
+ | 'direction'
20
+ | 'font'
21
+ | 'fontFamily'
22
+ | 'fontFeatureSettings'
23
+ | 'fontKerning'
24
+ | 'fontLanguageOverride'
25
+ | 'fontOpticalSizing'
26
+ | 'fontPalette'
27
+ | 'fontSize'
28
+ | 'fontSizeAdjust'
29
+ | 'fontStretch'
30
+ | 'fontStyle'
31
+ | 'fontSynthesis'
32
+ | 'fontVariant'
33
+ | 'fontVariantAlternates'
34
+ | 'fontVariantCaps'
35
+ | 'fontVariantLigatures'
36
+ | 'fontVariantNumeric'
37
+ | 'fontVariantPosition'
38
+ | 'fontVariationSettings'
39
+ | 'fontWeight'
40
+ | 'hangingPunctuation'
41
+ | 'hypens'
42
+ | 'hyphenateCharacter'
43
+ | 'hyphenateLimitChars'
44
+ | 'letterSpacing'
45
+ | 'lineBreak'
46
+ | 'lineHeight'
47
+ | 'quotes'
48
+ | 'overflowWrap'
49
+ | 'tabSize'
50
+ | 'textAlign'
51
+ | 'textAlignLast'
52
+ | 'textCombineUpright'
53
+ | 'textDecoration'
54
+ | 'textDecorationColor'
55
+ | 'textDecorationLine'
56
+ | 'textDecorationSkip'
57
+ | 'textDecorationSkipBox'
58
+ | 'textDecorationSkipInk'
59
+ | 'textDecorationSkipInset'
60
+ | 'textDecorationStyle'
61
+ | 'textDecorationThickness'
62
+ | 'textEmphasis'
63
+ | 'textEmphasisColor'
64
+ | 'textEmphasisPosition'
65
+ | 'textEmphasisStyle'
66
+ | 'textIndent'
67
+ | 'textJustify'
68
+ | 'textOrientation'
69
+ | 'textOverflow'
70
+ | 'textRendering'
71
+ | 'textShadow'
72
+ | 'textStroke'
73
+ | 'textStrokeColor'
74
+ | 'textStrokeWidth'
75
+ | 'textTransform'
76
+ | 'textUnderlineOffset'
77
+ | 'textUnderlinePosition'
78
+ | 'textWrap'
79
+ | 'textWrapMode'
80
+ | 'textWrapStyle'
81
+ | 'unicodeBidi'
82
+ | 'verticalAlign'
83
+ | 'whiteSpace'
84
+ | 'wordBreak'
85
+ | 'wordSpacing'
86
+ | 'writingMode'
87
+
88
+ export type TextStyle = CompositionStyleObject<TextStyleProperty>
89
+
90
+ export type TextStyles = Recursive<Token<TextStyle>>
91
+
92
+ /* -----------------------------------------------------------------------------
93
+ * Layer styles
94
+ * -----------------------------------------------------------------------------*/
95
+
96
+ type LogicalPlacement = 'Inline' | 'Block' | 'InlineStart' | 'InlineEnd' | 'BlockStart' | 'BlockEnd'
97
+
98
+ type PhysicalPlacement = 'Top' | 'Right' | 'Bottom' | 'Left'
99
+
100
+ type Placement = PhysicalPlacement | LogicalPlacement
101
+
102
+ type Radius =
103
+ | `Top${'Right' | 'Left'}`
104
+ | `Bottom${'Right' | 'Left'}`
105
+ | `Start${'Start' | 'End'}`
106
+ | `End${'Start' | 'End'}`
107
+
108
+ type LayerStyleProperty =
109
+ | 'aspectRatio'
110
+ | 'background'
111
+ | 'backgroundColor'
112
+ | 'backgroundImage'
113
+ | 'border'
114
+ | 'borderColor'
115
+ | 'borderImage'
116
+ | 'borderImageOutset'
117
+ | 'borderImageRepeat'
118
+ | 'borderImageSlice'
119
+ | 'borderImageSource'
120
+ | 'borderImageWidth'
121
+ | 'borderRadius'
122
+ | 'borderStyle'
123
+ | 'borderWidth'
124
+ | `border${Placement}`
125
+ | `border${Placement}Color`
126
+ | `border${Placement}Style`
127
+ | `border${Placement}Width`
128
+ | 'borderRadius'
129
+ | `border${Radius}Radius`
130
+ | 'boxShadow'
131
+ | 'boxShadowColor'
132
+ | 'clipPath'
133
+ | 'color'
134
+ | 'contain'
135
+ | 'content'
136
+ | 'contentVisibility'
137
+ | 'cursor'
138
+ | 'display'
139
+ | 'filter'
140
+ | 'backdropFilter'
141
+ | 'height'
142
+ | 'width'
143
+ | 'minHeight'
144
+ | 'minWidth'
145
+ | 'maxHeight'
146
+ | 'maxWidth'
147
+ | `margin${Placement}`
148
+ | 'inset'
149
+ | `inset${LogicalPlacement}`
150
+ | Lowercase<PhysicalPlacement>
151
+ | 'isolation'
152
+ | 'mask'
153
+ | 'maskClip'
154
+ | 'maskComposite'
155
+ | 'maskImage'
156
+ | 'maskMode'
157
+ | 'maskOrigin'
158
+ | 'maskPosition'
159
+ | 'maskRepeat'
160
+ | 'maskSize'
161
+ | 'mixBlendMode'
162
+ | 'objectFit'
163
+ | 'objectPosition'
164
+ | 'opacity'
165
+ | 'outline'
166
+ | 'outlineColor'
167
+ | 'outlineOffset'
168
+ | 'outlineStyle'
169
+ | 'outlineWidth'
170
+ | 'overflow'
171
+ | 'overflowX'
172
+ | 'overflowY'
173
+ | 'padding'
174
+ | `padding${Placement}`
175
+ | 'pointerEvents'
176
+ | 'position'
177
+ | 'resize'
178
+ | 'transform'
179
+ | 'transition'
180
+ | 'visibility'
181
+ | 'willChange'
182
+ | 'zIndex'
183
+ | 'backgroundBlendMode'
184
+ | 'backgroundAttachment'
185
+ | 'backgroundClip'
186
+ | 'backgroundOrigin'
187
+ | 'backgroundPosition'
188
+ | 'backgroundRepeat'
189
+ | 'backgroundSize'
190
+
191
+ export type LayerStyle = CompositionStyleObject<LayerStyleProperty>
192
+
193
+ export type LayerStyles = Recursive<Token<LayerStyle>>
194
+
195
+ /* -----------------------------------------------------------------------------
196
+ * Motion styles
197
+ * -----------------------------------------------------------------------------*/
198
+
199
+ type AnimationStyleProperty =
200
+ | 'animation'
201
+ | 'animationComposition'
202
+ | 'animationDelay'
203
+ | 'animationDirection'
204
+ | 'animationDuration'
205
+ | 'animationFillMode'
206
+ | 'animationIterationCount'
207
+ | 'animationName'
208
+ | 'animationPlayState'
209
+ | 'animationTimingFunction'
210
+ | 'animationRange'
211
+ | 'animationRangeStart'
212
+ | 'animationRangeEnd'
213
+ | 'animationTimeline'
214
+ | 'transformOrigin'
215
+
216
+ export type AnimationStyle = CompositionStyleObject<AnimationStyleProperty>
217
+
218
+ export type AnimationStyles = Recursive<Token<AnimationStyle>>
219
+
220
+ export interface CompositionStyles {
221
+ textStyles: TextStyles
222
+ layerStyles: LayerStyles
223
+ animationStyles: AnimationStyles
224
+ }
@@ -0,0 +1,348 @@
1
+ /* eslint-disable */
2
+ import type { AnySelector, Selectors } from './selectors';
3
+
4
+ export interface Conditions {
5
+ /** `&:hover:not(:disabled)` */
6
+ "_hover": string
7
+ /** `&:is(:focus, [data-focus])` */
8
+ "_focus": string
9
+ /** `&:focus-within` */
10
+ "_focusWithin": string
11
+ /** `&:is(:focus-visible, [data-focus-visible])` */
12
+ "_focusVisible": string
13
+ /** `&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])` */
14
+ "_disabled": string
15
+ /** `&:active:not(:disabled), &:active:not(:focus-visible):not(:disabled), &:active:focus-visible:not(:disabled)` */
16
+ "_active": string
17
+ /** `&:visited` */
18
+ "_visited": string
19
+ /** `&:target` */
20
+ "_target": string
21
+ /** `&:is(:read-only, [data-read-only], [aria-readonly=true])` */
22
+ "_readOnly": string
23
+ /** `&:read-write` */
24
+ "_readWrite": string
25
+ /** `&:is(:empty, [data-empty])` */
26
+ "_empty": string
27
+ /** `&:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"])` */
28
+ "_checked": string
29
+ /** `&:enabled` */
30
+ "_enabled": string
31
+ /** `&:is([aria-expanded=true], [data-expanded], [data-state="expanded"])` */
32
+ "_expanded": string
33
+ /** `&[data-highlighted]` */
34
+ "_highlighted": string
35
+ /** `&[data-complete]` */
36
+ "_complete": string
37
+ /** `&[data-incomplete]` */
38
+ "_incomplete": string
39
+ /** `&[data-dragging]` */
40
+ "_dragging": string
41
+ /** `&::before` */
42
+ "_before": string
43
+ /** `&::after` */
44
+ "_after": string
45
+ /** `&::first-letter` */
46
+ "_firstLetter": string
47
+ /** `&::first-line` */
48
+ "_firstLine": string
49
+ /** `&::marker, &::-webkit-details-marker` */
50
+ "_marker": string
51
+ /** `&::selection` */
52
+ "_selection": string
53
+ /** `&::file-selector-button` */
54
+ "_file": string
55
+ /** `[data-backdrop]:has(> &)` */
56
+ "_backdrop": string
57
+ /** `&:first-child` */
58
+ "_first": string
59
+ /** `&:last-child` */
60
+ "_last": string
61
+ /** `&:only-child` */
62
+ "_only": string
63
+ /** `&:nth-child(even)` */
64
+ "_even": string
65
+ /** `&:nth-child(odd)` */
66
+ "_odd": string
67
+ /** `&:first-of-type` */
68
+ "_firstOfType": string
69
+ /** `&:last-of-type` */
70
+ "_lastOfType": string
71
+ /** `&:only-of-type` */
72
+ "_onlyOfType": string
73
+ /** `.peer:is(:focus, [data-focus]) ~ &` */
74
+ "_peerFocus": string
75
+ /** `.peer:is(:hover, [data-hover]) ~ &` */
76
+ "_peerHover": string
77
+ /** `.peer:is(:active, [data-active]) ~ &` */
78
+ "_peerActive": string
79
+ /** `.peer:focus-within ~ &` */
80
+ "_peerFocusWithin": string
81
+ /** `.peer:is(:focus-visible, [data-focus-visible]) ~ &` */
82
+ "_peerFocusVisible": string
83
+ /** `.peer:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) ~ &` */
84
+ "_peerDisabled": string
85
+ /** `.peer:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) ~ &` */
86
+ "_peerChecked": string
87
+ /** `.peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &` */
88
+ "_peerInvalid": string
89
+ /** `.peer:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) ~ &` */
90
+ "_peerExpanded": string
91
+ /** `.peer:placeholder-shown ~ &` */
92
+ "_peerPlaceholderShown": string
93
+ /** `.group:is(:focus, [data-focus]) &` */
94
+ "_groupFocus": string
95
+ /** `.group:is(:hover, [data-hover]) &` */
96
+ "_groupHover": string
97
+ /** `.group:is(:active, [data-active]) &` */
98
+ "_groupActive": string
99
+ /** `.group:focus-within &` */
100
+ "_groupFocusWithin": string
101
+ /** `.group:is(:focus-visible, [data-focus-visible]) &` */
102
+ "_groupFocusVisible": string
103
+ /** `.group:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) &` */
104
+ "_groupDisabled": string
105
+ /** `.group:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) &` */
106
+ "_groupChecked": string
107
+ /** `.group:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) &` */
108
+ "_groupExpanded": string
109
+ /** `.group:is(:invalid, [data-invalid], [aria-invalid=true]) &` */
110
+ "_groupInvalid": string
111
+ /** `&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state="indeterminate"])` */
112
+ "_indeterminate": string
113
+ /** `&:is(:required, [data-required], [aria-required=true])` */
114
+ "_required": string
115
+ /** `&:is(:valid, [data-valid])` */
116
+ "_valid": string
117
+ /** `&:is(:invalid, [data-invalid], [aria-invalid=true])` */
118
+ "_invalid": string
119
+ /** `&:autofill` */
120
+ "_autofill": string
121
+ /** `&:is(:in-range, [data-in-range])` */
122
+ "_inRange": string
123
+ /** `&:is(:out-of-range, [data-outside-range])` */
124
+ "_outOfRange": string
125
+ /** `&::placeholder, &[data-placeholder]` */
126
+ "_placeholder": string
127
+ /** `&:is(:placeholder-shown, [data-placeholder-shown])` */
128
+ "_placeholderShown": string
129
+ /** `&:is([aria-pressed=true], [data-pressed])` */
130
+ "_pressed": string
131
+ /** `&:is([aria-selected=true], [data-selected])` */
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
141
+ /** `&:default` */
142
+ "_default": string
143
+ /** `&:optional` */
144
+ "_optional": string
145
+ /** `&:is([open], [data-open], [data-state="open"], :popover-open)` */
146
+ "_open": string
147
+ /** `&:is([closed], [data-closed], [data-state="closed"])` */
148
+ "_closed": string
149
+ /** `&:is(:fullscreen, [data-fullscreen])` */
150
+ "_fullscreen": string
151
+ /** `&:is([data-loading], [aria-busy=true])` */
152
+ "_loading": string
153
+ /** `&:is([hidden], [data-hidden])` */
154
+ "_hidden": string
155
+ /** `&:is([aria-current=true], [data-current])` */
156
+ "_current": string
157
+ /** `&[aria-current=page]` */
158
+ "_currentPage": string
159
+ /** `&[aria-current=step]` */
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
173
+ /** `@media (prefers-reduced-motion: reduce)` */
174
+ "_motionReduce": string
175
+ /** `@media (prefers-reduced-motion: no-preference)` */
176
+ "_motionSafe": string
177
+ /** `@media print` */
178
+ "_print": string
179
+ /** `@media (orientation: landscape)` */
180
+ "_landscape": string
181
+ /** `@media (orientation: portrait)` */
182
+ "_portrait": string
183
+ /** `[data-theme=dark] &` */
184
+ "_dark": string
185
+ /** `.light &` */
186
+ "_light": string
187
+ /** `@media (prefers-color-scheme: dark)` */
188
+ "_osDark": string
189
+ /** `@media (prefers-color-scheme: light)` */
190
+ "_osLight": string
191
+ /** `@media (forced-colors: active)` */
192
+ "_highContrast": string
193
+ /** `@media (prefers-contrast: less)` */
194
+ "_lessContrast": string
195
+ /** `@media (prefers-contrast: more)` */
196
+ "_moreContrast": string
197
+ /** `:where([dir=ltr], :dir(ltr)) &` */
198
+ "_ltr": string
199
+ /** `:where([dir=rtl], :dir(rtl)) &` */
200
+ "_rtl": string
201
+ /** `&::-webkit-scrollbar` */
202
+ "_scrollbar": string
203
+ /** `&::-webkit-scrollbar-thumb` */
204
+ "_scrollbarThumb": string
205
+ /** `&::-webkit-scrollbar-track` */
206
+ "_scrollbarTrack": string
207
+ /** `&[data-orientation=horizontal]` */
208
+ "_horizontal": string
209
+ /** `&[data-orientation=vertical]` */
210
+ "_vertical": string
211
+ /** `& :where(svg)` */
212
+ "_icon": string
213
+ /** `@starting-style` */
214
+ "_starting": string
215
+ /** `@media (scripting: none)` */
216
+ "_noscript": string
217
+ /** `@media (inverted-colors: inverted)` */
218
+ "_invertedColors": string
219
+ /** `&:active:not(:focus-visible):not(:disabled)` */
220
+ "_activeMouse": string
221
+ /** `&:active:focus-visible:not(:disabled)` */
222
+ "_activeKeyboard": string
223
+ /** `& [data-checkbox]` */
224
+ "_checkbox": string
225
+ /** `& [data-radio-label]` */
226
+ "_radioLabel": string
227
+ /** `& :is(:disabled, [disabled], [data-disabled], [aria-disabled=true])` */
228
+ "_radioDisabled": string
229
+ /** `& :is([aria-selected=true], [data-selected])` */
230
+ "_radioSelected": string
231
+ /** `& [data-radio-outer]` */
232
+ "_radioCircleOuter": string
233
+ /** `& [data-radio-inner]` */
234
+ "_radioCircleInner": string
235
+ /** `& [data-radio-focusring]` */
236
+ "_radioFocusRing": string
237
+ /** `& path` */
238
+ "_path": string
239
+ /** `& svg` */
240
+ "_svg": string
241
+ /** `@media screen and (min-width: 37.5rem)` */
242
+ "xs": string
243
+ /** `@media screen and (min-width: 37.5rem) and (max-width: 39.9975rem)` */
244
+ "xsOnly": string
245
+ /** `@media screen and (max-width: 37.4975rem)` */
246
+ "xsDown": string
247
+ /** `@media screen and (min-width: 40rem)` */
248
+ "sm": string
249
+ /** `@media screen and (min-width: 40rem) and (max-width: 47.9975rem)` */
250
+ "smOnly": string
251
+ /** `@media screen and (max-width: 39.9975rem)` */
252
+ "smDown": string
253
+ /** `@media screen and (min-width: 48rem)` */
254
+ "md": string
255
+ /** `@media screen and (min-width: 48rem) and (max-width: 63.9975rem)` */
256
+ "mdOnly": string
257
+ /** `@media screen and (max-width: 47.9975rem)` */
258
+ "mdDown": string
259
+ /** `@media screen and (min-width: 64rem)` */
260
+ "lg": string
261
+ /** `@media screen and (min-width: 64rem) and (max-width: 79.9975rem)` */
262
+ "lgOnly": string
263
+ /** `@media screen and (max-width: 63.9975rem)` */
264
+ "lgDown": string
265
+ /** `@media screen and (min-width: 80rem)` */
266
+ "xl": string
267
+ /** `@media screen and (min-width: 80rem) and (max-width: 95.9975rem)` */
268
+ "xlOnly": string
269
+ /** `@media screen and (max-width: 79.9975rem)` */
270
+ "xlDown": string
271
+ /** `@media screen and (min-width: 96rem)` */
272
+ "2xl": string
273
+ /** `@media screen and (min-width: 96rem)` */
274
+ "2xlOnly": string
275
+ /** `@media screen and (max-width: 95.9975rem)` */
276
+ "2xlDown": string
277
+ /** `@media screen and (min-width: 37.5rem) and (max-width: 39.9975rem)` */
278
+ "xsToSm": string
279
+ /** `@media screen and (min-width: 37.5rem) and (max-width: 47.9975rem)` */
280
+ "xsToMd": string
281
+ /** `@media screen and (min-width: 37.5rem) and (max-width: 63.9975rem)` */
282
+ "xsToLg": string
283
+ /** `@media screen and (min-width: 37.5rem) and (max-width: 79.9975rem)` */
284
+ "xsToXl": string
285
+ /** `@media screen and (min-width: 37.5rem) and (max-width: 95.9975rem)` */
286
+ "xsTo2xl": string
287
+ /** `@media screen and (min-width: 40rem) and (max-width: 47.9975rem)` */
288
+ "smToMd": string
289
+ /** `@media screen and (min-width: 40rem) and (max-width: 63.9975rem)` */
290
+ "smToLg": string
291
+ /** `@media screen and (min-width: 40rem) and (max-width: 79.9975rem)` */
292
+ "smToXl": string
293
+ /** `@media screen and (min-width: 40rem) and (max-width: 95.9975rem)` */
294
+ "smTo2xl": string
295
+ /** `@media screen and (min-width: 48rem) and (max-width: 63.9975rem)` */
296
+ "mdToLg": string
297
+ /** `@media screen and (min-width: 48rem) and (max-width: 79.9975rem)` */
298
+ "mdToXl": string
299
+ /** `@media screen and (min-width: 48rem) and (max-width: 95.9975rem)` */
300
+ "mdTo2xl": string
301
+ /** `@media screen and (min-width: 64rem) and (max-width: 79.9975rem)` */
302
+ "lgToXl": string
303
+ /** `@media screen and (min-width: 64rem) and (max-width: 95.9975rem)` */
304
+ "lgTo2xl": string
305
+ /** `@media screen and (min-width: 80rem) and (max-width: 95.9975rem)` */
306
+ "xlTo2xl": string
307
+ /** `@container (min-width: 20rem)` */
308
+ "@/xs": string
309
+ /** `@container (min-width: 24rem)` */
310
+ "@/sm": string
311
+ /** `@container (min-width: 28rem)` */
312
+ "@/md": string
313
+ /** `@container (min-width: 32rem)` */
314
+ "@/lg": string
315
+ /** `@container (min-width: 36rem)` */
316
+ "@/xl": string
317
+ /** `@container (min-width: 42rem)` */
318
+ "@/2xl": string
319
+ /** `@container (min-width: 48rem)` */
320
+ "@/3xl": string
321
+ /** `@container (min-width: 56rem)` */
322
+ "@/4xl": string
323
+ /** `@container (min-width: 64rem)` */
324
+ "@/5xl": string
325
+ /** `@container (min-width: 72rem)` */
326
+ "@/6xl": string
327
+ /** `@container (min-width: 80rem)` */
328
+ "@/7xl": string
329
+ /** `@container (min-width: 90rem)` */
330
+ "@/8xl": string
331
+ /** The base (=no conditions) styles to apply */
332
+ "base": string
333
+ }
334
+
335
+ export type ConditionalValue<V> =
336
+ | V
337
+ | Array<V | null>
338
+ | {
339
+ [K in keyof Conditions]?: ConditionalValue<V>
340
+ }
341
+
342
+ export type Nested<P> = P & {
343
+ [K in Selectors]?: Nested<P>
344
+ } & {
345
+ [K in AnySelector]?: Nested<P>
346
+ } & {
347
+ [K in keyof Conditions]?: Nested<P>
348
+ }