@pismo/marola 2.1.64 → 2.1.66

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