@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
@@ -0,0 +1,214 @@
1
+ 'use client'
2
+ "use strict";
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __export = (target, all) => {
10
+ for (var name in all)
11
+ __defProp(target, name, { get: all[name], enumerable: true });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from))
16
+ if (!__hasOwnProp.call(to, key) && key !== except)
17
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
+ }
19
+ return to;
20
+ };
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+
31
+ // src/components/popover/index.ts
32
+ var popover_exports2 = {};
33
+ __export(popover_exports2, {
34
+ Popover: () => popover_exports
35
+ });
36
+ module.exports = __toCommonJS(popover_exports2);
37
+
38
+ // src/components/popover/popover.tsx
39
+ var popover_exports = {};
40
+ __export(popover_exports, {
41
+ Arrow: () => Arrow,
42
+ Body: () => Body,
43
+ CloseButton: () => CloseButton3,
44
+ CloseTrigger: () => CloseTrigger,
45
+ Content: () => Content,
46
+ Description: () => Description,
47
+ Footer: () => Footer,
48
+ Header: () => Header,
49
+ Root: () => Root,
50
+ Title: () => Title,
51
+ Trigger: () => Trigger
52
+ });
53
+ var React = __toESM(require("react"), 1);
54
+ var import_react4 = require("@chakra-ui/react");
55
+
56
+ // src/components/close-button/close-button.tsx
57
+ var import_react2 = require("react");
58
+ var import_react3 = require("@chakra-ui/react");
59
+
60
+ // src/components/icons/create-icon.tsx
61
+ var import_react = require("@chakra-ui/react");
62
+ var createIcon = (props) => {
63
+ return (0, import_react.createIcon)({
64
+ viewBox: "0 0 24 24",
65
+ defaultProps: {
66
+ fill: "none",
67
+ stroke: "currentColor",
68
+ strokeWidth: "2",
69
+ strokeLinecap: "round",
70
+ strokeLinejoin: "round"
71
+ },
72
+ ...props
73
+ });
74
+ };
75
+
76
+ // src/components/icons/icons.tsx
77
+ var import_jsx_runtime = require("react/jsx-runtime");
78
+ var ChevronUpIcon = createIcon({
79
+ displayName: "ChevronUpIcon",
80
+ path: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("polyline", { points: "18 15 12 9 6 15" })
81
+ });
82
+ var ChevronDownIcon = createIcon({
83
+ displayName: "ChevronDownIcon",
84
+ path: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("polyline", { points: "6 9 12 15 18 9" })
85
+ });
86
+ var ChevronLeftIcon = createIcon({
87
+ displayName: "ChevronLeftIcon",
88
+ path: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("polyline", { points: "15 18 9 12 15 6" })
89
+ });
90
+ var ChevronRightIcon = createIcon({
91
+ displayName: "ChevronRightIcon",
92
+ path: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("polyline", { points: "9 18 15 12 9 6" })
93
+ });
94
+ var HamburgerIcon = createIcon({
95
+ displayName: "ChevronDownIcon",
96
+ path: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { fill: "none", children: [
97
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("line", { x1: "3", y1: "12", x2: "21", y2: "12" }),
98
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("line", { x1: "3", y1: "6", x2: "21", y2: "6" }),
99
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("line", { x1: "3", y1: "18", x2: "21", y2: "18" })
100
+ ] })
101
+ });
102
+ var CloseIcon = createIcon({
103
+ displayName: "CloseIcon",
104
+ path: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { children: [
105
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
106
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
107
+ ] })
108
+ });
109
+ var FilterIcon = createIcon({
110
+ displayName: "FilterIcon",
111
+ path: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" })
112
+ });
113
+ var CalendarIcon = createIcon({
114
+ displayName: "CalendarIcon",
115
+ path: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { children: [
116
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "3", y: "4", width: "18", height: "18", rx: "2", ry: "2" }),
117
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("line", { x1: "16", y1: "2", x2: "16", y2: "6" }),
118
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("line", { x1: "8", y1: "2", x2: "8", y2: "6" }),
119
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("line", { x1: "3", y1: "10", x2: "21", y2: "10" })
120
+ ] })
121
+ });
122
+ var PlusIcon = createIcon({
123
+ displayName: "PlusIcon",
124
+ path: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { children: [
125
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("line", { x1: "12", y1: "5", x2: "12", y2: "19" }),
126
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("line", { x1: "5", y1: "12", x2: "19", y2: "12" })
127
+ ] })
128
+ });
129
+ var MinusIcon = createIcon({
130
+ displayName: "MinusIcon",
131
+ path: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("g", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("line", { x1: "5", y1: "12", x2: "19", y2: "12" }) })
132
+ });
133
+ var ViewOffIcon = createIcon({
134
+ displayName: "ViewOffIcon",
135
+ path: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { children: [
136
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24" }),
137
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("line", { x1: "1", y1: "1", x2: "23", y2: "23" })
138
+ ] })
139
+ });
140
+ var ViewIcon = createIcon({
141
+ displayName: "ViewOffIcon",
142
+ path: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { children: [
143
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }),
144
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "12", r: "3" })
145
+ ] })
146
+ });
147
+ var SearchIcon = createIcon({
148
+ displayName: "SearchIcon",
149
+ path: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { children: [
150
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "11", cy: "11", r: "8" }),
151
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })
152
+ ] })
153
+ });
154
+ var CheckIcon = createIcon({
155
+ displayName: "CheckIcon",
156
+ path: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("g", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("polyline", { points: "20 6 9 17 4 12" }) })
157
+ });
158
+ var EllipsisIcon = createIcon({
159
+ displayName: "EllipsisIcon",
160
+ path: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { children: [
161
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "12", r: "1" }),
162
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "19", cy: "12", r: "1" }),
163
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "5", cy: "12", r: "1" })
164
+ ] })
165
+ });
166
+
167
+ // src/components/close-button/close-button.tsx
168
+ var import_jsx_runtime2 = require("react/jsx-runtime");
169
+ var CloseButton = (0, import_react2.forwardRef)(
170
+ function CloseButton2(props, ref) {
171
+ var _a;
172
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react3.IconButton, { variant: "ghost", "aria-label": "Close", ref, ...props, children: (_a = props.children) != null ? _a : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(CloseIcon, {}) });
173
+ }
174
+ );
175
+
176
+ // src/components/popover/popover.tsx
177
+ var import_jsx_runtime3 = require("react/jsx-runtime");
178
+ var Content = React.forwardRef(
179
+ function PopoverContent(props, ref) {
180
+ const { portalled = true, portalRef, ...rest } = props;
181
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react4.Portal, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react4.Popover.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react4.Popover.Content, { ref, ...rest }) }) });
182
+ }
183
+ );
184
+ var Arrow = React.forwardRef(
185
+ function PopoverArrow(props, ref) {
186
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react4.Popover.Arrow, { ...props, ref, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react4.Popover.ArrowTip, {}) });
187
+ }
188
+ );
189
+ var CloseButton3 = React.forwardRef(function PopoverCloseTrigger(props, ref) {
190
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
191
+ import_react4.Popover.CloseTrigger,
192
+ {
193
+ position: "absolute",
194
+ top: "1",
195
+ insetEnd: "1",
196
+ ...props,
197
+ asChild: true,
198
+ ref,
199
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(CloseButton, { size: "sm" })
200
+ }
201
+ );
202
+ });
203
+ var CloseTrigger = import_react4.Popover.CloseTrigger;
204
+ var Title = import_react4.Popover.Title;
205
+ var Description = import_react4.Popover.Description;
206
+ var Footer = import_react4.Popover.Footer;
207
+ var Header = import_react4.Popover.Header;
208
+ var Root = import_react4.Popover.Root;
209
+ var Body = import_react4.Popover.Body;
210
+ var Trigger = import_react4.Popover.Trigger;
211
+ // Annotate the CommonJS export names for ESM import in node:
212
+ 0 && (module.exports = {
213
+ Popover
214
+ });
@@ -0,0 +1,37 @@
1
+ import * as react from 'react';
2
+ import { Popover } from '@chakra-ui/react';
3
+
4
+ interface ContentProps extends Popover.ContentProps {
5
+ portalled?: boolean;
6
+ portalRef?: react.RefObject<HTMLElement>;
7
+ }
8
+ declare const Content: react.ForwardRefExoticComponent<ContentProps & react.RefAttributes<HTMLDivElement>>;
9
+ declare const Arrow: react.ForwardRefExoticComponent<Popover.ArrowProps & react.RefAttributes<HTMLDivElement>>;
10
+ declare const CloseButton: react.ForwardRefExoticComponent<Popover.CloseTriggerProps & react.RefAttributes<HTMLButtonElement>>;
11
+ declare const CloseTrigger: react.ForwardRefExoticComponent<Popover.CloseTriggerProps & react.RefAttributes<HTMLButtonElement>>;
12
+ declare const Title: react.ForwardRefExoticComponent<Popover.TitleProps & react.RefAttributes<HTMLDivElement>>;
13
+ declare const Description: react.ForwardRefExoticComponent<Popover.DescriptionProps & react.RefAttributes<HTMLDivElement>>;
14
+ declare const Footer: react.ForwardRefExoticComponent<Popover.FooterProps & react.RefAttributes<HTMLDivElement>>;
15
+ declare const Header: react.ForwardRefExoticComponent<Popover.HeaderProps & react.RefAttributes<HTMLDivElement>>;
16
+ declare const Root: react.FC<Popover.RootProps>;
17
+ declare const Body: react.ForwardRefExoticComponent<Popover.BodyProps & react.RefAttributes<HTMLDivElement>>;
18
+ declare const Trigger: react.ForwardRefExoticComponent<Popover.TriggerProps & react.RefAttributes<HTMLButtonElement>>;
19
+ type RootProps = Popover.RootProps;
20
+
21
+ declare const popover_Arrow: typeof Arrow;
22
+ declare const popover_Body: typeof Body;
23
+ declare const popover_CloseButton: typeof CloseButton;
24
+ declare const popover_CloseTrigger: typeof CloseTrigger;
25
+ declare const popover_Content: typeof Content;
26
+ declare const popover_Description: typeof Description;
27
+ declare const popover_Footer: typeof Footer;
28
+ declare const popover_Header: typeof Header;
29
+ declare const popover_Root: typeof Root;
30
+ type popover_RootProps = RootProps;
31
+ declare const popover_Title: typeof Title;
32
+ declare const popover_Trigger: typeof Trigger;
33
+ declare namespace popover {
34
+ export { popover_Arrow as Arrow, popover_Body as Body, popover_CloseButton as CloseButton, popover_CloseTrigger as CloseTrigger, popover_Content as Content, popover_Description as Description, popover_Footer as Footer, popover_Header as Header, popover_Root as Root, type popover_RootProps as RootProps, popover_Title as Title, popover_Trigger as Trigger };
35
+ }
36
+
37
+ export { popover as Popover };
@@ -0,0 +1,37 @@
1
+ import * as react from 'react';
2
+ import { Popover } from '@chakra-ui/react';
3
+
4
+ interface ContentProps extends Popover.ContentProps {
5
+ portalled?: boolean;
6
+ portalRef?: react.RefObject<HTMLElement>;
7
+ }
8
+ declare const Content: react.ForwardRefExoticComponent<ContentProps & react.RefAttributes<HTMLDivElement>>;
9
+ declare const Arrow: react.ForwardRefExoticComponent<Popover.ArrowProps & react.RefAttributes<HTMLDivElement>>;
10
+ declare const CloseButton: react.ForwardRefExoticComponent<Popover.CloseTriggerProps & react.RefAttributes<HTMLButtonElement>>;
11
+ declare const CloseTrigger: react.ForwardRefExoticComponent<Popover.CloseTriggerProps & react.RefAttributes<HTMLButtonElement>>;
12
+ declare const Title: react.ForwardRefExoticComponent<Popover.TitleProps & react.RefAttributes<HTMLDivElement>>;
13
+ declare const Description: react.ForwardRefExoticComponent<Popover.DescriptionProps & react.RefAttributes<HTMLDivElement>>;
14
+ declare const Footer: react.ForwardRefExoticComponent<Popover.FooterProps & react.RefAttributes<HTMLDivElement>>;
15
+ declare const Header: react.ForwardRefExoticComponent<Popover.HeaderProps & react.RefAttributes<HTMLDivElement>>;
16
+ declare const Root: react.FC<Popover.RootProps>;
17
+ declare const Body: react.ForwardRefExoticComponent<Popover.BodyProps & react.RefAttributes<HTMLDivElement>>;
18
+ declare const Trigger: react.ForwardRefExoticComponent<Popover.TriggerProps & react.RefAttributes<HTMLButtonElement>>;
19
+ type RootProps = Popover.RootProps;
20
+
21
+ declare const popover_Arrow: typeof Arrow;
22
+ declare const popover_Body: typeof Body;
23
+ declare const popover_CloseButton: typeof CloseButton;
24
+ declare const popover_CloseTrigger: typeof CloseTrigger;
25
+ declare const popover_Content: typeof Content;
26
+ declare const popover_Description: typeof Description;
27
+ declare const popover_Footer: typeof Footer;
28
+ declare const popover_Header: typeof Header;
29
+ declare const popover_Root: typeof Root;
30
+ type popover_RootProps = RootProps;
31
+ declare const popover_Title: typeof Title;
32
+ declare const popover_Trigger: typeof Trigger;
33
+ declare namespace popover {
34
+ export { popover_Arrow as Arrow, popover_Body as Body, popover_CloseButton as CloseButton, popover_CloseTrigger as CloseTrigger, popover_Content as Content, popover_Description as Description, popover_Footer as Footer, popover_Header as Header, popover_Root as Root, type popover_RootProps as RootProps, popover_Title as Title, popover_Trigger as Trigger };
35
+ }
36
+
37
+ export { popover as Popover };
@@ -0,0 +1,11 @@
1
+ 'use client'
2
+ import {
3
+ popover_exports
4
+ } from "../../chunk-KE5AC3TZ.js";
5
+ import "../../chunk-JMYI6YXR.js";
6
+ import "../../chunk-YXGJOOMM.js";
7
+ import "../../chunk-4TPVIHNO.js";
8
+ import "../../chunk-RTMS5TJN.js";
9
+ export {
10
+ popover_exports as Popover
11
+ };
@@ -1,8 +1,9 @@
1
1
  'use client'
2
2
  import {
3
3
  namespace_exports
4
- } from "../../chunk-BU7QENBQ.js";
5
- import "../../chunk-BKYGKH3L.js";
4
+ } from "../../chunk-3JZ42NYM.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 {