@saas-ui/react 3.0.0-alpha.23 → 3.0.0-alpha.25

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/{chunk-BU7QENBQ.js → chunk-3JZ42NYM.js} +1 -1
  3. package/dist/chunk-52XM5VXJ.js +9 -0
  4. package/dist/chunk-6MMPBMKN.js +54 -0
  5. package/dist/chunk-CZVNG73V.js +63 -0
  6. package/dist/chunk-GRUMUCSL.js +109 -0
  7. package/dist/chunk-IVLUAUU5.js +10 -0
  8. package/dist/chunk-JMYI6YXR.js +1 -0
  9. package/dist/{chunk-CD2JUFI2.js → chunk-K2SPPLAY.js} +2 -2
  10. package/dist/chunk-KE5AC3TZ.js +63 -0
  11. package/dist/{chunk-FJFNGSPL.js → chunk-NGGISORT.js} +12 -6
  12. package/dist/chunk-RLIAFHVM.js +66 -0
  13. package/dist/components/badge/index.d.cts +2 -0
  14. package/dist/components/badge/index.d.ts +2 -0
  15. package/dist/components/close-button/index.js +2 -1
  16. package/dist/components/data-list/index.cjs +33 -0
  17. package/dist/components/data-list/index.d.cts +1 -0
  18. package/dist/components/data-list/index.d.ts +1 -0
  19. package/dist/components/data-list/index.js +10 -0
  20. package/dist/components/dialog/index.cjs +35 -35
  21. package/dist/components/dialog/index.d.cts +35 -17
  22. package/dist/components/dialog/index.d.ts +35 -17
  23. package/dist/components/dialog/index.js +5 -4
  24. package/dist/components/drawer/index.cjs +34 -36
  25. package/dist/components/drawer/index.d.cts +33 -18
  26. package/dist/components/drawer/index.d.ts +33 -18
  27. package/dist/components/drawer/index.js +5 -4
  28. package/dist/components/empty-state/index.cjs +12 -10
  29. package/dist/components/empty-state/index.js +1 -1
  30. package/dist/components/file-upload/index.cjs +254 -0
  31. package/dist/components/file-upload/index.d.cts +43 -0
  32. package/dist/components/file-upload/index.d.ts +43 -0
  33. package/dist/components/file-upload/index.js +10 -0
  34. package/dist/components/grid-list/index.d.cts +1 -1
  35. package/dist/components/grid-list/index.d.ts +1 -1
  36. package/dist/components/navbar/index.d.cts +3 -3
  37. package/dist/components/navbar/index.d.ts +3 -3
  38. package/dist/components/password-input/index.cjs +2 -2
  39. package/dist/components/password-input/index.js +1 -1
  40. package/dist/components/persona/index.d.cts +4 -9
  41. package/dist/components/persona/index.d.ts +4 -9
  42. package/dist/components/popover/index.cjs +214 -0
  43. package/dist/components/popover/index.d.cts +37 -0
  44. package/dist/components/popover/index.d.ts +37 -0
  45. package/dist/components/popover/index.js +11 -0
  46. package/dist/components/select/index.js +3 -2
  47. package/dist/components/sidebar/index.d.cts +11 -11
  48. package/dist/components/sidebar/index.d.ts +11 -11
  49. package/dist/components/tabs/index.cjs +35 -0
  50. package/dist/components/tabs/index.d.cts +1 -0
  51. package/dist/components/tabs/index.d.ts +1 -0
  52. package/dist/components/tabs/index.js +12 -0
  53. package/dist/components/toaster/index.cjs +161 -11
  54. package/dist/components/toaster/index.d.cts +6 -5
  55. package/dist/components/toaster/index.d.ts +6 -5
  56. package/dist/components/toaster/index.js +3 -1
  57. package/dist/index.cjs +2253 -1968
  58. package/dist/index.d.cts +5 -1
  59. package/dist/index.d.ts +5 -1
  60. package/dist/index.js +1531 -1415
  61. package/package.json +2 -2
  62. package/dist/chunk-EQ7Q6HRE.js +0 -63
  63. package/dist/chunk-HELHPHIQ.js +0 -35
  64. package/dist/chunk-VJ4NCA6R.js +0 -56
  65. /package/dist/{chunk-BKYGKH3L.js → chunk-YXGJOOMM.js} +0 -0
@@ -1,28 +1,46 @@
1
+ import * as _ark_ui_react from '@ark-ui/react';
1
2
  import * as react from 'react';
2
3
  import { Dialog } from '@chakra-ui/react';
3
4
  import { DialogContext } from '@ark-ui/react/dialog';
4
5
 
