@konstructio/ui 0.1.2-alpha.3 → 0.1.2-alpha.31
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/DatePicker.css +1 -1
- package/dist/Modal-5xSxFoaD.js +99 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/chevron-down-DgT-uSF9.js +5 -0
- package/dist/chevron-right-DYvXLeql.js +7 -0
- package/dist/chevron-up-DrQr2Fwd.js +5 -0
- package/dist/components/Alert/Alert.js +2 -2
- package/dist/components/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Badge/Badge.js +30 -33
- package/dist/components/Badge/Badge.variants.js +8 -6
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/components/Item/Item.js +24 -23
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Button/Button.variants.js +1 -1
- package/dist/components/Card/Card.variants.js +5 -9
- package/dist/components/Checkbox/Checkbox.js +6 -6
- package/dist/components/Command/Command.js +2 -2
- package/dist/components/Command/components/Command.js +1 -1
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +1 -1
- package/dist/components/Command/components/CommandInput.js +2 -2
- package/dist/components/Command/components/CommandItem.js +1 -1
- package/dist/components/Command/components/CommandList.js +1 -1
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +2 -2
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/Datepicker/DatePicker.js +1209 -1147
- package/dist/components/Divider/Divider.variants.js +1 -1
- package/dist/components/Dropdown/Dropdown.js +46 -28
- package/dist/components/Dropdown/Dropdown.variants.js +32 -9
- package/dist/components/Dropdown/components/List/List.js +133 -54
- package/dist/components/Dropdown/components/List/List.variants.js +9 -7
- package/dist/components/Dropdown/components/ListItem/ListItem.js +74 -24
- package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +9 -7
- package/dist/components/Dropdown/components/Wrapper.js +144 -109
- package/dist/components/Dropdown/constants/index.js +4 -0
- package/dist/components/Dropdown/constants/pagination.js +4 -0
- package/dist/components/Dropdown/contexts/dropdown.context.js +26 -8
- package/dist/components/Dropdown/contexts/dropdown.provider.js +48 -19
- package/dist/components/Dropdown/hooks/useDropdown.js +83 -39
- package/dist/components/Dropdown/hooks/useNavigationList.js +28 -36
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/Filter.variants.js +2 -2
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/Input.variants.js +1 -1
- package/dist/components/Loading/Loading.js +1 -7
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/Modal/components/Body/Body.js +1 -1
- package/dist/components/Modal/components/Footer/Footer.js +1 -1
- package/dist/components/Modal/components/Header/Header.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +3 -3
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/NumberInput/NumberInput.js +2 -2
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +8 -0
- package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +45 -0
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +27 -0
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +629 -0
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +36 -0
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +45 -0
- package/dist/components/PhoneNumberInput/components/Wrapper.js +625 -0
- package/dist/components/PhoneNumberInput/components/index.js +6 -0
- package/dist/components/PhoneNumberInput/contexts/index.js +8 -0
- package/dist/components/PhoneNumberInput/contexts/phone-number.context.js +28 -0
- package/dist/components/PhoneNumberInput/contexts/phone-number.hook.js +13 -0
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +6139 -0
- package/dist/components/PhoneNumberInput/utils/index.js +11 -0
- package/dist/components/PieChart/PieChart.js +647 -664
- package/dist/components/RadioCard/RadioCard.variants.js +1 -6
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Sidebar/Sidebar.variants.js +2 -2
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +29 -28
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Switch/Switch.js +8 -8
- package/dist/components/Switch/Switch.variants.js +4 -4
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/Tabs.variants.js +45 -24
- package/dist/components/Tabs/components/Content.js +1 -1
- package/dist/components/Tabs/components/List.js +1 -1
- package/dist/components/Tabs/components/Trigger.js +9 -8
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +98 -49
- package/dist/components/TimePicker/TimePicker.variants.js +2 -2
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +2 -2
- package/dist/components/Toast/Toast.js +206 -181
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Typography/Typography.variants.js +18 -23
- package/dist/components/VirtualizedTable/VirtualizedTable.js +119 -0
- package/dist/components/VirtualizedTable/VirtualizedTable.variants.js +5 -0
- package/dist/components/VirtualizedTable/assets/chevron-down.js +25 -0
- package/dist/components/VirtualizedTable/assets/chevron-up.js +25 -0
- package/dist/components/VirtualizedTable/assets/index.js +6 -0
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +72 -0
- package/dist/components/VirtualizedTable/components/Body/Body.js +51 -0
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +165 -0
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +34 -0
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +88 -0
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +48 -0
- package/dist/components/VirtualizedTable/components/Header/Header.js +84 -0
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +53 -0
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +67 -0
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +34 -0
- package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +27 -0
- package/dist/components/VirtualizedTable/components/index.js +16 -0
- package/dist/components/VirtualizedTable/constants/index.js +5 -0
- package/dist/components/VirtualizedTable/constants/pagination.js +5 -0
- package/dist/components/VirtualizedTable/contexts/index.js +8 -0
- package/dist/components/VirtualizedTable/contexts/table.context.js +32 -0
- package/dist/components/VirtualizedTable/contexts/table.hook.js +11 -0
- package/dist/components/VirtualizedTable/contexts/table.provider.js +85 -0
- package/dist/components/index.js +79 -73
- package/dist/contexts/theme.provider.js +0 -1
- package/dist/{createLucideIcon-DbC6TvM5.js → createLucideIcon-D4r5Phnh.js} +0 -24
- package/dist/debounce-BFejQm9P.js +200 -0
- package/dist/ellipsis-vertical-BVPtjl5f.js +9 -0
- package/dist/{index-h-Ul0anl.js → index--V_ZsiQe.js} +1 -22
- package/dist/index-2hB40Iuc.js +1873 -0
- package/dist/index-BZPx6jYI.js +8 -0
- package/dist/{index-bwWKd82e.js → index-BbQkJE5L.js} +1 -1
- package/dist/index-BtQfgaSF.js +60 -0
- package/dist/index-C3tHPg8y.js +662 -0
- package/dist/index-CIAmiWcw.js +200 -0
- package/dist/index-CSFe9uC5.js +14 -0
- package/dist/index-CSWGJT-v.js +1722 -0
- package/dist/index-CigKKiZS.js +91 -0
- package/dist/index-DDByhzds.js +137 -0
- package/dist/{index-BAraV3ai.js → index-DH2Fnov1.js} +11 -12
- package/dist/index-DLcqcWxM.js +29 -0
- package/dist/index-Dbt2vBmS.js +136 -0
- package/dist/{index-DB2XhXHn.js → index-DpW9ExsS.js} +7 -7
- package/dist/index-DrWQH0QF.js +55 -0
- package/dist/{index-D3xzCzcO.js → index-X4k_cU8k.js} +4 -4
- package/dist/index-kyuBfLcN.js +479 -0
- package/dist/{index-C1g_chDT.js → index-mPY_8Y5v.js} +2 -2
- package/dist/index-ohdbKsws.js +27 -0
- package/dist/index.d.ts +184 -18
- package/dist/index.js +106 -98
- package/dist/libphonenumber-_7ZyKWA7.js +11549 -0
- package/dist/package.json +46 -32
- package/dist/styles.css +1 -1
- package/dist/ui/civo-theme.css +191 -167
- package/dist/{useBreadcrumb-B8DnuqkR.js → useBreadcrumb-BAHbGQ_O.js} +0 -10
- package/dist/utils/index.js +534 -501
- package/dist/{x-BPcqkRZd.js → x-DPU9OdYH.js} +1 -1
- package/package.json +46 -32
- package/dist/Modal-V67Uz78z.js +0 -98
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/chevron-down-BLZPftpV.js +0 -11
- package/dist/chevron-up-RLP4nX7V.js +0 -54
- package/dist/index-BXuxPoz7.js +0 -435
- package/dist/index-BfXxHr_2.js +0 -125
- package/dist/index-C9T9HQaa.js +0 -423
- package/dist/index-CZnD2QxM.js +0 -32
- package/dist/index-CrBonFvu.js +0 -144
- package/dist/index-Cvx4lqTq.js +0 -47
- package/dist/index-DQH6odE9.js +0 -82
- package/dist/index-Oq5GlCHP.js +0 -131
- package/dist/index-iXyXtdgP.js +0 -31
package/dist/index-C9T9HQaa.js
DELETED
|
@@ -1,423 +0,0 @@
|
|
|
1
|
-
import * as D from "react";
|
|
2
|
-
import R from "react";
|
|
3
|
-
import { g as b } from "./_commonjsHelpers-C6fGbg64.js";
|
|
4
|
-
import { c as w } from "./index-DQH6odE9.js";
|
|
5
|
-
import { jsx as N } from "react/jsx-runtime";
|
|
6
|
-
var v = { exports: {} }, u = {};
|
|
7
|
-
/**
|
|
8
|
-
* @license React
|
|
9
|
-
* react-dom.production.js
|
|
10
|
-
*
|
|
11
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
12
|
-
*
|
|
13
|
-
* This source code is licensed under the MIT license found in the
|
|
14
|
-
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/
|
|
16
|
-
var h;
|
|
17
|
-
function M() {
|
|
18
|
-
if (h) return u;
|
|
19
|
-
h = 1;
|
|
20
|
-
var c = R;
|
|
21
|
-
function d(n) {
|
|
22
|
-
var r = "https://react.dev/errors/" + n;
|
|
23
|
-
if (1 < arguments.length) {
|
|
24
|
-
r += "?args[]=" + encodeURIComponent(arguments[1]);
|
|
25
|
-
for (var a = 2; a < arguments.length; a++)
|
|
26
|
-
r += "&args[]=" + encodeURIComponent(arguments[a]);
|
|
27
|
-
}
|
|
28
|
-
return "Minified React error #" + n + "; visit " + r + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
29
|
-
}
|
|
30
|
-
function f() {
|
|
31
|
-
}
|
|
32
|
-
var o = {
|
|
33
|
-
d: {
|
|
34
|
-
f,
|
|
35
|
-
r: function() {
|
|
36
|
-
throw Error(d(522));
|
|
37
|
-
},
|
|
38
|
-
D: f,
|
|
39
|
-
C: f,
|
|
40
|
-
L: f,
|
|
41
|
-
m: f,
|
|
42
|
-
X: f,
|
|
43
|
-
S: f,
|
|
44
|
-
M: f
|
|
45
|
-
},
|
|
46
|
-
p: 0,
|
|
47
|
-
findDOMNode: null
|
|
48
|
-
}, s = Symbol.for("react.portal");
|
|
49
|
-
function g(n, r, a) {
|
|
50
|
-
var t = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
|
|
51
|
-
return {
|
|
52
|
-
$$typeof: s,
|
|
53
|
-
key: t == null ? null : "" + t,
|
|
54
|
-
children: n,
|
|
55
|
-
containerInfo: r,
|
|
56
|
-
implementation: a
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
var y = c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
60
|
-
function m(n, r) {
|
|
61
|
-
if (n === "font") return "";
|
|
62
|
-
if (typeof r == "string")
|
|
63
|
-
return r === "use-credentials" ? r : "";
|
|
64
|
-
}
|
|
65
|
-
return u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = o, u.createPortal = function(n, r) {
|
|
66
|
-
var a = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
|
67
|
-
if (!r || r.nodeType !== 1 && r.nodeType !== 9 && r.nodeType !== 11)
|
|
68
|
-
throw Error(d(299));
|
|
69
|
-
return g(n, r, null, a);
|
|
70
|
-
}, u.flushSync = function(n) {
|
|
71
|
-
var r = y.T, a = o.p;
|
|
72
|
-
try {
|
|
73
|
-
if (y.T = null, o.p = 2, n) return n();
|
|
74
|
-
} finally {
|
|
75
|
-
y.T = r, o.p = a, o.d.f();
|
|
76
|
-
}
|
|
77
|
-
}, u.preconnect = function(n, r) {
|
|
78
|
-
typeof n == "string" && (r ? (r = r.crossOrigin, r = typeof r == "string" ? r === "use-credentials" ? r : "" : void 0) : r = null, o.d.C(n, r));
|
|
79
|
-
}, u.prefetchDNS = function(n) {
|
|
80
|
-
typeof n == "string" && o.d.D(n);
|
|
81
|
-
}, u.preinit = function(n, r) {
|
|
82
|
-
if (typeof n == "string" && r && typeof r.as == "string") {
|
|
83
|
-
var a = r.as, t = m(a, r.crossOrigin), e = typeof r.integrity == "string" ? r.integrity : void 0, i = typeof r.fetchPriority == "string" ? r.fetchPriority : void 0;
|
|
84
|
-
a === "style" ? o.d.S(
|
|
85
|
-
n,
|
|
86
|
-
typeof r.precedence == "string" ? r.precedence : void 0,
|
|
87
|
-
{
|
|
88
|
-
crossOrigin: t,
|
|
89
|
-
integrity: e,
|
|
90
|
-
fetchPriority: i
|
|
91
|
-
}
|
|
92
|
-
) : a === "script" && o.d.X(n, {
|
|
93
|
-
crossOrigin: t,
|
|
94
|
-
integrity: e,
|
|
95
|
-
fetchPriority: i,
|
|
96
|
-
nonce: typeof r.nonce == "string" ? r.nonce : void 0
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
}, u.preinitModule = function(n, r) {
|
|
100
|
-
if (typeof n == "string")
|
|
101
|
-
if (typeof r == "object" && r !== null) {
|
|
102
|
-
if (r.as == null || r.as === "script") {
|
|
103
|
-
var a = m(
|
|
104
|
-
r.as,
|
|
105
|
-
r.crossOrigin
|
|
106
|
-
);
|
|
107
|
-
o.d.M(n, {
|
|
108
|
-
crossOrigin: a,
|
|
109
|
-
integrity: typeof r.integrity == "string" ? r.integrity : void 0,
|
|
110
|
-
nonce: typeof r.nonce == "string" ? r.nonce : void 0
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
} else r == null && o.d.M(n);
|
|
114
|
-
}, u.preload = function(n, r) {
|
|
115
|
-
if (typeof n == "string" && typeof r == "object" && r !== null && typeof r.as == "string") {
|
|
116
|
-
var a = r.as, t = m(a, r.crossOrigin);
|
|
117
|
-
o.d.L(n, a, {
|
|
118
|
-
crossOrigin: t,
|
|
119
|
-
integrity: typeof r.integrity == "string" ? r.integrity : void 0,
|
|
120
|
-
nonce: typeof r.nonce == "string" ? r.nonce : void 0,
|
|
121
|
-
type: typeof r.type == "string" ? r.type : void 0,
|
|
122
|
-
fetchPriority: typeof r.fetchPriority == "string" ? r.fetchPriority : void 0,
|
|
123
|
-
referrerPolicy: typeof r.referrerPolicy == "string" ? r.referrerPolicy : void 0,
|
|
124
|
-
imageSrcSet: typeof r.imageSrcSet == "string" ? r.imageSrcSet : void 0,
|
|
125
|
-
imageSizes: typeof r.imageSizes == "string" ? r.imageSizes : void 0,
|
|
126
|
-
media: typeof r.media == "string" ? r.media : void 0
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
}, u.preloadModule = function(n, r) {
|
|
130
|
-
if (typeof n == "string")
|
|
131
|
-
if (r) {
|
|
132
|
-
var a = m(r.as, r.crossOrigin);
|
|
133
|
-
o.d.m(n, {
|
|
134
|
-
as: typeof r.as == "string" && r.as !== "script" ? r.as : void 0,
|
|
135
|
-
crossOrigin: a,
|
|
136
|
-
integrity: typeof r.integrity == "string" ? r.integrity : void 0
|
|
137
|
-
});
|
|
138
|
-
} else o.d.m(n);
|
|
139
|
-
}, u.requestFormReset = function(n) {
|
|
140
|
-
o.d.r(n);
|
|
141
|
-
}, u.unstable_batchedUpdates = function(n, r) {
|
|
142
|
-
return n(r);
|
|
143
|
-
}, u.useFormState = function(n, r, a) {
|
|
144
|
-
return y.H.useFormState(n, r, a);
|
|
145
|
-
}, u.useFormStatus = function() {
|
|
146
|
-
return y.H.useHostTransitionStatus();
|
|
147
|
-
}, u.version = "19.0.0", u;
|
|
148
|
-
}
|
|
149
|
-
var l = {};
|
|
150
|
-
/**
|
|
151
|
-
* @license React
|
|
152
|
-
* react-dom.development.js
|
|
153
|
-
*
|
|
154
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
155
|
-
*
|
|
156
|
-
* This source code is licensed under the MIT license found in the
|
|
157
|
-
* LICENSE file in the root directory of this source tree.
|
|
158
|
-
*/
|
|
159
|
-
var S;
|
|
160
|
-
function A() {
|
|
161
|
-
return S || (S = 1, process.env.NODE_ENV !== "production" && function() {
|
|
162
|
-
function c() {
|
|
163
|
-
}
|
|
164
|
-
function d(t) {
|
|
165
|
-
return "" + t;
|
|
166
|
-
}
|
|
167
|
-
function f(t, e, i) {
|
|
168
|
-
var p = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
|
|
169
|
-
try {
|
|
170
|
-
var _ = !1;
|
|
171
|
-
} catch {
|
|
172
|
-
_ = !0;
|
|
173
|
-
}
|
|
174
|
-
return _ && (console.error(
|
|
175
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
176
|
-
typeof Symbol == "function" && Symbol.toStringTag && p[Symbol.toStringTag] || p.constructor.name || "Object"
|
|
177
|
-
), d(p)), {
|
|
178
|
-
$$typeof: r,
|
|
179
|
-
key: p == null ? null : "" + p,
|
|
180
|
-
children: t,
|
|
181
|
-
containerInfo: e,
|
|
182
|
-
implementation: i
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
function o(t, e) {
|
|
186
|
-
if (t === "font") return "";
|
|
187
|
-
if (typeof e == "string")
|
|
188
|
-
return e === "use-credentials" ? e : "";
|
|
189
|
-
}
|
|
190
|
-
function s(t) {
|
|
191
|
-
return t === null ? "`null`" : t === void 0 ? "`undefined`" : t === "" ? "an empty string" : 'something with type "' + typeof t + '"';
|
|
192
|
-
}
|
|
193
|
-
function g(t) {
|
|
194
|
-
return t === null ? "`null`" : t === void 0 ? "`undefined`" : t === "" ? "an empty string" : typeof t == "string" ? JSON.stringify(t) : typeof t == "number" ? "`" + t + "`" : 'something with type "' + typeof t + '"';
|
|
195
|
-
}
|
|
196
|
-
function y() {
|
|
197
|
-
var t = a.H;
|
|
198
|
-
return t === null && console.error(
|
|
199
|
-
`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
200
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
201
|
-
2. You might be breaking the Rules of Hooks
|
|
202
|
-
3. You might have more than one copy of React in the same app
|
|
203
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
204
|
-
), t;
|
|
205
|
-
}
|
|
206
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
207
|
-
var m = R, n = {
|
|
208
|
-
d: {
|
|
209
|
-
f: c,
|
|
210
|
-
r: function() {
|
|
211
|
-
throw Error(
|
|
212
|
-
"Invalid form element. requestFormReset must be passed a form that was rendered by React."
|
|
213
|
-
);
|
|
214
|
-
},
|
|
215
|
-
D: c,
|
|
216
|
-
C: c,
|
|
217
|
-
L: c,
|
|
218
|
-
m: c,
|
|
219
|
-
X: c,
|
|
220
|
-
S: c,
|
|
221
|
-
M: c
|
|
222
|
-
},
|
|
223
|
-
p: 0,
|
|
224
|
-
findDOMNode: null
|
|
225
|
-
}, r = Symbol.for("react.portal"), a = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
226
|
-
typeof Map == "function" && Map.prototype != null && typeof Map.prototype.forEach == "function" && typeof Set == "function" && Set.prototype != null && typeof Set.prototype.clear == "function" && typeof Set.prototype.forEach == "function" || console.error(
|
|
227
|
-
"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
|
|
228
|
-
), l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = n, l.createPortal = function(t, e) {
|
|
229
|
-
var i = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
|
230
|
-
if (!e || e.nodeType !== 1 && e.nodeType !== 9 && e.nodeType !== 11)
|
|
231
|
-
throw Error("Target container is not a DOM element.");
|
|
232
|
-
return f(t, e, null, i);
|
|
233
|
-
}, l.flushSync = function(t) {
|
|
234
|
-
var e = a.T, i = n.p;
|
|
235
|
-
try {
|
|
236
|
-
if (a.T = null, n.p = 2, t)
|
|
237
|
-
return t();
|
|
238
|
-
} finally {
|
|
239
|
-
a.T = e, n.p = i, n.d.f() && console.error(
|
|
240
|
-
"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
|
|
241
|
-
);
|
|
242
|
-
}
|
|
243
|
-
}, l.preconnect = function(t, e) {
|
|
244
|
-
typeof t == "string" && t ? e != null && typeof e != "object" ? console.error(
|
|
245
|
-
"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
|
|
246
|
-
g(e)
|
|
247
|
-
) : e != null && typeof e.crossOrigin != "string" && console.error(
|
|
248
|
-
"ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
|
|
249
|
-
s(e.crossOrigin)
|
|
250
|
-
) : console.error(
|
|
251
|
-
"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
252
|
-
s(t)
|
|
253
|
-
), typeof t == "string" && (e ? (e = e.crossOrigin, e = typeof e == "string" ? e === "use-credentials" ? e : "" : void 0) : e = null, n.d.C(t, e));
|
|
254
|
-
}, l.prefetchDNS = function(t) {
|
|
255
|
-
if (typeof t != "string" || !t)
|
|
256
|
-
console.error(
|
|
257
|
-
"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
258
|
-
s(t)
|
|
259
|
-
);
|
|
260
|
-
else if (1 < arguments.length) {
|
|
261
|
-
var e = arguments[1];
|
|
262
|
-
typeof e == "object" && e.hasOwnProperty("crossOrigin") ? console.error(
|
|
263
|
-
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
264
|
-
g(e)
|
|
265
|
-
) : console.error(
|
|
266
|
-
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
267
|
-
g(e)
|
|
268
|
-
);
|
|
269
|
-
}
|
|
270
|
-
typeof t == "string" && n.d.D(t);
|
|
271
|
-
}, l.preinit = function(t, e) {
|
|
272
|
-
if (typeof t == "string" && t ? e == null || typeof e != "object" ? console.error(
|
|
273
|
-
"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
|
|
274
|
-
g(e)
|
|
275
|
-
) : e.as !== "style" && e.as !== "script" && console.error(
|
|
276
|
-
'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
|
|
277
|
-
g(e.as)
|
|
278
|
-
) : console.error(
|
|
279
|
-
"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
280
|
-
s(t)
|
|
281
|
-
), typeof t == "string" && e && typeof e.as == "string") {
|
|
282
|
-
var i = e.as, p = o(i, e.crossOrigin), _ = typeof e.integrity == "string" ? e.integrity : void 0, O = typeof e.fetchPriority == "string" ? e.fetchPriority : void 0;
|
|
283
|
-
i === "style" ? n.d.S(
|
|
284
|
-
t,
|
|
285
|
-
typeof e.precedence == "string" ? e.precedence : void 0,
|
|
286
|
-
{
|
|
287
|
-
crossOrigin: p,
|
|
288
|
-
integrity: _,
|
|
289
|
-
fetchPriority: O
|
|
290
|
-
}
|
|
291
|
-
) : i === "script" && n.d.X(t, {
|
|
292
|
-
crossOrigin: p,
|
|
293
|
-
integrity: _,
|
|
294
|
-
fetchPriority: O,
|
|
295
|
-
nonce: typeof e.nonce == "string" ? e.nonce : void 0
|
|
296
|
-
});
|
|
297
|
-
}
|
|
298
|
-
}, l.preinitModule = function(t, e) {
|
|
299
|
-
var i = "";
|
|
300
|
-
if (typeof t == "string" && t || (i += " The `href` argument encountered was " + s(t) + "."), e !== void 0 && typeof e != "object" ? i += " The `options` argument encountered was " + s(e) + "." : e && "as" in e && e.as !== "script" && (i += " The `as` option encountered was " + g(e.as) + "."), i)
|
|
301
|
-
console.error(
|
|
302
|
-
"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
|
|
303
|
-
i
|
|
304
|
-
);
|
|
305
|
-
else
|
|
306
|
-
switch (i = e && typeof e.as == "string" ? e.as : "script", i) {
|
|
307
|
-
case "script":
|
|
308
|
-
break;
|
|
309
|
-
default:
|
|
310
|
-
i = g(i), console.error(
|
|
311
|
-
'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
|
|
312
|
-
i,
|
|
313
|
-
t
|
|
314
|
-
);
|
|
315
|
-
}
|
|
316
|
-
typeof t == "string" && (typeof e == "object" && e !== null ? (e.as == null || e.as === "script") && (i = o(
|
|
317
|
-
e.as,
|
|
318
|
-
e.crossOrigin
|
|
319
|
-
), n.d.M(t, {
|
|
320
|
-
crossOrigin: i,
|
|
321
|
-
integrity: typeof e.integrity == "string" ? e.integrity : void 0,
|
|
322
|
-
nonce: typeof e.nonce == "string" ? e.nonce : void 0
|
|
323
|
-
})) : e == null && n.d.M(t));
|
|
324
|
-
}, l.preload = function(t, e) {
|
|
325
|
-
var i = "";
|
|
326
|
-
if (typeof t == "string" && t || (i += " The `href` argument encountered was " + s(t) + "."), e == null || typeof e != "object" ? i += " The `options` argument encountered was " + s(e) + "." : typeof e.as == "string" && e.as || (i += " The `as` option encountered was " + s(e.as) + "."), i && console.error(
|
|
327
|
-
'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
|
|
328
|
-
i
|
|
329
|
-
), typeof t == "string" && typeof e == "object" && e !== null && typeof e.as == "string") {
|
|
330
|
-
i = e.as;
|
|
331
|
-
var p = o(
|
|
332
|
-
i,
|
|
333
|
-
e.crossOrigin
|
|
334
|
-
);
|
|
335
|
-
n.d.L(t, i, {
|
|
336
|
-
crossOrigin: p,
|
|
337
|
-
integrity: typeof e.integrity == "string" ? e.integrity : void 0,
|
|
338
|
-
nonce: typeof e.nonce == "string" ? e.nonce : void 0,
|
|
339
|
-
type: typeof e.type == "string" ? e.type : void 0,
|
|
340
|
-
fetchPriority: typeof e.fetchPriority == "string" ? e.fetchPriority : void 0,
|
|
341
|
-
referrerPolicy: typeof e.referrerPolicy == "string" ? e.referrerPolicy : void 0,
|
|
342
|
-
imageSrcSet: typeof e.imageSrcSet == "string" ? e.imageSrcSet : void 0,
|
|
343
|
-
imageSizes: typeof e.imageSizes == "string" ? e.imageSizes : void 0,
|
|
344
|
-
media: typeof e.media == "string" ? e.media : void 0
|
|
345
|
-
});
|
|
346
|
-
}
|
|
347
|
-
}, l.preloadModule = function(t, e) {
|
|
348
|
-
var i = "";
|
|
349
|
-
typeof t == "string" && t || (i += " The `href` argument encountered was " + s(t) + "."), e !== void 0 && typeof e != "object" ? i += " The `options` argument encountered was " + s(e) + "." : e && "as" in e && typeof e.as != "string" && (i += " The `as` option encountered was " + s(e.as) + "."), i && console.error(
|
|
350
|
-
'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
|
|
351
|
-
i
|
|
352
|
-
), typeof t == "string" && (e ? (i = o(
|
|
353
|
-
e.as,
|
|
354
|
-
e.crossOrigin
|
|
355
|
-
), n.d.m(t, {
|
|
356
|
-
as: typeof e.as == "string" && e.as !== "script" ? e.as : void 0,
|
|
357
|
-
crossOrigin: i,
|
|
358
|
-
integrity: typeof e.integrity == "string" ? e.integrity : void 0
|
|
359
|
-
})) : n.d.m(t));
|
|
360
|
-
}, l.requestFormReset = function(t) {
|
|
361
|
-
n.d.r(t);
|
|
362
|
-
}, l.unstable_batchedUpdates = function(t, e) {
|
|
363
|
-
return t(e);
|
|
364
|
-
}, l.useFormState = function(t, e, i) {
|
|
365
|
-
return y().useFormState(t, e, i);
|
|
366
|
-
}, l.useFormStatus = function() {
|
|
367
|
-
return y().useHostTransitionStatus();
|
|
368
|
-
}, l.version = "19.0.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
369
|
-
}()), l;
|
|
370
|
-
}
|
|
371
|
-
var E;
|
|
372
|
-
function L() {
|
|
373
|
-
if (E) return v.exports;
|
|
374
|
-
E = 1;
|
|
375
|
-
function c() {
|
|
376
|
-
if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
|
|
377
|
-
if (process.env.NODE_ENV !== "production")
|
|
378
|
-
throw new Error("^_^");
|
|
379
|
-
try {
|
|
380
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c);
|
|
381
|
-
} catch (d) {
|
|
382
|
-
console.error(d);
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
return process.env.NODE_ENV === "production" ? (c(), v.exports = /* @__PURE__ */ M()) : v.exports = /* @__PURE__ */ A(), v.exports;
|
|
387
|
-
}
|
|
388
|
-
var T = /* @__PURE__ */ L();
|
|
389
|
-
const I = /* @__PURE__ */ b(T);
|
|
390
|
-
var P = [
|
|
391
|
-
"a",
|
|
392
|
-
"button",
|
|
393
|
-
"div",
|
|
394
|
-
"form",
|
|
395
|
-
"h2",
|
|
396
|
-
"h3",
|
|
397
|
-
"img",
|
|
398
|
-
"input",
|
|
399
|
-
"label",
|
|
400
|
-
"li",
|
|
401
|
-
"nav",
|
|
402
|
-
"ol",
|
|
403
|
-
"p",
|
|
404
|
-
"select",
|
|
405
|
-
"span",
|
|
406
|
-
"svg",
|
|
407
|
-
"ul"
|
|
408
|
-
], H = P.reduce((c, d) => {
|
|
409
|
-
const f = w(`Primitive.${d}`), o = D.forwardRef((s, g) => {
|
|
410
|
-
const { asChild: y, ...m } = s, n = y ? f : d;
|
|
411
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ N(n, { ...m, ref: g });
|
|
412
|
-
});
|
|
413
|
-
return o.displayName = `Primitive.${d}`, { ...c, [d]: o };
|
|
414
|
-
}, {});
|
|
415
|
-
function U(c, d) {
|
|
416
|
-
c && T.flushSync(() => c.dispatchEvent(d));
|
|
417
|
-
}
|
|
418
|
-
export {
|
|
419
|
-
H as P,
|
|
420
|
-
I as R,
|
|
421
|
-
U as d,
|
|
422
|
-
T as r
|
|
423
|
-
};
|
package/dist/index-CZnD2QxM.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as f from "react";
|
|
2
|
-
import { u as a } from "./index-BfXxHr_2.js";
|
|
3
|
-
function h(r) {
|
|
4
|
-
const e = f.useRef({ value: r, previous: r });
|
|
5
|
-
return f.useMemo(() => (e.current.value !== r && (e.current.previous = e.current.value, e.current.value = r), e.current.previous), [r]);
|
|
6
|
-
}
|
|
7
|
-
function z(r) {
|
|
8
|
-
const [e, i] = f.useState(void 0);
|
|
9
|
-
return a(() => {
|
|
10
|
-
if (r) {
|
|
11
|
-
i({ width: r.offsetWidth, height: r.offsetHeight });
|
|
12
|
-
const n = new ResizeObserver((o) => {
|
|
13
|
-
if (!Array.isArray(o) || !o.length)
|
|
14
|
-
return;
|
|
15
|
-
const c = o[0];
|
|
16
|
-
let t, s;
|
|
17
|
-
if ("borderBoxSize" in c) {
|
|
18
|
-
const u = c.borderBoxSize, b = Array.isArray(u) ? u[0] : u;
|
|
19
|
-
t = b.inlineSize, s = b.blockSize;
|
|
20
|
-
} else
|
|
21
|
-
t = r.offsetWidth, s = r.offsetHeight;
|
|
22
|
-
i({ width: t, height: s });
|
|
23
|
-
});
|
|
24
|
-
return n.observe(r, { box: "border-box" }), () => n.unobserve(r);
|
|
25
|
-
} else
|
|
26
|
-
i(void 0);
|
|
27
|
-
}, [r]), e;
|
|
28
|
-
}
|
|
29
|
-
export {
|
|
30
|
-
z as a,
|
|
31
|
-
h as u
|
|
32
|
-
};
|
package/dist/index-CrBonFvu.js
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import * as r from "react";
|
|
2
|
-
import { b as p, u as U } from "./index-BfXxHr_2.js";
|
|
3
|
-
import { P as m, d as z, R as H } from "./index-C9T9HQaa.js";
|
|
4
|
-
import { u as T } from "./index-DQH6odE9.js";
|
|
5
|
-
import { u as b } from "./index-0ioNhtNM.js";
|
|
6
|
-
import { jsx as P } from "react/jsx-runtime";
|
|
7
|
-
function K(n, e = globalThis?.document) {
|
|
8
|
-
const t = b(n);
|
|
9
|
-
r.useEffect(() => {
|
|
10
|
-
const o = (s) => {
|
|
11
|
-
s.key === "Escape" && t(s);
|
|
12
|
-
};
|
|
13
|
-
return e.addEventListener("keydown", o, { capture: !0 }), () => e.removeEventListener("keydown", o, { capture: !0 });
|
|
14
|
-
}, [t, e]);
|
|
15
|
-
}
|
|
16
|
-
var j = "DismissableLayer", h = "dismissableLayer.update", X = "dismissableLayer.pointerDownOutside", Y = "dismissableLayer.focusOutside", w, B = r.createContext({
|
|
17
|
-
layers: /* @__PURE__ */ new Set(),
|
|
18
|
-
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
19
|
-
branches: /* @__PURE__ */ new Set()
|
|
20
|
-
}), x = r.forwardRef(
|
|
21
|
-
(n, e) => {
|
|
22
|
-
const {
|
|
23
|
-
disableOutsidePointerEvents: t = !1,
|
|
24
|
-
onEscapeKeyDown: o,
|
|
25
|
-
onPointerDownOutside: s,
|
|
26
|
-
onFocusOutside: a,
|
|
27
|
-
onInteractOutside: d,
|
|
28
|
-
onDismiss: l,
|
|
29
|
-
...E
|
|
30
|
-
} = n, c = r.useContext(B), [u, S] = r.useState(null), f = u?.ownerDocument ?? globalThis?.document, [, A] = r.useState({}), N = T(e, (i) => S(i)), D = Array.from(c.layers), [W] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), k = D.indexOf(W), O = u ? D.indexOf(u) : -1, _ = c.layersWithOutsidePointerEventsDisabled.size > 0, L = O >= k, M = G((i) => {
|
|
31
|
-
const v = i.target, R = [...c.branches].some((y) => y.contains(v));
|
|
32
|
-
!L || R || (s?.(i), d?.(i), i.defaultPrevented || l?.());
|
|
33
|
-
}, f), C = J((i) => {
|
|
34
|
-
const v = i.target;
|
|
35
|
-
[...c.branches].some((y) => y.contains(v)) || (a?.(i), d?.(i), i.defaultPrevented || l?.());
|
|
36
|
-
}, f);
|
|
37
|
-
return K((i) => {
|
|
38
|
-
O === c.layers.size - 1 && (o?.(i), !i.defaultPrevented && l && (i.preventDefault(), l()));
|
|
39
|
-
}, f), r.useEffect(() => {
|
|
40
|
-
if (u)
|
|
41
|
-
return t && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (w = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), c.layersWithOutsidePointerEventsDisabled.add(u)), c.layers.add(u), g(), () => {
|
|
42
|
-
t && c.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = w);
|
|
43
|
-
};
|
|
44
|
-
}, [u, f, t, c]), r.useEffect(() => () => {
|
|
45
|
-
u && (c.layers.delete(u), c.layersWithOutsidePointerEventsDisabled.delete(u), g());
|
|
46
|
-
}, [u, c]), r.useEffect(() => {
|
|
47
|
-
const i = () => A({});
|
|
48
|
-
return document.addEventListener(h, i), () => document.removeEventListener(h, i);
|
|
49
|
-
}, []), /* @__PURE__ */ P(
|
|
50
|
-
m.div,
|
|
51
|
-
{
|
|
52
|
-
...E,
|
|
53
|
-
ref: N,
|
|
54
|
-
style: {
|
|
55
|
-
pointerEvents: _ ? L ? "auto" : "none" : void 0,
|
|
56
|
-
...n.style
|
|
57
|
-
},
|
|
58
|
-
onFocusCapture: p(n.onFocusCapture, C.onFocusCapture),
|
|
59
|
-
onBlurCapture: p(n.onBlurCapture, C.onBlurCapture),
|
|
60
|
-
onPointerDownCapture: p(
|
|
61
|
-
n.onPointerDownCapture,
|
|
62
|
-
M.onPointerDownCapture
|
|
63
|
-
)
|
|
64
|
-
}
|
|
65
|
-
);
|
|
66
|
-
}
|
|
67
|
-
);
|
|
68
|
-
x.displayName = j;
|
|
69
|
-
var q = "DismissableLayerBranch", F = r.forwardRef((n, e) => {
|
|
70
|
-
const t = r.useContext(B), o = r.useRef(null), s = T(e, o);
|
|
71
|
-
return r.useEffect(() => {
|
|
72
|
-
const a = o.current;
|
|
73
|
-
if (a)
|
|
74
|
-
return t.branches.add(a), () => {
|
|
75
|
-
t.branches.delete(a);
|
|
76
|
-
};
|
|
77
|
-
}, [t.branches]), /* @__PURE__ */ P(m.div, { ...n, ref: s });
|
|
78
|
-
});
|
|
79
|
-
F.displayName = q;
|
|
80
|
-
function G(n, e = globalThis?.document) {
|
|
81
|
-
const t = b(n), o = r.useRef(!1), s = r.useRef(() => {
|
|
82
|
-
});
|
|
83
|
-
return r.useEffect(() => {
|
|
84
|
-
const a = (l) => {
|
|
85
|
-
if (l.target && !o.current) {
|
|
86
|
-
let E = function() {
|
|
87
|
-
I(
|
|
88
|
-
X,
|
|
89
|
-
t,
|
|
90
|
-
c,
|
|
91
|
-
{ discrete: !0 }
|
|
92
|
-
);
|
|
93
|
-
};
|
|
94
|
-
const c = { originalEvent: l };
|
|
95
|
-
l.pointerType === "touch" ? (e.removeEventListener("click", s.current), s.current = E, e.addEventListener("click", s.current, { once: !0 })) : E();
|
|
96
|
-
} else
|
|
97
|
-
e.removeEventListener("click", s.current);
|
|
98
|
-
o.current = !1;
|
|
99
|
-
}, d = window.setTimeout(() => {
|
|
100
|
-
e.addEventListener("pointerdown", a);
|
|
101
|
-
}, 0);
|
|
102
|
-
return () => {
|
|
103
|
-
window.clearTimeout(d), e.removeEventListener("pointerdown", a), e.removeEventListener("click", s.current);
|
|
104
|
-
};
|
|
105
|
-
}, [e, t]), {
|
|
106
|
-
// ensures we check React component tree (not just DOM tree)
|
|
107
|
-
onPointerDownCapture: () => o.current = !0
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
function J(n, e = globalThis?.document) {
|
|
111
|
-
const t = b(n), o = r.useRef(!1);
|
|
112
|
-
return r.useEffect(() => {
|
|
113
|
-
const s = (a) => {
|
|
114
|
-
a.target && !o.current && I(Y, t, { originalEvent: a }, {
|
|
115
|
-
discrete: !1
|
|
116
|
-
});
|
|
117
|
-
};
|
|
118
|
-
return e.addEventListener("focusin", s), () => e.removeEventListener("focusin", s);
|
|
119
|
-
}, [e, t]), {
|
|
120
|
-
onFocusCapture: () => o.current = !0,
|
|
121
|
-
onBlurCapture: () => o.current = !1
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
function g() {
|
|
125
|
-
const n = new CustomEvent(h);
|
|
126
|
-
document.dispatchEvent(n);
|
|
127
|
-
}
|
|
128
|
-
function I(n, e, t, { discrete: o }) {
|
|
129
|
-
const s = t.originalEvent.target, a = new CustomEvent(n, { bubbles: !1, cancelable: !0, detail: t });
|
|
130
|
-
e && s.addEventListener(n, e, { once: !0 }), o ? z(s, a) : s.dispatchEvent(a);
|
|
131
|
-
}
|
|
132
|
-
var ne = x, re = F, Q = "Portal", V = r.forwardRef((n, e) => {
|
|
133
|
-
const { container: t, ...o } = n, [s, a] = r.useState(!1);
|
|
134
|
-
U(() => a(!0), []);
|
|
135
|
-
const d = t || s && globalThis?.document?.body;
|
|
136
|
-
return d ? H.createPortal(/* @__PURE__ */ P(m.div, { ...o, ref: e }), d) : null;
|
|
137
|
-
});
|
|
138
|
-
V.displayName = Q;
|
|
139
|
-
export {
|
|
140
|
-
re as B,
|
|
141
|
-
x as D,
|
|
142
|
-
V as P,
|
|
143
|
-
ne as R
|
|
144
|
-
};
|
package/dist/index-Cvx4lqTq.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import r from "react";
|
|
2
|
-
import { c as y } from "./index-BfXxHr_2.js";
|
|
3
|
-
import { u as M, c as x } from "./index-DQH6odE9.js";
|
|
4
|
-
import { jsx as d } from "react/jsx-runtime";
|
|
5
|
-
function D(s) {
|
|
6
|
-
const f = s + "CollectionProvider", [A, N] = y(f), [_, m] = A(
|
|
7
|
-
f,
|
|
8
|
-
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
9
|
-
), p = (c) => {
|
|
10
|
-
const { scope: e, children: l } = c, o = r.useRef(null), t = r.useRef(/* @__PURE__ */ new Map()).current;
|
|
11
|
-
return /* @__PURE__ */ d(_, { scope: e, itemMap: t, collectionRef: o, children: l });
|
|
12
|
-
};
|
|
13
|
-
p.displayName = f;
|
|
14
|
-
const a = s + "CollectionSlot", E = x(a), C = r.forwardRef(
|
|
15
|
-
(c, e) => {
|
|
16
|
-
const { scope: l, children: o } = c, t = m(a, l), n = M(e, t.collectionRef);
|
|
17
|
-
return /* @__PURE__ */ d(E, { ref: n, children: o });
|
|
18
|
-
}
|
|
19
|
-
);
|
|
20
|
-
C.displayName = a;
|
|
21
|
-
const u = s + "CollectionItemSlot", R = "data-radix-collection-item", T = x(u), I = r.forwardRef(
|
|
22
|
-
(c, e) => {
|
|
23
|
-
const { scope: l, children: o, ...t } = c, n = r.useRef(null), S = M(e, n), i = m(u, l);
|
|
24
|
-
return r.useEffect(() => (i.itemMap.set(n, { ref: n, ...t }), () => void i.itemMap.delete(n))), /* @__PURE__ */ d(T, { [R]: "", ref: S, children: o });
|
|
25
|
-
}
|
|
26
|
-
);
|
|
27
|
-
I.displayName = u;
|
|
28
|
-
function O(c) {
|
|
29
|
-
const e = m(s + "CollectionConsumer", c);
|
|
30
|
-
return r.useCallback(() => {
|
|
31
|
-
const o = e.collectionRef.current;
|
|
32
|
-
if (!o) return [];
|
|
33
|
-
const t = Array.from(o.querySelectorAll(`[${R}]`));
|
|
34
|
-
return Array.from(e.itemMap.values()).sort(
|
|
35
|
-
(i, v) => t.indexOf(i.ref.current) - t.indexOf(v.ref.current)
|
|
36
|
-
);
|
|
37
|
-
}, [e.collectionRef, e.itemMap]);
|
|
38
|
-
}
|
|
39
|
-
return [
|
|
40
|
-
{ Provider: p, Slot: C, ItemSlot: I },
|
|
41
|
-
O,
|
|
42
|
-
N
|
|
43
|
-
];
|
|
44
|
-
}
|
|
45
|
-
export {
|
|
46
|
-
D as c
|
|
47
|
-
};
|