@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
package/dist/dist-OqDzLHTa.mjs
DELETED
|
@@ -1,460 +0,0 @@
|
|
|
1
|
-
import { a as e, n as t } from "./dist-Dq-h6VAy.mjs";
|
|
2
|
-
import { t as n } from "./dist-CPAF050o.mjs";
|
|
3
|
-
import { t as r } from "./dist-GazS1kfR.mjs";
|
|
4
|
-
import * as i from "react";
|
|
5
|
-
import { jsx as a } from "react/jsx-runtime";
|
|
6
|
-
//#region ../../node_modules/.bun/@radix-ui+react-collection@1.2.0+b146eb580f4286be/node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
7
|
-
var o = Object.defineProperty, s = (e, t) => o(e, "name", {
|
|
8
|
-
value: t,
|
|
9
|
-
configurable: !0
|
|
10
|
-
});
|
|
11
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
12
|
-
function c(r) {
|
|
13
|
-
let o = r + "CollectionProvider", [c, l] = n(o), [u, d] = c(o, {
|
|
14
|
-
collectionRef: { current: null },
|
|
15
|
-
itemMap: /* @__PURE__ */ new Map()
|
|
16
|
-
}), f = /* @__PURE__ */ s((e) => {
|
|
17
|
-
let { scope: t, children: n } = e, r = i.useRef(null), o = i.useRef(/* @__PURE__ */ new Map()).current;
|
|
18
|
-
return /* @__PURE__ */ a(u, {
|
|
19
|
-
scope: t,
|
|
20
|
-
itemMap: o,
|
|
21
|
-
collectionRef: r,
|
|
22
|
-
children: n
|
|
23
|
-
});
|
|
24
|
-
}, "CollectionProvider");
|
|
25
|
-
f.displayName = o;
|
|
26
|
-
let p = r + "CollectionSlot", m = t(p), h = i.forwardRef((t, n) => {
|
|
27
|
-
let { scope: r, children: i } = t;
|
|
28
|
-
return /* @__PURE__ */ a(m, {
|
|
29
|
-
ref: e(n, d(p, r).collectionRef),
|
|
30
|
-
children: i
|
|
31
|
-
});
|
|
32
|
-
});
|
|
33
|
-
h.displayName = p;
|
|
34
|
-
let g = r + "CollectionItemSlot", _ = "data-radix-collection-item", v = t(g), y = i.forwardRef((t, n) => {
|
|
35
|
-
let { scope: r, children: o, ...s } = t, c = i.useRef(null), l = e(n, c), u = d(g, r);
|
|
36
|
-
return i.useEffect(() => (u.itemMap.set(c, {
|
|
37
|
-
ref: c,
|
|
38
|
-
...s
|
|
39
|
-
}), () => void u.itemMap.delete(c))), /* @__PURE__ */ a(v, {
|
|
40
|
-
[_]: "",
|
|
41
|
-
ref: l,
|
|
42
|
-
children: o
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
y.displayName = g;
|
|
46
|
-
function b(e) {
|
|
47
|
-
let t = d(r + "CollectionConsumer", e);
|
|
48
|
-
return i.useCallback(() => {
|
|
49
|
-
let e = t.collectionRef.current;
|
|
50
|
-
if (!e) return [];
|
|
51
|
-
let n = Array.from(e.querySelectorAll(`[${_}]`));
|
|
52
|
-
return Array.from(t.itemMap.values()).sort((e, t) => n.indexOf(e.ref.current) - n.indexOf(t.ref.current));
|
|
53
|
-
}, [t.collectionRef, t.itemMap]);
|
|
54
|
-
}
|
|
55
|
-
return s(b, "useCollection"), [
|
|
56
|
-
{
|
|
57
|
-
Provider: f,
|
|
58
|
-
Slot: h,
|
|
59
|
-
ItemSlot: y
|
|
60
|
-
},
|
|
61
|
-
b,
|
|
62
|
-
l
|
|
63
|
-
];
|
|
64
|
-
}
|
|
65
|
-
s(c, "createCollection");
|
|
66
|
-
var l = /* @__PURE__ */ new WeakMap(), u = class e extends Map {
|
|
67
|
-
static {
|
|
68
|
-
s(this, "OrderedDict");
|
|
69
|
-
}
|
|
70
|
-
#e;
|
|
71
|
-
constructor(e) {
|
|
72
|
-
super(e), this.#e = [...super.keys()], l.set(this, !0);
|
|
73
|
-
}
|
|
74
|
-
set(e, t) {
|
|
75
|
-
return l.get(this) && !this.has(e) && this.#e.push(e), super.set(e, t), this;
|
|
76
|
-
}
|
|
77
|
-
insert(e, t, n) {
|
|
78
|
-
let r = this.has(t), i = r ? this.size : this.size + 1, a = p(e), o = a >= 0 ? Math.min(a, i - 1) : Math.max(i + a, 0);
|
|
79
|
-
if (r ? this.#e.indexOf(t) === o : o === this.size) return this.set(t, n), this;
|
|
80
|
-
let s = this.#e.filter((e) => e !== t);
|
|
81
|
-
s.splice(o, 0, t);
|
|
82
|
-
let c = s.map((e) => [e, e === t ? n : this.get(e)]);
|
|
83
|
-
this.clear();
|
|
84
|
-
for (let [e, t] of c) this.set(e, t);
|
|
85
|
-
return this;
|
|
86
|
-
}
|
|
87
|
-
with(t, n, r) {
|
|
88
|
-
let i = new e(this);
|
|
89
|
-
return i.insert(t, n, r), i;
|
|
90
|
-
}
|
|
91
|
-
before(e) {
|
|
92
|
-
let t = this.#e.indexOf(e) - 1;
|
|
93
|
-
if (!(t < 0)) return this.entryAt(t);
|
|
94
|
-
}
|
|
95
|
-
setBefore(e, t, n) {
|
|
96
|
-
let r = this.#e.indexOf(e);
|
|
97
|
-
if (r === -1) return this;
|
|
98
|
-
let i = this.#e.indexOf(t), a = i !== -1 && i < r ? r - 1 : r;
|
|
99
|
-
return this.insert(a, t, n);
|
|
100
|
-
}
|
|
101
|
-
after(e) {
|
|
102
|
-
let t = this.#e.indexOf(e);
|
|
103
|
-
if (t = t === -1 || t === this.size - 1 ? -1 : t + 1, t !== -1) return this.entryAt(t);
|
|
104
|
-
}
|
|
105
|
-
setAfter(e, t, n) {
|
|
106
|
-
let r = this.#e.indexOf(e);
|
|
107
|
-
if (r === -1) return this;
|
|
108
|
-
let i = this.#e.indexOf(t), a = i !== -1 && i <= r ? r : r + 1;
|
|
109
|
-
return this.insert(a, t, n);
|
|
110
|
-
}
|
|
111
|
-
first() {
|
|
112
|
-
return this.entryAt(0);
|
|
113
|
-
}
|
|
114
|
-
last() {
|
|
115
|
-
return this.entryAt(-1);
|
|
116
|
-
}
|
|
117
|
-
clear() {
|
|
118
|
-
return this.#e = [], super.clear();
|
|
119
|
-
}
|
|
120
|
-
delete(e) {
|
|
121
|
-
let t = super.delete(e);
|
|
122
|
-
return t && this.#e.splice(this.#e.indexOf(e), 1), t;
|
|
123
|
-
}
|
|
124
|
-
deleteAt(e) {
|
|
125
|
-
let t = this.keyAt(e);
|
|
126
|
-
return t === void 0 ? !1 : this.delete(t);
|
|
127
|
-
}
|
|
128
|
-
at(e) {
|
|
129
|
-
let t = d(this.#e, e);
|
|
130
|
-
if (t !== void 0) return this.get(t);
|
|
131
|
-
}
|
|
132
|
-
entryAt(e) {
|
|
133
|
-
let t = d(this.#e, e);
|
|
134
|
-
if (t !== void 0) return [t, this.get(t)];
|
|
135
|
-
}
|
|
136
|
-
indexOf(e) {
|
|
137
|
-
return this.#e.indexOf(e);
|
|
138
|
-
}
|
|
139
|
-
keyAt(e) {
|
|
140
|
-
return d(this.#e, e);
|
|
141
|
-
}
|
|
142
|
-
from(e, t) {
|
|
143
|
-
let n = this.indexOf(e);
|
|
144
|
-
if (n === -1) return;
|
|
145
|
-
let r = n + t;
|
|
146
|
-
return r < 0 && (r = 0), r >= this.size && (r = this.size - 1), this.at(r);
|
|
147
|
-
}
|
|
148
|
-
keyFrom(e, t) {
|
|
149
|
-
let n = this.indexOf(e);
|
|
150
|
-
if (n === -1) return;
|
|
151
|
-
let r = n + t;
|
|
152
|
-
return r < 0 && (r = 0), r >= this.size && (r = this.size - 1), this.keyAt(r);
|
|
153
|
-
}
|
|
154
|
-
find(e, t) {
|
|
155
|
-
let n = 0;
|
|
156
|
-
for (let r of this) {
|
|
157
|
-
if (Reflect.apply(e, t, [
|
|
158
|
-
r,
|
|
159
|
-
n,
|
|
160
|
-
this
|
|
161
|
-
])) return r;
|
|
162
|
-
n++;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
findIndex(e, t) {
|
|
166
|
-
let n = 0;
|
|
167
|
-
for (let r of this) {
|
|
168
|
-
if (Reflect.apply(e, t, [
|
|
169
|
-
r,
|
|
170
|
-
n,
|
|
171
|
-
this
|
|
172
|
-
])) return n;
|
|
173
|
-
n++;
|
|
174
|
-
}
|
|
175
|
-
return -1;
|
|
176
|
-
}
|
|
177
|
-
filter(t, n) {
|
|
178
|
-
let r = [], i = 0;
|
|
179
|
-
for (let e of this) Reflect.apply(t, n, [
|
|
180
|
-
e,
|
|
181
|
-
i,
|
|
182
|
-
this
|
|
183
|
-
]) && r.push(e), i++;
|
|
184
|
-
return new e(r);
|
|
185
|
-
}
|
|
186
|
-
map(t, n) {
|
|
187
|
-
let r = [], i = 0;
|
|
188
|
-
for (let e of this) r.push([e[0], Reflect.apply(t, n, [
|
|
189
|
-
e,
|
|
190
|
-
i,
|
|
191
|
-
this
|
|
192
|
-
])]), i++;
|
|
193
|
-
return new e(r);
|
|
194
|
-
}
|
|
195
|
-
reduce(...e) {
|
|
196
|
-
let [t, n] = e, r = e.length > 1;
|
|
197
|
-
if (!r && this.size === 0) throw TypeError("Reduce of empty OrderedDict with no initial value");
|
|
198
|
-
let i = 0, a = n;
|
|
199
|
-
for (let e of this) a = i === 0 && !r ? e : Reflect.apply(t, this, [
|
|
200
|
-
a,
|
|
201
|
-
e,
|
|
202
|
-
i,
|
|
203
|
-
this
|
|
204
|
-
]), i++;
|
|
205
|
-
return a;
|
|
206
|
-
}
|
|
207
|
-
reduceRight(...e) {
|
|
208
|
-
let [t, n] = e, r = e.length > 1;
|
|
209
|
-
if (!r && this.size === 0) throw TypeError("Reduce of empty OrderedDict with no initial value");
|
|
210
|
-
let i = n;
|
|
211
|
-
for (let e = this.size - 1; e >= 0; e--) {
|
|
212
|
-
let n = this.entryAt(e);
|
|
213
|
-
i = e === this.size - 1 && !r ? n : Reflect.apply(t, this, [
|
|
214
|
-
i,
|
|
215
|
-
n,
|
|
216
|
-
e,
|
|
217
|
-
this
|
|
218
|
-
]);
|
|
219
|
-
}
|
|
220
|
-
return i;
|
|
221
|
-
}
|
|
222
|
-
sort(e) {
|
|
223
|
-
if (typeof e != "function") throw TypeError("OrderedDict.sort requires a compare function");
|
|
224
|
-
let t = [...this.entries()].sort(e);
|
|
225
|
-
this.clear();
|
|
226
|
-
for (let [e, n] of t) this.set(e, n);
|
|
227
|
-
return this;
|
|
228
|
-
}
|
|
229
|
-
toSorted(t) {
|
|
230
|
-
if (typeof t != "function") throw TypeError("OrderedDict.toSorted requires a compare function");
|
|
231
|
-
return new e([...this.entries()].sort(t));
|
|
232
|
-
}
|
|
233
|
-
toReversed() {
|
|
234
|
-
let t = new e();
|
|
235
|
-
for (let e = this.size - 1; e >= 0; e--) {
|
|
236
|
-
let n = this.keyAt(e), r = this.get(n);
|
|
237
|
-
t.set(n, r);
|
|
238
|
-
}
|
|
239
|
-
return t;
|
|
240
|
-
}
|
|
241
|
-
toSpliced(...t) {
|
|
242
|
-
let n = [...this.entries()];
|
|
243
|
-
return n.splice(...t), new e(n);
|
|
244
|
-
}
|
|
245
|
-
slice(t, n) {
|
|
246
|
-
let r = new e();
|
|
247
|
-
for (let e of this.#e.slice(t, n)) r.set(e, this.get(e));
|
|
248
|
-
return r;
|
|
249
|
-
}
|
|
250
|
-
every(e, t) {
|
|
251
|
-
let n = 0;
|
|
252
|
-
for (let r of this) {
|
|
253
|
-
if (!Reflect.apply(e, t, [
|
|
254
|
-
r,
|
|
255
|
-
n,
|
|
256
|
-
this
|
|
257
|
-
])) return !1;
|
|
258
|
-
n++;
|
|
259
|
-
}
|
|
260
|
-
return !0;
|
|
261
|
-
}
|
|
262
|
-
some(e, t) {
|
|
263
|
-
let n = 0;
|
|
264
|
-
for (let r of this) {
|
|
265
|
-
if (Reflect.apply(e, t, [
|
|
266
|
-
r,
|
|
267
|
-
n,
|
|
268
|
-
this
|
|
269
|
-
])) return !0;
|
|
270
|
-
n++;
|
|
271
|
-
}
|
|
272
|
-
return !1;
|
|
273
|
-
}
|
|
274
|
-
};
|
|
275
|
-
function d(e, t) {
|
|
276
|
-
if ("at" in Array.prototype) return Array.prototype.at.call(e, t);
|
|
277
|
-
let n = f(e, t);
|
|
278
|
-
return n === -1 ? void 0 : e[n];
|
|
279
|
-
}
|
|
280
|
-
s(d, "at");
|
|
281
|
-
function f(e, t) {
|
|
282
|
-
let n = e.length, r = p(t), i = r >= 0 ? r : n + r;
|
|
283
|
-
return i < 0 || i >= n ? -1 : i;
|
|
284
|
-
}
|
|
285
|
-
s(f, "toSafeIndex");
|
|
286
|
-
function p(e) {
|
|
287
|
-
return e !== e || e === 0 ? 0 : Math.trunc(e);
|
|
288
|
-
}
|
|
289
|
-
s(p, "toSafeInteger");
|
|
290
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
291
|
-
function m(o) {
|
|
292
|
-
let c = o + "CollectionProvider", [l, d] = n(c), [f, p] = l(c);
|
|
293
|
-
f.displayName = o + "CollectionStableContextProvider";
|
|
294
|
-
let [m, g] = l(c);
|
|
295
|
-
m.displayName = o + "CollectionStatefulContextProvider";
|
|
296
|
-
let b = /* @__PURE__ */ s(({ state: e, ...t }) => e ? /* @__PURE__ */ a(S, {
|
|
297
|
-
...t,
|
|
298
|
-
state: e
|
|
299
|
-
}) : /* @__PURE__ */ a(x, { ...t }), "CollectionProvider");
|
|
300
|
-
b.displayName = c;
|
|
301
|
-
let x = /* @__PURE__ */ s((e) => {
|
|
302
|
-
let t = k();
|
|
303
|
-
return /* @__PURE__ */ a(S, {
|
|
304
|
-
...e,
|
|
305
|
-
state: t
|
|
306
|
-
});
|
|
307
|
-
}, "CollectionInit");
|
|
308
|
-
x.displayName = o + "CollectionInit";
|
|
309
|
-
let S = /* @__PURE__ */ s((t) => {
|
|
310
|
-
let { scope: n, children: r, state: o } = t, s = i.useRef(null), [c, l] = i.useState(null), d = e(s, l), [p, h] = o, g = i.useRef(new u()), b = i.useCallback(() => {
|
|
311
|
-
let e = g.current;
|
|
312
|
-
return _(e) || e.sort(v), e;
|
|
313
|
-
}, []);
|
|
314
|
-
return i.useEffect(() => {
|
|
315
|
-
if (!c) return;
|
|
316
|
-
let e = y(() => {
|
|
317
|
-
h((e) => {
|
|
318
|
-
let t = e.toSorted(v);
|
|
319
|
-
return t.some(([t], n) => e.keyAt(n) !== t) ? t : e;
|
|
320
|
-
});
|
|
321
|
-
});
|
|
322
|
-
return e.observe(c, {
|
|
323
|
-
childList: !0,
|
|
324
|
-
subtree: !0
|
|
325
|
-
}), () => {
|
|
326
|
-
e.disconnect();
|
|
327
|
-
};
|
|
328
|
-
}, [c, h]), /* @__PURE__ */ a(f, {
|
|
329
|
-
scope: n,
|
|
330
|
-
collectionElementRef: d,
|
|
331
|
-
collectionElementRefObject: s,
|
|
332
|
-
getCollection: b,
|
|
333
|
-
setCollection: h,
|
|
334
|
-
registryRef: g,
|
|
335
|
-
children: /* @__PURE__ */ a(m, {
|
|
336
|
-
scope: n,
|
|
337
|
-
collectionElement: c,
|
|
338
|
-
collection: p,
|
|
339
|
-
children: r
|
|
340
|
-
})
|
|
341
|
-
});
|
|
342
|
-
}, "CollectionProviderImpl");
|
|
343
|
-
S.displayName = o + "CollectionProviderImpl";
|
|
344
|
-
let C = o + "CollectionSlot", w = t(C), T = i.forwardRef((t, n) => {
|
|
345
|
-
let { scope: r, children: i } = t;
|
|
346
|
-
return /* @__PURE__ */ a(w, {
|
|
347
|
-
ref: e(n, p(C, r).collectionElementRef),
|
|
348
|
-
children: i
|
|
349
|
-
});
|
|
350
|
-
});
|
|
351
|
-
T.displayName = C;
|
|
352
|
-
let E = o + "CollectionItemSlot", D = t(E), O = i.forwardRef((t, n) => {
|
|
353
|
-
let { scope: o, children: s, ...c } = t, l = i.useRef(null), { setCollection: d, registryRef: f } = p(E, o), m = i.useRef(c);
|
|
354
|
-
h(m.current, c) || (m.current = c);
|
|
355
|
-
let g = m.current, _ = e(n, i.useCallback((e) => {
|
|
356
|
-
let t = f.current;
|
|
357
|
-
e ? t.set(e, {
|
|
358
|
-
...m.current,
|
|
359
|
-
element: e
|
|
360
|
-
}) : l.current && t.delete(l.current);
|
|
361
|
-
}, [f]), l);
|
|
362
|
-
r(() => {
|
|
363
|
-
let e = l.current, t = f.current;
|
|
364
|
-
e && t.has(e) && t.set(e, {
|
|
365
|
-
...g,
|
|
366
|
-
element: e
|
|
367
|
-
});
|
|
368
|
-
}, [g, f]);
|
|
369
|
-
let y = i.useRef(null);
|
|
370
|
-
return i.useEffect(() => {
|
|
371
|
-
let e = l.current, t = y.current;
|
|
372
|
-
(t?.element ?? null) === e && (!e || t?.itemData === g) || (y.current = e ? {
|
|
373
|
-
element: e,
|
|
374
|
-
itemData: g
|
|
375
|
-
} : null, d((n) => {
|
|
376
|
-
let r = new u(n);
|
|
377
|
-
return t && t.element !== e && r.delete(t.element), e && r.set(e, {
|
|
378
|
-
...g,
|
|
379
|
-
element: e
|
|
380
|
-
}), r.sort(v);
|
|
381
|
-
}));
|
|
382
|
-
}), i.useEffect(() => () => {
|
|
383
|
-
let e = y.current;
|
|
384
|
-
y.current = null, e && d((t) => {
|
|
385
|
-
if (!t.has(e.element)) return t;
|
|
386
|
-
let n = new u(t);
|
|
387
|
-
return n.delete(e.element), n;
|
|
388
|
-
});
|
|
389
|
-
}, [d]), /* @__PURE__ */ a(D, {
|
|
390
|
-
"data-radix-collection-item": "",
|
|
391
|
-
ref: _,
|
|
392
|
-
children: s
|
|
393
|
-
});
|
|
394
|
-
});
|
|
395
|
-
O.displayName = E;
|
|
396
|
-
function k() {
|
|
397
|
-
return i.useState(new u());
|
|
398
|
-
}
|
|
399
|
-
s(k, "useInitCollection");
|
|
400
|
-
function A(e) {
|
|
401
|
-
let { collection: t } = g(o + "CollectionConsumer", e);
|
|
402
|
-
return t;
|
|
403
|
-
}
|
|
404
|
-
s(A, "useCollection");
|
|
405
|
-
function j(e) {
|
|
406
|
-
let { getCollection: t } = p(o + "CollectionConsumer", e);
|
|
407
|
-
return t;
|
|
408
|
-
}
|
|
409
|
-
return s(j, "useGetCollection"), [{
|
|
410
|
-
Provider: b,
|
|
411
|
-
Slot: T,
|
|
412
|
-
ItemSlot: O
|
|
413
|
-
}, {
|
|
414
|
-
createCollectionScope: d,
|
|
415
|
-
useCollection: A,
|
|
416
|
-
useGetCollection: j,
|
|
417
|
-
useInitCollection: k
|
|
418
|
-
}];
|
|
419
|
-
}
|
|
420
|
-
s(m, "createCollection");
|
|
421
|
-
function h(e, t) {
|
|
422
|
-
if (e === t) return !0;
|
|
423
|
-
if (typeof e != "object" || typeof t != "object" || e == null || t == null) return !1;
|
|
424
|
-
let n = Object.keys(e), r = Object.keys(t);
|
|
425
|
-
if (n.length !== r.length) return !1;
|
|
426
|
-
for (let r of n) if (!Object.prototype.hasOwnProperty.call(t, r) || e[r] !== t[r]) return !1;
|
|
427
|
-
return !0;
|
|
428
|
-
}
|
|
429
|
-
s(h, "shallowEqual");
|
|
430
|
-
function g(e, t) {
|
|
431
|
-
return !!(t.compareDocumentPosition(e) & Node.DOCUMENT_POSITION_PRECEDING);
|
|
432
|
-
}
|
|
433
|
-
s(g, "isElementPreceding");
|
|
434
|
-
function _(e) {
|
|
435
|
-
let t;
|
|
436
|
-
for (let n of e.keys()) {
|
|
437
|
-
if (t) {
|
|
438
|
-
let e = t.compareDocumentPosition(n);
|
|
439
|
-
if (!(e & Node.DOCUMENT_POSITION_DISCONNECTED) && e & Node.DOCUMENT_POSITION_PRECEDING) return !1;
|
|
440
|
-
}
|
|
441
|
-
t = n;
|
|
442
|
-
}
|
|
443
|
-
return !0;
|
|
444
|
-
}
|
|
445
|
-
s(_, "isInDocumentOrder");
|
|
446
|
-
function v(e, t) {
|
|
447
|
-
return !e[1].element || !t[1].element ? 0 : g(e[1].element, t[1].element) ? -1 : 1;
|
|
448
|
-
}
|
|
449
|
-
s(v, "sortByDocumentPosition");
|
|
450
|
-
function y(e) {
|
|
451
|
-
return new MutationObserver((t) => {
|
|
452
|
-
for (let n of t) if (n.type === "childList") {
|
|
453
|
-
e();
|
|
454
|
-
return;
|
|
455
|
-
}
|
|
456
|
-
});
|
|
457
|
-
}
|
|
458
|
-
s(y, "getChildListObserver");
|
|
459
|
-
//#endregion
|
|
460
|
-
export { m as n, c as t };
|
package/dist/dist-Qm9hFvM1.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./chunk-mLOUI7ql.js"),t=require("./dist-BBvidwzC.js"),n=require("./dist-hFLuJoMi.js"),r=require("./dist-D1qkELLT.js");let i=require("react");i=e.r(i,1);let a=require("react/jsx-runtime");var o=Object.defineProperty,s=(e,t)=>o(e,`name`,{value:t,configurable:!0}),c=`focusScope.autoFocusOnMount`,l=`focusScope.autoFocusOnUnmount`,u={bubbles:!1,cancelable:!0},d=i.forwardRef(s(function(e,o){let{loop:d=!1,trapped:f=!1,branches:p,onMountAutoFocus:m,onUnmountAutoFocus:h,...y}=e,[b,x]=i.useState(null),w=r.t(m),T=r.t(h),D=i.useRef(null),O=t.a(o,x),k=i.useRef(p);i.useEffect(()=>{k.current=p});let A=i.useCallback(e=>e?b?.contains(e)?!0:!!k.current?.some(t=>t.contains(e)):!1,[b]),j=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(f){let e=function(e){if(j.paused||!b)return;let t=e.target;A(t)?D.current=t:S(D.current,{select:!0})},t=function(e){if(j.paused||!b)return;let t=e.relatedTarget;t!==null&&(A(t)||S(D.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&S(b)};s(e,`handleFocusIn`),s(t,`handleFocusOut`),s(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return b&&r.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[f,b,j.paused,A]),i.useEffect(()=>{if(b){C.add(j);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(c,u);b.addEventListener(c,w),b.dispatchEvent(t),t.defaultPrevented||(g(E(v(b)),{select:!0}),document.activeElement===e&&S(b))}return()=>{b.removeEventListener(c,w);let t=b.ownerDocument,n=CustomEvent;setTimeout(()=>{let r=new n(l,u);b.addEventListener(l,T),b.dispatchEvent(r),r.defaultPrevented||S(e??t.body,{select:!0}),b.removeEventListener(l,T),C.remove(j)},0)}}},[b,w,T,j]);let M=i.useCallback(e=>{if(!d&&!f||j.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[r,i]=_(t);r&&i?!e.shiftKey&&n===i?(e.preventDefault(),d&&S(r,{select:!0})):e.shiftKey&&n===r&&(e.preventDefault(),d&&S(i,{select:!0})):n===t&&e.preventDefault()}},[d,f,j.paused]);return(0,a.jsx)(n.t.div,{tabIndex:-1,...y,ref:O,onKeyDown:M})},`FocusScope`)),f=i.createContext(null);function p({registry:e,children:t}){return e?(0,a.jsx)(f.Provider,{value:e,children:t}):t}s(p,`FocusScopeBranchProvider`);function m(){let[e,t]=i.useState([]);return{nodes:e,registry:i.useMemo(()=>({add:s(e=>t(t=>t.includes(e)?t:[...t,e]),`add`),remove:s(e=>t(t=>t.filter(t=>t!==e)),`remove`)}),[])}}s(m,`useFocusScopeBranchRegistry`);function h(e){let t=i.useContext(f);i.useEffect(()=>{if(!(!e||!t))return t.add(e),()=>t.remove(e)},[e,t])}s(h,`useFocusScopeBranch`);function g(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(S(r,{select:t}),document.activeElement!==n)return}s(g,`focusFirst`);function _(e){let t=v(e);return[y(t,e),y(t.reverse(),e)]}s(_,`getTabbableEdges`);function v(e){let t=[],n=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}s(v,`getTabbableCandidates`);function y(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):b(r,{upTo:t})))return r}s(y,`findVisible`);function b(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}s(b,`isHidden`);function x(e){return e.tagName===`INPUT`&&typeof e.select==`function`}s(x,`isSelectableInput`);function S(e,{select:t=!1}={}){if(e&&e.focus){let n=(e.ownerDocument??document).activeElement;e.focus({preventScroll:!0}),e!==n&&x(e)&&t&&e.select()}}s(S,`focus`);var C=w();function w(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=T(e,t),e.unshift(t)},remove(t){e=T(e,t),e[0]?.resume()}}}s(w,`createFocusScopesStack`);function T(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}s(T,`arrayRemove`);function E(e){return e.filter(e=>e.tagName!==`A`)}s(E,`removeLinks`),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return d}});
|
package/dist/dist-UkWa-Arh.mjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./dist-GazS1kfR.mjs";
|
|
2
|
-
import * as t from "react";
|
|
3
|
-
//#region ../../node_modules/.bun/@radix-ui+react-id@1.1.4+c841d34b494ec30a/node_modules/@radix-ui/react-id/dist/index.mjs
|
|
4
|
-
var n = Object.defineProperty, r = (e, t) => n(e, "name", {
|
|
5
|
-
value: t,
|
|
6
|
-
configurable: !0
|
|
7
|
-
}), i = t.useId || (() => void 0), a = 0;
|
|
8
|
-
function o(n) {
|
|
9
|
-
let [r, o] = t.useState(i());
|
|
10
|
-
return e(() => {
|
|
11
|
-
n || o((e) => e ?? String(a++));
|
|
12
|
-
}, [n]), n || (r ? `radix-${r}` : "");
|
|
13
|
-
}
|
|
14
|
-
r(o, "useId");
|
|
15
|
-
//#endregion
|
|
16
|
-
export { o as t };
|
package/dist/dist-UnTrOmPV.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./chunk-mLOUI7ql.js");let t=require("react");t=e.r(t,1);let n=require("react/jsx-runtime");var r=Object.defineProperty,i=(e,t)=>r(e,`name`,{value:t,configurable:!0}),a={LTR:`ltr`,RTL:`rtl`},o=t.createContext(void 0),s=i(e=>{let{dir:t,children:r}=e;return(0,n.jsx)(o.Provider,{value:t,children:r})},`DirectionProvider`);function c(e){let n=t.useContext(o);return e||n||a.LTR}i(c,`useDirection`),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return s}});
|
package/dist/dist-YAADIsyo.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./chunk-mLOUI7ql.js"),t=require("./dist-CGgemr2V.js");let n=require("react");n=e.r(n,1);var r=Object.defineProperty,i=(e,t)=>r(e,`name`,{value:t,configurable:!0}),a=n.useEffectEvent,o=n.useInsertionEffect;function s(e){if(typeof a==`function`)return a(e);let r=n.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof o==`function`?o(()=>{r.current=e}):t.t(()=>{r.current=e}),n.useMemo(()=>((...e)=>r.current?.(...e)),[])}i(s,`useEffectEvent`);var c=Object.defineProperty,l=(e,t)=>c(e,`name`,{value:t,configurable:!0}),u=n.useInsertionEffect||t.t;function d({prop:e,defaultProp:t,onChange:r=l(()=>{},`onChange`),caller:i}){let[a,o,s]=f({defaultProp:t,onChange:r}),c=e!==void 0;return[c?e:a,n.useCallback(t=>{if(c){let n=p(t)?t(e):t;n!==e&&s.current?.(n)}else o(t)},[c,e,o,s])]}l(d,`useControllableState`);function f({defaultProp:e,onChange:t}){let[r,i]=n.useState(e),a=n.useRef(r),o=n.useRef(t);return u(()=>{o.current=t},[t]),n.useEffect(()=>{a.current!==r&&(o.current?.(r),a.current=r)},[r,a]),[r,i,o]}l(f,`useUncontrolledState`);function p(e){return typeof e==`function`}l(p,`isFunction`);var m=Symbol(`RADIX:SYNC_STATE`);function h(e,t,r,i){let{prop:a,defaultProp:o,onChange:c,caller:l}=t,u=a!==void 0,d=s(c),f=[{...r,state:o}];i&&f.push(i);let[p,h]=n.useReducer((t,n)=>{if(n.type===m)return{...t,state:n.state};let r=e(t,n);return u&&!Object.is(r.state,t.state)&&d(r.state),r},...f),g=p.state,_=n.useRef(g);n.useEffect(()=>{_.current!==g&&(_.current=g,u||d(g))},[g,_,u]);let v=n.useMemo(()=>a===void 0?p:{...p,state:a},[p,a]);return n.useEffect(()=>{u&&!Object.is(a,p.state)&&h({type:m,state:a})},[a,p.state,u]),[v,h]}l(h,`useControllableStateReducer`),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return d}});
|
package/dist/dist-Zs2sjYhL.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./chunk-mLOUI7ql.js"),t=require("./dist-BBvidwzC.js"),n=require("./dist-DYUvPCPC.js"),r=require("./dist-CGgemr2V.js");let i=require("react");i=e.r(i,1);let a=require("react/jsx-runtime");var o=Object.defineProperty,s=(e,t)=>o(e,`name`,{value:t,configurable:!0});function c(e){let r=e+`CollectionProvider`,[o,c]=n.t(r),[l,u]=o(r,{collectionRef:{current:null},itemMap:new Map}),d=s(e=>{let{scope:t,children:n}=e,r=i.useRef(null),o=i.useRef(new Map).current;return(0,a.jsx)(l,{scope:t,itemMap:o,collectionRef:r,children:n})},`CollectionProvider`);d.displayName=r;let f=e+`CollectionSlot`,p=t.n(f),m=i.forwardRef((e,n)=>{let{scope:r,children:i}=e;return(0,a.jsx)(p,{ref:t.a(n,u(f,r).collectionRef),children:i})});m.displayName=f;let h=e+`CollectionItemSlot`,g=`data-radix-collection-item`,_=t.n(h),v=i.forwardRef((e,n)=>{let{scope:r,children:o,...s}=e,c=i.useRef(null),l=t.a(n,c),d=u(h,r);return i.useEffect(()=>(d.itemMap.set(c,{ref:c,...s}),()=>void d.itemMap.delete(c))),(0,a.jsx)(_,{[g]:``,ref:l,children:o})});v.displayName=h;function y(t){let n=u(e+`CollectionConsumer`,t);return i.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return s(y,`useCollection`),[{Provider:d,Slot:m,ItemSlot:v},y,c]}s(c,`createCollection`);var l=new WeakMap,u=class e extends Map{static{s(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],l.set(this,!0)}set(e,t){return l.get(this)&&!this.has(e)&&this.#e.push(e),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=r?this.size:this.size+1,a=p(e),o=a>=0?Math.min(a,i-1):Math.max(i+a,0);if(r?this.#e.indexOf(t)===o:o===this.size)return this.set(t,n),this;let s=this.#e.filter(e=>e!==t);s.splice(o,0,t);let c=s.map(e=>[e,e===t?n:this.get(e)]);this.clear();for(let[e,t]of c)this.set(e,t);return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<r?r-1:r;return this.insert(a,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<=r?r:r+1;return this.insert(a,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t===void 0?!1:this.delete(t)}at(e){let t=d(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=d(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return d(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=0,a=n;for(let e of this)a=i===0&&!r?e:Reflect.apply(t,this,[a,e,i,this]),i++;return a}reduceRight(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=n;for(let e=this.size-1;e>=0;e--){let n=this.entryAt(e);i=e===this.size-1&&!r?n:Reflect.apply(t,this,[i,n,e,this])}return i}sort(e){if(typeof e!=`function`)throw TypeError(`OrderedDict.sort requires a compare function`);let t=[...this.entries()].sort(e);this.clear();for(let[e,n]of t)this.set(e,n);return this}toSorted(t){if(typeof t!=`function`)throw TypeError(`OrderedDict.toSorted requires a compare function`);return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e;for(let e of this.#e.slice(t,n))r.set(e,this.get(e));return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function d(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=f(e,t);return n===-1?void 0:e[n]}s(d,`at`);function f(e,t){let n=e.length,r=p(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}s(f,`toSafeIndex`);function p(e){return e!==e||e===0?0:Math.trunc(e)}s(p,`toSafeInteger`);function m(e){let o=e+`CollectionProvider`,[c,l]=n.t(o),[d,f]=c(o);d.displayName=e+`CollectionStableContextProvider`;let[p,m]=c(o);p.displayName=e+`CollectionStatefulContextProvider`;let g=s(({state:e,...t})=>e?(0,a.jsx)(x,{...t,state:e}):(0,a.jsx)(b,{...t}),`CollectionProvider`);g.displayName=o;let b=s(e=>{let t=O();return(0,a.jsx)(x,{...e,state:t})},`CollectionInit`);b.displayName=e+`CollectionInit`;let x=s(e=>{let{scope:n,children:r,state:o}=e,s=i.useRef(null),[c,l]=i.useState(null),f=t.a(s,l),[m,h]=o,g=i.useRef(new u),b=i.useCallback(()=>{let e=g.current;return _(e)||e.sort(v),e},[]);return i.useEffect(()=>{if(!c)return;let e=y(()=>{h(e=>{let t=e.toSorted(v);return t.some(([t],n)=>e.keyAt(n)!==t)?t:e})});return e.observe(c,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[c,h]),(0,a.jsx)(d,{scope:n,collectionElementRef:f,collectionElementRefObject:s,getCollection:b,setCollection:h,registryRef:g,children:(0,a.jsx)(p,{scope:n,collectionElement:c,collection:m,children:r})})},`CollectionProviderImpl`);x.displayName=e+`CollectionProviderImpl`;let S=e+`CollectionSlot`,C=t.n(S),w=i.forwardRef((e,n)=>{let{scope:r,children:i}=e;return(0,a.jsx)(C,{ref:t.a(n,f(S,r).collectionElementRef),children:i})});w.displayName=S;let T=e+`CollectionItemSlot`,E=t.n(T),D=i.forwardRef((e,n)=>{let{scope:o,children:s,...c}=e,l=i.useRef(null),{setCollection:d,registryRef:p}=f(T,o),m=i.useRef(c);h(m.current,c)||(m.current=c);let g=m.current,_=t.a(n,i.useCallback(e=>{let t=p.current;e?t.set(e,{...m.current,element:e}):l.current&&t.delete(l.current)},[p]),l);r.t(()=>{let e=l.current,t=p.current;e&&t.has(e)&&t.set(e,{...g,element:e})},[g,p]);let y=i.useRef(null);return i.useEffect(()=>{let e=l.current,t=y.current;(t?.element??null)===e&&(!e||t?.itemData===g)||(y.current=e?{element:e,itemData:g}:null,d(n=>{let r=new u(n);return t&&t.element!==e&&r.delete(t.element),e&&r.set(e,{...g,element:e}),r.sort(v)}))}),i.useEffect(()=>()=>{let e=y.current;y.current=null,e&&d(t=>{if(!t.has(e.element))return t;let n=new u(t);return n.delete(e.element),n})},[d]),(0,a.jsx)(E,{"data-radix-collection-item":``,ref:_,children:s})});D.displayName=T;function O(){return i.useState(new u)}s(O,`useInitCollection`);function k(t){let{collection:n}=m(e+`CollectionConsumer`,t);return n}s(k,`useCollection`);function A(t){let{getCollection:n}=f(e+`CollectionConsumer`,t);return n}return s(A,`useGetCollection`),[{Provider:g,Slot:w,ItemSlot:D},{createCollectionScope:l,useCollection:k,useGetCollection:A,useInitCollection:O}]}s(m,`createCollection`);function h(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}s(h,`shallowEqual`);function g(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}s(g,`isElementPreceding`);function _(e){let t;for(let n of e.keys()){if(t){let e=t.compareDocumentPosition(n);if(!(e&Node.DOCUMENT_POSITION_DISCONNECTED)&&e&Node.DOCUMENT_POSITION_PRECEDING)return!1}t=n}return!0}s(_,`isInDocumentOrder`);function v(e,t){return!e[1].element||!t[1].element?0:g(e[1].element,t[1].element)?-1:1}s(v,`sortByDocumentPosition`);function y(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}s(y,`getChildListObserver`),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return c}});
|
package/dist/dist-hFLuJoMi.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./chunk-mLOUI7ql.js"),t=require("./dist-BBvidwzC.js");let n=require("react");n=e.r(n,1);let r=require("react-dom");r=e.r(r,1);let i=require("react/jsx-runtime");var a=Object.defineProperty,o=(e,t)=>a(e,`name`,{value:t,configurable:!0}),s=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,r)=>{let a=t.n(`Primitive.${r}`),o=n.forwardRef((e,t)=>{let{asChild:n,...o}=e,s=n?a:r;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,i.jsx)(s,{...o,ref:t})});return o.displayName=`Primitive.${r}`,{...e,[r]:o}},{});function c(e,t){e&&r.flushSync(()=>e.dispatchEvent(t))}o(c,`dispatchDiscreteCustomEvent`),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return s}});
|