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
|
@@ -6,10 +6,10 @@ import { cva as G } from "class-variance-authority";
|
|
|
6
6
|
import { ChevronRight as I, HamburgerClosed as H, HamburgerOpen as j } from "../../icons/index.js";
|
|
7
7
|
import { cn as l } from "../../lib/utils.js";
|
|
8
8
|
import { Button as K } from "./button.js";
|
|
9
|
-
import { Input as
|
|
10
|
-
import { Separator as
|
|
9
|
+
import { Input as L } from "./input.js";
|
|
10
|
+
import { Separator as P } from "./separator.js";
|
|
11
11
|
import { Skeleton as _ } from "./skeleton.js";
|
|
12
|
-
import { Tooltip as
|
|
12
|
+
import { Tooltip as V, TooltipTrigger as W, TooltipContent as $, TooltipProvider as F } from "./tooltip.js";
|
|
13
13
|
const q = "sidebar_state", U = 3600 * 24 * 7, X = "280px", Y = "64px", J = "b", A = i.createContext(null), z = i.createContext(null);
|
|
14
14
|
function y() {
|
|
15
15
|
const a = i.useContext(A);
|
|
@@ -53,7 +53,7 @@ const Q = i.forwardRef(
|
|
|
53
53
|
}),
|
|
54
54
|
[u, p, m, h, c]
|
|
55
55
|
);
|
|
56
|
-
return /* @__PURE__ */ t(A.Provider, { value: S, children: /* @__PURE__ */ t(F, {
|
|
56
|
+
return /* @__PURE__ */ t(A.Provider, { value: S, children: /* @__PURE__ */ t(F, { children: /* @__PURE__ */ t(
|
|
57
57
|
"div",
|
|
58
58
|
{
|
|
59
59
|
style: {
|
|
@@ -199,7 +199,7 @@ const te = i.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ t(
|
|
|
199
199
|
));
|
|
200
200
|
te.displayName = "SidebarInset";
|
|
201
201
|
const re = i.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ t(
|
|
202
|
-
|
|
202
|
+
L,
|
|
203
203
|
{
|
|
204
204
|
ref: e,
|
|
205
205
|
"data-sidebar": "input",
|
|
@@ -235,7 +235,7 @@ const ne = i.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ t(
|
|
|
235
235
|
));
|
|
236
236
|
ne.displayName = "SidebarFooter";
|
|
237
237
|
const oe = i.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ t(
|
|
238
|
-
|
|
238
|
+
P,
|
|
239
239
|
{
|
|
240
240
|
ref: e,
|
|
241
241
|
"data-sidebar": "separator",
|
|
@@ -388,6 +388,7 @@ const B = i.forwardRef(({ className: a, children: r, ...e }, n) => {
|
|
|
388
388
|
{
|
|
389
389
|
onClick: () => c(!d),
|
|
390
390
|
className: "hover:bg-transparent",
|
|
391
|
+
tooltip: d ? "View Less" : "View More",
|
|
391
392
|
children: [
|
|
392
393
|
/* @__PURE__ */ t("div", { className: "text-[#3bb273]", children: /* @__PURE__ */ t(
|
|
393
394
|
I,
|
|
@@ -485,8 +486,8 @@ const be = G(
|
|
|
485
486
|
), S = h ? /* @__PURE__ */ t(M.Trigger, { asChild: !0, children: u }) : u;
|
|
486
487
|
return o ? (typeof o == "string" && (o = {
|
|
487
488
|
children: o
|
|
488
|
-
}), /* @__PURE__ */ g(
|
|
489
|
-
/* @__PURE__ */ t(
|
|
489
|
+
}), /* @__PURE__ */ g(V, { children: [
|
|
490
|
+
/* @__PURE__ */ t(W, { asChild: !0, children: S }),
|
|
490
491
|
/* @__PURE__ */ t(
|
|
491
492
|
$,
|
|
492
493
|
{
|
|
@@ -5,10 +5,12 @@ declare const Tabs: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsProps
|
|
|
5
5
|
size?: "default" | "sm";
|
|
6
6
|
hideInactiveLabel?: boolean;
|
|
7
7
|
tooltipClassName?: string;
|
|
8
|
+
maxWords?: number;
|
|
8
9
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
9
10
|
declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
11
|
declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
11
12
|
icon?: React.ReactNode;
|
|
13
|
+
maxWords?: number;
|
|
12
14
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
13
15
|
declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
16
|
export { Tabs, TabsList, TabsTrigger, TabsContent };
|
|
@@ -1,59 +1,66 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { Tooltip as
|
|
6
|
-
const
|
|
1
|
+
import { jsx as s, jsxs as w, Fragment as j } from "react/jsx-runtime";
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
import * as r from "@radix-ui/react-tabs";
|
|
4
|
+
import { cn as f } from "../../lib/utils.js";
|
|
5
|
+
import { Tooltip as R, TooltipTrigger as V, TooltipContent as W } from "./tooltip.js";
|
|
6
|
+
const h = n.createContext({
|
|
7
7
|
variant: "line",
|
|
8
8
|
size: "default"
|
|
9
|
-
}),
|
|
10
|
-
const
|
|
11
|
-
e.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
}), L = (t, a) => {
|
|
10
|
+
const e = t.split(/\s+/);
|
|
11
|
+
return e.length <= a ? t : e.slice(0, a).join(" ") + "...";
|
|
12
|
+
}, k = n.forwardRef(({ variant: t = "line", size: a = "default", hideInactiveLabel: e = !1, tooltipClassName: o, maxWords: m, value: i, defaultValue: l, onValueChange: x, ...b }, p) => {
|
|
13
|
+
const [g, u] = n.useState(i || l);
|
|
14
|
+
n.useEffect(() => {
|
|
15
|
+
i !== void 0 && u(i);
|
|
16
|
+
}, [i]);
|
|
17
|
+
const d = (c) => {
|
|
18
|
+
i === void 0 && u(c), x?.(c);
|
|
16
19
|
};
|
|
17
|
-
return /* @__PURE__ */
|
|
18
|
-
|
|
20
|
+
return /* @__PURE__ */ s(h.Provider, { value: { variant: t, size: a, activeValue: g, hideInactiveLabel: e, tooltipClassName: o, maxWords: m }, children: /* @__PURE__ */ s(
|
|
21
|
+
r.Root,
|
|
19
22
|
{
|
|
20
|
-
ref:
|
|
21
|
-
value:
|
|
23
|
+
ref: p,
|
|
24
|
+
value: i,
|
|
22
25
|
defaultValue: l,
|
|
23
|
-
onValueChange:
|
|
26
|
+
onValueChange: d,
|
|
24
27
|
"data-component": "tabs",
|
|
25
28
|
"data-variant": t,
|
|
26
|
-
...
|
|
29
|
+
...b
|
|
27
30
|
}
|
|
28
31
|
) });
|
|
29
32
|
});
|
|
30
|
-
|
|
31
|
-
const
|
|
32
|
-
const { variant:
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
|
|
33
|
+
k.displayName = r.Root.displayName;
|
|
34
|
+
const z = n.forwardRef(({ className: t, ...a }, e) => {
|
|
35
|
+
const { variant: o } = n.useContext(h);
|
|
36
|
+
return /* @__PURE__ */ s(
|
|
37
|
+
r.List,
|
|
35
38
|
{
|
|
36
|
-
ref:
|
|
39
|
+
ref: e,
|
|
37
40
|
"data-tabs": "list",
|
|
38
|
-
className:
|
|
41
|
+
className: f(
|
|
39
42
|
"inline-flex items-center justify-center rounded-lg",
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
+
o === "line" && "h-10 bg-white border w-full justify-start gap-2 px-2 shrink-0 py-0",
|
|
44
|
+
o === "pill" && "h-10 p-1 bg-[#eceefd] text-[#4259ee] gap-1",
|
|
45
|
+
o === "outline" && "bg-transparent gap-2 p-0 w-full justify-start",
|
|
43
46
|
t
|
|
44
47
|
),
|
|
45
48
|
...a
|
|
46
49
|
}
|
|
47
50
|
);
|
|
48
51
|
});
|
|
49
|
-
|
|
50
|
-
const
|
|
51
|
-
const { variant: l, size:
|
|
52
|
-
|
|
52
|
+
z.displayName = r.List.displayName;
|
|
53
|
+
const M = n.forwardRef(({ className: t, icon: a, children: e, maxWords: o, ...m }, i) => {
|
|
54
|
+
const { variant: l, size: x, activeValue: b, hideInactiveLabel: p, tooltipClassName: g, maxWords: u } = n.useContext(h), d = o ?? u, c = b === m.value, v = typeof e == "string", N = v && d ? L(e, d) : e, C = v && d && e.split(/\s+/).length > d, T = p && !c || C, y = /* @__PURE__ */ w(j, { children: [
|
|
55
|
+
a && /* @__PURE__ */ s("span", { className: f("h-4 w-4 shrink-0", !p || c ? "mr-2" : "mr-0"), children: a }),
|
|
56
|
+
/* @__PURE__ */ s("span", { className: f(p && !c && "sr-only"), children: N })
|
|
57
|
+
] });
|
|
58
|
+
return /* @__PURE__ */ s(
|
|
59
|
+
r.Trigger,
|
|
53
60
|
{
|
|
54
|
-
ref:
|
|
61
|
+
ref: i,
|
|
55
62
|
"data-tabs": "trigger",
|
|
56
|
-
className:
|
|
63
|
+
className: f(
|
|
57
64
|
"relative inline-flex items-center justify-center whitespace-nowrap text-sm font-medium transition-all focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50",
|
|
58
65
|
l === "line" && [
|
|
59
66
|
"h-full rounded-none border-b-2 border-transparent px-1 text-[13px] font-medium capitalize text-[#60697d] -mb-[1px]",
|
|
@@ -69,39 +76,35 @@ const T = e.forwardRef(({ className: t, icon: a, children: i, ...s }, r) => {
|
|
|
69
76
|
"rounded-full border border-[#5f6673] bg-white text-[#5f6673] font-['Manrope']",
|
|
70
77
|
"hover:bg-slate-50 hover:text-[#1f2b4d]",
|
|
71
78
|
"data-[state=active]:border-[#4259ee] data-[state=active]:text-[#4259ee]",
|
|
72
|
-
|
|
79
|
+
x === "sm" ? "h-[24px] px-[8px] py-[2px] text-xs" : "h-9 px-4 py-2"
|
|
73
80
|
],
|
|
74
81
|
t
|
|
75
82
|
),
|
|
76
|
-
...
|
|
77
|
-
children: [
|
|
78
|
-
|
|
79
|
-
/* @__PURE__ */
|
|
80
|
-
]
|
|
83
|
+
...m,
|
|
84
|
+
children: T ? /* @__PURE__ */ w(R, { children: [
|
|
85
|
+
/* @__PURE__ */ s(V, { asChild: !0, children: /* @__PURE__ */ s("span", { className: "inline-flex items-center justify-center h-full w-full", children: y }) }),
|
|
86
|
+
/* @__PURE__ */ s(W, { variant: "tertiary", className: g, children: e })
|
|
87
|
+
] }) : y
|
|
81
88
|
}
|
|
82
89
|
);
|
|
83
|
-
return c && !d ? /* @__PURE__ */ h(v, { children: [
|
|
84
|
-
/* @__PURE__ */ n(y, { asChild: !0, children: f }),
|
|
85
|
-
/* @__PURE__ */ n(N, { variant: "tertiary", className: b, children: i })
|
|
86
|
-
] }) : f;
|
|
87
90
|
});
|
|
88
|
-
|
|
89
|
-
const
|
|
90
|
-
|
|
91
|
+
M.displayName = r.Trigger.displayName;
|
|
92
|
+
const P = n.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ s(
|
|
93
|
+
r.Content,
|
|
91
94
|
{
|
|
92
|
-
ref:
|
|
95
|
+
ref: e,
|
|
93
96
|
"data-tabs": "content",
|
|
94
|
-
className:
|
|
97
|
+
className: f(
|
|
95
98
|
"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
96
99
|
t
|
|
97
100
|
),
|
|
98
101
|
...a
|
|
99
102
|
}
|
|
100
103
|
));
|
|
101
|
-
|
|
104
|
+
P.displayName = r.Content.displayName;
|
|
102
105
|
export {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
106
|
+
k as Tabs,
|
|
107
|
+
P as TabsContent,
|
|
108
|
+
z as TabsList,
|
|
109
|
+
M as TabsTrigger
|
|
107
110
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import * as m from "react";
|
|
3
3
|
import { Slot as x } from "@radix-ui/react-slot";
|
|
4
4
|
import { cva as h } from "class-variance-authority";
|
|
5
5
|
import { X as u } from "lucide-react";
|
|
6
|
-
import {
|
|
6
|
+
import { Button as v } from "./button.js";
|
|
7
|
+
import { cn as w } from "../../lib/utils.js";
|
|
7
8
|
const y = h(
|
|
8
9
|
"inline-flex items-center justify-center rounded-full transition-colors whitespace-nowrap focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
9
10
|
{
|
|
@@ -37,42 +38,42 @@ const y = h(
|
|
|
37
38
|
shape: "pill"
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
|
-
),
|
|
41
|
-
({ className:
|
|
42
|
-
|
|
41
|
+
), j = m.forwardRef(
|
|
42
|
+
({ className: i, variant: r, size: t, shape: o, leftIcon: a, rightIcon: n, removable: s, onRemove: d, asChild: l = !1, children: p, ...f }, g) => /* @__PURE__ */ c(
|
|
43
|
+
l ? x : "span",
|
|
43
44
|
{
|
|
44
|
-
ref:
|
|
45
|
-
className:
|
|
45
|
+
ref: g,
|
|
46
|
+
className: w(y({ variant: r, size: t, shape: o }), i),
|
|
46
47
|
"data-component": "tag",
|
|
47
48
|
"data-variant": r ?? "default",
|
|
48
49
|
"data-size": t ?? "md",
|
|
49
50
|
"data-shape": o ?? "pill",
|
|
50
|
-
...
|
|
51
|
+
...f,
|
|
51
52
|
children: [
|
|
52
53
|
a && /* @__PURE__ */ e("span", { className: "mr-1.5 flex shrink-0 items-center justify-center", children: a }),
|
|
53
|
-
|
|
54
|
+
p,
|
|
54
55
|
n && /* @__PURE__ */ e("span", { className: "ml-1.5 flex shrink-0 items-center justify-center", children: n }),
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
s && /* @__PURE__ */ e(
|
|
57
|
+
v,
|
|
57
58
|
{
|
|
58
59
|
type: "button",
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
variant: "ghost",
|
|
61
|
+
size: "icon",
|
|
62
|
+
"aria-label": "Remove",
|
|
63
|
+
onClick: (b) => {
|
|
64
|
+
b.stopPropagation(), d?.();
|
|
61
65
|
},
|
|
62
|
-
className: "ml-1.5
|
|
66
|
+
className: "ml-1.5 h-4 w-4 shrink-0 rounded-full hover:bg-black/10 transition-colors p-0 [&_svg]:size-3",
|
|
63
67
|
"data-component": "tag-remove",
|
|
64
|
-
children:
|
|
65
|
-
/* @__PURE__ */ e(u, { className: "h-3 w-3" }),
|
|
66
|
-
/* @__PURE__ */ e("span", { className: "sr-only", children: "Remove" })
|
|
67
|
-
]
|
|
68
|
+
children: /* @__PURE__ */ e(u, {})
|
|
68
69
|
}
|
|
69
70
|
)
|
|
70
71
|
]
|
|
71
72
|
}
|
|
72
73
|
)
|
|
73
74
|
);
|
|
74
|
-
|
|
75
|
+
j.displayName = "Tag";
|
|
75
76
|
export {
|
|
76
|
-
|
|
77
|
+
j as Tag,
|
|
77
78
|
y as tagVariants
|
|
78
79
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { jsx as a } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as a, jsxs as d } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "react";
|
|
3
3
|
import * as o from "@radix-ui/react-toast";
|
|
4
|
-
import { cva as
|
|
5
|
-
import { X as
|
|
4
|
+
import { cva as p } from "class-variance-authority";
|
|
5
|
+
import { X as c } from "lucide-react";
|
|
6
6
|
import { cn as i } from "../../lib/utils.js";
|
|
7
|
-
|
|
7
|
+
import { Tooltip as f, TooltipTrigger as l, TooltipContent as u } from "./tooltip.js";
|
|
8
|
+
const R = o.Provider, x = s.forwardRef(({ className: t, position: e = "top-right", ...r }, n) => /* @__PURE__ */ a(
|
|
8
9
|
o.Viewport,
|
|
9
10
|
{
|
|
10
11
|
ref: n,
|
|
@@ -18,8 +19,8 @@ const y = o.Provider, c = s.forwardRef(({ className: t, position: e = "top-right
|
|
|
18
19
|
...r
|
|
19
20
|
}
|
|
20
21
|
));
|
|
21
|
-
|
|
22
|
-
const
|
|
22
|
+
x.displayName = o.Viewport.displayName;
|
|
23
|
+
const m = p(
|
|
23
24
|
"group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
|
|
24
25
|
{
|
|
25
26
|
variants: {
|
|
@@ -38,18 +39,18 @@ const f = d(
|
|
|
38
39
|
variant: "default"
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
|
-
),
|
|
42
|
+
), b = s.forwardRef(({ className: t, variant: e, ...r }, n) => /* @__PURE__ */ a(
|
|
42
43
|
o.Root,
|
|
43
44
|
{
|
|
44
45
|
ref: n,
|
|
45
46
|
"data-component": "toast",
|
|
46
47
|
"data-variant": e ?? "default",
|
|
47
|
-
className: i(
|
|
48
|
+
className: i(m({ variant: e }), t),
|
|
48
49
|
...r
|
|
49
50
|
}
|
|
50
51
|
));
|
|
51
|
-
|
|
52
|
-
const
|
|
52
|
+
b.displayName = o.Root.displayName;
|
|
53
|
+
const g = s.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ a(
|
|
53
54
|
o.Action,
|
|
54
55
|
{
|
|
55
56
|
ref: r,
|
|
@@ -61,23 +62,26 @@ const u = s.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ a(
|
|
|
61
62
|
...e
|
|
62
63
|
}
|
|
63
64
|
));
|
|
64
|
-
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
65
|
+
g.displayName = o.Action.displayName;
|
|
66
|
+
const h = s.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ d(f, { children: [
|
|
67
|
+
/* @__PURE__ */ a(l, { asChild: !0, children: /* @__PURE__ */ a(
|
|
68
|
+
o.Close,
|
|
69
|
+
{
|
|
70
|
+
ref: r,
|
|
71
|
+
"data-component": "toast-close",
|
|
72
|
+
className: i(
|
|
73
|
+
"absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",
|
|
74
|
+
t
|
|
75
|
+
),
|
|
76
|
+
"toast-close": "",
|
|
77
|
+
...e,
|
|
78
|
+
children: /* @__PURE__ */ a(c, { className: "h-4 w-4" })
|
|
79
|
+
}
|
|
80
|
+
) }),
|
|
81
|
+
/* @__PURE__ */ a(u, { variant: "tertiary", side: "top", children: "Close" })
|
|
82
|
+
] }));
|
|
83
|
+
h.displayName = o.Close.displayName;
|
|
84
|
+
const v = s.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ a(
|
|
81
85
|
o.Title,
|
|
82
86
|
{
|
|
83
87
|
ref: r,
|
|
@@ -86,8 +90,8 @@ const m = s.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ a(
|
|
|
86
90
|
...e
|
|
87
91
|
}
|
|
88
92
|
));
|
|
89
|
-
|
|
90
|
-
const
|
|
93
|
+
v.displayName = o.Title.displayName;
|
|
94
|
+
const w = s.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ a(
|
|
91
95
|
o.Description,
|
|
92
96
|
{
|
|
93
97
|
ref: r,
|
|
@@ -96,13 +100,13 @@ const b = s.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ a(
|
|
|
96
100
|
...e
|
|
97
101
|
}
|
|
98
102
|
));
|
|
99
|
-
|
|
103
|
+
w.displayName = o.Description.displayName;
|
|
100
104
|
export {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
b as Toast,
|
|
106
|
+
g as ToastAction,
|
|
107
|
+
h as ToastClose,
|
|
108
|
+
w as ToastDescription,
|
|
109
|
+
R as ToastProvider,
|
|
110
|
+
v as ToastTitle,
|
|
111
|
+
x as ToastViewport
|
|
108
112
|
};
|
|
@@ -3,7 +3,7 @@ import * as l from "react";
|
|
|
3
3
|
import * as o from "@radix-ui/react-tooltip";
|
|
4
4
|
import { cva as p } from "class-variance-authority";
|
|
5
5
|
import { cn as d } from "../../lib/utils.js";
|
|
6
|
-
const c = o.Provider, x = ({ children: i, ...a }) => /* @__PURE__ */ r(c, { children: /* @__PURE__ */ r(o.Root, {
|
|
6
|
+
const c = o.Provider, x = ({ children: i, ...a }) => /* @__PURE__ */ r(c, { children: /* @__PURE__ */ r(o.Root, { ...a, children: i }) }), h = o.Trigger, f = p(
|
|
7
7
|
"z-50 overflow-hidden rounded-md px-4 py-2 text-sm animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",
|
|
8
8
|
{
|
|
9
9
|
variants: {
|