@mekari/pixel3-styled-system 0.0.0

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 (211) hide show
  1. package/.turbo/turbo-build.log +16 -0
  2. package/chunks/packages__accordion__src__accordion.css +10 -0
  3. package/chunks/packages__avatar2__src__modules__avatar.recipes.css +166 -0
  4. package/chunks/packages__avatar__src__avatar.style.css +150 -0
  5. package/chunks/packages__avatar__src__avatar.styles.css +171 -0
  6. package/chunks/packages__avatar__src__modules__avatar.recipes.css +191 -0
  7. package/chunks/packages__core__node_modules__@mekari__pixel3-accordion__src__accordion.css +10 -0
  8. package/chunks/packages__core__node_modules__@mekari__pixel3-avatar2__src__modules__avatar.recipes.css +166 -0
  9. package/chunks/packages__core__node_modules__@mekari__pixel3-avatar__src__avatar.css +16 -0
  10. package/chunks/packages__core__node_modules__@mekari__pixel3-avatar__src__avatar.style.css +150 -0
  11. package/chunks/packages__core__node_modules__@mekari__pixel3-avatar__src__avatar.styles.css +171 -0
  12. package/chunks/packages__core__node_modules__@mekari__pixel3-avatar__src__modules__avatar.recipes.css +191 -0
  13. package/css/conditions.mjs +34 -0
  14. package/css/css.d.ts +9 -0
  15. package/css/css.mjs +44 -0
  16. package/css/cva.d.ts +6 -0
  17. package/css/cva.mjs +85 -0
  18. package/css/cx.d.ts +5 -0
  19. package/css/cx.mjs +15 -0
  20. package/css/index.d.ts +5 -0
  21. package/css/index.mjs +4 -0
  22. package/css/sva.d.ts +4 -0
  23. package/css/sva.mjs +35 -0
  24. package/global.css +59 -0
  25. package/helpers.mjs +300 -0
  26. package/jsx/aspect-ratio.d.ts +10 -0
  27. package/jsx/aspect-ratio.mjs +16 -0
  28. package/jsx/bleed.d.ts +10 -0
  29. package/jsx/bleed.mjs +16 -0
  30. package/jsx/box.d.ts +10 -0
  31. package/jsx/box.mjs +16 -0
  32. package/jsx/center.d.ts +10 -0
  33. package/jsx/center.mjs +16 -0
  34. package/jsx/circle.d.ts +10 -0
  35. package/jsx/circle.mjs +16 -0
  36. package/jsx/container.d.ts +10 -0
  37. package/jsx/container.mjs +16 -0
  38. package/jsx/divider.d.ts +10 -0
  39. package/jsx/divider.mjs +16 -0
  40. package/jsx/factory-helper.mjs +22 -0
  41. package/jsx/factory.d.ts +4 -0
  42. package/jsx/factory.mjs +85 -0
  43. package/jsx/flex.d.ts +10 -0
  44. package/jsx/flex.mjs +16 -0
  45. package/jsx/float.d.ts +10 -0
  46. package/jsx/float.mjs +16 -0
  47. package/jsx/grid-item.d.ts +10 -0
  48. package/jsx/grid-item.mjs +16 -0
  49. package/jsx/grid.d.ts +10 -0
  50. package/jsx/grid.mjs +16 -0
  51. package/jsx/hstack.d.ts +10 -0
  52. package/jsx/hstack.mjs +16 -0
  53. package/jsx/index.d.ts +27 -0
  54. package/jsx/index.mjs +22 -0
  55. package/jsx/is-valid-prop.d.ts +5 -0
  56. package/jsx/is-valid-prop.mjs +17 -0
  57. package/jsx/link-box.d.ts +10 -0
  58. package/jsx/link-box.mjs +16 -0
  59. package/jsx/link-overlay.d.ts +10 -0
  60. package/jsx/link-overlay.mjs +16 -0
  61. package/jsx/spacer.d.ts +10 -0
  62. package/jsx/spacer.mjs +16 -0
  63. package/jsx/square.d.ts +10 -0
  64. package/jsx/square.mjs +16 -0
  65. package/jsx/stack.d.ts +10 -0
  66. package/jsx/stack.mjs +16 -0
  67. package/jsx/visually-hidden.d.ts +10 -0
  68. package/jsx/visually-hidden.mjs +16 -0
  69. package/jsx/vstack.d.ts +10 -0
  70. package/jsx/vstack.mjs +16 -0
  71. package/jsx/wrap.d.ts +10 -0
  72. package/jsx/wrap.mjs +16 -0
  73. package/package.json +40 -0
  74. package/patterns/aspect-ratio.d.ts +21 -0
  75. package/patterns/aspect-ratio.mjs +35 -0
  76. package/patterns/bleed.d.ts +22 -0
  77. package/patterns/bleed.mjs +19 -0
  78. package/patterns/box.d.ts +21 -0
  79. package/patterns/box.mjs +12 -0
  80. package/patterns/center.d.ts +21 -0
  81. package/patterns/center.mjs +18 -0
  82. package/patterns/circle.d.ts +21 -0
  83. package/patterns/circle.mjs +22 -0
  84. package/patterns/container.d.ts +21 -0
  85. package/patterns/container.mjs +18 -0
  86. package/patterns/divider.d.ts +23 -0
  87. package/patterns/divider.mjs +21 -0
  88. package/patterns/flex.d.ts +27 -0
  89. package/patterns/flex.mjs +23 -0
  90. package/patterns/float.d.ts +24 -0
  91. package/patterns/float.mjs +45 -0
  92. package/patterns/grid-item.d.ts +26 -0
  93. package/patterns/grid-item.mjs +22 -0
  94. package/patterns/grid.d.ts +25 -0
  95. package/patterns/grid.mjs +22 -0
  96. package/patterns/hstack.d.ts +22 -0
  97. package/patterns/hstack.mjs +20 -0
  98. package/patterns/index.d.ts +21 -0
  99. package/patterns/index.mjs +20 -0
  100. package/patterns/link-box.d.ts +21 -0
  101. package/patterns/link-box.mjs +19 -0
  102. package/patterns/link-overlay.d.ts +21 -0
  103. package/patterns/link-overlay.mjs +24 -0
  104. package/patterns/spacer.d.ts +21 -0
  105. package/patterns/spacer.mjs +18 -0
  106. package/patterns/square.d.ts +21 -0
  107. package/patterns/square.mjs +21 -0
  108. package/patterns/stack.d.ts +24 -0
  109. package/patterns/stack.mjs +20 -0
  110. package/patterns/visually-hidden.d.ts +21 -0
  111. package/patterns/visually-hidden.mjs +15 -0
  112. package/patterns/vstack.d.ts +22 -0
  113. package/patterns/vstack.mjs +20 -0
  114. package/patterns/wrap.d.ts +25 -0
  115. package/patterns/wrap.mjs +22 -0
  116. package/recipes/accordion.d.ts +27 -0
  117. package/recipes/accordion.mjs +50 -0
  118. package/recipes/avatar-group-recipe.d.ts +27 -0
  119. package/recipes/avatar-group-recipe.mjs +43 -0
  120. package/recipes/avatar-group-slot-recipe.d.ts +27 -0
  121. package/recipes/avatar-group-slot-recipe.mjs +43 -0
  122. package/recipes/avatar-recipe.d.ts +30 -0
  123. package/recipes/avatar-recipe.mjs +122 -0
  124. package/recipes/avatar-slot-recipe.d.ts +29 -0
  125. package/recipes/avatar-slot-recipe.mjs +116 -0
  126. package/recipes/badge-recipe.d.ts +29 -0
  127. package/recipes/badge-recipe.mjs +160 -0
  128. package/recipes/button-group-recipe.d.ts +27 -0
  129. package/recipes/button-group-recipe.mjs +22 -0
  130. package/recipes/button-recipe.d.ts +28 -0
  131. package/recipes/button-recipe.mjs +94 -0
  132. package/recipes/checkbox-slot-recipe.d.ts +27 -0
  133. package/recipes/checkbox-slot-recipe.mjs +38 -0
  134. package/recipes/create-recipe.d.ts +1 -0
  135. package/recipes/create-recipe.mjs +79 -0
  136. package/recipes/icon-recipe.d.ts +27 -0
  137. package/recipes/icon-recipe.mjs +29 -0
  138. package/recipes/index.d.ts +30 -0
  139. package/recipes/index.mjs +29 -0
  140. package/recipes/input-addon-recipe.d.ts +29 -0
  141. package/recipes/input-addon-recipe.mjs +107 -0
  142. package/recipes/input-addon-slot-recipe.d.ts +28 -0
  143. package/recipes/input-addon-slot-recipe.mjs +45 -0
  144. package/recipes/input-group-recipe.d.ts +27 -0
  145. package/recipes/input-group-recipe.mjs +30 -0
  146. package/recipes/input-group-slot-recipe.d.ts +27 -0
  147. package/recipes/input-group-slot-recipe.mjs +30 -0
  148. package/recipes/input-recipe.d.ts +30 -0
  149. package/recipes/input-recipe.mjs +63 -0
  150. package/recipes/input-slot-recipe.d.ts +28 -0
  151. package/recipes/input-slot-recipe.mjs +53 -0
  152. package/recipes/popover-content-recipe.d.ts +28 -0
  153. package/recipes/popover-content-recipe.mjs +34 -0
  154. package/recipes/popover-list-item-recipe.d.ts +27 -0
  155. package/recipes/popover-list-item-recipe.mjs +22 -0
  156. package/recipes/popover-list-recipe.d.ts +27 -0
  157. package/recipes/popover-list-recipe.mjs +22 -0
  158. package/recipes/progress-slot-recipe.d.ts +28 -0
  159. package/recipes/progress-slot-recipe.mjs +57 -0
  160. package/recipes/radio-slot-recipe.d.ts +27 -0
  161. package/recipes/radio-slot-recipe.mjs +38 -0
  162. package/recipes/select-slot-recipe.d.ts +27 -0
  163. package/recipes/select-slot-recipe.mjs +51 -0
  164. package/recipes/selected-border-recipe.d.ts +28 -0
  165. package/recipes/selected-border-recipe.mjs +88 -0
  166. package/recipes/shared-slot-recipe.d.ts +27 -0
  167. package/recipes/shared-slot-recipe.mjs +30 -0
  168. package/recipes/spinner-recipe.d.ts +27 -0
  169. package/recipes/spinner-recipe.mjs +29 -0
  170. package/recipes/tab-list-recipe.d.ts +27 -0
  171. package/recipes/tab-list-recipe.mjs +22 -0
  172. package/recipes/tab-recipe.d.ts +28 -0
  173. package/recipes/tab-recipe.mjs +87 -0
  174. package/recipes/table-container-recipe.d.ts +27 -0
  175. package/recipes/table-container-recipe.mjs +22 -0
  176. package/recipes/table-head-recipe.d.ts +27 -0
  177. package/recipes/table-head-recipe.mjs +22 -0
  178. package/recipes/table-recipe.d.ts +27 -0
  179. package/recipes/table-recipe.mjs +22 -0
  180. package/recipes/tag-recipe.d.ts +28 -0
  181. package/recipes/tag-recipe.mjs +66 -0
  182. package/recipes/tag-slot-recipe.d.ts +28 -0
  183. package/recipes/tag-slot-recipe.mjs +66 -0
  184. package/recipes/text-recipe.d.ts +28 -0
  185. package/recipes/text-recipe.mjs +40 -0
  186. package/recipes/textarea-recipe.d.ts +27 -0
  187. package/recipes/textarea-recipe.mjs +26 -0
  188. package/recipes/toggle-slot-recipe.d.ts +27 -0
  189. package/recipes/toggle-slot-recipe.mjs +38 -0
  190. package/recipes/tooltip-recipe.d.ts +27 -0
  191. package/recipes/tooltip-recipe.mjs +22 -0
  192. package/reset.css +214 -0
  193. package/styles.css +246 -0
  194. package/tokens/index.css +179 -0
  195. package/tokens/index.d.ts +9 -0
  196. package/tokens/index.mjs +848 -0
  197. package/tokens/keyframes.css +23 -0
  198. package/tokens/tokens.d.ts +57 -0
  199. package/types/composition.d.ts +111 -0
  200. package/types/conditions.d.ts +256 -0
  201. package/types/csstype.d.ts +20749 -0
  202. package/types/global.d.ts +19 -0
  203. package/types/index.d.ts +8 -0
  204. package/types/jsx.d.ts +54 -0
  205. package/types/parts.d.ts +8 -0
  206. package/types/pattern.d.ts +63 -0
  207. package/types/prop-type.d.ts +317 -0
  208. package/types/recipe.d.ts +146 -0
  209. package/types/selectors.d.ts +59 -0
  210. package/types/style-props.d.ts +653 -0
  211. package/types/system-types.d.ts +93 -0
