@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,332 +0,0 @@
1
- import { tabsAnatomy } from '@chakra-ui/react/anatomy';
2
- import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
3
- export const tabsSlotRecipe = defineSlotRecipe({
4
- slots: tabsAnatomy.keys(),
5
- className: 'chakra-tabs',
6
- base: {
7
- root: {
8
- colorPalette: 'gray',
9
- '--tabs-trigger-radius': 'radii.control.md',
10
- position: 'relative',
11
- _horizontal: {
12
- display: 'block',
13
- },
14
- _vertical: {
15
- display: 'flex',
16
- },
17
- },
18
- list: {
19
- display: 'inline-flex',
20
- position: 'relative',
21
- isolation: 'isolate',
22
- '--tabs-indicator-shadow': 'shadows.xs',
23
- '--tabs-indicator-bg': 'colors.bg',
24
- minH: 'var(--tabs-height)',
25
- _horizontal: {
26
- flexDirection: 'row',
27
- },
28
- _vertical: {
29
- flexDirection: 'column',
30
- },
31
- },
32
- trigger: {
33
- outline: '0',
34
- minW: 'var(--tabs-height)',
35
- height: 'var(--tabs-height)',
36
- display: 'flex',
37
- alignItems: 'center',
38
- fontWeight: 'medium',
39
- position: 'relative',
40
- cursor: 'button',
41
- gap: '2',
42
- _focusVisible: {
43
- zIndex: 1,
44
- focusVisibleRing: 'outside',
45
- },
46
- _disabled: {
47
- cursor: 'not-allowed',
48
- opacity: 0.5,
49
- },
50
- },
51
- content: {
52
- focusVisibleRing: 'inside',
53
- _horizontal: {
54
- width: '100%',
55
- pt: 'var(--tabs-content-padding)',
56
- },
57
- _vertical: {
58
- height: '100%',
59
- ps: 'var(--tabs-content-padding)',
60
- },
61
- },
62
- indicator: {
63
- width: 'var(--width)',
64
- height: 'var(--height)',
65
- borderRadius: 'var(--tabs-indicator-radius)',
66
- bg: 'var(--tabs-indicator-bg)',
67
- shadow: 'var(--tabs-indicator-shadow)',
68
- zIndex: -1,
69
- },
70
- },
71
- variants: {
72
- fitted: {
73
- true: {
74
- list: {
75
- display: 'flex',
76
- },
77
- trigger: {
78
- flex: 1,
79
- textAlign: 'center',
80
- justifyContent: 'center',
81
- },
82
- },
83
- },
84
- justify: {
85
- start: {
86
- list: {
87
- justifyContent: 'flex-start',
88
- },
89
- },
90
- center: {
91
- list: {
92
- justifyContent: 'center',
93
- },
94
- },
95
- end: {
96
- list: {
97
- justifyContent: 'flex-end',
98
- },
99
- },
100
- },
101
- size: {
102
- xs: {
103
- root: {
104
- '--tabs-height': 'sizes.6',
105
- '--tabs-content-padding': 'spacing.2',
106
- '--tabs-trigger-radius': 'radii.control.sm',
107
- },
108
- trigger: {
109
- py: '1',
110
- px: '2',
111
- textStyle: 'xs',
112
- },
113
- },
114
- sm: {
115
- root: {
116
- '--tabs-height': 'sizes.7',
117
- '--tabs-content-padding': 'spacing.3',
118
- '--tabs-trigger-radius': 'radii.control.md',
119
- },
120
- trigger: {
121
- py: '1',
122
- px: '3',
123
- textStyle: 'sm',
124
- },
125
- },
126
- md: {
127
- root: {
128
- '--tabs-height': 'sizes.8',
129
- '--tabs-content-padding': 'spacing.4',
130
- '--tabs-trigger-radius': 'radii.control.md',
131
- },
132
- trigger: {
133
- py: '2',
134
- px: '4',
135
- textStyle: 'sm',
136
- },
137
- },
138
- lg: {
139
- root: {
140
- '--tabs-height': 'sizes.10',
141
- '--tabs-content-padding': 'spacing.4.5',
142
- '--tabs-trigger-radius': 'radii.control.lg',
143
- },
144
- trigger: {
145
- py: '2',
146
- px: '4.5',
147
- textStyle: 'md',
148
- },
149
- },
150
- },
151
- variant: {
152
- line: {
153
- list: {
154
- display: 'flex',
155
- borderColor: 'border',
156
- _horizontal: {
157
- borderBottomWidth: '1px',
158
- },
159
- _vertical: {
160
- borderEndWidth: '1px',
161
- },
162
- },
163
- trigger: {
164
- color: 'fg.muted',
165
- _hover: {
166
- color: 'fg.subtle',
167
- },
168
- _disabled: {
169
- _active: { bg: 'initial' },
170
- },
171
- _selected: {
172
- color: 'fg',
173
- _horizontal: {
174
- layerStyle: 'indicator.bottom',
175
- borderTopRadius: '3px',
176
- '--indicator-offset-x': 'spacing.3',
177
- '--indicator-offset-y': '-1px',
178
- '--indicator-color': 'colors.colorPalette.solid',
179
- },
180
- _vertical: {
181
- layerStyle: 'indicator.end',
182
- '--indicator-offset-x': '-1px',
183
- },
184
- },
185
- },
186
- },
187
- pills: {
188
- list: {
189
- gap: 2,
190
- },
191
- trigger: {
192
- borderRadius: 'var(--tabs-trigger-radius)',
193
- color: 'fg.muted',
194
- borderWidth: '1px',
195
- borderColor: 'border.emphasized',
196
- _hover: {
197
- bg: 'bg.muted',
198
- color: 'fg.subtle',
199
- },
200
- _selected: {
201
- bg: 'colorPalette.subtle',
202
- color: 'colorPalette.fg',
203
- borderColor: 'colorPalette.solid/40',
204
- _hover: {
205
- bg: 'colorPalette.subtle',
206
- color: 'colorPalette.fg',
207
- },
208
- },
209
- },
210
- },
211
- ghost: {
212
- list: {
213
- gap: 2,
214
- },
215
- trigger: {
216
- borderRadius: 'var(--tabs-trigger-radius)',
217
- color: 'fg.subtle',
218
- _hover: {
219
- bg: 'colorPalette.muted',
220
- color: 'colorPalette.fg',
221
- },
222
- _selected: {
223
- bg: 'colorPalette.subtle',
224
- color: 'colorPalette.fg',
225
- _hover: {
226
- bg: 'colorPalette.subtle',
227
- color: 'colorPalette.fg',
228
- },
229
- },
230
- },
231
- },
232
- enclosed: {
233
- list: {
234
- bg: 'bg.muted',
235
- boxShadow: 'inset',
236
- borderRadius: 'md',
237
- borderWidth: '1px',
238
- minH: 'calc(var(--tabs-height) - 4px)',
239
- },
240
- trigger: {
241
- justifyContent: 'center',
242
- color: 'fg.muted',
243
- borderRadius: 'calc({radii.md} - 1px)',
244
- _hover: {
245
- color: 'fg.subtle',
246
- },
247
- _selected: {
248
- bg: 'bg',
249
- color: 'colorPalette.fg',
250
- shadow: 'sm',
251
- },
252
- },
253
- },
254
- outline: {
255
- list: {
256
- '--line-thickness': '1px',
257
- '--line-offset': 'calc(var(--line-thickness) * -1)',
258
- borderColor: 'border',
259
- display: 'flex',
260
- _horizontal: {
261
- _before: {
262
- content: '""',
263
- position: 'absolute',
264
- bottom: '0px',
265
- width: '100%',
266
- borderBottomWidth: 'var(--line-thickness)',
267
- borderBottomColor: 'border',
268
- },
269
- },
270
- _vertical: {
271
- _before: {
272
- content: '""',
273
- position: 'absolute',
274
- insetInline: 'var(--line-offset)',
275
- height: 'calc(100% - calc(var(--line-thickness) * 2))',
276
- borderEndWidth: 'var(--line-thickness)',
277
- borderEndColor: 'border',
278
- },
279
- },
280
- },
281
- trigger: {
282
- color: 'fg.muted',
283
- borderWidth: '1px',
284
- borderColor: 'transparent',
285
- _hover: {
286
- color: 'fg.subtle',
287
- },
288
- _selected: {
289
- bg: 'currentBg',
290
- color: 'colorPalette.fg',
291
- },
292
- _horizontal: {
293
- borderTopRadius: 'var(--tabs-trigger-radius)',
294
- marginBottom: 'var(--line-offset)',
295
- marginEnd: { _notLast: 'var(--line-offset)' },
296
- _selected: {
297
- borderColor: 'border',
298
- borderBottomColor: 'transparent',
299
- },
300
- },
301
- _vertical: {
302
- borderStartRadius: 'var(--tabs-trigger-radius)',
303
- marginEnd: 'var(--line-offset)',
304
- marginBottom: { _notLast: 'var(--line-offset)' },
305
- _selected: {
306
- borderColor: 'border',
307
- borderEndColor: 'transparent',
308
- },
309
- },
310
- },
311
- },
312
- plain: {
313
- trigger: {
314
- color: 'fg.muted',
315
- _selected: {
316
- color: 'colorPalette.fg',
317
- },
318
- borderRadius: 'var(--tabs-trigger-radius)',
319
- '&[data-selected][data-ssr]': {
320
- bg: 'var(--tabs-indicator-bg)',
321
- shadow: 'var(--tabs-indicator-shadow)',
322
- borderRadius: 'var(--tabs-indicator-radius)',
323
- },
324
- },
325
- },
326
- },
327
- },
328
- defaultVariants: {
329
- size: 'md',
330
- variant: 'line',
331
- },
332
- });
@@ -1,95 +0,0 @@
1
- export declare const tagSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "root" | "closeTrigger" | "endElement" | "startElement", {
2
- size: {
3
- sm: {
4
- root: {
5
- px: "1.5";
6
- minH: "5";
7
- gap: "1";
8
- '--tag-avatar-size': "spacing.3.5";
9
- '--tag-status-size': "spacing.2";
10
- '--tag-element-size': "spacing.3.5";
11
- '--tag-element-offset': "spacing.-0.5";
12
- };
13
- label: {
14
- textStyle: "xs";
15
- };
16
- };
17
- md: {
18
- root: {
19
- px: "2";
20
- minH: "6";
21
- gap: "1";
22
- '--tag-avatar-size': "spacing.4";
23
- '--tag-status-size': "spacing.2";
24
- '--tag-element-size': "spacing.4";
25
- '--tag-element-offset': "spacing.-1";
26
- };
27
- label: {
28
- textStyle: "xs";
29
- };
30
- };
31
- lg: {
32
- root: {
33
- px: "2.5";
34
- minH: "7";
35
- gap: "1";
36
- '--tag-avatar-size': "spacing.5";
37
- '--tag-status-size': "spacing.2";
38
- '--tag-element-size': "spacing.5";
39
- '--tag-element-offset': "spacing.-1.5";
40
- };
41
- label: {
42
- textStyle: "sm";
43
- };
44
- closeTrigger: {
45
- padding: "2px";
46
- };
47
- };
48
- xl: {
49
- root: {
50
- px: "3";
51
- minH: "8";
52
- gap: "1.5";
53
- '--tag-avatar-size': "spacing.6";
54
- '--tag-status-size': "spacing.2";
55
- '--tag-element-size': "spacing.6";
56
- '--tag-element-offset': "spacing.-2";
57
- };
58
- label: {
59
- textStyle: "md";
60
- };
61
- closeTrigger: {
62
- padding: "3px";
63
- };
64
- };
65
- };
66
- variant: {
67
- subtle: {
68
- root: {
69
- bg: "colorPalette.subtle";
70
- color: "colorPalette.fg";
71
- } | undefined;
72
- };
73
- solid: {
74
- root: {
75
- bg: "colorPalette.solid";
76
- color: "colorPalette.contrast";
77
- } | undefined;
78
- };
79
- outline: {
80
- root: {
81
- color: "colorPalette.fg";
82
- shadow: "inset 0 0 0px 1px var(--shadow-color)";
83
- shadowColor: "colorPalette.subtle";
84
- } | undefined;
85
- };
86
- surface: {
87
- root: {
88
- bg: "colorPalette.muted/20";
89
- color: "colorPalette.fg";
90
- shadow: "inset 0 0 0px 1px var(--shadow-color)";
91
- shadowColor: "colorPalette.subtle";
92
- } | undefined;
93
- };
94
- };
95
- }>;
@@ -1,154 +0,0 @@
1
- import { tagAnatomy } from '@chakra-ui/react/anatomy';
2
- import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
3
- import { badgeRecipe } from "../badge/badge.recipe.js";
4
- const badgeVariant = badgeRecipe.variants?.variant;
5
- export const tagSlotRecipe = defineSlotRecipe({
6
- slots: tagAnatomy.keys(),
7
- className: 'chakra-tag',
8
- base: {
9
- root: {
10
- colorPalette: 'neutral',
11
- display: 'inline-flex',
12
- alignItems: 'center',
13
- verticalAlign: 'top',
14
- maxWidth: '100%',
15
- userSelect: 'none',
16
- borderRadius: 'full',
17
- focusVisibleRing: 'outside',
18
- },
19
- label: {
20
- lineClamp: '1',
21
- },
22
- closeTrigger: {
23
- cursor: 'button',
24
- position: 'relative',
25
- display: 'flex',
26
- alignItems: 'center',
27
- justifyContent: 'center',
28
- outline: '0',
29
- borderRadius: 'full',
30
- color: 'currentColor',
31
- opacity: 0.8,
32
- padding: '1px',
33
- focusVisibleRing: 'inside',
34
- focusRingWidth: '2px',
35
- _hover: {
36
- opacity: 1,
37
- bg: 'colorPalette.subtle',
38
- },
39
- _after: {
40
- content: '""',
41
- position: 'absolute',
42
- boxSize: '24px',
43
- borderRadius: 'full',
44
- },
45
- },
46
- startElement: {
47
- display: 'inline-flex',
48
- alignItems: 'center',
49
- justifyContent: 'center',
50
- flexShrink: 0,
51
- boxSize: 'var(--tag-element-size)',
52
- _icon: { boxSize: '80% !important' },
53
- '&:has([data-scope=avatar])': {
54
- boxSize: 'var(--tag-avatar-size)',
55
- ms: 'var(--tag-element-offset)',
56
- },
57
- '&:has([class*="status__root"])': {
58
- width: 'var(--tag-status-size)',
59
- },
60
- },
61
- endElement: {
62
- flexShrink: 0,
63
- boxSize: 'var(--tag-element-size)',
64
- _icon: { boxSize: '100%' },
65
- '&:has(button)': {
66
- me: 'var(--tag-element-offset)',
67
- },
68
- },
69
- },
70
- variants: {
71
- size: {
72
- sm: {
73
- root: {
74
- px: '1.5',
75
- minH: '5',
76
- gap: '1',
77
- '--tag-avatar-size': 'spacing.3.5',
78
- '--tag-status-size': 'spacing.2',
79
- '--tag-element-size': 'spacing.3.5',
80
- '--tag-element-offset': 'spacing.-0.5',
81
- },
82
- label: {
83
- textStyle: 'xs',
84
- },
85
- },
86
- md: {
87
- root: {
88
- px: '2',
89
- minH: '6',
90
- gap: '1',
91
- '--tag-avatar-size': 'spacing.4',
92
- '--tag-status-size': 'spacing.2',
93
- '--tag-element-size': 'spacing.4',
94
- '--tag-element-offset': 'spacing.-1',
95
- },
96
- label: {
97
- textStyle: 'xs',
98
- },
99
- },
100
- lg: {
101
- root: {
102
- px: '2.5',
103
- minH: '7',
104
- gap: '1',
105
- '--tag-avatar-size': 'spacing.5',
106
- '--tag-status-size': 'spacing.2',
107
- '--tag-element-size': 'spacing.5',
108
- '--tag-element-offset': 'spacing.-1.5',
109
- },
110
- label: {
111
- textStyle: 'sm',
112
- },
113
- closeTrigger: {
114
- padding: '2px',
115
- },
116
- },
117
- xl: {
118
- root: {
119
- px: '3',
120
- minH: '8',
121
- gap: '1.5',
122
- '--tag-avatar-size': 'spacing.6',
123
- '--tag-status-size': 'spacing.2',
124
- '--tag-element-size': 'spacing.6',
125
- '--tag-element-offset': 'spacing.-2',
126
- },
127
- label: {
128
- textStyle: 'md',
129
- },
130
- closeTrigger: {
131
- padding: '3px',
132
- },
133
- },
134
- },
135
- variant: {
136
- subtle: {
137
- root: badgeVariant?.subtle,
138
- },
139
- solid: {
140
- root: badgeVariant?.solid,
141
- },
142
- outline: {
143
- root: badgeVariant?.outline,
144
- },
145
- surface: {
146
- root: badgeVariant?.surface,
147
- },
148
- },
149
- },
150
- defaultVariants: {
151
- size: 'md',
152
- variant: 'surface',
153
- },
154
- });
@@ -1,65 +0,0 @@
1
- export declare const textareaRecipe: import("@chakra-ui/react").RecipeDefinition<{
2
- size: {
3
- xs: {
4
- borderRadius: "control.sm";
5
- textStyle: "xs";
6
- px: "2";
7
- py: "1";
8
- scrollPaddingBottom: "1";
9
- };
10
- sm: {
11
- borderRadius: "control.md";
12
- textStyle: "sm";
13
- px: "2.5";
14
- py: "1.5";
15
- scrollPaddingBottom: "1.5";
16
- };
17
- md: {
18
- borderRadius: "control.md";
19
- textStyle: "sm";
20
- px: "3";
21
- py: "1.5";
22
- scrollPaddingBottom: "1.5";
23
- };
24
- lg: {
25
- borderRadius: "control.lg";
26
- textStyle: "md";
27
- px: "4";
28
- py: "2";
29
- scrollPaddingBottom: "2";
30
- };
31
- xl: {
32
- borderRadius: "control.lg";
33
- textStyle: "md";
34
- px: "4.5";
35
- py: "3.5";
36
- scrollPaddingBottom: "3.5";
37
- };
38
- };
39
- variant: {
40
- outline: {
41
- bg: "transparent";
42
- borderWidth: "1px";
43
- borderColor: "border";
44
- focusVisibleRing: "inside";
45
- focusRingWidth: number;
46
- };
47
- subtle: {
48
- borderWidth: "1px";
49
- borderColor: "transparent";
50
- bg: "bg.muted";
51
- focusVisibleRing: "inside";
52
- };
53
- flushed: {
54
- bg: "transparent";
55
- borderBottomWidth: "1px";
56
- borderBottomColor: "border";
57
- borderRadius: "0";
58
- px: "0";
59
- _focusVisible: {
60
- borderColor: "var(--focus-color)";
61
- boxShadow: "0px 1px 0px 0px var(--focus-color)";
62
- };
63
- };
64
- };
65
- }>;