daleui 0.0.2 → 0.0.5

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 (176) hide show
  1. package/README.md +43 -0
  2. package/dist/check-DEVerfH5.js +72 -0
  3. package/dist/components/Box/Box.d.ts +34 -0
  4. package/dist/components/Box/Box.js +34 -0
  5. package/dist/components/Button/Button.d.ts +37 -0
  6. package/dist/components/Button/Button.js +367 -0
  7. package/dist/components/Card/Card.d.ts +68 -0
  8. package/dist/components/Card/Card.js +132 -0
  9. package/dist/components/Checkbox/Checkbox.d.ts +34 -0
  10. package/dist/components/Checkbox/Checkbox.js +657 -0
  11. package/dist/components/Flex/Flex.d.ts +361 -0
  12. package/dist/components/Flex/Flex.js +65 -0
  13. package/dist/components/HStack/HStack.d.ts +23 -0
  14. package/dist/components/HStack/HStack.js +35 -0
  15. package/dist/components/Heading/Heading.d.ts +33 -0
  16. package/dist/components/Heading/Heading.js +67 -0
  17. package/dist/components/Icon/Icon.d.ts +20 -0
  18. package/dist/components/Icon/Icon.js +325 -0
  19. package/dist/components/Label/Label.d.ts +35 -0
  20. package/dist/components/Label/Label.js +74 -0
  21. package/dist/components/Link/Link.d.ts +33 -0
  22. package/dist/components/Link/Link.js +176 -0
  23. package/dist/components/PasswordInput/PasswordInput.d.ts +17 -0
  24. package/dist/components/PasswordInput/PasswordInput.js +151 -0
  25. package/dist/components/RadioGroup/RadioGroup.d.ts +82 -0
  26. package/dist/components/RadioGroup/RadioGroup.js +713 -0
  27. package/dist/components/Select/Select.d.ts +39 -0
  28. package/dist/components/Select/Select.js +222 -0
  29. package/dist/components/Tag/Tag.d.ts +26 -0
  30. package/dist/components/Tag/Tag.js +189 -0
  31. package/dist/components/Text/Text.d.ts +22 -0
  32. package/dist/components/Text/Text.js +115 -0
  33. package/dist/components/TextInput/TextInput.d.ts +21 -0
  34. package/dist/components/TextInput/TextInput.js +106 -0
  35. package/dist/components/VStack/VStack.d.ts +23 -0
  36. package/dist/components/VStack/VStack.js +35 -0
  37. package/dist/css-QiVVeZaw.js +212 -0
  38. package/dist/cva-BrKodHDH.js +57 -0
  39. package/dist/cx-DN21T1EH.js +9 -0
  40. package/dist/hstack-cCrHxysi.js +43 -0
  41. package/dist/index.css +1 -0
  42. package/dist/index.d.ts +18 -0
  43. package/dist/index.js +37 -0
  44. package/dist/tokens/colors.d.ts +4 -0
  45. package/dist/tokens/iconography.d.ts +45 -0
  46. package/dist/tokens/spacing.d.ts +42 -0
  47. package/dist/tokens/typography.d.ts +312 -0
  48. package/dist/use-locale-context-DYXE7B4r.js +775 -0
  49. package/package.json +62 -39
  50. package/styled-system/css/conditions.mjs +36 -0
  51. package/styled-system/css/css.d.ts +22 -0
  52. package/styled-system/css/css.mjs +45 -0
  53. package/styled-system/css/cva.d.ts +6 -0
  54. package/styled-system/css/cva.mjs +87 -0
  55. package/styled-system/css/cx.d.ts +5 -0
  56. package/styled-system/css/cx.mjs +15 -0
  57. package/styled-system/css/index.d.ts +5 -0
  58. package/styled-system/css/index.mjs +4 -0
  59. package/styled-system/css/sva.d.ts +4 -0
  60. package/styled-system/css/sva.mjs +46 -0
  61. package/styled-system/helpers.mjs +316 -0
  62. package/styled-system/patterns/aspect-ratio.d.ts +20 -0
  63. package/styled-system/patterns/aspect-ratio.mjs +38 -0
  64. package/styled-system/patterns/bleed.d.ts +21 -0
  65. package/styled-system/patterns/bleed.mjs +24 -0
  66. package/styled-system/patterns/box.d.ts +20 -0
  67. package/styled-system/patterns/box.mjs +15 -0
  68. package/styled-system/patterns/center.d.ts +20 -0
  69. package/styled-system/patterns/center.mjs +21 -0
  70. package/styled-system/patterns/circle.d.ts +20 -0
  71. package/styled-system/patterns/circle.mjs +25 -0
  72. package/styled-system/patterns/container.d.ts +20 -0
  73. package/styled-system/patterns/container.mjs +21 -0
  74. package/styled-system/patterns/cq.d.ts +21 -0
  75. package/styled-system/patterns/cq.mjs +21 -0
  76. package/styled-system/patterns/divider.d.ts +22 -0
  77. package/styled-system/patterns/divider.mjs +25 -0
  78. package/styled-system/patterns/flex.d.ts +26 -0
  79. package/styled-system/patterns/flex.mjs +26 -0
  80. package/styled-system/patterns/float.d.ts +23 -0
  81. package/styled-system/patterns/float.mjs +52 -0
  82. package/styled-system/patterns/grid-item.d.ts +25 -0
  83. package/styled-system/patterns/grid-item.mjs +25 -0
  84. package/styled-system/patterns/grid.d.ts +24 -0
  85. package/styled-system/patterns/grid.mjs +27 -0
  86. package/styled-system/patterns/hstack.d.ts +21 -0
  87. package/styled-system/patterns/hstack.mjs +24 -0
  88. package/styled-system/patterns/index.d.ts +21 -0
  89. package/styled-system/patterns/index.mjs +20 -0
  90. package/styled-system/patterns/link-overlay.d.ts +20 -0
  91. package/styled-system/patterns/link-overlay.mjs +24 -0
  92. package/styled-system/patterns/spacer.d.ts +20 -0
  93. package/styled-system/patterns/spacer.mjs +21 -0
  94. package/styled-system/patterns/square.d.ts +20 -0
  95. package/styled-system/patterns/square.mjs +24 -0
  96. package/styled-system/patterns/stack.d.ts +23 -0
  97. package/styled-system/patterns/stack.mjs +24 -0
  98. package/styled-system/patterns/visually-hidden.d.ts +20 -0
  99. package/styled-system/patterns/visually-hidden.mjs +18 -0
  100. package/styled-system/patterns/vstack.d.ts +21 -0
  101. package/styled-system/patterns/vstack.mjs +24 -0
  102. package/styled-system/patterns/wrap.d.ts +24 -0
  103. package/styled-system/patterns/wrap.mjs +25 -0
  104. package/styled-system/tokens/index.d.ts +9 -0
  105. package/styled-system/tokens/index.mjs +3176 -0
  106. package/styled-system/tokens/tokens.d.ts +63 -0
  107. package/styled-system/types/composition.d.ts +224 -0
  108. package/styled-system/types/conditions.d.ts +310 -0
  109. package/styled-system/types/csstype.d.ts +21298 -0
  110. package/styled-system/types/global.d.ts +20 -0
  111. package/styled-system/types/index.d.ts +7 -0
  112. package/styled-system/types/parts.d.ts +8 -0
  113. package/styled-system/types/pattern.d.ts +78 -0
  114. package/styled-system/types/prop-type.d.ts +265 -0
  115. package/styled-system/types/recipe.d.ts +181 -0
  116. package/styled-system/types/selectors.d.ts +59 -0
  117. package/styled-system/types/static-css.d.ts +56 -0
  118. package/styled-system/types/style-props.d.ts +7504 -0
  119. package/styled-system/types/system-types.d.ts +269 -0
  120. package/.github/CODEOWNERS +0 -1
  121. package/.github/FUNDING.yml +0 -1
  122. package/.github/workflows/automation.yml +0 -13
  123. package/.github/workflows/chromatic.yml +0 -19
  124. package/.github/workflows/deployment.yml +0 -32
  125. package/.github/workflows/integration.yml +0 -15
  126. package/.github/workflows/storybook-tests.yml +0 -17
  127. package/.storybook/main.ts +0 -18
  128. package/.storybook/preview.ts +0 -29
  129. package/.storybook/test-runner.ts +0 -33
  130. package/bun.lock +0 -2099
  131. package/chromatic.config.json +0 -5
  132. package/eslint.config.js +0 -28
  133. package/index.html +0 -13
  134. package/panda.config.ts +0 -61
  135. package/postcss.config.cjs +0 -5
  136. package/public/logo.svg +0 -9
  137. package/src/App.tsx +0 -67
  138. package/src/assets/Discord.svg +0 -1
  139. package/src/assets/GitHub.svg +0 -1
  140. package/src/assets/LinkedIn.svg +0 -1
  141. package/src/assets/Medium.svg +0 -1
  142. package/src/assets/YouTube.svg +0 -1
  143. package/src/components/Button/Button.stories.tsx +0 -115
  144. package/src/components/Button/Button.test.tsx +0 -108
  145. package/src/components/Button/Button.tsx +0 -245
  146. package/src/components/Button/index.tsx +0 -1
  147. package/src/components/Checkbox/Checkbox.stories.tsx +0 -129
  148. package/src/components/Checkbox/Checkbox.test.tsx +0 -169
  149. package/src/components/Checkbox/Checkbox.tsx +0 -190
  150. package/src/components/Heading/Heading.stories.tsx +0 -72
  151. package/src/components/Heading/Heading.test.tsx +0 -55
  152. package/src/components/Heading/Heading.tsx +0 -73
  153. package/src/components/Heading/index.tsx +0 -1
  154. package/src/components/Icon/Icon.stories.tsx +0 -106
  155. package/src/components/Icon/Icon.test.tsx +0 -44
  156. package/src/components/Icon/Icon.tsx +0 -116
  157. package/src/components/Icon/index.tsx +0 -1
  158. package/src/components/Text/Text.stories.tsx +0 -65
  159. package/src/components/Text/Text.test.tsx +0 -54
  160. package/src/components/Text/Text.tsx +0 -93
  161. package/src/components/Text/index.tsx +0 -1
  162. package/src/index.css +0 -2
  163. package/src/main.tsx +0 -10
  164. package/src/setupTests.tsx +0 -5
  165. package/src/styles/globalCss.ts +0 -43
  166. package/src/tokens/colors.mdx +0 -100
  167. package/src/tokens/colors.ts +0 -288
  168. package/src/tokens/iconography.mdx +0 -15
  169. package/src/tokens/iconography.tsx +0 -54
  170. package/src/tokens/typography.mdx +0 -38
  171. package/src/tokens/typography.ts +0 -132
  172. package/src/vite-env.d.ts +0 -2
  173. package/tsconfig.app.json +0 -25
  174. package/tsconfig.json +0 -7
  175. package/tsconfig.node.json +0 -22
  176. package/vite.config.ts +0 -16
