@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,52 +0,0 @@
1
- export declare const blockquoteSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"content" | "root" | "icon" | "caption", {
2
- justify: {
3
- start: {
4
- root: {
5
- alignItems: "flex-start";
6
- textAlign: "start";
7
- };
8
- };
9
- center: {
10
- root: {
11
- alignItems: "center";
12
- textAlign: "center";
13
- };
14
- };
15
- end: {
16
- root: {
17
- alignItems: "flex-end";
18
- textAlign: "end";
19
- };
20
- };
21
- };
22
- variant: {
23
- subtle: {
24
- root: {
25
- paddingX: "5";
26
- borderStartWidth: "4px";
27
- borderStartColor: "colorPalette.muted";
28
- };
29
- icon: {
30
- color: "colorPalette.fg";
31
- };
32
- };
33
- solid: {
34
- root: {
35
- paddingX: "5";
36
- borderStartWidth: "4px";
37
- borderStartColor: "colorPalette.solid";
38
- };
39
- icon: {
40
- color: "colorPalette.solid";
41
- };
42
- };
43
- plain: {
44
- root: {
45
- paddingX: "5";
46
- };
47
- icon: {
48
- color: "colorPalette.solid";
49
- };
50
- };
51
- };
52
- }>;
@@ -1,77 +0,0 @@
1
- import { blockquoteAnatomy } from '@chakra-ui/react/anatomy';
2
- import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
3
- export const blockquoteSlotRecipe = defineSlotRecipe({
4
- className: 'chakra-blockquote',
5
- slots: blockquoteAnatomy.keys(),
6
- base: {
7
- root: {
8
- position: 'relative',
9
- display: 'flex',
10
- flexDirection: 'column',
11
- gap: '2',
12
- },
13
- caption: {
14
- textStyle: 'sm',
15
- color: 'fg.muted',
16
- },
17
- icon: {
18
- boxSize: '5',
19
- },
20
- },
21
- variants: {
22
- justify: {
23
- start: {
24
- root: {
25
- alignItems: 'flex-start',
26
- textAlign: 'start',
27
- },
28
- },
29
- center: {
30
- root: {
31
- alignItems: 'center',
32
- textAlign: 'center',
33
- },
34
- },
35
- end: {
36
- root: {
37
- alignItems: 'flex-end',
38
- textAlign: 'end',
39
- },
40
- },
41
- },
42
- variant: {
43
- subtle: {
44
- root: {
45
- paddingX: '5',
46
- borderStartWidth: '4px',
47
- borderStartColor: 'colorPalette.muted',
48
- },
49
- icon: {
50
- color: 'colorPalette.fg',
51
- },
52
- },
53
- solid: {
54
- root: {
55
- paddingX: '5',
56
- borderStartWidth: '4px',
57
- borderStartColor: 'colorPalette.solid',
58
- },
59
- icon: {
60
- color: 'colorPalette.solid',
61
- },
62
- },
63
- plain: {
64
- root: {
65
- paddingX: '5',
66
- },
67
- icon: {
68
- color: 'colorPalette.solid',
69
- },
70
- },
71
- },
72
- },
73
- defaultVariants: {
74
- variant: 'subtle',
75
- justify: 'start',
76
- },
77
- });
@@ -1,46 +0,0 @@
1
- export declare const breadcrumbSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"link" | "root" | "item" | "separator" | "currentLink" | "list" | "ellipsis", {
2
- variant: {
3
- underline: {
4
- link: {
5
- color: "colorPalette.fg";
6
- textDecoration: "underline";
7
- textUnderlineOffset: "0.2em";
8
- textDecorationColor: "colorPalette.muted";
9
- };
10
- currentLink: {
11
- color: "colorPalette.fg";
12
- };
13
- };
14
- plain: {
15
- link: {
16
- color: "fg.muted";
17
- _hover: {
18
- color: "fg";
19
- };
20
- };
21
- currentLink: {
22
- color: "fg";
23
- };
24
- };
25
- };
26
- size: {
27
- sm: {
28
- list: {
29
- gap: "1";
30
- textStyle: "xs";
31
- };
32
- };
33
- md: {
34
- list: {
35
- gap: "1.5";
36
- textStyle: "sm";
37
- };
38
- };
39
- lg: {
40
- list: {
41
- gap: "2";
42
- textStyle: "md";
43
- };
44
- };
45
- };
46
- }>;
@@ -1,90 +0,0 @@
1
- import { breadcrumbAnatomy } from '@chakra-ui/react/anatomy';
2
- import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
3
- export const breadcrumbSlotRecipe = defineSlotRecipe({
4
- className: 'chakra-breadcrumb',
5
- slots: breadcrumbAnatomy.keys(),
6
- base: {
7
- list: {
8
- display: 'flex',
9
- alignItems: 'center',
10
- wordBreak: 'break-word',
11
- color: 'fg.muted',
12
- },
13
- link: {
14
- outline: '0',
15
- textDecoration: 'none',
16
- borderRadius: 'control.sm',
17
- focusRing: 'outside',
18
- display: 'inline-flex',
19
- alignItems: 'center',
20
- gap: '2',
21
- },
22
- item: {
23
- display: 'inline-flex',
24
- alignItems: 'center',
25
- },
26
- separator: {
27
- color: 'fg.muted',
28
- opacity: '0.8',
29
- _icon: {
30
- boxSize: '1em',
31
- },
32
- },
33
- ellipsis: {
34
- display: 'inline-flex',
35
- alignItems: 'center',
36
- justifyContent: 'center',
37
- _icon: {
38
- boxSize: '1em',
39
- },
40
- },
41
- },
42
- variants: {
43
- variant: {
44
- underline: {
45
- link: {
46
- color: 'colorPalette.fg',
47
- textDecoration: 'underline',
48
- textUnderlineOffset: '0.2em',
49
- textDecorationColor: 'colorPalette.muted',
50
- },
51
- currentLink: {
52
- color: 'colorPalette.fg',
53
- },
54
- },
55
- plain: {
56
- link: {
57
- color: 'fg.muted',
58
- _hover: { color: 'fg' },
59
- },
60
- currentLink: {
61
- color: 'fg',
62
- },
63
- },
64
- },
65
- size: {
66
- sm: {
67
- list: {
68
- gap: '1',
69
- textStyle: 'xs',
70
- },
71
- },
72
- md: {
73
- list: {
74
- gap: '1.5',
75
- textStyle: 'sm',
76
- },
77
- },
78
- lg: {
79
- list: {
80
- gap: '2',
81
- textStyle: 'md',
82
- },
83
- },
84
- },
85
- },
86
- defaultVariants: {
87
- variant: 'plain',
88
- size: 'md',
89
- },
90
- });
@@ -1,141 +0,0 @@
1
- export declare const buttonRecipe: import("@chakra-ui/react").RecipeDefinition<{
2
- size: {
3
- xs: {
4
- gap: "1";
5
- h: "6";
6
- minW: "6";
7
- textStyle: "xs";
8
- borderRadius: "control.sm";
9
- px: "2";
10
- };
11
- sm: {
12
- gap: "2";
13
- h: "7";
14
- minW: "7";
15
- textStyle: "sm";
16
- borderRadius: "control.md";
17
- px: "2.5";
18
- };
19
- md: {
20
- gap: "2";
21
- h: "8";
22
- minW: "8";
23
- borderRadius: "control.md";
24
- textStyle: "sm";
25
- px: "3";
26
- };
27
- lg: {
28
- gap: "3";
29
- h: "10";
30
- minW: "10";
31
- borderRadius: "control.lg";
32
- textStyle: "md";
33
- px: "4.5";
34
- };
35
- xl: {
36
- gap: "3";
37
- h: "12";
38
- minW: "12";
39
- borderRadius: "control.lg";
40
- textStyle: "lg";
41
- px: "6";
42
- };
43
- };
44
- variant: {
45
- solid: {
46
- bg: "colorPalette.solid";
47
- boxShadow: "sm";
48
- color: "colorPalette.contrast";
49
- _hover: {
50
- bg: "colorPalette.solid/90";
51
- };
52
- _popupExpanded: {
53
- bg: string;
54
- };
55
- };
56
- subtle: {
57
- bg: "colorPalette.muted";
58
- color: "colorPalette.fg";
59
- _hover: {
60
- bg: "colorPalette.subtle";
61
- };
62
- _popupExpanded: {
63
- bg: string;
64
- };
65
- };
66
- glass: {
67
- bg: "colorPalette.solid";
68
- color: "colorPalette.contrast";
69
- '--btn-shadow': "shadows.sm";
70
- boxShadow: {
71
- base: "0 0 0 1px rgba(0,0,0,0.25) inset, 0px 2px 0px 0px rgba(255,255,255,0.2) inset, var(--btn-shadow)";
72
- _dark: " 0px 1px 0px 0px rgba(255,255,255,0.2) inset, var(--btn-shadow)";
73
- };
74
- textShadow: "0 1px 2px rgba(0,0,0,0.3)";
75
- overflow: "clip";
76
- _after: {
77
- content: "\"\"";
78
- position: "absolute";
79
- top: "0";
80
- left: "0";
81
- right: "0";
82
- bottom: "0";
83
- background: "linear-gradient(180deg, white 40%, rgba(0,0,0,0.2))";
84
- opacity: number;
85
- transitionProperty: "opacity";
86
- transitionDuration: "moderate";
87
- pointerEvents: "none";
88
- };
89
- _hover: {
90
- bg: "colorPalette.solid";
91
- _after: {
92
- background: "linear-gradient(180deg, rgba(255,255,255,0.8) 40%, rgba(0,0,0,0.6))";
93
- };
94
- };
95
- _popupExpanded: {
96
- bg: string;
97
- _after: {
98
- background: string;
99
- };
100
- };
101
- };
102
- surface: {
103
- bg: "colorPalette.muted/20";
104
- borderWidth: "1px";
105
- borderColor: "colorPalette.emphasized/90";
106
- color: "colorPalette.fg";
107
- shadow: "xs";
108
- _hover: {
109
- bg: "colorPalette.muted";
110
- borderColor: "colorPalette.emphasized";
111
- };
112
- _popupExpanded: {
113
- bg: string;
114
- borderColor: string;
115
- };
116
- };
117
- outline: {
118
- borderWidth: "0.5px";
119
- borderColor: "colorPalette.emphasized";
120
- color: "colorPalette.fg";
121
- _hover: {
122
- bg: "colorPalette.muted";
123
- };
124
- _popupExpanded: {
125
- bg: string;
126
- };
127
- };
128
- ghost: {
129
- color: "colorPalette.fg";
130
- _hover: {
131
- bg: "colorPalette.subtle";
132
- };
133
- _popupExpanded: {
134
- bg: string;
135
- };
136
- };
137
- plain: {
138
- color: "colorPalette.fg";
139
- };
140
- };
141
- }>;
@@ -1,185 +0,0 @@
1
- import { defineRecipe } from '@chakra-ui/react/styled-system';
2
- export const buttonRecipe = defineRecipe({
3
- className: 'chakra-button',
4
- base: {
5
- colorPalette: 'gray',
6
- display: 'inline-flex',
7
- appearance: 'none',
8
- alignItems: 'center',
9
- justifyContent: 'center',
10
- userSelect: 'none',
11
- position: 'relative',
12
- whiteSpace: 'nowrap',
13
- verticalAlign: 'middle',
14
- cursor: 'pointer',
15
- flexShrink: '0',
16
- outline: '0',
17
- lineHeight: '1.2',
18
- isolation: 'isolate',
19
- fontWeight: 'medium',
20
- transitionProperty: 'common',
21
- transitionDuration: 'moderate',
22
- focusVisibleRing: 'outside',
23
- _disabled: {
24
- layerStyle: 'disabled',
25
- },
26
- _icon: {
27
- fontSize: '1em',
28
- flexShrink: 0,
29
- },
30
- },
31
- variants: {
32
- size: {
33
- xs: {
34
- gap: '1',
35
- h: '6',
36
- minW: '6',
37
- textStyle: 'xs',
38
- borderRadius: 'control.sm',
39
- px: '2',
40
- },
41
- sm: {
42
- gap: '2',
43
- h: '7',
44
- minW: '7',
45
- textStyle: 'sm',
46
- borderRadius: 'control.md',
47
- px: '2.5',
48
- },
49
- md: {
50
- gap: '2',
51
- h: '8',
52
- minW: '8',
53
- borderRadius: 'control.md',
54
- textStyle: 'sm',
55
- px: '3',
56
- },
57
- lg: {
58
- gap: '3',
59
- h: '10',
60
- minW: '10',
61
- borderRadius: 'control.lg',
62
- textStyle: 'md',
63
- px: '4.5',
64
- },
65
- xl: {
66
- gap: '3',
67
- h: '12',
68
- minW: '12',
69
- borderRadius: 'control.lg',
70
- textStyle: 'lg',
71
- px: '6',
72
- },
73
- },
74
- variant: {
75
- solid: {
76
- bg: 'colorPalette.solid',
77
- boxShadow: 'sm',
78
- color: 'colorPalette.contrast',
79
- _hover: {
80
- bg: 'colorPalette.solid/90',
81
- },
82
- _popupExpanded: {
83
- bg: 'colorPalette.solid/90',
84
- },
85
- },
86
- subtle: {
87
- bg: 'colorPalette.muted',
88
- color: 'colorPalette.fg',
89
- _hover: {
90
- bg: 'colorPalette.subtle',
91
- },
92
- _popupExpanded: {
93
- bg: 'colorPalette.subtle',
94
- },
95
- },
96
- glass: {
97
- bg: 'colorPalette.solid',
98
- color: 'colorPalette.contrast',
99
- '--btn-shadow': 'shadows.sm',
100
- boxShadow: {
101
- base: '0 0 0 1px rgba(0,0,0,0.25) inset, 0px 2px 0px 0px rgba(255,255,255,0.2) inset, var(--btn-shadow)',
102
- _dark: ' 0px 1px 0px 0px rgba(255,255,255,0.2) inset, var(--btn-shadow)',
103
- },
104
- textShadow: '0 1px 2px rgba(0,0,0,0.3)',
105
- overflow: 'clip',
106
- _after: {
107
- content: '""',
108
- position: 'absolute',
109
- top: '0',
110
- left: '0',
111
- right: '0',
112
- bottom: '0',
113
- background: 'linear-gradient(180deg, white 40%, rgba(0,0,0,0.2))',
114
- opacity: 0.2,
115
- transitionProperty: 'opacity',
116
- transitionDuration: 'moderate',
117
- pointerEvents: 'none',
118
- },
119
- _hover: {
120
- bg: 'colorPalette.solid',
121
- _after: {
122
- background: 'linear-gradient(180deg, rgba(255,255,255,0.8) 40%, rgba(0,0,0,0.6))',
123
- },
124
- },
125
- _popupExpanded: {
126
- bg: 'colorPalette.solid',
127
- _after: {
128
- background: 'linear-gradient(180deg, rgba(255,255,255,0.8) 40%, rgba(0,0,0,0.6))',
129
- },
130
- },
131
- },
132
- surface: {
133
- bg: 'colorPalette.muted/20',
134
- borderWidth: '1px',
135
- borderColor: 'colorPalette.emphasized/90',
136
- color: 'colorPalette.fg',
137
- shadow: 'xs',
138
- _hover: {
139
- bg: 'colorPalette.muted',
140
- borderColor: 'colorPalette.emphasized',
141
- },
142
- _popupExpanded: {
143
- bg: 'colorPalette.muted',
144
- borderColor: 'colorPalette.emphasized',
145
- },
146
- },
147
- outline: {
148
- borderWidth: '0.5px',
149
- borderColor: 'colorPalette.emphasized',
150
- color: 'colorPalette.fg',
151
- _hover: {
152
- bg: 'colorPalette.muted',
153
- },
154
- _popupExpanded: {
155
- bg: 'colorPalette.muted',
156
- },
157
- },
158
- ghost: {
159
- color: 'colorPalette.fg',
160
- _hover: {
161
- bg: 'colorPalette.subtle',
162
- },
163
- _popupExpanded: {
164
- bg: 'colorPalette.subtle',
165
- },
166
- },
167
- plain: {
168
- color: 'colorPalette.fg',
169
- },
170
- },
171
- },
172
- compoundVariants: [
173
- {
174
- variant: 'plain',
175
- css: {
176
- px: 0,
177
- },
178
- },
179
- ],
180
- defaultVariants: {
181
- size: 'md',
182
- variant: 'surface',
183
- colorPalette: 'gray',
184
- },
185
- });
@@ -1,78 +0,0 @@
1
- export declare const cardSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"description" | "body" | "root" | "title" | "header" | "footer", {
2
- size: {
3
- sm: {
4
- root: {
5
- '--card-padding': "spacing.2.5";
6
- };
7
- title: {
8
- fontSize: "sm";
9
- };
10
- };
11
- md: {
12
- root: {
13
- '--card-padding': "spacing.4";
14
- };
15
- title: {
16
- fontSize: "md";
17
- };
18
- };
19
- lg: {
20
- root: {
21
- '--card-padding': "spacing.6";
22
- };
23
- title: {
24
- fontSize: "lg";
25
- };
26
- };
27
- };
28
- variant: {
29
- elevated: {
30
- root: {
31
- bg: "bg.panel";
32
- boxShadow: "md";
33
- borderWidth: "0.5px";
34
- borderColor: "border";
35
- _pressable: {
36
- transitionProperty: string;
37
- transitionDuration: string;
38
- _hover: {
39
- borderColor: string;
40
- };
41
- };
42
- };
43
- };
44
- outline: {
45
- root: {
46
- bg: "bg.panel";
47
- borderWidth: "1px";
48
- borderColor: "border";
49
- _pressable: {
50
- transitionProperty: string;
51
- transitionDuration: string;
52
- _hover: {
53
- borderColor: string;
54
- };
55
- };
56
- };
57
- };
58
- subtle: {
59
- root: {
60
- bg: "colorPalette.muted";
61
- };
62
- };
63
- solid: {
64
- root: {
65
- bg: "colorPalette.solid";
66
- color: "colorPalette.contrast";
67
- _pressable: {
68
- _hover: {
69
- bg: string;
70
- };
71
- };
72
- };
73
- description: {
74
- color: "colorPalette.contrast/80";
75
- };
76
- };
77
- };
78
- }>;