@saas-ui/react 3.0.0-alpha.23 → 3.0.0-alpha.25
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.
- package/CHANGELOG.md +23 -0
- package/dist/{chunk-BU7QENBQ.js → chunk-3JZ42NYM.js} +1 -1
- package/dist/chunk-52XM5VXJ.js +9 -0
- package/dist/chunk-6MMPBMKN.js +54 -0
- package/dist/chunk-CZVNG73V.js +63 -0
- package/dist/chunk-GRUMUCSL.js +109 -0
- package/dist/chunk-IVLUAUU5.js +10 -0
- package/dist/chunk-JMYI6YXR.js +1 -0
- package/dist/{chunk-CD2JUFI2.js → chunk-K2SPPLAY.js} +2 -2
- package/dist/chunk-KE5AC3TZ.js +63 -0
- package/dist/{chunk-FJFNGSPL.js → chunk-NGGISORT.js} +12 -6
- package/dist/chunk-RLIAFHVM.js +66 -0
- package/dist/components/badge/index.d.cts +2 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/close-button/index.js +2 -1
- package/dist/components/data-list/index.cjs +33 -0
- package/dist/components/data-list/index.d.cts +1 -0
- package/dist/components/data-list/index.d.ts +1 -0
- package/dist/components/data-list/index.js +10 -0
- package/dist/components/dialog/index.cjs +35 -35
- package/dist/components/dialog/index.d.cts +35 -17
- package/dist/components/dialog/index.d.ts +35 -17
- package/dist/components/dialog/index.js +5 -4
- package/dist/components/drawer/index.cjs +34 -36
- package/dist/components/drawer/index.d.cts +33 -18
- package/dist/components/drawer/index.d.ts +33 -18
- package/dist/components/drawer/index.js +5 -4
- package/dist/components/empty-state/index.cjs +12 -10
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/file-upload/index.cjs +254 -0
- package/dist/components/file-upload/index.d.cts +43 -0
- package/dist/components/file-upload/index.d.ts +43 -0
- package/dist/components/file-upload/index.js +10 -0
- package/dist/components/grid-list/index.d.cts +1 -1
- package/dist/components/grid-list/index.d.ts +1 -1
- package/dist/components/navbar/index.d.cts +3 -3
- package/dist/components/navbar/index.d.ts +3 -3
- package/dist/components/password-input/index.cjs +2 -2
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/persona/index.d.cts +4 -9
- package/dist/components/persona/index.d.ts +4 -9
- package/dist/components/popover/index.cjs +214 -0
- package/dist/components/popover/index.d.cts +37 -0
- package/dist/components/popover/index.d.ts +37 -0
- package/dist/components/popover/index.js +11 -0
- package/dist/components/select/index.js +3 -2
- package/dist/components/sidebar/index.d.cts +11 -11
- package/dist/components/sidebar/index.d.ts +11 -11
- package/dist/components/tabs/index.cjs +35 -0
- package/dist/components/tabs/index.d.cts +1 -0
- package/dist/components/tabs/index.d.ts +1 -0
- package/dist/components/tabs/index.js +12 -0
- package/dist/components/toaster/index.cjs +161 -11
- package/dist/components/toaster/index.d.cts +6 -5
- package/dist/components/toaster/index.d.ts +6 -5
- package/dist/components/toaster/index.js +3 -1
- package/dist/index.cjs +2253 -1968
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +1531 -1415
- package/package.json +2 -2
- package/dist/chunk-EQ7Q6HRE.js +0 -63
- package/dist/chunk-HELHPHIQ.js +0 -35
- package/dist/chunk-VJ4NCA6R.js +0 -56
- /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
|
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
|
11
|
-
declare const
|
12
|
-
declare const
|
13
|
-
type
|
14
|
-
declare const
|
15
|
-
declare const
|
16
|
-
declare const
|
17
|
-
declare const
|
18
|
-
declare const
|
19
|
-
declare const
|
20
|
-
declare const
|
21
|
-
declare const
|
22
|
-
declare const
|
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
|
25
|
-
|
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 {
|
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
|
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
|
11
|
-
declare const
|
12
|
-
declare const
|
13
|
-
type
|
14
|
-
declare const
|
15
|
-
declare const
|
16
|
-
declare const
|
17
|
-
declare const
|
18
|
-
declare const
|
19
|
-
declare const
|
20
|
-
declare const
|
21
|
-
declare const
|
22
|
-
declare const
|
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
|
25
|
-
|
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 {
|
46
|
+
export { dialog as Dialog };
|
@@ -1,10 +1,11 @@
|
|
1
1
|
'use client'
|
2
2
|
import {
|
3
|
-
|
4
|
-
} from "../../chunk-
|
5
|
-
import "../../chunk-
|
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
|
-
|
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
|
23
|
-
__export(
|
24
|
-
Drawer: () =>
|
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
|
174
|
-
function
|
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
|
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
|
184
|
-
var
|
185
|
-
var
|
186
|
-
var
|
187
|
-
var
|
188
|
-
var
|
189
|
-
var
|
190
|
-
var
|
191
|
-
var
|
192
|
-
var
|
193
|
-
var
|
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
|
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
|
11
|
-
declare const
|
12
|
-
declare const
|
13
|
-
declare const
|
14
|
-
declare const
|
15
|
-
declare const
|
16
|
-
declare const
|
17
|
-
declare const
|
18
|
-
declare const
|
19
|
-
declare const
|
20
|
-
declare const
|
21
|
-
declare const
|
22
|
-
declare const
|
23
|
-
type
|
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
|
26
|
-
|
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 {
|
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
|
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
|
11
|
-
declare const
|
12
|
-
declare const
|
13
|
-
declare const
|
14
|
-
declare const
|
15
|
-
declare const
|
16
|
-
declare const
|
17
|
-
declare const
|
18
|
-
declare const
|
19
|
-
declare const
|
20
|
-
declare const
|
21
|
-
declare const
|
22
|
-
declare const
|
23
|
-
type
|
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
|
26
|
-
|
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 {
|
44
|
+
export { drawer as Drawer };
|
@@ -1,10 +1,11 @@
|
|
1
1
|
'use client'
|
2
2
|
import {
|
3
|
-
|
4
|
-
} from "../../chunk-
|
5
|
-
import "../../chunk-
|
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
|
-
|
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("
|
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
|
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)(
|
36
|
-
icon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
37
|
-
|
38
|
-
|
39
|
-
|
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
|
);
|