@discourser/design-system 0.1.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 (144) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +213 -0
  3. package/dist/index.cjs +1250 -0
  4. package/dist/index.cjs.map +1 -0
  5. package/dist/index.d.cts +456 -0
  6. package/dist/index.d.ts +456 -0
  7. package/dist/index.js +1234 -0
  8. package/dist/index.js.map +1 -0
  9. package/package.json +123 -0
  10. package/styled-system/css/conditions.mjs +36 -0
  11. package/styled-system/css/css.d.ts +22 -0
  12. package/styled-system/css/css.mjs +45 -0
  13. package/styled-system/css/cva.d.ts +6 -0
  14. package/styled-system/css/cva.mjs +87 -0
  15. package/styled-system/css/cx.d.ts +5 -0
  16. package/styled-system/css/cx.mjs +15 -0
  17. package/styled-system/css/index.d.ts +5 -0
  18. package/styled-system/css/index.mjs +4 -0
  19. package/styled-system/css/sva.d.ts +4 -0
  20. package/styled-system/css/sva.mjs +41 -0
  21. package/styled-system/helpers.mjs +336 -0
  22. package/styled-system/jsx/aspect-ratio.d.ts +10 -0
  23. package/styled-system/jsx/aspect-ratio.mjs +14 -0
  24. package/styled-system/jsx/bleed.d.ts +10 -0
  25. package/styled-system/jsx/bleed.mjs +14 -0
  26. package/styled-system/jsx/box.d.ts +10 -0
  27. package/styled-system/jsx/box.mjs +14 -0
  28. package/styled-system/jsx/center.d.ts +10 -0
  29. package/styled-system/jsx/center.mjs +14 -0
  30. package/styled-system/jsx/circle.d.ts +10 -0
  31. package/styled-system/jsx/circle.mjs +14 -0
  32. package/styled-system/jsx/container.d.ts +10 -0
  33. package/styled-system/jsx/container.mjs +14 -0
  34. package/styled-system/jsx/cq.d.ts +10 -0
  35. package/styled-system/jsx/cq.mjs +14 -0
  36. package/styled-system/jsx/divider.d.ts +10 -0
  37. package/styled-system/jsx/divider.mjs +14 -0
  38. package/styled-system/jsx/factory-helper.mjs +22 -0
  39. package/styled-system/jsx/factory.d.ts +3 -0
  40. package/styled-system/jsx/factory.mjs +80 -0
  41. package/styled-system/jsx/flex.d.ts +10 -0
  42. package/styled-system/jsx/flex.mjs +14 -0
  43. package/styled-system/jsx/float.d.ts +10 -0
  44. package/styled-system/jsx/float.mjs +14 -0
  45. package/styled-system/jsx/grid-item.d.ts +10 -0
  46. package/styled-system/jsx/grid-item.mjs +14 -0
  47. package/styled-system/jsx/grid.d.ts +10 -0
  48. package/styled-system/jsx/grid.mjs +14 -0
  49. package/styled-system/jsx/hstack.d.ts +10 -0
  50. package/styled-system/jsx/hstack.mjs +14 -0
  51. package/styled-system/jsx/index.d.ts +24 -0
  52. package/styled-system/jsx/index.mjs +22 -0
  53. package/styled-system/jsx/is-valid-prop.d.ts +11 -0
  54. package/styled-system/jsx/is-valid-prop.mjs +17 -0
  55. package/styled-system/jsx/link-overlay.d.ts +10 -0
  56. package/styled-system/jsx/link-overlay.mjs +14 -0
  57. package/styled-system/jsx/spacer.d.ts +10 -0
  58. package/styled-system/jsx/spacer.mjs +14 -0
  59. package/styled-system/jsx/square.d.ts +10 -0
  60. package/styled-system/jsx/square.mjs +14 -0
  61. package/styled-system/jsx/stack.d.ts +10 -0
  62. package/styled-system/jsx/stack.mjs +14 -0
  63. package/styled-system/jsx/visually-hidden.d.ts +10 -0
  64. package/styled-system/jsx/visually-hidden.mjs +14 -0
  65. package/styled-system/jsx/vstack.d.ts +10 -0
  66. package/styled-system/jsx/vstack.mjs +14 -0
  67. package/styled-system/jsx/wrap.d.ts +10 -0
  68. package/styled-system/jsx/wrap.mjs +14 -0
  69. package/styled-system/patterns/aspect-ratio.d.ts +21 -0
  70. package/styled-system/patterns/aspect-ratio.mjs +38 -0
  71. package/styled-system/patterns/bleed.d.ts +22 -0
  72. package/styled-system/patterns/bleed.mjs +24 -0
  73. package/styled-system/patterns/box.d.ts +21 -0
  74. package/styled-system/patterns/box.mjs +15 -0
  75. package/styled-system/patterns/center.d.ts +21 -0
  76. package/styled-system/patterns/center.mjs +21 -0
  77. package/styled-system/patterns/circle.d.ts +21 -0
  78. package/styled-system/patterns/circle.mjs +25 -0
  79. package/styled-system/patterns/container.d.ts +21 -0
  80. package/styled-system/patterns/container.mjs +21 -0
  81. package/styled-system/patterns/cq.d.ts +22 -0
  82. package/styled-system/patterns/cq.mjs +21 -0
  83. package/styled-system/patterns/divider.d.ts +23 -0
  84. package/styled-system/patterns/divider.mjs +25 -0
  85. package/styled-system/patterns/flex.d.ts +27 -0
  86. package/styled-system/patterns/flex.mjs +26 -0
  87. package/styled-system/patterns/float.d.ts +24 -0
  88. package/styled-system/patterns/float.mjs +52 -0
  89. package/styled-system/patterns/grid-item.d.ts +26 -0
  90. package/styled-system/patterns/grid-item.mjs +25 -0
  91. package/styled-system/patterns/grid.d.ts +25 -0
  92. package/styled-system/patterns/grid.mjs +27 -0
  93. package/styled-system/patterns/hstack.d.ts +22 -0
  94. package/styled-system/patterns/hstack.mjs +24 -0
  95. package/styled-system/patterns/index.d.ts +21 -0
  96. package/styled-system/patterns/index.mjs +20 -0
  97. package/styled-system/patterns/link-overlay.d.ts +21 -0
  98. package/styled-system/patterns/link-overlay.mjs +24 -0
  99. package/styled-system/patterns/spacer.d.ts +21 -0
  100. package/styled-system/patterns/spacer.mjs +21 -0
  101. package/styled-system/patterns/square.d.ts +21 -0
  102. package/styled-system/patterns/square.mjs +24 -0
  103. package/styled-system/patterns/stack.d.ts +24 -0
  104. package/styled-system/patterns/stack.mjs +24 -0
  105. package/styled-system/patterns/visually-hidden.d.ts +21 -0
  106. package/styled-system/patterns/visually-hidden.mjs +18 -0
  107. package/styled-system/patterns/vstack.d.ts +22 -0
  108. package/styled-system/patterns/vstack.mjs +24 -0
  109. package/styled-system/patterns/wrap.d.ts +25 -0
  110. package/styled-system/patterns/wrap.mjs +25 -0
  111. package/styled-system/recipes/button.d.ts +39 -0
  112. package/styled-system/recipes/button.mjs +40 -0
  113. package/styled-system/recipes/card.d.ts +39 -0
  114. package/styled-system/recipes/card.mjs +36 -0
  115. package/styled-system/recipes/create-recipe.mjs +82 -0
  116. package/styled-system/recipes/dialog.d.ts +35 -0
  117. package/styled-system/recipes/dialog.mjs +63 -0
  118. package/styled-system/recipes/icon-button.d.ts +39 -0
  119. package/styled-system/recipes/icon-button.mjs +39 -0
  120. package/styled-system/recipes/index.d.ts +7 -0
  121. package/styled-system/recipes/index.mjs +6 -0
  122. package/styled-system/recipes/input.d.ts +40 -0
  123. package/styled-system/recipes/input.mjs +40 -0
  124. package/styled-system/recipes/switch-control.d.ts +35 -0
  125. package/styled-system/recipes/switch-control.mjs +53 -0
  126. package/styled-system/recipes/switch.d.ts +35 -0
  127. package/styled-system/recipes/switch.mjs +53 -0
  128. package/styled-system/tokens/index.d.ts +9 -0
  129. package/styled-system/tokens/index.mjs +924 -0
  130. package/styled-system/tokens/tokens.d.ts +48 -0
  131. package/styled-system/types/composition.d.ts +164 -0
  132. package/styled-system/types/conditions.d.ts +306 -0
  133. package/styled-system/types/csstype.d.ts +21298 -0
  134. package/styled-system/types/global.d.ts +20 -0
  135. package/styled-system/types/index.d.ts +8 -0
  136. package/styled-system/types/jsx.d.ts +52 -0
  137. package/styled-system/types/parts.d.ts +8 -0
  138. package/styled-system/types/pattern.d.ts +78 -0
  139. package/styled-system/types/prop-type.d.ts +224 -0
  140. package/styled-system/types/recipe.d.ts +181 -0
  141. package/styled-system/types/selectors.d.ts +59 -0
  142. package/styled-system/types/static-css.d.ts +56 -0
  143. package/styled-system/types/style-props.d.ts +7468 -0
  144. package/styled-system/types/system-types.d.ts +109 -0
