@saas-ui/react 3.0.0-alpha.24 → 3.0.0-alpha.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/chunk-6MMPBMKN.js +54 -0
  3. package/dist/chunk-CZVNG73V.js +63 -0
  4. package/dist/chunk-GRUMUCSL.js +109 -0
  5. package/dist/{chunk-CD2JUFI2.js → chunk-K2SPPLAY.js} +2 -2
  6. package/dist/chunk-KE5AC3TZ.js +63 -0
  7. package/dist/{chunk-FJFNGSPL.js → chunk-NGGISORT.js} +12 -6
  8. package/dist/components/dialog/index.cjs +35 -35
  9. package/dist/components/dialog/index.d.cts +35 -17
  10. package/dist/components/dialog/index.d.ts +35 -17
  11. package/dist/components/dialog/index.js +3 -3
  12. package/dist/components/drawer/index.cjs +34 -36
  13. package/dist/components/drawer/index.d.cts +33 -18
  14. package/dist/components/drawer/index.d.ts +33 -18
  15. package/dist/components/drawer/index.js +3 -3
  16. package/dist/components/empty-state/index.cjs +12 -10
  17. package/dist/components/empty-state/index.js +1 -1
  18. package/dist/components/file-upload/index.cjs +254 -0
  19. package/dist/components/file-upload/index.d.cts +43 -0
  20. package/dist/components/file-upload/index.d.ts +43 -0
  21. package/dist/components/file-upload/index.js +10 -0
  22. package/dist/components/grid-list/index.d.cts +1 -1
  23. package/dist/components/grid-list/index.d.ts +1 -1
  24. package/dist/components/password-input/index.cjs +2 -2
  25. package/dist/components/password-input/index.js +1 -1
  26. package/dist/components/persona/index.d.cts +1 -1
  27. package/dist/components/persona/index.d.ts +1 -1
  28. package/dist/components/popover/index.cjs +214 -0
  29. package/dist/components/popover/index.d.cts +37 -0
  30. package/dist/components/popover/index.d.ts +37 -0
  31. package/dist/components/popover/index.js +11 -0
  32. package/dist/index.cjs +1570 -1325
  33. package/dist/index.d.cts +3 -1
  34. package/dist/index.d.ts +3 -1
  35. package/dist/index.js +944 -839
  36. package/package.json +2 -2
  37. package/dist/chunk-3Y67QIZ7.js +0 -56
  38. 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.24",
3
+ "version": "3.0.0-alpha.26",
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.4.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
  },
@@ -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
- };
@@ -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
- };