@chakra-ui/panda-preset 3.3.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 (295) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +20 -0
  3. package/dist/cjs/animation-styles.cjs +55 -0
  4. package/dist/cjs/breakpoints.cjs +12 -0
  5. package/dist/cjs/def.cjs +34 -0
  6. package/dist/cjs/global-css.cjs +50 -0
  7. package/dist/cjs/index.cjs +43 -0
  8. package/dist/cjs/keyframes.cjs +260 -0
  9. package/dist/cjs/layer-styles.cjs +114 -0
  10. package/dist/cjs/recipes/badge.cjs +72 -0
  11. package/dist/cjs/recipes/button.cjs +180 -0
  12. package/dist/cjs/recipes/checkmark.cjs +89 -0
  13. package/dist/cjs/recipes/code.cjs +68 -0
  14. package/dist/cjs/recipes/color-swatch.cjs +68 -0
  15. package/dist/cjs/recipes/container.cjs +35 -0
  16. package/dist/cjs/recipes/heading.cjs +54 -0
  17. package/dist/cjs/recipes/icon.cjs +47 -0
  18. package/dist/cjs/recipes/index.cjs +46 -0
  19. package/dist/cjs/recipes/input-addon.cjs +81 -0
  20. package/dist/cjs/recipes/input.cjs +98 -0
  21. package/dist/cjs/recipes/kbd.cjs +62 -0
  22. package/dist/cjs/recipes/link.cjs +40 -0
  23. package/dist/cjs/recipes/mark.cjs +31 -0
  24. package/dist/cjs/recipes/radiomark.cjs +102 -0
  25. package/dist/cjs/recipes/separator.cjs +56 -0
  26. package/dist/cjs/recipes/skeleton.cjs +55 -0
  27. package/dist/cjs/recipes/skip-nav-link.cjs +36 -0
  28. package/dist/cjs/recipes/spinner.cjs +49 -0
  29. package/dist/cjs/recipes/textarea.cjs +91 -0
  30. package/dist/cjs/semantic-tokens/colors.cjs +617 -0
  31. package/dist/cjs/semantic-tokens/index.cjs +14 -0
  32. package/dist/cjs/semantic-tokens/radii.cjs +18 -0
  33. package/dist/cjs/semantic-tokens/shadows.cjs +57 -0
  34. package/dist/cjs/slot-recipes/accordion.cjs +150 -0
  35. package/dist/cjs/slot-recipes/action-bar.cjs +65 -0
  36. package/dist/cjs/slot-recipes/alert.cjs +165 -0
  37. package/dist/cjs/slot-recipes/avatar.cjs +144 -0
  38. package/dist/cjs/slot-recipes/blockquote.cjs +82 -0
  39. package/dist/cjs/slot-recipes/breadcrumb.cjs +105 -0
  40. package/dist/cjs/slot-recipes/card.cjs +102 -0
  41. package/dist/cjs/slot-recipes/checkbox-card.cjs +287 -0
  42. package/dist/cjs/slot-recipes/checkbox.cjs +132 -0
  43. package/dist/cjs/slot-recipes/collapsible.cjs +24 -0
  44. package/dist/cjs/slot-recipes/color-picker.cjs +384 -0
  45. package/dist/cjs/slot-recipes/data-list.cjs +98 -0
  46. package/dist/cjs/slot-recipes/dialog.cjs +256 -0
  47. package/dist/cjs/slot-recipes/drawer.cjs +218 -0
  48. package/dist/cjs/slot-recipes/editable.cjs +114 -0
  49. package/dist/cjs/slot-recipes/empty-state.cjs +90 -0
  50. package/dist/cjs/slot-recipes/field.cjs +80 -0
  51. package/dist/cjs/slot-recipes/fieldset.cjs +82 -0
  52. package/dist/cjs/slot-recipes/file-upload.cjs +114 -0
  53. package/dist/cjs/slot-recipes/hover-card.cjs +70 -0
  54. package/dist/cjs/slot-recipes/index.cjs +98 -0
  55. package/dist/cjs/slot-recipes/list.cjs +73 -0
  56. package/dist/cjs/slot-recipes/menu.cjs +146 -0
  57. package/dist/cjs/slot-recipes/native-select.cjs +152 -0
  58. package/dist/cjs/slot-recipes/number-input.cjs +200 -0
  59. package/dist/cjs/slot-recipes/pin-input.cjs +121 -0
  60. package/dist/cjs/slot-recipes/popover.cjs +104 -0
  61. package/dist/cjs/slot-recipes/progress-circle.cjs +106 -0
  62. package/dist/cjs/slot-recipes/progress.cjs +147 -0
  63. package/dist/cjs/slot-recipes/qr-code.cjs +80 -0
  64. package/dist/cjs/slot-recipes/radio-card.cjs +317 -0
  65. package/dist/cjs/slot-recipes/radio-group.cjs +151 -0
  66. package/dist/cjs/slot-recipes/rating-group.cjs +88 -0
  67. package/dist/cjs/slot-recipes/segment-group.cjs +119 -0
  68. package/dist/cjs/slot-recipes/select.cjs +305 -0
  69. package/dist/cjs/slot-recipes/slider.cjs +218 -0
  70. package/dist/cjs/slot-recipes/stat.cjs +84 -0
  71. package/dist/cjs/slot-recipes/status.cjs +48 -0
  72. package/dist/cjs/slot-recipes/steps.cjs +231 -0
  73. package/dist/cjs/slot-recipes/switch.cjs +163 -0
  74. package/dist/cjs/slot-recipes/table.cjs +175 -0
  75. package/dist/cjs/slot-recipes/tabs.cjs +281 -0
  76. package/dist/cjs/slot-recipes/tag.cjs +147 -0
  77. package/dist/cjs/slot-recipes/timeline.cjs +151 -0
  78. package/dist/cjs/slot-recipes/toast.cjs +106 -0
  79. package/dist/cjs/slot-recipes/tooltip.cjs +44 -0
  80. package/dist/cjs/text-styles.cjs +88 -0
  81. package/dist/cjs/tokens/animations.cjs +21 -0
  82. package/dist/cjs/tokens/aspect-ratios.cjs +27 -0
  83. package/dist/cjs/tokens/blurs.cjs +33 -0
  84. package/dist/cjs/tokens/borders.cjs +24 -0
  85. package/dist/cjs/tokens/colors.cjs +441 -0
  86. package/dist/cjs/tokens/cursor.cjs +33 -0
  87. package/dist/cjs/tokens/durations.cjs +30 -0
  88. package/dist/cjs/tokens/easings.cjs +21 -0
  89. package/dist/cjs/tokens/font-sizes.cjs +51 -0
  90. package/dist/cjs/tokens/font-weights.cjs +36 -0
  91. package/dist/cjs/tokens/fonts.cjs +18 -0
  92. package/dist/cjs/tokens/index.cjs +42 -0
  93. package/dist/cjs/tokens/letter-spacings.cjs +24 -0
  94. package/dist/cjs/tokens/line-heights.cjs +24 -0
  95. package/dist/cjs/tokens/radii.cjs +42 -0
  96. package/dist/cjs/tokens/sizes.cjs +267 -0
  97. package/dist/cjs/tokens/spacing.cjs +111 -0
  98. package/dist/cjs/tokens/z-index.cjs +48 -0
  99. package/dist/cjs/utilities.cjs +85 -0
  100. package/dist/esm/animation-styles.js +53 -0
  101. package/dist/esm/breakpoints.js +10 -0
  102. package/dist/esm/def.js +22 -0
  103. package/dist/esm/global-css.js +48 -0
  104. package/dist/esm/index.js +39 -0
  105. package/dist/esm/keyframes.js +258 -0
  106. package/dist/esm/layer-styles.js +112 -0
  107. package/dist/esm/recipes/badge.js +70 -0
  108. package/dist/esm/recipes/button.js +178 -0
  109. package/dist/esm/recipes/checkmark.js +87 -0
  110. package/dist/esm/recipes/code.js +66 -0
  111. package/dist/esm/recipes/color-swatch.js +66 -0
  112. package/dist/esm/recipes/container.js +33 -0
  113. package/dist/esm/recipes/heading.js +52 -0
  114. package/dist/esm/recipes/icon.js +45 -0
  115. package/dist/esm/recipes/index.js +44 -0
  116. package/dist/esm/recipes/input-addon.js +79 -0
  117. package/dist/esm/recipes/input.js +96 -0
  118. package/dist/esm/recipes/kbd.js +60 -0
  119. package/dist/esm/recipes/link.js +38 -0
  120. package/dist/esm/recipes/mark.js +29 -0
  121. package/dist/esm/recipes/radiomark.js +100 -0
  122. package/dist/esm/recipes/separator.js +54 -0
  123. package/dist/esm/recipes/skeleton.js +53 -0
  124. package/dist/esm/recipes/skip-nav-link.js +34 -0
  125. package/dist/esm/recipes/spinner.js +47 -0
  126. package/dist/esm/recipes/textarea.js +89 -0
  127. package/dist/esm/semantic-tokens/colors.js +615 -0
  128. package/dist/esm/semantic-tokens/index.js +12 -0
  129. package/dist/esm/semantic-tokens/radii.js +16 -0
  130. package/dist/esm/semantic-tokens/shadows.js +55 -0
  131. package/dist/esm/slot-recipes/accordion.js +148 -0
  132. package/dist/esm/slot-recipes/action-bar.js +63 -0
  133. package/dist/esm/slot-recipes/alert.js +163 -0
  134. package/dist/esm/slot-recipes/avatar.js +142 -0
  135. package/dist/esm/slot-recipes/blockquote.js +80 -0
  136. package/dist/esm/slot-recipes/breadcrumb.js +103 -0
  137. package/dist/esm/slot-recipes/card.js +100 -0
  138. package/dist/esm/slot-recipes/checkbox-card.js +285 -0
  139. package/dist/esm/slot-recipes/checkbox.js +130 -0
  140. package/dist/esm/slot-recipes/collapsible.js +22 -0
  141. package/dist/esm/slot-recipes/color-picker.js +382 -0
  142. package/dist/esm/slot-recipes/data-list.js +96 -0
  143. package/dist/esm/slot-recipes/dialog.js +254 -0
  144. package/dist/esm/slot-recipes/drawer.js +216 -0
  145. package/dist/esm/slot-recipes/editable.js +112 -0
  146. package/dist/esm/slot-recipes/empty-state.js +88 -0
  147. package/dist/esm/slot-recipes/field.js +78 -0
  148. package/dist/esm/slot-recipes/fieldset.js +80 -0
  149. package/dist/esm/slot-recipes/file-upload.js +112 -0
  150. package/dist/esm/slot-recipes/hover-card.js +68 -0
  151. package/dist/esm/slot-recipes/index.js +96 -0
  152. package/dist/esm/slot-recipes/list.js +71 -0
  153. package/dist/esm/slot-recipes/menu.js +144 -0
  154. package/dist/esm/slot-recipes/native-select.js +150 -0
  155. package/dist/esm/slot-recipes/number-input.js +198 -0
  156. package/dist/esm/slot-recipes/pin-input.js +119 -0
  157. package/dist/esm/slot-recipes/popover.js +102 -0
  158. package/dist/esm/slot-recipes/progress-circle.js +104 -0
  159. package/dist/esm/slot-recipes/progress.js +145 -0
  160. package/dist/esm/slot-recipes/qr-code.js +78 -0
  161. package/dist/esm/slot-recipes/radio-card.js +315 -0
  162. package/dist/esm/slot-recipes/radio-group.js +149 -0
  163. package/dist/esm/slot-recipes/rating-group.js +86 -0
  164. package/dist/esm/slot-recipes/segment-group.js +117 -0
  165. package/dist/esm/slot-recipes/select.js +303 -0
  166. package/dist/esm/slot-recipes/slider.js +216 -0
  167. package/dist/esm/slot-recipes/stat.js +82 -0
  168. package/dist/esm/slot-recipes/status.js +46 -0
  169. package/dist/esm/slot-recipes/steps.js +229 -0
  170. package/dist/esm/slot-recipes/switch.js +161 -0
  171. package/dist/esm/slot-recipes/table.js +173 -0
  172. package/dist/esm/slot-recipes/tabs.js +279 -0
  173. package/dist/esm/slot-recipes/tag.js +145 -0
  174. package/dist/esm/slot-recipes/timeline.js +149 -0
  175. package/dist/esm/slot-recipes/toast.js +104 -0
  176. package/dist/esm/slot-recipes/tooltip.js +42 -0
  177. package/dist/esm/text-styles.js +86 -0
  178. package/dist/esm/tokens/animations.js +19 -0
  179. package/dist/esm/tokens/aspect-ratios.js +25 -0
  180. package/dist/esm/tokens/blurs.js +31 -0
  181. package/dist/esm/tokens/borders.js +22 -0
  182. package/dist/esm/tokens/colors.js +439 -0
  183. package/dist/esm/tokens/cursor.js +31 -0
  184. package/dist/esm/tokens/durations.js +28 -0
  185. package/dist/esm/tokens/easings.js +19 -0
  186. package/dist/esm/tokens/font-sizes.js +49 -0
  187. package/dist/esm/tokens/font-weights.js +34 -0
  188. package/dist/esm/tokens/fonts.js +16 -0
  189. package/dist/esm/tokens/index.js +40 -0
  190. package/dist/esm/tokens/letter-spacings.js +22 -0
  191. package/dist/esm/tokens/line-heights.js +22 -0
  192. package/dist/esm/tokens/radii.js +40 -0
  193. package/dist/esm/tokens/sizes.js +265 -0
  194. package/dist/esm/tokens/spacing.js +109 -0
  195. package/dist/esm/tokens/z-index.js +46 -0
  196. package/dist/esm/utilities.js +83 -0
  197. package/dist/types/animation-styles.d.ts +1 -0
  198. package/dist/types/breakpoints.d.ts +7 -0
  199. package/dist/types/def.d.ts +18 -0
  200. package/dist/types/global-css.d.ts +1 -0
  201. package/dist/types/index.d.mts +2 -0
  202. package/dist/types/index.d.ts +2 -0
  203. package/dist/types/keyframes.d.ts +255 -0
  204. package/dist/types/layer-styles.d.ts +1 -0
  205. package/dist/types/recipes/badge.d.ts +1 -0
  206. package/dist/types/recipes/button.d.ts +1 -0
  207. package/dist/types/recipes/checkmark.d.ts +1 -0
  208. package/dist/types/recipes/code.d.ts +1 -0
  209. package/dist/types/recipes/color-swatch.d.ts +1 -0
  210. package/dist/types/recipes/container.d.ts +1 -0
  211. package/dist/types/recipes/heading.d.ts +1 -0
  212. package/dist/types/recipes/icon.d.ts +1 -0
  213. package/dist/types/recipes/index.d.ts +21 -0
  214. package/dist/types/recipes/input-addon.d.ts +1 -0
  215. package/dist/types/recipes/input.d.ts +1 -0
  216. package/dist/types/recipes/kbd.d.ts +1 -0
  217. package/dist/types/recipes/link.d.ts +1 -0
  218. package/dist/types/recipes/mark.d.ts +1 -0
  219. package/dist/types/recipes/radiomark.d.ts +1 -0
  220. package/dist/types/recipes/separator.d.ts +1 -0
  221. package/dist/types/recipes/skeleton.d.ts +1 -0
  222. package/dist/types/recipes/skip-nav-link.d.ts +1 -0
  223. package/dist/types/recipes/spinner.d.ts +1 -0
  224. package/dist/types/recipes/textarea.d.ts +1 -0
  225. package/dist/types/semantic-tokens/colors.d.ts +610 -0
  226. package/dist/types/semantic-tokens/index.d.ts +673 -0
  227. package/dist/types/semantic-tokens/radii.d.ts +11 -0
  228. package/dist/types/semantic-tokens/shadows.d.ts +50 -0
  229. package/dist/types/slot-recipes/accordion.d.ts +1 -0
  230. package/dist/types/slot-recipes/action-bar.d.ts +1 -0
  231. package/dist/types/slot-recipes/alert.d.ts +1 -0
  232. package/dist/types/slot-recipes/avatar.d.ts +1 -0
  233. package/dist/types/slot-recipes/blockquote.d.ts +1 -0
  234. package/dist/types/slot-recipes/breadcrumb.d.ts +1 -0
  235. package/dist/types/slot-recipes/card.d.ts +1 -0
  236. package/dist/types/slot-recipes/checkbox-card.d.ts +1 -0
  237. package/dist/types/slot-recipes/checkbox.d.ts +1 -0
  238. package/dist/types/slot-recipes/collapsible.d.ts +1 -0
  239. package/dist/types/slot-recipes/color-picker.d.ts +1 -0
  240. package/dist/types/slot-recipes/data-list.d.ts +1 -0
  241. package/dist/types/slot-recipes/dialog.d.ts +1 -0
  242. package/dist/types/slot-recipes/drawer.d.ts +1 -0
  243. package/dist/types/slot-recipes/editable.d.ts +1 -0
  244. package/dist/types/slot-recipes/empty-state.d.ts +1 -0
  245. package/dist/types/slot-recipes/field.d.ts +1 -0
  246. package/dist/types/slot-recipes/fieldset.d.ts +1 -0
  247. package/dist/types/slot-recipes/file-upload.d.ts +1 -0
  248. package/dist/types/slot-recipes/hover-card.d.ts +1 -0
  249. package/dist/types/slot-recipes/index.d.ts +47 -0
  250. package/dist/types/slot-recipes/list.d.ts +1 -0
  251. package/dist/types/slot-recipes/menu.d.ts +1 -0
  252. package/dist/types/slot-recipes/native-select.d.ts +1 -0
  253. package/dist/types/slot-recipes/number-input.d.ts +1 -0
  254. package/dist/types/slot-recipes/pin-input.d.ts +1 -0
  255. package/dist/types/slot-recipes/popover.d.ts +1 -0
  256. package/dist/types/slot-recipes/progress-circle.d.ts +1 -0
  257. package/dist/types/slot-recipes/progress.d.ts +1 -0
  258. package/dist/types/slot-recipes/qr-code.d.ts +1 -0
  259. package/dist/types/slot-recipes/radio-card.d.ts +1 -0
  260. package/dist/types/slot-recipes/radio-group.d.ts +1 -0
  261. package/dist/types/slot-recipes/rating-group.d.ts +1 -0
  262. package/dist/types/slot-recipes/segment-group.d.ts +1 -0
  263. package/dist/types/slot-recipes/select.d.ts +1 -0
  264. package/dist/types/slot-recipes/slider.d.ts +1 -0
  265. package/dist/types/slot-recipes/stat.d.ts +1 -0
  266. package/dist/types/slot-recipes/status.d.ts +1 -0
  267. package/dist/types/slot-recipes/steps.d.ts +1 -0
  268. package/dist/types/slot-recipes/switch.d.ts +1 -0
  269. package/dist/types/slot-recipes/table.d.ts +1 -0
  270. package/dist/types/slot-recipes/tabs.d.ts +1 -0
  271. package/dist/types/slot-recipes/tag.d.ts +1 -0
  272. package/dist/types/slot-recipes/timeline.d.ts +1 -0
  273. package/dist/types/slot-recipes/toast.d.ts +1 -0
  274. package/dist/types/slot-recipes/tooltip.d.ts +1 -0
  275. package/dist/types/text-styles.d.ts +1 -0
  276. package/dist/types/tokens/animations.d.ts +14 -0
  277. package/dist/types/tokens/aspect-ratios.d.ts +20 -0
  278. package/dist/types/tokens/blurs.d.ts +26 -0
  279. package/dist/types/tokens/borders.d.ts +17 -0
  280. package/dist/types/tokens/colors.d.ts +434 -0
  281. package/dist/types/tokens/cursor.d.ts +26 -0
  282. package/dist/types/tokens/durations.d.ts +23 -0
  283. package/dist/types/tokens/easings.d.ts +14 -0
  284. package/dist/types/tokens/font-sizes.d.ts +44 -0
  285. package/dist/types/tokens/font-weights.d.ts +29 -0
  286. package/dist/types/tokens/fonts.d.ts +11 -0
  287. package/dist/types/tokens/index.d.ts +1134 -0
  288. package/dist/types/tokens/letter-spacings.d.ts +17 -0
  289. package/dist/types/tokens/line-heights.d.ts +17 -0
  290. package/dist/types/tokens/radii.d.ts +35 -0
  291. package/dist/types/tokens/sizes.d.ts +260 -0
  292. package/dist/types/tokens/spacing.d.ts +104 -0
  293. package/dist/types/tokens/z-index.d.ts +41 -0
  294. package/dist/types/utilities.d.ts +1 -0
  295. package/package.json +65 -0
