@gv-tech/ui-web 2.19.0 → 2.21.0
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/accordion-Be1vGv6M.js +1 -0
- package/dist/accordion-DXnU0LgU.mjs +221 -0
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.mjs +3 -259
- package/dist/alert-dialog-BXRY0Ghq.js +7 -0
- package/dist/alert-dialog-fcZ-sL7h.mjs +164 -0
- package/dist/alert-dialog.cjs +1 -7
- package/dist/alert-dialog.mjs +4 -171
- package/dist/alert.cjs +1 -1
- package/dist/alert.mjs +35 -32
- package/dist/aspect-ratio-BP5HarYZ.js +1 -0
- package/dist/aspect-ratio-Bp8HMg-1.mjs +33 -0
- package/dist/aspect-ratio.cjs +1 -1
- package/dist/aspect-ratio.mjs +3 -43
- package/dist/avatar-klFl8Sqa.js +1 -0
- package/dist/avatar-vGm9JN1a.mjs +184 -0
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.mjs +3 -205
- package/dist/badge.cjs +1 -1
- package/dist/badge.mjs +21 -24
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.mjs +60 -68
- package/dist/button.cjs +1 -1
- package/dist/button.mjs +40 -40
- package/dist/calendar-aIuSXzs7.js +1 -0
- package/dist/calendar-oitID53a.mjs +3154 -0
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.mjs +4 -2976
- package/dist/card.cjs +1 -1
- package/dist/card.mjs +42 -32
- package/dist/carousel-BjTSkVh9.js +1 -0
- package/dist/carousel-CENzZCXN.mjs +1178 -0
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.mjs +4 -1403
- package/dist/chart.cjs +4 -4
- package/dist/chart.d.ts +3 -35
- package/dist/chart.mjs +123 -182
- package/dist/checkbox-Bwq7mXA2.mjs +170 -0
- package/dist/checkbox-DzEO1q4R.js +1 -0
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.mjs +3 -258
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.mjs +6 -7
- package/dist/command-D7hksKY6.js +1 -0
- package/dist/command-Ws_iF1hM.mjs +531 -0
- package/dist/command.cjs +1 -1
- package/dist/command.mjs +3 -396
- package/dist/context-menu-DJbgNJ7N.js +1 -0
- package/dist/context-menu-fu39gePi.mjs +292 -0
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.mjs +3 -328
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.mjs +50 -66
- package/dist/dist-0FXx-pUX.js +1 -0
- package/dist/dist-4A0ut6a8.mjs +10 -0
- package/dist/dist-ALQAoSGx.mjs +10 -0
- package/dist/dist-B4N_7Tps.js +1 -0
- package/dist/dist-B5776DvK.js +5 -0
- package/dist/dist-B57mzJP3.mjs +28 -0
- package/dist/dist-B5VmV2K7.js +1 -0
- package/dist/dist-BBRD-Qfb.js +1 -0
- package/dist/dist-BC_VB6JL.mjs +25 -0
- package/dist/dist-BKFtvTm8.mjs +6 -0
- package/dist/dist-BUS_s_6N.js +1 -0
- package/dist/dist-BVKPqhkg.js +1 -0
- package/dist/dist-Ba7mQG9D.mjs +117 -0
- package/dist/dist-BeFCyPgD.js +1 -0
- package/dist/dist-Bf4P28CV.js +1 -0
- package/dist/dist-BfFVoFJN.js +1 -0
- package/dist/dist-BhtQH_6Z.js +1 -0
- package/dist/dist-BmjFh8i_.mjs +5 -0
- package/dist/dist-BrCTkQXt.mjs +62 -0
- package/dist/dist-BxmpAHsT.mjs +219 -0
- package/dist/dist-C2ArLRnq.js +1 -0
- package/dist/dist-C2pRTcV_.mjs +62 -0
- package/dist/dist-C9wnUiS4.mjs +27 -0
- package/dist/dist-CIRItnqs.js +1 -0
- package/dist/dist-CL1DhkaL.js +1 -0
- package/dist/dist-CRe7xawr.js +1 -0
- package/dist/dist-CUFjt0cI.js +1 -0
- package/dist/dist-CaaGWewc.mjs +557 -0
- package/dist/dist-Ci2whnVp.js +1 -0
- package/dist/dist-CmBtqW5f.js +1 -0
- package/dist/dist-CsEsK2jW.js +1 -0
- package/dist/dist-CscAxhT8.js +1 -0
- package/dist/dist-CvtF5JdF.mjs +95 -0
- package/dist/dist-Cvwtowos.mjs +77 -0
- package/dist/dist-D2f83VMO.mjs +73 -0
- package/dist/dist-Dh_jWJh-.mjs +11 -0
- package/dist/dist-DikyKBU3.mjs +12 -0
- package/dist/dist-DmmUjo_P.js +1 -0
- package/dist/dist-DqvQ5UFr.mjs +38 -0
- package/dist/dist-FGQAMrhH.mjs +29 -0
- package/dist/dist-Jtk3jeb9.mjs +18 -0
- package/dist/dist-Kqk0oQYU.js +1 -0
- package/dist/dist-VI9bl_Wk.mjs +45 -0
- package/dist/dist-Z7lEV5Nx.mjs +1282 -0
- package/dist/dist-_Osar3kp.js +1 -0
- package/dist/dist-bDoR0CBU.mjs +112 -0
- package/dist/dist-cRjbOZRf.js +1 -0
- package/dist/dist-d_pecHgw.mjs +66 -0
- package/dist/dist-r36zVVcK.js +1 -0
- package/dist/dist-sRlXdzvf.mjs +152 -0
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.mjs +48 -54
- package/dist/dropdown-menu-BGkQXJ-r.mjs +288 -0
- package/dist/dropdown-menu-uGMnmGL-.js +1 -0
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.mjs +3 -316
- package/dist/es2015-Cx0gpR1a.js +41 -0
- package/dist/es2015-a1b8kENC.mjs +701 -0
- package/dist/form.cjs +1 -1
- package/dist/form.mjs +76 -67
- package/dist/hover-card-DdIYJP-Q.mjs +167 -0
- package/dist/hover-card-Ua-2KlY-.js +1 -0
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.mjs +3 -188
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -35
- package/dist/index.mjs +56 -296
- package/dist/input.cjs +1 -1
- package/dist/input.mjs +14 -19
- package/dist/jsx-runtime-CN3qjQQx.js +6 -0
- package/dist/jsx-runtime-CW53Uo-e.mjs +189 -0
- package/dist/label-8YSUv4kt.js +1 -0
- package/dist/label-Bur66PVg.mjs +22 -0
- package/dist/label.cjs +1 -1
- package/dist/label.mjs +3 -22
- package/dist/menubar-Bq1Sfbf5.js +1 -0
- package/dist/menubar-D2fY6zkQ.mjs +410 -0
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.mjs +3 -473
- package/dist/navigation-menu-BuOakbgA.mjs +602 -0
- package/dist/navigation-menu-so6EvLAY.js +1 -0
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.mjs +3 -673
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.mjs +63 -68
- package/dist/popover-BUADXRkO.mjs +201 -0
- package/dist/popover-nBrSPqHk.js +1 -0
- package/dist/popover.cjs +1 -1
- package/dist/popover.mjs +3 -242
- package/dist/progress-BTApMbqg.js +6 -0
- package/dist/progress-BbN-RNvs.mjs +81 -0
- package/dist/progress.cjs +1 -6
- package/dist/progress.mjs +3 -99
- package/dist/radio-group-C5oprOrt.mjs +193 -0
- package/dist/radio-group-FDXr6VLM.js +1 -0
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.mjs +3 -253
- package/dist/resizable-ChdgCzzx.mjs +1534 -0
- package/dist/resizable-ztiFzq_y.js +1 -0
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.mjs +3 -1990
- package/dist/scroll-area-3o0-cc3n.mjs +520 -0
- package/dist/scroll-area-DXZqIKXN.js +1 -0
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.mjs +3 -546
- package/dist/scroll-to-top.cjs +1 -1
- package/dist/scroll-to-top.mjs +71 -84
- package/dist/search.cjs +1 -1
- package/dist/search.mjs +53 -63
- package/dist/select-B2qM503G.mjs +744 -0
- package/dist/select-BHCeW-MD.js +1 -0
- package/dist/select.cjs +1 -1
- package/dist/select.mjs +3 -908
- package/dist/separator-BZJ-SDvg.js +1 -0
- package/dist/separator-DJ_IwKUQ.mjs +31 -0
- package/dist/separator.cjs +1 -1
- package/dist/separator.mjs +3 -35
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.mjs +59 -66
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.mjs +13 -7
- package/dist/slider-CJJPQ0fH.mjs +366 -0
- package/dist/slider-DHccqrW2.js +1 -0
- package/dist/slider.cjs +1 -1
- package/dist/slider.mjs +3 -442
- package/dist/sonner.cjs +1 -1
- package/dist/sonner.mjs +21 -24
- package/dist/support-fab.cjs +1 -1
- package/dist/support-fab.mjs +81 -117
- package/dist/switch-BbcAUYjl.mjs +103 -0
- package/dist/switch-DZfRzgWs.js +1 -0
- package/dist/switch.cjs +1 -1
- package/dist/switch.mjs +3 -149
- package/dist/table-of-contents.cjs +1 -1
- package/dist/table-of-contents.mjs +159 -155
- package/dist/table.cjs +1 -1
- package/dist/table.mjs +58 -57
- package/dist/tabs-BEy0IIV0.js +1 -0
- package/dist/tabs-DqAKyl9T.mjs +136 -0
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.mjs +3 -195
- package/dist/text.cjs +1 -1
- package/dist/text.mjs +41 -42
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.mjs +12 -17
- package/dist/theme-provider.cjs +1 -1
- package/dist/theme-provider.mjs +15 -7
- package/dist/theme-toggle-DKQmD-FO.js +1 -0
- package/dist/theme-toggle-dQbFWNI8.mjs +65 -0
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.mjs +3 -8
- package/dist/toast-C84Cpidq.js +1 -0
- package/dist/toast-CQbUslcw.mjs +427 -0
- package/dist/toast.cjs +1 -1
- package/dist/toast.mjs +3 -494
- package/dist/toaster-BpcpNRz1.js +1 -0
- package/dist/toaster-i6giQYiq.mjs +126 -0
- package/dist/toaster.cjs +1 -1
- package/dist/toaster.mjs +3 -6
- package/dist/toggle-group-B2S7fkhA.mjs +155 -0
- package/dist/toggle-group-BNn6MNiJ.js +1 -0
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.mjs +3 -170
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.mjs +19 -14
- package/dist/tooltip-CElrNodA.js +1 -0
- package/dist/tooltip-oKfTBTbv.mjs +364 -0
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.mjs +3 -342
- package/dist/utils-BxDanjP7.js +1 -0
- package/dist/utils-yc5uc46c.mjs +11 -0
- package/package.json +2 -2
- package/src/chart.tsx +7 -7
- package/src/setupTests.ts +5 -4
- package/dist/index-0ioNhtNM.mjs +0 -10
- package/dist/index-3j-XAIXT.mjs +0 -55
- package/dist/index-B2XtpfGY.js +0 -1
- package/dist/index-B39Lzq0v.js +0 -1
- package/dist/index-B7n6fy75.js +0 -1
- package/dist/index-B8dxbSWX.js +0 -41
- package/dist/index-BGIK9FQF.js +0 -1
- package/dist/index-BZPx6jYI.mjs +0 -8
- package/dist/index-BoNjHhm4.js +0 -1
- package/dist/index-BtZvtDmp.js +0 -1
- package/dist/index-Bv7qrYW6.mjs +0 -180
- package/dist/index-ByiPJW53.js +0 -5
- package/dist/index-C0dlIQIi.js +0 -1
- package/dist/index-C1qb0595.mjs +0 -27
- package/dist/index-C7HEunrh.mjs +0 -15
- package/dist/index-C8ni3LLa.js +0 -1
- package/dist/index-CCKe-Mpx.mjs +0 -6
- package/dist/index-CD6_IrA-.mjs +0 -10
- package/dist/index-CRyCZJLa.mjs +0 -677
- package/dist/index-CVx1AgNG.mjs +0 -615
- package/dist/index-Ce5TOFAK.js +0 -1
- package/dist/index-CeSLNJ60.mjs +0 -32
- package/dist/index-CefEQe_4.js +0 -1
- package/dist/index-Cj5hzyBi.js +0 -1
- package/dist/index-Cjj_rUPu.js +0 -1
- package/dist/index-Cl3G0jzM.js +0 -1
- package/dist/index-CwfE56Ep.mjs +0 -1545
- package/dist/index-CwyAfCwY.js +0 -1
- package/dist/index-CzY-WZXL.js +0 -1
- package/dist/index-D2HnlO3y.js +0 -1
- package/dist/index-DFdF7K7v.mjs +0 -50
- package/dist/index-DIsg7zU7.js +0 -1
- package/dist/index-DKN_vhyX.mjs +0 -32
- package/dist/index-DLcqcWxM.mjs +0 -29
- package/dist/index-DSxf1gN6.mjs +0 -118
- package/dist/index-DYxWvftI.js +0 -1
- package/dist/index-DaILh3TV.mjs +0 -32
- package/dist/index-Dfzl8TxY.mjs +0 -136
- package/dist/index-Dko2XdTk.js +0 -1
- package/dist/index-DlY82G31.mjs +0 -245
- package/dist/index-DnFcfnA9.mjs +0 -13
- package/dist/index-IZ2gq03c.mjs +0 -68
- package/dist/index-K9FzbxYw.mjs +0 -93
- package/dist/index-Le8p9oP4.mjs +0 -60
- package/dist/index-MQ0c3ZX_.js +0 -1
- package/dist/index-_XxjJPRD.js +0 -1
- package/dist/index-_wdrnYim.js +0 -1
- package/dist/index-jv3B4mTd.js +0 -1
- package/dist/index-kaM0u2Q1.js +0 -1
- package/dist/index-p6xVFRb4.mjs +0 -52
- package/dist/index-rKs9bXHr.mjs +0 -6
- package/dist/index-vuPgkS0V.mjs +0 -70
- package/dist/jsx-runtime-nZSsnGb7.js +0 -6
- package/dist/jsx-runtime-tc70JA_2.mjs +0 -264
- package/dist/theme-toggle-DXQGNfCe.js +0 -1
- package/dist/theme-toggle-tHXIbr8W.mjs +0 -79
- package/dist/toaster-C_S9hnXa.js +0 -1
- package/dist/toaster-k5DnQSsh.mjs +0 -118
- package/dist/utils-DY6fhrgS.mjs +0 -12
- package/dist/utils-cdbZV8DZ.js +0 -1
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { t as e } from "./jsx-runtime-CW53Uo-e.mjs";
|
|
2
|
+
import { t } from "./utils-yc5uc46c.mjs";
|
|
3
|
+
import { n } from "./dist-Cvwtowos.mjs";
|
|
4
|
+
import { n as r } from "./dist-BC_VB6JL.mjs";
|
|
5
|
+
import { a as i, r as a } from "./dist-bDoR0CBU.mjs";
|
|
6
|
+
import { a as o, c as s, i as c, l as ee, n as te, o as l, r as u, s as ne, t as d, u as f } from "./dist-BxmpAHsT.mjs";
|
|
7
|
+
import { buttonVariants as p } from "./button.mjs";
|
|
8
|
+
import * as m from "react";
|
|
9
|
+
//#region ../../node_modules/.bun/@radix-ui+react-alert-dialog@1.1.15+2d3f272c3a65784a/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs
|
|
10
|
+
var h = e(), g = "AlertDialog", [_, re] = n(g, [f]), v = f(), y = (e) => {
|
|
11
|
+
let { __scopeAlertDialog: t, ...n } = e, r = v(t);
|
|
12
|
+
return /* @__PURE__ */ (0, h.jsx)(l, {
|
|
13
|
+
...r,
|
|
14
|
+
...n,
|
|
15
|
+
modal: !0
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
y.displayName = g;
|
|
19
|
+
var b = "AlertDialogTrigger", x = m.forwardRef((e, t) => {
|
|
20
|
+
let { __scopeAlertDialog: n, ...r } = e, i = v(n);
|
|
21
|
+
return /* @__PURE__ */ (0, h.jsx)(s, {
|
|
22
|
+
...i,
|
|
23
|
+
...r,
|
|
24
|
+
ref: t
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
x.displayName = b;
|
|
28
|
+
var S = "AlertDialogPortal", C = (e) => {
|
|
29
|
+
let { __scopeAlertDialog: t, ...n } = e, r = v(t);
|
|
30
|
+
return /* @__PURE__ */ (0, h.jsx)(o, {
|
|
31
|
+
...r,
|
|
32
|
+
...n
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
C.displayName = S;
|
|
36
|
+
var ie = "AlertDialogOverlay", w = m.forwardRef((e, t) => {
|
|
37
|
+
let { __scopeAlertDialog: n, ...r } = e, i = v(n);
|
|
38
|
+
return /* @__PURE__ */ (0, h.jsx)(c, {
|
|
39
|
+
...i,
|
|
40
|
+
...r,
|
|
41
|
+
ref: t
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
w.displayName = ie;
|
|
45
|
+
var T = "AlertDialogContent", [ae, E] = _(T), D = i("AlertDialogContent"), O = m.forwardRef((e, t) => {
|
|
46
|
+
let { __scopeAlertDialog: n, children: i, ...o } = e, s = v(n), c = m.useRef(null), l = r(t, c), u = m.useRef(null);
|
|
47
|
+
return /* @__PURE__ */ (0, h.jsx)(ee, {
|
|
48
|
+
contentName: T,
|
|
49
|
+
titleName: k,
|
|
50
|
+
docsSlug: "alert-dialog",
|
|
51
|
+
children: /* @__PURE__ */ (0, h.jsx)(ae, {
|
|
52
|
+
scope: n,
|
|
53
|
+
cancelRef: u,
|
|
54
|
+
children: /* @__PURE__ */ (0, h.jsxs)(te, {
|
|
55
|
+
role: "alertdialog",
|
|
56
|
+
...s,
|
|
57
|
+
...o,
|
|
58
|
+
ref: l,
|
|
59
|
+
onOpenAutoFocus: a(o.onOpenAutoFocus, (e) => {
|
|
60
|
+
e.preventDefault(), u.current?.focus({ preventScroll: !0 });
|
|
61
|
+
}),
|
|
62
|
+
onPointerDownOutside: (e) => e.preventDefault(),
|
|
63
|
+
onInteractOutside: (e) => e.preventDefault(),
|
|
64
|
+
children: [/* @__PURE__ */ (0, h.jsx)(D, { children: i }), /* @__PURE__ */ (0, h.jsx)(se, { contentRef: c })]
|
|
65
|
+
})
|
|
66
|
+
})
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
O.displayName = T;
|
|
70
|
+
var k = "AlertDialogTitle", A = m.forwardRef((e, t) => {
|
|
71
|
+
let { __scopeAlertDialog: n, ...r } = e, i = v(n);
|
|
72
|
+
return /* @__PURE__ */ (0, h.jsx)(ne, {
|
|
73
|
+
...i,
|
|
74
|
+
...r,
|
|
75
|
+
ref: t
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
A.displayName = k;
|
|
79
|
+
var j = "AlertDialogDescription", M = m.forwardRef((e, t) => {
|
|
80
|
+
let { __scopeAlertDialog: n, ...r } = e, i = v(n);
|
|
81
|
+
return /* @__PURE__ */ (0, h.jsx)(u, {
|
|
82
|
+
...i,
|
|
83
|
+
...r,
|
|
84
|
+
ref: t
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
M.displayName = j;
|
|
88
|
+
var oe = "AlertDialogAction", N = m.forwardRef((e, t) => {
|
|
89
|
+
let { __scopeAlertDialog: n, ...r } = e, i = v(n);
|
|
90
|
+
return /* @__PURE__ */ (0, h.jsx)(d, {
|
|
91
|
+
...i,
|
|
92
|
+
...r,
|
|
93
|
+
ref: t
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
N.displayName = oe;
|
|
97
|
+
var P = "AlertDialogCancel", F = m.forwardRef((e, t) => {
|
|
98
|
+
let { __scopeAlertDialog: n, ...i } = e, { cancelRef: a } = E(P, n), o = v(n), s = r(t, a);
|
|
99
|
+
return /* @__PURE__ */ (0, h.jsx)(d, {
|
|
100
|
+
...o,
|
|
101
|
+
...i,
|
|
102
|
+
ref: s
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
F.displayName = P;
|
|
106
|
+
var se = ({ contentRef: e }) => {
|
|
107
|
+
let t = `\`${T}\` requires a description for the component to be accessible for screen reader users.
|
|
108
|
+
|
|
109
|
+
You can add a description to the \`${T}\` by passing a \`${j}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
110
|
+
|
|
111
|
+
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${T}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
112
|
+
|
|
113
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;
|
|
114
|
+
return m.useEffect(() => {
|
|
115
|
+
document.getElementById(e.current?.getAttribute("aria-describedby")) || console.warn(t);
|
|
116
|
+
}, [t, e]), null;
|
|
117
|
+
}, ce = y, le = x, I = C, L = w, R = O, z = N, B = F, V = A, H = M, U = ce, W = le, G = I, K = m.forwardRef(({ className: e, ...n }, r) => /* @__PURE__ */ (0, h.jsx)(L, {
|
|
118
|
+
className: t("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80", e),
|
|
119
|
+
...n,
|
|
120
|
+
ref: r
|
|
121
|
+
}));
|
|
122
|
+
K.displayName = L?.displayName || "AlertDialogOverlay";
|
|
123
|
+
var q = m.forwardRef(({ className: e, ...n }, r) => /* @__PURE__ */ (0, h.jsxs)(G, { children: [/* @__PURE__ */ (0, h.jsx)(K, {}), /* @__PURE__ */ (0, h.jsx)(R, {
|
|
124
|
+
ref: r,
|
|
125
|
+
className: t("bg-background 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%] fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg", e),
|
|
126
|
+
...n
|
|
127
|
+
})] }));
|
|
128
|
+
q.displayName = R?.displayName || "AlertDialogContent";
|
|
129
|
+
var J = ({ className: e, ...n }) => /* @__PURE__ */ (0, h.jsx)("div", {
|
|
130
|
+
className: t("flex flex-col space-y-2 text-center sm:text-left", e),
|
|
131
|
+
...n
|
|
132
|
+
});
|
|
133
|
+
J.displayName = "AlertDialogHeader";
|
|
134
|
+
var Y = ({ className: e, ...n }) => /* @__PURE__ */ (0, h.jsx)("div", {
|
|
135
|
+
className: t("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e),
|
|
136
|
+
...n
|
|
137
|
+
});
|
|
138
|
+
Y.displayName = "AlertDialogFooter";
|
|
139
|
+
var X = m.forwardRef(({ className: e, ...n }, r) => /* @__PURE__ */ (0, h.jsx)(V, {
|
|
140
|
+
ref: r,
|
|
141
|
+
className: t("text-lg font-semibold", e),
|
|
142
|
+
...n
|
|
143
|
+
}));
|
|
144
|
+
X.displayName = V?.displayName || "AlertDialogTitle";
|
|
145
|
+
var Z = m.forwardRef(({ className: e, ...n }, r) => /* @__PURE__ */ (0, h.jsx)(H, {
|
|
146
|
+
ref: r,
|
|
147
|
+
className: t("text-muted-foreground text-sm", e),
|
|
148
|
+
...n
|
|
149
|
+
}));
|
|
150
|
+
Z.displayName = H?.displayName || "AlertDialogDescription";
|
|
151
|
+
var Q = m.forwardRef(({ className: e, ...n }, r) => /* @__PURE__ */ (0, h.jsx)(z, {
|
|
152
|
+
ref: r,
|
|
153
|
+
className: t(p(), e),
|
|
154
|
+
...n
|
|
155
|
+
}));
|
|
156
|
+
Q.displayName = z?.displayName || "AlertDialogAction";
|
|
157
|
+
var $ = m.forwardRef(({ className: e, ...n }, r) => /* @__PURE__ */ (0, h.jsx)(B, {
|
|
158
|
+
ref: r,
|
|
159
|
+
className: t(p({ variant: "outline" }), "mt-2 sm:mt-0", e),
|
|
160
|
+
...n
|
|
161
|
+
}));
|
|
162
|
+
$.displayName = B?.displayName || "AlertDialogCancel";
|
|
163
|
+
//#endregion
|
|
164
|
+
export { Z as a, K as c, W as d, q as i, G as l, Q as n, Y as o, $ as r, J as s, U as t, X as u };
|
package/dist/alert-dialog.cjs
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
"use client";"use
|
|
2
|
-
|
|
3
|
-
You can add a description to the \`${d}\` by passing a \`${C}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
4
|
-
|
|
5
|
-
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${d}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
6
|
-
|
|
7
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return s.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},se=R,le=j,ie=y,P=N,h=E,$=S,M=w,q=_,I=O;const ne=se,ce=le,F=ie,m=s.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(P,{className:c.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",e),...t,ref:o}));m.displayName=P?.displayName||"AlertDialogOverlay";const z=s.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsxs(F,{children:[a.jsxRuntimeExports.jsx(m,{}),a.jsxRuntimeExports.jsx(h,{ref:o,className:c.cn("bg-background 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%] fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg",e),...t})]}));z.displayName=h?.displayName||"AlertDialogContent";const H=({className:e,...t})=>a.jsxRuntimeExports.jsx("div",{className:c.cn("flex flex-col space-y-2 text-center sm:text-left",e),...t});H.displayName="AlertDialogHeader";const L=({className:e,...t})=>a.jsxRuntimeExports.jsx("div",{className:c.cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});L.displayName="AlertDialogFooter";const k=s.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(q,{ref:o,className:c.cn("text-lg font-semibold",e),...t}));k.displayName=q?.displayName||"AlertDialogTitle";const G=s.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(I,{ref:o,className:c.cn("text-muted-foreground text-sm",e),...t}));G.displayName=I?.displayName||"AlertDialogDescription";const V=s.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx($,{ref:o,className:c.cn(D.buttonVariants(),e),...t}));V.displayName=$?.displayName||"AlertDialogAction";const W=s.forwardRef(({className:e,...t},o)=>a.jsxRuntimeExports.jsx(M,{ref:o,className:c.cn(D.buttonVariants({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));W.displayName=M?.displayName||"AlertDialogCancel";exports.AlertDialog=ne;exports.AlertDialogAction=V;exports.AlertDialogCancel=W;exports.AlertDialogContent=z;exports.AlertDialogDescription=G;exports.AlertDialogFooter=L;exports.AlertDialogHeader=H;exports.AlertDialogOverlay=m;exports.AlertDialogPortal=F;exports.AlertDialogTitle=k;exports.AlertDialogTrigger=ce;
|
|
1
|
+
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./alert-dialog-BXRY0Ghq.js`);require(`./button.cjs`),exports.AlertDialog=e.t,exports.AlertDialogAction=e.n,exports.AlertDialogCancel=e.r,exports.AlertDialogContent=e.i,exports.AlertDialogDescription=e.a,exports.AlertDialogFooter=e.o,exports.AlertDialogHeader=e.s,exports.AlertDialogOverlay=e.c,exports.AlertDialogPortal=e.l,exports.AlertDialogTitle=e.u,exports.AlertDialogTrigger=e.d;
|
package/dist/alert-dialog.mjs
CHANGED
|
@@ -1,172 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
import { O as G, P as H, W, C as k, T as V, D as Y, a as u, c as A, R as q, b as B } from "./index-DlY82G31.mjs";
|
|
7
|
-
import { c as J, b as K } from "./index-K9FzbxYw.mjs";
|
|
8
|
-
import { buttonVariants as D } from "./button.mjs";
|
|
9
|
-
import { c as n } from "./utils-DY6fhrgS.mjs";
|
|
10
|
-
var v = "AlertDialog", [Q] = L(v, [
|
|
11
|
-
A
|
|
12
|
-
]), i = A(), x = (e) => {
|
|
13
|
-
const { __scopeAlertDialog: a, ...t } = e, r = i(a);
|
|
14
|
-
return /* @__PURE__ */ o.jsx(q, { ...r, ...t, modal: !0 });
|
|
15
|
-
};
|
|
16
|
-
x.displayName = v;
|
|
17
|
-
var U = "AlertDialogTrigger", N = s.forwardRef(
|
|
18
|
-
(e, a) => {
|
|
19
|
-
const { __scopeAlertDialog: t, ...r } = e, l = i(t);
|
|
20
|
-
return /* @__PURE__ */ o.jsx(B, { ...l, ...r, ref: a });
|
|
21
|
-
}
|
|
22
|
-
);
|
|
23
|
-
N.displayName = U;
|
|
24
|
-
var X = "AlertDialogPortal", y = (e) => {
|
|
25
|
-
const { __scopeAlertDialog: a, ...t } = e, r = i(a);
|
|
26
|
-
return /* @__PURE__ */ o.jsx(H, { ...r, ...t });
|
|
27
|
-
};
|
|
28
|
-
y.displayName = X;
|
|
29
|
-
var Z = "AlertDialogOverlay", R = s.forwardRef(
|
|
30
|
-
(e, a) => {
|
|
31
|
-
const { __scopeAlertDialog: t, ...r } = e, l = i(t);
|
|
32
|
-
return /* @__PURE__ */ o.jsx(G, { ...l, ...r, ref: a });
|
|
33
|
-
}
|
|
34
|
-
);
|
|
35
|
-
R.displayName = Z;
|
|
36
|
-
var c = "AlertDialogContent", [ee, ae] = Q(c), te = K("AlertDialogContent"), _ = s.forwardRef(
|
|
37
|
-
(e, a) => {
|
|
38
|
-
const { __scopeAlertDialog: t, children: r, ...l } = e, g = i(t), p = s.useRef(null), z = f(a, p), m = s.useRef(null);
|
|
39
|
-
return /* @__PURE__ */ o.jsx(
|
|
40
|
-
W,
|
|
41
|
-
{
|
|
42
|
-
contentName: c,
|
|
43
|
-
titleName: j,
|
|
44
|
-
docsSlug: "alert-dialog",
|
|
45
|
-
children: /* @__PURE__ */ o.jsx(ee, { scope: t, cancelRef: m, children: /* @__PURE__ */ o.jsxs(
|
|
46
|
-
k,
|
|
47
|
-
{
|
|
48
|
-
role: "alertdialog",
|
|
49
|
-
...g,
|
|
50
|
-
...l,
|
|
51
|
-
ref: z,
|
|
52
|
-
onOpenAutoFocus: J(l.onOpenAutoFocus, (d) => {
|
|
53
|
-
d.preventDefault(), m.current?.focus({ preventScroll: !0 });
|
|
54
|
-
}),
|
|
55
|
-
onPointerDownOutside: (d) => d.preventDefault(),
|
|
56
|
-
onInteractOutside: (d) => d.preventDefault(),
|
|
57
|
-
children: [
|
|
58
|
-
/* @__PURE__ */ o.jsx(te, { children: r }),
|
|
59
|
-
/* @__PURE__ */ o.jsx(re, { contentRef: p })
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
) })
|
|
63
|
-
}
|
|
64
|
-
);
|
|
65
|
-
}
|
|
66
|
-
);
|
|
67
|
-
_.displayName = c;
|
|
68
|
-
var j = "AlertDialogTitle", C = s.forwardRef(
|
|
69
|
-
(e, a) => {
|
|
70
|
-
const { __scopeAlertDialog: t, ...r } = e, l = i(t);
|
|
71
|
-
return /* @__PURE__ */ o.jsx(V, { ...l, ...r, ref: a });
|
|
72
|
-
}
|
|
73
|
-
);
|
|
74
|
-
C.displayName = j;
|
|
75
|
-
var b = "AlertDialogDescription", h = s.forwardRef((e, a) => {
|
|
76
|
-
const { __scopeAlertDialog: t, ...r } = e, l = i(t);
|
|
77
|
-
return /* @__PURE__ */ o.jsx(Y, { ...l, ...r, ref: a });
|
|
78
|
-
});
|
|
79
|
-
h.displayName = b;
|
|
80
|
-
var oe = "AlertDialogAction", w = s.forwardRef(
|
|
81
|
-
(e, a) => {
|
|
82
|
-
const { __scopeAlertDialog: t, ...r } = e, l = i(t);
|
|
83
|
-
return /* @__PURE__ */ o.jsx(u, { ...l, ...r, ref: a });
|
|
84
|
-
}
|
|
85
|
-
);
|
|
86
|
-
w.displayName = oe;
|
|
87
|
-
var E = "AlertDialogCancel", T = s.forwardRef(
|
|
88
|
-
(e, a) => {
|
|
89
|
-
const { __scopeAlertDialog: t, ...r } = e, { cancelRef: l } = ae(E, t), g = i(t), p = f(a, l);
|
|
90
|
-
return /* @__PURE__ */ o.jsx(u, { ...g, ...r, ref: p });
|
|
91
|
-
}
|
|
92
|
-
);
|
|
93
|
-
T.displayName = E;
|
|
94
|
-
var re = ({ contentRef: e }) => {
|
|
95
|
-
const a = `\`${c}\` requires a description for the component to be accessible for screen reader users.
|
|
96
|
-
|
|
97
|
-
You can add a description to the \`${c}\` by passing a \`${b}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
98
|
-
|
|
99
|
-
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${c}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
100
|
-
|
|
101
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;
|
|
102
|
-
return s.useEffect(() => {
|
|
103
|
-
document.getElementById(
|
|
104
|
-
e.current?.getAttribute("aria-describedby")
|
|
105
|
-
) || console.warn(a);
|
|
106
|
-
}, [a, e]), null;
|
|
107
|
-
}, se = x, le = N, ie = y, P = R, S = _, O = w, $ = T, M = C, I = h;
|
|
108
|
-
const _e = se, je = le, ne = ie, F = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
|
|
109
|
-
P,
|
|
110
|
-
{
|
|
111
|
-
className: n(
|
|
112
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",
|
|
113
|
-
e
|
|
114
|
-
),
|
|
115
|
-
...a,
|
|
116
|
-
ref: t
|
|
117
|
-
}
|
|
118
|
-
));
|
|
119
|
-
F.displayName = P?.displayName || "AlertDialogOverlay";
|
|
120
|
-
const ce = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsxs(ne, { children: [
|
|
121
|
-
/* @__PURE__ */ o.jsx(F, {}),
|
|
122
|
-
/* @__PURE__ */ o.jsx(
|
|
123
|
-
S,
|
|
124
|
-
{
|
|
125
|
-
ref: t,
|
|
126
|
-
className: n(
|
|
127
|
-
"bg-background 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%] fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg",
|
|
128
|
-
e
|
|
129
|
-
),
|
|
130
|
-
...a
|
|
131
|
-
}
|
|
132
|
-
)
|
|
133
|
-
] }));
|
|
134
|
-
ce.displayName = S?.displayName || "AlertDialogContent";
|
|
135
|
-
const de = ({
|
|
136
|
-
className: e,
|
|
137
|
-
...a
|
|
138
|
-
}) => /* @__PURE__ */ o.jsx("div", { className: n("flex flex-col space-y-2 text-center sm:text-left", e), ...a });
|
|
139
|
-
de.displayName = "AlertDialogHeader";
|
|
140
|
-
const pe = ({
|
|
141
|
-
className: e,
|
|
142
|
-
...a
|
|
143
|
-
}) => /* @__PURE__ */ o.jsx("div", { className: n("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...a });
|
|
144
|
-
pe.displayName = "AlertDialogFooter";
|
|
145
|
-
const ge = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(M, { ref: t, className: n("text-lg font-semibold", e), ...a }));
|
|
146
|
-
ge.displayName = M?.displayName || "AlertDialogTitle";
|
|
147
|
-
const me = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(I, { ref: t, className: n("text-muted-foreground text-sm", e), ...a }));
|
|
148
|
-
me.displayName = I?.displayName || "AlertDialogDescription";
|
|
149
|
-
const fe = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(O, { ref: t, className: n(D(), e), ...a }));
|
|
150
|
-
fe.displayName = O?.displayName || "AlertDialogAction";
|
|
151
|
-
const ue = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
|
|
152
|
-
$,
|
|
153
|
-
{
|
|
154
|
-
ref: t,
|
|
155
|
-
className: n(D({ variant: "outline" }), "mt-2 sm:mt-0", e),
|
|
156
|
-
...a
|
|
157
|
-
}
|
|
158
|
-
));
|
|
159
|
-
ue.displayName = $?.displayName || "AlertDialogCancel";
|
|
160
|
-
export {
|
|
161
|
-
_e as AlertDialog,
|
|
162
|
-
fe as AlertDialogAction,
|
|
163
|
-
ue as AlertDialogCancel,
|
|
164
|
-
ce as AlertDialogContent,
|
|
165
|
-
me as AlertDialogDescription,
|
|
166
|
-
pe as AlertDialogFooter,
|
|
167
|
-
de as AlertDialogHeader,
|
|
168
|
-
F as AlertDialogOverlay,
|
|
169
|
-
ne as AlertDialogPortal,
|
|
170
|
-
ge as AlertDialogTitle,
|
|
171
|
-
je as AlertDialogTrigger
|
|
172
|
-
};
|
|
2
|
+
"use client";
|
|
3
|
+
import { a as e, c as t, d as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "./alert-dialog-fcZ-sL7h.mjs";
|
|
4
|
+
import "./button.mjs";
|
|
5
|
+
export { l as AlertDialog, a as AlertDialogAction, s as AlertDialogCancel, r as AlertDialogContent, e as AlertDialogDescription, o as AlertDialogFooter, c as AlertDialogHeader, t as AlertDialogOverlay, i as AlertDialogPortal, u as AlertDialogTitle, n as AlertDialogTrigger };
|
package/dist/alert.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use
|
|
1
|
+
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./jsx-runtime-CN3qjQQx.js`),t=require(`./utils-BxDanjP7.js`);let n=require(`react`);n=e.i(n);let r=require(`class-variance-authority`);var i=e.t(),a=(0,r.cva)(`relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7`,{variants:{variant:{default:`bg-background text-foreground`,destructive:`border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive`,warning:`border-amber-500/50 bg-amber-500/10 text-amber-600 dark:text-amber-400 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-400`,info:`border-blue-500/50 bg-blue-500/10 text-blue-600 dark:text-blue-400 [&>svg]:text-blue-600 dark:[&>svg]:text-blue-400`}},defaultVariants:{variant:`default`}}),o=n.forwardRef(({className:e,variant:n,...r},o)=>(0,i.jsx)(`div`,{ref:o,role:`alert`,className:t.t(a({variant:n}),e),...r}));o.displayName=`Alert`;var s=n.forwardRef(({className:e,...n},r)=>(0,i.jsx)(`h5`,{ref:r,className:t.t(`mb-1 leading-none font-medium tracking-tight`,e),...n}));s.displayName=`AlertTitle`;var c=n.forwardRef(({className:e,...n},r)=>(0,i.jsx)(`div`,{ref:r,className:t.t(`text-sm [&_p]:leading-relaxed`,e),...n}));c.displayName=`AlertDescription`,exports.Alert=o,exports.AlertDescription=c,exports.AlertTitle=s;
|
package/dist/alert.mjs
CHANGED
|
@@ -1,33 +1,36 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
)
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
};
|
|
2
|
+
"use client";
|
|
3
|
+
import { t as e } from "./jsx-runtime-CW53Uo-e.mjs";
|
|
4
|
+
import { t } from "./utils-yc5uc46c.mjs";
|
|
5
|
+
import * as n from "react";
|
|
6
|
+
import { cva as r } from "class-variance-authority";
|
|
7
|
+
//#region src/alert.tsx
|
|
8
|
+
var i = e(), a = r("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7", {
|
|
9
|
+
variants: { variant: {
|
|
10
|
+
default: "bg-background text-foreground",
|
|
11
|
+
destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",
|
|
12
|
+
warning: "border-amber-500/50 bg-amber-500/10 text-amber-600 dark:text-amber-400 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-400",
|
|
13
|
+
info: "border-blue-500/50 bg-blue-500/10 text-blue-600 dark:text-blue-400 [&>svg]:text-blue-600 dark:[&>svg]:text-blue-400"
|
|
14
|
+
} },
|
|
15
|
+
defaultVariants: { variant: "default" }
|
|
16
|
+
}), o = n.forwardRef(({ className: e, variant: n, ...r }, o) => /* @__PURE__ */ (0, i.jsx)("div", {
|
|
17
|
+
ref: o,
|
|
18
|
+
role: "alert",
|
|
19
|
+
className: t(a({ variant: n }), e),
|
|
20
|
+
...r
|
|
21
|
+
}));
|
|
22
|
+
o.displayName = "Alert";
|
|
23
|
+
var s = n.forwardRef(({ className: e, ...n }, r) => /* @__PURE__ */ (0, i.jsx)("h5", {
|
|
24
|
+
ref: r,
|
|
25
|
+
className: t("mb-1 leading-none font-medium tracking-tight", e),
|
|
26
|
+
...n
|
|
27
|
+
}));
|
|
28
|
+
s.displayName = "AlertTitle";
|
|
29
|
+
var c = n.forwardRef(({ className: e, ...n }, r) => /* @__PURE__ */ (0, i.jsx)("div", {
|
|
30
|
+
ref: r,
|
|
31
|
+
className: t("text-sm [&_p]:leading-relaxed", e),
|
|
32
|
+
...n
|
|
33
|
+
}));
|
|
34
|
+
c.displayName = "AlertDescription";
|
|
35
|
+
//#endregion
|
|
36
|
+
export { o as Alert, c as AlertDescription, s as AlertTitle };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./jsx-runtime-CN3qjQQx.js`),t=require(`./dist-r36zVVcK.js`);let n=require(`react`);n=e.i(n,1);var r=e.t(),i=`AspectRatio`,a=n.forwardRef((e,n)=>{let{ratio:i=1/1,style:a,...o}=e;return(0,r.jsx)(`div`,{style:{position:`relative`,width:`100%`,paddingBottom:`${100/i}%`},"data-radix-aspect-ratio-wrapper":``,children:(0,r.jsx)(t.t.div,{...o,ref:n,style:{...a,position:`absolute`,top:0,right:0,bottom:0,left:0}})})});a.displayName=i;var o=a;Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return o}});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { t as e } from "./jsx-runtime-CW53Uo-e.mjs";
|
|
2
|
+
import { t } from "./dist-DqvQ5UFr.mjs";
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
//#region ../../node_modules/.bun/@radix-ui+react-aspect-ratio@1.1.8+2d3f272c3a65784a/node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs
|
|
5
|
+
var r = e(), i = "AspectRatio", a = n.forwardRef((e, n) => {
|
|
6
|
+
let { ratio: i = 1 / 1, style: a, ...o } = e;
|
|
7
|
+
return /* @__PURE__ */ (0, r.jsx)("div", {
|
|
8
|
+
style: {
|
|
9
|
+
position: "relative",
|
|
10
|
+
width: "100%",
|
|
11
|
+
paddingBottom: `${100 / i}%`
|
|
12
|
+
},
|
|
13
|
+
"data-radix-aspect-ratio-wrapper": "",
|
|
14
|
+
children: /* @__PURE__ */ (0, r.jsx)(t.div, {
|
|
15
|
+
...o,
|
|
16
|
+
ref: n,
|
|
17
|
+
style: {
|
|
18
|
+
...a,
|
|
19
|
+
position: "absolute",
|
|
20
|
+
top: 0,
|
|
21
|
+
right: 0,
|
|
22
|
+
bottom: 0,
|
|
23
|
+
left: 0
|
|
24
|
+
}
|
|
25
|
+
})
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
a.displayName = i;
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/aspect-ratio.tsx
|
|
31
|
+
var o = a;
|
|
32
|
+
//#endregion
|
|
33
|
+
export { o as t };
|
package/dist/aspect-ratio.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use
|
|
1
|
+
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./aspect-ratio-BP5HarYZ.js`);exports.AspectRatio=e.t;
|
package/dist/aspect-ratio.mjs
CHANGED
|
@@ -1,44 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
var c = "AspectRatio", o = p.forwardRef(
|
|
6
|
-
(i, r) => {
|
|
7
|
-
const { ratio: a = 1 / 1, style: e, ...s } = i;
|
|
8
|
-
return /* @__PURE__ */ t.jsx(
|
|
9
|
-
"div",
|
|
10
|
-
{
|
|
11
|
-
style: {
|
|
12
|
-
// ensures inner element is contained
|
|
13
|
-
position: "relative",
|
|
14
|
-
// ensures padding bottom trick maths works
|
|
15
|
-
width: "100%",
|
|
16
|
-
paddingBottom: `${100 / a}%`
|
|
17
|
-
},
|
|
18
|
-
"data-radix-aspect-ratio-wrapper": "",
|
|
19
|
-
children: /* @__PURE__ */ t.jsx(
|
|
20
|
-
m.div,
|
|
21
|
-
{
|
|
22
|
-
...s,
|
|
23
|
-
ref: r,
|
|
24
|
-
style: {
|
|
25
|
-
...e,
|
|
26
|
-
// ensures children expand in ratio
|
|
27
|
-
position: "absolute",
|
|
28
|
-
top: 0,
|
|
29
|
-
right: 0,
|
|
30
|
-
bottom: 0,
|
|
31
|
-
left: 0
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
)
|
|
35
|
-
}
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
o.displayName = c;
|
|
40
|
-
var d = o;
|
|
41
|
-
const R = d;
|
|
42
|
-
export {
|
|
43
|
-
R as AspectRatio
|
|
44
|
-
};
|
|
2
|
+
"use client";
|
|
3
|
+
import { t as e } from "./aspect-ratio-Bp8HMg-1.mjs";
|
|
4
|
+
export { e as AspectRatio };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./jsx-runtime-CN3qjQQx.js`),t=require(`./utils-BxDanjP7.js`),n=require(`./dist-CscAxhT8.js`),r=require(`./dist-cRjbOZRf.js`),i=require(`./dist-r36zVVcK.js`),a=require(`./dist-CRe7xawr.js`);let o=require(`react`),s=e.i(o,1);o=e.i(o);var c=e.n((e=>{var t=require(`react`);function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),l=e.n((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}function n(e,t){d||a.startTransition===void 0||(d=!0,console.error(`You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.`));var n=t();if(!f){var i=t();o(n,i)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),f=!0)}i=s({inst:{value:n,getSnapshot:t}});var p=i[0].inst,m=i[1];return l(function(){p.value=n,p.getSnapshot=t,r(p)&&m({inst:p})},[e,n,t]),c(function(){return r(p)&&m({inst:p}),e(function(){r(p)&&m({inst:p})})},[e]),u(n),n}function r(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch{return!0}}function i(e,t){return t()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=require(`react`),o=typeof Object.is==`function`?Object.is:t,s=a.useState,c=a.useEffect,l=a.useLayoutEffect,u=a.useDebugValue,d=!1,f=!1,p=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?i:n;e.useSyncExternalStore=a.useSyncExternalStore===void 0?p:a.useSyncExternalStore,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),u=e.n(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=c():t.exports=l()}))();function d(){return(0,u.useSyncExternalStore)(f,()=>!0,()=>!1)}function f(){return()=>{}}var p=e.t(),m=`Avatar`,[h,g]=a.t(m),[_,v]=h(m),y=s.forwardRef((e,t)=>{let{__scopeAvatar:n,...r}=e,[a,o]=s.useState(`idle`);return(0,p.jsx)(_,{scope:n,imageLoadingStatus:a,onImageLoadingStatusChange:o,children:(0,p.jsx)(i.t.span,{...r,ref:t})})});y.displayName=m;var b=`AvatarImage`,x=s.forwardRef((e,t)=>{let{__scopeAvatar:a,src:o,onLoadingStatusChange:s=()=>{},...c}=e,l=v(b,a),u=T(o,c),d=r.t(e=>{s(e),l.onImageLoadingStatusChange(e)});return n.t(()=>{u!==`idle`&&d(u)},[u,d]),u===`loaded`?(0,p.jsx)(i.t.img,{...c,ref:t,src:o}):null});x.displayName=b;var S=`AvatarFallback`,C=s.forwardRef((e,t)=>{let{__scopeAvatar:n,delayMs:r,...a}=e,o=v(S,n),[c,l]=s.useState(r===void 0);return s.useEffect(()=>{if(r!==void 0){let e=window.setTimeout(()=>l(!0),r);return()=>window.clearTimeout(e)}},[r]),c&&o.imageLoadingStatus!==`loaded`?(0,p.jsx)(i.t.span,{...a,ref:t}):null});C.displayName=S;function w(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?`loaded`:`loading`):`error`:`idle`}function T(e,{referrerPolicy:t,crossOrigin:r}){let i=d(),a=s.useRef(null),o=i?(a.current||=new window.Image,a.current):null,[c,l]=s.useState(()=>w(o,e));return n.t(()=>{l(w(o,e))},[o,e]),n.t(()=>{let e=e=>()=>{l(e)};if(!o)return;let n=e(`loaded`),i=e(`error`);return o.addEventListener(`load`,n),o.addEventListener(`error`,i),t&&(o.referrerPolicy=t),typeof r==`string`&&(o.crossOrigin=r),()=>{o.removeEventListener(`load`,n),o.removeEventListener(`error`,i)}},[o,r,t]),c}var E=y,D=x,O=C,k=o.forwardRef(({className:e,...n},r)=>(0,p.jsx)(E,{ref:r,className:t.t(`relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full`,e),...n}));k.displayName=E?.displayName||`Avatar`;var A=o.forwardRef(({className:e,...n},r)=>(0,p.jsx)(D,{ref:r,className:t.t(`aspect-square h-full w-full`,e),...n}));A.displayName=D?.displayName||`AvatarImage`;var j=o.forwardRef(({className:e,...n},r)=>(0,p.jsx)(O,{ref:r,className:t.t(`bg-muted flex h-full w-full items-center justify-center rounded-full`,e),...n}));j.displayName=O?.displayName||`AvatarFallback`,Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return k}});
|