@saas-ui/react 3.0.0-next.43 → 3.0.0-next.47

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 (261) hide show
  1. package/dist/.tsbuildinfo.json +1 -1
  2. package/dist/colors.d.ts +1 -1
  3. package/dist/colors.js +1 -1
  4. package/dist/components/absolute-center/index.js +1 -0
  5. package/dist/components/action-bar/action-bar.js +1 -0
  6. package/dist/components/aspect-ratio/index.js +1 -0
  7. package/dist/components/blockquote/blockquote.js +1 -0
  8. package/dist/components/checkbox/checkbox.js +1 -0
  9. package/dist/components/checkbox-card/checkbox-card.js +1 -0
  10. package/dist/components/clipboard/clipboard.js +1 -0
  11. package/dist/components/close-button/close-button.js +1 -0
  12. package/dist/components/command/command.d.ts +1 -1
  13. package/dist/components/command/command.js +1 -0
  14. package/dist/components/dialog/dialog.js +1 -0
  15. package/dist/components/drawer/drawer.js +1 -0
  16. package/dist/components/empty-state/empty-state.js +1 -0
  17. package/dist/components/grid-list/grid-list.d.ts +1 -1
  18. package/dist/components/grid-list/grid-list.js +1 -0
  19. package/dist/components/hover-card/hover-card.js +1 -0
  20. package/dist/components/icon-button/icon-button.js +1 -0
  21. package/dist/components/info-tip/info-tip.js +1 -0
  22. package/dist/components/link/link.js +1 -0
  23. package/dist/components/loading-overlay/loading-overlay.js +1 -0
  24. package/dist/components/navbar/navbar.js +1 -0
  25. package/dist/components/number-input/number-input.js +1 -0
  26. package/dist/components/pagination/pagination.js +1 -0
  27. package/dist/components/persona/persona-composed.d.ts +1 -1
  28. package/dist/components/persona/persona.d.ts +1 -1
  29. package/dist/components/pin-input/pin-input.js +1 -0
  30. package/dist/components/popover/popover.js +1 -0
  31. package/dist/components/radio/radio.js +1 -0
  32. package/dist/components/radio-card/radio-card.js +1 -0
  33. package/dist/components/search-input/search-input.js +1 -0
  34. package/dist/components/sidebar/sidebar.js +1 -0
  35. package/dist/components/skeleton/skeleton.js +1 -0
  36. package/dist/components/slider/slider.js +1 -0
  37. package/dist/components/spinner/spinner.js +1 -0
  38. package/dist/components/stat/stat.js +1 -0
  39. package/dist/components/status/status.js +1 -0
  40. package/dist/components/steps/steps.js +1 -0
  41. package/dist/components/switch/switch.js +1 -0
  42. package/dist/components/tag/tag.js +1 -0
  43. package/dist/components/toggle-tip/toggle-tip.js +1 -0
  44. package/dist/components/tooltip/tooltip.js +1 -0
  45. package/dist/index.d.ts +1 -1
  46. package/dist/preset.d.ts +1 -3
  47. package/dist/preset.js +1 -10
  48. package/dist/provider/sui-provider.js +1 -0
  49. package/package.json +3 -2
  50. package/dist/components/accordion/accordion.recipe.d.ts +0 -84
  51. package/dist/components/accordion/accordion.recipe.js +0 -148
  52. package/dist/components/action-bar/action-bar.recipe.d.ts +0 -1
  53. package/dist/components/action-bar/action-bar.recipe.js +0 -56
  54. package/dist/components/alert/alert.recipe.d.ts +0 -120
  55. package/dist/components/alert/alert.recipe.js +0 -149
  56. package/dist/components/app-shell/app-shell.recipe.d.ts +0 -13
  57. package/dist/components/app-shell/app-shell.recipe.js +0 -41
  58. package/dist/components/avatar/avatar.recipe.d.ts +0 -88
  59. package/dist/components/avatar/avatar.recipe.js +0 -129
  60. package/dist/components/badge/badge.recipe.d.ts +0 -48
  61. package/dist/components/badge/badge.recipe.js +0 -66
  62. package/dist/components/blockquote/blockquote.recipe.d.ts +0 -52
  63. package/dist/components/blockquote/blockquote.recipe.js +0 -77
  64. package/dist/components/breadcrumb/breadcrumb.recipe.d.ts +0 -46
  65. package/dist/components/breadcrumb/breadcrumb.recipe.js +0 -90
  66. package/dist/components/button/button.recipe.d.ts +0 -141
  67. package/dist/components/button/button.recipe.js +0 -185
  68. package/dist/components/card/card.recipe.d.ts +0 -78
  69. package/dist/components/card/card.recipe.js +0 -133
  70. package/dist/components/checkbox/checkbox.recipe.d.ts +0 -80
  71. package/dist/components/checkbox/checkbox.recipe.js +0 -64
  72. package/dist/components/checkbox-card/checkbox-card.recipe.d.ts +0 -188
  73. package/dist/components/checkbox-card/checkbox-card.recipe.js +0 -202
  74. package/dist/components/checkmark/checkmark.recipe.d.ts +0 -54
  75. package/dist/components/checkmark/checkmark.recipe.js +0 -80
  76. package/dist/components/code/code.recipe.d.ts +0 -48
  77. package/dist/components/code/code.recipe.js +0 -14
  78. package/dist/components/collapsible/collapsible.recipe.d.ts +0 -1
  79. package/dist/components/collapsible/collapsible.recipe.js +0 -19
  80. package/dist/components/combobox/combobox.recipe.d.ts +0 -144
  81. package/dist/components/combobox/combobox.recipe.js +0 -292
  82. package/dist/components/command/command.recipe.d.ts +0 -15
  83. package/dist/components/command/command.recipe.js +0 -34
  84. package/dist/components/container/container.recipe.d.ts +0 -14
  85. package/dist/components/container/container.recipe.js +0 -25
  86. package/dist/components/data-list/data-list.recipe.d.ts +0 -55
  87. package/dist/components/data-list/data-list.recipe.js +0 -78
  88. package/dist/components/dialog/dialog.recipe.d.ts +0 -166
  89. package/dist/components/dialog/dialog.recipe.js +0 -256
  90. package/dist/components/drawer/drawer.recipe.d.ts +0 -113
  91. package/dist/components/drawer/drawer.recipe.js +0 -202
  92. package/dist/components/editable/editable.recipe.d.ts +0 -37
  93. package/dist/components/editable/editable.recipe.js +0 -89
  94. package/dist/components/empty-state/empty-state.recipe.d.ts +0 -83
  95. package/dist/components/empty-state/empty-state.recipe.js +0 -137
  96. package/dist/components/field/field.recipe.d.ts +0 -29
  97. package/dist/components/field/field.recipe.js +0 -74
  98. package/dist/components/fieldset/fieldset.recipe.d.ts +0 -37
  99. package/dist/components/fieldset/fieldset.recipe.js +0 -59
  100. package/dist/components/file-upload/file-upload.recipe.d.ts +0 -1
  101. package/dist/components/file-upload/file-upload.recipe.js +0 -90
  102. package/dist/components/grid-list/grid-list.recipe.d.ts +0 -60
  103. package/dist/components/grid-list/grid-list.recipe.js +0 -131
  104. package/dist/components/heading/heading.recipe.d.ts +0 -59
  105. package/dist/components/heading/heading.recipe.js +0 -70
  106. package/dist/components/hover-card/hover-card.recipe.d.ts +0 -28
  107. package/dist/components/hover-card/hover-card.recipe.js +0 -70
  108. package/dist/components/icon/icon.recipe.d.ts +0 -25
  109. package/dist/components/icon/icon.recipe.js +0 -27
  110. package/dist/components/icon-badge/icon-badge.recipe.d.ts +0 -43
  111. package/dist/components/icon-badge/icon-badge.recipe.js +0 -57
  112. package/dist/components/input/input.recipe.d.ts +0 -66
  113. package/dist/components/input/input.recipe.js +0 -93
  114. package/dist/components/input-addon/input-addon.recipe.d.ts +0 -56
  115. package/dist/components/input-addon/input-addon.recipe.js +0 -36
  116. package/dist/components/kbd/kbd.recipe.d.ts +0 -36
  117. package/dist/components/kbd/kbd.recipe.js +0 -56
  118. package/dist/components/link/link.recipe.d.ts +0 -18
  119. package/dist/components/link/link.recipe.js +0 -34
  120. package/dist/components/list/list.recipe.d.ts +0 -38
  121. package/dist/components/list/list.recipe.js +0 -62
  122. package/dist/components/loading-overlay/loading-overlay.recipe.d.ts +0 -26
  123. package/dist/components/loading-overlay/loading-overlay.recipe.js +0 -51
  124. package/dist/components/mark/mark.recipe.d.ts +0 -16
  125. package/dist/components/mark/mark.recipe.js +0 -25
  126. package/dist/components/menu/menu.recipe.d.ts +0 -58
  127. package/dist/components/menu/menu.recipe.js +0 -133
  128. package/dist/components/native-select/native-select.recipe.d.ts +0 -90
  129. package/dist/components/native-select/native-select.recipe.js +0 -134
  130. package/dist/components/navbar/navbar.recipe.d.ts +0 -46
  131. package/dist/components/navbar/navbar.recipe.js +0 -124
  132. package/dist/components/number-input/number-input.recipe.d.ts +0 -144
  133. package/dist/components/number-input/number-input.recipe.js +0 -111
  134. package/dist/components/page/page.recipe.d.ts +0 -61
  135. package/dist/components/page/page.recipe.js +0 -99
  136. package/dist/components/persona/persona.recipe.d.ts +0 -104
  137. package/dist/components/persona/persona.recipe.js +0 -106
  138. package/dist/components/pin-input/pin-input.recipe.d.ts +0 -236
  139. package/dist/components/pin-input/pin-input.recipe.js +0 -32
  140. package/dist/components/popover/popover.recipe.d.ts +0 -24
  141. package/dist/components/popover/popover.recipe.js +0 -84
  142. package/dist/components/progress/progress.recipe.d.ts +0 -82
  143. package/dist/components/progress/progress.recipe.js +0 -121
  144. package/dist/components/progress-circle/progress-circle.recipe.d.ts +0 -49
  145. package/dist/components/progress-circle/progress-circle.recipe.js +0 -91
  146. package/dist/components/radio/radiomark.recipe.d.ts +0 -56
  147. package/dist/components/radio/radiomark.recipe.js +0 -95
  148. package/dist/components/radio-card/radio-card.recipe.d.ts +0 -191
  149. package/dist/components/radio-card/radio-card.recipe.js +0 -209
  150. package/dist/components/radio-group/radio-group.recipe.d.ts +0 -77
  151. package/dist/components/radio-group/radio-group.recipe.js +0 -61
  152. package/dist/components/rating-group/rating-group.recipe.d.ts +0 -24
  153. package/dist/components/rating-group/rating-group.recipe.js +0 -83
  154. package/dist/components/section/section.recipe.d.ts +0 -27
  155. package/dist/components/section/section.recipe.js +0 -63
  156. package/dist/components/segmented-control/segment-group.recipe.d.ts +0 -48
  157. package/dist/components/segmented-control/segment-group.recipe.js +0 -127
  158. package/dist/components/select/select.recipe.d.ts +0 -155
  159. package/dist/components/select/select.recipe.js +0 -285
  160. package/dist/components/separator/separator.recipe.d.ts +0 -37
  161. package/dist/components/separator/separator.recipe.js +0 -50
  162. package/dist/components/sidebar/sidebar-nav-item.recipe.d.ts +0 -67
  163. package/dist/components/sidebar/sidebar-nav-item.recipe.js +0 -118
  164. package/dist/components/sidebar/sidebar.recipe.d.ts +0 -108
  165. package/dist/components/sidebar/sidebar.recipe.js +0 -280
  166. package/dist/components/skeleton/skeleton.recipe.d.ts +0 -41
  167. package/dist/components/skeleton/skeleton.recipe.js +0 -50
  168. package/dist/components/skip-nav-link/skip-nav-link.recipe.d.ts +0 -1
  169. package/dist/components/skip-nav-link/skip-nav-link.recipe.js +0 -31
  170. package/dist/components/slider/slider.recipe.d.ts +0 -101
  171. package/dist/components/slider/slider.recipe.js +0 -175
  172. package/dist/components/spinner/spinner.recipe.d.ts +0 -22
  173. package/dist/components/spinner/spinner.recipe.js +0 -31
  174. package/dist/components/stat/stat.recipe.d.ts +0 -19
  175. package/dist/components/stat/stat.recipe.js +0 -76
  176. package/dist/components/status/status.recipe.d.ts +0 -19
  177. package/dist/components/status/status.recipe.js +0 -44
  178. package/dist/components/steps/steps.recipe.d.ts +0 -142
  179. package/dist/components/steps/steps.recipe.js +0 -213
  180. package/dist/components/switch/switch.recipe.d.ts +0 -77
  181. package/dist/components/switch/switch.recipe.js +0 -157
  182. package/dist/components/table/table.recipe.d.ts +0 -121
  183. package/dist/components/table/table.recipe.js +0 -161
  184. package/dist/components/tabs/tabs.recipe.d.ts +0 -263
  185. package/dist/components/tabs/tabs.recipe.js +0 -332
  186. package/dist/components/tag/tag.recipe.d.ts +0 -95
  187. package/dist/components/tag/tag.recipe.js +0 -154
  188. package/dist/components/textarea/textarea.recipe.d.ts +0 -65
  189. package/dist/components/textarea/textarea.recipe.js +0 -90
  190. package/dist/components/timeline/timeline.recipe.d.ts +0 -62
  191. package/dist/components/timeline/timeline.recipe.js +0 -134
  192. package/dist/components/toaster/toast.recipe.d.ts +0 -1
  193. package/dist/components/toaster/toast.recipe.js +0 -90
  194. package/dist/components/tooltip/tooltip.recipe.d.ts +0 -10
  195. package/dist/components/tooltip/tooltip.recipe.js +0 -52
  196. package/dist/theme/animation-styles.d.ts +0 -1
  197. package/dist/theme/animation-styles.js +0 -49
  198. package/dist/theme/breakpoints.d.ts +0 -10
  199. package/dist/theme/breakpoints.js +0 -8
  200. package/dist/theme/conditions.d.ts +0 -18
  201. package/dist/theme/conditions.js +0 -19
  202. package/dist/theme/fluid-font-sizes.d.ts +0 -0
  203. package/dist/theme/fluid-font-sizes.js +0 -61
  204. package/dist/theme/global-css.d.ts +0 -1
  205. package/dist/theme/global-css.js +0 -56
  206. package/dist/theme/index.d.ts +0 -1
  207. package/dist/theme/index.js +0 -72
  208. package/dist/theme/layer-styles.d.ts +0 -1
  209. package/dist/theme/layer-styles.js +0 -133
  210. package/dist/theme/recipes.d.ts +0 -861
  211. package/dist/theme/recipes.js +0 -44
  212. package/dist/theme/semantic-tokens/colors.d.ts +0 -1298
  213. package/dist/theme/semantic-tokens/colors.js +0 -687
  214. package/dist/theme/semantic-tokens/radii.d.ts +0 -44
  215. package/dist/theme/semantic-tokens/radii.js +0 -39
  216. package/dist/theme/semantic-tokens/shadows.d.ts +0 -56
  217. package/dist/theme/semantic-tokens/shadows.js +0 -57
  218. package/dist/theme/slot-recipes.d.ts +0 -4030
  219. package/dist/theme/slot-recipes.js +0 -108
  220. package/dist/theme/text-styles.d.ts +0 -1
  221. package/dist/theme/text-styles.js +0 -82
  222. package/dist/theme/tokens/animations.d.ts +0 -14
  223. package/dist/theme/tokens/animations.js +0 -7
  224. package/dist/theme/tokens/aspect-ratios.d.ts +0 -20
  225. package/dist/theme/tokens/aspect-ratios.js +0 -9
  226. package/dist/theme/tokens/blurs.d.ts +0 -26
  227. package/dist/theme/tokens/blurs.js +0 -11
  228. package/dist/theme/tokens/borders.d.ts +0 -17
  229. package/dist/theme/tokens/borders.js +0 -8
  230. package/dist/theme/tokens/colors.d.ts +0 -820
  231. package/dist/theme/tokens/colors.js +0 -306
  232. package/dist/theme/tokens/cursor.d.ts +0 -26
  233. package/dist/theme/tokens/cursor.js +0 -11
  234. package/dist/theme/tokens/durations.d.ts +0 -23
  235. package/dist/theme/tokens/durations.js +0 -10
  236. package/dist/theme/tokens/easings.d.ts +0 -20
  237. package/dist/theme/tokens/easings.js +0 -9
  238. package/dist/theme/tokens/font-sizes.d.ts +0 -44
  239. package/dist/theme/tokens/font-sizes.js +0 -18
  240. package/dist/theme/tokens/font-weights.d.ts +0 -29
  241. package/dist/theme/tokens/font-weights.js +0 -12
  242. package/dist/theme/tokens/fonts.d.ts +0 -11
  243. package/dist/theme/tokens/fonts.js +0 -13
  244. package/dist/theme/tokens/keyframes.d.ts +0 -1
  245. package/dist/theme/tokens/keyframes.js +0 -157
  246. package/dist/theme/tokens/letter-spacing.d.ts +0 -56
  247. package/dist/theme/tokens/letter-spacing.js +0 -21
  248. package/dist/theme/tokens/line-heights.d.ts +0 -77
  249. package/dist/theme/tokens/line-heights.js +0 -29
  250. package/dist/theme/tokens/radius.d.ts +0 -32
  251. package/dist/theme/tokens/radius.js +0 -15
  252. package/dist/theme/tokens/sizes.d.ts +0 -257
  253. package/dist/theme/tokens/sizes.js +0 -66
  254. package/dist/theme/tokens/spacing.d.ts +0 -101
  255. package/dist/theme/tokens/spacing.js +0 -37
  256. package/dist/theme/tokens/z-indices.d.ts +0 -53
  257. package/dist/theme/tokens/z-indices.js +0 -32
  258. package/dist/theme/utilities.d.ts +0 -10
  259. package/dist/theme/utilities.js +0 -49
  260. package/dist/theme/utils.d.ts +0 -19
  261. package/dist/theme/utils.js +0 -34