@@ -0,0 +1,23 @@
1
+ @layer tokens {
2
+ @keyframes fade-in {
3
+ from {
4
+ opacity: 0
5
+ }
6
+ to {
7
+ opacity: 1
8
+ }
9
+ }
10
+ @keyframes fade-out {
11
+ from {
12
+ opacity: 1
13
+ }
14
+ to {
15
+ opacity: 0
16
+ }
17
+ }
18
+ @keyframes spin {
19
+ 100% {
20
+ transform: rotate(1turn)
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,57 @@
1
+ /* eslint-disable */
2
+ export type Token = "borders.none" | "borders.sm" | "borders.md" | "borders.lg" | "colors.currentcolor" | "colors.dark" | "colors.white" | "colors.background" | "colors.overlay" | "colors.brand.capital" | "colors.brand.esign" | "colors.brand.expense" | "colors.brand.flex" | "colors.brand.jurnal" | "colors.brand.klikpajak" | "colors.brand.mekari" | "colors.brand.qontak" | "colors.brand.talenta" | "colors.brand.university" | "colors.gray.25" | "colors.gray.50" | "colors.gray.100" | "colors.gray.400" | "colors.gray.600" | "colors.blue.50" | "colors.blue.100" | "colors.blue.400" | "colors.blue.500" | "colors.blue.700" | "colors.red.50" | "colors.red.400" | "colors.red.500" | "colors.red.700" | "colors.green.50" | "colors.green.400" | "colors.green.500" | "colors.green.700" | "colors.orange.50" | "colors.orange.400" | "colors.orange.500" | "colors.orange.700" | "colors.sky.100" | "colors.sky.400" | "colors.teal.100" | "colors.teal.400" | "colors.violet.100" | "colors.violet.400" | "colors.amber.100" | "colors.amber.400" | "colors.rose.100" | "colors.rose.400" | "colors.stone.100" | "colors.stone.400" | "colors.lime.100" | "colors.lime.400" | "colors.pink.100" | "colors.pink.400" | "colors.apricot.100" | "colors.apricot.400" | "colors.aqua.100" | "colors.aqua.400" | "colors.leaf.100" | "colors.leaf.400" | "colors.fuchsia.100" | "colors.fuchsia.400" | "colors.ice.50" | "colors.ice.100" | "colors.ash.100" | "durations.slow" | "durations.normal" | "durations.fast" | "fonts.body" | "fonts.mono" | "fontSizes.xs" | "fontSizes.sm" | "fontSizes.md" | "fontSizes.lg" | "fontSizes.xl" | "fontSizes.2xl" | "fontWeights.regular" | "fontWeights.semiBold" | "fontWeights.bold" | "lineHeights.xs" | "lineHeights.sm" | "lineHeights.md" | "lineHeights.lg" | "lineHeights.xl" | "lineHeights.2xl" | "lineHeights.3xl" | "letterSpacings.tighter" | "letterSpacings.tight" | "letterSpacings.normal" | "letterSpacings.wide" | "letterSpacings.wider" | "letterSpacings.widest" | "opacity.0" | "opacity.40" | "opacity.60" | "opacity.100" | "radii.none" | "radii.xs" | "radii.sm" | "radii.md" | "radii.lg" | "radii.xl" | "radii.full" | "shadows.xs" | "shadows.sm" | "shadows.md" | "shadows.lg" | "shadows.focus" | "shadows.xl" | "shadows.2xl" | "shadows.outline" | "shadows.outline-tab" | "shadows.outer" | "shadows.inner" | "shadows.none" | "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.16" | "sizes.20" | "sizes.22" | "sizes.65" | "sizes.0.25" | "sizes.0.5" | "sizes.2.5" | "sizes.7.5" | "sizes.9.5" | "sizes.full" | "sizes.breakpoint-sm" | "sizes.breakpoint-md" | "sizes.breakpoint-lg" | "sizes.breakpoint-xl" | "spacing.0" | "spacing.1" | "spacing.2" | "spacing.3" | "spacing.4" | "spacing.5" | "spacing.6" | "spacing.8" | "spacing.12" | "spacing.16" | "spacing.20" | "spacing.24" | "spacing.32" | "spacing.40" | "spacing.64" | "spacing.0.5" | "spacing.1.5" | "zIndex.hide" | "zIndex.base" | "zIndex.docked" | "zIndex.sticky" | "zIndex.overlay" | "zIndex.modal" | "zIndex.popover" | "zIndex.tooltip" | "breakpoints.sm" | "breakpoints.md" | "breakpoints.lg" | "breakpoints.xl" | "spacing.-0" | "spacing.-1" | "spacing.-2" | "spacing.-3" | "spacing.-4" | "spacing.-5" | "spacing.-6" | "spacing.-8" | "spacing.-12" | "spacing.-16" | "spacing.-20" | "spacing.-24" | "spacing.-32" | "spacing.-40" | "spacing.-64" | "spacing.-0.5" | "spacing.-1.5" | "colors.colorPalette" | "colors.colorPalette.capital" | "colors.colorPalette.esign" | "colors.colorPalette.expense" | "colors.colorPalette.flex" | "colors.colorPalette.jurnal" | "colors.colorPalette.klikpajak" | "colors.colorPalette.mekari" | "colors.colorPalette.qontak" | "colors.colorPalette.talenta" | "colors.colorPalette.university" | "colors.colorPalette.25" | "colors.colorPalette.50" | "colors.colorPalette.100" | "colors.colorPalette.400" | "colors.colorPalette.600" | "colors.colorPalette.500" | "colors.colorPalette.700"
3
+
4
+ export type ColorPalette = "currentcolor" | "dark" | "white" | "background" | "overlay" | "brand" | "gray" | "blue" | "red" | "green" | "orange" | "sky" | "teal" | "violet" | "amber" | "rose" | "stone" | "lime" | "pink" | "apricot" | "aqua" | "leaf" | "fuchsia" | "ice" | "ash"
5
+
6
+ export type BorderToken = "none" | "sm" | "md" | "lg"
7
+
8
+ export type ColorToken = "currentcolor" | "dark" | "white" | "background" | "overlay" | "brand.capital" | "brand.esign" | "brand.expense" | "brand.flex" | "brand.jurnal" | "brand.klikpajak" | "brand.mekari" | "brand.qontak" | "brand.talenta" | "brand.university" | "gray.25" | "gray.50" | "gray.100" | "gray.400" | "gray.600" | "blue.50" | "blue.100" | "blue.400" | "blue.500" | "blue.700" | "red.50" | "red.400" | "red.500" | "red.700" | "green.50" | "green.400" | "green.500" | "green.700" | "orange.50" | "orange.400" | "orange.500" | "orange.700" | "sky.100" | "sky.400" | "teal.100" | "teal.400" | "violet.100" | "violet.400" | "amber.100" | "amber.400" | "rose.100" | "rose.400" | "stone.100" | "stone.400" | "lime.100" | "lime.400" | "pink.100" | "pink.400" | "apricot.100" | "apricot.400" | "aqua.100" | "aqua.400" | "leaf.100" | "leaf.400" | "fuchsia.100" | "fuchsia.400" | "ice.50" | "ice.100" | "ash.100" | "colorPalette" | "colorPalette.capital" | "colorPalette.esign" | "colorPalette.expense" | "colorPalette.flex" | "colorPalette.jurnal" | "colorPalette.klikpajak" | "colorPalette.mekari" | "colorPalette.qontak" | "colorPalette.talenta" | "colorPalette.university" | "colorPalette.25" | "colorPalette.50" | "colorPalette.100" | "colorPalette.400" | "colorPalette.600" | "colorPalette.500" | "colorPalette.700"
9
+
10
+ export type DurationToken = "slow" | "normal" | "fast"
11
+
12
+ export type FontToken = "body" | "mono"
13
+
14
+ export type FontSizeToken = "xs" | "sm" | "md" | "lg" | "xl" | "2xl"
15
+
16
+ export type FontWeightToken = "regular" | "semiBold" | "bold"
17
+
18
+ export type LineHeightToken = "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl"
19
+
20
+ export type LetterSpacingToken = "tighter" | "tight" | "normal" | "wide" | "wider" | "widest"
21
+
22
+ export type OpacityToken = "0" | "40" | "60" | "100"
23
+
24
+ export type RadiusToken = "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full"
25
+
26
+ export type ShadowToken = "xs" | "sm" | "md" | "lg" | "focus" | "xl" | "2xl" | "outline" | "outline-tab" | "outer" | "inner" | "none"
27
+
28
+ export type SizeToken = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "16" | "20" | "22" | "65" | "0.25" | "0.5" | "2.5" | "7.5" | "9.5" | "full" | "breakpoint-sm" | "breakpoint-md" | "breakpoint-lg" | "breakpoint-xl"
29
+
30
+ export type SpacingToken = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "8" | "12" | "16" | "20" | "24" | "32" | "40" | "64" | "0.5" | "1.5" | "-0" | "-1" | "-2" | "-3" | "-4" | "-5" | "-6" | "-8" | "-12" | "-16" | "-20" | "-24" | "-32" | "-40" | "-64" | "-0.5" | "-1.5"
31
+
32
+ export type ZIndexToken = "hide" | "base" | "docked" | "sticky" | "overlay" | "modal" | "popover" | "tooltip"
33
+
34
+ export type BreakpointToken = "sm" | "md" | "lg" | "xl"
35
+
36
+ export type AnimationName = "fade-in" | "fade-out" | "spin"
37
+
38
+ export type Tokens = {
39
+ borders: BorderToken
40
+ colors: ColorToken
41
+ durations: DurationToken
42
+ fonts: FontToken
43
+ fontSizes: FontSizeToken
44
+ fontWeights: FontWeightToken
45
+ lineHeights: LineHeightToken
46
+ letterSpacings: LetterSpacingToken
47
+ opacity: OpacityToken
48
+ radii: RadiusToken
49
+ shadows: ShadowToken
50
+ sizes: SizeToken
51
+ spacing: SpacingToken
52
+ zIndex: ZIndexToken
53
+ breakpoints: BreakpointToken
54
+ animationName: AnimationName
55
+ } & { [token: string]: never }
56
+
57
+ export type TokenCategory = "zIndex" | "opacity" | "colors" | "fonts" | "fontSizes" | "fontWeights" | "lineHeights" | "letterSpacings" | "sizes" | "shadows" | "spacing" | "radii" | "borders" | "durations" | "easings" | "animations" | "blurs" | "gradients" | "breakpoints" | "assets"
@@ -0,0 +1,111 @@
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
+ | 'fontSize'
19
+ | 'fontSizeAdjust'
20
+ | 'fontVariationSettings'
21
+ | 'fontVariantPosition'
22
+ | 'fontVariantCaps'
23
+ | 'fontVariantNumeric'
24
+ | 'fontVariantAlternates'
25
+ | 'fontVariantLigatures'
26
+ | 'fontFamily'
27
+ | 'fontWeight'
28
+ | 'fontSynthesis'
29
+ | 'fontStyle'
30
+ | 'fontVariant'
31
+ | 'lineHeight'
32
+ | 'letterSpacing'
33
+ | 'textDecoration'
34
+ | 'textTransform'
35
+ | 'textIndent'
36
+ | 'textDecorationColor'
37
+ | 'textDecorationLine'
38
+ | 'textDecorationStyle'
39
+ | 'textEmphasisColor'
40
+ | 'textEmphasisPosition'
41
+ | 'textEmphasisStyle'
42
+ | 'hyphenateCharacter'
43
+ | 'textOrientation'
44
+ | 'textOverflow'
45
+ | 'textRendering'
46
+
47
+ export type TextStyle = CompositionStyleObject<TextStyleProperty>
48
+
49
+ export type TextStyles = Recursive<Token<TextStyle>>
50
+
51
+ /* -----------------------------------------------------------------------------
52
+ * Layer styles
53
+ * -----------------------------------------------------------------------------*/
54
+
55
+ type Placement =
56
+ | 'Top'
57
+ | 'Right'
58
+ | 'Bottom'
59
+ | 'Left'
60
+ | 'Inline'
61
+ | 'Block'
62
+ | 'InlineStart'
63
+ | 'InlineEnd'
64
+ | 'BlockStart'
65
+ | 'BlockEnd'
66
+
67
+ type Radius =
68
+ | `Top${'Right' | 'Left'}`
69
+ | `Bottom${'Right' | 'Left'}`
70
+ | `Start${'Start' | 'End'}`
71
+ | `End${'Start' | 'End'}`
72
+
73
+ type LayerStyleProperty =
74
+ | 'background'
75
+ | 'backgroundColor'
76
+ | 'backgroundImage'
77
+ | 'borderRadius'
78
+ | 'border'
79
+ | 'borderWidth'
80
+ | 'borderColor'
81
+ | 'borderStyle'
82
+ | 'boxShadow'
83
+ | 'filter'
84
+ | 'backdropFilter'
85
+ | 'transform'
86
+ | 'color'
87
+ | 'opacity'
88
+ | 'backgroundBlendMode'
89
+ | 'backgroundAttachment'
90
+ | 'backgroundClip'
91
+ | 'backgroundOrigin'
92
+ | 'backgroundPosition'
93
+ | 'backgroundRepeat'
94
+ | 'backgroundSize'
95
+ | `border${Placement}`
96
+ | `border${Placement}Width`
97
+ | 'borderRadius'
98
+ | `border${Radius}Radius`
99
+ | `border${Placement}Color`
100
+ | `border${Placement}Style`
101
+ | 'padding'
102
+ | `padding${Placement}`
103
+
104
+ export type LayerStyle = CompositionStyleObject<LayerStyleProperty>
105
+
106
+ export type LayerStyles = Recursive<Token<LayerStyle>>
107
+
108
+ export interface CompositionStyles {
109
+ textStyles: TextStyles
110
+ layerStyles: LayerStyles
111
+ }
@@ -0,0 +1,256 @@
1
+ /* eslint-disable */
2
+ import type { AnySelector, Selectors } from './selectors';
3
+
4
+ export interface Conditions {
5
+ /** `&:is(:hover, [data-hover])` */
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], [aria-disabled=true], [data-disabled])` */
14
+ "_disabled": string
15
+ /** `&[data-active=true], [data-active]` */
16
+ "_active": string
17
+ /** `&:visited` */
18
+ "_visited": string
19
+ /** `&:target` */
20
+ "_target": string
21
+ /** `&:is(:read-only, [data-read-only])` */
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
+ /** `&::before` */
36
+ "_before": string
37
+ /** `&::after` */
38
+ "_after": string
39
+ /** `&::first-letter` */
40
+ "_firstLetter": string
41
+ /** `&::first-line` */
42
+ "_firstLine": string
43
+ /** `&::marker` */
44
+ "_marker": string
45
+ /** `&::selection` */
46
+ "_selection": string
47
+ /** `&::file-selector-button` */
48
+ "_file": string
49
+ /** `&::backdrop` */
50
+ "_backdrop": string
51
+ /** `&:first-child` */
52
+ "_first": string
53
+ /** `&:last-child` */
54
+ "_last": string
55
+ /** `&:only-child` */
56
+ "_only": string
57
+ /** `&:nth-child(even)` */
58
+ "_even": string
59
+ /** `&:nth-child(odd)` */
60
+ "_odd": string
61
+ /** `&:first-of-type` */
62
+ "_firstOfType": string
63
+ /** `&:last-of-type` */
64
+ "_lastOfType": string
65
+ /** `&:only-of-type` */
66
+ "_onlyOfType": string
67
+ /** `.peer:is(:focus, [data-focus]) ~ &` */
68
+ "_peerFocus": string
69
+ /** `.peer:is(:hover, [data-hover]) ~ &` */
70
+ "_peerHover": string
71
+ /** `.peer:is(:active, [data-active]) ~ &` */
72
+ "_peerActive": string
73
+ /** `.peer:focus-within ~ &` */
74
+ "_peerFocusWithin": string
75
+ /** `.peer:is(:focus-visible, [data-focus-visible]) ~ &` */
76
+ "_peerFocusVisible": string
77
+ /** `.peer:is(:disabled, [disabled], [data-disabled]) ~ &` */
78
+ "_peerDisabled": string
79
+ /** `.peer:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) ~ &` */
80
+ "_peerChecked": string
81
+ /** `.peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &` */
82
+ "_peerInvalid": string
83
+ /** `.peer:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) ~ &` */
84
+ "_peerExpanded": string
85
+ /** `.peer:placeholder-shown ~ &` */
86
+ "_peerPlaceholderShown": string
87
+ /** `.group:is(:focus, [data-focus]) &` */
88
+ "_groupFocus": string
89
+ /** `.group:is(:hover, [data-hover]) &` */
90
+ "_groupHover": string
91
+ /** `.group:is(:active, [data-active]) &` */
92
+ "_groupActive": string
93
+ /** `.group:focus-within &` */
94
+ "_groupFocusWithin": string
95
+ /** `.group:is(:focus-visible, [data-focus-visible]) &` */
96
+ "_groupFocusVisible": string
97
+ /** `.group:is(:disabled, [disabled], [data-disabled]) &` */
98
+ "_groupDisabled": string
99
+ /** `.group:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) &` */
100
+ "_groupChecked": string
101
+ /** `.group:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) &` */
102
+ "_groupExpanded": string
103
+ /** `.group:invalid &` */
104
+ "_groupInvalid": string
105
+ /** `&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])` */
106
+ "_indeterminate": string
107
+ /** `&:is(:required, [data-required], [aria-required=true])` */
108
+ "_required": string
109
+ /** `&:is(:valid, [data-valid])` */
110
+ "_valid": string
111
+ /** `&:is(:invalid, [aria-invalid=true], [data-invalid])` */
112
+ "_invalid": string
113
+ /** `&:autofill` */
114
+ "_autofill": string
115
+ /** `&:in-range` */
116
+ "_inRange": string
117
+ /** `&:out-of-range` */
118
+ "_outOfRange": string
119
+ /** `&::placeholder` */
120
+ "_placeholder": string
121
+ /** `&:placeholder-shown` */
122
+ "_placeholderShown": string
123
+ /** `&:is([aria-pressed=true], [data-pressed])` */
124
+ "_pressed": string
125
+ /** `&:is([aria-selected=true], [data-selected])` */
126
+ "_selected": string
127
+ /** `&:default` */
128
+ "_default": string
129
+ /** `&:optional` */
130
+ "_optional": string
131
+ /** `&:is([open], [data-state=open])` */
132
+ "_open": string
133
+ /** `&:is([data-state=closed])` */
134
+ "_closed": string
135
+ /** `&:fullscreen` */
136
+ "_fullscreen": string
137
+ /** `& > [data-loading=true], &:is([data-loading], [aria-busy=true])` */
138
+ "_loading": string
139
+ /** `&[aria-current=page]` */
140
+ "_currentPage": string
141
+ /** `&[aria-current=step]` */
142
+ "_currentStep": string
143
+ /** `@media (prefers-reduced-motion: reduce)` */
144
+ "_motionReduce": string
145
+ /** `@media (prefers-reduced-motion: no-preference)` */
146
+ "_motionSafe": string
147
+ /** `@media print` */
148
+ "_print": string
149
+ /** `@media (orientation: landscape)` */
150
+ "_landscape": string
151
+ /** `@media (orientation: portrait)` */
152
+ "_portrait": string
153
+ /** ` &.dark, .dark &` */
154
+ "_dark": string
155
+ /** ` &.light, .light &` */
156
+ "_light": string
157
+ /** `@media (prefers-color-scheme: dark)` */
158
+ "_osDark": string
159
+ /** `@media (prefers-color-scheme: light)` */
160
+ "_osLight": string
161
+ /** `@media (forced-colors: active)` */
162
+ "_highContrast": string
163
+ /** `@media (prefers-contrast: less)` */
164
+ "_lessContrast": string
165
+ /** `@media (prefers-contrast: more)` */
166
+ "_moreContrast": string
167
+ /** `[dir=ltr] &` */
168
+ "_ltr": string
169
+ /** `[dir=rtl] &` */
170
+ "_rtl": string
171
+ /** `&::-webkit-scrollbar` */
172
+ "_scrollbar": string
173
+ /** `&::-webkit-scrollbar-thumb` */
174
+ "_scrollbarThumb": string
175
+ /** `&::-webkit-scrollbar-track` */
176
+ "_scrollbarTrack": string
177
+ /** `&[data-orientation=horizontal]` */
178
+ "_horizontal": string
179
+ /** `&[data-orientation=vertical]` */
180
+ "_vertical": string
181
+ /** `&:is([hidden])` */
182
+ "_hidden": string
183
+ /** `&:is([aria-collapsed=true], [data-collapsed], [data-state="collapsed"])` */
184
+ "_collapsed": string
185
+ /** `&[data-button-icon=true]` */
186
+ "_hasIcon": string
187
+ /** `&[data-highlight=true], [data-highlight]` */
188
+ "_highlight": string
189
+ /** `&[data-has-border=true]` */
190
+ "_hasBorder": string
191
+ /** `&[data-has-background=true]` */
192
+ "_hasBackground": string
193
+ /** `&[data-is-full-width=true]` */
194
+ "_isFullWidth": string
195
+ /** `&[data-placement=left]` */
196
+ "_placementLeft": string
197
+ /** `&[data-placement=right]` */
198
+ "_placementRight": string
199
+ /** `@media screen and (min-width: 22.5em)` */
200
+ "sm": string
201
+ /** `@media screen and (min-width: 22.5em) and (max-width: 47.9975em)` */
202
+ "smOnly": string
203
+ /** `@media screen and (max-width: 22.4975em)` */
204
+ "smDown": string
205
+ /** `@media screen and (min-width: 48em)` */
206
+ "md": string
207
+ /** `@media screen and (min-width: 48em) and (max-width: 63.9975em)` */
208
+ "mdOnly": string
209
+ /** `@media screen and (max-width: 47.9975em)` */
210
+ "mdDown": string
211
+ /** `@media screen and (min-width: 64em)` */
212
+ "lg": string
213
+ /** `@media screen and (min-width: 64em) and (max-width: 79.9975em)` */
214
+ "lgOnly": string
215
+ /** `@media screen and (max-width: 63.9975em)` */
216
+ "lgDown": string
217
+ /** `@media screen and (min-width: 80em)` */
218
+ "xl": string
219
+ /** `@media screen and (min-width: 80em)` */
220
+ "xlOnly": string
221
+ /** `@media screen and (max-width: 79.9975em)` */
222
+ "xlDown": string
223
+ /** `@media screen and (min-width: 22.5em) and (max-width: 47.9975em)` */
224
+ "smToMd": string
225
+ /** `@media screen and (min-width: 22.5em) and (max-width: 63.9975em)` */
226
+ "smToLg": string
227
+ /** `@media screen and (min-width: 22.5em) and (max-width: 79.9975em)` */
228
+ "smToXl": string
229
+ /** `@media screen and (min-width: 48em) and (max-width: 63.9975em)` */
230
+ "mdToLg": string
231
+ /** `@media screen and (min-width: 48em) and (max-width: 79.9975em)` */
232
+ "mdToXl": string
233
+ /** `@media screen and (min-width: 64em) and (max-width: 79.9975em)` */
234
+ "lgToXl": string
235
+ /** The base (=no conditions) styles to apply */
236
+ "base": string
237
+ }
238
+
239
+ export type Condition = keyof Conditions
240
+
241
+ export type Conditional<V> =
242
+ | V
243
+ | Array<V | null>
244
+ | {
245
+ [K in keyof Conditions]?: Conditional<V>
246
+ }
247
+
248
+ export type ConditionalValue<T> = Conditional<T>
249
+
250
+ export type Nested<P> = P & {
251
+ [K in Selectors]?: Nested<P>
252
+ } & {
253
+ [K in AnySelector]?: Nested<P>
254
+ } & {
255
+ [K in keyof Conditions]?: Nested<P>
256
+ }