@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
package/dist/colors.d.ts CHANGED
@@ -1 +1 @@
1
- export { colors } from './theme/tokens/colors.ts';
1
+ export { colors } from '@saas-ui/chakra-preset/colors';
package/dist/colors.js CHANGED
@@ -1 +1 @@
1
- export { colors } from "./theme/tokens/colors.js";
1
+ export { colors } from '@saas-ui/chakra-preset/colors';
@@ -1 +1,2 @@
1
+ 'use client';
1
2
  export { AbsoluteCenter, } from '@chakra-ui/react/absolute-center';
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx } from "react/jsx-runtime";
2
3
  import { forwardRef } from 'react';
3
4
  import { ActionBar } from '@chakra-ui/react/action-bar';
@@ -1 +1,2 @@
1
+ 'use client';
1
2
  export { AspectRatio, } from '@chakra-ui/react/aspect-ratio';
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
3
  import * as React from 'react';
3
4
  import { Blockquote as ChakraBlockquote, } from '@chakra-ui/react';
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
3
  import { forwardRef } from 'react';
3
4
  import { Checkbox as ChakraCheckbox } from '@chakra-ui/react/checkbox';
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
3
  import { Fragment, forwardRef } from 'react';
3
4
  import { CheckboxCard as ChakraCheckboxCard } from '@chakra-ui/react/checkbox-card';
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
3
  import * as React from 'react';
3
4
  import { Clipboard as ChakraClipboard } from '@chakra-ui/react/clipboard';
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx } from "react/jsx-runtime";
2
3
  import { forwardRef } from 'react';
3
4
  import { IconButton } from "../icon-button/index.js";
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { type HTMLChakraProps, UnstyledProp } from '@chakra-ui/react/styled-system';
3
+ import type { CommandVariantProps } from '@saas-ui/chakra-preset/recipes/command';
3
4
  import type { RecipeProps } from '../../types.ts';
4
- import type { CommandVariantProps } from './command.recipe.ts';
5
5
  export interface CommandBaseProps extends RecipeProps<'suiCommand', CommandVariantProps>, UnstyledProp {
6
6
  }
7
7
  export interface CommandProps extends HTMLChakraProps<'span'>, CommandBaseProps, CommandVariantProps {
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
3
  import { createRecipeContext, } from '@chakra-ui/react/styled-system';
3
4
  import { Kbd } from "../kbd/index.js";
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
3
  import { forwardRef } from 'react';
3
4
  import { Dialog as ChakraDialog } from '@chakra-ui/react/dialog';
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx } from "react/jsx-runtime";
2
3
  import { forwardRef } from 'react';
3
4
  import { DialogContext } from '@ark-ui/react/dialog';
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
3
  import { forwardRef } from 'react';
3
4
  import { Box, EmptyState as ChakraEmptyState, useEmptyStateStyles, } from '@chakra-ui/react';
@@ -1,6 +1,6 @@
1
1
  import type { HTMLChakraProps } from '@chakra-ui/react/styled-system';
2
+ import type { GridListVariantProps } from '@saas-ui/chakra-preset/slot-recipes/grid-list';
2
3
  import type { SlotRecipeProps } from '../../types.ts';
3
- import type { GridListVariantProps } from './grid-list.recipe.ts';
4
4
  interface GridListRootProps extends HTMLChakraProps<'div'>, SlotRecipeProps<'suiGridList', GridListVariantProps> {
5
5
  }
6
6
  declare const GridListRoot: import("react").ForwardRefExoticComponent<GridListRootProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { GridList } from '@saas-ui/core/grid-list';
2
3
  import { withContext, withProvider } from "./grid-list.context.js";
3
4
  const GridListRoot = withProvider(GridList.Root, 'root');
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx } from "react/jsx-runtime";
2
3
  import * as React from 'react';
3
4
  import { HoverCard } from '@chakra-ui/react/hover-card';
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx } from "react/jsx-runtime";
2
3
  import { forwardRef } from 'react';