@@ -1,133 +0,0 @@
1
- import { cardAnatomy } from '@chakra-ui/react/anatomy';
2
- import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
3
- export const cardSlotRecipe = defineSlotRecipe({
4
- className: 'chakra-card',
5
- slots: cardAnatomy.keys(),
6
- base: {
7
- root: {
8
- display: 'flex',
9
- flexDirection: 'column',
10
- position: 'relative',
11
- minWidth: '0',
12
- wordWrap: 'break-word',
13
- borderRadius: 'lg',
14
- color: 'fg',
15
- textAlign: 'start',
16
- },
17
- title: {
18
- fontWeight: 'semibold',
19
- },
20
- description: {
21
- color: 'fg.muted',
22
- fontSize: 'sm',
23
- },
24
- header: {
25
- padding: 'var(--card-padding)',
26
- paddingBottom: 'calc(var(--card-padding) / 2)',
27
- display: 'flex',
28
- flexDirection: 'column',
29
- gap: '1',
30
- },
31
- body: {
32
- padding: 'var(--card-padding)',
33
- flex: '1',
34
- display: 'flex',
35
- flexDirection: 'column',
36
- '&:is(.chakra-card__header + &)': {
37
- paddingTop: 'calc(var(--card-padding) / 2)',
38
- },
39
- '&:has(+ .chakra-card__footer)': {
40
- paddingBottom: 'calc(var(--card-padding) / 2)',
41
- },
42
- },
43
- footer: {
44
- display: 'flex',
45
- alignItems: 'center',
46
- gap: '2',
47
- padding: 'var(--card-padding)',
48
- paddingTop: 'calc(var(--card-padding) / 2)',
49
- },
50
- },
51
- variants: {
52
- size: {
53
- sm: {
54
- root: {
55
- '--card-padding': 'spacing.2.5',
56
- },
57
- title: {
58
- fontSize: 'sm',
59
- },
60
- },
61
- md: {
62
- root: {
63
- '--card-padding': 'spacing.4',
64
- },
65
- title: {
66
- fontSize: 'md',
67
- },
68
- },
69
- lg: {
70
- root: {
71
- '--card-padding': 'spacing.6',
72
- },
73
- title: {
74
- fontSize: 'lg',
75
- },
76
- },
77
- },
78
- variant: {
79
- elevated: {
80
- root: {
81
- bg: 'bg.panel',
82
- boxShadow: 'md',
83
- borderWidth: '0.5px',
84
- borderColor: 'border',
85
- _pressable: {
86
- transitionProperty: 'common',
87
- transitionDuration: 'fast',
88
- _hover: {
89
- borderColor: 'border.emphasized',
90
- },
91
- },
92
- },
93
- },
94
- outline: {
95
- root: {
96
- bg: 'bg.panel',
97
- borderWidth: '1px',
98
- borderColor: 'border',
99
- _pressable: {
100
- transitionProperty: 'common',
101
- transitionDuration: 'fast',
102
- _hover: {
103
- borderColor: 'border.emphasized',
104
- },
105
- },
106
- },
107
- },
108
- subtle: {
109
- root: {
110
- bg: 'colorPalette.muted',
111
- },
112
- },
113
- solid: {
114
- root: {
115
- bg: 'colorPalette.solid',
116
- color: 'colorPalette.contrast',
117
- _pressable: {
118
- _hover: {
119
- bg: 'colorPalette.solid/80',
120
- },
121
- },
122
- },
123
- description: {
124
- color: 'colorPalette.contrast/80',
125
- },
126
- },
127
- },
128
- },
129
- defaultVariants: {
130
- variant: 'outline',
131
- size: 'md',
132
- },
133
- });
@@ -1,80 +0,0 @@
1
- export declare const checkboxSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "control" | "indicator" | "root" | "group", {
2
- size: {
3
- xs: {
4
- root: {
5
- gap: "1.5";
6
- };
7
- label: {
8
- textStyle: "xs";
9
- };
10
- control: {
11
- boxSize: "3";
12
- } | undefined;
13
- };
14
- sm: {
15
- root: {
16
- gap: "2";
17
- };
18
- label: {
19
- textStyle: "sm";
20
- };
21
- control: {
22
- boxSize: "3.5";
23
- } | undefined;
24
- };
25
- md: {
26
- root: {
27
- gap: "2.5";
28
- };
29
- label: {
30
- textStyle: "sm";
31
- };
32
- control: {
33
- boxSize: "4";
34
- p: "0.5";
35
- } | undefined;
36
- };
37
- lg: {
38
- root: {
39
- gap: "3";
40
- };
41
- label: {
42
- textStyle: "md";
43
- };
44
- control: {
45
- boxSize: "5";
46
- p: "0.5";
47
- } | undefined;
48
- };
49
- };
50
- variant: {
51
- outline: {
52
- control: {
53
- borderColor: "border.emphasized";
54
- '&:is([data-state=checked], [data-state=indeterminate])': {
55
- color: "colorPalette.fg";
56
- borderColor: "colorPalette.solid";
57
- };
58
- } | undefined;
59
- };
60
- solid: {
61
- control: {
62
- borderColor: "border.emphasized";
63
- '&:is([data-state=checked], [data-state=indeterminate])': {
64
- bg: "colorPalette.solid";
65
- color: "colorPalette.contrast";
66
- borderColor: "colorPalette.solid";
67
- };
68
- } | undefined;
69
- };
70
- subtle: {
71
- control: {
72
- bg: "colorPalette.muted";
73
- borderColor: "colorPalette.emphasized";
74
- '&:is([data-state=checked], [data-state=indeterminate])': {
75
- color: "colorPalette.fg";
76
- };
77
- } | undefined;
78
- };
79
- };
80
- }>;
@@ -1,64 +0,0 @@
1
- import { checkboxAnatomy } from '@chakra-ui/react/anatomy';
2
- import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
3
- import { checkmarkRecipe } from "../checkmark/checkmark.recipe.js";
4
- export const checkboxSlotRecipe = defineSlotRecipe({
5
- slots: checkboxAnatomy.keys(),
6
- className: 'chakra-checkbox',
7
- base: {
8
- root: {
9
- colorPalette: 'accent',
10
- display: 'inline-flex',
11
- gap: '2',
12
- alignItems: 'center',
13
- verticalAlign: 'top',
14
- position: 'relative',
15
- },
16
- control: checkmarkRecipe.base,
17
- label: {
18
- fontWeight: 'medium',
19
- userSelect: 'none',
20
- _disabled: {
21
- opacity: '0.5',
22
- },
23
- },
24
- },
25
- variants: {
26
- size: {
27
- xs: {
28
- root: { gap: '1.5' },
29
- label: { textStyle: 'xs' },
30
- control: checkmarkRecipe.variants?.size?.xs,
31
- },
32
- sm: {
33
- root: { gap: '2' },
34
- label: { textStyle: 'sm' },
35
- control: checkmarkRecipe.variants?.size?.sm,
36
- },
37
- md: {
38
- root: { gap: '2.5' },
39
- label: { textStyle: 'sm' },
40
- control: checkmarkRecipe.variants?.size?.md,
41
- },
42
- lg: {
43
- root: { gap: '3' },
44
- label: { textStyle: 'md' },
45
- control: checkmarkRecipe.variants?.size?.lg,
46
- },
47
- },
48
- variant: {
49
- outline: {
50
- control: checkmarkRecipe.variants?.variant?.outline,
51
- },
52
- solid: {
53
- control: checkmarkRecipe.variants?.variant?.solid,
54
- },
55
- subtle: {
56
- control: checkmarkRecipe.variants?.variant?.subtle,
57
- },
58
- },
59
- },
60
- defaultVariants: {
61
- variant: 'solid',
62
- size: 'md',
63
- },
64
- });
@@ -1,188 +0,0 @@
1
- export declare const checkboxCardSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"description" | "content" | "label" | "control" | "indicator" | "root" | "addon", {
2
- size: {
3
- sm: {
4
- root: {
5
- textStyle: "sm";
6
- };
7
- control: {
8
- padding: "3";
9
- gap: "1.5";
10
- };
11
- addon: {
12
- px: "3";
13
- py: "1.5";
14
- borderTopWidth: "1px";
15
- };
16
- indicator: {
17
- boxSize: "3.5";
18
- } | undefined;
19
- };
20
- md: {
21
- root: {
22
- textStyle: "sm";
23
- };
24
- control: {
25
- padding: "4";
26
- gap: "2.5";
27
- };
28
- addon: {
29
- px: "4";
30
- py: "2";
31
- borderTopWidth: "1px";
32
- };
33
- indicator: {
34
- boxSize: "4";
35
- p: "0.5";
36
- } | undefined;
37
- };
38
- lg: {
39
- root: {
40
- textStyle: "md";
41
- };
42
- control: {
43
- padding: "4";
44
- gap: "3.5";
45
- };
46
- addon: {
47
- px: "4";
48
- py: "2";
49
- borderTopWidth: "1px";
50
- };
51
- indicator: {
52
- boxSize: "5";
53
- p: "0.5";
54
- } | undefined;
55
- };
56
- };
57
- variant: {
58
- surface: {
59
- root: {
60
- borderWidth: "1px";
61
- borderColor: "border";
62
- _checked: {
63
- bg: "colorPalette.subtle";
64
- color: "colorPalette.fg";
65
- borderColor: "colorPalette.muted";
66
- };
67
- _disabled: {
68
- bg: "bg.muted";
69
- };
70
- };
71
- indicator: {
72
- borderColor: "border.emphasized";
73
- '&:is([data-state=checked], [data-state=indeterminate])': {
74
- bg: "colorPalette.solid";
75
- color: "colorPalette.contrast";
76
- borderColor: "colorPalette.solid";
77
- };
78
- } | undefined;
79
- };
80
- subtle: {
81
- root: {
82
- bg: "bg.muted";
83
- };
84
- control: {
85
- _checked: {
86
- bg: "colorPalette.muted";
87
- color: "colorPalette.fg";
88
- };
89
- };
90
- indicator: {
91
- '&:is([data-state=checked], [data-state=indeterminate])': {
92
- color: "colorPalette.fg";
93
- };
94
- } | undefined;
95
- };
96
- outline: {
97
- root: {
98
- borderWidth: "1px";
99
- borderColor: "border";
100
- _checked: {
101
- boxShadow: "0 0 0 1px var(--shadow-color)";
102
- boxShadowColor: "colorPalette.solid";
103
- borderColor: "colorPalette.solid";
104
- };
105
- };
106
- indicator: {
107
- borderColor: "border.emphasized";
108
- '&:is([data-state=checked], [data-state=indeterminate])': {
109
- bg: "colorPalette.solid";
110
- color: "colorPalette.contrast";
111
- borderColor: "colorPalette.solid";
112
- };
113
- } | undefined;
114
- };
115
- solid: {
116
- root: {
117
- borderWidth: "1px";
118
- _checked: {
119
- bg: "colorPalette.solid";
120
- color: "colorPalette.contrast";
121
- borderColor: "colorPalette.solid";
122
- };
123
- };
124
- indicator: {
125
- borderColor: "border";
126
- color: "colorPalette.fg";
127
- '&:is([data-state=checked], [data-state=indeterminate])': {
128
- borderColor: "colorPalette.solid";
129
- };
130
- } | undefined;
131
- };
132
- };
133
- justify: {
134
- start: {
135
- root: {
136
- '--checkbox-card-justify': "flex-start";
137
- };
138
- };
139
- end: {
140
- root: {
141
- '--checkbox-card-justify': "flex-end";
142
- };
143
- };
144
- center: {
145
- root: {
146
- '--checkbox-card-justify': "center";
147
- };
148
- };
149
- };
150
- align: {
151
- start: {
152
- root: {
153
- '--checkbox-card-align': "flex-start";
154
- };
155
- content: {
156
- textAlign: "start";
157
- };
158
- };
159
- end: {
160
- root: {
161
- '--checkbox-card-align': "flex-end";
162
- };
163
- content: {
164
- textAlign: "end";
165
- };
166
- };
167
- center: {
168
- root: {
169
- '--checkbox-card-align': "center";
170
- };
171
- content: {
172
- textAlign: "center";
173
- };
174
- };
175
- };
176
- orientation: {
177
- vertical: {
178
- control: {
179
- flexDirection: "column";
180
- };
181
- };
182
- horizontal: {
183
- control: {
184
- flexDirection: "row";
185
- };
186
- };
187
- };
188
- }>;
@@ -1,202 +0,0 @@
1
- import { checkboxCardAnatomy } from '@chakra-ui/react/anatomy';
2
- import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
3
- import { checkmarkRecipe } from "../checkmark/checkmark.recipe.js";
4
- export const checkboxCardSlotRecipe = defineSlotRecipe({
5
- slots: checkboxCardAnatomy.keys(),
6
- className: 'chakra-checkbox-card',
7
- base: {
8
- root: {
9
- colorPalette: 'accent',
10
- display: 'flex',
11
- flexDirection: 'column',
12
- userSelect: 'none',
13
- position: 'relative',
14
- borderRadius: 'panel.md',
15
- flex: '1',
16
- focusVisibleRing: 'outside',
17
- _disabled: {
18
- opacity: '0.8',
19
- borderColor: 'border.subtle',
20
- },
21
- _invalid: {
22
- outline: '2px solid',
23
- outlineColor: 'border.error',
24
- },
25
- },
26
- control: {
27
- display: 'inline-flex',
28
- flex: '1',
29
- position: 'relative',
30
- borderRadius: 'panel.md',
31
- justifyContent: 'var(--checkbox-card-justify)',
32
- alignItems: 'var(--checkbox-card-align)',
33
- },
34
- label: {
35
- fontWeight: 'medium',
36
- display: 'flex',
37
- alignItems: 'center',
38
- gap: '2',
39
- _disabled: {
40
- opacity: '0.5',
41
- },
42
- },
43
- description: {
44
- opacity: '0.64',
45
- textStyle: 'sm',
46
- },
47
- addon: {
48
- _disabled: {
49
- opacity: '0.5',
50
- },
51
- },
52
- indicator: checkmarkRecipe.base,
53
- content: {
54
- display: 'flex',
55
- flexDirection: 'column',
56
- flex: '1',
57
- gap: '1',
58
- justifyContent: 'var(--checkbox-card-justify)',
59
- alignItems: 'var(--checkbox-card-align)',
60
- },
61
- },
62
- variants: {
63
- size: {
64
- sm: {
65
- root: {
66
- textStyle: 'sm',
67
- },
68
- control: {
69
- padding: '3',
70
- gap: '1.5',
71
- },
72
- addon: {
73
- px: '3',
74
- py: '1.5',
75
- borderTopWidth: '1px',
76
- },
77
- indicator: checkmarkRecipe.variants?.size.sm,
78
- },
79
- md: {
80
- root: {
81
- textStyle: 'sm',
82
- },
83
- control: {
84
- padding: '4',
85
- gap: '2.5',
86
- },
87
- addon: {
88
- px: '4',
89
- py: '2',
90
- borderTopWidth: '1px',
91
- },
92
- indicator: checkmarkRecipe.variants?.size.md,
93
- },
94
- lg: {
95
- root: {
96
- textStyle: 'md',
97
- },
98
- control: {
99
- padding: '4',
100
- gap: '3.5',
101
- },
102
- addon: {
103
- px: '4',
104
- py: '2',
105
- borderTopWidth: '1px',
106
- },
107
- indicator: checkmarkRecipe.variants?.size.lg,
108
- },
109
- },
110
- variant: {
111
- surface: {
112
- root: {
113
- borderWidth: '1px',
114
- borderColor: 'border',
115
- _checked: {
116
- bg: 'colorPalette.subtle',
117
- color: 'colorPalette.fg',
118
- borderColor: 'colorPalette.muted',
119
- },
120
- _disabled: {
121
- bg: 'bg.muted',
122
- },
123
- },
124
- indicator: checkmarkRecipe.variants?.variant.solid,
125
- },
126
- subtle: {
127
- root: {
128
- bg: 'bg.muted',
129
- },
130
- control: {
131
- _checked: {
132
- bg: 'colorPalette.muted',
133
- color: 'colorPalette.fg',
134
- },
135
- },
136
- indicator: checkmarkRecipe.variants?.variant.plain,
137
- },
138
- outline: {
139
- root: {
140
- borderWidth: '1px',
141
- borderColor: 'border',
142
- _checked: {
143
- boxShadow: '0 0 0 1px var(--shadow-color)',
144
- boxShadowColor: 'colorPalette.solid',
145
- borderColor: 'colorPalette.solid',
146
- },
147
- },
148
- indicator: checkmarkRecipe.variants?.variant.solid,
149
- },
150
- solid: {
151
- root: {
152
- borderWidth: '1px',
153
- _checked: {
154
- bg: 'colorPalette.solid',
155
- color: 'colorPalette.contrast',
156
- borderColor: 'colorPalette.solid',
157
- },
158
- },
159
- indicator: checkmarkRecipe.variants?.variant.inverted,
160
- },
161
- },
162
- justify: {
163
- start: {
164
- root: { '--checkbox-card-justify': 'flex-start' },
165
- },
166
- end: {
167
- root: { '--checkbox-card-justify': 'flex-end' },
168
- },
169
- center: {
170
- root: { '--checkbox-card-justify': 'center' },
171
- },
172
- },
173
- align: {
174
- start: {
175
- root: { '--checkbox-card-align': 'flex-start' },
176
- content: { textAlign: 'start' },
177
- },
178
- end: {
179
- root: { '--checkbox-card-align': 'flex-end' },
180
- content: { textAlign: 'end' },
181
- },
182
- center: {
183
- root: { '--checkbox-card-align': 'center' },
184
- content: { textAlign: 'center' },
185
- },
186
- },
187
- orientation: {
188
- vertical: {
189
- control: { flexDirection: 'column' },
190
- },
191
- horizontal: {
192
- control: { flexDirection: 'row' },
193
- },
194
- },
195
- },
196
- defaultVariants: {
197
- size: 'md',
198
- variant: 'outline',
199
- align: 'start',
200
- orientation: 'horizontal',
201
- },
202
- });