@gv-tech/ui-web 2.29.1 → 2.29.3
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.cjs +1 -1
- package/dist/accordion.mjs +53 -2
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.mjs +99 -2
- package/dist/alert.cjs +1 -1
- package/dist/alert.mjs +2 -3
- package/dist/aspect-ratio.cjs +1 -1
- package/dist/aspect-ratio.mjs +10 -2
- package/dist/attachment.cjs +1 -1
- package/dist/attachment.mjs +26 -26
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.mjs +49 -2
- package/dist/badge.cjs +1 -1
- package/dist/badge.mjs +5 -5
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.mjs +13 -13
- package/dist/bubble.cjs +1 -1
- package/dist/bubble.mjs +5 -5
- package/dist/button-group.cjs +1 -1
- package/dist/button-group.mjs +13 -13
- package/dist/button.cjs +1 -1
- package/dist/button.mjs +5 -5
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.mjs +97 -2
- package/dist/card.cjs +1 -1
- package/dist/card.mjs +2 -3
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.mjs +107 -2
- package/dist/chart.cjs +2 -2
- package/dist/chart.mjs +14 -15
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.mjs +19 -2
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.mjs +13 -14
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.mjs +161 -2
- package/dist/command.cjs +1 -1
- package/dist/command.mjs +89 -2
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.mjs +123 -2
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.mjs +41 -42
- package/dist/direction.cjs +1 -1
- package/dist/direction.mjs +8 -9
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.mjs +2 -3
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.mjs +126 -2
- package/dist/empty.cjs +1 -1
- package/dist/empty.mjs +2 -3
- package/dist/field.cjs +1 -1
- package/dist/field.mjs +37 -38
- package/dist/form.cjs +1 -1
- package/dist/form.mjs +34 -35
- package/dist/hooks/use-theme.d.ts +52 -52
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.mjs +30 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +66 -66
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.mjs +27 -28
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.mjs +45 -2
- package/dist/input.cjs +1 -1
- package/dist/input.mjs +2 -3
- package/dist/item.cjs +1 -1
- package/dist/item.mjs +29 -29
- package/dist/kbd.cjs +1 -1
- package/dist/kbd.mjs +2 -3
- package/dist/label.cjs +1 -1
- package/dist/label.mjs +13 -2
- package/dist/marker.cjs +1 -1
- package/dist/marker.mjs +5 -5
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.mjs +133 -2
- package/dist/message-scroller.cjs +1 -1
- package/dist/message-scroller.mjs +59 -2
- package/dist/message.cjs +1 -1
- package/dist/message.mjs +2 -3
- package/dist/native-select.cjs +1 -1
- package/dist/native-select.mjs +2 -3
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.mjs +79 -2
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.mjs +15 -16
- package/dist/popover.cjs +1 -1
- package/dist/popover.mjs +54 -2
- package/dist/progress.cjs +1 -1
- package/dist/progress.mjs +19 -2
- package/dist/questionnaire.cjs +1 -1
- package/dist/questionnaire.mjs +168 -2
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.mjs +25 -2
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.mjs +26 -2
- package/dist/rolldown-runtime-BocRIvOZ.js +1 -0
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.mjs +35 -2
- package/dist/scroll-to-top.cjs +1 -1
- package/dist/scroll-to-top.mjs +6 -11
- package/dist/search.cjs +1 -1
- package/dist/search.mjs +12 -13
- package/dist/select.cjs +1 -1
- package/dist/select.mjs +98 -2
- package/dist/separator.cjs +1 -1
- package/dist/separator.mjs +15 -2
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.mjs +39 -40
- package/dist/{sidebar-DM9ee9wf.mjs → sidebar-DrU3nKaL.mjs} +137 -135
- package/dist/sidebar-uOtFHnBs.js +1 -0
- package/dist/sidebar.cjs +1 -1
- package/dist/sidebar.mjs +3 -2
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.mjs +2 -3
- package/dist/slider.cjs +1 -1
- package/dist/slider.mjs +34 -2
- package/dist/sonner.mjs +1 -2
- package/dist/spinner.cjs +1 -1
- package/dist/spinner.mjs +2 -3
- package/dist/support-fab.cjs +1 -1
- package/dist/support-fab.mjs +21 -22
- package/dist/switch.cjs +1 -1
- package/dist/switch.mjs +18 -2
- package/dist/table-of-contents.cjs +1 -1
- package/dist/table-of-contents.mjs +5 -6
- package/dist/table.cjs +1 -1
- package/dist/table.mjs +2 -3
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.mjs +44 -2
- package/dist/text.cjs +1 -1
- package/dist/text.mjs +14 -12
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.mjs +2 -3
- package/dist/theme-provider.mjs +1 -2
- package/dist/{theme-toggle-3RStptYf.mjs → theme-toggle-9KtAIRxy.mjs} +18 -20
- package/dist/theme-toggle-DkNI3bfh.js +1 -0
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.mjs +2 -2
- package/dist/toast.cjs +1 -1
- package/dist/toast.mjs +52 -2
- package/dist/{toaster-gT2b7mfE.mjs → toaster-8RrHPtlc.mjs} +10 -12
- package/dist/toaster-AFud4l6l.js +1 -0
- package/dist/toaster.cjs +1 -1
- package/dist/toaster.mjs +2 -2
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.mjs +49 -2
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.mjs +35 -2
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.mjs +34 -2
- package/dist/{utils-A_oVsYw5.mjs → utils-DQKc9joa.mjs} +1 -2
- package/package.json +3 -3
- package/dist/accordion-D5QXSsCK.mjs +0 -248
- package/dist/accordion-DjyDOX-h.js +0 -1
- package/dist/alert-dialog-B-a0Wa1M.mjs +0 -182
- package/dist/alert-dialog-DYQAhGBC.js +0 -1
- package/dist/aspect-ratio-C-KOOyGP.js +0 -1
- package/dist/aspect-ratio-s7Ji1MSr.mjs +0 -40
- package/dist/avatar-4K3XjhP8.js +0 -1
- package/dist/avatar-d8Di248f.mjs +0 -138
- package/dist/calendar-DFj14O6r.js +0 -1
- package/dist/calendar-UW8h9dfh.mjs +0 -3182
- package/dist/carousel-CNGpg5df.js +0 -1
- package/dist/carousel-DG9xGJns.mjs +0 -1171
- package/dist/checkbox-BCgbTAdU.js +0 -1
- package/dist/checkbox-Dq8VHKDH.mjs +0 -186
- package/dist/chunk-BmowowmI.mjs +0 -14
- package/dist/chunk-HBS6WEDP-CQNaACTf.js +0 -1
- package/dist/chunk-HBS6WEDP-aK8IuEX9.mjs +0 -63
- package/dist/chunk-mLOUI7ql.js +0 -1
- package/dist/combobox-CpPIGtPJ.js +0 -4
- package/dist/combobox-b4OmCNw1.mjs +0 -5887
- package/dist/command-5hobOyGG.mjs +0 -545
- package/dist/command-Dbqnm9kI.js +0 -1
- package/dist/context-menu-DyTUismw.js +0 -1
- package/dist/context-menu-DzzU-_v8.mjs +0 -317
- package/dist/dist-1zUKVGvf.js +0 -1
- package/dist/dist-B057I8ju.mjs +0 -30
- package/dist/dist-BB78QQyQ.mjs +0 -41
- package/dist/dist-BBvidwzC.js +0 -1
- package/dist/dist-BEbV0Hal.mjs +0 -45
- package/dist/dist-BPL7gUpg.mjs +0 -18
- package/dist/dist-BTUvBzOm.js +0 -1
- package/dist/dist-BU-TFzJf.js +0 -1
- package/dist/dist-Bb5W_J2F.mjs +0 -39
- package/dist/dist-BbI6NHqR.mjs +0 -23
- package/dist/dist-BexAB6yo.mjs +0 -192
- package/dist/dist-BgXIqHHq.js +0 -1
- package/dist/dist-Bvfb4y_L.mjs +0 -100
- package/dist/dist-C8Pm6LRc.js +0 -1
- package/dist/dist-CGgemr2V.js +0 -1
- package/dist/dist-CPAF050o.mjs +0 -90
- package/dist/dist-CS572Be42.mjs +0 -11
- package/dist/dist-CUvxOuXM.mjs +0 -551
- package/dist/dist-C_iFkwIX.js +0 -1
- package/dist/dist-ClYM7l1t.js +0 -1
- package/dist/dist-CpKLY_uZ.mjs +0 -96
- package/dist/dist-D1qkELLT.js +0 -1
- package/dist/dist-D7-Fky36.js +0 -1
- package/dist/dist-DEpkkABT.js +0 -1
- package/dist/dist-DI1vapnL.mjs +0 -20
- package/dist/dist-DJqkhIXb2.js +0 -1
- package/dist/dist-DKXojpVG.js +0 -1
- package/dist/dist-DYUvPCPC.js +0 -1
- package/dist/dist-DZiOPWLp.js +0 -1
- package/dist/dist-DatgTWLz.mjs +0 -202
- package/dist/dist-Dm3IQk5b.mjs +0 -685
- package/dist/dist-DoivLw3t.js +0 -1
- package/dist/dist-Dq-h6VAy.mjs +0 -118
- package/dist/dist-Dt6m-kwU.mjs +0 -221
- package/dist/dist-E8ieJTBC.mjs +0 -190
- package/dist/dist-GazS1kfR.mjs +0 -5
- package/dist/dist-N97cIp0_.js +0 -1
- package/dist/dist-OqDzLHTa.mjs +0 -460
- package/dist/dist-Qm9hFvM1.js +0 -1
- package/dist/dist-UkWa-Arh.mjs +0 -16
- package/dist/dist-UnTrOmPV.js +0 -1
- package/dist/dist-YAADIsyo.js +0 -1
- package/dist/dist-Zs2sjYhL.js +0 -1
- package/dist/dist-hFLuJoMi.js +0 -1
- package/dist/dist-s7ibhASj.mjs +0 -181
- package/dist/dist-vu20fMUK.mjs +0 -93
- package/dist/dropdown-menu-BqAhn64y.mjs +0 -313
- package/dist/dropdown-menu-BtKOr--r.js +0 -1
- package/dist/es2015-DbAsWDbs.js +0 -41
- package/dist/es2015-DbsmTzuc.mjs +0 -571
- package/dist/floating-ui.react-dom-BwFRxNGc.js +0 -1
- package/dist/floating-ui.react-dom-CyupHsR6.mjs +0 -1062
- package/dist/hover-card-DMsxpR9G.mjs +0 -178
- package/dist/hover-card-DWXusgiI.js +0 -1
- package/dist/input-otp-D49Y9VcH.mjs +0 -409
- package/dist/input-otp-u3obpt-Q.js +0 -20
- package/dist/label-Dacwh21G.js +0 -1
- package/dist/label-DsSICLPc.mjs +0 -28
- package/dist/menubar-BYNeRuzx.js +0 -1
- package/dist/menubar-DZqEj6S1.mjs +0 -407
- package/dist/message-scroller-CS4t7Ypn.mjs +0 -824
- package/dist/message-scroller-DqLu0YI6.js +0 -1
- package/dist/navigation-menu-B36G3O83.js +0 -1
- package/dist/navigation-menu-RO6thDOF.mjs +0 -636
- package/dist/popover-DSBkc70V.mjs +0 -243
- package/dist/popover-DUHbvKB8.js +0 -1
- package/dist/progress-B9z08UXf.js +0 -6
- package/dist/progress-CQ4nQ85t.mjs +0 -92
- package/dist/questionnaire-CVED7G7R.mjs +0 -1159
- package/dist/questionnaire-PWClWvST.js +0 -1
- package/dist/radio-group-Bd3WbH5I.js +0 -1
- package/dist/radio-group-TRiAhMZB.mjs +0 -266
- package/dist/resizable-Cq60hEWB.js +0 -1
- package/dist/resizable-Qc8cVUKd.mjs +0 -2857
- package/dist/scroll-area-D6MiNHnJ.mjs +0 -564
- package/dist/scroll-area-DFUdJeSZ.js +0 -1
- package/dist/select-BFJUmjvX.mjs +0 -830
- package/dist/select-iQFoKU1s.js +0 -1
- package/dist/separator-2kr96SyF.mjs +0 -40
- package/dist/separator-Bo49G2aj.js +0 -1
- package/dist/sidebar-C6O8hLkz.js +0 -1
- package/dist/slider-CagVxozY.js +0 -1
- package/dist/slider-CdTCoQu1.mjs +0 -485
- package/dist/switch-CoeAC1Wk.js +0 -1
- package/dist/switch-zUBdj7jK.mjs +0 -174
- package/dist/tabs-DaE9pEbo.mjs +0 -160
- package/dist/tabs-TMhXe20x.js +0 -1
- package/dist/theme-toggle-DKh8WFLT.js +0 -1
- package/dist/toast-B0S3F09s.js +0 -1
- package/dist/toast-D0Yb-K84.mjs +0 -445
- package/dist/toaster-CX9im8R_.js +0 -1
- package/dist/toggle-B0hXPsi7.js +0 -1
- package/dist/toggle-BAeKd2N0.mjs +0 -59
- package/dist/toggle-group-CEKhUozD.mjs +0 -167
- package/dist/toggle-group-htyug3G7.js +0 -1
- package/dist/tooltip-BZazhXDZ.js +0 -1
- package/dist/tooltip-R_nK_Qh5.mjs +0 -390
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./dist-Dm3IQk5b.mjs";
|
|
2
|
-
import { a as t, n } from "./dist-Dq-h6VAy.mjs";
|
|
3
|
-
import { t as r } from "./dist-BEbV0Hal.mjs";
|
|
4
|
-
import { t as i } from "./dist-CPAF050o.mjs";
|
|
5
|
-
import { t as a } from "./dist-BB78QQyQ.mjs";
|
|
6
|
-
import { t as o } from "./dist-Bvfb4y_L.mjs";
|
|
7
|
-
import { t as s } from "./dist-CpKLY_uZ.mjs";
|
|
8
|
-
import { t as c } from "./dist-UkWa-Arh.mjs";
|
|
9
|
-
import { t as l } from "./dist-s7ibhASj.mjs";
|
|
10
|
-
import { i as u, n as d, r as f, t as p } from "./dist-E8ieJTBC.mjs";
|
|
11
|
-
import { t as m } from "./dist-DI1vapnL.mjs";
|
|
12
|
-
import { n as h, r as g, t as _ } from "./es2015-DbsmTzuc.mjs";
|
|
13
|
-
import { a as v, i as y, n as b, t as x } from "./dist-Dt6m-kwU.mjs";
|
|
14
|
-
import * as S from "react";
|
|
15
|
-
import { jsx as C } from "react/jsx-runtime";
|
|
16
|
-
//#region ../../node_modules/.bun/@radix-ui+react-popover@1.3.1+b146eb580f4286be/node_modules/@radix-ui/react-popover/dist/index.mjs
|
|
17
|
-
var w = Object.defineProperty, T = (e, t) => w(e, "name", {
|
|
18
|
-
value: t,
|
|
19
|
-
configurable: !0
|
|
20
|
-
}), E = "Popover", [D, O] = i(E, [v]), k = v(), [A, j] = D(E), M = /* @__PURE__ */ T((e) => {
|
|
21
|
-
let { __scopePopover: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: s = !1 } = e, l = k(t), u = S.useRef(null), [d, f] = S.useState(!1), [p, m] = S.useState(0), [h, g] = S.useState(0), [_, v] = o({
|
|
22
|
-
prop: r,
|
|
23
|
-
defaultProp: i ?? !1,
|
|
24
|
-
onChange: a,
|
|
25
|
-
caller: E
|
|
26
|
-
});
|
|
27
|
-
return /* @__PURE__ */ C(x, {
|
|
28
|
-
...l,
|
|
29
|
-
children: /* @__PURE__ */ C(A, {
|
|
30
|
-
scope: t,
|
|
31
|
-
contentId: c(),
|
|
32
|
-
titleId: c(),
|
|
33
|
-
descriptionId: c(),
|
|
34
|
-
titlePresent: p > 0,
|
|
35
|
-
descriptionPresent: h > 0,
|
|
36
|
-
setTitleCount: m,
|
|
37
|
-
setDescriptionCount: g,
|
|
38
|
-
triggerRef: u,
|
|
39
|
-
open: _,
|
|
40
|
-
onOpenChange: v,
|
|
41
|
-
onOpenToggle: S.useCallback(() => v((e) => !e), [v]),
|
|
42
|
-
hasCustomAnchor: d,
|
|
43
|
-
onCustomAnchorAdd: S.useCallback(() => f(!0), []),
|
|
44
|
-
onCustomAnchorRemove: S.useCallback(() => f(!1), []),
|
|
45
|
-
modal: s,
|
|
46
|
-
children: n
|
|
47
|
-
})
|
|
48
|
-
});
|
|
49
|
-
}, "Popover"), N = "PopoverAnchor", P = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ T(function(e, t) {
|
|
50
|
-
let { __scopePopover: n, ...r } = e, i = j(N, n), a = k(n), { onCustomAnchorAdd: o, onCustomAnchorRemove: s } = i;
|
|
51
|
-
return S.useEffect(() => (o(), () => s()), [o, s]), /* @__PURE__ */ C(b, {
|
|
52
|
-
...a,
|
|
53
|
-
...r,
|
|
54
|
-
ref: t
|
|
55
|
-
});
|
|
56
|
-
}, "PopoverAnchor")), F = "PopoverTrigger", I = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ T(function(e, n) {
|
|
57
|
-
let { __scopePopover: i, ...o } = e, s = j(F, i), c = k(i), l = t(n, s.triggerRef), u = /* @__PURE__ */ C(r.button, {
|
|
58
|
-
type: "button",
|
|
59
|
-
"aria-haspopup": "dialog",
|
|
60
|
-
"aria-expanded": s.open,
|
|
61
|
-
"aria-controls": s.open ? s.contentId : void 0,
|
|
62
|
-
"data-state": q(s.open),
|
|
63
|
-
...o,
|
|
64
|
-
ref: l,
|
|
65
|
-
onClick: a(e.onClick, s.onOpenToggle)
|
|
66
|
-
});
|
|
67
|
-
return s.hasCustomAnchor ? u : /* @__PURE__ */ C(b, {
|
|
68
|
-
asChild: !0,
|
|
69
|
-
...c,
|
|
70
|
-
children: u
|
|
71
|
-
});
|
|
72
|
-
}, "PopoverTrigger")), L = "PopoverPortal", [R, z] = D(L, { forceMount: void 0 }), B = /* @__PURE__ */ T((e) => {
|
|
73
|
-
let { __scopePopover: t, forceMount: n, children: r, container: i } = e, a = j(L, t);
|
|
74
|
-
return /* @__PURE__ */ C(R, {
|
|
75
|
-
scope: t,
|
|
76
|
-
forceMount: n,
|
|
77
|
-
children: /* @__PURE__ */ C(s, {
|
|
78
|
-
present: n || a.open,
|
|
79
|
-
children: /* @__PURE__ */ C(m, {
|
|
80
|
-
asChild: !0,
|
|
81
|
-
container: i,
|
|
82
|
-
children: r
|
|
83
|
-
})
|
|
84
|
-
})
|
|
85
|
-
});
|
|
86
|
-
}, "PopoverPortal"), V = "PopoverContent", H = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ T(function(e, t) {
|
|
87
|
-
let n = z(V, e.__scopePopover), { forceMount: r = n.forceMount, ...i } = e, a = j(V, e.__scopePopover);
|
|
88
|
-
return /* @__PURE__ */ C(s, {
|
|
89
|
-
present: r || a.open,
|
|
90
|
-
children: a.modal ? /* @__PURE__ */ C(W, {
|
|
91
|
-
...i,
|
|
92
|
-
ref: t
|
|
93
|
-
}) : /* @__PURE__ */ C(G, {
|
|
94
|
-
...i,
|
|
95
|
-
ref: t
|
|
96
|
-
})
|
|
97
|
-
});
|
|
98
|
-
}, "PopoverContent")), U = n("PopoverContent.RemoveScroll"), W = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ T(function(e, n) {
|
|
99
|
-
let r = j(V, e.__scopePopover), i = S.useRef(null), o = t(n, i), s = S.useRef(!1), { nodes: c, registry: l } = u();
|
|
100
|
-
return S.useEffect(() => {
|
|
101
|
-
let e = i.current;
|
|
102
|
-
if (e) return _(e);
|
|
103
|
-
}, []), /* @__PURE__ */ C(h, {
|
|
104
|
-
as: U,
|
|
105
|
-
allowPinchZoom: !0,
|
|
106
|
-
shards: S.useMemo(() => [i, ...c.map((e) => ({ current: e }))], [i, c]),
|
|
107
|
-
children: /* @__PURE__ */ C(K, {
|
|
108
|
-
...e,
|
|
109
|
-
ref: o,
|
|
110
|
-
branchNodes: c,
|
|
111
|
-
branchRegistry: l,
|
|
112
|
-
trapFocus: r.open,
|
|
113
|
-
disableOutsidePointerEvents: !0,
|
|
114
|
-
onCloseAutoFocus: a(e.onCloseAutoFocus, (e) => {
|
|
115
|
-
e.preventDefault(), s.current || r.triggerRef.current?.focus();
|
|
116
|
-
}),
|
|
117
|
-
onPointerDownOutside: a(e.onPointerDownOutside, (e) => {
|
|
118
|
-
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
|
|
119
|
-
s.current = t.button === 2 || n;
|
|
120
|
-
}, { checkForDefaultPrevented: !1 }),
|
|
121
|
-
onFocusOutside: a(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 })
|
|
122
|
-
})
|
|
123
|
-
});
|
|
124
|
-
}, "PopoverContentModal")), G = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ T(function(e, t) {
|
|
125
|
-
let n = j(V, e.__scopePopover), r = S.useRef(!1), i = S.useRef(!1);
|
|
126
|
-
return /* @__PURE__ */ C(K, {
|
|
127
|
-
...e,
|
|
128
|
-
ref: t,
|
|
129
|
-
trapFocus: !1,
|
|
130
|
-
disableOutsidePointerEvents: !1,
|
|
131
|
-
onCloseAutoFocus: (t) => {
|
|
132
|
-
e.onCloseAutoFocus?.(t), t.defaultPrevented || (r.current || n.triggerRef.current?.focus(), t.preventDefault()), r.current = !1, i.current = !1;
|
|
133
|
-
},
|
|
134
|
-
onInteractOutside: (t) => {
|
|
135
|
-
e.onInteractOutside?.(t), t.defaultPrevented || (r.current = !0, t.detail.originalEvent.type === "pointerdown" && (i.current = !0));
|
|
136
|
-
let a = t.target;
|
|
137
|
-
n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
|
|
138
|
-
}
|
|
139
|
-
});
|
|
140
|
-
}, "PopoverContentNonModal")), K = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ T(function(e, n) {
|
|
141
|
-
let { __scopePopover: r, trapFocus: i, onOpenAutoFocus: a, onCloseAutoFocus: o, disableOutsidePointerEvents: s, onEscapeKeyDown: c, onPointerDownOutside: u, onFocusOutside: m, onInteractOutside: h, "aria-describedby": _, branchNodes: v, branchRegistry: b, ...x } = e, w = j(V, r), T = k(r), [E, D] = S.useState(null), O = t(n, D);
|
|
142
|
-
return f(E), g(), /* @__PURE__ */ C(d, {
|
|
143
|
-
registry: b,
|
|
144
|
-
children: /* @__PURE__ */ C(p, {
|
|
145
|
-
asChild: !0,
|
|
146
|
-
loop: !0,
|
|
147
|
-
trapped: i,
|
|
148
|
-
branches: v,
|
|
149
|
-
onMountAutoFocus: a,
|
|
150
|
-
onUnmountAutoFocus: o,
|
|
151
|
-
children: /* @__PURE__ */ C(l, {
|
|
152
|
-
asChild: !0,
|
|
153
|
-
disableOutsidePointerEvents: s,
|
|
154
|
-
onInteractOutside: h,
|
|
155
|
-
onEscapeKeyDown: c,
|
|
156
|
-
onPointerDownOutside: u,
|
|
157
|
-
onFocusOutside: m,
|
|
158
|
-
onDismiss: () => w.onOpenChange(!1),
|
|
159
|
-
deferPointerDownOutside: !0,
|
|
160
|
-
children: /* @__PURE__ */ C(y, {
|
|
161
|
-
"data-state": q(w.open),
|
|
162
|
-
role: "dialog",
|
|
163
|
-
id: w.contentId,
|
|
164
|
-
"aria-labelledby": w.titlePresent ? w.titleId : void 0,
|
|
165
|
-
"aria-describedby": w.descriptionPresent ? J(_, w.descriptionId) : _,
|
|
166
|
-
...T,
|
|
167
|
-
...x,
|
|
168
|
-
ref: O,
|
|
169
|
-
style: {
|
|
170
|
-
...x.style,
|
|
171
|
-
"--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
172
|
-
"--radix-popover-content-available-width": "var(--radix-popper-available-width)",
|
|
173
|
-
"--radix-popover-content-available-height": "var(--radix-popper-available-height)",
|
|
174
|
-
"--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
|
|
175
|
-
"--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
|
|
176
|
-
}
|
|
177
|
-
})
|
|
178
|
-
})
|
|
179
|
-
})
|
|
180
|
-
});
|
|
181
|
-
}, "PopoverContentImpl"));
|
|
182
|
-
function q(e) {
|
|
183
|
-
return e ? "open" : "closed";
|
|
184
|
-
}
|
|
185
|
-
T(q, "getState");
|
|
186
|
-
function J(...e) {
|
|
187
|
-
let t = /* @__PURE__ */ new Set();
|
|
188
|
-
for (let n of e) if (typeof n == "string") for (let e of String(n).trim().split(/\s+/)) e && t.add(e);
|
|
189
|
-
return t.size > 0 ? Array.from(t).join(" ") : void 0;
|
|
190
|
-
}
|
|
191
|
-
T(J, "concatAriaDescribedby");
|
|
192
|
-
//#endregion
|
|
193
|
-
//#region src/popover.tsx
|
|
194
|
-
function Y({ ...e }) {
|
|
195
|
-
return /* @__PURE__ */ C(M, {
|
|
196
|
-
"data-slot": "popover",
|
|
197
|
-
...e
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
function X({ ...e }) {
|
|
201
|
-
return /* @__PURE__ */ C(I, {
|
|
202
|
-
"data-slot": "popover-trigger",
|
|
203
|
-
...e
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
function Z({ className: t, align: n = "center", sideOffset: r = 4, ...i }) {
|
|
207
|
-
return /* @__PURE__ */ C(B, { children: /* @__PURE__ */ C(H, {
|
|
208
|
-
"data-slot": "popover-content",
|
|
209
|
-
align: n,
|
|
210
|
-
sideOffset: r,
|
|
211
|
-
className: e("bg-popover text-popover-foreground ring-foreground/10 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg p-2.5 text-sm shadow-md ring-1 outline-hidden duration-100", t),
|
|
212
|
-
...i
|
|
213
|
-
}) });
|
|
214
|
-
}
|
|
215
|
-
function Q({ ...e }) {
|
|
216
|
-
return /* @__PURE__ */ C(P, {
|
|
217
|
-
"data-slot": "popover-anchor",
|
|
218
|
-
...e
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
function $({ className: t, ...n }) {
|
|
222
|
-
return /* @__PURE__ */ C("div", {
|
|
223
|
-
"data-slot": "popover-header",
|
|
224
|
-
className: e("flex flex-col gap-0.5 text-sm", t),
|
|
225
|
-
...n
|
|
226
|
-
});
|
|
227
|
-
}
|
|
228
|
-
function ee({ className: t, ...n }) {
|
|
229
|
-
return /* @__PURE__ */ C("div", {
|
|
230
|
-
"data-slot": "popover-title",
|
|
231
|
-
className: e("font-medium", t),
|
|
232
|
-
...n
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
function te({ className: t, ...n }) {
|
|
236
|
-
return /* @__PURE__ */ C("p", {
|
|
237
|
-
"data-slot": "popover-description",
|
|
238
|
-
className: e("text-muted-foreground", t),
|
|
239
|
-
...n
|
|
240
|
-
});
|
|
241
|
-
}
|
|
242
|
-
//#endregion
|
|
243
|
-
export { $ as a, te as i, Q as n, ee as o, Z as r, X as s, Y as t };
|
package/dist/popover-DUHbvKB8.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./chunk-mLOUI7ql.js"),t=require("./dist-C_iFkwIX.js"),n=require("./dist-BBvidwzC.js"),r=require("./dist-hFLuJoMi.js"),i=require("./dist-DYUvPCPC.js"),a=require("./dist-DZiOPWLp.js"),o=require("./dist-YAADIsyo.js"),s=require("./dist-D7-Fky36.js"),c=require("./dist-C8Pm6LRc.js"),l=require("./dist-BU-TFzJf.js"),u=require("./dist-Qm9hFvM1.js"),d=require("./dist-1zUKVGvf.js"),f=require("./es2015-DbAsWDbs.js"),p=require("./dist-N97cIp0_.js");let m=require("react"),h=e.r(m,1);m=e.r(m);let g=require("react/jsx-runtime");var _=Object.defineProperty,v=(e,t)=>_(e,`name`,{value:t,configurable:!0}),y=`Popover`,[b,x]=i.t(y,[p.a]),S=p.a(),[C,w]=b(y),T=v(e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:s=!1}=e,l=S(t),u=h.useRef(null),[d,f]=h.useState(!1),[m,_]=h.useState(0),[v,b]=h.useState(0),[x,w]=o.t({prop:r,defaultProp:i??!1,onChange:a,caller:y});return(0,g.jsx)(p.t,{...l,children:(0,g.jsx)(C,{scope:t,contentId:c.t(),titleId:c.t(),descriptionId:c.t(),titlePresent:m>0,descriptionPresent:v>0,setTitleCount:_,setDescriptionCount:b,triggerRef:u,open:x,onOpenChange:w,onOpenToggle:h.useCallback(()=>w(e=>!e),[w]),hasCustomAnchor:d,onCustomAnchorAdd:h.useCallback(()=>f(!0),[]),onCustomAnchorRemove:h.useCallback(()=>f(!1),[]),modal:s,children:n})})},`Popover`),E=`PopoverAnchor`,D=h.forwardRef(v(function(e,t){let{__scopePopover:n,...r}=e,i=w(E,n),a=S(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return h.useEffect(()=>(o(),()=>s()),[o,s]),(0,g.jsx)(p.n,{...a,...r,ref:t})},`PopoverAnchor`)),O=`PopoverTrigger`,k=h.forwardRef(v(function(e,t){let{__scopePopover:i,...o}=e,s=w(O,i),c=S(i),l=n.a(t,s.triggerRef),u=(0,g.jsx)(r.t.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":B(s.open),...o,ref:l,onClick:a.t(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?u:(0,g.jsx)(p.n,{asChild:!0,...c,children:u})},`PopoverTrigger`)),A=`PopoverPortal`,[j,M]=b(A,{forceMount:void 0}),N=v(e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=w(A,t);return(0,g.jsx)(j,{scope:t,forceMount:n,children:(0,g.jsx)(s.t,{present:n||a.open,children:(0,g.jsx)(d.t,{asChild:!0,container:i,children:r})})})},`PopoverPortal`),P=`PopoverContent`,F=h.forwardRef(v(function(e,t){let n=M(P,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=w(P,e.__scopePopover);return(0,g.jsx)(s.t,{present:r||a.open,children:a.modal?(0,g.jsx)(L,{...i,ref:t}):(0,g.jsx)(R,{...i,ref:t})})},`PopoverContent`)),I=n.n(`PopoverContent.RemoveScroll`),L=h.forwardRef(v(function(e,t){let r=w(P,e.__scopePopover),i=h.useRef(null),o=n.a(t,i),s=h.useRef(!1),{nodes:c,registry:l}=u.i();return h.useEffect(()=>{let e=i.current;if(e)return f.t(e)},[]),(0,g.jsx)(f.n,{as:I,allowPinchZoom:!0,shards:h.useMemo(()=>[i,...c.map(e=>({current:e}))],[i,c]),children:(0,g.jsx)(z,{...e,ref:o,branchNodes:c,branchRegistry:l,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:a.t(e.onCloseAutoFocus,e=>{e.preventDefault(),s.current||r.triggerRef.current?.focus()}),onPointerDownOutside:a.t(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;s.current=t.button===2||n},{checkForDefaultPrevented:!1}),onFocusOutside:a.t(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},`PopoverContentModal`)),R=h.forwardRef(v(function(e,t){let n=w(P,e.__scopePopover),r=h.useRef(!1),i=h.useRef(!1);return(0,g.jsx)(z,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`PopoverContentNonModal`)),z=h.forwardRef(v(function(e,t){let{__scopePopover:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:m,onInteractOutside:_,"aria-describedby":v,branchNodes:y,branchRegistry:b,...x}=e,C=w(P,r),T=S(r),[E,D]=h.useState(null),O=n.a(t,D);return u.r(E),f.r(),(0,g.jsx)(u.n,{registry:b,children:(0,g.jsx)(u.t,{asChild:!0,loop:!0,trapped:i,branches:y,onMountAutoFocus:a,onUnmountAutoFocus:o,children:(0,g.jsx)(l.t,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:_,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:m,onDismiss:()=>C.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,g.jsx)(p.i,{"data-state":B(C.open),role:`dialog`,id:C.contentId,"aria-labelledby":C.titlePresent?C.titleId:void 0,"aria-describedby":C.descriptionPresent?V(v,C.descriptionId):v,...T,...x,ref:O,style:{...x.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})})},`PopoverContentImpl`));function B(e){return e?`open`:`closed`}v(B,`getState`);function V(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}v(V,`concatAriaDescribedby`);function H({...e}){return(0,g.jsx)(T,{"data-slot":`popover`,...e})}function U({...e}){return(0,g.jsx)(k,{"data-slot":`popover-trigger`,...e})}function W({className:e,align:n=`center`,sideOffset:r=4,...i}){return(0,g.jsx)(N,{children:(0,g.jsx)(F,{"data-slot":`popover-content`,align:n,sideOffset:r,className:t.t(`bg-popover text-popover-foreground ring-foreground/10 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg p-2.5 text-sm shadow-md ring-1 outline-hidden duration-100`,e),...i})})}function G({...e}){return(0,g.jsx)(D,{"data-slot":`popover-anchor`,...e})}function K({className:e,...n}){return(0,g.jsx)(`div`,{"data-slot":`popover-header`,className:t.t(`flex flex-col gap-0.5 text-sm`,e),...n})}function q({className:e,...n}){return(0,g.jsx)(`div`,{"data-slot":`popover-title`,className:t.t(`font-medium`,e),...n})}function J({className:e,...n}){return(0,g.jsx)(`p`,{"data-slot":`popover-description`,className:t.t(`text-muted-foreground`,e),...n})}Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return H}});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
const e=require("./chunk-mLOUI7ql.js"),t=require("./dist-C_iFkwIX.js"),n=require("./dist-hFLuJoMi.js"),r=require("./dist-DYUvPCPC.js");let i=require("react"),a=e.r(i,1);i=e.r(i);let o=require("react/jsx-runtime");var s=Object.defineProperty,c=(e,t)=>s(e,`name`,{value:t,configurable:!0}),l=`Progress`,u=100,[d,f]=r.t(l),[p,m]=d(l),h=a.forwardRef(c(function(e,t){let{__scopeProgress:r,value:i=null,max:a,getValueLabel:s=v,...c}=e;(a||a===0)&&!x(a)&&console.error(C(`${a}`,`Progress`));let l=x(a)?a:u;i!==null&&!S(i,l)&&console.error(w(`${i}`,`Progress`));let d=S(i,l)?i:null,f=b(d)?s(d,l):void 0;return(0,o.jsx)(p,{scope:r,value:d,max:l,children:(0,o.jsx)(n.t.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":b(d)?d:void 0,"aria-valuetext":f,role:`progressbar`,"data-state":y(d,l),"data-value":d??void 0,"data-max":l,...c,ref:t})})},`Progress`)),g=`ProgressIndicator`,_=a.forwardRef(c(function(e,t){let{__scopeProgress:r,...i}=e,a=m(g,r);return(0,o.jsx)(n.t.div,{"data-state":y(a.value,a.max),"data-value":a.value??void 0,"data-max":a.max,...i,ref:t})},`ProgressIndicator`));function v(e,t){return`${Math.round(e/t*100)}%`}c(v,`defaultGetValueLabel`);function y(e,t){return e==null?`indeterminate`:e===t?`complete`:`loading`}c(y,`getProgressState`);function b(e){return typeof e==`number`}c(b,`isNumber`);function x(e){return b(e)&&!isNaN(e)&&e>0}c(x,`isValidMaxNumber`);function S(e,t){return b(e)&&!isNaN(e)&&e<=t&&e>=0}c(S,`isValidValueNumber`);function C(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${u}\`.`}c(C,`getInvalidMaxError`);function w(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
2
|
-
- a positive number
|
|
3
|
-
- less than the value passed to \`max\` (or ${u} if no \`max\` prop is set)
|
|
4
|
-
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
5
|
-
|
|
6
|
-
Defaulting to \`null\`.`}c(w,`getInvalidValueError`);function T({className:e,value:n,...r}){return(0,o.jsx)(h,{"data-slot":`progress`,value:n,className:t.t(`bg-muted relative flex h-1 w-full items-center overflow-x-hidden rounded-full`,e),...r,children:(0,o.jsx)(_,{"data-slot":`progress-indicator`,className:`bg-primary size-full flex-1 transition-all`,style:{transform:`translateX(-${100-(n||0)}%)`}})})}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return T}});
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./dist-Dm3IQk5b.mjs";
|
|
2
|
-
import { t } from "./dist-BEbV0Hal.mjs";
|
|
3
|
-
import { t as n } from "./dist-CPAF050o.mjs";
|
|
4
|
-
import * as r from "react";
|
|
5
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
6
|
-
//#region ../../node_modules/.bun/@radix-ui+react-progress@1.2.1+b146eb580f4286be/node_modules/@radix-ui/react-progress/dist/index.mjs
|
|
7
|
-
var a = Object.defineProperty, o = (e, t) => a(e, "name", {
|
|
8
|
-
value: t,
|
|
9
|
-
configurable: !0
|
|
10
|
-
}), s = "Progress", c = 100, [l, u] = n(s), [d, f] = l(s), p = /* @__PURE__ */ r.forwardRef(/* @__PURE__ */ o(function(e, n) {
|
|
11
|
-
let { __scopeProgress: r, value: a = null, max: o, getValueLabel: s = g, ...l } = e;
|
|
12
|
-
(o || o === 0) && !y(o) && console.error(x(`${o}`, "Progress"));
|
|
13
|
-
let u = y(o) ? o : c;
|
|
14
|
-
a !== null && !b(a, u) && console.error(S(`${a}`, "Progress"));
|
|
15
|
-
let f = b(a, u) ? a : null, p = v(f) ? s(f, u) : void 0;
|
|
16
|
-
return /* @__PURE__ */ i(d, {
|
|
17
|
-
scope: r,
|
|
18
|
-
value: f,
|
|
19
|
-
max: u,
|
|
20
|
-
children: /* @__PURE__ */ i(t.div, {
|
|
21
|
-
"aria-valuemax": u,
|
|
22
|
-
"aria-valuemin": 0,
|
|
23
|
-
"aria-valuenow": v(f) ? f : void 0,
|
|
24
|
-
"aria-valuetext": p,
|
|
25
|
-
role: "progressbar",
|
|
26
|
-
"data-state": _(f, u),
|
|
27
|
-
"data-value": f ?? void 0,
|
|
28
|
-
"data-max": u,
|
|
29
|
-
...l,
|
|
30
|
-
ref: n
|
|
31
|
-
})
|
|
32
|
-
});
|
|
33
|
-
}, "Progress")), m = "ProgressIndicator", h = /* @__PURE__ */ r.forwardRef(/* @__PURE__ */ o(function(e, n) {
|
|
34
|
-
let { __scopeProgress: r, ...a } = e, o = f(m, r);
|
|
35
|
-
return /* @__PURE__ */ i(t.div, {
|
|
36
|
-
"data-state": _(o.value, o.max),
|
|
37
|
-
"data-value": o.value ?? void 0,
|
|
38
|
-
"data-max": o.max,
|
|
39
|
-
...a,
|
|
40
|
-
ref: n
|
|
41
|
-
});
|
|
42
|
-
}, "ProgressIndicator"));
|
|
43
|
-
function g(e, t) {
|
|
44
|
-
return `${Math.round(e / t * 100)}%`;
|
|
45
|
-
}
|
|
46
|
-
o(g, "defaultGetValueLabel");
|
|
47
|
-
function _(e, t) {
|
|
48
|
-
return e == null ? "indeterminate" : e === t ? "complete" : "loading";
|
|
49
|
-
}
|
|
50
|
-
o(_, "getProgressState");
|
|
51
|
-
function v(e) {
|
|
52
|
-
return typeof e == "number";
|
|
53
|
-
}
|
|
54
|
-
o(v, "isNumber");
|
|
55
|
-
function y(e) {
|
|
56
|
-
return v(e) && !isNaN(e) && e > 0;
|
|
57
|
-
}
|
|
58
|
-
o(y, "isValidMaxNumber");
|
|
59
|
-
function b(e, t) {
|
|
60
|
-
return v(e) && !isNaN(e) && e <= t && e >= 0;
|
|
61
|
-
}
|
|
62
|
-
o(b, "isValidValueNumber");
|
|
63
|
-
function x(e, t) {
|
|
64
|
-
return `Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${c}\`.`;
|
|
65
|
-
}
|
|
66
|
-
o(x, "getInvalidMaxError");
|
|
67
|
-
function S(e, t) {
|
|
68
|
-
return `Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
69
|
-
- a positive number
|
|
70
|
-
- less than the value passed to \`max\` (or ${c} if no \`max\` prop is set)
|
|
71
|
-
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
72
|
-
|
|
73
|
-
Defaulting to \`null\`.`;
|
|
74
|
-
}
|
|
75
|
-
o(S, "getInvalidValueError");
|
|
76
|
-
//#endregion
|
|
77
|
-
//#region src/progress.tsx
|
|
78
|
-
function C({ className: t, value: n, ...r }) {
|
|
79
|
-
return /* @__PURE__ */ i(p, {
|
|
80
|
-
"data-slot": "progress",
|
|
81
|
-
value: n,
|
|
82
|
-
className: e("bg-muted relative flex h-1 w-full items-center overflow-x-hidden rounded-full", t),
|
|
83
|
-
...r,
|
|
84
|
-
children: /* @__PURE__ */ i(h, {
|
|
85
|
-
"data-slot": "progress-indicator",
|
|
86
|
-
className: "bg-primary size-full flex-1 transition-all",
|
|
87
|
-
style: { transform: `translateX(-${100 - (n || 0)}%)` }
|
|
88
|
-
})
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
//#endregion
|
|
92
|
-
export { C as t };
|