@@ -0,0 +1,20 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ import type * as Panda from '@pandacss/dev'
4
+ import type { RecipeVariantRecord, RecipeConfig, SlotRecipeVariantRecord, SlotRecipeConfig } from './recipe';
5
+ import type { Parts } from './parts';
6
+ import type { PatternConfig, PatternProperties } from './pattern';
7
+ import type { GlobalStyleObject, SystemStyleObject } from './system-types';
8
+ import type { CompositionStyles } from './composition';
9
+
10
+ declare module '@pandacss/dev' {
11
+ export function defineRecipe<V extends RecipeVariantRecord>(config: RecipeConfig<V>): Panda.RecipeConfig
12
+ export function defineSlotRecipe<S extends string, V extends SlotRecipeVariantRecord<S>>(config: SlotRecipeConfig<S, V>): Panda.SlotRecipeConfig
13
+ export function defineStyles(definition: SystemStyleObject): SystemStyleObject
14
+ export function defineGlobalStyles(definition: GlobalStyleObject): Panda.GlobalStyleObject
15
+ export function defineTextStyles(definition: CompositionStyles['textStyles']): Panda.TextStyles
16
+ export function defineAnimationStyles(definition: CompositionStyles['animationStyles']): Panda.AnimationStyles
17
+ export function defineLayerStyles(definition: CompositionStyles['layerStyles']): Panda.LayerStyles
18
+ export function definePattern<T extends PatternProperties>(config: PatternConfig<T>): Panda.PatternConfig
19
+ export function defineParts<T extends Parts>(parts: T): (config: Partial<Record<keyof T, SystemStyleObject>>) => Partial<Record<keyof T, SystemStyleObject>>
20
+ }
@@ -0,0 +1,7 @@
1
+ /* eslint-disable */
2
+ import './global.d.ts'
3
+ export * from './conditions';
4
+ export * from './pattern';
5
+ export * from './recipe';
6
+ export * from './system-types';
7
+ export * from './style-props';
@@ -0,0 +1,8 @@
1
+ /* eslint-disable */
2
+ export interface Part {
3
+ selector: string
4
+ }
5
+
6
+ export interface Parts {
7
+ [key: string]: Part
8
+ }
@@ -0,0 +1,78 @@
1
+ /* eslint-disable */
2
+ import type { CssProperty, SystemStyleObject } from './system-types';
3
+ import type { TokenCategory } from '../tokens/index';
4
+
5
+ type Primitive = string | number | boolean | null | undefined
6
+ type LiteralUnion<T, K extends Primitive = string> = T | (K & Record<never, never>)
7
+
8
+ export type PatternProperty =
9
+ | { type: 'property'; value: CssProperty; description?: string }
10
+ | { type: 'enum'; value: string[]; description?: string }
11
+ | { type: 'token'; value: TokenCategory; property?: CssProperty; description?: string }
12
+ | { type: 'string' | 'boolean' | 'number'; description?: string }
13
+
14
+ export interface PatternHelpers {
15
+ map: (value: any, fn: (value: string) => string | undefined) => any
16
+ isCssUnit: (value: any) => boolean
17
+ isCssVar: (value: any) => boolean
18
+ isCssFunction: (value: any) => boolean
19
+ }
20
+
21
+ export interface PatternProperties {
22
+ [key: string]: PatternProperty
23
+ }
24
+
25
+ type InferProps<T> = Record<LiteralUnion<keyof T>, any>
26
+
27
+ export type PatternDefaultValue<T> = Partial<InferProps<T>>
28
+
29
+ export type PatternDefaultValueFn<T> = (props: InferProps<T>) => PatternDefaultValue<T>
30
+
31
+ export interface PatternConfig<T extends PatternProperties = PatternProperties> {
32
+ /**
33
+ * The description of the pattern. This will be used in the JSDoc comment.
34
+ */
35
+ description?: string
36
+ /**
37
+ * The JSX element rendered by the pattern
38
+ * @default 'div'
39
+ */
40
+ jsxElement?: string
41
+ /**
42
+ * The properties of the pattern.
43
+ */
44
+ properties?: T
45
+ /**
46
+ * The default values of the pattern.
47
+ */
48
+ defaultValues?: PatternDefaultValue<T> | PatternDefaultValueFn<T>
49
+ /**
50
+ * The css object this pattern will generate.
51
+ */
52
+ transform?: (props: InferProps<T>, helpers: PatternHelpers) => SystemStyleObject
53
+ /**
54
+ * Whether the pattern is deprecated.
55
+ */
56
+ deprecated?: boolean | string
57
+ /**
58
+ * The jsx element name this pattern will generate.
59
+ */
60
+ jsxName?: string
61
+ /**
62
+ * The jsx elements to track for this pattern. Can be string or Regexp.
63
+ *
64
+ * @default capitalize(pattern.name)
65
+ * @example ['Button', 'Link', /Button$/]
66
+ */
67
+ jsx?: Array<string | RegExp>
68
+ /**
69
+ * Whether to only generate types for the specified properties.
70
+ * This will disallow css properties
71
+ */
72
+ strict?: boolean
73
+ /**
74
+ * @experimental
75
+ * Disallow certain css properties for this pattern
76
+ */
77
+ blocklist?: LiteralUnion<CssProperty>[]
78
+ }
@@ -0,0 +1,265 @@
1
+ /* eslint-disable */
2
+ import type { ConditionalValue } from './conditions';
3
+ import type { CssProperties } from './system-types';
4
+ import type { Tokens } from '../tokens/index';
5
+
6
+ export interface UtilityValues {
7
+ aspectRatio: Tokens["aspectRatios"];
8
+ top: Tokens["spacing"];
9
+ left: Tokens["spacing"];
10
+ inset: "auto" | Tokens["spacing"];
11
+ insetInline: Tokens["spacing"];
12
+ insetBlock: Tokens["spacing"];
13
+ insetBlockEnd: Tokens["spacing"];
14
+ insetBlockStart: Tokens["spacing"];
15
+ insetInlineEnd: Tokens["spacing"];
16
+ insetInlineStart: Tokens["spacing"];
17
+ right: Tokens["spacing"];
18
+ bottom: Tokens["spacing"];
19
+ float: "start" | "end" | CssProperties["float"];
20
+ hideFrom: Tokens["breakpoints"];
21
+ hideBelow: Tokens["breakpoints"];
22
+ flexBasis: Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "full";
23
+ flex: "1" | "auto" | "initial" | "none";
24
+ gridAutoColumns: "min" | "max" | "fr";
25
+ gridAutoRows: "min" | "max" | "fr";
26
+ gap: Tokens["spacing"];
27
+ gridGap: Tokens["spacing"];
28
+ gridRowGap: Tokens["spacing"];
29
+ gridColumnGap: Tokens["spacing"];
30
+ rowGap: Tokens["spacing"];
31
+ columnGap: Tokens["spacing"];
32
+ padding: Tokens["spacing"];
33
+ paddingLeft: Tokens["spacing"];
34
+ paddingRight: Tokens["spacing"];
35
+ paddingTop: Tokens["spacing"];
36
+ paddingBottom: Tokens["spacing"];
37
+ paddingBlock: Tokens["spacing"];
38
+ paddingBlockEnd: Tokens["spacing"];
39
+ paddingBlockStart: Tokens["spacing"];
40
+ paddingInline: Tokens["spacing"];
41
+ paddingInlineEnd: Tokens["spacing"];
42
+ paddingInlineStart: Tokens["spacing"];
43
+ marginLeft: "auto" | Tokens["spacing"];
44
+ marginRight: "auto" | Tokens["spacing"];
45
+ marginTop: "auto" | Tokens["spacing"];
46
+ marginBottom: "auto" | Tokens["spacing"];
47
+ margin: "auto" | Tokens["spacing"];
48
+ marginBlock: "auto" | Tokens["spacing"];
49
+ marginBlockEnd: "auto" | Tokens["spacing"];
50
+ marginBlockStart: "auto" | Tokens["spacing"];
51
+ marginInline: "auto" | Tokens["spacing"];
52
+ marginInlineEnd: "auto" | Tokens["spacing"];
53
+ marginInlineStart: "auto" | Tokens["spacing"];
54
+ spaceX: "auto" | Tokens["spacing"] | CssProperties["marginInlineStart"];
55
+ spaceY: "auto" | Tokens["spacing"] | CssProperties["marginBlockStart"];
56
+ outlineWidth: Tokens["borderWidths"];
57
+ outlineColor: Tokens["colors"];
58
+ outline: Tokens["borders"];
59
+ outlineOffset: Tokens["spacing"];
60
+ focusRing: "outside" | "inside" | "mixed" | "none";
61
+ focusVisibleRing: "outside" | "inside" | "mixed" | "none";
62
+ focusRingColor: Tokens["colors"];
63
+ focusRingOffset: Tokens["spacing"];
64
+ focusRingWidth: Tokens["borderWidths"] | CssProperties["outlineWidth"];
65
+ focusRingStyle: CssProperties["outlineStyle"];
66
+ divideX: Tokens["borderWidths"];
67
+ divideY: Tokens["borderWidths"];
68
+ divideColor: Tokens["colors"];
69
+ divideStyle: CssProperties["borderStyle"];
70
+ width: "auto" | Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
71
+ inlineSize: "auto" | Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
72
+ minWidth: "auto" | Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
73
+ minInlineSize: "auto" | Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
74
+ maxWidth: "auto" | Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
75
+ maxInlineSize: "auto" | Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
76
+ height: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
77
+ blockSize: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
78
+ minHeight: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
79
+ minBlockSize: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
80
+ maxHeight: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
81
+ maxBlockSize: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
82
+ boxSize: "auto" | Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
83
+ color: Tokens["colors"];
84
+ fontFamily: Tokens["fonts"];
85
+ fontSize: Tokens["fontSizes"];
86
+ fontWeight: Tokens["fontWeights"];
87
+ fontSmoothing: "antialiased" | "subpixel-antialiased";
88
+ letterSpacing: Tokens["letterSpacings"];
89
+ lineHeight: Tokens["lineHeights"];
90
+ textDecorationColor: Tokens["colors"];
91
+ textEmphasisColor: Tokens["colors"];
92
+ textIndent: Tokens["spacing"];
93
+ textShadow: Tokens["shadows"];
94
+ textShadowColor: Tokens["colors"];
95
+ WebkitTextFillColor: Tokens["colors"];
96
+ textWrap: "wrap" | "balance" | "nowrap";
97
+ truncate: boolean;
98
+ background: Tokens["colors"];
99
+ backgroundColor: Tokens["colors"];
100
+ backgroundGradient: "to-t" | "to-tr" | "to-r" | "to-br" | "to-b" | "to-bl" | "to-l" | "to-tl";
101
+ backgroundLinear: "to-t" | "to-tr" | "to-r" | "to-br" | "to-b" | "to-bl" | "to-l" | "to-tl";
102
+ textGradient: "to-t" | "to-tr" | "to-r" | "to-br" | "to-b" | "to-bl" | "to-l" | "to-tl";
103
+ gradientFrom: Tokens["colors"];
104
+ gradientTo: Tokens["colors"];
105
+ gradientVia: Tokens["colors"];
106
+ borderRadius: Tokens["radii"];
107
+ borderTopLeftRadius: Tokens["radii"];
108
+ borderTopRightRadius: Tokens["radii"];
109
+ borderBottomRightRadius: Tokens["radii"];
110
+ borderBottomLeftRadius: Tokens["radii"];
111
+ borderTopRadius: Tokens["radii"] | CssProperties["borderRadius"];
112
+ borderRightRadius: Tokens["radii"] | CssProperties["borderRadius"];
113
+ borderBottomRadius: Tokens["radii"] | CssProperties["borderRadius"];
114
+ borderLeftRadius: Tokens["radii"] | CssProperties["borderRadius"];
115
+ borderStartStartRadius: Tokens["radii"];
116
+ borderStartEndRadius: Tokens["radii"];
117
+ borderStartRadius: Tokens["radii"] | CssProperties["borderRadius"];
118
+ borderEndStartRadius: Tokens["radii"];
119
+ borderEndEndRadius: Tokens["radii"];
120
+ borderEndRadius: Tokens["radii"] | CssProperties["borderRadius"];
121
+ border: Tokens["borders"];
122
+ borderWidth: Tokens["borderWidths"];
123
+ borderTopWidth: Tokens["borderWidths"];
124
+ borderLeftWidth: Tokens["borderWidths"];
125
+ borderRightWidth: Tokens["borderWidths"];
126
+ borderBottomWidth: Tokens["borderWidths"];
127
+ borderBlockStartWidth: Tokens["borderWidths"];
128
+ borderBlockEndWidth: Tokens["borderWidths"];
129
+ borderColor: Tokens["colors"];
130
+ borderInline: Tokens["borders"];
131
+ borderInlineWidth: Tokens["borderWidths"];
132
+ borderInlineColor: Tokens["colors"];
133
+ borderBlock: Tokens["borders"];
134
+ borderBlockWidth: Tokens["borderWidths"];
135
+ borderBlockColor: Tokens["colors"];
136
+ borderLeft: Tokens["borders"];
137
+ borderLeftColor: Tokens["colors"];
138
+ borderInlineStart: Tokens["borders"];
139
+ borderInlineStartWidth: Tokens["borderWidths"];
140
+ borderInlineStartColor: Tokens["colors"];
141
+ borderRight: Tokens["borders"];
142
+ borderRightColor: Tokens["colors"];
143
+ borderInlineEnd: Tokens["borders"];
144
+ borderInlineEndWidth: Tokens["borderWidths"];
145
+ borderInlineEndColor: Tokens["colors"];
146
+ borderTop: Tokens["borders"];
147
+ borderTopColor: Tokens["colors"];
148
+ borderBottom: Tokens["borders"];
149
+ borderBottomColor: Tokens["colors"];
150
+ borderBlockEnd: Tokens["borders"];
151
+ borderBlockEndColor: Tokens["colors"];
152
+ borderBlockStart: Tokens["borders"];
153
+ borderBlockStartColor: Tokens["colors"];
154
+ boxShadow: Tokens["shadows"];
155
+ boxShadowColor: Tokens["colors"];
156
+ filter: "auto";
157
+ blur: Tokens["blurs"];
158
+ backdropFilter: "auto";
159
+ backdropBlur: Tokens["blurs"];
160
+ borderSpacing: Tokens["spacing"] | "auto";
161
+ borderSpacingX: Tokens["spacing"];
162
+ borderSpacingY: Tokens["spacing"];
163
+ transitionTimingFunction: Tokens["easings"];
164
+ transitionDelay: Tokens["durations"];
165
+ transitionDuration: Tokens["durations"];
166
+ transitionProperty: "common" | "colors" | "size" | "position" | "background";
167
+ transition: "all" | "common" | "size" | "position" | "background" | "colors" | "opacity" | "shadow" | "transform";
168
+ animation: Tokens["animations"];
169
+ animationName: "ping" | "pulse" | "bounce" | "spin";
170
+ animationTimingFunction: Tokens["easings"];
171
+ animationDuration: Tokens["durations"];
172
+ animationDelay: Tokens["durations"];
173
+ rotate: "auto" | "auto-3d" | CssProperties["rotate"];
174
+ rotateX: CssProperties["rotate"];
175
+ rotateY: CssProperties["rotate"];
176
+ rotateZ: CssProperties["rotate"];
177
+ scale: "auto" | CssProperties["scale"];
178
+ translate: "auto" | "auto-3d" | CssProperties["translate"];
179
+ translateX: Tokens["spacing"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "full" | "-1/2" | "-1/3" | "-2/3" | "-1/4" | "-2/4" | "-3/4" | "-full";
180
+ translateY: Tokens["spacing"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "full" | "-1/2" | "-1/3" | "-2/3" | "-1/4" | "-2/4" | "-3/4" | "-full";
181
+ translateZ: Tokens["spacing"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "full" | "-1/2" | "-1/3" | "-2/3" | "-1/4" | "-2/4" | "-3/4" | "-full";
182
+ accentColor: Tokens["colors"];
183
+ caretColor: Tokens["colors"];
184
+ scrollbar: "visible" | "hidden";
185
+ scrollbarColor: Tokens["colors"];
186
+ scrollbarWidth: Tokens["sizes"];
187
+ scrollMargin: Tokens["spacing"];
188
+ scrollMarginLeft: Tokens["spacing"];
189
+ scrollMarginRight: Tokens["spacing"];
190
+ scrollMarginTop: Tokens["spacing"];
191
+ scrollMarginBottom: Tokens["spacing"];
192
+ scrollMarginBlock: Tokens["spacing"];
193
+ scrollMarginBlockEnd: Tokens["spacing"];
194
+ scrollMarginBlockStart: Tokens["spacing"];
195
+ scrollMarginInline: Tokens["spacing"];
196
+ scrollMarginInlineEnd: Tokens["spacing"];
197
+ scrollMarginInlineStart: Tokens["spacing"];
198
+ scrollPadding: Tokens["spacing"];
199
+ scrollPaddingBlock: Tokens["spacing"];
200
+ scrollPaddingBlockStart: Tokens["spacing"];
201
+ scrollPaddingBlockEnd: Tokens["spacing"];
202
+ scrollPaddingInline: Tokens["spacing"];
203
+ scrollPaddingInlineEnd: Tokens["spacing"];
204
+ scrollPaddingInlineStart: Tokens["spacing"];
205
+ scrollPaddingLeft: Tokens["spacing"];
206
+ scrollPaddingRight: Tokens["spacing"];
207
+ scrollPaddingTop: Tokens["spacing"];
208
+ scrollPaddingBottom: Tokens["spacing"];
209
+ scrollSnapType: "none" | "x" | "y" | "both";
210
+ scrollSnapStrictness: "mandatory" | "proximity";
211
+ scrollSnapMargin: Tokens["spacing"];
212
+ scrollSnapMarginTop: Tokens["spacing"];
213
+ scrollSnapMarginBottom: Tokens["spacing"];
214
+ scrollSnapMarginLeft: Tokens["spacing"];
215
+ scrollSnapMarginRight: Tokens["spacing"];
216
+ fill: Tokens["colors"];
217
+ stroke: Tokens["colors"];
218
+ strokeWidth: Tokens["borderWidths"];
219
+ srOnly: boolean;
220
+ debug: boolean;
221
+ containerName: CssProperties["containerName"];
222
+ colorPalette: "current" | "black" | "white" | "transparent" | "rose" | "pink" | "fuchsia" | "purple" | "indigo" | "sky" | "cyan" | "emerald" | "lime" | "yellow" | "orange" | "neutral" | "stone" | "zinc" | "gray" | "base" | "slate" | "darkSlate" | "sage" | "darkSage" | "violet" | "darkViolet" | "teal" | "darkTeal" | "red" | "darkRed" | "amber" | "darkAmber" | "blue" | "darkBlue" | "green" | "darkGreen" | "appBg" | "fgSolid" | "bg" | "bg.brand" | "bg.neutral" | "bg.danger" | "border" | "border.brand" | "border.neutral" | "bgSolid" | "bgSolid.brand" | "bgSolid.neutral" | "bgSolid.danger" | "bgSolid.success" | "bgSolid.warning" | "bgSolid.info" | "fg" | "fg.brand" | "fg.neutral";
223
+ textStyle: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "display.lg" | "display.md" | "display.sm" | "title.lg" | "title.md" | "title.sm" | "body.lg" | "body.md" | "body.sm" | "label.lg" | "label.lg.underline" | "label.md" | "label.md.underline" | "label.md.strong" | "label.sm" | "label.sm.underline" | "caption" | "code" | "heading.1" | "heading.2" | "heading.3" | "heading.4" | "heading.5";
224
+ }
225
+
226
+
227
+
228
+ type WithColorOpacityModifier<T> = [T] extends [string] ? `${T}/${string}` & { __colorOpacityModifier?: true } : never
229
+
230
+ type ImportantMark = "!" | "!important"
231
+ type WhitespaceImportant = ` ${ImportantMark}`
232
+ type Important = ImportantMark | WhitespaceImportant
233
+ type WithImportant<T> = [T] extends [string] ? `${T}${Important}` & { __important?: true } : never
234
+
235
+ /**
236
+ * Only relevant when using `strictTokens` or `strictPropertyValues` in your config.
237
+ * - Allows you to use an escape hatch (e.g. `[123px]`) to use any string as a value.
238
+ * - Allows you to use a color opacity modifier (e.g. `red/300`) with known color values.
239
+ * - Allows you to use an important mark (e.g. `!` or `!important`) in the value.
240
+ *
241
+ * This is useful when you want to use a value that is not defined in the config or want to opt-out of the defaults.
242
+ *
243
+ * @example
244
+ * css({
245
+ * fontSize: '[123px]', // ⚠️ will not throw even if you haven't defined 123px as a token
246
+ * })
247
+ *
248
+ * @see https://panda-css.com/docs/concepts/writing-styles#stricttokens
249
+ * @see https://panda-css.com/docs/concepts/writing-styles#strictpropertyvalues
250
+ */
251
+ export type WithEscapeHatch<T> = T | `[${string}]` | WithColorOpacityModifier<T> | WithImportant<T>
252
+
253
+ /**
254
+ * Will restrict the value of properties that have predefined values to those values only.
255
+ *
256
+ * @example
257
+ * css({
258
+ * display: 'abc', // ❌ will throw
259
+ * })
260
+ *
261
+ * @see https://panda-css.com/docs/concepts/writing-styles#strictpropertyvalues
262
+ */
263
+ export type OnlyKnown<Key, Value> = Value extends boolean
264
+ ? Value
265
+ : Value extends `${infer _}` ? Value : never
@@ -0,0 +1,181 @@
1
+ /* eslint-disable */
2
+ import type { RecipeRule } from './static-css';
3
+ import type { SystemStyleObject, DistributiveOmit, Pretty } from './system-types';
4
+
5
+ type StringToBoolean<T> = T extends 'true' | 'false' ? boolean : T
6
+
7
+ export type RecipeVariantRecord = Record<any, Record<any, SystemStyleObject>>
8
+
9
+ export type RecipeSelection<T extends RecipeVariantRecord> = keyof any extends keyof T
10
+ ? {}
11
+ : {
12
+ [K in keyof T]?: StringToBoolean<keyof T[K]> | undefined
13
+ }
14
+
15
+ export type RecipeVariantFn<T extends RecipeVariantRecord> = (props?: RecipeSelection<T>) => string
16
+
17
+ /**
18
+ * Extract the variant as optional props from a `cva` function.
19
+ * Intended to be used with a JSX component, prefer `RecipeVariant` for a more strict type.
20
+ */
21
+ export type RecipeVariantProps<
22
+ T extends RecipeVariantFn<RecipeVariantRecord> | SlotRecipeVariantFn<string, SlotRecipeVariantRecord<string>>,
23
+ > = Pretty<Parameters<T>[0]>
24
+
25
+ /**
26
+ * Extract the variants from a `cva` function.
27
+ */
28
+ export type RecipeVariant<
29
+ T extends RecipeVariantFn<RecipeVariantRecord> | SlotRecipeVariantFn<string, SlotRecipeVariantRecord<string>>,
30
+ > = Exclude<Pretty<Required<RecipeVariantProps<T>>>, undefined>
31
+
32
+ type RecipeVariantMap<T extends RecipeVariantRecord> = {
33
+ [K in keyof T]: Array<keyof T[K]>
34
+ }
35
+
36
+ /* -----------------------------------------------------------------------------
37
+ * Recipe / Standard
38
+ * -----------------------------------------------------------------------------*/
39
+
40
+ export interface RecipeRuntimeFn<T extends RecipeVariantRecord> extends RecipeVariantFn<T> {
41
+ __type: RecipeSelection<T>
42
+ variantKeys: (keyof T)[]
43
+ variantMap: RecipeVariantMap<T>
44
+ raw: (props?: RecipeSelection<T>) => SystemStyleObject
45
+ config: RecipeConfig<T>
46
+ splitVariantProps<Props extends RecipeSelection<T>>(
47
+ props: Props,
48
+ ): [RecipeSelection<T>, Pretty<DistributiveOmit<Props, keyof T>>]
49
+ getVariantProps: (props?: RecipeSelection<T>) => RecipeSelection<T>
50
+ }
51
+
52
+ type OneOrMore<T> = T | Array<T>
53
+
54
+ export type RecipeCompoundSelection<T> = {
55
+ [K in keyof T]?: OneOrMore<StringToBoolean<keyof T[K]>> | undefined
56
+ }
57
+
58
+ export type RecipeCompoundVariant<T> = T & {
59
+ css: SystemStyleObject
60
+ }
61
+
62
+ export interface RecipeDefinition<T extends RecipeVariantRecord = RecipeVariantRecord> {
63
+ /**
64
+ * The base styles of the recipe.
65
+ */
66
+ base?: SystemStyleObject
67
+ /**
68
+ * Whether the recipe is deprecated.
69
+ */
70
+ deprecated?: boolean | string
71
+ /**
72
+ * The multi-variant styles of the recipe.
73
+ */
74
+ variants?: T
75
+ /**
76
+ * The default variants of the recipe.
77
+ */
78
+ defaultVariants?: RecipeSelection<T>
79
+ /**
80
+ * The styles to apply when a combination of variants is selected.
81
+ */
82
+ compoundVariants?: Pretty<RecipeCompoundVariant<RecipeCompoundSelection<T>>>[]
83
+ }
84
+
85
+ export type RecipeCreatorFn = <T extends RecipeVariantRecord>(config: RecipeDefinition<T>) => RecipeRuntimeFn<T>
86
+
87
+ interface RecipeConfigMeta {
88
+ /**
89
+ * The class name of the recipe.
90
+ */
91
+ className: string
92
+ /**
93
+ * The description of the recipe. This will be used in the JSDoc comment.
94
+ */
95
+ description?: string
96
+ /**
97
+ * The jsx elements to track for this recipe. Can be string or Regexp.
98
+ *
99
+ * @default capitalize(recipe.name)
100
+ * @example ['Button', 'Link', /Button$/]
101
+ */
102
+ jsx?: Array<string | RegExp>
103
+ /**
104
+ * Variants to pre-generate, will be include in the final `config.staticCss`
105
+ */
106
+ staticCss?: RecipeRule[]
107
+ }
108
+
109
+ export interface RecipeConfig<T extends RecipeVariantRecord = RecipeVariantRecord>
110
+ extends RecipeDefinition<T>,
111
+ RecipeConfigMeta {}
112
+
113
+ /* -----------------------------------------------------------------------------
114
+ * Recipe / Slot
115
+ * -----------------------------------------------------------------------------*/
116
+
117
+ type SlotRecord<S extends string, T> = Partial<Record<S, T>>
118
+
119
+ export type SlotRecipeVariantRecord<S extends string> = Record<any, Record<any, SlotRecord<S, SystemStyleObject>>>
120
+
121
+ export type SlotRecipeVariantFn<S extends string, T extends RecipeVariantRecord> = (
122
+ props?: RecipeSelection<T>,
123
+ ) => SlotRecord<S, string>
124
+
125
+ export interface SlotRecipeRuntimeFn<S extends string, T extends SlotRecipeVariantRecord<S>>
126
+ extends SlotRecipeVariantFn<S, T> {
127
+ raw: (props?: RecipeSelection<T>) => Record<S, SystemStyleObject>
128
+ variantKeys: (keyof T)[]
129
+ variantMap: RecipeVariantMap<T>
130
+ splitVariantProps<Props extends RecipeSelection<T>>(
131
+ props: Props,
132
+ ): [RecipeSelection<T>, Pretty<DistributiveOmit<Props, keyof T>>]
133
+ getVariantProps: (props?: RecipeSelection<T>) => RecipeSelection<T>
134
+ }
135
+
136
+ export type SlotRecipeCompoundVariant<S extends string, T> = T & {
137
+ css: SlotRecord<S, SystemStyleObject>
138
+ }
139
+
140
+ export interface SlotRecipeDefinition<
141
+ S extends string = string,
142
+ T extends SlotRecipeVariantRecord<S> = SlotRecipeVariantRecord<S>,
143
+ > {
144
+ /**
145
+ * An optional class name that can be used to target slots in the DOM.
146
+ */
147
+ className?: string
148
+ /**
149
+ * Whether the recipe is deprecated.
150
+ */
151
+ deprecated?: boolean | string
152
+ /**
153
+ * The parts/slots of the recipe.
154
+ */
155
+ slots: S[] | Readonly<S[]>
156
+ /**
157
+ * The base styles of the recipe.
158
+ */
159
+ base?: SlotRecord<S, SystemStyleObject>
160
+ /**
161
+ * The multi-variant styles of the recipe.
162
+ */
163
+ variants?: T
164
+ /**
165
+ * The default variants of the recipe.
166
+ */
167
+ defaultVariants?: RecipeSelection<T>
168
+ /**
169
+ * The styles to apply when a combination of variants is selected.
170
+ */
171
+ compoundVariants?: Pretty<SlotRecipeCompoundVariant<S, RecipeCompoundSelection<T>>>[]
172
+ }
173
+
174
+ export type SlotRecipeCreatorFn = <S extends string, T extends SlotRecipeVariantRecord<S>>(
175
+ config: SlotRecipeDefinition<S, T>,
176
+ ) => SlotRecipeRuntimeFn<S, T>
177
+
178
+ export type SlotRecipeConfig<
179
+ S extends string = string,
180
+ T extends SlotRecipeVariantRecord<S> = SlotRecipeVariantRecord<S>,
181
+ > = SlotRecipeDefinition<S, T> & RecipeConfigMeta
@@ -0,0 +1,59 @@
1
+ /* eslint-disable */
2
+ import type { Pseudos } from './csstype';
3
+
4
+ type AriaAttributes =
5
+ | '[aria-disabled]'
6
+ | '[aria-hidden]'
7
+ | '[aria-invalid]'
8
+ | '[aria-readonly]'
9
+ | '[aria-required]'
10
+ | '[aria-selected]'
11
+ | '[aria-checked]'
12
+ | '[aria-expanded]'
13
+ | '[aria-pressed]'
14
+ | `[aria-current=${'page' | 'step' | 'location' | 'date' | 'time'}]`
15
+ | '[aria-invalid]'
16
+ | `[aria-sort=${'ascending' | 'descending'}]`
17
+
18
+ type DataAttributes =
19
+ | '[data-selected]'
20
+ | '[data-highlighted]'
21
+ | '[data-hover]'
22
+ | '[data-active]'
23
+ | '[data-checked]'
24
+ | '[data-disabled]'
25
+ | '[data-readonly]'
26
+ | '[data-focus]'
27
+ | '[data-focus-visible]'
28
+ | '[data-focus-visible-added]'
29
+ | '[data-invalid]'
30
+ | '[data-pressed]'
31
+ | '[data-expanded]'
32
+ | '[data-grabbed]'
33
+ | '[data-dragged]'
34
+ | '[data-orientation=horizontal]'
35
+ | '[data-orientation=vertical]'
36
+ | '[data-in-range]'
37
+ | '[data-out-of-range]'
38
+ | '[data-placeholder-shown]'
39
+ | `[data-part=${string}]`
40
+ | `[data-attr=${string}]`
41
+ | `[data-placement=${string}]`
42
+ | `[data-theme=${string}]`
43
+ | `[data-size=${string}]`
44
+ | `[data-state=${string}]`
45
+ | '[data-empty]'
46
+ | '[data-loading]'
47
+ | '[data-loaded]'
48
+ | '[data-enter]'
49
+ | '[data-entering]'
50
+ | '[data-exited]'
51
+ | '[data-exiting]'
52
+
53
+ type AttributeSelector = `&${Pseudos | DataAttributes | AriaAttributes}`
54
+ type ParentSelector = `${DataAttributes | AriaAttributes} &`
55
+
56
+ type AtRuleType = 'media' | 'layer' | 'container' | 'supports' | 'page' | 'scope' | 'starting-style'
57
+
58
+ export type AnySelector = `${string}&` | `&${string}` | `@${AtRuleType}${string}`
59
+ export type Selectors = AttributeSelector | ParentSelector