3
4
  import { Button } from "../button/index.js";
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx } from "react/jsx-runtime";
2
3
  import * as React from 'react';
3
4
  import { IconButton } from "../icon-button/index.js";
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx } from "react/jsx-runtime";
2
3
  import React from 'react';
3
4
  import { Link as ChakraLink } from '@chakra-ui/react/link';
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx } from "react/jsx-runtime";
2
3
  import { forwardRef } from 'react';
3
4
  import { Presence, splitPresenceProps, } from '@ark-ui/react/presence';
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx } from "react/jsx-runtime";
2
3
  import { forwardRef } from 'react';
3
4
  import { Navbar } from '@saas-ui/core/navbar';
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
3
  import { forwardRef } from 'react';
3
4
  import { NumberInput as ChakraNumberInput } from '@chakra-ui/react/number-input';
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx } from "react/jsx-runtime";
2
3
  import { forwardRef, useMemo } from 'react';
3
4
  import { Pagination as ChakraPagination, usePaginationContext, } from '@chakra-ui/react/pagination';
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
+ import type { PersonaVariantProps } from '@saas-ui/chakra-preset/slot-recipes/persona';
2
3
  import * as PersonaPrimitive from './persona.tsx';
3
- import type { PersonaVariantProps } from './persona.recipe.ts';
4
4
  import type { PersonaPresence } from './presence.ts';
5
5
  interface PersonaOptions {
6
6
  /**
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { HTMLChakraProps, type ImageProps, type SlotRecipeProps } from '@chakra-ui/react';
3
+ import type { PersonaVariantProps } from '@saas-ui/chakra-preset/slot-recipes/persona';
3
4
  import { type AvatarProps } from '../avatar/avatar.tsx';
4
- import type { PersonaVariantProps } from './persona.recipe.ts';
5
5
  import type { PersonaPresence } from './presence.ts';
6
6
  interface PersonaRootProps extends HTMLChakraProps<'div'>, SlotRecipeProps<'suiPersona'>, PersonaVariantProps {
7
7
  /**
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
3
  import { forwardRef } from 'react';
3
4
  import { Group } from '@chakra-ui/react/group';
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx } from "react/jsx-runtime";
2
3
  import { forwardRef } from 'react';
3
4
  import { Popover as ChakraPopover } from '@chakra-ui/react/popover';
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
3
  import { forwardRef } from 'react';
3
4
  import { RadioGroup as ChakraRadioGroup } from '@chakra-ui/react/radio-group';
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
3
  import { Fragment, forwardRef } from 'react';
3
4
  import { RadioCard } from '@chakra-ui/react/radio-card';
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
3
  import React, { forwardRef } from 'react';
3
4
  import { Group, IconButton, Input, InputElement, mergeRefs, useControllableState, } from '@chakra-ui/react';
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx } from "react/jsx-runtime";
2
3
  import { Sidebar, useSidebar } from '@saas-ui/core/sidebar';
3
4
  import { ClassNamesProvider, StylesProvider, useRecipeResult, withContext, withItemContext, withItemProvider, } from "./sidebar.context.js";
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx } from "react/jsx-runtime";
2
3
  import { forwardRef } from 'react';
3
4
  import { Circle } from '@chakra-ui/react/circle';
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
3
  import { forwardRef } from 'react';
3
4
  import { Slider as ChakraSlider } from '@chakra-ui/react/slider';
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
3
  import { forwardRef } from 'react';
3
4
  import { Spinner as ChakraSpinner } from '@chakra-ui/react/spinner';
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
3
  import * as React from 'react';
3
4
  import { Badge } from '@chakra-ui/react/badge';
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
3
  import { forwardRef } from 'react';
3
4
  import { Status as ChakraStatus } from '@chakra-ui/react/status';
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
3
  import { Box } from '@chakra-ui/react/box';
3
4
  import { Steps as ChakraSteps, useStepsContext } from '@chakra-ui/react/steps';
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
3
  import { forwardRef } from 'react';
3
4
  import { Switch as ChakraSwitch } from '@chakra-ui/react/switch';
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
3
  import { forwardRef } from 'react';
3
4
  import { Tag as ChakraTag } from '@chakra-ui/react/tag';
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
3
  import * as React from 'react';
3
4
  import { Popover } from "../popover/index.js";
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
3
  import { forwardRef } from 'react';
3
4
  import { Portal } from '@chakra-ui/react/portal';
package/dist/index.d.ts CHANGED
@@ -136,7 +136,7 @@ export { Strong, type StrongProps } from './components/strong/index.ts';
136
136
  export { VisuallyHidden } from './components/visually-hidden/index.ts';
137
137
  export { Wrap, type WrapProps } from './components/wrap/index.ts';
138
138
  export { Flex, type FlexProps } from './components/flex/index.ts';
139
- export type { ColorPalette } from './theme/tokens/colors.ts';
139
+ export type { ColorPalette } from '@saas-ui/chakra-preset/colors';
140
140
  export { For } from '@chakra-ui/react/for';
141
141
  export { LocaleProvider, useLocaleContext, useFilter, } from '@chakra-ui/react/locale';
142
142
  export { Theme } from '@chakra-ui/react';
package/dist/preset.d.ts CHANGED
@@ -1,3 +1 @@
1
- declare const defaultConfig: import("@chakra-ui/react").SystemConfig;
2
- export declare const defaultSystem: import("@chakra-ui/react").SystemContext;
3
- export { defaultSystem as system, defaultConfig };
1
+ export * from '@saas-ui/chakra-preset';
package/dist/preset.js CHANGED
@@ -1,10 +1 @@
1
- import { createSystem, defaultBaseConfig, mergeConfigs } from '@chakra-ui/react';
2
- import { defaultThemeConfig } from "./theme/index.js";
3
- import { utilities } from "./theme/utilities.js";
4
- const defaultConfig = mergeConfigs(defaultBaseConfig, defaultThemeConfig);
5
- /**
6
- * TODO: This is a temporary fix to add the utilities to the default config.
7
- */
8
- defaultConfig.utilities = Object.assign(defaultConfig.utilities ?? {}, utilities);
9
- export const defaultSystem = createSystem(defaultConfig);
10
- export { defaultSystem as system, defaultConfig };
1
+ export * from '@saas-ui/chakra-preset';
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx as _jsx } from "react/jsx-runtime";
2
3
  import * as React from 'react';
