@saas-ui/react 3.0.0-next.44 → 3.0.0-next.48

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 (223) 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/command/command.d.ts +1 -1
  5. package/dist/components/grid-list/grid-list.d.ts +1 -1
  6. package/dist/components/persona/persona-composed.d.ts +1 -1
  7. package/dist/components/persona/persona.d.ts +1 -1
  8. package/dist/index.d.ts +1 -1
  9. package/dist/preset.d.ts +1 -3
  10. package/dist/preset.js +1 -10
  11. package/package.json +4 -3
  12. package/dist/components/accordion/accordion.recipe.d.ts +0 -84
  13. package/dist/components/accordion/accordion.recipe.js +0 -148
  14. package/dist/components/action-bar/action-bar.recipe.d.ts +0 -1
  15. package/dist/components/action-bar/action-bar.recipe.js +0 -56
  16. package/dist/components/alert/alert.recipe.d.ts +0 -120
  17. package/dist/components/alert/alert.recipe.js +0 -149
  18. package/dist/components/app-shell/app-shell.recipe.d.ts +0 -13
  19. package/dist/components/app-shell/app-shell.recipe.js +0 -41
  20. package/dist/components/avatar/avatar.recipe.d.ts +0 -88
  21. package/dist/components/avatar/avatar.recipe.js +0 -129
  22. package/dist/components/badge/badge.recipe.d.ts +0 -48
  23. package/dist/components/badge/badge.recipe.js +0 -66
  24. package/dist/components/blockquote/blockquote.recipe.d.ts +0 -52
  25. package/dist/components/blockquote/blockquote.recipe.js +0 -77
  26. package/dist/components/breadcrumb/breadcrumb.recipe.d.ts +0 -46
  27. package/dist/components/breadcrumb/breadcrumb.recipe.js +0 -90
  28. package/dist/components/button/button.recipe.d.ts +0 -141
  29. package/dist/components/button/button.recipe.js +0 -185
  30. package/dist/components/card/card.recipe.d.ts +0 -78
  31. package/dist/components/card/card.recipe.js +0 -133
  32. package/dist/components/checkbox/checkbox.recipe.d.ts +0 -80
  33. package/dist/components/checkbox/checkbox.recipe.js +0 -64
  34. package/dist/components/checkbox-card/checkbox-card.recipe.d.ts +0 -188
  35. package/dist/components/checkbox-card/checkbox-card.recipe.js +0 -202
  36. package/dist/components/checkmark/checkmark.recipe.d.ts +0 -54
  37. package/dist/components/checkmark/checkmark.recipe.js +0 -80
  38. package/dist/components/code/code.recipe.d.ts +0 -48
  39. package/dist/components/code/code.recipe.js +0 -14
  40. package/dist/components/collapsible/collapsible.recipe.d.ts +0 -1
  41. package/dist/components/collapsible/collapsible.recipe.js +0 -19
  42. package/dist/components/combobox/combobox.recipe.d.ts +0 -144
  43. package/dist/components/combobox/combobox.recipe.js +0 -292
  44. package/dist/components/command/command.recipe.d.ts +0 -15
  45. package/dist/components/command/command.recipe.js +0 -34
  46. package/dist/components/container/container.recipe.d.ts +0 -14
  47. package/dist/components/container/container.recipe.js +0 -25
  48. package/dist/components/data-list/data-list.recipe.d.ts +0 -55
  49. package/dist/components/data-list/data-list.recipe.js +0 -78
  50. package/dist/components/dialog/dialog.recipe.d.ts +0 -166
  51. package/dist/components/dialog/dialog.recipe.js +0 -256
  52. package/dist/components/drawer/drawer.recipe.d.ts +0 -113
  53. package/dist/components/drawer/drawer.recipe.js +0 -202
  54. package/dist/components/editable/editable.recipe.d.ts +0 -37
  55. package/dist/components/editable/editable.recipe.js +0 -89
  56. package/dist/components/empty-state/empty-state.recipe.d.ts +0 -83
  57. package/dist/components/empty-state/empty-state.recipe.js +0 -137
  58. package/dist/components/field/field.recipe.d.ts +0 -29
  59. package/dist/components/field/field.recipe.js +0 -74
  60. package/dist/components/fieldset/fieldset.recipe.d.ts +0 -37
  61. package/dist/components/fieldset/fieldset.recipe.js +0 -59
  62. package/dist/components/file-upload/file-upload.recipe.d.ts +0 -1
  63. package/dist/components/file-upload/file-upload.recipe.js +0 -90
  64. package/dist/components/grid-list/grid-list.recipe.d.ts +0 -60
  65. package/dist/components/grid-list/grid-list.recipe.js +0 -131
  66. package/dist/components/heading/heading.recipe.d.ts +0 -59
  67. package/dist/components/heading/heading.recipe.js +0 -70
  68. package/dist/components/hover-card/hover-card.recipe.d.ts +0 -28
  69. package/dist/components/hover-card/hover-card.recipe.js +0 -70
  70. package/dist/components/icon/icon.recipe.d.ts +0 -25
  71. package/dist/components/icon/icon.recipe.js +0 -27
  72. package/dist/components/icon-badge/icon-badge.recipe.d.ts +0 -43
  73. package/dist/components/icon-badge/icon-badge.recipe.js +0 -57
  74. package/dist/components/input/input.recipe.d.ts +0 -66
  75. package/dist/components/input/input.recipe.js +0 -93
  76. package/dist/components/input-addon/input-addon.recipe.d.ts +0 -56
  77. package/dist/components/input-addon/input-addon.recipe.js +0 -36
  78. package/dist/components/kbd/kbd.recipe.d.ts +0 -36
  79. package/dist/components/kbd/kbd.recipe.js +0 -56
  80. package/dist/components/link/link.recipe.d.ts +0 -18
  81. package/dist/components/link/link.recipe.js +0 -34
  82. package/dist/components/list/list.recipe.d.ts +0 -38
  83. package/dist/components/list/list.recipe.js +0 -62
  84. package/dist/components/loading-overlay/loading-overlay.recipe.d.ts +0 -26
  85. package/dist/components/loading-overlay/loading-overlay.recipe.js +0 -51
  86. package/dist/components/mark/mark.recipe.d.ts +0 -16
  87. package/dist/components/mark/mark.recipe.js +0 -25
  88. package/dist/components/menu/menu.recipe.d.ts +0 -58
  89. package/dist/components/menu/menu.recipe.js +0 -133
  90. package/dist/components/native-select/native-select.recipe.d.ts +0 -90
  91. package/dist/components/native-select/native-select.recipe.js +0 -134
  92. package/dist/components/navbar/navbar.recipe.d.ts +0 -46
  93. package/dist/components/navbar/navbar.recipe.js +0 -124
  94. package/dist/components/number-input/number-input.recipe.d.ts +0 -144
  95. package/dist/components/number-input/number-input.recipe.js +0 -111
  96. package/dist/components/page/page.recipe.d.ts +0 -61
  97. package/dist/components/page/page.recipe.js +0 -99
  98. package/dist/components/persona/persona.recipe.d.ts +0 -104
  99. package/dist/components/persona/persona.recipe.js +0 -106
  100. package/dist/components/pin-input/pin-input.recipe.d.ts +0 -236
  101. package/dist/components/pin-input/pin-input.recipe.js +0 -32
  102. package/dist/components/popover/popover.recipe.d.ts +0 -24
  103. package/dist/components/popover/popover.recipe.js +0 -84
  104. package/dist/components/progress/progress.recipe.d.ts +0 -82
  105. package/dist/components/progress/progress.recipe.js +0 -121
  106. package/dist/components/progress-circle/progress-circle.recipe.d.ts +0 -49
  107. package/dist/components/progress-circle/progress-circle.recipe.js +0 -91
  108. package/dist/components/radio/radiomark.recipe.d.ts +0 -56
  109. package/dist/components/radio/radiomark.recipe.js +0 -95
  110. package/dist/components/radio-card/radio-card.recipe.d.ts +0 -191
  111. package/dist/components/radio-card/radio-card.recipe.js +0 -209
  112. package/dist/components/radio-group/radio-group.recipe.d.ts +0 -77
  113. package/dist/components/radio-group/radio-group.recipe.js +0 -61
  114. package/dist/components/rating-group/rating-group.recipe.d.ts +0 -24
  115. package/dist/components/rating-group/rating-group.recipe.js +0 -83
  116. package/dist/components/section/section.recipe.d.ts +0 -27
  117. package/dist/components/section/section.recipe.js +0 -63
  118. package/dist/components/segmented-control/segment-group.recipe.d.ts +0 -48
  119. package/dist/components/segmented-control/segment-group.recipe.js +0 -127
  120. package/dist/components/select/select.recipe.d.ts +0 -155
  121. package/dist/components/select/select.recipe.js +0 -285
  122. package/dist/components/separator/separator.recipe.d.ts +0 -37
  123. package/dist/components/separator/separator.recipe.js +0 -50
  124. package/dist/components/sidebar/sidebar-nav-item.recipe.d.ts +0 -67
  125. package/dist/components/sidebar/sidebar-nav-item.recipe.js +0 -118
  126. package/dist/components/sidebar/sidebar.recipe.d.ts +0 -108
  127. package/dist/components/sidebar/sidebar.recipe.js +0 -280
  128. package/dist/components/skeleton/skeleton.recipe.d.ts +0 -41
  129. package/dist/components/skeleton/skeleton.recipe.js +0 -50
  130. package/dist/components/skip-nav-link/skip-nav-link.recipe.d.ts +0 -1
  131. package/dist/components/skip-nav-link/skip-nav-link.recipe.js +0 -31
  132. package/dist/components/slider/slider.recipe.d.ts +0 -101
  133. package/dist/components/slider/slider.recipe.js +0 -175
  134. package/dist/components/spinner/spinner.recipe.d.ts +0 -22
  135. package/dist/components/spinner/spinner.recipe.js +0 -31
  136. package/dist/components/stat/stat.recipe.d.ts +0 -19
  137. package/dist/components/stat/stat.recipe.js +0 -76
  138. package/dist/components/status/status.recipe.d.ts +0 -19
  139. package/dist/components/status/status.recipe.js +0 -44
  140. package/dist/components/steps/steps.recipe.d.ts +0 -142
  141. package/dist/components/steps/steps.recipe.js +0 -213
  142. package/dist/components/switch/switch.recipe.d.ts +0 -77
  143. package/dist/components/switch/switch.recipe.js +0 -157
  144. package/dist/components/table/table.recipe.d.ts +0 -121
  145. package/dist/components/table/table.recipe.js +0 -161
  146. package/dist/components/tabs/tabs.recipe.d.ts +0 -263
  147. package/dist/components/tabs/tabs.recipe.js +0 -332
  148. package/dist/components/tag/tag.recipe.d.ts +0 -95
  149. package/dist/components/tag/tag.recipe.js +0 -154
  150. package/dist/components/textarea/textarea.recipe.d.ts +0 -65
  151. package/dist/components/textarea/textarea.recipe.js +0 -90
  152. package/dist/components/timeline/timeline.recipe.d.ts +0 -62
  153. package/dist/components/timeline/timeline.recipe.js +0 -134
  154. package/dist/components/toaster/toast.recipe.d.ts +0 -1
  155. package/dist/components/toaster/toast.recipe.js +0 -90
  156. package/dist/components/tooltip/tooltip.recipe.d.ts +0 -10
  157. package/dist/components/tooltip/tooltip.recipe.js +0 -52
  158. package/dist/theme/animation-styles.d.ts +0 -1
  159. package/dist/theme/animation-styles.js +0 -49
  160. package/dist/theme/breakpoints.d.ts +0 -10
  161. package/dist/theme/breakpoints.js +0 -8
  162. package/dist/theme/conditions.d.ts +0 -18
  163. package/dist/theme/conditions.js +0 -19
  164. package/dist/theme/fluid-font-sizes.d.ts +0 -0
  165. package/dist/theme/fluid-font-sizes.js +0 -61
  166. package/dist/theme/global-css.d.ts +0 -1
  167. package/dist/theme/global-css.js +0 -56
  168. package/dist/theme/index.d.ts +0 -1
  169. package/dist/theme/index.js +0 -72
  170. package/dist/theme/layer-styles.d.ts +0 -1
  171. package/dist/theme/layer-styles.js +0 -133
  172. package/dist/theme/recipes.d.ts +0 -861
  173. package/dist/theme/recipes.js +0 -44
  174. package/dist/theme/semantic-tokens/colors.d.ts +0 -1298
  175. package/dist/theme/semantic-tokens/colors.js +0 -687
  176. package/dist/theme/semantic-tokens/radii.d.ts +0 -44
  177. package/dist/theme/semantic-tokens/radii.js +0 -39
  178. package/dist/theme/semantic-tokens/shadows.d.ts +0 -56
  179. package/dist/theme/semantic-tokens/shadows.js +0 -57
  180. package/dist/theme/slot-recipes.d.ts +0 -4030
  181. package/dist/theme/slot-recipes.js +0 -108
  182. package/dist/theme/text-styles.d.ts +0 -1
  183. package/dist/theme/text-styles.js +0 -82
  184. package/dist/theme/tokens/animations.d.ts +0 -14
  185. package/dist/theme/tokens/animations.js +0 -7
  186. package/dist/theme/tokens/aspect-ratios.d.ts +0 -20
  187. package/dist/theme/tokens/aspect-ratios.js +0 -9
  188. package/dist/theme/tokens/blurs.d.ts +0 -26
  189. package/dist/theme/tokens/blurs.js +0 -11
  190. package/dist/theme/tokens/borders.d.ts +0 -17
  191. package/dist/theme/tokens/borders.js +0 -8
  192. package/dist/theme/tokens/colors.d.ts +0 -820
  193. package/dist/theme/tokens/colors.js +0 -306
  194. package/dist/theme/tokens/cursor.d.ts +0 -26
  195. package/dist/theme/tokens/cursor.js +0 -11
  196. package/dist/theme/tokens/durations.d.ts +0 -23
  197. package/dist/theme/tokens/durations.js +0 -10
  198. package/dist/theme/tokens/easings.d.ts +0 -20
  199. package/dist/theme/tokens/easings.js +0 -9
  200. package/dist/theme/tokens/font-sizes.d.ts +0 -44
  201. package/dist/theme/tokens/font-sizes.js +0 -18
  202. package/dist/theme/tokens/font-weights.d.ts +0 -29
  203. package/dist/theme/tokens/font-weights.js +0 -12
  204. package/dist/theme/tokens/fonts.d.ts +0 -11
  205. package/dist/theme/tokens/fonts.js +0 -13
  206. package/dist/theme/tokens/keyframes.d.ts +0 -1
  207. package/dist/theme/tokens/keyframes.js +0 -157
  208. package/dist/theme/tokens/letter-spacing.d.ts +0 -56
  209. package/dist/theme/tokens/letter-spacing.js +0 -21
  210. package/dist/theme/tokens/line-heights.d.ts +0 -77
  211. package/dist/theme/tokens/line-heights.js +0 -29
  212. package/dist/theme/tokens/radius.d.ts +0 -32
  213. package/dist/theme/tokens/radius.js +0 -15
  214. package/dist/theme/tokens/sizes.d.ts +0 -257
  215. package/dist/theme/tokens/sizes.js +0 -66
  216. package/dist/theme/tokens/spacing.d.ts +0 -101
  217. package/dist/theme/tokens/spacing.js +0 -37
  218. package/dist/theme/tokens/z-indices.d.ts +0 -53
  219. package/dist/theme/tokens/z-indices.js +0 -32
  220. package/dist/theme/utilities.d.ts +0 -10
  221. package/dist/theme/utilities.js +0 -49
  222. package/dist/theme/utils.d.ts +0 -19
  223. package/dist/theme/utils.js +0 -34
@@ -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
- }>;
@@ -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
- });