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.
Files changed (36) hide show
  1. package/dist/components/ui/accordion.js +37 -33
  2. package/dist/components/ui/alert.d.ts +2 -0
  3. package/dist/components/ui/alert.js +46 -31
  4. package/dist/components/ui/breadcrumb.d.ts +7 -2
  5. package/dist/components/ui/breadcrumb.js +98 -77
  6. package/dist/components/ui/calendar.js +198 -178
  7. package/dist/components/ui/date-picker/date-picker.js +94 -87
  8. package/dist/components/ui/date-picker/date-range-picker.js +124 -117
  9. package/dist/components/ui/date-picker/month-picker.js +98 -91
  10. package/dist/components/ui/date-picker/month-range-picker.js +118 -111
  11. package/dist/components/ui/date-picker/multi-date-picker.js +76 -69
  12. package/dist/components/ui/date-picker/multi-month-picker.js +72 -65
  13. package/dist/components/ui/date-picker/multi-week-picker.js +88 -81
  14. package/dist/components/ui/date-picker/week-picker.js +107 -100
  15. package/dist/components/ui/date-picker/week-range-picker.js +144 -137
  16. package/dist/components/ui/dialog.js +65 -61
  17. package/dist/components/ui/drawer.d.ts +3 -1
  18. package/dist/components/ui/drawer.js +44 -29
  19. package/dist/components/ui/file-upload.d.ts +2 -1
  20. package/dist/components/ui/file-upload.js +159 -135
  21. package/dist/components/ui/filter-panel/filter-panel.js +89 -70
  22. package/dist/components/ui/filter-strip/filter-summary.js +117 -104
  23. package/dist/components/ui/filter-strip/filter-tag-list.js +81 -65
  24. package/dist/components/ui/popover.js +52 -48
  25. package/dist/components/ui/prompt.d.ts +2 -1
  26. package/dist/components/ui/prompt.js +81 -64
  27. package/dist/components/ui/sheet.js +91 -84
  28. package/dist/components/ui/sidebar.js +9 -8
  29. package/dist/components/ui/tabs.d.ts +2 -0
  30. package/dist/components/ui/tabs.js +58 -55
  31. package/dist/components/ui/tag.js +21 -20
  32. package/dist/components/ui/toast.js +41 -37
  33. package/dist/components/ui/tooltip.js +1 -1
  34. package/dist/impact-nova.css +1 -1
  35. package/dist/index.js +250 -248
  36. package/package.json +1 -1
@@ -1,125 +1,129 @@
1
- import { jsxs as d, jsx as o } from "react/jsx-runtime";
2
- import * as i from "react";
3
- import * as t from "@radix-ui/react-dialog";
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 l } from "../../lib/utils.js";
6
- const v = t.Root, w = t.Trigger, f = t.Portal, C = t.Close, n = i.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ o(
7
- t.Overlay,
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: l(
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
- ...a
15
+ ...t
15
16
  }
16
17
  ));
17
- n.displayName = t.Overlay.displayName;
18
- const p = i.forwardRef(({ className: e, children: a, hideClose: s, ...r }, c) => /* @__PURE__ */ d(f, { children: [
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__ */ d(
21
- t.Content,
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: l(
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
- a,
33
- !s && /* @__PURE__ */ d(
34
- t.Close,
35
- {
36
- "data-component": "dialog-close",
37
- 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",
38
- children: [
39
- /* @__PURE__ */ o(m, { className: "h-4 w-4" }),
40
- /* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
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
- p.displayName = t.Content.displayName;
49
- const g = ({
52
+ y.displayName = a.Content.displayName;
53
+ const u = ({
50
54
  className: e,
51
- ...a
55
+ ...t
52
56
  }) => /* @__PURE__ */ o(
53
57
  "div",
54
58
  {
55
- className: l(
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
- ...a
63
+ ...t
60
64
  }
61
65
  );
62
- g.displayName = "DialogHeader";
63
- const x = ({
66
+ u.displayName = "DialogHeader";
67
+ const N = ({
64
68
  className: e,
65
- ...a
69
+ ...t
66
70
  }) => /* @__PURE__ */ o(
67
71
  "div",
68
72
  {
69
- className: l(
73
+ className: i(
70
74
  "px-6 py-6 flex-1 overflow-y-auto min-h-0",
71
75
  e
72
76
  ),
73
- ...a
77
+ ...t
74
78
  }
75
79
  );
76
- x.displayName = "DialogBody";
77
- const y = ({
80
+ N.displayName = "DialogBody";
81
+ const b = ({
78
82
  className: e,
79
- ...a
83
+ ...t
80
84
  }) => /* @__PURE__ */ o(
81
85
  "div",
82
86
  {
83
- className: l(
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
- ...a
91
+ ...t
88
92
  }
89
93
  );
90
- y.displayName = "DialogFooter";
91
- const u = i.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ o(
92
- t.Title,
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: l(
100
+ className: i(
97
101
  "text-md font-bold leading-none tracking-tight text-slate-900",
98
102
  e
99
103
  ),
100
- ...a
104
+ ...t
101
105
  }
102
106
  ));
103
- u.displayName = t.Title.displayName;
104
- const N = i.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ o(
105
- t.Description,
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: l("text-sm text-slate-600 leading-relaxed", e),
109
- ...a
112
+ className: i("text-sm text-slate-600 leading-relaxed", e),
113
+ ...t
110
114
  }
111
115
  ));
112
- N.displayName = t.Description.displayName;
116
+ h.displayName = a.Description.displayName;
113
117
  export {
114
- v as Dialog,
115
- x as DialogBody,
116
- C as DialogClose,
117
- p as DialogContent,
118
- N as DialogDescription,
119
- y as DialogFooter,
120
- g as DialogHeader,
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
- f as DialogPortal,
123
- u as DialogTitle,
124
- w as DialogTrigger
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"> & 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"> & {
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 l from "react";
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
- const m = ({
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
- m.displayName = "Drawer";
16
- const u = a.Trigger, c = a.Portal, b = a.Close, d = l.forwardRef(({ className: e, ...r }, o) => /* @__PURE__ */ t(
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
- d.displayName = a.Overlay.displayName;
25
- const p = l.forwardRef(({ className: e, children: r, ...o }, i) => /* @__PURE__ */ n(c, { children: [
26
- /* @__PURE__ */ t(d, {}),
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: i,
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
- ...o,
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
- p.displayName = "DrawerContent";
45
- const w = ({
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
- w.displayName = "DrawerHeader";
56
- const f = ({
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
- f.displayName = "DrawerFooter";
67
- const D = l.forwardRef(({ className: e, ...r }, o) => /* @__PURE__ */ t(
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
- D.displayName = a.Title.displayName;
80
- const x = l.forwardRef(({ className: e, ...r }, o) => /* @__PURE__ */ t(
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
- x.displayName = a.Description.displayName;
104
+ h.displayName = a.Description.displayName;
90
105
  export {
91
- m as Drawer,
92
- b as DrawerClose,
93
- p as DrawerContent,
94
- x as DrawerDescription,
95
- f as DrawerFooter,
96
- w as DrawerHeader,
97
- d as DrawerOverlay,
98
- c as DrawerPortal,
99
- D as DrawerTitle,
100
- u as DrawerTrigger
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, };