@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,280 +0,0 @@
1
- import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
2
- export const sidebarSlotRecipe = defineSlotRecipe({
3
- className: 'sui-sidebar',
4
- slots: [
5
- 'root',
6
- 'backdrop',
7
- 'header',
8
- 'body',
9
- 'footer',
10
- 'trigger',
11
- 'flyoutTrigger',
12
- 'group',
13
- 'groupHeader',
14
- 'groupTitle',
15
- 'groupEndElement',
16
- 'groupContent',
17
- 'track',
18
- 'inset',
19
- ],
20
- base: {
21
- root: {
22
- '--sidebar-z-index': 'zIndex.layer-3',
23
- position: 'relative',
24
- display: 'flex',
25
- flexDirection: 'column',
26
- },
27
- backdrop: {
28
- layerStyle: 'backdrop',
29
- position: 'fixed',
30
- inset: 0,
31
- '--sidebar-backdrop-z-index': 'zIndex.layer-3',
32
- zIndex: 'calc(var(--sidebar-backdrop-z-index) - 2)',
33
- _open: {
34
- animationName: 'fade-in',
35
- animationDuration: 'slow',
36
- },
37
- _closed: {
38
- animationName: 'fade-out',
39
- animationDuration: 'moderate',
40
- },
41
- },
42
- trigger: {
43
- display: 'inline-flex',
44
- appearance: 'none',
45
- alignItems: 'center',
46
- justifyContent: 'center',
47
- userSelect: 'none',
48
- whiteSpace: 'nowrap',
49
- verticalAlign: 'middle',
50
- outline: 'none',
51
- },
52
- header: {
53
- display: 'flex',
54
- flexDirection: 'row',
55
- py: 2,
56
- },
57
- body: {
58
- display: 'flex',
59
- flexDirection: 'column',
60
- gap: 4,
61
- flex: 1,
62
- py: 3,
63
- overflowY: 'auto',
64
- },
65
- footer: {
66
- display: 'flex',
67
- flexDirection: 'column',
68
- py: 2,
69
- },
70
- group: {
71
- position: 'relative',
72
- },
73
- groupHeader: {
74
- display: 'flex',
75
- flexDirection: 'row',
76
- alignItems: 'center',
77
- gap: 1,
78
- height: 6,
79
- borderRadius: 'md',
80
- fontSize: 'xs',
81
- transitionProperty: 'common',
82
- transitionDuration: 'fast',
83
- // @ts-expect-error
84
- _groupCollapsible: {
85
- cursor: 'button',
86
- userSelect: 'none',
87
- _hover: {
88
- bg: 'sidebar.accent.bg/80',
89
- },
90
- },
91
- },
92
- groupTitle: {
93
- display: 'flex',
94
- alignItems: 'center',
95
- flex: 1,
96
- px: 2,
97
- fontWeight: 'medium',
98
- color: 'sidebar.fg/70',
99
- },
100
- groupEndElement: {
101
- '& > button': {
102
- boxSize: 6,
103
- _hover: {
104
- bg: 'transparent',
105
- },
106
- },
107
- },
108
- groupContent: {
109
- pt: 1,
110
- display: 'flex',
111
- flexDirection: 'column',
112
- },
113
- track: {
114
- display: 'flex',
115
- justifyContent: 'center',
116
- position: 'absolute',
117
- top: 0,
118
- right: '-4px',
119
- bottom: 0,
120
- width: '7px',
121
- cursor: 'button',
122
- _after: {
123
- content: '""',
124
- display: 'block',
125
- height: '100%',
126
- width: '2px',
127
- opacity: 0,
128
- transitionProperty: 'opacity',
129
- transitionDuration: 'fast',
130
- transitionDelay: '0.2s',
131
- bg: 'sidebar.accent.fg/60',
132
- pointerEvents: 'none',
133
- },
134
- _hover: {
135
- _after: {
136
- opacity: 1,
137
- },
138
- },
139
- },
140
- flyoutTrigger: {
141
- display: 'none',
142
- },
143
- inset: {
144
- height: '100%',
145
- minHeight: '0',
146
- display: 'flex',
147
- flexDirection: 'column',
148
- bg: 'bg.content',
149
- },
150
- },
151
- variants: {
152
- variant: {
153
- sidebar: {
154
- root: {
155
- borderRightWidth: '1px',
156
- borderLeftColor: 'sidebar.border',
157
- },
158
- inset: {},
159
- },
160
- inset: {
161
- inset: {
162
- borderColor: 'sidebar.border',
163
- borderWidth: '1px',
164
- borderRadius: 'panel.md',
165
- marginBlock: 'var(--inset-gap, {spacing.2})',
166
- marginEnd: 'var(--inset-gap, {spacing.2})',
167
- overflow: 'clip',
168
- },
169
- },
170
- },
171
- mode: {
172
- collapsible: {
173
- root: {
174
- base: {
175
- position: 'fixed',
176
- height: '100dvh',
177
- zIndex: 'layer-3',
178
- },
179
- md: {
180
- position: 'relative',
181
- height: 'auto',
182
- zIndex: 'unset',
183
- },
184
- width: 'var(--sidebar-width, 280px)',
185
- maxWidth: ['100vw', 'var(--sidebar-max-width, 320px)'],
186
- minWidth: 'var(--sidebar-min-width, 220px)',
187
- bg: 'sidebar.bg',
188
- transitionProperty: 'margin-left',
189
- _open: {
190
- marginLeft: 0,
191
- transitionDuration: 'moderate',
192
- transitionTimingFunction: 'bounce-in',
193
- },
194
- _closed: {
195
- marginLeft: 'calc(var(--sidebar-width, 280px) * -1)',
196
- transitionDuration: 'fast',
197
- transitionTimingFunction: 'bounce-out',
198
- },
199
- },
200
- },
201
- flyout: {
202
- root: {
203
- position: 'fixed',
204
- top: 2,
205
- left: 2,
206
- bottom: 2,
207
- zIndex: 'var(--sidebar-z-index)',
208
- width: 'var(--sidebar-width, 280px)',
209
- maxWidth: ['100vw', 'var(--sidebar-max-width, 320px)'],
210
- minWidth: 'var(--sidebar-min-width, 220px)',
211
- bg: 'sidebar.bg',
212
- borderColor: 'sidebar.border',
213
- boxShadow: 'none',
214
- borderWidth: '1px',
215
- borderRadius: 'lg',
216
- _open: {
217
- transitionDuration: 'moderate',
218
- transitionTimingFunction: 'ease-out',
219
- boxShadow: 'lg',
220
- },
221
- _closed: {
222
- left: 'calc(var(--sidebar-width, 280px) * -1)',
223
- transitionDuration: 'fast',
224
- transitionTimingFunction: 'ease-in-out',
225
- },
226
- },
227
- flyoutTrigger: {
228
- display: 'block',
229
- position: 'absolute',
230
- '--sidebar-flyout-trigger-z-index': 'zIndex.layer-3',
231
- zIndex: 'calc(var(--sidebar-flyout-trigger-z-index) - 1)',
232
- height: '100%',
233
- width: '8px',
234
- },
235
- track: {
236
- top: '8px',
237
- bottom: '8px',
238
- },
239
- },
240
- compact: {},
241
- },
242
- size: {
243
- md: {
244
- header: {
245
- px: 3,
246
- },
247
- body: {
248
- px: 3,
249
- },
250
- footer: {
251
- px: 3,
252
- },
253
- groupEndElement: {
254
- pe: '1',
255
- },
256
- },
257
- },
258
- },
259
- compoundVariants: [
260
- {
261
- variant: 'inset',
262
- mode: 'collapsible',
263
- css: {
264
- root: {
265
- py: 'var(--inset-gap, {spacing.2})',
266
- _closed: {
267
- '& [class*="__inset"]': {
268
- ps: 'var(--inset-gap, {spacing.2})',
269
- },
270
- },
271
- },
272
- },
273
- },
274
- ],
275
- defaultVariants: {
276
- variant: 'sidebar',
277
- mode: 'collapsible',
278
- size: 'md',
279
- },
280
- });
@@ -1,41 +0,0 @@
1
- export declare const skeletonRecipe: import("@chakra-ui/react").RecipeDefinition<{
2
- loading: {
3
- true: {
4
- borderRadius: "panel.md";
5
- boxShadow: "none";
6
- backgroundClip: "padding-box";
7
- cursor: "default";
8
- color: "transparent";
9
- pointerEvents: "none";
10
- userSelect: "none";
11
- flexShrink: "0";
12
- '&::before, &::after, *': {
13
- visibility: "hidden";
14
- };
15
- };
16
- false: {
17
- background: "unset";
18
- animation: "fade-in var(--fade-duration, 0.1s) ease-out !important";
19
- };
20
- };
21
- variant: {
22
- pulse: {
23
- background: "bg.emphasized";
24
- animation: "pulse";
25
- animationDuration: "var(--duration, 1.2s)";
26
- };
27
- shine: {
28
- '--animate-from': "200%";
29
- '--animate-to': "-200%";
30
- '--start-color': "colors.bg.muted";
31
- '--end-color': "colors.bg.emphasized";
32
- backgroundImage: "linear-gradient(270deg,var(--start-color),var(--end-color),var(--end-color),var(--start-color))";
33
- backgroundSize: "400% 100%";
34
- animation: "bg-position var(--duration, 5s) ease-in-out infinite";
35
- };
36
- none: {
37
- animation: "none";
38
- background: "bg.muted";
39
- };
40
- };
41
- }>;
@@ -1,50 +0,0 @@
1
- import { defineRecipe } from '@chakra-ui/react/styled-system';
2
- export const skeletonRecipe = defineRecipe({
3
- className: 'chakra-skeleton',
4
- base: {},
5
- variants: {
6
- loading: {
7
- true: {
8
- borderRadius: 'panel.md',
9
- boxShadow: 'none',
10
- backgroundClip: 'padding-box',
11
- cursor: 'default',
12
- color: 'transparent',
13
- pointerEvents: 'none',
14
- userSelect: 'none',
15
- flexShrink: '0',
16
- '&::before, &::after, *': {
17
- visibility: 'hidden',
18
- },
19
- },
20
- false: {
21
- background: 'unset',
22
- animation: 'fade-in var(--fade-duration, 0.1s) ease-out !important',
23
- },
24
- },
25
- variant: {
26
- pulse: {
27
- background: 'bg.emphasized',
28
- animation: 'pulse',
29
- animationDuration: 'var(--duration, 1.2s)',
30
- },
31
- shine: {
32
- '--animate-from': '200%',
33
- '--animate-to': '-200%',
34
- '--start-color': 'colors.bg.muted',
35
- '--end-color': 'colors.bg.emphasized',
36
- backgroundImage: 'linear-gradient(270deg,var(--start-color),var(--end-color),var(--end-color),var(--start-color))',
37
- backgroundSize: '400% 100%',
38
- animation: 'bg-position var(--duration, 5s) ease-in-out infinite',
39
- },
40
- none: {
41
- animation: 'none',
42
- background: 'bg.muted',
43
- },
44
- },
45
- },
46
- defaultVariants: {
47
- variant: 'pulse',
48
- loading: true,
49
- },
50
- });
@@ -1 +0,0 @@
1
- export declare const skipNavLinkRecipe: import("@chakra-ui/react").RecipeDefinition<import("@chakra-ui/react").RecipeVariantRecord>;
@@ -1,31 +0,0 @@
1
- import { defineRecipe } from '@chakra-ui/react/styled-system';
2
- export const skipNavLinkRecipe = defineRecipe({
3
- className: 'chakra-skip-nav',
4
- base: {
5
- display: 'inline-flex',
6
- bg: 'bg.panel',
7
- padding: '2.5',
8
- borderRadius: 'control.md',
9
- fontWeight: 'semibold',
10
- focusVisibleRing: 'outside',
11
- textStyle: 'sm',
12
- // visually hidden
13
- userSelect: 'none',
14
- border: '0',
15
- height: '1px',
16
- width: '1px',
17
- margin: '-1px',
18
- outline: '0',
19
- overflow: 'hidden',
20
- position: 'absolute',
21
- clip: 'rect(0 0 0 0)',
22
- _focusVisible: {
23
- clip: 'auto',
24
- width: 'auto',
25
- height: 'auto',
26
- position: 'fixed',
27
- top: '6',
28
- insetStart: '6',
29
- },
30
- },
31
- });
@@ -1,101 +0,0 @@
1
- export declare const sliderSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"marker" | "label" | "control" | "root" | "valueText" | "track" | "range" | "thumb" | "markerGroup" | "draggingIndicator" | "markerIndicator", {
2
- size: {
3
- sm: {
4
- root: {
5
- '--slider-thumb-size': "sizes.4";
6
- '--slider-track-size': "sizes.1.5";
7
- '--slider-marker-top': "6px";
8
- '--slider-marker-size': "sizes.1";
9
- '--slider-marker-inset': "3px";
10
- };
11
- };
12
- md: {
13
- root: {
14
- '--slider-thumb-size': "sizes.5";
15
- '--slider-track-size': "sizes.2";
16
- '--slider-marker-top': "8px";
17
- '--slider-marker-size': "sizes.1";
18
- '--slider-marker-inset': "4px";
19
- };
20
- };
21
- lg: {
22
- root: {
23
- '--slider-thumb-size': "sizes.6";
24
- '--slider-track-size': "sizes.2.5";
25
- '--slider-marker-top': "9px";
26
- '--slider-marker-size': "sizes.1.5";
27
- '--slider-marker-inset': "5px";
28
- };
29
- };
30
- };
31
- variant: {
32
- outline: {
33
- track: {
34
- shadow: "inset";
35
- bg: "bg.emphasized/72";
36
- };
37
- range: {
38
- bg: "colorPalette.solid";
39
- };
40
- thumb: {
41
- borderWidth: "2px";
42
- borderColor: "colorPalette.solid";
43
- bg: "bg";
44
- _disabled: {
45
- bg: "border.emphasized";
46
- borderColor: "border.emphasized";
47
- };
48
- };
49
- };
50
- solid: {
51
- track: {
52
- bg: "colorPalette.subtle";
53
- _disabled: {
54
- bg: "bg.muted";
55
- };
56
- };
57
- range: {
58
- bg: "colorPalette.solid";
59
- };
60
- thumb: {
61
- bg: "colorPalette.solid";
62
- _disabled: {
63
- bg: "border.emphasized";
64
- };
65
- };
66
- };
67
- };
68
- orientation: {
69
- vertical: {
70
- root: {
71
- display: "inline-flex";
72
- };
73
- control: {
74
- flexDirection: "column";
75
- height: "100%";
76
- minWidth: "var(--slider-thumb-size)";
77
- };
78
- track: {
79
- width: "var(--slider-track-size)";
80
- };
81
- thumb: {
82
- left: "50%";
83
- translate: "-50% 0";
84
- };
85
- };
86
- horizontal: {
87
- control: {
88
- flexDirection: "row";
89
- width: "100%";
90
- minHeight: "var(--slider-thumb-size)";
91
- };
92
- track: {
93
- height: "var(--slider-track-size)";
94
- };
95
- thumb: {
96
- top: "50%";
97
- translate: "0 -50%";
98
- };
99
- };
100
- };
101
- }>;
@@ -1,175 +0,0 @@
1
- import { sliderAnatomy } from '@chakra-ui/react/anatomy';
2
- import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
3
- export const sliderSlotRecipe = defineSlotRecipe({
4
- className: 'chakra-slider',
5
- slots: sliderAnatomy.keys(),
6
- base: {
7
- root: {
8
- display: 'flex',
9
- flexDirection: 'column',
10
- gap: '1',
11
- fontSize: 'sm',
12
- position: 'relative',
13
- isolation: 'isolate',
14
- touchAction: 'none',
15
- },
16
- control: {
17
- display: 'inline-flex',
18
- alignItems: 'center',
19
- position: 'relative',
20
- },
21
- track: {
22
- overflow: 'hidden',
23
- borderRadius: 'full',
24
- flex: '1',
25
- },
26
- range: {
27
- width: 'inherit',
28
- height: 'inherit',
29
- _disabled: { bg: 'border.emphasized!' },
30
- },
31
- markerGroup: {
32
- position: 'absolute!',
33
- top: 'var(--slider-marker-top)',
34
- insetInline: 'var(--slider-marker-inset)',
35
- zIndex: '1',
36
- },
37
- marker: {
38
- '--marker-bg': { base: 'white', _underValue: 'colors.bg' },
39
- display: 'flex',
40
- flexDirection: 'column',
41
- alignItems: 'center',
42
- gap: '1.5',
43
- color: 'fg.muted',
44
- fontSize: 'xs',
45
- },
46
- markerIndicator: {
47
- width: 'var(--slider-marker-size)',
48
- height: 'var(--slider-marker-size)',
49
- borderRadius: 'full',
50
- bg: 'var(--marker-bg)',
51
- },
52
- thumb: {
53
- width: 'var(--slider-thumb-size)',
54
- height: 'var(--slider-thumb-size)',
55
- display: 'flex',
56
- alignItems: 'center',
57
- justifyContent: 'center',
58
- outline: 0,
59
- zIndex: '2',
60
- borderRadius: 'full',
61
- _focusVisible: {
62
- ring: '2px',
63
- ringColor: 'colorPalette.focusRing',
64
- ringOffset: '2px',
65
- ringOffsetColor: 'bg',
66
- },
67
- },
68
- },
69
- variants: {
70
- size: {
71
- sm: {
72
- root: {
73
- '--slider-thumb-size': 'sizes.4',
74
- '--slider-track-size': 'sizes.1.5',
75
- '--slider-marker-top': '6px',
76
- '--slider-marker-size': 'sizes.1',
77
- '--slider-marker-inset': '3px',
78
- },
79
- },
80
- md: {
81
- root: {
82
- '--slider-thumb-size': 'sizes.5',
83
- '--slider-track-size': 'sizes.2',
84
- '--slider-marker-top': '8px',
85
- '--slider-marker-size': 'sizes.1',
86
- '--slider-marker-inset': '4px',
87
- },
88
- },
89
- lg: {
90
- root: {
91
- '--slider-thumb-size': 'sizes.6',
92
- '--slider-track-size': 'sizes.2.5',
93
- '--slider-marker-top': '9px',
94
- '--slider-marker-size': 'sizes.1.5',
95
- '--slider-marker-inset': '5px',
96
- },
97
- },
98
- },
99
- variant: {
100
- outline: {
101
- track: {
102
- shadow: 'inset',
103
- bg: 'bg.emphasized/72',
104
- },
105
- range: {
106
- bg: 'colorPalette.solid',
107
- },
108
- thumb: {
109
- borderWidth: '2px',
110
- borderColor: 'colorPalette.solid',
111
- bg: 'bg',
112
- _disabled: {
113
- bg: 'border.emphasized',
114
- borderColor: 'border.emphasized',
115
- },
116
- },
117
- },
118
- solid: {
119
- track: {
120
- bg: 'colorPalette.subtle',
121
- _disabled: {
122
- bg: 'bg.muted',
123
- },
124
- },
125
- range: {
126
- bg: 'colorPalette.solid',
127
- },
128
- thumb: {
129
- bg: 'colorPalette.solid',
130
- _disabled: {
131
- bg: 'border.emphasized',
132
- },
133
- },
134
- },
135
- },
136
- orientation: {
137
- vertical: {
138
- root: {
139
- display: 'inline-flex',
140
- },
141
- control: {
142
- flexDirection: 'column',
143
- height: '100%',
144
- minWidth: 'var(--slider-thumb-size)',
145
- },
146
- track: {
147
- width: 'var(--slider-track-size)',
148
- },
149
- thumb: {
150
- left: '50%',
151
- translate: '-50% 0',
152
- },
153
- },
154
- horizontal: {
155
- control: {
156
- flexDirection: 'row',
157
- width: '100%',
158
- minHeight: 'var(--slider-thumb-size)',
159
- },
160
- track: {
161
- height: 'var(--slider-track-size)',
162
- },
163
- thumb: {
164
- top: '50%',
165
- translate: '0 -50%',
166
- },
167
- },
168
- },
169
- },
170
- defaultVariants: {
171
- size: 'md',
172
- variant: 'outline',
173
- orientation: 'horizontal',
174
- },
175
- });