@pismo/marola 2.1.64 → 2.1.65
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/Button-CJaBSdv1.js +135 -0
- package/dist/ClassNameConfigurator-CVRWfyIa.js +847 -0
- package/dist/{ClickAwayListener-Z08peX_P.js → ClickAwayListener-BnYMO5Ki.js} +26 -33
- package/dist/Popup-D267EI4e.js +1338 -0
- package/dist/{Portal-DJapUCn6.js → Portal-BrGvxB96.js} +32 -36
- package/dist/RadioOption-DyRY8xlF.js +1094 -0
- package/dist/{Toggle-DcZTfLrC.js → Toggle-nnDfpqI1.js} +31 -31
- package/dist/assets/Checkbox.css +1 -1
- package/dist/assets/DropdownMenu.css +1 -1
- package/dist/assets/ToastCard.css +1 -1
- package/dist/assets/Toggle2.css +1 -1
- package/dist/combineHooksSlotProps-j-8UVeYo.js +86 -0
- package/dist/components/Alert/Alert.stories.d.ts +6 -6
- package/dist/components/Autocomplete/Autocomplete.d.ts +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +311 -320
- package/dist/components/Autocomplete/Autocomplete.stories.d.ts +1 -1
- package/dist/components/Avatar/Avatar.stories.d.ts +4 -4
- package/dist/components/BankingCard/BankingCard.d.ts +0 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +56 -56
- package/dist/components/Checkbox/Checkbox.stories.d.ts +8 -8
- package/dist/components/Chip/Chip.js +3 -3
- package/dist/components/DatePicker/DatePicker.js +742 -639
- package/dist/components/DatePicker/DatePicker.stories.d.ts +8 -8
- package/dist/components/DatePicker/dateUtils.d.ts +2 -2
- package/dist/components/DatePicker/dateUtils.js +1 -1
- package/dist/components/DatePicker/keyboardNavigation.d.ts +1 -1
- package/dist/components/DatePicker/renderCalendarDays.js +1 -1
- package/dist/components/DatePicker/renderPeriodSelection.js +1 -1
- package/dist/components/Dialog/CloseIconButton.js +1 -1
- package/dist/components/Dialog/Dialog.js +372 -352
- package/dist/components/Dialog/Dialog.stories.d.ts +96 -135
- package/dist/components/DoubleAutocomplete/DoubleAutocomplete.d.ts +1 -1
- package/dist/components/DoubleAutocomplete/DoubleAutocomplete.js +2 -2
- package/dist/components/DoubleAutocomplete/DoubleAutocomplete.stories.d.ts +1 -1
- package/dist/components/DoubleInput/DoubleInput.stories.d.ts +1 -1
- package/dist/components/Draggable/Draggable.d.ts +0 -1
- package/dist/components/Draggable/Draggable.js +1 -1
- package/dist/components/Draggable/Draggable.stories.d.ts +2 -3
- package/dist/components/Draggable/useDraggable.js +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +3 -1
- package/dist/components/DropdownMenu/DropdownMenu.js +39 -34
- package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts +6 -4
- package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +4 -4
- package/dist/components/IconButton/IconButton.js +1 -1
- package/dist/components/Input/Input.js +335 -320
- package/dist/components/InputSearch/InputSearch.d.ts +31 -31
- package/dist/components/InputSearch/InputSearch.stories.d.ts +31 -31
- package/dist/components/Popover/Popover.d.ts +3 -3
- package/dist/components/Popover/Popover.js +2 -2
- package/dist/components/Popover/Popover.stories.d.ts +3 -3
- package/dist/components/Popover/PopoverBody.d.ts +0 -1
- package/dist/components/Popover/PopoverFooter.d.ts +0 -1
- package/dist/components/Popover/PopoverHeader.d.ts +0 -1
- package/dist/components/RadioButton/RadioButton.d.ts +0 -1
- package/dist/components/RadioButton/RadioButton.js +684 -769
- package/dist/components/RadioButton/RadioOption.d.ts +0 -1
- package/dist/components/RadioButton/RadioOption.js +3 -3
- package/dist/components/ResultContainer/ResultContainer.d.ts +0 -1
- package/dist/components/ResultContainer/ResultContainer.stories.d.ts +9 -9
- package/dist/components/ResultWithChips/ResultWithChips.js +1 -1
- package/dist/components/ResultWithChips/ResultWithChips.stories.d.ts +9 -9
- package/dist/components/RowItem/RowItem.js +2 -2
- package/dist/components/Select/Select.js +625 -591
- package/dist/components/Skeleton/Skeleton.d.ts +0 -1
- package/dist/components/Snackbar/Snackbar.js +295 -239
- package/dist/components/Snackbar/Snackbar.stories.d.ts +113 -113
- package/dist/components/StepperNavigator/StepperNavigator.d.ts +0 -1
- package/dist/components/Table/Table.stories.d.ts +5 -5
- package/dist/components/Tabs/Tab.js +107 -98
- package/dist/components/Tabs/TabPanel.js +58 -55
- package/dist/components/Tabs/Tabs.js +246 -231
- package/dist/components/ToastCard/ToastCard.js +31 -31
- package/dist/components/Toggle/Toggle.js +147 -137
- package/dist/components/Toggle/Toggle.stories.d.ts +5 -5
- package/dist/components/ToggleGroup/Toggle.d.ts +0 -1
- package/dist/components/ToggleGroup/Toggle.js +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.js +266 -325
- package/dist/components/Tooltip/Tooltip.stories.d.ts +4 -4
- package/dist/components/TransactionRow/TransactionRow.stories.d.ts +21 -21
- package/dist/contexts/DraggableProvider/DraggableProvider.d.ts +0 -1
- package/dist/contexts/DraggableProvider/DraggableProvider.js +1 -1
- package/dist/contexts/SnackbarProvider/SnackbarProvider.js +1 -1
- package/dist/{dayjs.min-ClQKmc--.js → dayjs.min-BtgZiFZY.js} +14 -14
- package/dist/getReactElementRef-iorwYm2A.js +19 -0
- package/dist/{index-1UpBa69h.js → index-ew-96uBP.js} +2129 -2128
- package/dist/isFocusVisible-CPZqtjv2.js +12 -0
- package/dist/main.js +2 -2
- package/dist/{ownerDocument-By592Iy6.js → ownerDocument-CU-LCrtd.js} +1 -1
- package/dist/react-BTbo_5A3.js +526 -0
- package/dist/setRef-Bo0HEdBB.js +6 -0
- package/dist/useButton-C2E_LFJp.js +90 -0
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/useId-CK6Kn3Tn.js +21 -0
- package/dist/useList-BLW78Lq7.js +446 -0
- package/dist/utils/draggable.d.ts +2 -2
- package/package.json +1 -1
- package/dist/Button-BrEDdtHO.js +0 -130
- package/dist/Popup-Dffqo7wT.js +0 -1246
- package/dist/RadioOption-DYovqiwF.js +0 -720
- package/dist/combineHooksSlotProps-BhQ14uyD.js +0 -79
- package/dist/exactProp-SYjL19cU.js +0 -13
- package/dist/react-BvI-Sw9b.js +0 -509
- package/dist/useButton-CezPDte8.js +0 -105
- package/dist/useControlled-CCMYYdCM.js +0 -31
- package/dist/useId-BW-oWmul.js +0 -19
- package/dist/useIsFocusVisible-BH4IAdcw.js +0 -69
- package/dist/useList-nqLfZem8.js +0 -435
- package/dist/useSlotProps-CYHDC4TN.js +0 -834
- package/dist/useTimeout-DxF9kiZL.js +0 -36
|
@@ -0,0 +1,847 @@
|
|
|
1
|
+
import { g as _e } from "./_commonjsHelpers-C6fGbg64.js";
|
|
2
|
+
import { c as fe } from "./clsx-OuTLNxxd.js";
|
|
3
|
+
import * as U from "react";
|
|
4
|
+
import "react/jsx-runtime";
|
|
5
|
+
var V = { exports: {} }, B = { exports: {} }, C = {};
|
|
6
|
+
/** @license React v16.13.1
|
|
7
|
+
* react-is.production.min.js
|
|
8
|
+
*
|
|
9
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
10
|
+
*
|
|
11
|
+
* This source code is licensed under the MIT license found in the
|
|
12
|
+
* LICENSE file in the root directory of this source tree.
|
|
13
|
+
*/
|
|
14
|
+
var le;
|
|
15
|
+
function Pe() {
|
|
16
|
+
if (le) return C;
|
|
17
|
+
le = 1;
|
|
18
|
+
var e = typeof Symbol == "function" && Symbol.for, c = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, t = e ? Symbol.for("react.fragment") : 60107, u = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, f = e ? Symbol.for("react.context") : 60110, O = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, h = e ? Symbol.for("react.forward_ref") : 60112, E = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, P = e ? Symbol.for("react.block") : 60121, j = e ? Symbol.for("react.fundamental") : 60117, k = e ? Symbol.for("react.responder") : 60118, L = e ? Symbol.for("react.scope") : 60119;
|
|
19
|
+
function $(i) {
|
|
20
|
+
if (typeof i == "object" && i !== null) {
|
|
21
|
+
var D = i.$$typeof;
|
|
22
|
+
switch (D) {
|
|
23
|
+
case c:
|
|
24
|
+
switch (i = i.type, i) {
|
|
25
|
+
case O:
|
|
26
|
+
case l:
|
|
27
|
+
case t:
|
|
28
|
+
case s:
|
|
29
|
+
case u:
|
|
30
|
+
case E:
|
|
31
|
+
return i;
|
|
32
|
+
default:
|
|
33
|
+
switch (i = i && i.$$typeof, i) {
|
|
34
|
+
case f:
|
|
35
|
+
case h:
|
|
36
|
+
case I:
|
|
37
|
+
case w:
|
|
38
|
+
case d:
|
|
39
|
+
return i;
|
|
40
|
+
default:
|
|
41
|
+
return D;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
case o:
|
|
45
|
+
return D;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function A(i) {
|
|
50
|
+
return $(i) === l;
|
|
51
|
+
}
|
|
52
|
+
return C.AsyncMode = O, C.ConcurrentMode = l, C.ContextConsumer = f, C.ContextProvider = d, C.Element = c, C.ForwardRef = h, C.Fragment = t, C.Lazy = I, C.Memo = w, C.Portal = o, C.Profiler = s, C.StrictMode = u, C.Suspense = E, C.isAsyncMode = function(i) {
|
|
53
|
+
return A(i) || $(i) === O;
|
|
54
|
+
}, C.isConcurrentMode = A, C.isContextConsumer = function(i) {
|
|
55
|
+
return $(i) === f;
|
|
56
|
+
}, C.isContextProvider = function(i) {
|
|
57
|
+
return $(i) === d;
|
|
58
|
+
}, C.isElement = function(i) {
|
|
59
|
+
return typeof i == "object" && i !== null && i.$$typeof === c;
|
|
60
|
+
}, C.isForwardRef = function(i) {
|
|
61
|
+
return $(i) === h;
|
|
62
|
+
}, C.isFragment = function(i) {
|
|
63
|
+
return $(i) === t;
|
|
64
|
+
}, C.isLazy = function(i) {
|
|
65
|
+
return $(i) === I;
|
|
66
|
+
}, C.isMemo = function(i) {
|
|
67
|
+
return $(i) === w;
|
|
68
|
+
}, C.isPortal = function(i) {
|
|
69
|
+
return $(i) === o;
|
|
70
|
+
}, C.isProfiler = function(i) {
|
|
71
|
+
return $(i) === s;
|
|
72
|
+
}, C.isStrictMode = function(i) {
|
|
73
|
+
return $(i) === u;
|
|
74
|
+
}, C.isSuspense = function(i) {
|
|
75
|
+
return $(i) === E;
|
|
76
|
+
}, C.isValidElementType = function(i) {
|
|
77
|
+
return typeof i == "string" || typeof i == "function" || i === t || i === l || i === s || i === u || i === E || i === x || typeof i == "object" && i !== null && (i.$$typeof === I || i.$$typeof === w || i.$$typeof === d || i.$$typeof === f || i.$$typeof === h || i.$$typeof === j || i.$$typeof === k || i.$$typeof === L || i.$$typeof === P);
|
|
78
|
+
}, C.typeOf = $, C;
|
|
79
|
+
}
|
|
80
|
+
var R = {};
|
|
81
|
+
/** @license React v16.13.1
|
|
82
|
+
* react-is.development.js
|
|
83
|
+
*
|
|
84
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
85
|
+
*
|
|
86
|
+
* This source code is licensed under the MIT license found in the
|
|
87
|
+
* LICENSE file in the root directory of this source tree.
|
|
88
|
+
*/
|
|
89
|
+
var ye;
|
|
90
|
+
function xe() {
|
|
91
|
+
return ye || (ye = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
92
|
+
var e = typeof Symbol == "function" && Symbol.for, c = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, t = e ? Symbol.for("react.fragment") : 60107, u = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, f = e ? Symbol.for("react.context") : 60110, O = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, h = e ? Symbol.for("react.forward_ref") : 60112, E = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, P = e ? Symbol.for("react.block") : 60121, j = e ? Symbol.for("react.fundamental") : 60117, k = e ? Symbol.for("react.responder") : 60118, L = e ? Symbol.for("react.scope") : 60119;
|
|
93
|
+
function $(n) {
|
|
94
|
+
return typeof n == "string" || typeof n == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
95
|
+
n === t || n === l || n === s || n === u || n === E || n === x || typeof n == "object" && n !== null && (n.$$typeof === I || n.$$typeof === w || n.$$typeof === d || n.$$typeof === f || n.$$typeof === h || n.$$typeof === j || n.$$typeof === k || n.$$typeof === L || n.$$typeof === P);
|
|
96
|
+
}
|
|
97
|
+
function A(n) {
|
|
98
|
+
if (typeof n == "object" && n !== null) {
|
|
99
|
+
var Y = n.$$typeof;
|
|
100
|
+
switch (Y) {
|
|
101
|
+
case c:
|
|
102
|
+
var H = n.type;
|
|
103
|
+
switch (H) {
|
|
104
|
+
case O:
|
|
105
|
+
case l:
|
|
106
|
+
case t:
|
|
107
|
+
case s:
|
|
108
|
+
case u:
|
|
109
|
+
case E:
|
|
110
|
+
return H;
|
|
111
|
+
default:
|
|
112
|
+
var ue = H && H.$$typeof;
|
|
113
|
+
switch (ue) {
|
|
114
|
+
case f:
|
|
115
|
+
case h:
|
|
116
|
+
case I:
|
|
117
|
+
case w:
|
|
118
|
+
case d:
|
|
119
|
+
return ue;
|
|
120
|
+
default:
|
|
121
|
+
return Y;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
case o:
|
|
125
|
+
return Y;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
var i = O, D = l, J = f, X = d, Z = c, G = h, z = t, K = I, Q = w, W = o, ee = s, q = u, N = E, F = !1;
|
|
130
|
+
function re(n) {
|
|
131
|
+
return F || (F = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), r(n) || A(n) === O;
|
|
132
|
+
}
|
|
133
|
+
function r(n) {
|
|
134
|
+
return A(n) === l;
|
|
135
|
+
}
|
|
136
|
+
function a(n) {
|
|
137
|
+
return A(n) === f;
|
|
138
|
+
}
|
|
139
|
+
function b(n) {
|
|
140
|
+
return A(n) === d;
|
|
141
|
+
}
|
|
142
|
+
function v(n) {
|
|
143
|
+
return typeof n == "object" && n !== null && n.$$typeof === c;
|
|
144
|
+
}
|
|
145
|
+
function y(n) {
|
|
146
|
+
return A(n) === h;
|
|
147
|
+
}
|
|
148
|
+
function T(n) {
|
|
149
|
+
return A(n) === t;
|
|
150
|
+
}
|
|
151
|
+
function p(n) {
|
|
152
|
+
return A(n) === I;
|
|
153
|
+
}
|
|
154
|
+
function m(n) {
|
|
155
|
+
return A(n) === w;
|
|
156
|
+
}
|
|
157
|
+
function g(n) {
|
|
158
|
+
return A(n) === o;
|
|
159
|
+
}
|
|
160
|
+
function _(n) {
|
|
161
|
+
return A(n) === s;
|
|
162
|
+
}
|
|
163
|
+
function S(n) {
|
|
164
|
+
return A(n) === u;
|
|
165
|
+
}
|
|
166
|
+
function M(n) {
|
|
167
|
+
return A(n) === E;
|
|
168
|
+
}
|
|
169
|
+
R.AsyncMode = i, R.ConcurrentMode = D, R.ContextConsumer = J, R.ContextProvider = X, R.Element = Z, R.ForwardRef = G, R.Fragment = z, R.Lazy = K, R.Memo = Q, R.Portal = W, R.Profiler = ee, R.StrictMode = q, R.Suspense = N, R.isAsyncMode = re, R.isConcurrentMode = r, R.isContextConsumer = a, R.isContextProvider = b, R.isElement = v, R.isForwardRef = y, R.isFragment = T, R.isLazy = p, R.isMemo = m, R.isPortal = g, R.isProfiler = _, R.isStrictMode = S, R.isSuspense = M, R.isValidElementType = $, R.typeOf = A;
|
|
170
|
+
})()), R;
|
|
171
|
+
}
|
|
172
|
+
var de;
|
|
173
|
+
function Se() {
|
|
174
|
+
return de || (de = 1, process.env.NODE_ENV === "production" ? B.exports = Pe() : B.exports = xe()), B.exports;
|
|
175
|
+
}
|
|
176
|
+
/*
|
|
177
|
+
object-assign
|
|
178
|
+
(c) Sindre Sorhus
|
|
179
|
+
@license MIT
|
|
180
|
+
*/
|
|
181
|
+
var te, pe;
|
|
182
|
+
function we() {
|
|
183
|
+
if (pe) return te;
|
|
184
|
+
pe = 1;
|
|
185
|
+
var e = Object.getOwnPropertySymbols, c = Object.prototype.hasOwnProperty, o = Object.prototype.propertyIsEnumerable;
|
|
186
|
+
function t(s) {
|
|
187
|
+
if (s == null)
|
|
188
|
+
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
189
|
+
return Object(s);
|
|
190
|
+
}
|
|
191
|
+
function u() {
|
|
192
|
+
try {
|
|
193
|
+
if (!Object.assign)
|
|
194
|
+
return !1;
|
|
195
|
+
var s = new String("abc");
|
|
196
|
+
if (s[5] = "de", Object.getOwnPropertyNames(s)[0] === "5")
|
|
197
|
+
return !1;
|
|
198
|
+
for (var d = {}, f = 0; f < 10; f++)
|
|
199
|
+
d["_" + String.fromCharCode(f)] = f;
|
|
200
|
+
var O = Object.getOwnPropertyNames(d).map(function(h) {
|
|
201
|
+
return d[h];
|
|
202
|
+
});
|
|
203
|
+
if (O.join("") !== "0123456789")
|
|
204
|
+
return !1;
|
|
205
|
+
var l = {};
|
|
206
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(h) {
|
|
207
|
+
l[h] = h;
|
|
208
|
+
}), Object.keys(Object.assign({}, l)).join("") === "abcdefghijklmnopqrst";
|
|
209
|
+
} catch {
|
|
210
|
+
return !1;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
return te = u() ? Object.assign : function(s, d) {
|
|
214
|
+
for (var f, O = t(s), l, h = 1; h < arguments.length; h++) {
|
|
215
|
+
f = Object(arguments[h]);
|
|
216
|
+
for (var E in f)
|
|
217
|
+
c.call(f, E) && (O[E] = f[E]);
|
|
218
|
+
if (e) {
|
|
219
|
+
l = e(f);
|
|
220
|
+
for (var x = 0; x < l.length; x++)
|
|
221
|
+
o.call(f, l[x]) && (O[l[x]] = f[l[x]]);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
return O;
|
|
225
|
+
}, te;
|
|
226
|
+
}
|
|
227
|
+
var ne, ve;
|
|
228
|
+
function ce() {
|
|
229
|
+
if (ve) return ne;
|
|
230
|
+
ve = 1;
|
|
231
|
+
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
232
|
+
return ne = e, ne;
|
|
233
|
+
}
|
|
234
|
+
var oe, me;
|
|
235
|
+
function Oe() {
|
|
236
|
+
return me || (me = 1, oe = Function.call.bind(Object.prototype.hasOwnProperty)), oe;
|
|
237
|
+
}
|
|
238
|
+
var ie, be;
|
|
239
|
+
function Ae() {
|
|
240
|
+
if (be) return ie;
|
|
241
|
+
be = 1;
|
|
242
|
+
var e = function() {
|
|
243
|
+
};
|
|
244
|
+
if (process.env.NODE_ENV !== "production") {
|
|
245
|
+
var c = /* @__PURE__ */ ce(), o = {}, t = /* @__PURE__ */ Oe();
|
|
246
|
+
e = function(s) {
|
|
247
|
+
var d = "Warning: " + s;
|
|
248
|
+
typeof console < "u" && console.error(d);
|
|
249
|
+
try {
|
|
250
|
+
throw new Error(d);
|
|
251
|
+
} catch {
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
function u(s, d, f, O, l) {
|
|
256
|
+
if (process.env.NODE_ENV !== "production") {
|
|
257
|
+
for (var h in s)
|
|
258
|
+
if (t(s, h)) {
|
|
259
|
+
var E;
|
|
260
|
+
try {
|
|
261
|
+
if (typeof s[h] != "function") {
|
|
262
|
+
var x = Error(
|
|
263
|
+
(O || "React class") + ": " + f + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
264
|
+
);
|
|
265
|
+
throw x.name = "Invariant Violation", x;
|
|
266
|
+
}
|
|
267
|
+
E = s[h](d, h, O, f, null, c);
|
|
268
|
+
} catch (I) {
|
|
269
|
+
E = I;
|
|
270
|
+
}
|
|
271
|
+
if (E && !(E instanceof Error) && e(
|
|
272
|
+
(O || "React class") + ": type specification of " + f + " `" + h + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof E + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
273
|
+
), E instanceof Error && !(E.message in o)) {
|
|
274
|
+
o[E.message] = !0;
|
|
275
|
+
var w = l ? l() : "";
|
|
276
|
+
e(
|
|
277
|
+
"Failed " + f + " type: " + E.message + (w ?? "")
|
|
278
|
+
);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
return u.resetWarningCache = function() {
|
|
284
|
+
process.env.NODE_ENV !== "production" && (o = {});
|
|
285
|
+
}, ie = u, ie;
|
|
286
|
+
}
|
|
287
|
+
var ae, he;
|
|
288
|
+
function $e() {
|
|
289
|
+
if (he) return ae;
|
|
290
|
+
he = 1;
|
|
291
|
+
var e = Se(), c = we(), o = /* @__PURE__ */ ce(), t = /* @__PURE__ */ Oe(), u = /* @__PURE__ */ Ae(), s = function() {
|
|
292
|
+
};
|
|
293
|
+
process.env.NODE_ENV !== "production" && (s = function(f) {
|
|
294
|
+
var O = "Warning: " + f;
|
|
295
|
+
typeof console < "u" && console.error(O);
|
|
296
|
+
try {
|
|
297
|
+
throw new Error(O);
|
|
298
|
+
} catch {
|
|
299
|
+
}
|
|
300
|
+
});
|
|
301
|
+
function d() {
|
|
302
|
+
return null;
|
|
303
|
+
}
|
|
304
|
+
return ae = function(f, O) {
|
|
305
|
+
var l = typeof Symbol == "function" && Symbol.iterator, h = "@@iterator";
|
|
306
|
+
function E(r) {
|
|
307
|
+
var a = r && (l && r[l] || r[h]);
|
|
308
|
+
if (typeof a == "function")
|
|
309
|
+
return a;
|
|
310
|
+
}
|
|
311
|
+
var x = "<<anonymous>>", w = {
|
|
312
|
+
array: k("array"),
|
|
313
|
+
bigint: k("bigint"),
|
|
314
|
+
bool: k("boolean"),
|
|
315
|
+
func: k("function"),
|
|
316
|
+
number: k("number"),
|
|
317
|
+
object: k("object"),
|
|
318
|
+
string: k("string"),
|
|
319
|
+
symbol: k("symbol"),
|
|
320
|
+
any: L(),
|
|
321
|
+
arrayOf: $,
|
|
322
|
+
element: A(),
|
|
323
|
+
elementType: i(),
|
|
324
|
+
instanceOf: D,
|
|
325
|
+
node: G(),
|
|
326
|
+
objectOf: X,
|
|
327
|
+
oneOf: J,
|
|
328
|
+
oneOfType: Z,
|
|
329
|
+
shape: K,
|
|
330
|
+
exact: Q
|
|
331
|
+
};
|
|
332
|
+
function I(r, a) {
|
|
333
|
+
return r === a ? r !== 0 || 1 / r === 1 / a : r !== r && a !== a;
|
|
334
|
+
}
|
|
335
|
+
function P(r, a) {
|
|
336
|
+
this.message = r, this.data = a && typeof a == "object" ? a : {}, this.stack = "";
|
|
337
|
+
}
|
|
338
|
+
P.prototype = Error.prototype;
|
|
339
|
+
function j(r) {
|
|
340
|
+
if (process.env.NODE_ENV !== "production")
|
|
341
|
+
var a = {}, b = 0;
|
|
342
|
+
function v(T, p, m, g, _, S, M) {
|
|
343
|
+
if (g = g || x, S = S || m, M !== o) {
|
|
344
|
+
if (O) {
|
|
345
|
+
var n = new Error(
|
|
346
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
347
|
+
);
|
|
348
|
+
throw n.name = "Invariant Violation", n;
|
|
349
|
+
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
350
|
+
var Y = g + ":" + m;
|
|
351
|
+
!a[Y] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
352
|
+
b < 3 && (s(
|
|
353
|
+
"You are manually calling a React.PropTypes validation function for the `" + S + "` prop on `" + g + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
354
|
+
), a[Y] = !0, b++);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
return p[m] == null ? T ? p[m] === null ? new P("The " + _ + " `" + S + "` is marked as required " + ("in `" + g + "`, but its value is `null`.")) : new P("The " + _ + " `" + S + "` is marked as required in " + ("`" + g + "`, but its value is `undefined`.")) : null : r(p, m, g, _, S);
|
|
358
|
+
}
|
|
359
|
+
var y = v.bind(null, !1);
|
|
360
|
+
return y.isRequired = v.bind(null, !0), y;
|
|
361
|
+
}
|
|
362
|
+
function k(r) {
|
|
363
|
+
function a(b, v, y, T, p, m) {
|
|
364
|
+
var g = b[v], _ = q(g);
|
|
365
|
+
if (_ !== r) {
|
|
366
|
+
var S = N(g);
|
|
367
|
+
return new P(
|
|
368
|
+
"Invalid " + T + " `" + p + "` of type " + ("`" + S + "` supplied to `" + y + "`, expected ") + ("`" + r + "`."),
|
|
369
|
+
{ expectedType: r }
|
|
370
|
+
);
|
|
371
|
+
}
|
|
372
|
+
return null;
|
|
373
|
+
}
|
|
374
|
+
return j(a);
|
|
375
|
+
}
|
|
376
|
+
function L() {
|
|
377
|
+
return j(d);
|
|
378
|
+
}
|
|
379
|
+
function $(r) {
|
|
380
|
+
function a(b, v, y, T, p) {
|
|
381
|
+
if (typeof r != "function")
|
|
382
|
+
return new P("Property `" + p + "` of component `" + y + "` has invalid PropType notation inside arrayOf.");
|
|
383
|
+
var m = b[v];
|
|
384
|
+
if (!Array.isArray(m)) {
|
|
385
|
+
var g = q(m);
|
|
386
|
+
return new P("Invalid " + T + " `" + p + "` of type " + ("`" + g + "` supplied to `" + y + "`, expected an array."));
|
|
387
|
+
}
|
|
388
|
+
for (var _ = 0; _ < m.length; _++) {
|
|
389
|
+
var S = r(m, _, y, T, p + "[" + _ + "]", o);
|
|
390
|
+
if (S instanceof Error)
|
|
391
|
+
return S;
|
|
392
|
+
}
|
|
393
|
+
return null;
|
|
394
|
+
}
|
|
395
|
+
return j(a);
|
|
396
|
+
}
|
|
397
|
+
function A() {
|
|
398
|
+
function r(a, b, v, y, T) {
|
|
399
|
+
var p = a[b];
|
|
400
|
+
if (!f(p)) {
|
|
401
|
+
var m = q(p);
|
|
402
|
+
return new P("Invalid " + y + " `" + T + "` of type " + ("`" + m + "` supplied to `" + v + "`, expected a single ReactElement."));
|
|
403
|
+
}
|
|
404
|
+
return null;
|
|
405
|
+
}
|
|
406
|
+
return j(r);
|
|
407
|
+
}
|
|
408
|
+
function i() {
|
|
409
|
+
function r(a, b, v, y, T) {
|
|
410
|
+
var p = a[b];
|
|
411
|
+
if (!e.isValidElementType(p)) {
|
|
412
|
+
var m = q(p);
|
|
413
|
+
return new P("Invalid " + y + " `" + T + "` of type " + ("`" + m + "` supplied to `" + v + "`, expected a single ReactElement type."));
|
|
414
|
+
}
|
|
415
|
+
return null;
|
|
416
|
+
}
|
|
417
|
+
return j(r);
|
|
418
|
+
}
|
|
419
|
+
function D(r) {
|
|
420
|
+
function a(b, v, y, T, p) {
|
|
421
|
+
if (!(b[v] instanceof r)) {
|
|
422
|
+
var m = r.name || x, g = re(b[v]);
|
|
423
|
+
return new P("Invalid " + T + " `" + p + "` of type " + ("`" + g + "` supplied to `" + y + "`, expected ") + ("instance of `" + m + "`."));
|
|
424
|
+
}
|
|
425
|
+
return null;
|
|
426
|
+
}
|
|
427
|
+
return j(a);
|
|
428
|
+
}
|
|
429
|
+
function J(r) {
|
|
430
|
+
if (!Array.isArray(r))
|
|
431
|
+
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
|
|
432
|
+
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
433
|
+
) : s("Invalid argument supplied to oneOf, expected an array.")), d;
|
|
434
|
+
function a(b, v, y, T, p) {
|
|
435
|
+
for (var m = b[v], g = 0; g < r.length; g++)
|
|
436
|
+
if (I(m, r[g]))
|
|
437
|
+
return null;
|
|
438
|
+
var _ = JSON.stringify(r, function(M, n) {
|
|
439
|
+
var Y = N(n);
|
|
440
|
+
return Y === "symbol" ? String(n) : n;
|
|
441
|
+
});
|
|
442
|
+
return new P("Invalid " + T + " `" + p + "` of value `" + String(m) + "` " + ("supplied to `" + y + "`, expected one of " + _ + "."));
|
|
443
|
+
}
|
|
444
|
+
return j(a);
|
|
445
|
+
}
|
|
446
|
+
function X(r) {
|
|
447
|
+
function a(b, v, y, T, p) {
|
|
448
|
+
if (typeof r != "function")
|
|
449
|
+
return new P("Property `" + p + "` of component `" + y + "` has invalid PropType notation inside objectOf.");
|
|
450
|
+
var m = b[v], g = q(m);
|
|
451
|
+
if (g !== "object")
|
|
452
|
+
return new P("Invalid " + T + " `" + p + "` of type " + ("`" + g + "` supplied to `" + y + "`, expected an object."));
|
|
453
|
+
for (var _ in m)
|
|
454
|
+
if (t(m, _)) {
|
|
455
|
+
var S = r(m, _, y, T, p + "." + _, o);
|
|
456
|
+
if (S instanceof Error)
|
|
457
|
+
return S;
|
|
458
|
+
}
|
|
459
|
+
return null;
|
|
460
|
+
}
|
|
461
|
+
return j(a);
|
|
462
|
+
}
|
|
463
|
+
function Z(r) {
|
|
464
|
+
if (!Array.isArray(r))
|
|
465
|
+
return process.env.NODE_ENV !== "production" && s("Invalid argument supplied to oneOfType, expected an instance of array."), d;
|
|
466
|
+
for (var a = 0; a < r.length; a++) {
|
|
467
|
+
var b = r[a];
|
|
468
|
+
if (typeof b != "function")
|
|
469
|
+
return s(
|
|
470
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + F(b) + " at index " + a + "."
|
|
471
|
+
), d;
|
|
472
|
+
}
|
|
473
|
+
function v(y, T, p, m, g) {
|
|
474
|
+
for (var _ = [], S = 0; S < r.length; S++) {
|
|
475
|
+
var M = r[S], n = M(y, T, p, m, g, o);
|
|
476
|
+
if (n == null)
|
|
477
|
+
return null;
|
|
478
|
+
n.data && t(n.data, "expectedType") && _.push(n.data.expectedType);
|
|
479
|
+
}
|
|
480
|
+
var Y = _.length > 0 ? ", expected one of type [" + _.join(", ") + "]" : "";
|
|
481
|
+
return new P("Invalid " + m + " `" + g + "` supplied to " + ("`" + p + "`" + Y + "."));
|
|
482
|
+
}
|
|
483
|
+
return j(v);
|
|
484
|
+
}
|
|
485
|
+
function G() {
|
|
486
|
+
function r(a, b, v, y, T) {
|
|
487
|
+
return W(a[b]) ? null : new P("Invalid " + y + " `" + T + "` supplied to " + ("`" + v + "`, expected a ReactNode."));
|
|
488
|
+
}
|
|
489
|
+
return j(r);
|
|
490
|
+
}
|
|
491
|
+
function z(r, a, b, v, y) {
|
|
492
|
+
return new P(
|
|
493
|
+
(r || "React class") + ": " + a + " type `" + b + "." + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + y + "`."
|
|
494
|
+
);
|
|
495
|
+
}
|
|
496
|
+
function K(r) {
|
|
497
|
+
function a(b, v, y, T, p) {
|
|
498
|
+
var m = b[v], g = q(m);
|
|
499
|
+
if (g !== "object")
|
|
500
|
+
return new P("Invalid " + T + " `" + p + "` of type `" + g + "` " + ("supplied to `" + y + "`, expected `object`."));
|
|
501
|
+
for (var _ in r) {
|
|
502
|
+
var S = r[_];
|
|
503
|
+
if (typeof S != "function")
|
|
504
|
+
return z(y, T, p, _, N(S));
|
|
505
|
+
var M = S(m, _, y, T, p + "." + _, o);
|
|
506
|
+
if (M)
|
|
507
|
+
return M;
|
|
508
|
+
}
|
|
509
|
+
return null;
|
|
510
|
+
}
|
|
511
|
+
return j(a);
|
|
512
|
+
}
|
|
513
|
+
function Q(r) {
|
|
514
|
+
function a(b, v, y, T, p) {
|
|
515
|
+
var m = b[v], g = q(m);
|
|
516
|
+
if (g !== "object")
|
|
517
|
+
return new P("Invalid " + T + " `" + p + "` of type `" + g + "` " + ("supplied to `" + y + "`, expected `object`."));
|
|
518
|
+
var _ = c({}, b[v], r);
|
|
519
|
+
for (var S in _) {
|
|
520
|
+
var M = r[S];
|
|
521
|
+
if (t(r, S) && typeof M != "function")
|
|
522
|
+
return z(y, T, p, S, N(M));
|
|
523
|
+
if (!M)
|
|
524
|
+
return new P(
|
|
525
|
+
"Invalid " + T + " `" + p + "` key `" + S + "` supplied to `" + y + "`.\nBad object: " + JSON.stringify(b[v], null, " ") + `
|
|
526
|
+
Valid keys: ` + JSON.stringify(Object.keys(r), null, " ")
|
|
527
|
+
);
|
|
528
|
+
var n = M(m, S, y, T, p + "." + S, o);
|
|
529
|
+
if (n)
|
|
530
|
+
return n;
|
|
531
|
+
}
|
|
532
|
+
return null;
|
|
533
|
+
}
|
|
534
|
+
return j(a);
|
|
535
|
+
}
|
|
536
|
+
function W(r) {
|
|
537
|
+
switch (typeof r) {
|
|
538
|
+
case "number":
|
|
539
|
+
case "string":
|
|
540
|
+
case "undefined":
|
|
541
|
+
return !0;
|
|
542
|
+
case "boolean":
|
|
543
|
+
return !r;
|
|
544
|
+
case "object":
|
|
545
|
+
if (Array.isArray(r))
|
|
546
|
+
return r.every(W);
|
|
547
|
+
if (r === null || f(r))
|
|
548
|
+
return !0;
|
|
549
|
+
var a = E(r);
|
|
550
|
+
if (a) {
|
|
551
|
+
var b = a.call(r), v;
|
|
552
|
+
if (a !== r.entries) {
|
|
553
|
+
for (; !(v = b.next()).done; )
|
|
554
|
+
if (!W(v.value))
|
|
555
|
+
return !1;
|
|
556
|
+
} else
|
|
557
|
+
for (; !(v = b.next()).done; ) {
|
|
558
|
+
var y = v.value;
|
|
559
|
+
if (y && !W(y[1]))
|
|
560
|
+
return !1;
|
|
561
|
+
}
|
|
562
|
+
} else
|
|
563
|
+
return !1;
|
|
564
|
+
return !0;
|
|
565
|
+
default:
|
|
566
|
+
return !1;
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
function ee(r, a) {
|
|
570
|
+
return r === "symbol" ? !0 : a ? a["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && a instanceof Symbol : !1;
|
|
571
|
+
}
|
|
572
|
+
function q(r) {
|
|
573
|
+
var a = typeof r;
|
|
574
|
+
return Array.isArray(r) ? "array" : r instanceof RegExp ? "object" : ee(a, r) ? "symbol" : a;
|
|
575
|
+
}
|
|
576
|
+
function N(r) {
|
|
577
|
+
if (typeof r > "u" || r === null)
|
|
578
|
+
return "" + r;
|
|
579
|
+
var a = q(r);
|
|
580
|
+
if (a === "object") {
|
|
581
|
+
if (r instanceof Date)
|
|
582
|
+
return "date";
|
|
583
|
+
if (r instanceof RegExp)
|
|
584
|
+
return "regexp";
|
|
585
|
+
}
|
|
586
|
+
return a;
|
|
587
|
+
}
|
|
588
|
+
function F(r) {
|
|
589
|
+
var a = N(r);
|
|
590
|
+
switch (a) {
|
|
591
|
+
case "array":
|
|
592
|
+
case "object":
|
|
593
|
+
return "an " + a;
|
|
594
|
+
case "boolean":
|
|
595
|
+
case "date":
|
|
596
|
+
case "regexp":
|
|
597
|
+
return "a " + a;
|
|
598
|
+
default:
|
|
599
|
+
return a;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
function re(r) {
|
|
603
|
+
return !r.constructor || !r.constructor.name ? x : r.constructor.name;
|
|
604
|
+
}
|
|
605
|
+
return w.checkPropTypes = u, w.resetWarningCache = u.resetWarningCache, w.PropTypes = w, w;
|
|
606
|
+
}, ae;
|
|
607
|
+
}
|
|
608
|
+
var se, Ee;
|
|
609
|
+
function Ie() {
|
|
610
|
+
if (Ee) return se;
|
|
611
|
+
Ee = 1;
|
|
612
|
+
var e = /* @__PURE__ */ ce();
|
|
613
|
+
function c() {
|
|
614
|
+
}
|
|
615
|
+
function o() {
|
|
616
|
+
}
|
|
617
|
+
return o.resetWarningCache = c, se = function() {
|
|
618
|
+
function t(d, f, O, l, h, E) {
|
|
619
|
+
if (E !== e) {
|
|
620
|
+
var x = new Error(
|
|
621
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
622
|
+
);
|
|
623
|
+
throw x.name = "Invariant Violation", x;
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
t.isRequired = t;
|
|
627
|
+
function u() {
|
|
628
|
+
return t;
|
|
629
|
+
}
|
|
630
|
+
var s = {
|
|
631
|
+
array: t,
|
|
632
|
+
bigint: t,
|
|
633
|
+
bool: t,
|
|
634
|
+
func: t,
|
|
635
|
+
number: t,
|
|
636
|
+
object: t,
|
|
637
|
+
string: t,
|
|
638
|
+
symbol: t,
|
|
639
|
+
any: t,
|
|
640
|
+
arrayOf: u,
|
|
641
|
+
element: t,
|
|
642
|
+
elementType: t,
|
|
643
|
+
instanceOf: u,
|
|
644
|
+
node: t,
|
|
645
|
+
objectOf: u,
|
|
646
|
+
oneOf: u,
|
|
647
|
+
oneOfType: u,
|
|
648
|
+
shape: u,
|
|
649
|
+
exact: u,
|
|
650
|
+
checkPropTypes: o,
|
|
651
|
+
resetWarningCache: c
|
|
652
|
+
};
|
|
653
|
+
return s.PropTypes = s, s;
|
|
654
|
+
}, se;
|
|
655
|
+
}
|
|
656
|
+
var Te;
|
|
657
|
+
function je() {
|
|
658
|
+
if (Te) return V.exports;
|
|
659
|
+
if (Te = 1, process.env.NODE_ENV !== "production") {
|
|
660
|
+
var e = Se(), c = !0;
|
|
661
|
+
V.exports = /* @__PURE__ */ $e()(e.isElement, c);
|
|
662
|
+
} else
|
|
663
|
+
V.exports = /* @__PURE__ */ Ie()();
|
|
664
|
+
return V.exports;
|
|
665
|
+
}
|
|
666
|
+
var Me = /* @__PURE__ */ je();
|
|
667
|
+
const Xe = /* @__PURE__ */ _e(Me);
|
|
668
|
+
function ke(...e) {
|
|
669
|
+
const c = U.useRef(void 0), o = U.useCallback((t) => {
|
|
670
|
+
const u = e.map((s) => {
|
|
671
|
+
if (s == null)
|
|
672
|
+
return null;
|
|
673
|
+
if (typeof s == "function") {
|
|
674
|
+
const d = s, f = d(t);
|
|
675
|
+
return typeof f == "function" ? f : () => {
|
|
676
|
+
d(null);
|
|
677
|
+
};
|
|
678
|
+
}
|
|
679
|
+
return s.current = t, () => {
|
|
680
|
+
s.current = null;
|
|
681
|
+
};
|
|
682
|
+
});
|
|
683
|
+
return () => {
|
|
684
|
+
u.forEach((s) => s == null ? void 0 : s());
|
|
685
|
+
};
|
|
686
|
+
}, e);
|
|
687
|
+
return U.useMemo(() => e.every((t) => t == null) ? null : (t) => {
|
|
688
|
+
c.current && (c.current(), c.current = void 0), t != null && (c.current = o(t));
|
|
689
|
+
}, e);
|
|
690
|
+
}
|
|
691
|
+
function Ze(e, c, o = void 0) {
|
|
692
|
+
const t = {};
|
|
693
|
+
for (const u in e) {
|
|
694
|
+
const s = e[u];
|
|
695
|
+
let d = "", f = !0;
|
|
696
|
+
for (let O = 0; O < s.length; O += 1) {
|
|
697
|
+
const l = s[O];
|
|
698
|
+
l && (d += (f === !0 ? "" : " ") + c(l), f = !1, o && o[l] && (d += " " + o[l]));
|
|
699
|
+
}
|
|
700
|
+
t[u] = d;
|
|
701
|
+
}
|
|
702
|
+
return t;
|
|
703
|
+
}
|
|
704
|
+
const qe = {
|
|
705
|
+
active: "active",
|
|
706
|
+
checked: "checked",
|
|
707
|
+
completed: "completed",
|
|
708
|
+
disabled: "disabled",
|
|
709
|
+
error: "error",
|
|
710
|
+
expanded: "expanded",
|
|
711
|
+
focused: "focused",
|
|
712
|
+
focusVisible: "focusVisible",
|
|
713
|
+
open: "open",
|
|
714
|
+
readOnly: "readOnly",
|
|
715
|
+
required: "required",
|
|
716
|
+
selected: "selected"
|
|
717
|
+
};
|
|
718
|
+
function Ye(e) {
|
|
719
|
+
return typeof e == "string";
|
|
720
|
+
}
|
|
721
|
+
function De(e, c, o) {
|
|
722
|
+
return e === void 0 || Ye(e) ? c : {
|
|
723
|
+
...c,
|
|
724
|
+
ownerState: {
|
|
725
|
+
...c.ownerState,
|
|
726
|
+
...o
|
|
727
|
+
}
|
|
728
|
+
};
|
|
729
|
+
}
|
|
730
|
+
function Ne(e, c = []) {
|
|
731
|
+
if (e === void 0)
|
|
732
|
+
return {};
|
|
733
|
+
const o = {};
|
|
734
|
+
return Object.keys(e).filter((t) => t.match(/^on[A-Z]/) && typeof e[t] == "function" && !c.includes(t)).forEach((t) => {
|
|
735
|
+
o[t] = e[t];
|
|
736
|
+
}), o;
|
|
737
|
+
}
|
|
738
|
+
function ge(e) {
|
|
739
|
+
if (e === void 0)
|
|
740
|
+
return {};
|
|
741
|
+
const c = {};
|
|
742
|
+
return Object.keys(e).filter((o) => !(o.match(/^on[A-Z]/) && typeof e[o] == "function")).forEach((o) => {
|
|
743
|
+
c[o] = e[o];
|
|
744
|
+
}), c;
|
|
745
|
+
}
|
|
746
|
+
function We(e) {
|
|
747
|
+
const {
|
|
748
|
+
getSlotProps: c,
|
|
749
|
+
additionalProps: o,
|
|
750
|
+
externalSlotProps: t,
|
|
751
|
+
externalForwardedProps: u,
|
|
752
|
+
className: s
|
|
753
|
+
} = e;
|
|
754
|
+
if (!c) {
|
|
755
|
+
const w = fe(o == null ? void 0 : o.className, s, u == null ? void 0 : u.className, t == null ? void 0 : t.className), I = {
|
|
756
|
+
...o == null ? void 0 : o.style,
|
|
757
|
+
...u == null ? void 0 : u.style,
|
|
758
|
+
...t == null ? void 0 : t.style
|
|
759
|
+
}, P = {
|
|
760
|
+
...o,
|
|
761
|
+
...u,
|
|
762
|
+
...t
|
|
763
|
+
};
|
|
764
|
+
return w.length > 0 && (P.className = w), Object.keys(I).length > 0 && (P.style = I), {
|
|
765
|
+
props: P,
|
|
766
|
+
internalRef: void 0
|
|
767
|
+
};
|
|
768
|
+
}
|
|
769
|
+
const d = Ne({
|
|
770
|
+
...u,
|
|
771
|
+
...t
|
|
772
|
+
}), f = ge(t), O = ge(u), l = c(d), h = fe(l == null ? void 0 : l.className, o == null ? void 0 : o.className, s, u == null ? void 0 : u.className, t == null ? void 0 : t.className), E = {
|
|
773
|
+
...l == null ? void 0 : l.style,
|
|
774
|
+
...o == null ? void 0 : o.style,
|
|
775
|
+
...u == null ? void 0 : u.style,
|
|
776
|
+
...t == null ? void 0 : t.style
|
|
777
|
+
}, x = {
|
|
778
|
+
...l,
|
|
779
|
+
...o,
|
|
780
|
+
...O,
|
|
781
|
+
...f
|
|
782
|
+
};
|
|
783
|
+
return h.length > 0 && (x.className = h), Object.keys(E).length > 0 && (x.style = E), {
|
|
784
|
+
props: x,
|
|
785
|
+
internalRef: l.ref
|
|
786
|
+
};
|
|
787
|
+
}
|
|
788
|
+
function Le(e, c, o) {
|
|
789
|
+
return typeof e == "function" ? e(c, o) : e;
|
|
790
|
+
}
|
|
791
|
+
function Ge(e) {
|
|
792
|
+
var E;
|
|
793
|
+
const {
|
|
794
|
+
elementType: c,
|
|
795
|
+
externalSlotProps: o,
|
|
796
|
+
ownerState: t,
|
|
797
|
+
skipResolvingSlotProps: u = !1,
|
|
798
|
+
...s
|
|
799
|
+
} = e, d = u ? {} : Le(o, t), {
|
|
800
|
+
props: f,
|
|
801
|
+
internalRef: O
|
|
802
|
+
} = We({
|
|
803
|
+
...s,
|
|
804
|
+
externalSlotProps: d
|
|
805
|
+
}), l = ke(O, d == null ? void 0 : d.ref, (E = e.additionalProps) == null ? void 0 : E.ref);
|
|
806
|
+
return De(c, {
|
|
807
|
+
...f,
|
|
808
|
+
ref: l
|
|
809
|
+
}, t);
|
|
810
|
+
}
|
|
811
|
+
const Ce = "base";
|
|
812
|
+
function Ue(e) {
|
|
813
|
+
return `${Ce}--${e}`;
|
|
814
|
+
}
|
|
815
|
+
function ze(e, c) {
|
|
816
|
+
return `${Ce}-${e}-${c}`;
|
|
817
|
+
}
|
|
818
|
+
function Fe(e, c) {
|
|
819
|
+
const o = qe[c];
|
|
820
|
+
return o ? Ue(o) : ze(e, c);
|
|
821
|
+
}
|
|
822
|
+
function Ke(e, c) {
|
|
823
|
+
const o = {};
|
|
824
|
+
return c.forEach((t) => {
|
|
825
|
+
o[t] = Fe(e, t);
|
|
826
|
+
}), o;
|
|
827
|
+
}
|
|
828
|
+
const He = {
|
|
829
|
+
disableDefaultClasses: !1
|
|
830
|
+
}, Re = /* @__PURE__ */ U.createContext(He);
|
|
831
|
+
process.env.NODE_ENV !== "production" && (Re.displayName = "ClassNameConfiguratorContext");
|
|
832
|
+
function Qe(e) {
|
|
833
|
+
const {
|
|
834
|
+
disableDefaultClasses: c
|
|
835
|
+
} = U.useContext(Re);
|
|
836
|
+
return (o) => c ? "" : e(o);
|
|
837
|
+
}
|
|
838
|
+
export {
|
|
839
|
+
Xe as P,
|
|
840
|
+
Ke as a,
|
|
841
|
+
Ge as b,
|
|
842
|
+
Ze as c,
|
|
843
|
+
Qe as d,
|
|
844
|
+
Ne as e,
|
|
845
|
+
Fe as g,
|
|
846
|
+
ke as u
|
|
847
|
+
};
|