@@ -0,0 +1,147 @@
1
+ "use strict";
2
+ 'use strict';
3
+
4
+ var def = require('../def.cjs');
5
+
6
+ const progressSlotRecipe = def.defineSlotRecipe({
7
+ slots: [
8
+ "root",
9
+ "label",
10
+ "track",
11
+ "range",
12
+ "valueText",
13
+ "view",
14
+ "circle",
15
+ "circleTrack",
16
+ "circleRange"
17
+ ],
18
+ className: "progress",
19
+ base: {
20
+ root: {
21
+ textStyle: "sm",
22
+ position: "relative"
23
+ },
24
+ track: {
25
+ overflow: "hidden",
26
+ position: "relative"
27
+ },
28
+ range: {
29
+ display: "flex",
30
+ alignItems: "center",
31
+ justifyContent: "center",
32
+ transitionProperty: "width, height",
33
+ transitionDuration: "slow",
34
+ height: "100%",
35
+ bgColor: "var(--track-color)",
36
+ _indeterminate: {
37
+ "--animate-from-x": "-40%",
38
+ "--animate-to-x": "100%",
39
+ position: "absolute",
40
+ willChange: "left",
41
+ minWidth: "50%",
42
+ animation: "position 1s ease infinite normal none running",
43
+ backgroundImage: "linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)"
44
+ }
45
+ },
46
+ label: {
47
+ display: "inline-flex",
48
+ fontWeight: "medium",
49
+ alignItems: "center",
50
+ gap: "1"
51
+ },
52
+ valueText: {
53
+ textStyle: "xs",
54
+ lineHeight: "1",
55
+ fontWeight: "medium"
56
+ }
57
+ },
58
+ variants: {
59
+ variant: {
60
+ outline: {
61
+ track: {
62
+ shadow: "inset",
63
+ bgColor: "bg.muted"
64
+ },
65
+ range: {
66
+ bgColor: "colorPalette.solid"
67
+ }
68
+ },
69
+ subtle: {
70
+ track: {
71
+ bgColor: "colorPalette.muted"
72
+ },
73
+ range: {
74
+ bgColor: "colorPalette.solid/72"
75
+ }
76
+ }
77
+ },
78
+ shape: {
79
+ square: {},
80
+ rounded: {
81
+ track: {
82
+ borderRadius: "l1"
83
+ }
84
+ },
85
+ full: {
86
+ track: {
87
+ borderRadius: "full"
88
+ }
89
+ }
90
+ },
91
+ striped: {
92
+ true: {
93
+ range: {
94
+ backgroundImage: "linear-gradient(45deg, var(--stripe-color) 25%, transparent 25%, transparent 50%, var(--stripe-color) 50%, var(--stripe-color) 75%, transparent 75%, transparent)",
95
+ backgroundSize: "var(--stripe-size) var(--stripe-size)",
96
+ "--stripe-size": "1rem",
97
+ "--stripe-color": {
98
+ _light: "rgba(255, 255, 255, 0.3)",
99
+ _dark: "rgba(0, 0, 0, 0.3)"
100
+ }
101
+ }
102
+ }
103
+ },
104
+ animated: {
105
+ true: {
106
+ range: {
107
+ "--animate-from": "var(--stripe-size)",
108
+ animation: "bg-position 1s linear infinite"
109
+ }
110
+ }
111
+ },
112
+ size: {
113
+ xs: {
114
+ track: {
115
+ h: "1.5"
116
+ }
117
+ },
118
+ sm: {
119
+ track: {
120
+ h: "2"
121
+ }
122
+ },
123
+ md: {
124
+ track: {
125
+ h: "2.5"
126
+ }
127
+ },
128
+ lg: {
129
+ track: {
130
+ h: "3"
131
+ }
132
+ },
133
+ xl: {
134
+ track: {
135
+ h: "4"
136
+ }
137
+ }
138
+ }
139
+ },
140
+ defaultVariants: {
141
+ variant: "outline",
142
+ size: "md",
143
+ shape: "rounded"
144
+ }
145
+ });
146
+
147
+ exports.progressSlotRecipe = progressSlotRecipe;
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ 'use strict';
3
+
4
+ var def = require('../def.cjs');
5
+
6
+ const qrCodeSlotRecipe = def.defineSlotRecipe({
7
+ slots: ["root", "frame", "pattern", "overlay", "downloadTrigger"],
8
+ className: "qr-code",
9
+ base: {
10
+ root: {
11
+ position: "relative",
12
+ width: "fit-content",
13
+ "--qr-code-overlay-size": "calc(var(--qr-code-size) / 3)"
14
+ },
15
+ frame: {
16
+ width: "var(--qr-code-size)",
17
+ height: "var(--qr-code-size)",
18
+ fill: "currentColor"
19
+ },
20
+ overlay: {
21
+ display: "flex",
22
+ alignItems: "center",
23
+ justifyContent: "center",
24
+ width: "var(--qr-code-overlay-size)",
25
+ height: "var(--qr-code-overlay-size)",
26
+ padding: "1",
27
+ bg: "bg",
28
+ rounded: "l1"
29
+ }
30
+ },
31
+ variants: {
32
+ size: {
33
+ "2xs": {
34
+ root: {
35
+ "--qr-code-size": "40px"
36
+ }
37
+ },
38
+ xs: {
39
+ root: {
40
+ "--qr-code-size": "64px"
41
+ }
42
+ },
43
+ sm: {
44
+ root: {
45
+ "--qr-code-size": "80px"
46
+ }
47
+ },
48
+ md: {
49
+ root: {
50
+ "--qr-code-size": "120px"
51
+ }
52
+ },
53
+ lg: {
54
+ root: {
55
+ "--qr-code-size": "160px"
56
+ }
57
+ },
58
+ xl: {
59
+ root: {
60
+ "--qr-code-size": "200px"
61
+ }
62
+ },
63
+ "2xl": {
64
+ root: {
65
+ "--qr-code-size": "240px"
66
+ }
67
+ },
68
+ full: {
69
+ root: {
70
+ "--qr-code-size": "100%"
71
+ }
72
+ }
73
+ }
74
+ },
75
+ defaultVariants: {
76
+ size: "md"
77
+ }
78
+ });
79
+
80
+ exports.qrCodeSlotRecipe = qrCodeSlotRecipe;
@@ -0,0 +1,317 @@
1
+ "use strict";
2
+ 'use strict';
3
+
4
+ var def = require('../def.cjs');
5
+
6
+ const radioCardSlotRecipe = def.defineSlotRecipe({
7
+ className: "radio-card",
8
+ slots: [
9
+ "root",
10
+ "label",
11
+ "item",
12
+ "itemText",
13
+ "itemControl",
14
+ "indicator",
15
+ "itemAddon",
16
+ "itemIndicator",
17
+ "itemContent",
18
+ "itemDescription"
19
+ ],
20
+ base: {
21
+ root: {
22
+ display: "flex",
23
+ flexDirection: "column",
24
+ gap: "1.5",
25
+ isolation: "isolate"
26
+ },
27
+ item: {
28
+ flex: "1",
29
+ display: "flex",
30
+ flexDirection: "column",
31
+ userSelect: "none",
32
+ position: "relative",
33
+ borderRadius: "l2",
34
+ _focus: {
35
+ bg: "colorPalette.muted/20"
36
+ },
37
+ _disabled: {
38
+ opacity: "0.8",
39
+ borderColor: "border.disabled"
40
+ },
41
+ _checked: {
42
+ zIndex: "1"
43
+ }
44
+ },
45
+ label: {
46
+ display: "inline-flex",
47
+ fontWeight: "medium",
48
+ textStyle: "sm",
49
+ _disabled: {
50
+ opacity: "0.5"
51
+ }
52
+ },
53
+ itemText: {
54
+ fontWeight: "medium"
55
+ },
56
+ itemDescription: {
57
+ opacity: "0.64",
58
+ textStyle: "sm"
59
+ },
60
+ itemControl: {
61
+ display: "inline-flex",
62
+ flex: "1",
63
+ pos: "relative",
64
+ rounded: "inherit",
65
+ justifyContent: "var(--radio-card-justify)",
66
+ alignItems: "var(--radio-card-align)",
67
+ _disabled: {
68
+ bg: "bg.muted"
69
+ }
70
+ },
71
+ itemIndicator: {
72
+ display: "inline-flex",
73
+ alignItems: "center",
74
+ justifyContent: "center",
75
+ flexShrink: 0,
76
+ verticalAlign: "top",
77
+ color: "white",
78
+ borderWidth: "1px",
79
+ borderColor: "transparent",
80
+ borderRadius: "full",
81
+ cursor: "radio",
82
+ _focusVisible: {
83
+ outline: "2px solid",
84
+ outlineColor: "colorPalette.focusRing",
85
+ outlineOffset: "2px"
86
+ },
87
+ _invalid: {
88
+ colorPalette: "red",
89
+ borderColor: "red.500"
90
+ },
91
+ _disabled: {
92
+ opacity: "0.5",
93
+ cursor: "disabled"
94
+ },
95
+ "& .dot": {
96
+ height: "100%",
97
+ width: "100%",
98
+ borderRadius: "full",
99
+ bg: "currentColor",
100
+ scale: "0.4"
101
+ }
102
+ },
103
+ itemAddon: {
104
+ roundedBottom: "inherit",
105
+ _disabled: {
106
+ color: "fg.muted"
107
+ }
108
+ },
109
+ itemContent: {
110
+ display: "flex",
111
+ flexDirection: "column",
112
+ flex: "1",
113
+ gap: "1",
114
+ justifyContent: "var(--radio-card-justify)",
115
+ alignItems: "var(--radio-card-align)"
116
+ }
117
+ },
118
+ variants: {
119
+ size: {
120
+ sm: {
121
+ item: {
122
+ textStyle: "sm"
123
+ },
124
+ itemControl: {
125
+ padding: "3",
126
+ gap: "1.5"
127
+ },
128
+ itemAddon: {
129
+ px: "3",
130
+ py: "1.5",
131
+ borderTopWidth: "1px"
132
+ },
133
+ itemIndicator: {
134
+ boxSize: "4"
135
+ }
136
+ },
137
+ md: {
138
+ item: {
139
+ textStyle: "sm"
140
+ },
141
+ itemControl: {
142
+ padding: "4",
143
+ gap: "2.5"
144
+ },
145
+ itemAddon: {
146
+ px: "4",
147
+ py: "2",
148
+ borderTopWidth: "1px"
149
+ },
150
+ itemIndicator: {
151
+ boxSize: "5"
152
+ }
153
+ },
154
+ lg: {
155
+ item: {
156
+ textStyle: "md"
157
+ },
158
+ itemControl: {
159
+ padding: "4",
160
+ gap: "3.5"
161
+ },
162
+ itemAddon: {
163
+ px: "4",
164
+ py: "2",
165
+ borderTopWidth: "1px"
166
+ },
167
+ itemIndicator: {
168
+ boxSize: "6"
169
+ }
170
+ }
171
+ },
172
+ variant: {
173
+ surface: {
174
+ item: {
175
+ borderWidth: "1px",
176
+ _checked: {
177
+ bg: "colorPalette.subtle",
178
+ color: "colorPalette.fg",
179
+ borderColor: "colorPalette.muted"
180
+ }
181
+ },
182
+ itemIndicator: {
183
+ borderWidth: "1px",
184
+ borderColor: "border",
185
+ _checked: {
186
+ bg: "colorPalette.solid",
187
+ color: "colorPalette.contrast",
188
+ borderColor: "colorPalette.solid"
189
+ }
190
+ }
191
+ },
192
+ subtle: {
193
+ item: {
194
+ bg: "bg.muted"
195
+ },
196
+ itemControl: {
197
+ _checked: {
198
+ bg: "colorPalette.muted",
199
+ color: "colorPalette.fg"
200
+ }
201
+ },
202
+ itemIndicator: {
203
+ borderWidth: "1px",
204
+ borderColor: "inherit",
205
+ _checked: {
206
+ color: "colorPalette.fg",
207
+ borderColor: "colorPalette.solid"
208
+ },
209
+ "& .dot": {
210
+ scale: "0.6"
211
+ }
212
+ }
213
+ },
214
+ outline: {
215
+ item: {
216
+ borderWidth: "1px",
217
+ _checked: {
218
+ boxShadow: "0 0 0 1px var(--shadow-color)",
219
+ boxShadowColor: "colorPalette.solid",
220
+ borderColor: "colorPalette.solid"
221
+ }
222
+ },
223
+ itemIndicator: {
224
+ borderWidth: "1px",
225
+ borderColor: "border",
226
+ _checked: {
227
+ bg: "colorPalette.solid",
228
+ color: "colorPalette.contrast",
229
+ borderColor: "colorPalette.solid"
230
+ }
231
+ }
232
+ },
233
+ solid: {
234
+ item: {
235
+ borderWidth: "1px",
236
+ _checked: {
237
+ bg: "colorPalette.solid",
238
+ color: "colorPalette.contrast",
239
+ borderColor: "colorPalette.solid"
240
+ }
241
+ },
242
+ itemIndicator: {
243
+ bg: "bg",
244
+ borderWidth: "1px",
245
+ borderColor: "inherit",
246
+ _checked: {
247
+ color: "colorPalette.solid",
248
+ borderColor: "currentcolor"
249
+ }
250
+ }
251
+ }
252
+ },
253
+ justify: {
254
+ start: {
255
+ item: {
256
+ "--radio-card-justify": "flex-start"
257
+ }
258
+ },
259
+ end: {
260
+ item: {
261
+ "--radio-card-justify": "flex-end"
262
+ }
263
+ },
264
+ center: {
265
+ item: {
266
+ "--radio-card-justify": "center"
267
+ }
268
+ }
269
+ },
270
+ align: {
271
+ start: {
272
+ item: {
273
+ "--radio-card-align": "flex-start"
274
+ },
275
+ itemControl: {
276
+ textAlign: "start"
277
+ }
278
+ },
279
+ end: {
280
+ item: {
281
+ "--radio-card-align": "flex-end"
282
+ },
283
+ itemControl: {
284
+ textAlign: "end"
285
+ }
286
+ },
287
+ center: {
288
+ item: {
289
+ "--radio-card-align": "center"
290
+ },
291
+ itemControl: {
292
+ textAlign: "center"
293
+ }
294
+ }
295
+ },
296
+ orientation: {
297
+ vertical: {
298
+ itemControl: {
299
+ flexDirection: "column"
300
+ }
301
+ },
302
+ horizontal: {
303
+ itemControl: {
304
+ flexDirection: "row"
305
+ }
306
+ }
307
+ }
308
+ },
309
+ defaultVariants: {
310
+ size: "md",
311
+ variant: "outline",
312
+ align: "start",
313
+ orientation: "horizontal"
314
+ }
315
+ });
316
+
317
+ exports.radioCardSlotRecipe = radioCardSlotRecipe;
@@ -0,0 +1,151 @@
1
+ "use strict";
2
+ 'use strict';
3
+
4
+ var def = require('../def.cjs');
5
+
6
+ const radioGroupSlotRecipe = def.defineSlotRecipe({
7
+ className: "radio-group",
8
+ slots: [
9
+ "root",
10
+ "label",
11
+ "item",
12
+ "itemText",
13
+ "itemControl",
14
+ "indicator",
15
+ "itemAddon",
16
+ "itemIndicator"
17
+ ],
18
+ base: {
19
+ item: {
20
+ display: "inline-flex",
21
+ alignItems: "center",
22
+ position: "relative",
23
+ fontWeight: "medium",
24
+ _disabled: {
25
+ cursor: "disabled"
26
+ }
27
+ },
28
+ itemControl: {
29
+ display: "inline-flex",
30
+ alignItems: "center",
31
+ justifyContent: "center",
32
+ flexShrink: 0,
33
+ verticalAlign: "top",
34
+ color: "white",
35
+ borderWidth: "1px",
36
+ borderColor: "transparent",
37
+ borderRadius: "full",
38
+ cursor: "radio",
39
+ _focusVisible: {
40
+ outline: "2px solid",
41
+ outlineColor: "colorPalette.focusRing",
42
+ outlineOffset: "2px"
43
+ },
44
+ _invalid: {
45
+ colorPalette: "red",
46
+ borderColor: "red.500"
47
+ },
48
+ _disabled: {
49
+ opacity: "0.5",
50
+ cursor: "disabled"
51
+ },
52
+ "& .dot": {
53
+ height: "100%",
54
+ width: "100%",
55
+ borderRadius: "full",
56
+ bg: "currentColor",
57
+ scale: "0.4"
58
+ }
59
+ },
60
+ label: {
61
+ userSelect: "none",
62
+ textStyle: "sm",
63
+ _disabled: {
64
+ opacity: "0.5"
65
+ }
66
+ }
67
+ },
68
+ variants: {
69
+ variant: {
70
+ outline: {
71
+ itemControl: {
72
+ borderWidth: "1px",
73
+ borderColor: "inherit",
74
+ _checked: {
75
+ color: "colorPalette.fg",
76
+ borderColor: "colorPalette.solid"
77
+ },
78
+ "& .dot": {
79
+ scale: "0.6"
80
+ }
81
+ }
82
+ },
83
+ subtle: {
84
+ itemControl: {
85
+ borderWidth: "1px",
86
+ bg: "colorPalette.muted",
87
+ borderColor: "colorPalette.muted",
88
+ color: "transparent",
89
+ _checked: {
90
+ color: "colorPalette.fg"
91
+ }
92
+ }
93
+ },
94
+ solid: {
95
+ itemControl: {
96
+ borderWidth: "1px",
97
+ borderColor: "border",
98
+ _checked: {
99
+ bg: "colorPalette.solid",
100
+ color: "colorPalette.contrast",
101
+ borderColor: "colorPalette.solid"
102
+ }
103
+ }
104
+ }
105
+ },
106
+ size: {
107
+ xs: {
108
+ item: {
109
+ textStyle: "xs",
110
+ gap: "1.5"
111
+ },
112
+ itemControl: {
113
+ boxSize: "3"
114
+ }
115
+ },
116
+ sm: {
117
+ item: {
118
+ textStyle: "sm",
119
+ gap: "2"
120
+ },
121
+ itemControl: {
122
+ boxSize: "4"
123
+ }
124
+ },
125
+ md: {
126
+ item: {
127
+ textStyle: "sm",
128
+ gap: "2.5"
129
+ },
130
+ itemControl: {
131
+ boxSize: "5"
132
+ }
133
+ },
134
+ lg: {
135
+ item: {
136
+ textStyle: "md",
137
+ gap: "3"
138
+ },
139
+ itemControl: {
140
+ boxSize: "6"
141
+ }
142
+ }
143
+ }
144
+ },
145
+ defaultVariants: {
146
+ size: "md",
147
+ variant: "solid"
148
+ }
149
+ });
150
+
151
+ exports.radioGroupSlotRecipe = radioGroupSlotRecipe;