impact-nova 1.1.1 → 1.1.2
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/dist/components/ui/accordion.js +37 -33
- package/dist/components/ui/alert.d.ts +2 -0
- package/dist/components/ui/alert.js +46 -31
- package/dist/components/ui/breadcrumb.d.ts +7 -2
- package/dist/components/ui/breadcrumb.js +98 -77
- package/dist/components/ui/calendar.js +198 -178
- package/dist/components/ui/date-picker/date-picker.js +94 -87
- package/dist/components/ui/date-picker/date-range-picker.js +124 -117
- package/dist/components/ui/date-picker/month-picker.js +98 -91
- package/dist/components/ui/date-picker/month-range-picker.js +118 -111
- package/dist/components/ui/date-picker/multi-date-picker.js +76 -69
- package/dist/components/ui/date-picker/multi-month-picker.js +72 -65
- package/dist/components/ui/date-picker/multi-week-picker.js +88 -81
- package/dist/components/ui/date-picker/week-picker.js +107 -100
- package/dist/components/ui/date-picker/week-range-picker.js +144 -137
- package/dist/components/ui/dialog.js +65 -61
- package/dist/components/ui/drawer.d.ts +3 -1
- package/dist/components/ui/drawer.js +44 -29
- package/dist/components/ui/file-upload.d.ts +2 -1
- package/dist/components/ui/file-upload.js +159 -135
- package/dist/components/ui/filter-panel/filter-panel.js +89 -70
- package/dist/components/ui/filter-strip/filter-summary.js +117 -104
- package/dist/components/ui/filter-strip/filter-tag-list.js +81 -65
- package/dist/components/ui/popover.js +52 -48
- package/dist/components/ui/prompt.d.ts +2 -1
- package/dist/components/ui/prompt.js +81 -64
- package/dist/components/ui/sheet.js +91 -84
- package/dist/components/ui/sidebar.js +9 -8
- package/dist/components/ui/tabs.d.ts +2 -0
- package/dist/components/ui/tabs.js +58 -55
- package/dist/components/ui/tag.js +21 -20
- package/dist/components/ui/toast.js +41 -37
- package/dist/components/ui/tooltip.js +1 -1
- package/dist/impact-nova.css +1 -1
- package/dist/index.js +250 -248
- package/package.json +1 -1
|
@@ -1,125 +1,129 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
1
|
+
import { jsxs as l, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import * as d from "react";
|
|
3
|
+
import * as a from "@radix-ui/react-dialog";
|
|
4
4
|
import { X as m } from "lucide-react";
|
|
5
|
-
import { cn as
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
import { cn as i } from "../../lib/utils.js";
|
|
6
|
+
import { Tooltip as p, TooltipTrigger as f, TooltipContent as g } from "./tooltip.js";
|
|
7
|
+
const R = a.Root, k = a.Trigger, x = a.Portal, z = a.Close, n = d.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ o(
|
|
8
|
+
a.Overlay,
|
|
8
9
|
{
|
|
9
10
|
ref: s,
|
|
10
|
-
className:
|
|
11
|
+
className: i(
|
|
11
12
|
"fixed inset-0 z-50 bg-black/40 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
12
13
|
e
|
|
13
14
|
),
|
|
14
|
-
...
|
|
15
|
+
...t
|
|
15
16
|
}
|
|
16
17
|
));
|
|
17
|
-
n.displayName =
|
|
18
|
-
const
|
|
18
|
+
n.displayName = a.Overlay.displayName;
|
|
19
|
+
const y = d.forwardRef(({ className: e, children: t, hideClose: s, ...r }, c) => /* @__PURE__ */ l(x, { children: [
|
|
19
20
|
/* @__PURE__ */ o(n, {}),
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
|
|
21
|
+
/* @__PURE__ */ l(
|
|
22
|
+
a.Content,
|
|
22
23
|
{
|
|
23
24
|
ref: c,
|
|
24
25
|
"aria-describedby": void 0,
|
|
25
26
|
"data-component": "dialog-content",
|
|
26
|
-
className:
|
|
27
|
+
className: i(
|
|
27
28
|
"fixed left-[50%] top-[50%] z-50 flex flex-col w-full max-w-lg translate-x-[-50%] translate-y-[-50%] border bg-background shadow-xl duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-lg overflow-hidden",
|
|
28
29
|
e
|
|
29
30
|
),
|
|
30
31
|
...r,
|
|
31
32
|
children: [
|
|
32
|
-
|
|
33
|
-
!s && /* @__PURE__ */
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
33
|
+
t,
|
|
34
|
+
!s && /* @__PURE__ */ l(p, { children: [
|
|
35
|
+
/* @__PURE__ */ o(f, { asChild: !0, children: /* @__PURE__ */ l(
|
|
36
|
+
a.Close,
|
|
37
|
+
{
|
|
38
|
+
"data-component": "dialog-close",
|
|
39
|
+
className: "absolute right-4 top-4 rounded-sm opacity-50 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",
|
|
40
|
+
children: [
|
|
41
|
+
/* @__PURE__ */ o(m, { className: "h-4 w-4" }),
|
|
42
|
+
/* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
) }),
|
|
46
|
+
/* @__PURE__ */ o(g, { variant: "tertiary", side: "top", children: "Close" })
|
|
47
|
+
] })
|
|
44
48
|
]
|
|
45
49
|
}
|
|
46
50
|
)
|
|
47
51
|
] }));
|
|
48
|
-
|
|
49
|
-
const
|
|
52
|
+
y.displayName = a.Content.displayName;
|
|
53
|
+
const u = ({
|
|
50
54
|
className: e,
|
|
51
|
-
...
|
|
55
|
+
...t
|
|
52
56
|
}) => /* @__PURE__ */ o(
|
|
53
57
|
"div",
|
|
54
58
|
{
|
|
55
|
-
className:
|
|
59
|
+
className: i(
|
|
56
60
|
"flex flex-col text-center sm:text-left bg-light-blue p-4 border-b",
|
|
57
61
|
e
|
|
58
62
|
),
|
|
59
|
-
...
|
|
63
|
+
...t
|
|
60
64
|
}
|
|
61
65
|
);
|
|
62
|
-
|
|
63
|
-
const
|
|
66
|
+
u.displayName = "DialogHeader";
|
|
67
|
+
const N = ({
|
|
64
68
|
className: e,
|
|
65
|
-
...
|
|
69
|
+
...t
|
|
66
70
|
}) => /* @__PURE__ */ o(
|
|
67
71
|
"div",
|
|
68
72
|
{
|
|
69
|
-
className:
|
|
73
|
+
className: i(
|
|
70
74
|
"px-6 py-6 flex-1 overflow-y-auto min-h-0",
|
|
71
75
|
e
|
|
72
76
|
),
|
|
73
|
-
...
|
|
77
|
+
...t
|
|
74
78
|
}
|
|
75
79
|
);
|
|
76
|
-
|
|
77
|
-
const
|
|
80
|
+
N.displayName = "DialogBody";
|
|
81
|
+
const b = ({
|
|
78
82
|
className: e,
|
|
79
|
-
...
|
|
83
|
+
...t
|
|
80
84
|
}) => /* @__PURE__ */ o(
|
|
81
85
|
"div",
|
|
82
86
|
{
|
|
83
|
-
className:
|
|
87
|
+
className: i(
|
|
84
88
|
"flex flex-col-reverse sm:flex-row sm:justify-end sm:items-center sm:space-x-2 px-4 py-3 border-t bg-white",
|
|
85
89
|
e
|
|
86
90
|
),
|
|
87
|
-
...
|
|
91
|
+
...t
|
|
88
92
|
}
|
|
89
93
|
);
|
|
90
|
-
|
|
91
|
-
const
|
|
92
|
-
|
|
94
|
+
b.displayName = "DialogFooter";
|
|
95
|
+
const D = d.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ o(
|
|
96
|
+
a.Title,
|
|
93
97
|
{
|
|
94
98
|
ref: s,
|
|
95
99
|
"data-component": "dialog-title",
|
|
96
|
-
className:
|
|
100
|
+
className: i(
|
|
97
101
|
"text-md font-bold leading-none tracking-tight text-slate-900",
|
|
98
102
|
e
|
|
99
103
|
),
|
|
100
|
-
...
|
|
104
|
+
...t
|
|
101
105
|
}
|
|
102
106
|
));
|
|
103
|
-
|
|
104
|
-
const
|
|
105
|
-
|
|
107
|
+
D.displayName = a.Title.displayName;
|
|
108
|
+
const h = d.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ o(
|
|
109
|
+
a.Description,
|
|
106
110
|
{
|
|
107
111
|
ref: s,
|
|
108
|
-
className:
|
|
109
|
-
...
|
|
112
|
+
className: i("text-sm text-slate-600 leading-relaxed", e),
|
|
113
|
+
...t
|
|
110
114
|
}
|
|
111
115
|
));
|
|
112
|
-
|
|
116
|
+
h.displayName = a.Description.displayName;
|
|
113
117
|
export {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
118
|
+
R as Dialog,
|
|
119
|
+
N as DialogBody,
|
|
120
|
+
z as DialogClose,
|
|
121
|
+
y as DialogContent,
|
|
122
|
+
h as DialogDescription,
|
|
123
|
+
b as DialogFooter,
|
|
124
|
+
u as DialogHeader,
|
|
121
125
|
n as DialogOverlay,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
126
|
+
x as DialogPortal,
|
|
127
|
+
D as DialogTitle,
|
|
128
|
+
k as DialogTrigger
|
|
125
129
|
};
|
|
@@ -8,7 +8,9 @@ declare const DrawerTrigger: React.ForwardRefExoticComponent<import('@radix-ui/r
|
|
|
8
8
|
declare const DrawerPortal: typeof import('vaul').Portal;
|
|
9
9
|
declare const DrawerClose: React.ForwardRefExoticComponent<import('@radix-ui/react-dialog').DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
10
10
|
declare const DrawerOverlay: React.ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-dialog').DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
-
declare const DrawerContent: React.ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-dialog').DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> &
|
|
11
|
+
declare const DrawerContent: React.ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-dialog').DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
12
|
+
hideClose?: boolean;
|
|
13
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
12
14
|
declare const DrawerHeader: {
|
|
13
15
|
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
14
16
|
displayName: string;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
2
|
+
import * as i from "react";
|
|
3
3
|
import { Drawer as a } from "vaul";
|
|
4
|
+
import { X as m } from "lucide-react";
|
|
4
5
|
import { cn as s } from "../../lib/utils.js";
|
|
5
|
-
|
|
6
|
+
import { Tooltip as p, TooltipTrigger as f, TooltipContent as g } from "./tooltip.js";
|
|
7
|
+
const w = ({
|
|
6
8
|
shouldScaleBackground: e = !0,
|
|
7
9
|
...r
|
|
8
10
|
}) => /* @__PURE__ */ t(
|
|
@@ -12,8 +14,8 @@ const m = ({
|
|
|
12
14
|
...r
|
|
13
15
|
}
|
|
14
16
|
);
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
+
w.displayName = "Drawer";
|
|
18
|
+
const k = a.Trigger, u = a.Portal, O = a.Close, l = i.forwardRef(({ className: e, ...r }, o) => /* @__PURE__ */ t(
|
|
17
19
|
a.Overlay,
|
|
18
20
|
{
|
|
19
21
|
ref: o,
|
|
@@ -21,28 +23,41 @@ const u = a.Trigger, c = a.Portal, b = a.Close, d = l.forwardRef(({ className: e
|
|
|
21
23
|
...r
|
|
22
24
|
}
|
|
23
25
|
));
|
|
24
|
-
|
|
25
|
-
const
|
|
26
|
-
/* @__PURE__ */ t(
|
|
26
|
+
l.displayName = a.Overlay.displayName;
|
|
27
|
+
const N = i.forwardRef(({ className: e, children: r, hideClose: o, ...d }, c) => /* @__PURE__ */ n(u, { children: [
|
|
28
|
+
/* @__PURE__ */ t(l, {}),
|
|
27
29
|
/* @__PURE__ */ n(
|
|
28
30
|
a.Content,
|
|
29
31
|
{
|
|
30
|
-
ref:
|
|
32
|
+
ref: c,
|
|
31
33
|
"data-component": "drawer-content",
|
|
32
34
|
className: s(
|
|
33
35
|
"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
|
|
34
36
|
e
|
|
35
37
|
),
|
|
36
|
-
...
|
|
38
|
+
...d,
|
|
37
39
|
children: [
|
|
38
40
|
/* @__PURE__ */ t("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
|
|
39
|
-
r
|
|
41
|
+
r,
|
|
42
|
+
!o && /* @__PURE__ */ n(p, { children: [
|
|
43
|
+
/* @__PURE__ */ t(f, { asChild: !0, children: /* @__PURE__ */ n(
|
|
44
|
+
a.Close,
|
|
45
|
+
{
|
|
46
|
+
className: "absolute right-4 top-4 rounded-sm opacity-50 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",
|
|
47
|
+
children: [
|
|
48
|
+
/* @__PURE__ */ t(m, { className: "h-4 w-4" }),
|
|
49
|
+
/* @__PURE__ */ t("span", { className: "sr-only", children: "Close" })
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
) }),
|
|
53
|
+
/* @__PURE__ */ t(g, { variant: "tertiary", side: "top", children: "Close" })
|
|
54
|
+
] })
|
|
40
55
|
]
|
|
41
56
|
}
|
|
42
57
|
)
|
|
43
58
|
] }));
|
|
44
|
-
|
|
45
|
-
const
|
|
59
|
+
N.displayName = "DrawerContent";
|
|
60
|
+
const x = ({
|
|
46
61
|
className: e,
|
|
47
62
|
...r
|
|
48
63
|
}) => /* @__PURE__ */ t(
|
|
@@ -52,8 +67,8 @@ const w = ({
|
|
|
52
67
|
...r
|
|
53
68
|
}
|
|
54
69
|
);
|
|
55
|
-
|
|
56
|
-
const
|
|
70
|
+
x.displayName = "DrawerHeader";
|
|
71
|
+
const D = ({
|
|
57
72
|
className: e,
|
|
58
73
|
...r
|
|
59
74
|
}) => /* @__PURE__ */ t(
|
|
@@ -63,8 +78,8 @@ const f = ({
|
|
|
63
78
|
...r
|
|
64
79
|
}
|
|
65
80
|
);
|
|
66
|
-
|
|
67
|
-
const
|
|
81
|
+
D.displayName = "DrawerFooter";
|
|
82
|
+
const y = i.forwardRef(({ className: e, ...r }, o) => /* @__PURE__ */ t(
|
|
68
83
|
a.Title,
|
|
69
84
|
{
|
|
70
85
|
ref: o,
|
|
@@ -76,8 +91,8 @@ const D = l.forwardRef(({ className: e, ...r }, o) => /* @__PURE__ */ t(
|
|
|
76
91
|
...r
|
|
77
92
|
}
|
|
78
93
|
));
|
|
79
|
-
|
|
80
|
-
const
|
|
94
|
+
y.displayName = a.Title.displayName;
|
|
95
|
+
const h = i.forwardRef(({ className: e, ...r }, o) => /* @__PURE__ */ t(
|
|
81
96
|
a.Description,
|
|
82
97
|
{
|
|
83
98
|
ref: o,
|
|
@@ -86,16 +101,16 @@ const x = l.forwardRef(({ className: e, ...r }, o) => /* @__PURE__ */ t(
|
|
|
86
101
|
...r
|
|
87
102
|
}
|
|
88
103
|
));
|
|
89
|
-
|
|
104
|
+
h.displayName = a.Description.displayName;
|
|
90
105
|
export {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
106
|
+
w as Drawer,
|
|
107
|
+
O as DrawerClose,
|
|
108
|
+
N as DrawerContent,
|
|
109
|
+
h as DrawerDescription,
|
|
110
|
+
D as DrawerFooter,
|
|
111
|
+
x as DrawerHeader,
|
|
112
|
+
l as DrawerOverlay,
|
|
113
|
+
u as DrawerPortal,
|
|
114
|
+
y as DrawerTitle,
|
|
115
|
+
k as DrawerTrigger
|
|
101
116
|
};
|
|
@@ -5,8 +5,9 @@ declare const FileUploadContent: React.ForwardRefExoticComponent<React.HTMLAttri
|
|
|
5
5
|
declare const FileUploadHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
6
6
|
declare const FileUploadTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
7
7
|
declare const FileUploadDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
8
|
+
declare const FileUploadClose: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
|
8
9
|
declare const FileUploadDropZone: React.ForwardRefExoticComponent<FileUploadDropZoneProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
10
|
declare const FileUploadList: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
10
11
|
declare const FileUploadItem: React.ForwardRefExoticComponent<FileUploadItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
12
|
declare const FileUploadFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
-
export { FileUpload, FileUploadContent, FileUploadHeader, FileUploadTitle, FileUploadDescription, FileUploadDropZone, FileUploadList, FileUploadItem, FileUploadFooter, };
|
|
13
|
+
export { FileUpload, FileUploadContent, FileUploadHeader, FileUploadTitle, FileUploadDescription, FileUploadClose, FileUploadDropZone, FileUploadList, FileUploadItem, FileUploadFooter, };
|