@@ -0,0 +1,48 @@
1
+ /* eslint-disable */
2
+ export type Token = "colors.primary.0" | "colors.primary.10" | "colors.primary.20" | "colors.primary.30" | "colors.primary.40" | "colors.primary.50" | "colors.primary.60" | "colors.primary.70" | "colors.primary.80" | "colors.primary.90" | "colors.primary.95" | "colors.primary.99" | "colors.primary.100" | "colors.secondary.0" | "colors.secondary.10" | "colors.secondary.20" | "colors.secondary.30" | "colors.secondary.40" | "colors.secondary.50" | "colors.secondary.60" | "colors.secondary.70" | "colors.secondary.80" | "colors.secondary.90" | "colors.secondary.95" | "colors.secondary.99" | "colors.secondary.100" | "colors.tertiary.0" | "colors.tertiary.10" | "colors.tertiary.20" | "colors.tertiary.30" | "colors.tertiary.40" | "colors.tertiary.50" | "colors.tertiary.60" | "colors.tertiary.70" | "colors.tertiary.80" | "colors.tertiary.90" | "colors.tertiary.95" | "colors.tertiary.99" | "colors.tertiary.100" | "colors.neutral.0" | "colors.neutral.10" | "colors.neutral.20" | "colors.neutral.30" | "colors.neutral.40" | "colors.neutral.50" | "colors.neutral.60" | "colors.neutral.70" | "colors.neutral.80" | "colors.neutral.90" | "colors.neutral.95" | "colors.neutral.99" | "colors.neutral.100" | "colors.neutralVariant.0" | "colors.neutralVariant.10" | "colors.neutralVariant.20" | "colors.neutralVariant.30" | "colors.neutralVariant.40" | "colors.neutralVariant.50" | "colors.neutralVariant.60" | "colors.neutralVariant.70" | "colors.neutralVariant.80" | "colors.neutralVariant.90" | "colors.neutralVariant.95" | "colors.neutralVariant.99" | "colors.neutralVariant.100" | "colors.error.0" | "colors.error.10" | "colors.error.20" | "colors.error.30" | "colors.error.40" | "colors.error.50" | "colors.error.60" | "colors.error.70" | "colors.error.80" | "colors.error.90" | "colors.error.95" | "colors.error.99" | "colors.error.100" | "fonts.display" | "fonts.body" | "fonts.mono" | "fontSizes.displayLarge" | "fontSizes.displayMedium" | "fontSizes.displaySmall" | "fontSizes.headlineLarge" | "fontSizes.headlineMedium" | "fontSizes.headlineSmall" | "fontSizes.titleLarge" | "fontSizes.titleMedium" | "fontSizes.titleSmall" | "fontSizes.bodyLarge" | "fontSizes.bodyMedium" | "fontSizes.bodySmall" | "fontSizes.labelLarge" | "fontSizes.labelMedium" | "fontSizes.labelSmall" | "lineHeights.displayLarge" | "lineHeights.displayMedium" | "lineHeights.displaySmall" | "lineHeights.headlineLarge" | "lineHeights.headlineMedium" | "lineHeights.headlineSmall" | "lineHeights.titleLarge" | "lineHeights.titleMedium" | "lineHeights.titleSmall" | "lineHeights.bodyLarge" | "lineHeights.bodyMedium" | "lineHeights.bodySmall" | "lineHeights.labelLarge" | "lineHeights.labelMedium" | "lineHeights.labelSmall" | "fontWeights.400" | "fontWeights.500" | "letterSpacings.displayLarge" | "letterSpacings.displayMedium" | "letterSpacings.displaySmall" | "letterSpacings.headlineLarge" | "letterSpacings.headlineMedium" | "letterSpacings.headlineSmall" | "letterSpacings.titleLarge" | "letterSpacings.titleMedium" | "letterSpacings.titleSmall" | "letterSpacings.bodyLarge" | "letterSpacings.bodyMedium" | "letterSpacings.bodySmall" | "letterSpacings.labelLarge" | "letterSpacings.labelMedium" | "letterSpacings.labelSmall" | "spacing.none" | "spacing.xxs" | "spacing.xs" | "spacing.sm" | "spacing.md" | "spacing.lg" | "spacing.xl" | "spacing.xxl" | "spacing.xxxl" | "radii.none" | "radii.extraSmall" | "radii.small" | "radii.medium" | "radii.large" | "radii.extraLarge" | "radii.full" | "shadows.level0" | "shadows.level1" | "shadows.level2" | "shadows.level3" | "shadows.level4" | "shadows.level5" | "durations.instant" | "durations.fast" | "durations.normal" | "durations.slow" | "durations.slower" | "easings.standard" | "easings.standardDecelerate" | "easings.standardAccelerate" | "easings.emphasized" | "easings.emphasizedDecelerate" | "easings.emphasizedAccelerate" | "breakpoints.sm" | "breakpoints.md" | "breakpoints.lg" | "breakpoints.xl" | "breakpoints.2xl" | "sizes.breakpoint-sm" | "sizes.breakpoint-md" | "sizes.breakpoint-lg" | "sizes.breakpoint-xl" | "sizes.breakpoint-2xl" | "colors.primary" | "colors.onPrimary" | "colors.primaryContainer" | "colors.onPrimaryContainer" | "colors.secondary" | "colors.onSecondary" | "colors.secondaryContainer" | "colors.onSecondaryContainer" | "colors.tertiary" | "colors.onTertiary" | "colors.tertiaryContainer" | "colors.onTertiaryContainer" | "colors.error" | "colors.onError" | "colors.errorContainer" | "colors.onErrorContainer" | "colors.surface" | "colors.onSurface" | "colors.surfaceVariant" | "colors.onSurfaceVariant" | "colors.surfaceContainerLowest" | "colors.surfaceContainerLow" | "colors.surfaceContainer" | "colors.surfaceContainerHigh" | "colors.surfaceContainerHighest" | "colors.outline" | "colors.outlineVariant" | "colors.inverseSurface" | "colors.inverseOnSurface" | "colors.inversePrimary" | "colors.background" | "colors.onBackground" | "colors.scrim" | "colors.shadow" | "spacing.-none" | "spacing.-xxs" | "spacing.-xs" | "spacing.-sm" | "spacing.-md" | "spacing.-lg" | "spacing.-xl" | "spacing.-xxl" | "spacing.-xxxl" | "colors.colorPalette.0" | "colors.colorPalette.10" | "colors.colorPalette.20" | "colors.colorPalette.30" | "colors.colorPalette.40" | "colors.colorPalette.50" | "colors.colorPalette.60" | "colors.colorPalette.70" | "colors.colorPalette.80" | "colors.colorPalette.90" | "colors.colorPalette.95" | "colors.colorPalette.99" | "colors.colorPalette.100" | "colors.colorPalette"
3
+
4
+ export type ColorPalette = "primary" | "secondary" | "tertiary" | "neutral" | "neutralVariant" | "error" | "onPrimary" | "primaryContainer" | "onPrimaryContainer" | "onSecondary" | "secondaryContainer" | "onSecondaryContainer" | "onTertiary" | "tertiaryContainer" | "onTertiaryContainer" | "onError" | "errorContainer" | "onErrorContainer" | "surface" | "onSurface" | "surfaceVariant" | "onSurfaceVariant" | "surfaceContainerLowest" | "surfaceContainerLow" | "surfaceContainer" | "surfaceContainerHigh" | "surfaceContainerHighest" | "outline" | "outlineVariant" | "inverseSurface" | "inverseOnSurface" | "inversePrimary" | "background" | "onBackground" | "scrim" | "shadow"
5
+
6
+ export type ColorToken = "primary.0" | "primary.10" | "primary.20" | "primary.30" | "primary.40" | "primary.50" | "primary.60" | "primary.70" | "primary.80" | "primary.90" | "primary.95" | "primary.99" | "primary.100" | "secondary.0" | "secondary.10" | "secondary.20" | "secondary.30" | "secondary.40" | "secondary.50" | "secondary.60" | "secondary.70" | "secondary.80" | "secondary.90" | "secondary.95" | "secondary.99" | "secondary.100" | "tertiary.0" | "tertiary.10" | "tertiary.20" | "tertiary.30" | "tertiary.40" | "tertiary.50" | "tertiary.60" | "tertiary.70" | "tertiary.80" | "tertiary.90" | "tertiary.95" | "tertiary.99" | "tertiary.100" | "neutral.0" | "neutral.10" | "neutral.20" | "neutral.30" | "neutral.40" | "neutral.50" | "neutral.60" | "neutral.70" | "neutral.80" | "neutral.90" | "neutral.95" | "neutral.99" | "neutral.100" | "neutralVariant.0" | "neutralVariant.10" | "neutralVariant.20" | "neutralVariant.30" | "neutralVariant.40" | "neutralVariant.50" | "neutralVariant.60" | "neutralVariant.70" | "neutralVariant.80" | "neutralVariant.90" | "neutralVariant.95" | "neutralVariant.99" | "neutralVariant.100" | "error.0" | "error.10" | "error.20" | "error.30" | "error.40" | "error.50" | "error.60" | "error.70" | "error.80" | "error.90" | "error.95" | "error.99" | "error.100" | "primary" | "onPrimary" | "primaryContainer" | "onPrimaryContainer" | "secondary" | "onSecondary" | "secondaryContainer" | "onSecondaryContainer" | "tertiary" | "onTertiary" | "tertiaryContainer" | "onTertiaryContainer" | "error" | "onError" | "errorContainer" | "onErrorContainer" | "surface" | "onSurface" | "surfaceVariant" | "onSurfaceVariant" | "surfaceContainerLowest" | "surfaceContainerLow" | "surfaceContainer" | "surfaceContainerHigh" | "surfaceContainerHighest" | "outline" | "outlineVariant" | "inverseSurface" | "inverseOnSurface" | "inversePrimary" | "background" | "onBackground" | "scrim" | "shadow" | "colorPalette.0" | "colorPalette.10" | "colorPalette.20" | "colorPalette.30" | "colorPalette.40" | "colorPalette.50" | "colorPalette.60" | "colorPalette.70" | "colorPalette.80" | "colorPalette.90" | "colorPalette.95" | "colorPalette.99" | "colorPalette.100" | "colorPalette"
7
+
8
+ export type FontToken = "display" | "body" | "mono"
9
+
10
+ export type FontSizeToken = "displayLarge" | "displayMedium" | "displaySmall" | "headlineLarge" | "headlineMedium" | "headlineSmall" | "titleLarge" | "titleMedium" | "titleSmall" | "bodyLarge" | "bodyMedium" | "bodySmall" | "labelLarge" | "labelMedium" | "labelSmall"
11
+
12
+ export type LineHeightToken = "displayLarge" | "displayMedium" | "displaySmall" | "headlineLarge" | "headlineMedium" | "headlineSmall" | "titleLarge" | "titleMedium" | "titleSmall" | "bodyLarge" | "bodyMedium" | "bodySmall" | "labelLarge" | "labelMedium" | "labelSmall"
13
+
14
+ export type FontWeightToken = "400" | "500"
15
+
16
+ export type LetterSpacingToken = "displayLarge" | "displayMedium" | "displaySmall" | "headlineLarge" | "headlineMedium" | "headlineSmall" | "titleLarge" | "titleMedium" | "titleSmall" | "bodyLarge" | "bodyMedium" | "bodySmall" | "labelLarge" | "labelMedium" | "labelSmall"
17
+
18
+ export type SpacingToken = "none" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | "xxxl" | "-none" | "-xxs" | "-xs" | "-sm" | "-md" | "-lg" | "-xl" | "-xxl" | "-xxxl"
19
+
20
+ export type RadiusToken = "none" | "extraSmall" | "small" | "medium" | "large" | "extraLarge" | "full"
21
+
22
+ export type ShadowToken = "level0" | "level1" | "level2" | "level3" | "level4" | "level5"
23
+
24
+ export type DurationToken = "instant" | "fast" | "normal" | "slow" | "slower"
25
+
26
+ export type EasingToken = "standard" | "standardDecelerate" | "standardAccelerate" | "emphasized" | "emphasizedDecelerate" | "emphasizedAccelerate"
27
+
28
+ export type BreakpointToken = "sm" | "md" | "lg" | "xl" | "2xl"
29
+
30
+ export type SizeToken = "breakpoint-sm" | "breakpoint-md" | "breakpoint-lg" | "breakpoint-xl" | "breakpoint-2xl"
31
+
32
+ export type Tokens = {
33
+ colors: ColorToken
34
+ fonts: FontToken
35
+ fontSizes: FontSizeToken
36
+ lineHeights: LineHeightToken
37
+ fontWeights: FontWeightToken
38
+ letterSpacings: LetterSpacingToken
39
+ spacing: SpacingToken
40
+ radii: RadiusToken
41
+ shadows: ShadowToken
42
+ durations: DurationToken
43
+ easings: EasingToken
44
+ breakpoints: BreakpointToken
45
+ sizes: SizeToken
46
+ } & { [token: string]: never }
47
+
48
+ 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,164 @@
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
+ | 'font'
19
+ | 'fontFamily'
20
+ | 'fontFeatureSettings'
21
+ | 'fontKerning'
22
+ | 'fontLanguageOverride'
23
+ | 'fontOpticalSizing'
24
+ | 'fontPalette'
25
+ | 'fontSize'
26
+ | 'fontSizeAdjust'
27
+ | 'fontStretch'
28
+ | 'fontStyle'
29
+ | 'fontSynthesis'
30
+ | 'fontVariant'
31
+ | 'fontVariantAlternates'
32
+ | 'fontVariantCaps'
33
+ | 'fontVariantLigatures'
34
+ | 'fontVariantNumeric'
35
+ | 'fontVariantPosition'
36
+ | 'fontVariationSettings'
37
+ | 'fontWeight'
38
+ | 'hypens'
39
+ | 'hyphenateCharacter'
40
+ | 'hyphenateLimitChars'
41
+ | 'letterSpacing'
42
+ | 'lineBreak'
43
+ | 'lineHeight'
44
+ | 'quotes'
45
+ | 'overflowWrap'
46
+ | 'textCombineUpright'
47
+ | 'textDecoration'
48
+ | 'textDecorationColor'
49
+ | 'textDecorationLine'
50
+ | 'textDecorationSkipInk'
51
+ | 'textDecorationStyle'
52
+ | 'textDecorationThickness'
53
+ | 'textEmphasis'
54
+ | 'textEmphasisColor'
55
+ | 'textEmphasisPosition'
56
+ | 'textEmphasisStyle'
57
+ | 'textIndent'
58
+ | 'textJustify'
59
+ | 'textOrientation'
60
+ | 'textOverflow'
61
+ | 'textRendering'
62
+ | 'textShadow'
63
+ | 'textTransform'
64
+ | 'textUnderlineOffset'
65
+ | 'textUnderlinePosition'
66
+ | 'textWrap'
67
+ | 'textWrapMode'
68
+ | 'textWrapStyle'
69
+ | 'verticalAlign'
70
+ | 'whiteSpace'
71
+ | 'wordBreak'
72
+ | 'wordSpacing'
73
+
74
+ export type TextStyle = CompositionStyleObject<TextStyleProperty>
75
+
76
+ export type TextStyles = Recursive<Token<TextStyle>>
77
+
78
+ /* -----------------------------------------------------------------------------
79
+ * Layer styles
80
+ * -----------------------------------------------------------------------------*/
81
+
82
+ type Placement =
83
+ | 'Top'
84
+ | 'Right'
85
+ | 'Bottom'
86
+ | 'Left'
87
+ | 'Inline'
88
+ | 'Block'
89
+ | 'InlineStart'
90
+ | 'InlineEnd'
91
+ | 'BlockStart'
92
+ | 'BlockEnd'
93
+
94
+ type Radius =
95
+ | `Top${'Right' | 'Left'}`
96
+ | `Bottom${'Right' | 'Left'}`
97
+ | `Start${'Start' | 'End'}`
98
+ | `End${'Start' | 'End'}`
99
+
100
+ type LayerStyleProperty =
101
+ | 'background'
102
+ | 'backgroundColor'
103
+ | 'backgroundImage'
104
+ | 'borderRadius'
105
+ | 'border'
106
+ | 'borderWidth'
107
+ | 'borderColor'
108
+ | 'borderStyle'
109
+ | 'boxShadow'
110
+ | 'filter'
111
+ | 'backdropFilter'
112
+ | 'transform'
113
+ | 'color'
114
+ | 'opacity'
115
+ | 'backgroundBlendMode'
116
+ | 'backgroundAttachment'
117
+ | 'backgroundClip'
118
+ | 'backgroundOrigin'
119
+ | 'backgroundPosition'
120
+ | 'backgroundRepeat'
121
+ | '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
+
131
+ export type LayerStyle = CompositionStyleObject<LayerStyleProperty>
132
+
133
+ export type LayerStyles = Recursive<Token<LayerStyle>>
134
+
135
+ /* -----------------------------------------------------------------------------
136
+ * Motion styles
137
+ * -----------------------------------------------------------------------------*/
138
+
139
+ type AnimationStyleProperty =
140
+ | 'animation'
141
+ | 'animationComposition'
142
+ | 'animationDelay'
143
+ | 'animationDirection'
144
+ | 'animationDuration'
145
+ | 'animationFillMode'
146
+ | 'animationIterationCount'
147
+ | 'animationName'
148
+ | 'animationPlayState'
149
+ | 'animationTimingFunction'
150
+ | 'animationRange'
151
+ | 'animationRangeStart'
152
+ | 'animationRangeEnd'
153
+ | 'animationTimeline'
154
+ | 'transformOrigin'
155
+
156
+ export type AnimationStyle = CompositionStyleObject<AnimationStyleProperty>
157
+
158
+ export type AnimationStyles = Recursive<Token<AnimationStyle>>
159
+
160
+ export interface CompositionStyles {
161
+ textStyles: TextStyles
162
+ layerStyles: LayerStyles
163
+ animationStyles: AnimationStyles
164
+ }
@@ -0,0 +1,306 @@
1
+ /* eslint-disable */
2
+ import type { AnySelector, Selectors } from './selectors';
3
+
4
+ export interface Conditions {
5
+ /** `[data-theme=light] &, .light &` */
6
+ "_light": string
7
+ /** `[data-theme=dark] &, .dark &` */
8
+ "_dark": string
9
+ /** `&:is(:hover, [data-hover])` */
10
+ "_hover": string
11
+ /** `&:is(:focus, [data-focus])` */
12
+ "_focus": string
13
+ /** `&:focus-within` */
14
+ "_focusWithin": string
15
+ /** `&:is(:focus-visible, [data-focus-visible])` */
16
+ "_focusVisible": string
17
+ /** `&:is(:disabled, [disabled], [data-disabled])` */
18
+ "_disabled": string
19
+ /** `&:is(:active, [data-active])` */
20
+ "_active": string
21
+ /** `&:visited` */
22
+ "_visited": string
23
+ /** `&:target` */
24
+ "_target": string
25
+ /** `&:is(:read-only, [data-read-only])` */
26
+ "_readOnly": string
27
+ /** `&:read-write` */
28
+ "_readWrite": string
29
+ /** `&:is(:empty, [data-empty])` */
30
+ "_empty": string
31
+ /** `&:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"])` */
32
+ "_checked": string
33
+ /** `&:enabled` */
34
+ "_enabled": string
35
+ /** `&:is([aria-expanded=true], [data-expanded], [data-state="expanded"])` */
36
+ "_expanded": string
37
+ /** `&[data-highlighted]` */
38
+ "_highlighted": string
39
+ /** `&[data-complete]` */
40
+ "_complete": string
41
+ /** `&[data-incomplete]` */
42
+ "_incomplete": string
43
+ /** `&[data-dragging]` */
44
+ "_dragging": string
45
+ /** `&::before` */
46
+ "_before": string
47
+ /** `&::after` */
48
+ "_after": string
49
+ /** `&::first-letter` */
50
+ "_firstLetter": string
51
+ /** `&::first-line` */
52
+ "_firstLine": string
53
+ /** `&::marker` */
54
+ "_marker": string
55
+ /** `&::selection` */
56
+ "_selection": string
57
+ /** `&::file-selector-button` */
58
+ "_file": string
59
+ /** `&::backdrop` */
60
+ "_backdrop": string
61
+ /** `&:first-child` */
62
+ "_first": string
63
+ /** `&:last-child` */
64
+ "_last": string
65
+ /** `&:only-child` */
66
+ "_only": string
67
+ /** `&:nth-child(even)` */
68
+ "_even": string
69
+ /** `&:nth-child(odd)` */
70
+ "_odd": string
71
+ /** `&:first-of-type` */
72
+ "_firstOfType": string
73
+ /** `&:last-of-type` */
74
+ "_lastOfType": string
75
+ /** `&:only-of-type` */
76
+ "_onlyOfType": string
77
+ /** `.peer:is(:focus, [data-focus]) ~ &` */
78
+ "_peerFocus": string
79
+ /** `.peer:is(:hover, [data-hover]) ~ &` */
80
+ "_peerHover": string
81
+ /** `.peer:is(:active, [data-active]) ~ &` */
82
+ "_peerActive": string
83
+ /** `.peer:focus-within ~ &` */
84
+ "_peerFocusWithin": string
85
+ /** `.peer:is(:focus-visible, [data-focus-visible]) ~ &` */
86
+ "_peerFocusVisible": string
87
+ /** `.peer:is(:disabled, [disabled], [data-disabled]) ~ &` */
88
+ "_peerDisabled": string
89
+ /** `.peer:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) ~ &` */
90
+ "_peerChecked": string
91
+ /** `.peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &` */
92
+ "_peerInvalid": string
93
+ /** `.peer:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) ~ &` */
94
+ "_peerExpanded": string
95
+ /** `.peer:placeholder-shown ~ &` */
96
+ "_peerPlaceholderShown": string
97
+ /** `.group:is(:focus, [data-focus]) &` */
98
+ "_groupFocus": string
99
+ /** `.group:is(:hover, [data-hover]) &` */
100
+ "_groupHover": string
101
+ /** `.group:is(:active, [data-active]) &` */
102
+ "_groupActive": string
103
+ /** `.group:focus-within &` */
104
+ "_groupFocusWithin": string
105
+ /** `.group:is(:focus-visible, [data-focus-visible]) &` */
106
+ "_groupFocusVisible": string
107
+ /** `.group:is(:disabled, [disabled], [data-disabled]) &` */
108
+ "_groupDisabled": string
109
+ /** `.group:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) &` */
110
+ "_groupChecked": string
111
+ /** `.group:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) &` */
112
+ "_groupExpanded": string
113
+ /** `.group:invalid &` */
114
+ "_groupInvalid": string
115
+ /** `&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state="indeterminate"])` */
116
+ "_indeterminate": string
117
+ /** `&:is(:required, [data-required], [aria-required=true])` */
118
+ "_required": string
119
+ /** `&:is(:valid, [data-valid])` */
120
+ "_valid": string
121
+ /** `&:is(:invalid, [data-invalid])` */
122
+ "_invalid": string
123
+ /** `&:autofill` */
124
+ "_autofill": string
125
+ /** `&:is(:in-range, [data-in-range])` */
126
+ "_inRange": string
127
+ /** `&:is(:out-of-range, [data-outside-range])` */
128
+ "_outOfRange": string
129
+ /** `&::placeholder, &[data-placeholder]` */
130
+ "_placeholder": string
131
+ /** `&:is(:placeholder-shown, [data-placeholder-shown])` */
132
+ "_placeholderShown": string
133
+ /** `&:is([aria-pressed=true], [data-pressed])` */
134
+ "_pressed": string
135
+ /** `&:is([aria-selected=true], [data-selected])` */
136
+ "_selected": string
137
+ /** `&:is([aria-grabbed=true], [data-grabbed])` */
138
+ "_grabbed": string
139
+ /** `&[data-state=under-value]` */
140
+ "_underValue": string
141
+ /** `&[data-state=over-value]` */
142
+ "_overValue": string
143
+ /** `&[data-state=at-value]` */
144
+ "_atValue": string
145
+ /** `&:default` */
146
+ "_default": string
147
+ /** `&:optional` */
148
+ "_optional": string
149
+ /** `&:is([open], [data-open], [data-state="open"])` */
150
+ "_open": string
151
+ /** `&:is([closed], [data-closed], [data-state="closed"])` */
152
+ "_closed": string
153
+ /** `&is(:fullscreen, [data-fullscreen])` */
154
+ "_fullscreen": string
155
+ /** `&:is([data-loading], [aria-busy=true])` */
156
+ "_loading": string
157
+ /** `&:is([hidden], [data-hidden])` */
158
+ "_hidden": string
159
+ /** `&:is([aria-current=true], [data-current])` */
160
+ "_current": string
161
+ /** `&[aria-current=page]` */
162
+ "_currentPage": string
163
+ /** `&[aria-current=step]` */
164
+ "_currentStep": string
165
+ /** `&[data-today]` */
166
+ "_today": string
167
+ /** `&[data-unavailable]` */
168
+ "_unavailable": string
169
+ /** `&[data-range-start]` */
170
+ "_rangeStart": string
171
+ /** `&[data-range-end]` */
172
+ "_rangeEnd": string
173
+ /** `&[data-now]` */
174
+ "_now": string
175
+ /** `&[data-topmost]` */
176
+ "_topmost": string
177
+ /** `@media (prefers-reduced-motion: reduce)` */
178
+ "_motionReduce": string
179
+ /** `@media (prefers-reduced-motion: no-preference)` */
180
+ "_motionSafe": string
181
+ /** `@media print` */
182
+ "_print": string
183
+ /** `@media (orientation: landscape)` */
184
+ "_landscape": string
185
+ /** `@media (orientation: portrait)` */
186
+ "_portrait": 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
+ /** `[dir=ltr] &` */
198
+ "_ltr": string
199
+ /** `[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 screen and (min-width: 40rem)` */
216
+ "sm": string
217
+ /** `@media screen and (min-width: 40rem) and (max-width: 47.9975rem)` */
218
+ "smOnly": string
219
+ /** `@media screen and (max-width: 39.9975rem)` */
220
+ "smDown": string
221
+ /** `@media screen and (min-width: 48rem)` */
222
+ "md": string
223
+ /** `@media screen and (min-width: 48rem) and (max-width: 63.9975rem)` */
224
+ "mdOnly": string
225
+ /** `@media screen and (max-width: 47.9975rem)` */
226
+ "mdDown": string
227
+ /** `@media screen and (min-width: 64rem)` */
228
+ "lg": string
229
+ /** `@media screen and (min-width: 64rem) and (max-width: 79.9975rem)` */
230
+ "lgOnly": string
231
+ /** `@media screen and (max-width: 63.9975rem)` */
232
+ "lgDown": string
233
+ /** `@media screen and (min-width: 80rem)` */
234
+ "xl": string
235
+ /** `@media screen and (min-width: 80rem) and (max-width: 95.9975rem)` */
236
+ "xlOnly": string
237
+ /** `@media screen and (max-width: 79.9975rem)` */
238
+ "xlDown": string
239
+ /** `@media screen and (min-width: 96rem)` */
240
+ "2xl": string
241
+ /** `@media screen and (min-width: 96rem)` */
242
+ "2xlOnly": string
243
+ /** `@media screen and (max-width: 95.9975rem)` */
244
+ "2xlDown": string
245
+ /** `@media screen and (min-width: 40rem) and (max-width: 47.9975rem)` */
246
+ "smToMd": string
247
+ /** `@media screen and (min-width: 40rem) and (max-width: 63.9975rem)` */
248
+ "smToLg": string
249
+ /** `@media screen and (min-width: 40rem) and (max-width: 79.9975rem)` */
250
+ "smToXl": string
251
+ /** `@media screen and (min-width: 40rem) and (max-width: 95.9975rem)` */
252
+ "smTo2xl": string
253
+ /** `@media screen and (min-width: 48rem) and (max-width: 63.9975rem)` */
254
+ "mdToLg": string
255
+ /** `@media screen and (min-width: 48rem) and (max-width: 79.9975rem)` */
256
+ "mdToXl": string
257
+ /** `@media screen and (min-width: 48rem) and (max-width: 95.9975rem)` */
258
+ "mdTo2xl": string
259
+ /** `@media screen and (min-width: 64rem) and (max-width: 79.9975rem)` */
260
+ "lgToXl": string
261
+ /** `@media screen and (min-width: 64rem) and (max-width: 95.9975rem)` */
262
+ "lgTo2xl": string
263
+ /** `@media screen and (min-width: 80rem) and (max-width: 95.9975rem)` */
264
+ "xlTo2xl": string
265
+ /** `@container (min-width: 20rem)` */
266
+ "@/xs": string
267
+ /** `@container (min-width: 24rem)` */
268
+ "@/sm": string
269
+ /** `@container (min-width: 28rem)` */
270
+ "@/md": string
271
+ /** `@container (min-width: 32rem)` */
272
+ "@/lg": string
273
+ /** `@container (min-width: 36rem)` */
274
+ "@/xl": string
275
+ /** `@container (min-width: 42rem)` */
276
+ "@/2xl": string
277
+ /** `@container (min-width: 48rem)` */
278
+ "@/3xl": string
279
+ /** `@container (min-width: 56rem)` */
280
+ "@/4xl": string
281
+ /** `@container (min-width: 64rem)` */
282
+ "@/5xl": string
283
+ /** `@container (min-width: 72rem)` */
284
+ "@/6xl": string
285
+ /** `@container (min-width: 80rem)` */
286
+ "@/7xl": string
287
+ /** `@container (min-width: 90rem)` */
288
+ "@/8xl": string
289
+ /** The base (=no conditions) styles to apply */
290
+ "base": string
291
+ }
292
+
293
+ export type ConditionalValue<V> =
294
+ | V
295
+ | Array<V | null>
296
+ | {
297
+ [K in keyof Conditions]?: ConditionalValue<V>
298
+ }
299
+
300
+ export type Nested<P> = P & {
301
+ [K in Selectors]?: Nested<P>
302
+ } & {
303
+ [K in AnySelector]?: Nested<P>
304
+ } & {
305
+ [K in keyof Conditions]?: Nested<P>
306
+ }