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