3
4
  import { ChakraProvider } from '@chakra-ui/react';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saas-ui/react",
3
- "version": "3.0.0-next.43",
3
+ "version": "3.0.0-next.47",
4
4
  "description": "Saas UI - The React component library for startups.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -62,8 +62,9 @@
62
62
  "dependencies": {
63
63
  "@ark-ui/react": "^5.25.1",
64
64
  "next-themes": "^0.4.6",
65
+ "@saas-ui/hooks": "3.0.0-next.3",
65
66
  "@saas-ui/core": "3.0.0-next.11",
66
- "@saas-ui/hooks": "3.0.0-next.3"
67
+ "@saas-ui/chakra-preset": "3.0.0-next.2"
67
68
  },
68
69
  "peerDependencies": {
69
70
  "@chakra-ui/react": "^3.27.0",
@@ -1,84 +0,0 @@
1
- export declare const accordionSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"root" | "item" | "itemTrigger" | "itemContent" | "itemIndicator" | "itemBody", {
2
- variant: {
3
- outline: {
4
- item: {
5
- borderBottomWidth: "1px";
6
- };
7
- };
8
- subtle: {
9
- itemTrigger: {
10
- px: "var(--accordion-padding-x)";
11
- };
12
- itemContent: {
13
- px: "var(--accordion-padding-x)";
14
- };
15
- item: {
16
- borderRadius: "var(--accordion-radius)";
17
- _open: {
18
- bg: "colorPalette.subtle";
19
- };
20
- };
21
- };
22
- enclosed: {
23
- root: {
24
- borderWidth: "1px";
25
- borderRadius: "var(--accordion-radius)";
26
- divideY: string;
27
- overflow: "hidden";
28
- };
29
- itemTrigger: {
30
- px: "var(--accordion-padding-x)";
31
- };
32
- itemContent: {
33
- px: "var(--accordion-padding-x)";
34
- };
35
- item: {
36
- _open: {
37
- bg: "bg.subtle";
38
- };
39
- };
40
- };
41
- plain: {};
42
- };
43
- size: {
44
- sm: {
45
- root: {
46
- '--accordion-padding-x': "spacing.3";
47
- '--accordion-padding-y': "spacing.2";
48
- };
49
- itemTrigger: {
50
- textStyle: "sm";
51
- py: "var(--accordion-padding-y)";
52
- };
53
- itemContent: {
54
- textStyle: "sm";
55
- };
56
- };
57
- md: {
58
- root: {
59
- '--accordion-padding-x': "spacing.4";
60
- '--accordion-padding-y': "spacing.2";
61
- };
62
- itemTrigger: {
63
- textStyle: "md";
64
- py: "var(--accordion-padding-y)";
65
- };
66
- itemContent: {
67
- textStyle: "md";
68
- };
69
- };
70
- lg: {
71
- root: {
72
- '--accordion-padding-x': "spacing.4.5";
73
- '--accordion-padding-y': "spacing.2.5";
74
- };
75
- itemTrigger: {
76
- textStyle: "lg";
77
- py: "var(--accordion-padding-y)";
78
- };
79
- itemContent: {
80
- textStyle: "lg";
81
- };
82
- };
83
- };
84
- }>;
@@ -1,148 +0,0 @@
1
- import { accordionAnatomy } from '@chakra-ui/react/anatomy';
2
- import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
3
- export const accordionSlotRecipe = defineSlotRecipe({
4
- className: 'chakra-accordion',
5
- slots: accordionAnatomy.keys(),
6
- base: {
7
- root: {
8
- width: 'full',
9
- '--accordion-radius': 'radii.panel.md',
10
- },
11
- item: {
12
- overflowAnchor: 'none',
13
- },
14
- itemTrigger: {
15
- display: 'flex',
16
- alignItems: 'center',
17
- width: 'full',
18
- outline: '0',
19
- gap: '3',
20
- fontWeight: 'medium',
21
- borderRadius: 'var(--accordion-radius)',
22
- _focusVisible: {
23
- outline: '2px solid',
24
- outlineColor: 'colorPalette.focusRing',
25
- },
26
- _disabled: {
27
- layerStyle: 'disabled',
28
- },
29
- },
30
- itemBody: {
31
- pt: 'var(--accordion-padding-y)',
32
- pb: 'calc(var(--accordion-padding-y) * 2)',
33
- },
34
- itemContent: {
35
- overflow: 'hidden',
36
- borderRadius: 'var(--accordion-radius)',
37
- _open: {
38
- animationName: 'expand-height, fade-in',
39
- animationDuration: 'moderate',
40
- },
41
- _closed: {
42
- animationName: 'collapse-height, fade-out',
43
- animationDuration: 'moderate',
44
- },
45
- },
46
- itemIndicator: {
47
- ms: 'auto',
48
- transition: 'rotate 0.2s',
49
- transformOrigin: 'center',
50
- color: 'fg.subtle',
51
- _open: {
52
- rotate: '90deg',
53
- },
54
- _icon: {
55
- width: '1.2em',
56
- height: '1.2em',
57
- },
58
- },
59
- },
60
- variants: {
61
- variant: {
62
- outline: {
63
- item: {
64
- borderBottomWidth: '1px',
65
- },
66
- },
67
- subtle: {
68
- itemTrigger: {
69
- px: 'var(--accordion-padding-x)',
70
- },
71
- itemContent: {
72
- px: 'var(--accordion-padding-x)',
73
- },
74
- item: {
75
- borderRadius: 'var(--accordion-radius)',
76
- _open: {
77
- bg: 'colorPalette.subtle',
78
- },
79
- },
80
- },
81
- enclosed: {
82
- root: {
83
- borderWidth: '1px',
84
- borderRadius: 'var(--accordion-radius)',
85
- divideY: '1px',
86
- overflow: 'hidden',
87
- },
88
- itemTrigger: {
89
- px: 'var(--accordion-padding-x)',
90
- },
91
- itemContent: {
92
- px: 'var(--accordion-padding-x)',
93
- },
94
- item: {
95
- _open: {
96
- bg: 'bg.subtle',
97
- },
98
- },
99
- },
100
- plain: {},
101
- },
102
- size: {
103
- sm: {
104
- root: {
105
- '--accordion-padding-x': 'spacing.3',
106
- '--accordion-padding-y': 'spacing.2',
107
- },
108
- itemTrigger: {
109
- textStyle: 'sm',
110
- py: 'var(--accordion-padding-y)',
111
- },
112
- itemContent: {
113
- textStyle: 'sm',
114
- },
115
- },
116
- md: {
117
- root: {
118
- '--accordion-padding-x': 'spacing.4',
119
- '--accordion-padding-y': 'spacing.2',
120
- },
121
- itemTrigger: {
122
- textStyle: 'md',
123
- py: 'var(--accordion-padding-y)',
124
- },
125
- itemContent: {
126
- textStyle: 'md',
127
- },
128
- },
129
- lg: {
130
- root: {
131
- '--accordion-padding-x': 'spacing.4.5',
132
- '--accordion-padding-y': 'spacing.2.5',
133
- },
134
- itemTrigger: {
135
- textStyle: 'lg',
136
- py: 'var(--accordion-padding-y)',
137
- },
138
- itemContent: {
139
- textStyle: 'lg',
140
- },
141
- },
142
- },
143
- },
144
- defaultVariants: {
145
- size: 'md',
146
- variant: 'outline',
147
- },
148
- });
@@ -1 +0,0 @@
1
- export declare const actionBarSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"content" | "positioner" | "separator" | "selectionTrigger" | "closeTrigger", import("@chakra-ui/react").SlotRecipeVariantRecord<"content" | "positioner" | "separator" | "selectionTrigger" | "closeTrigger">>;
@@ -1,56 +0,0 @@
1
- import { actionBarAnatomy } from '@chakra-ui/react/anatomy';
2
- import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
3
- export const actionBarSlotRecipe = defineSlotRecipe({
4
- className: 'chakra-action-bar',
5
- slots: actionBarAnatomy.keys(),
6
- base: {
7
- positioner: {
8
- position: 'fixed',
9
- display: 'flex',
10
- justifyContent: 'center',
11
- pointerEvents: 'none',
12
- insetInline: '0',
13
- top: 'unset',
14
- bottom: 'calc(env(safe-area-inset-bottom) + 20px)',
15
- },
16
- content: {
17
- bg: 'bg.panel',
18
- shadow: 'md',
19
- display: 'flex',
20
- alignItems: 'center',
21
- gap: '3',
22
- borderRadius: 'panel.md',
23
- py: '2.5',
24
- px: '3',
25
- pointerEvents: 'auto',
26
- // Stabilize the position of the action bar when the scrollbar is hidden
27
- // by using the scrollbar width to offset the position.
28
- translate: 'calc(-1 * var(--scrollbar-width) / 2) 0px',
29
- _open: {
30
- animationName: 'slide-from-bottom, fade-in',
31
- animationDuration: 'moderate',
32
- },
33
- _closed: {
34
- animationName: 'slide-to-bottom, fade-out',
35
- animationDuration: 'faster',
36
- },
37
- },
38
- separator: {
39
- width: '1px',
40
- height: '5',
41
- bg: 'border',
42
- },
43
- selectionTrigger: {
44
- display: 'inline-flex',
45
- alignItems: 'center',
46
- gap: '2',
47
- alignSelf: 'stretch',
48
- textStyle: 'sm',
49
- px: '4',
50
- py: '1',
51
- borderRadius: 'control.md',
52
- borderWidth: '1px',
53
- borderStyle: 'dashed',
54
- },
55
- },
56
- });