@saas-ui/react 3.0.0-alpha.24 → 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 +13 -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-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/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 +3 -3
- 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 +3 -3
- 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/password-input/index.cjs +2 -2
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/persona/index.d.cts +1 -1
- package/dist/components/persona/index.d.ts +1 -1
- 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/index.cjs +1559 -1340
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +919 -840
- package/package.json +2 -2
- package/dist/chunk-3Y67QIZ7.js +0 -56
- package/dist/chunk-OIOBGO3Y.js +0 -63
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-3Y67QIZ7.js
DELETED
@@ -1,56 +0,0 @@
|
|
1
|
-
'use client'
|
2
|
-
import {
|
3
|
-
CloseButton
|
4
|
-
} from "./chunk-YXGJOOMM.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
|
-
};
|
package/dist/chunk-OIOBGO3Y.js
DELETED
@@ -1,63 +0,0 @@
|
|
1
|
-
'use client'
|
2
|
-
import {
|
3
|
-
CloseButton
|
4
|
-
} from "./chunk-YXGJOOMM.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
|
-
};
|