@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,77 +0,0 @@
1
- export declare const radioGroupSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "indicator" | "root" | "item" | "itemIndicator" | "itemText" | "itemControl" | "itemAddon", {
2
- variant: {
3
- outline: {
4
- itemControl: {
5
- borderWidth: "1px";
6
- borderColor: "inherit";
7
- _checked: {
8
- color: "colorPalette.fg";
9
- borderColor: "colorPalette.solid";
10
- };
11
- '& .dot': {
12
- scale: "0.6";
13
- };
14
- } | undefined;
15
- };
16
- subtle: {
17
- itemControl: {
18
- borderWidth: "1px";
19
- bg: "colorPalette.muted";
20
- borderColor: "colorPalette.muted";
21
- color: "transparent";
22
- _checked: {
23
- color: "colorPalette.fg";
24
- };
25
- } | undefined;
26
- };
27
- solid: {
28
- itemControl: {
29
- borderWidth: "1px";
30
- borderColor: "border";
31
- _checked: {
32
- bg: "colorPalette.solid";
33
- color: "colorPalette.contrast";
34
- borderColor: "colorPalette.solid";
35
- };
36
- } | undefined;
37
- };
38
- };
39
- size: {
40
- xs: {
41
- item: {
42
- textStyle: "xs";
43
- gap: "1.5";
44
- };
45
- itemControl: {
46
- boxSize: "3";
47
- } | undefined;
48
- };
49
- sm: {
50
- item: {
51
- textStyle: "sm";
52
- gap: "2";
53
- };
54
- itemControl: {
55
- boxSize: "3.5";
56
- } | undefined;
57
- };
58
- md: {
59
- item: {
60
- textStyle: "sm";
61
- gap: "2.5";
62
- };
63
- itemControl: {
64
- boxSize: "4";
65
- } | undefined;
66
- };
67
- lg: {
68
- item: {
69
- textStyle: "md";
70
- gap: "3";
71
- };
72
- itemControl: {
73
- boxSize: "5";
74
- } | undefined;
75
- };
76
- };
77
- }>;
@@ -1,61 +0,0 @@
1
- import { radioGroupAnatomy } from '@chakra-ui/react/anatomy';
2
- import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
3
- import { radiomarkRecipe } from "../radio/radiomark.recipe.js";
4
- export const radioGroupSlotRecipe = defineSlotRecipe({
5
- className: 'chakra-radio-group',
6
- slots: radioGroupAnatomy.keys(),
7
- base: {
8
- item: {
9
- display: 'inline-flex',
10
- alignItems: 'center',
11
- position: 'relative',
12
- fontWeight: 'medium',
13
- _disabled: {
14
- cursor: 'disabled',
15
- },
16
- },
17
- itemControl: radiomarkRecipe.base,
18
- label: {
19
- userSelect: 'none',
20
- textStyle: 'sm',
21
- _disabled: {
22
- opacity: '0.5',
23
- },
24
- },
25
- },
26
- variants: {
27
- variant: {
28
- outline: {
29
- itemControl: radiomarkRecipe.variants?.variant?.outline,
30
- },
31
- subtle: {
32
- itemControl: radiomarkRecipe.variants?.variant?.subtle,
33
- },
34
- solid: {
35
- itemControl: radiomarkRecipe.variants?.variant?.solid,
36
- },
37
- },
38
- size: {
39
- xs: {
40
- item: { textStyle: 'xs', gap: '1.5' },
41
- itemControl: radiomarkRecipe.variants?.size?.xs,
42
- },
43
- sm: {
44
- item: { textStyle: 'sm', gap: '2' },
45
- itemControl: radiomarkRecipe.variants?.size?.sm,
46
- },
47
- md: {
48
- item: { textStyle: 'sm', gap: '2.5' },
49
- itemControl: radiomarkRecipe.variants?.size?.md,
50
- },
51
- lg: {
52
- item: { textStyle: 'md', gap: '3' },
53
- itemControl: radiomarkRecipe.variants?.size?.lg,
54
- },
55
- },
56
- },
57
- defaultVariants: {
58
- size: 'md',
59
- variant: 'solid',
60
- },
61
- });
@@ -1,24 +0,0 @@
1
- export declare const ratingGroupSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "control" | "root" | "item" | "itemIndicator", {
2
- size: {
3
- xs: {
4
- item: {
5
- textStyle: "sm";
6
- };
7
- };
8
- sm: {
9
- item: {
10
- textStyle: "md";
11
- };
12
- };
13
- md: {
14
- item: {
15
- textStyle: "xl";
16
- };
17
- };
18
- lg: {
19
- item: {
20
- textStyle: "2xl";
21
- };
22
- };
23
- };
24
- }>;
@@ -1,83 +0,0 @@
1
- import { ratingGroupAnatomy } from '@chakra-ui/react/anatomy';
2
- import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
3
- export const ratingGroupSlotRecipe = defineSlotRecipe({
4
- className: 'chakra-rating-group',
5
- slots: ratingGroupAnatomy.keys(),
6
- base: {
7
- root: {
8
- display: 'inline-flex',
9
- },
10
- control: {
11
- display: 'inline-flex',
12
- alignItems: 'center',
13
- },
14
- item: {
15
- display: 'inline-flex',
16
- alignItems: 'center',
17
- justifyContent: 'center',
18
- userSelect: 'none',
19
- },
20
- itemIndicator: {
21
- display: 'inline-flex',
22
- alignItems: 'center',
23
- justifyContent: 'center',
24
- width: '1em',
25
- height: '1em',
26
- position: 'relative',
27
- _icon: {
28
- stroke: 'currentColor',
29
- width: '100%',
30
- height: '100%',
31
- display: 'inline-block',
32
- flexShrink: 0,
33
- position: 'absolute',
34
- left: 0,
35
- top: 0,
36
- },
37
- '& [data-bg]': {
38
- color: 'bg.emphasized',
39
- },
40
- '& [data-fg]': {
41
- color: 'transparent',
42
- },
43
- '&[data-highlighted]:not([data-half])': {
44
- '& [data-fg]': {
45
- color: 'colorPalette.solid',
46
- },
47
- },
48
- '&[data-half]': {
49
- '& [data-fg]': {
50
- color: 'colorPalette.solid',
51
- clipPath: 'inset(0 50% 0 0)',
52
- },
53
- },
54
- },
55
- },
56
- variants: {
57
- size: {
58
- xs: {
59
- item: {
60
- textStyle: 'sm',
61
- },
62
- },
63
- sm: {
64
- item: {
65
- textStyle: 'md',
66
- },
67
- },
68
- md: {
69
- item: {
70
- textStyle: 'xl',
71
- },
72
- },
73
- lg: {
74
- item: {
75
- textStyle: '2xl',
76
- },
77
- },
78
- },
79
- },
80
- defaultVariants: {
81
- size: 'md',
82
- },
83
- });
@@ -1,27 +0,0 @@
1
- export declare const sectionSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<string, {
2
- variant: {
3
- annotated: {
4
- root: {
5
- flexDirection: {
6
- base: "column";
7
- md: "row";
8
- };
9
- mt: number;
10
- };
11
- header: {
12
- width: {
13
- base: "full";
14
- md: "30%";
15
- };
16
- mb: {
17
- base: number;
18
- md: number;
19
- };
20
- pe: {
21
- base: number;
22
- md: number;
23
- };
24
- };
25
- };
26
- };
27
- }>;
@@ -1,63 +0,0 @@
1
- import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
2
- const slots = ['root', 'header', 'title', 'description', 'body'];
3
- export const sectionSlotRecipe = defineSlotRecipe({
4
- className: 'sui-section',
5
- slots,
6
- base: {
7
- root: {
8
- display: 'flex',
9
- flexDirection: 'column',
10
- },
11
- header: {
12
- flexShrink: 0,
13
- mb: 4,
14
- },
15
- title: {
16
- textStyle: 'heading',
17
- fontWeight: 'semibold',
18
- lineHeight: '110%',
19
- letterSpacing: '-1%',
20
- mb: 1,
21
- },
22
- description: {
23
- color: 'fg.muted',
24
- fontSize: 'md',
25
- '& a': {
26
- fontWeight: 'medium',
27
- color: 'fg',
28
- },
29
- },
30
- body: {
31
- flex: 1,
32
- minWidth: 0,
33
- },
34
- },
35
- variants: {
36
- variant: {
37
- annotated: {
38
- root: {
39
- flexDirection: {
40
- base: 'column',
41
- md: 'row',
42
- },
43
- mt: 4,
44
- },
45
- header: {
46
- width: {
47
- base: 'full',
48
- md: '30%',
49
- },
50
- mb: {
51
- base: 4,
52
- md: 0,
53
- },
54
- pe: {
55
- base: 4,
56
- md: 8,
57
- },
58
- },
59
- },
60
- },
61
- },
62
- defaultVariants: {},
63
- });
@@ -1,48 +0,0 @@
1
- export declare const segmentGroupSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "indicator" | "root" | "item" | "itemText" | "itemControl", {
2
- size: {
3
- xs: {
4
- root: {
5
- '--segment-radius': "radii.control.sm";
6
- height: "6";
7
- };
8
- item: {
9
- textStyle: "xs";
10
- px: "3";
11
- gap: "1";
12
- };
13
- };
14
- sm: {
15
- root: {
16
- '--segment-radius': "radii.control.md";
17
- height: "7";
18
- };
19
- item: {
20
- textStyle: "sm";
21
- px: "4";
22
- gap: "2";
23
- };
24
- };
25
- md: {
26
- root: {
27
- '--segment-radius': "radii.control.md";
28
- height: "8";
29
- };
30
- item: {
31
- textStyle: "md";
32
- px: "4";
33
- gap: "2";
34
- };
35
- };
36
- lg: {
37
- root: {
38
- '--segment-radius': "radii.control.lg";
39
- height: "10";
40
- };
41
- item: {
42
- textStyle: "md";
43
- px: "5";
44
- gap: "3";
45
- };
46
- };
47
- };
48
- }>;
@@ -1,127 +0,0 @@
1
- import { segmentGroupAnatomy } from '@chakra-ui/react/anatomy';
2
- import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
3
- export const segmentGroupSlotRecipe = defineSlotRecipe({
4
- className: 'chakra-segment-group',
5
- slots: segmentGroupAnatomy.keys(),
6
- base: {
7
- root: {
8
- borderRadius: 'var(--segment-radius)',
9
- display: 'inline-flex',
10
- boxShadow: 'inset',
11
- minW: 'max-content',
12
- textAlign: 'center',
13
- position: 'relative',
14
- isolation: 'isolate',
15
- bg: 'bg.muted',
16
- borderWidth: '1px',
17
- },
18
- item: {
19
- display: 'flex',
20
- alignItems: 'center',
21
- userSelect: 'none',
22
- fontSize: 'sm',
23
- position: 'relative',
24
- color: 'fg.subtle',
25
- cursor: 'button',
26
- borderRadius: 'var(--segment-radius)',
27
- _disabled: {
28
- opacity: '0.5',
29
- },
30
- _hover: {
31
- color: 'fg',
32
- },
33
- '&:has(input:focus-visible)': {
34
- focusRing: 'inside',
35
- focusRingWidth: '1px',
36
- },
37
- _before: {
38
- content: '""',
39
- position: 'absolute',
40
- insetInlineStart: 0,
41
- insetBlock: '0',
42
- bg: 'border',
43
- width: '1px',
44
- transition: 'opacity 0.2s',
45
- },
46
- _checked: {
47
- color: 'fg',
48
- },
49
- '& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type': {
50
- _before: {
51
- opacity: '0',
52
- },
53
- },
54
- '&[data-state=checked][data-ssr]': {
55
- shadow: 'sm',
56
- bg: 'bg',
57
- color: 'fg',
58
- borderRadius: 'var(--segment-radius)',
59
- },
60
- },
61
- indicator: {
62
- pos: 'absolute',
63
- bg: {
64
- base: 'bg',
65
- _dark: 'bg.emphasized',
66
- },
67
- width: 'var(--width)',
68
- height: 'var(--height)',
69
- top: 'var(--top)',
70
- left: 'var(--left)',
71
- zIndex: -1,
72
- borderRadius: 'var(--segment-radius)',
73
- boxShadow: '0 0 0 1px {colors.border.emphasized}',
74
- },
75
- },
76
- variants: {
77
- size: {
78
- xs: {
79
- root: {
80
- '--segment-radius': 'radii.control.sm',
81
- height: '6',
82
- },
83
- item: {
84
- textStyle: 'xs',
85
- px: '3',
86
- gap: '1',
87
- },
88
- },
89
- sm: {
90
- root: {
91
- '--segment-radius': 'radii.control.md',
92
- height: '7',
93
- },
94
- item: {
95
- textStyle: 'sm',
96
- px: '4',
97
- gap: '2',
98
- },
99
- },
100
- md: {
101
- root: {
102
- '--segment-radius': 'radii.control.md',
103
- height: '8',
104
- },
105
- item: {
106
- textStyle: 'md',
107
- px: '4',
108
- gap: '2',
109
- },
110
- },
111
- lg: {
112
- root: {
113
- '--segment-radius': 'radii.control.lg',
114
- height: '10',
115
- },
116
- item: {
117
- textStyle: 'md',
118
- px: '5',
119
- gap: '3',
120
- },
121
- },
122
- },
123
- },
124
- defaultVariants: {
125
- size: 'md',
126
- },
127
- });
@@ -1,155 +0,0 @@
1
- export declare const selectSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"content" | "label" | "control" | "indicator" | "root" | "item" | "itemIndicator" | "positioner" | "list" | "trigger" | "itemGroup" | "clearTrigger" | "itemGroupLabel" | "itemText" | "indicatorGroup" | "valueText", {
2
- variant: {
3
- outline: {
4
- trigger: {
5
- bg: "transparent";
6
- borderWidth: "1px";
7
- borderColor: "border";
8
- _expanded: {
9
- borderColor: "border.emphasized";
10
- };
11
- };
12
- };
13
- subtle: {
14
- trigger: {
15
- borderWidth: "1px";
16
- borderColor: "transparent";
17
- bg: "bg.muted";
18
- };
19
- };
20
- };
21
- size: {
22
- xs: {
23
- root: {
24
- '--select-trigger-height': "sizes.6";
25
- '--select-trigger-padding-x': "spacing.2";
26
- };
27
- content: {
28
- p: "1";
29
- gap: "1";
30
- textStyle: "xs";
31
- };
32
- trigger: {
33
- borderRadius: "sm";
34
- textStyle: "xs";
35
- gap: "1";
36
- };
37
- item: {
38
- py: "1";
39
- px: "2";
40
- };
41
- itemGroupLabel: {
42
- py: "1";
43
- px: "2";
44
- };
45
- indicator: {
46
- _icon: {
47
- width: "3.5";
48
- height: "3.5";
49
- };
50
- };
51
- };
52
- sm: {
53
- root: {
54
- '--select-trigger-height': "sizes.7";
55
- '--select-trigger-padding-x': "spacing.2.5";
56
- };
57
- content: {
58
- p: "1";
59
- textStyle: "sm";
60
- };
61
- trigger: {
62
- borderRadius: "sm";
63
- textStyle: "sm";
64
- gap: "1";
65
- };
66
- indicator: {
67
- _icon: {
68
- width: "4";
69
- height: "4";
70
- };
71
- };
72
- item: {
73
- py: "1";
74
- px: "1.5";
75
- };
76
- itemGroup: {
77
- mt: "1";
78
- };
79
- itemGroupLabel: {
80
- py: "1";
81
- px: "1.5";
82
- };
83
- };
84
- md: {
85
- root: {
86
- '--select-trigger-height': "sizes.8";
87
- '--select-trigger-padding-x': "spacing.3";
88
- };
89
- content: {
90
- p: "1";
91
- textStyle: "sm";
92
- };
93
- itemGroup: {
94
- mt: "1.5";
95
- };
96
- item: {
97
- py: "1.5";
98
- px: "2";
99
- };
100
- itemIndicator: {
101
- display: "flex";
102
- alignItems: "center";
103
- justifyContent: "center";
104
- };
105
- itemGroupLabel: {
106
- py: "1.5";
107
- px: "2";
108
- };
109
- trigger: {
110
- borderRadius: "md";
111
- textStyle: "sm";
112
- gap: "2";
113
- };
114
- indicator: {
115
- _icon: {
116
- width: "4";
117
- height: "4";
118
- };
119
- };
120
- };
121
- lg: {
122
- root: {
123
- '--select-trigger-height': "sizes.10";
124
- '--select-trigger-padding-x': "spacing.4";
125
- };
126
- content: {
127
- p: "1.5";
128
- textStyle: "md";
129
- };
130
- itemGroup: {
131
- mt: "2";
132
- };
133
- item: {
134
- py: "2";
135
- px: "3";
136
- };
137
- itemGroupLabel: {
138
- py: "2";
139
- px: "3";
140
- };
141
- trigger: {
142
- borderRadius: "md";
143
- textStyle: "md";
144
- py: "3";
145
- gap: "2";
146
- };
147
- indicator: {
148
- _icon: {
149
- width: "5";
150
- height: "5";
151
- };
152
- };
153
- };
154
- };
155
- }>;