@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.
- 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
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@saas-ui/react",
|
3
|
-
"version": "3.0.0-alpha.
|
3
|
+
"version": "3.0.0-alpha.25",
|
4
4
|
"description": "Saas UI - The React component library for startups.",
|
5
5
|
"type": "module",
|
6
6
|
"exports": {
|
@@ -69,7 +69,7 @@
|
|
69
69
|
"url": "https://storybook.saas-ui.dev"
|
70
70
|
},
|
71
71
|
"dependencies": {
|
72
|
-
"@ark-ui/react": "^4.
|
72
|
+
"@ark-ui/react": "^4.8.1",
|
73
73
|
"@saas-ui/core": "3.0.0-alpha.7",
|
74
74
|
"@saas-ui/hooks": "3.0.0-alpha.4"
|
75
75
|
},
|
package/dist/chunk-EQ7Q6HRE.js
DELETED
@@ -1,63 +0,0 @@
|
|
1
|
-
'use client'
|
2
|
-
import {
|
3
|
-
CloseButton
|
4
|
-
} from "./chunk-BKYGKH3L.js";
|
5
|
-
import {
|
6
|
-
__export
|
7
|
-
} from "./chunk-RTMS5TJN.js";
|
8
|
-
|
9
|
-
// src/components/dialog/namespace.ts
|
10
|
-
var namespace_exports = {};
|
11
|
-
__export(namespace_exports, {
|
12
|
-
ActionTrigger: () => DialogActionTrigger,
|
13
|
-
Backdrop: () => DialogBackdrop,
|
14
|
-
Body: () => DialogBody,
|
15
|
-
CloseButton: () => DialogCloseButton,
|
16
|
-
CloseTrigger: () => DialogCloseTrigger2,
|
17
|
-
Content: () => DialogContent,
|
18
|
-
Context: () => DialogContext,
|
19
|
-
Description: () => DialogDescription,
|
20
|
-
Footer: () => DialogFooter,
|
21
|
-
Header: () => DialogHeader,
|
22
|
-
Root: () => DialogRoot,
|
23
|
-
Title: () => DialogTitle,
|
24
|
-
Trigger: () => DialogTrigger
|
25
|
-
});
|
26
|
-
|
27
|
-
// src/components/dialog/dialog.tsx
|
28
|
-
import { forwardRef } from "react";
|
29
|
-
import { Dialog as ChakraDialog, Portal } from "@chakra-ui/react";
|
30
|
-
import { DialogContext } from "@ark-ui/react/dialog";
|
31
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
32
|
-
var DialogContent = forwardRef(
|
33
|
-
function DialogContent2(props, ref) {
|
34
|
-
const {
|
35
|
-
children,
|
36
|
-
portalled = true,
|
37
|
-
portalRef,
|
38
|
-
backdrop = true,
|
39
|
-
...rest
|
40
|
-
} = props;
|
41
|
-
return /* @__PURE__ */ jsxs(Portal, { disabled: !portalled, container: portalRef, children: [
|
42
|
-
backdrop && /* @__PURE__ */ jsx(ChakraDialog.Backdrop, {}),
|
43
|
-
/* @__PURE__ */ jsx(ChakraDialog.Positioner, { children: /* @__PURE__ */ jsx(ChakraDialog.Content, { ref, ...rest, asChild: false, children }) })
|
44
|
-
] });
|
45
|
-
}
|
46
|
-
);
|
47
|
-
var DialogCloseButton = forwardRef(function DialogCloseTrigger(props, ref) {
|
48
|
-
return /* @__PURE__ */ jsx(ChakraDialog.CloseTrigger, { position: "absolute", ...props, asChild: true, children: /* @__PURE__ */ jsx(CloseButton, { size: "sm", ref, children: props.children }) });
|
49
|
-
});
|
50
|
-
var DialogCloseTrigger2 = ChakraDialog.CloseTrigger;
|
51
|
-
var DialogRoot = ChakraDialog.Root;
|
52
|
-
var DialogFooter = ChakraDialog.Footer;
|
53
|
-
var DialogHeader = ChakraDialog.Header;
|
54
|
-
var DialogBody = ChakraDialog.Body;
|
55
|
-
var DialogBackdrop = ChakraDialog.Backdrop;
|
56
|
-
var DialogTitle = ChakraDialog.Title;
|
57
|
-
var DialogDescription = ChakraDialog.Description;
|
58
|
-
var DialogTrigger = ChakraDialog.Trigger;
|
59
|
-
var DialogActionTrigger = ChakraDialog.ActionTrigger;
|
60
|
-
|
61
|
-
export {
|
62
|
-
namespace_exports
|
63
|
-
};
|
package/dist/chunk-HELHPHIQ.js
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
'use client'
|
2
|
-
|
3
|
-
// src/components/toaster/toaster.tsx
|
4
|
-
import {
|
5
|
-
Toaster as ChakraToaster,
|
6
|
-
Portal,
|
7
|
-
Spinner,
|
8
|
-
Stack,
|
9
|
-
Toast,
|
10
|
-
createToaster
|
11
|
-
} from "@chakra-ui/react";
|
12
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
13
|
-
var toast = createToaster({
|
14
|
-
placement: "bottom-end",
|
15
|
-
pauseOnPageIdle: true
|
16
|
-
});
|
17
|
-
var Toaster = () => {
|
18
|
-
return /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx(ChakraToaster, { toaster: toast, insetInline: { mdDown: "4" }, children: (toast2) => {
|
19
|
-
var _a;
|
20
|
-
return /* @__PURE__ */ jsxs(Toast.Root, { width: { md: "sm" }, children: [
|
21
|
-
toast2.type === "loading" ? /* @__PURE__ */ jsx(Spinner, { size: "sm", color: "colorPalette.solid" }) : /* @__PURE__ */ jsx(Toast.Indicator, {}),
|
22
|
-
/* @__PURE__ */ jsxs(Stack, { gap: "1", flex: "1", maxWidth: "100%", children: [
|
23
|
-
toast2.title && /* @__PURE__ */ jsx(Toast.Title, { children: toast2.title }),
|
24
|
-
toast2.description && /* @__PURE__ */ jsx(Toast.Description, { children: toast2.description })
|
25
|
-
] }),
|
26
|
-
toast2.action && /* @__PURE__ */ jsx(Toast.ActionTrigger, { children: toast2.action.label }),
|
27
|
-
((_a = toast2.meta) == null ? void 0 : _a.closable) && /* @__PURE__ */ jsx(Toast.CloseTrigger, {})
|
28
|
-
] });
|
29
|
-
} }) });
|
30
|
-
};
|
31
|
-
|
32
|
-
export {
|
33
|
-
toast,
|
34
|
-
Toaster
|
35
|
-
};
|
package/dist/chunk-VJ4NCA6R.js
DELETED
@@ -1,56 +0,0 @@
|
|
1
|
-
'use client'
|
2
|
-
import {
|
3
|
-
CloseButton
|
4
|
-
} from "./chunk-BKYGKH3L.js";
|
5
|
-
import {
|
6
|
-
__export
|
7
|
-
} from "./chunk-RTMS5TJN.js";
|
8
|
-
|
9
|
-
// src/components/drawer/namespace.ts
|
10
|
-
var namespace_exports = {};
|
11
|
-
__export(namespace_exports, {
|
12
|
-
ActionTrigger: () => DrawerActionTrigger,
|
13
|
-
Backdrop: () => DrawerBackdrop,
|
14
|
-
Body: () => DrawerBody,
|
15
|
-
CloseButton: () => DrawerCloseButton,
|
16
|
-
CloseTrigger: () => DrawerCloseTrigger2,
|
17
|
-
Content: () => DrawerContent,
|
18
|
-
Context: () => DrawerContext,
|
19
|
-
Description: () => DrawerDescription,
|
20
|
-
Footer: () => DrawerFooter,
|
21
|
-
Header: () => DrawerHeader,
|
22
|
-
Root: () => DrawerRoot,
|
23
|
-
Title: () => DrawerTitle,
|
24
|
-
Trigger: () => DrawerTrigger
|
25
|
-
});
|
26
|
-
|
27
|
-
// src/components/drawer/drawer.tsx
|
28
|
-
import { forwardRef } from "react";
|
29
|
-
import { DialogContext } from "@ark-ui/react/dialog";
|
30
|
-
import { Drawer as ChakraDrawer, Portal } from "@chakra-ui/react";
|
31
|
-
import { jsx } from "react/jsx-runtime";
|
32
|
-
var DrawerContent = forwardRef(
|
33
|
-
function DrawerContent2(props, ref) {
|
34
|
-
const { children, portalled = true, portalRef, offset, ...rest } = props;
|
35
|
-
return /* @__PURE__ */ jsx(Portal, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ jsx(ChakraDrawer.Positioner, { padding: offset, children: /* @__PURE__ */ jsx(ChakraDrawer.Content, { ref, ...rest, asChild: false, children }) }) });
|
36
|
-
}
|
37
|
-
);
|
38
|
-
var DrawerCloseButton = forwardRef(function DrawerCloseTrigger(props, ref) {
|
39
|
-
const { children, ...rest } = props;
|
40
|
-
return /* @__PURE__ */ jsx(ChakraDrawer.CloseTrigger, { position: "absolute", ...rest, asChild: true, children: /* @__PURE__ */ jsx(CloseButton, { size: "sm", ref, children }) });
|
41
|
-
});
|
42
|
-
var DrawerCloseTrigger2 = ChakraDrawer.CloseTrigger;
|
43
|
-
var DrawerTrigger = ChakraDrawer.Trigger;
|
44
|
-
var DrawerRoot = ChakraDrawer.Root;
|
45
|
-
var DrawerFooter = ChakraDrawer.Footer;
|
46
|
-
var DrawerHeader = ChakraDrawer.Header;
|
47
|
-
var DrawerBody = ChakraDrawer.Body;
|
48
|
-
var DrawerBackdrop = ChakraDrawer.Backdrop;
|
49
|
-
var DrawerDescription = ChakraDrawer.Description;
|
50
|
-
var DrawerTitle = ChakraDrawer.Title;
|
51
|
-
var DrawerActionTrigger = ChakraDrawer.ActionTrigger;
|
52
|
-
var DrawerContext = DialogContext;
|
53
|
-
|
54
|
-
export {
|
55
|
-
namespace_exports
|
56
|
-
};
|
File without changes
|