5
- interface DialogContentProps extends Dialog.ContentProps {
6
+ interface ContentProps extends Dialog.ContentProps {
6
7
  portalled?: boolean;
7
8
  portalRef?: React.RefObject<HTMLElement>;
8
9
  backdrop?: boolean;
9
10
  }
10
- declare const DialogContent: react.ForwardRefExoticComponent<DialogContentProps & react.RefAttributes<HTMLDivElement>>;
11
- declare const DialogCloseButton: react.ForwardRefExoticComponent<Dialog.CloseTriggerProps & react.RefAttributes<HTMLButtonElement>>;
12
- declare const DialogCloseTrigger: react.ForwardRefExoticComponent<Dialog.CloseTriggerProps & react.RefAttributes<HTMLButtonElement>>;
13
- type DialogRootProps = Dialog.RootProps;
14
- declare const DialogRoot: react.FC<Dialog.RootProps>;
15
- declare const DialogFooter: react.ForwardRefExoticComponent<Dialog.FooterProps & react.RefAttributes<HTMLDivElement>>;
16
- declare const DialogHeader: react.ForwardRefExoticComponent<Dialog.HeaderProps & react.RefAttributes<HTMLDivElement>>;
17
- declare const DialogBody: react.ForwardRefExoticComponent<Dialog.BodyProps & react.RefAttributes<HTMLDivElement>>;
18
- declare const DialogBackdrop: react.ForwardRefExoticComponent<Dialog.BackdropProps & react.RefAttributes<HTMLDivElement>>;
19
- declare const DialogTitle: react.ForwardRefExoticComponent<Dialog.TitleProps & react.RefAttributes<HTMLDivElement>>;
20
- declare const DialogDescription: react.ForwardRefExoticComponent<Dialog.DescriptionProps & react.RefAttributes<HTMLDivElement>>;
21
- declare const DialogTrigger: react.ForwardRefExoticComponent<Dialog.TriggerProps & react.RefAttributes<HTMLButtonElement>>;
22
- declare const DialogActionTrigger: react.ForwardRefExoticComponent<Dialog.ActionTriggerProps & react.RefAttributes<HTMLButtonElement>>;
11
+ declare const Content: react.ForwardRefExoticComponent<ContentProps & react.RefAttributes<HTMLDivElement>>;
12
+ declare const CloseButton: react.ForwardRefExoticComponent<Dialog.CloseTriggerProps & react.RefAttributes<HTMLButtonElement>>;
13
+ declare const CloseTrigger: react.ForwardRefExoticComponent<Dialog.CloseTriggerProps & react.RefAttributes<HTMLButtonElement>>;
14
+ type RootProps = Dialog.RootProps;
15
+ declare const Root: react.FC<Dialog.RootProps>;
16
+ declare const Context: (props: _ark_ui_react.DialogContextProps) => react.ReactNode;
17
+ declare const Footer: react.ForwardRefExoticComponent<Dialog.FooterProps & react.RefAttributes<HTMLDivElement>>;
18
+ declare const Header: react.ForwardRefExoticComponent<Dialog.HeaderProps & react.RefAttributes<HTMLDivElement>>;
19
+ declare const Body: react.ForwardRefExoticComponent<Dialog.BodyProps & react.RefAttributes<HTMLDivElement>>;
20
+ declare const Backdrop: react.ForwardRefExoticComponent<Dialog.BackdropProps & react.RefAttributes<HTMLDivElement>>;
21
+ declare const Title: react.ForwardRefExoticComponent<Dialog.TitleProps & react.RefAttributes<HTMLDivElement>>;
22
+ declare const Description: react.ForwardRefExoticComponent<Dialog.DescriptionProps & react.RefAttributes<HTMLDivElement>>;
23
+ declare const Trigger: react.ForwardRefExoticComponent<Dialog.TriggerProps & react.RefAttributes<HTMLButtonElement>>;
24
+ declare const ActionTrigger: react.ForwardRefExoticComponent<Dialog.ActionTriggerProps & react.RefAttributes<HTMLButtonElement>>;
23
25
 
24
- declare namespace namespace {
25
- export { DialogActionTrigger as ActionTrigger, DialogBackdrop as Backdrop, DialogBody as Body, DialogCloseButton as CloseButton, DialogCloseTrigger as CloseTrigger, DialogContent as Content, type DialogContentProps as ContentProps, DialogContext as Context, DialogDescription as Description, DialogFooter as Footer, DialogHeader as Header, DialogRoot as Root, type DialogRootProps as RootProps, DialogTitle as Title, DialogTrigger as Trigger };
26
+ declare const dialog_ActionTrigger: typeof ActionTrigger;
27
+ declare const dialog_Backdrop: typeof Backdrop;
28
+ declare const dialog_Body: typeof Body;
29
+ declare const dialog_CloseButton: typeof CloseButton;
30
+ declare const dialog_CloseTrigger: typeof CloseTrigger;
31
+ declare const dialog_Content: typeof Content;
32
+ type dialog_ContentProps = ContentProps;
33
+ declare const dialog_Context: typeof Context;
34
+ declare const dialog_Description: typeof Description;
35
+ declare const dialog_DialogContext: typeof DialogContext;
36
+ declare const dialog_Footer: typeof Footer;
37
+ declare const dialog_Header: typeof Header;
38
+ declare const dialog_Root: typeof Root;
39
+ type dialog_RootProps = RootProps;
40
+ declare const dialog_Title: typeof Title;
41
+ declare const dialog_Trigger: typeof Trigger;
42
+ declare namespace dialog {
43
+ export { dialog_ActionTrigger as ActionTrigger, dialog_Backdrop as Backdrop, dialog_Body as Body, dialog_CloseButton as CloseButton, dialog_CloseTrigger as CloseTrigger, dialog_Content as Content, type dialog_ContentProps as ContentProps, dialog_Context as Context, dialog_Description as Description, dialog_DialogContext as DialogContext, dialog_Footer as Footer, dialog_Header as Header, dialog_Root as Root, type dialog_RootProps as RootProps, dialog_Title as Title, dialog_Trigger as Trigger };
26
44
  }
27
45
 
28
- export { namespace as Dialog };
46
+ export { dialog as Dialog };
@@ -1,28 +1,46 @@
1
+ import * as _ark_ui_react from '@ark-ui/react';
1
2
  import * as react from 'react';
2
3
  import { Dialog } from '@chakra-ui/react';
3
4
  import { DialogContext } from '@ark-ui/react/dialog';
4
5
 
5
- interface DialogContentProps extends Dialog.ContentProps {
6
+ interface ContentProps extends Dialog.ContentProps {
6
7
  portalled?: boolean;
7
8
  portalRef?: React.RefObject<HTMLElement>;
8
9
  backdrop?: boolean;
9
10
  }
10
- declare const DialogContent: react.ForwardRefExoticComponent<DialogContentProps & react.RefAttributes<HTMLDivElement>>;
11
- declare const DialogCloseButton: react.ForwardRefExoticComponent<Dialog.CloseTriggerProps & react.RefAttributes<HTMLButtonElement>>;
12
- declare const DialogCloseTrigger: react.ForwardRefExoticComponent<Dialog.CloseTriggerProps & react.RefAttributes<HTMLButtonElement>>;
13
- type DialogRootProps = Dialog.RootProps;
14
- declare const DialogRoot: react.FC<Dialog.RootProps>;
15
- declare const DialogFooter: react.ForwardRefExoticComponent<Dialog.FooterProps & react.RefAttributes<HTMLDivElement>>;
16
- declare const DialogHeader: react.ForwardRefExoticComponent<Dialog.HeaderProps & react.RefAttributes<HTMLDivElement>>;
17
- declare const DialogBody: react.ForwardRefExoticComponent<Dialog.BodyProps & react.RefAttributes<HTMLDivElement>>;
18
- declare const DialogBackdrop: react.ForwardRefExoticComponent<Dialog.BackdropProps & react.RefAttributes<HTMLDivElement>>;
19
- declare const DialogTitle: react.ForwardRefExoticComponent<Dialog.TitleProps & react.RefAttributes<HTMLDivElement>>;
20
- declare const DialogDescription: react.ForwardRefExoticComponent<Dialog.DescriptionProps & react.RefAttributes<HTMLDivElement>>;
21
- declare const DialogTrigger: react.ForwardRefExoticComponent<Dialog.TriggerProps & react.RefAttributes<HTMLButtonElement>>;
22
- declare const DialogActionTrigger: react.ForwardRefExoticComponent<Dialog.ActionTriggerProps & react.RefAttributes<HTMLButtonElement>>;
11
+ declare const Content: react.ForwardRefExoticComponent<ContentProps & react.RefAttributes<HTMLDivElement>>;
12
+ declare const CloseButton: react.ForwardRefExoticComponent<Dialog.CloseTriggerProps & react.RefAttributes<HTMLButtonElement>>;
13
+ declare const CloseTrigger: react.ForwardRefExoticComponent<Dialog.CloseTriggerProps & react.RefAttributes<HTMLButtonElement>>;
14
+ type RootProps = Dialog.RootProps;
15
+ declare const Root: react.FC<Dialog.RootProps>;
16
+ declare const Context: (props: _ark_ui_react.DialogContextProps) => react.ReactNode;
17
+ declare const Footer: react.ForwardRefExoticComponent<Dialog.FooterProps & react.RefAttributes<HTMLDivElement>>;
18
+ declare const Header: react.ForwardRefExoticComponent<Dialog.HeaderProps & react.RefAttributes<HTMLDivElement>>;
19
+ declare const Body: react.ForwardRefExoticComponent<Dialog.BodyProps & react.RefAttributes<HTMLDivElement>>;
20
+ declare const Backdrop: react.ForwardRefExoticComponent<Dialog.BackdropProps & react.RefAttributes<HTMLDivElement>>;
21
+ declare const Title: react.ForwardRefExoticComponent<Dialog.TitleProps & react.RefAttributes<HTMLDivElement>>;
22
+ declare const Description: react.ForwardRefExoticComponent<Dialog.DescriptionProps & react.RefAttributes<HTMLDivElement>>;
23
+ declare const Trigger: react.ForwardRefExoticComponent<Dialog.TriggerProps & react.RefAttributes<HTMLButtonElement>>;
24
+ declare const ActionTrigger: react.ForwardRefExoticComponent<Dialog.ActionTriggerProps & react.RefAttributes<HTMLButtonElement>>;
23
25
 
24
- declare namespace namespace {
25
- export { DialogActionTrigger as ActionTrigger, DialogBackdrop as Backdrop, DialogBody as Body, DialogCloseButton as CloseButton, DialogCloseTrigger as CloseTrigger, DialogContent as Content, type DialogContentProps as ContentProps, DialogContext as Context, DialogDescription as Description, DialogFooter as Footer, DialogHeader as Header, DialogRoot as Root, type DialogRootProps as RootProps, DialogTitle as Title, DialogTrigger as Trigger };
26
+ declare const dialog_ActionTrigger: typeof ActionTrigger;
27
+ declare const dialog_Backdrop: typeof Backdrop;
28
+ declare const dialog_Body: typeof Body;
29
+ declare const dialog_CloseButton: typeof CloseButton;
30
+ declare const dialog_CloseTrigger: typeof CloseTrigger;
31
+ declare const dialog_Content: typeof Content;
32
+ type dialog_ContentProps = ContentProps;
33
+ declare const dialog_Context: typeof Context;
34
+ declare const dialog_Description: typeof Description;
35
+ declare const dialog_DialogContext: typeof DialogContext;
36
+ declare const dialog_Footer: typeof Footer;
37
+ declare const dialog_Header: typeof Header;
38
+ declare const dialog_Root: typeof Root;
39
+ type dialog_RootProps = RootProps;
40
+ declare const dialog_Title: typeof Title;
41
+ declare const dialog_Trigger: typeof Trigger;
42
+ declare namespace dialog {
43
+ export { dialog_ActionTrigger as ActionTrigger, dialog_Backdrop as Backdrop, dialog_Body as Body, dialog_CloseButton as CloseButton, dialog_CloseTrigger as CloseTrigger, dialog_Content as Content, type dialog_ContentProps as ContentProps, dialog_Context as Context, dialog_Description as Description, dialog_DialogContext as DialogContext, dialog_Footer as Footer, dialog_Header as Header, dialog_Root as Root, type dialog_RootProps as RootProps, dialog_Title as Title, dialog_Trigger as Trigger };
26
44
  }
27
45
 
28
- export { namespace as Dialog };
46
+ export { dialog as Dialog };
@@ -1,10 +1,11 @@
1
1
  'use client'
2
2
  import {
3
- namespace_exports
4
- } from "../../chunk-EQ7Q6HRE.js";
5
- import "../../chunk-BKYGKH3L.js";
3
+ dialog_exports
4
+ } from "../../chunk-CZVNG73V.js";
5
+ import "../../chunk-JMYI6YXR.js";
6
+ import "../../chunk-YXGJOOMM.js";
6
7
  import "../../chunk-4TPVIHNO.js";
7
8
  import "../../chunk-RTMS5TJN.js";
8
9
  export {
9
- namespace_exports as Dialog
10
+ dialog_exports as Dialog
10
11
  };
@@ -19,31 +19,29 @@ var __copyProps = (to, from, except, desc) => {
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
20
 
21
21
  // src/components/drawer/index.ts
22
- var drawer_exports = {};
23
- __export(drawer_exports, {
24
- Drawer: () => namespace_exports
25
- });
26
- module.exports = __toCommonJS(drawer_exports);
27
-
28
- // src/components/drawer/namespace.ts
29
- var namespace_exports = {};
30
- __export(namespace_exports, {
31
- ActionTrigger: () => DrawerActionTrigger,
32
- Backdrop: () => DrawerBackdrop,
33
- Body: () => DrawerBody,
34
- CloseButton: () => DrawerCloseButton,
35
- CloseTrigger: () => DrawerCloseTrigger2,
36
- Content: () => DrawerContent,
37
- Context: () => DrawerContext,
38
- Description: () => DrawerDescription,
39
- Footer: () => DrawerFooter,
40
- Header: () => DrawerHeader,
41
- Root: () => DrawerRoot,
42
- Title: () => DrawerTitle,
43
- Trigger: () => DrawerTrigger
22
+ var drawer_exports2 = {};
23
+ __export(drawer_exports2, {
24
+ Drawer: () => drawer_exports
44
25
  });
26
+ module.exports = __toCommonJS(drawer_exports2);
45
27
 
46
28
  // src/components/drawer/drawer.tsx
29
+ var drawer_exports = {};
30
+ __export(drawer_exports, {
31
+ ActionTrigger: () => ActionTrigger,
32
+ Backdrop: () => Backdrop,
33
+ Body: () => Body,
34
+ CloseButton: () => CloseButton3,
35
+ CloseTrigger: () => CloseTrigger,
36
+ Content: () => Content,
37
+ Context: () => Context,
38
+ Description: () => Description,
39
+ Footer: () => Footer,
40
+ Header: () => Header,
41
+ Root: () => Root,
42
+ Title: () => Title,
43
+ Trigger: () => Trigger
44
+ });
47
45
  var import_react4 = require("react");
48
46
  var import_dialog = require("@ark-ui/react/dialog");
49
47
  var import_react5 = require("@chakra-ui/react");
@@ -170,27 +168,27 @@ var CloseButton = (0, import_react2.forwardRef)(
170
168
 
171
169
  // src/components/drawer/drawer.tsx
172
170
  var import_jsx_runtime3 = require("react/jsx-runtime");
173
- var DrawerContent = (0, import_react4.forwardRef)(
174
- function DrawerContent2(props, ref) {
171
+ var Content = (0, import_react4.forwardRef)(
172
+ function DrawerContent(props, ref) {
175
173
  const { children, portalled = true, portalRef, offset, ...rest } = props;
176
174
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react5.Portal, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react5.Drawer.Positioner, { padding: offset, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react5.Drawer.Content, { ref, ...rest, asChild: false, children }) }) });
177
175
  }
178
176
  );
179
- var DrawerCloseButton = (0, import_react4.forwardRef)(function DrawerCloseTrigger(props, ref) {
177
+ var CloseButton3 = (0, import_react4.forwardRef)(function DrawerCloseTrigger(props, ref) {
180
178
  const { children, ...rest } = props;
181
179
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react5.Drawer.CloseTrigger, { position: "absolute", ...rest, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(CloseButton, { size: "sm", ref, children }) });
182
180
  });
183
- var DrawerCloseTrigger2 = import_react5.Drawer.CloseTrigger;
184
- var DrawerTrigger = import_react5.Drawer.Trigger;
185
- var DrawerRoot = import_react5.Drawer.Root;
186
- var DrawerFooter = import_react5.Drawer.Footer;
187
- var DrawerHeader = import_react5.Drawer.Header;
188
- var DrawerBody = import_react5.Drawer.Body;
189
- var DrawerBackdrop = import_react5.Drawer.Backdrop;
190
- var DrawerDescription = import_react5.Drawer.Description;
191
- var DrawerTitle = import_react5.Drawer.Title;
192
- var DrawerActionTrigger = import_react5.Drawer.ActionTrigger;
193
- var DrawerContext = import_dialog.DialogContext;
181
+ var CloseTrigger = import_react5.Drawer.CloseTrigger;
182
+ var Trigger = import_react5.Drawer.Trigger;
183
+ var Root = import_react5.Drawer.Root;
184
+ var Footer = import_react5.Drawer.Footer;
185
+ var Header = import_react5.Drawer.Header;
186
+ var Body = import_react5.Drawer.Body;
187
+ var Backdrop = import_react5.Drawer.Backdrop;
188
+ var Description = import_react5.Drawer.Description;
189
+ var Title = import_react5.Drawer.Title;
190
+ var ActionTrigger = import_react5.Drawer.ActionTrigger;
191
+ var Context = import_dialog.DialogContext;
194
192
  // Annotate the CommonJS export names for ESM import in node:
195
193
  0 && (module.exports = {
196
194
  Drawer
@@ -2,28 +2,43 @@ import * as _ark_ui_react from '@ark-ui/react';
2
2
  import * as react from 'react';
3
3
  import { Drawer } from '@chakra-ui/react';
4
4
 
5
- interface DrawerContentProps extends Drawer.ContentProps {
5
+ interface ContentProps extends Drawer.ContentProps {
6
6
  portalled?: boolean;
7
7
  portalRef?: React.RefObject<HTMLElement>;
8
8
  offset?: Drawer.ContentProps['padding'];
9
9
  }
10
- declare const DrawerContent: react.ForwardRefExoticComponent<DrawerContentProps & react.RefAttributes<HTMLDivElement>>;
11
- declare const DrawerCloseButton: react.ForwardRefExoticComponent<Drawer.CloseTriggerProps & react.RefAttributes<HTMLButtonElement>>;
12
- declare const DrawerCloseTrigger: react.ForwardRefExoticComponent<Drawer.CloseTriggerProps & react.RefAttributes<HTMLButtonElement>>;
13
- declare const DrawerTrigger: react.ForwardRefExoticComponent<Drawer.TriggerProps & react.RefAttributes<HTMLButtonElement>>;
14
- declare const DrawerRoot: react.FC<Drawer.RootProps>;
15
- declare const DrawerFooter: react.ForwardRefExoticComponent<Drawer.FooterProps & react.RefAttributes<HTMLDivElement>>;
16
- declare const DrawerHeader: react.ForwardRefExoticComponent<Drawer.HeaderProps & react.RefAttributes<HTMLDivElement>>;
17
- declare const DrawerBody: react.ForwardRefExoticComponent<Drawer.BodyProps & react.RefAttributes<HTMLDivElement>>;
18
- declare const DrawerBackdrop: react.ForwardRefExoticComponent<Drawer.BackdropProps & react.RefAttributes<HTMLDivElement>>;
19
- declare const DrawerDescription: react.ForwardRefExoticComponent<Drawer.DescriptionProps & react.RefAttributes<HTMLDivElement>>;
20
- declare const DrawerTitle: react.ForwardRefExoticComponent<Drawer.TitleProps & react.RefAttributes<HTMLDivElement>>;
21
- declare const DrawerActionTrigger: react.ForwardRefExoticComponent<Drawer.ActionTriggerProps & react.RefAttributes<HTMLButtonElement>>;
22
- declare const DrawerContext: (props: _ark_ui_react.DialogContextProps) => react.ReactNode;
23
- type DrawerRootProps = Drawer.RootProps;
10
+ declare const Content: react.ForwardRefExoticComponent<ContentProps & react.RefAttributes<HTMLDivElement>>;
11
+ declare const CloseButton: react.ForwardRefExoticComponent<Drawer.CloseTriggerProps & react.RefAttributes<HTMLButtonElement>>;
12
+ declare const CloseTrigger: react.ForwardRefExoticComponent<Drawer.CloseTriggerProps & react.RefAttributes<HTMLButtonElement>>;
13
+ declare const Trigger: react.ForwardRefExoticComponent<Drawer.TriggerProps & react.RefAttributes<HTMLButtonElement>>;
14
+ declare const Root: react.FC<Drawer.RootProps>;
15
+ declare const Footer: react.ForwardRefExoticComponent<Drawer.FooterProps & react.RefAttributes<HTMLDivElement>>;
16
+ declare const Header: react.ForwardRefExoticComponent<Drawer.HeaderProps & react.RefAttributes<HTMLDivElement>>;
17
+ declare const Body: react.ForwardRefExoticComponent<Drawer.BodyProps & react.RefAttributes<HTMLDivElement>>;
18
+ declare const Backdrop: react.ForwardRefExoticComponent<Drawer.BackdropProps & react.RefAttributes<HTMLDivElement>>;
19
+ declare const Description: react.ForwardRefExoticComponent<Drawer.DescriptionProps & react.RefAttributes<HTMLDivElement>>;
20
+ declare const Title: react.ForwardRefExoticComponent<Drawer.TitleProps & react.RefAttributes<HTMLDivElement>>;
21
+ declare const ActionTrigger: react.ForwardRefExoticComponent<Drawer.ActionTriggerProps & react.RefAttributes<HTMLButtonElement>>;
22
+ declare const Context: (props: _ark_ui_react.DialogContextProps) => react.ReactNode;
23
+ type RootProps = Drawer.RootProps;
24
24
 
25
- declare namespace namespace {
26
- export { DrawerActionTrigger as ActionTrigger, DrawerBackdrop as Backdrop, DrawerBody as Body, DrawerCloseButton as CloseButton, DrawerCloseTrigger as CloseTrigger, DrawerContent as Content, type DrawerContentProps as ContentProps, DrawerContext as Context, DrawerDescription as Description, DrawerFooter as Footer, DrawerHeader as Header, DrawerRoot as Root, type DrawerRootProps as RootProps, DrawerTitle as Title, DrawerTrigger as Trigger };
25
+ declare const drawer_ActionTrigger: typeof ActionTrigger;
26
+ declare const drawer_Backdrop: typeof Backdrop;
27
+ declare const drawer_Body: typeof Body;
28
+ declare const drawer_CloseButton: typeof CloseButton;
29
+ declare const drawer_CloseTrigger: typeof CloseTrigger;
30
+ declare const drawer_Content: typeof Content;
31
+ type drawer_ContentProps = ContentProps;
32
+ declare const drawer_Context: typeof Context;
33
+ declare const drawer_Description: typeof Description;
34
+ declare const drawer_Footer: typeof Footer;
35
+ declare const drawer_Header: typeof Header;
36
+ declare const drawer_Root: typeof Root;
37
+ type drawer_RootProps = RootProps;
38
+ declare const drawer_Title: typeof Title;
39
+ declare const drawer_Trigger: typeof Trigger;
40
+ declare namespace drawer {
41
+ export { drawer_ActionTrigger as ActionTrigger, drawer_Backdrop as Backdrop, drawer_Body as Body, drawer_CloseButton as CloseButton, drawer_CloseTrigger as CloseTrigger, drawer_Content as Content, type drawer_ContentProps as ContentProps, drawer_Context as Context, drawer_Description as Description, drawer_Footer as Footer, drawer_Header as Header, drawer_Root as Root, type drawer_RootProps as RootProps, drawer_Title as Title, drawer_Trigger as Trigger };
27
42
  }
28
43
 
29
- export { namespace as Drawer };
44
+ export { drawer as Drawer };
@@ -2,28 +2,43 @@ import * as _ark_ui_react from '@ark-ui/react';
2
2
  import * as react from 'react';
3
3
  import { Drawer } from '@chakra-ui/react';
4
4
 
5
- interface DrawerContentProps extends Drawer.ContentProps {
5
+ interface ContentProps extends Drawer.ContentProps {
6
6
  portalled?: boolean;
7
7
  portalRef?: React.RefObject<HTMLElement>;
8
8
  offset?: Drawer.ContentProps['padding'];
9
9
  }
10
- declare const DrawerContent: react.ForwardRefExoticComponent<DrawerContentProps & react.RefAttributes<HTMLDivElement>>;
11
- declare const DrawerCloseButton: react.ForwardRefExoticComponent<Drawer.CloseTriggerProps & react.RefAttributes<HTMLButtonElement>>;
12
- declare const DrawerCloseTrigger: react.ForwardRefExoticComponent<Drawer.CloseTriggerProps & react.RefAttributes<HTMLButtonElement>>;
13
- declare const DrawerTrigger: react.ForwardRefExoticComponent<Drawer.TriggerProps & react.RefAttributes<HTMLButtonElement>>;
14
- declare const DrawerRoot: react.FC<Drawer.RootProps>;
15
- declare const DrawerFooter: react.ForwardRefExoticComponent<Drawer.FooterProps & react.RefAttributes<HTMLDivElement>>;
16
- declare const DrawerHeader: react.ForwardRefExoticComponent<Drawer.HeaderProps & react.RefAttributes<HTMLDivElement>>;
17
- declare const DrawerBody: react.ForwardRefExoticComponent<Drawer.BodyProps & react.RefAttributes<HTMLDivElement>>;
18
- declare const DrawerBackdrop: react.ForwardRefExoticComponent<Drawer.BackdropProps & react.RefAttributes<HTMLDivElement>>;
19
- declare const DrawerDescription: react.ForwardRefExoticComponent<Drawer.DescriptionProps & react.RefAttributes<HTMLDivElement>>;
20
- declare const DrawerTitle: react.ForwardRefExoticComponent<Drawer.TitleProps & react.RefAttributes<HTMLDivElement>>;
21
- declare const DrawerActionTrigger: react.ForwardRefExoticComponent<Drawer.ActionTriggerProps & react.RefAttributes<HTMLButtonElement>>;
22
- declare const DrawerContext: (props: _ark_ui_react.DialogContextProps) => react.ReactNode;
23
- type DrawerRootProps = Drawer.RootProps;
10
+ declare const Content: react.ForwardRefExoticComponent<ContentProps & react.RefAttributes<HTMLDivElement>>;
11
+ declare const CloseButton: react.ForwardRefExoticComponent<Drawer.CloseTriggerProps & react.RefAttributes<HTMLButtonElement>>;
12
+ declare const CloseTrigger: react.ForwardRefExoticComponent<Drawer.CloseTriggerProps & react.RefAttributes<HTMLButtonElement>>;
13
+ declare const Trigger: react.ForwardRefExoticComponent<Drawer.TriggerProps & react.RefAttributes<HTMLButtonElement>>;
14
+ declare const Root: react.FC<Drawer.RootProps>;
15
+ declare const Footer: react.ForwardRefExoticComponent<Drawer.FooterProps & react.RefAttributes<HTMLDivElement>>;
16
+ declare const Header: react.ForwardRefExoticComponent<Drawer.HeaderProps & react.RefAttributes<HTMLDivElement>>;
17
+ declare const Body: react.ForwardRefExoticComponent<Drawer.BodyProps & react.RefAttributes<HTMLDivElement>>;
18
+ declare const Backdrop: react.ForwardRefExoticComponent<Drawer.BackdropProps & react.RefAttributes<HTMLDivElement>>;
19
+ declare const Description: react.ForwardRefExoticComponent<Drawer.DescriptionProps & react.RefAttributes<HTMLDivElement>>;
20
+ declare const Title: react.ForwardRefExoticComponent<Drawer.TitleProps & react.RefAttributes<HTMLDivElement>>;
21
+ declare const ActionTrigger: react.ForwardRefExoticComponent<Drawer.ActionTriggerProps & react.RefAttributes<HTMLButtonElement>>;
22
+ declare const Context: (props: _ark_ui_react.DialogContextProps) => react.ReactNode;
23
+ type RootProps = Drawer.RootProps;
24
24
 
25
- declare namespace namespace {
26
- export { DrawerActionTrigger as ActionTrigger, DrawerBackdrop as Backdrop, DrawerBody as Body, DrawerCloseButton as CloseButton, DrawerCloseTrigger as CloseTrigger, DrawerContent as Content, type DrawerContentProps as ContentProps, DrawerContext as Context, DrawerDescription as Description, DrawerFooter as Footer, DrawerHeader as Header, DrawerRoot as Root, type DrawerRootProps as RootProps, DrawerTitle as Title, DrawerTrigger as Trigger };
25
+ declare const drawer_ActionTrigger: typeof ActionTrigger;
26
+ declare const drawer_Backdrop: typeof Backdrop;
27
+ declare const drawer_Body: typeof Body;
28
+ declare const drawer_CloseButton: typeof CloseButton;
29
+ declare const drawer_CloseTrigger: typeof CloseTrigger;
30
+ declare const drawer_Content: typeof Content;
31
+ type drawer_ContentProps = ContentProps;
32
+ declare const drawer_Context: typeof Context;
33
+ declare const drawer_Description: typeof Description;
34
+ declare const drawer_Footer: typeof Footer;
35
+ declare const drawer_Header: typeof Header;
36
+ declare const drawer_Root: typeof Root;
37
+ type drawer_RootProps = RootProps;
38
+ declare const drawer_Title: typeof Title;
39
+ declare const drawer_Trigger: typeof Trigger;
40
+ declare namespace drawer {
41
+ export { drawer_ActionTrigger as ActionTrigger, drawer_Backdrop as Backdrop, drawer_Body as Body, drawer_CloseButton as CloseButton, drawer_CloseTrigger as CloseTrigger, drawer_Content as Content, type drawer_ContentProps as ContentProps, drawer_Context as Context, drawer_Description as Description, drawer_Footer as Footer, drawer_Header as Header, drawer_Root as Root, type drawer_RootProps as RootProps, drawer_Title as Title, drawer_Trigger as Trigger };
27
42
  }
28
43
 
29
- export { namespace as Drawer };
44
+ export { drawer as Drawer };
@@ -1,10 +1,11 @@
1
1
  'use client'
2
2
  import {
3
- namespace_exports
4
- } from "../../chunk-VJ4NCA6R.js";
5
- import "../../chunk-BKYGKH3L.js";
3
+ drawer_exports
4
+ } from "../../chunk-6MMPBMKN.js";
5
+ import "../../chunk-JMYI6YXR.js";
6
+ import "../../chunk-YXGJOOMM.js";
6
7
  import "../../chunk-4TPVIHNO.js";
7
8
  import "../../chunk-RTMS5TJN.js";
8
9
  export {
9
- namespace_exports as Drawer
10
+ drawer_exports as Drawer
10
11
  };
@@ -26,19 +26,21 @@ __export(empty_state_exports, {
26
26
  module.exports = __toCommonJS(empty_state_exports);
27
27
 
28
28
  // src/components/empty-state/empty-state.tsx
29
- var import_react = require("@chakra-ui/react");
30
- var import_react2 = require("react");
29
+ var import_react = require("react");
30
+ var import_react2 = require("@chakra-ui/react");
31
31
  var import_jsx_runtime = require("react/jsx-runtime");
32
- var EmptyState = (0, import_react2.forwardRef)(
32
+ var EmptyStateActions = (props) => {
33
+ const { actions } = (0, import_react2.useEmptyStateStyles)();
34
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Box, { ...props, css: [actions, props.css] });
35
+ };
36
+ var EmptyState = (0, import_react.forwardRef)(
33
37
  function EmptyState2(props, ref) {
34
38
  const { title, description, icon, children, ...rest } = props;
35
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.EmptyState.Root, { ref, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.EmptyState.Content, { children: [
36
- icon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.EmptyState.Indicator, { children: icon }),
37
- description ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.VStack, { textAlign: "center", children: [
38
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.EmptyState.Title, { children: title }),
39
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.EmptyState.Description, { children: description })
40
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.EmptyState.Title, { children: title }),
41
- children
39
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.EmptyState.Root, { ref, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react2.EmptyState.Content, { children: [
40
+ icon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.EmptyState.Indicator, { children: icon }),
41
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.EmptyState.Title, { children: title }),
42
+ description ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.EmptyState.Description, { children: description }) : null,
43
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyStateActions, { children })
42
44
  ] }) });
43
45
  }
44
46
  );
@@ -1,7 +1,7 @@
1
1
  'use client'
2
2
  import {
3
3
  EmptyState
4
- } from "../../chunk-FJFNGSPL.js";
4
+ } from "../../chunk-NGGISORT.js";
5
5
  import "../../chunk-RTMS5TJN.js";
6
6
  export {
7
7
  EmptyState