@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,102 @@
1
+ "use strict";
2
+ 'use strict';
3
+
4
+ var def = require('../def.cjs');
5
+
6
+ const cardSlotRecipe = def.defineSlotRecipe({
7
+ className: "card",
8
+ slots: ["root", "header", "body", "footer", "title", "description"],
9
+ base: {
10
+ root: {
11
+ display: "flex",
12
+ flexDirection: "column",
13
+ position: "relative",
14
+ minWidth: "0",
15
+ wordWrap: "break-word",
16
+ borderRadius: "l3",
17
+ color: "fg",
18
+ textAlign: "start"
19
+ },
20
+ title: {
21
+ fontWeight: "semibold"
22
+ },
23
+ description: {
24
+ color: "fg.muted",
25
+ fontSize: "sm"
26
+ },
27
+ header: {
28
+ paddingInline: "var(--card-padding)",
29
+ paddingTop: "var(--card-padding)",
30
+ display: "flex",
31
+ flexDirection: "column",
32
+ gap: "1.5"
33
+ },
34
+ body: {
35
+ padding: "var(--card-padding)",
36
+ flex: "1",
37
+ display: "flex",
38
+ flexDirection: "column"
39
+ },
40
+ footer: {
41
+ display: "flex",
42
+ alignItems: "center",
43
+ gap: "2",
44
+ paddingInline: "var(--card-padding)",
45
+ paddingBottom: "var(--card-padding)"
46
+ }
47
+ },
48
+ variants: {
49
+ size: {
50
+ sm: {
51
+ root: {
52
+ "--card-padding": "spacing.4"
53
+ },
54
+ title: {
55
+ textStyle: "md"
56
+ }
57
+ },
58
+ md: {
59
+ root: {
60
+ "--card-padding": "spacing.6"
61
+ },
62
+ title: {
63
+ textStyle: "lg"
64
+ }
65
+ },
66
+ lg: {
67
+ root: {
68
+ "--card-padding": "spacing.7"
69
+ },
70
+ title: {
71
+ textStyle: "xl"
72
+ }
73
+ }
74
+ },
75
+ variant: {
76
+ elevated: {
77
+ root: {
78
+ bg: "bg.panel",
79
+ boxShadow: "md"
80
+ }
81
+ },
82
+ outline: {
83
+ root: {
84
+ bg: "bg.panel",
85
+ borderWidth: "1px",
86
+ borderColor: "border"
87
+ }
88
+ },
89
+ subtle: {
90
+ root: {
91
+ bg: "bg.muted"
92
+ }
93
+ }
94
+ }
95
+ },
96
+ defaultVariants: {
97
+ variant: "outline",
98
+ size: "md"
99
+ }
100
+ });
101
+
102
+ exports.cardSlotRecipe = cardSlotRecipe;
@@ -0,0 +1,287 @@
1
+ "use strict";
2
+ 'use strict';
3
+
4
+ var def = require('../def.cjs');
5
+
6
+ const checkboxCardSlotRecipe = def.defineSlotRecipe({
7
+ slots: [
8
+ "root",
9
+ "control",
10
+ "label",
11
+ "description",
12
+ "addon",
13
+ "indicator",
14
+ "content"
15
+ ],
16
+ className: "checkbox-card",
17
+ base: {
18
+ root: {
19
+ display: "flex",
20
+ flexDirection: "column",
21
+ userSelect: "none",
22
+ position: "relative",
23
+ borderRadius: "l2",
24
+ flex: "1",
25
+ focusVisibleRing: "outside",
26
+ _disabled: {
27
+ opacity: "0.8",
28
+ borderColor: "border.subtle"
29
+ },
30
+ _invalid: {
31
+ outline: "2px solid",
32
+ outlineColor: "border.error"
33
+ }
34
+ },
35
+ control: {
36
+ display: "inline-flex",
37
+ flex: "1",
38
+ position: "relative",
39
+ borderRadius: "inherit",
40
+ justifyContent: "var(--checkbox-card-justify)",
41
+ alignItems: "var(--checkbox-card-align)"
42
+ },
43
+ label: {
44
+ fontWeight: "medium",
45
+ display: "flex",
46
+ alignItems: "center",
47
+ gap: "2",
48
+ _disabled: {
49
+ opacity: "0.5"
50
+ }
51
+ },
52
+ description: {
53
+ opacity: "0.64",
54
+ textStyle: "sm"
55
+ },
56
+ addon: {
57
+ _disabled: {
58
+ opacity: "0.5"
59
+ }
60
+ },
61
+ indicator: {
62
+ display: "inline-flex",
63
+ alignItems: "center",
64
+ justifyContent: "center",
65
+ flexShrink: "0",
66
+ color: "white",
67
+ borderWidth: "1px",
68
+ borderColor: "transparent",
69
+ borderRadius: "l1",
70
+ focusVisibleRing: "outside",
71
+ _icon: {
72
+ boxSize: "full"
73
+ },
74
+ _invalid: {
75
+ colorPalette: "red",
76
+ borderColor: "border.error"
77
+ },
78
+ _disabled: {
79
+ opacity: "0.5"
80
+ }
81
+ },
82
+ content: {
83
+ display: "flex",
84
+ flexDirection: "column",
85
+ flex: "1",
86
+ gap: "1",
87
+ justifyContent: "var(--checkbox-card-justify)",
88
+ alignItems: "var(--checkbox-card-align)"
89
+ }
90
+ },
91
+ variants: {
92
+ size: {
93
+ sm: {
94
+ root: {
95
+ textStyle: "sm"
96
+ },
97
+ control: {
98
+ padding: "3",
99
+ gap: "1.5"
100
+ },
101
+ addon: {
102
+ px: "3",
103
+ py: "1.5",
104
+ borderTopWidth: "1px"
105
+ },
106
+ indicator: {
107
+ boxSize: "4"
108
+ }
109
+ },
110
+ md: {
111
+ root: {
112
+ textStyle: "sm"
113
+ },
114
+ control: {
115
+ padding: "4",
116
+ gap: "2.5"
117
+ },
118
+ addon: {
119
+ px: "4",
120
+ py: "2",
121
+ borderTopWidth: "1px"
122
+ },
123
+ indicator: {
124
+ boxSize: "5",
125
+ p: "0.5"
126
+ }
127
+ },
128
+ lg: {
129
+ root: {
130
+ textStyle: "md"
131
+ },
132
+ control: {
133
+ padding: "4",
134
+ gap: "3.5"
135
+ },
136
+ addon: {
137
+ px: "4",
138
+ py: "2",
139
+ borderTopWidth: "1px"
140
+ },
141
+ indicator: {
142
+ boxSize: "6",
143
+ p: "0.5"
144
+ }
145
+ }
146
+ },
147
+ variant: {
148
+ surface: {
149
+ root: {
150
+ borderWidth: "1px",
151
+ borderColor: "border",
152
+ _checked: {
153
+ bg: "colorPalette.subtle",
154
+ color: "colorPalette.fg",
155
+ borderColor: "colorPalette.muted"
156
+ },
157
+ _disabled: {
158
+ bg: "bg.muted"
159
+ }
160
+ },
161
+ indicator: {
162
+ borderColor: "border",
163
+ "&:is([data-state=checked], [data-state=indeterminate])": {
164
+ bg: "colorPalette.solid",
165
+ color: "colorPalette.contrast",
166
+ borderColor: "colorPalette.solid"
167
+ }
168
+ }
169
+ },
170
+ subtle: {
171
+ root: {
172
+ bg: "bg.muted"
173
+ },
174
+ control: {
175
+ _checked: {
176
+ bg: "colorPalette.muted",
177
+ color: "colorPalette.fg"
178
+ }
179
+ },
180
+ indicator: {
181
+ "&:is([data-state=checked], [data-state=indeterminate])": {
182
+ color: "colorPalette.fg"
183
+ }
184
+ }
185
+ },
186
+ outline: {
187
+ root: {
188
+ borderWidth: "1px",
189
+ borderColor: "border",
190
+ _checked: {
191
+ boxShadow: "0 0 0 1px var(--shadow-color)",
192
+ boxShadowColor: "colorPalette.solid",
193
+ borderColor: "colorPalette.solid"
194
+ }
195
+ },
196
+ indicator: {
197
+ borderColor: "border",
198
+ "&:is([data-state=checked], [data-state=indeterminate])": {
199
+ bg: "colorPalette.solid",
200
+ color: "colorPalette.contrast",
201
+ borderColor: "colorPalette.solid"
202
+ }
203
+ }
204
+ },
205
+ solid: {
206
+ root: {
207
+ borderWidth: "1px",
208
+ _checked: {
209
+ bg: "colorPalette.solid",
210
+ color: "colorPalette.contrast",
211
+ borderColor: "colorPalette.solid"
212
+ }
213
+ },
214
+ indicator: {
215
+ borderColor: "border",
216
+ color: "colorPalette.fg",
217
+ "&:is([data-state=checked], [data-state=indeterminate])": {
218
+ borderColor: "colorPalette.solid"
219
+ }
220
+ }
221
+ }
222
+ },
223
+ justify: {
224
+ start: {
225
+ root: {
226
+ "--checkbox-card-justify": "flex-start"
227
+ }
228
+ },
229
+ end: {
230
+ root: {
231
+ "--checkbox-card-justify": "flex-end"
232
+ }
233
+ },
234
+ center: {
235
+ root: {
236
+ "--checkbox-card-justify": "center"
237
+ }
238
+ }
239
+ },
240
+ align: {
241
+ start: {
242
+ root: {
243
+ "--checkbox-card-align": "flex-start"
244
+ },
245
+ content: {
246
+ textAlign: "start"
247
+ }
248
+ },
249
+ end: {
250
+ root: {
251
+ "--checkbox-card-align": "flex-end"
252
+ },
253
+ content: {
254
+ textAlign: "end"
255
+ }
256
+ },
257
+ center: {
258
+ root: {
259
+ "--checkbox-card-align": "center"
260
+ },
261
+ content: {
262
+ textAlign: "center"
263
+ }
264
+ }
265
+ },
266
+ orientation: {
267
+ vertical: {
268
+ control: {
269
+ flexDirection: "column"
270
+ }
271
+ },
272
+ horizontal: {
273
+ control: {
274
+ flexDirection: "row"
275
+ }
276
+ }
277
+ }
278
+ },
279
+ defaultVariants: {
280
+ size: "md",
281
+ variant: "outline",
282
+ align: "start",
283
+ orientation: "horizontal"
284
+ }
285
+ });
286
+
287
+ exports.checkboxCardSlotRecipe = checkboxCardSlotRecipe;
@@ -0,0 +1,132 @@
1
+ "use strict";
2
+ 'use strict';
3
+
4
+ var def = require('../def.cjs');
5
+
6
+ const checkboxSlotRecipe = def.defineSlotRecipe({
7
+ slots: ["root", "label", "control", "indicator", "group"],
8
+ className: "checkbox",
9
+ base: {
10
+ root: {
11
+ display: "inline-flex",
12
+ gap: "2",
13
+ alignItems: "center",
14
+ verticalAlign: "top",
15
+ position: "relative"
16
+ },
17
+ control: {
18
+ display: "inline-flex",
19
+ alignItems: "center",
20
+ justifyContent: "center",
21
+ flexShrink: "0",
22
+ color: "white",
23
+ borderWidth: "1px",
24
+ borderColor: "transparent",
25
+ borderRadius: "l1",
26
+ focusVisibleRing: "outside",
27
+ _icon: {
28
+ boxSize: "full"
29
+ },
30
+ _invalid: {
31
+ colorPalette: "red",
32
+ borderColor: "border.error"
33
+ },
34
+ _disabled: {
35
+ opacity: "0.5"
36
+ }
37
+ },
38
+ label: {
39
+ fontWeight: "medium",
40
+ userSelect: "none",
41
+ _disabled: {
42
+ opacity: "0.5"
43
+ }
44
+ }
45
+ },
46
+ variants: {
47
+ size: {
48
+ xs: {
49
+ root: {
50
+ gap: "1.5"
51
+ },
52
+ label: {
53
+ textStyle: "xs"
54
+ },
55
+ control: {
56
+ boxSize: "3"
57
+ }
58
+ },
59
+ sm: {
60
+ root: {
61
+ gap: "2"
62
+ },
63
+ label: {
64
+ textStyle: "sm"
65
+ },
66
+ control: {
67
+ boxSize: "4"
68
+ }
69
+ },
70
+ md: {
71
+ root: {
72
+ gap: "2.5"
73
+ },
74
+ label: {
75
+ textStyle: "sm"
76
+ },
77
+ control: {
78
+ boxSize: "5",
79
+ p: "0.5"
80
+ }
81
+ },
82
+ lg: {
83
+ root: {
84
+ gap: "3"
85
+ },
86
+ label: {
87
+ textStyle: "md"
88
+ },
89
+ control: {
90
+ boxSize: "6",
91
+ p: "0.5"
92
+ }
93
+ }
94
+ },
95
+ variant: {
96
+ outline: {
97
+ control: {
98
+ borderColor: "border",
99
+ "&:is([data-state=checked], [data-state=indeterminate])": {
100
+ color: "colorPalette.fg",
101
+ borderColor: "colorPalette.solid"
102
+ }
103
+ }
104
+ },
105
+ solid: {
106
+ control: {
107
+ borderColor: "border",
108
+ "&:is([data-state=checked], [data-state=indeterminate])": {
109
+ bg: "colorPalette.solid",
110
+ color: "colorPalette.contrast",
111
+ borderColor: "colorPalette.solid"
112
+ }
113
+ }
114
+ },
115
+ subtle: {
116
+ control: {
117
+ bg: "colorPalette.muted",
118
+ borderColor: "colorPalette.muted",
119
+ "&:is([data-state=checked], [data-state=indeterminate])": {
120
+ color: "colorPalette.fg"
121
+ }
122
+ }
123
+ }
124
+ }
125
+ },
126
+ defaultVariants: {
127
+ variant: "solid",
128
+ size: "md"
129
+ }
130
+ });
131
+
132
+ exports.checkboxSlotRecipe = checkboxSlotRecipe;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ 'use strict';
3
+
4
+ var def = require('../def.cjs');
5
+
6
+ const collapsibleSlotRecipe = def.defineSlotRecipe({
7
+ slots: ["root", "trigger", "content"],
8
+ className: "collapsible",
9
+ base: {
10
+ content: {
11
+ overflow: "hidden",
12
+ _open: {
13
+ animationName: "expand-height, fade-in",
14
+ animationDuration: "moderate"
15
+ },
16
+ _closed: {
17
+ animationName: "collapse-height, fade-out",
18
+ animationDuration: "moderate"
19
+ }
20
+ }
21
+ }
22
+ });
23
+
24
+ exports.collapsibleSlotRecipe = collapsibleSlotRecipe;