@pismo/marola 2.0.2 → 2.1.1
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-cCziLrIy.js → Button-Bh6rpTyY.js} +2 -2
- package/dist/{ClickAwayListener-CUayzVlD.js → ClickAwayListener-BjqhGzJh.js} +3 -3
- package/dist/DatePicker.module-C9zgeg52.js +46 -0
- package/dist/{Popup-C7AXLoP0.js → Popup-aWlctE1C.js} +3 -3
- package/dist/{Portal-CYV5TK_i.js → Portal-Dc9ej3DW.js} +2 -2
- package/dist/{RadioButton.module-B4kmS66R.js → RadioButton.module-VF7v9SuY.js} +1 -1
- package/dist/{Toggle-DEVeyo2f.js → Toggle-DeMSbC0N.js} +16 -15
- package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/assets/DatePicker.css +1 -0
- package/dist/{combineHooksSlotProps-BCXoX9Nx.js → combineHooksSlotProps-CNWfgylM.js} +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Chip/Chip.js +4 -3
- package/dist/components/DatePicker/DatePicker.d.ts +30 -0
- package/dist/components/DatePicker/DatePicker.js +1534 -0
- package/dist/components/DatePicker/DatePicker.stories.d.ts +45 -0
- package/dist/components/DatePicker/dateUtils.d.ts +96 -0
- package/dist/components/DatePicker/dateUtils.js +70 -0
- package/dist/components/DatePicker/dateUtils.test.d.ts +0 -0
- package/dist/components/DatePicker/keyboardNavigation.d.ts +14 -0
- package/dist/components/DatePicker/keyboardNavigation.js +26 -0
- package/dist/components/DatePicker/keyboardNavigation.test.d.ts +1 -0
- package/dist/components/DatePicker/renderCalendarDays.d.ts +25 -0
- package/dist/components/DatePicker/renderCalendarDays.js +85 -0
- package/dist/components/DatePicker/renderCalendarDays.test.d.ts +2 -0
- package/dist/components/DatePicker/renderDualCalendarHeader.d.ts +8 -0
- package/dist/components/DatePicker/renderDualCalendarHeader.js +51 -0
- package/dist/components/DatePicker/renderDualCalendarHeader.test.d.ts +0 -0
- package/dist/components/DatePicker/renderHeader.d.ts +11 -0
- package/dist/components/DatePicker/renderHeader.js +41 -0
- package/dist/components/DatePicker/renderHeader.test.d.ts +0 -0
- package/dist/components/DatePicker/renderNavigatorInput.d.ts +16 -0
- package/dist/components/DatePicker/renderNavigatorInput.js +73 -0
- package/dist/components/DatePicker/renderNavigatorInput.test.d.ts +1 -0
- package/dist/components/DatePicker/renderPeriodSelection.d.ts +17 -0
- package/dist/components/DatePicker/renderPeriodSelection.js +81 -0
- package/dist/components/DatePicker/renderPeriodSelection.test.d.ts +1 -0
- package/dist/components/Dialog/CloseIconButton.js +1 -1
- package/dist/components/Dialog/Dialog.js +4 -4
- package/dist/components/Icon/Icon.js +181 -158
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/components/IconButton/IconButton.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Popover/Popover.js +2 -2
- package/dist/components/RadioButton/RadioButton.js +7 -6
- package/dist/components/RadioButton/RadioOption.js +7 -6
- package/dist/components/ResultWithChips/ResultWithChips.js +1 -1
- package/dist/components/RowItem/RowItem.js +4 -3
- package/dist/components/Select/Select.js +5 -5
- package/dist/components/Snackbar/Snackbar.js +3 -3
- package/dist/components/Tabs/Tab.js +3 -3
- package/dist/components/Tabs/TabPanel.js +1 -1
- package/dist/components/Tabs/Tabs.js +3 -3
- package/dist/components/Toggle/Toggle.js +1 -1
- package/dist/components/ToggleGroup/Toggle.js +3 -2
- package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +3 -3
- package/dist/components/Typography/Typography.test.d.ts +1 -0
- package/dist/contexts/SnackbarProvider/SnackbarProvider.js +1 -1
- package/dist/dayjs.min-ClQKmc--.js +285 -0
- package/dist/{index-CATDT7fJ.js → index-Bppuplgd.js} +6 -5
- package/dist/main.d.ts +1 -0
- package/dist/main.js +106 -105
- package/dist/{ownerDocument-CAHSRRik.js → ownerDocument-CXvpb_nj.js} +2 -1
- package/dist/{useButton-eF8MXAli.js → useButton-B8Y1xR88.js} +1 -1
- package/dist/{useList-CPY2roI7.js → useList-9gbS2r78.js} +2 -2
- package/dist/{useSlotProps-DSnfx453.js → useSlotProps-C7dqSmdM.js} +109 -112
- package/package.json +1 -1
- /package/dist/components/{Typography/typography.test.d.ts → DatePicker/DatePicker.test.d.ts} +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { g as _e } from "./_commonjsHelpers-C6fGbg64.js";
|
|
1
2
|
import * as ue from "react";
|
|
2
3
|
import "react/jsx-runtime";
|
|
3
4
|
import { c as le } from "./clsx-OuTLNxxd.js";
|
|
@@ -11,9 +12,6 @@ function Y() {
|
|
|
11
12
|
return e;
|
|
12
13
|
}, Y.apply(this, arguments);
|
|
13
14
|
}
|
|
14
|
-
function Re(e) {
|
|
15
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
16
|
-
}
|
|
17
15
|
var V = { exports: {} }, B = { exports: {} }, P = {};
|
|
18
16
|
/** @license React v16.13.1
|
|
19
17
|
* react-is.production.min.js
|
|
@@ -27,14 +25,14 @@ var de;
|
|
|
27
25
|
function xe() {
|
|
28
26
|
if (de) return P;
|
|
29
27
|
de = 1;
|
|
30
|
-
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,
|
|
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;
|
|
31
29
|
function j(i) {
|
|
32
30
|
if (typeof i == "object" && i !== null) {
|
|
33
31
|
var W = i.$$typeof;
|
|
34
32
|
switch (W) {
|
|
35
33
|
case s:
|
|
36
34
|
switch (i = i.type, i) {
|
|
37
|
-
case
|
|
35
|
+
case R:
|
|
38
36
|
case v:
|
|
39
37
|
case n:
|
|
40
38
|
case u:
|
|
@@ -61,8 +59,8 @@ function xe() {
|
|
|
61
59
|
function A(i) {
|
|
62
60
|
return j(i) === v;
|
|
63
61
|
}
|
|
64
|
-
return P.AsyncMode =
|
|
65
|
-
return A(i) || j(i) ===
|
|
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;
|
|
66
64
|
}, P.isConcurrentMode = A, P.isContextConsumer = function(i) {
|
|
67
65
|
return j(i) === f;
|
|
68
66
|
}, P.isContextProvider = function(i) {
|
|
@@ -86,7 +84,7 @@ function xe() {
|
|
|
86
84
|
}, P.isSuspense = function(i) {
|
|
87
85
|
return j(i) === S;
|
|
88
86
|
}, P.isValidElementType = function(i) {
|
|
89
|
-
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 ===
|
|
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 === _);
|
|
90
88
|
}, P.typeOf = j, P;
|
|
91
89
|
}
|
|
92
90
|
var O = {};
|
|
@@ -101,10 +99,10 @@ var O = {};
|
|
|
101
99
|
var pe;
|
|
102
100
|
function we() {
|
|
103
101
|
return pe || (pe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
104
|
-
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,
|
|
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;
|
|
105
103
|
function j(o) {
|
|
106
104
|
return typeof o == "string" || typeof o == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
107
|
-
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 ===
|
|
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 === _);
|
|
108
106
|
}
|
|
109
107
|
function A(o) {
|
|
110
108
|
if (typeof o == "object" && o !== null) {
|
|
@@ -113,7 +111,7 @@ function we() {
|
|
|
113
111
|
case s:
|
|
114
112
|
var H = o.type;
|
|
115
113
|
switch (H) {
|
|
116
|
-
case
|
|
114
|
+
case R:
|
|
117
115
|
case v:
|
|
118
116
|
case n:
|
|
119
117
|
case u:
|
|
@@ -138,9 +136,9 @@ function we() {
|
|
|
138
136
|
}
|
|
139
137
|
}
|
|
140
138
|
}
|
|
141
|
-
var i =
|
|
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;
|
|
142
140
|
function re(o) {
|
|
143
|
-
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) ===
|
|
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;
|
|
144
142
|
}
|
|
145
143
|
function r(o) {
|
|
146
144
|
return A(o) === v;
|
|
@@ -166,19 +164,19 @@ function we() {
|
|
|
166
164
|
function y(o) {
|
|
167
165
|
return A(o) === w;
|
|
168
166
|
}
|
|
169
|
-
function
|
|
167
|
+
function g(o) {
|
|
170
168
|
return A(o) === t;
|
|
171
169
|
}
|
|
172
170
|
function C(o) {
|
|
173
171
|
return A(o) === u;
|
|
174
172
|
}
|
|
175
|
-
function
|
|
173
|
+
function T(o) {
|
|
176
174
|
return A(o) === c;
|
|
177
175
|
}
|
|
178
176
|
function M(o) {
|
|
179
177
|
return A(o) === S;
|
|
180
178
|
}
|
|
181
|
-
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 =
|
|
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;
|
|
182
180
|
}()), O;
|
|
183
181
|
}
|
|
184
182
|
var ye;
|
|
@@ -209,10 +207,10 @@ function Ae() {
|
|
|
209
207
|
return !1;
|
|
210
208
|
for (var h = {}, f = 0; f < 10; f++)
|
|
211
209
|
h["_" + String.fromCharCode(f)] = f;
|
|
212
|
-
var
|
|
210
|
+
var R = Object.getOwnPropertyNames(h).map(function(m) {
|
|
213
211
|
return h[m];
|
|
214
212
|
});
|
|
215
|
-
if (
|
|
213
|
+
if (R.join("") !== "0123456789")
|
|
216
214
|
return !1;
|
|
217
215
|
var v = {};
|
|
218
216
|
return "abcdefghijklmnopqrst".split("").forEach(function(m) {
|
|
@@ -223,17 +221,17 @@ function Ae() {
|
|
|
223
221
|
}
|
|
224
222
|
}
|
|
225
223
|
return te = c() ? Object.assign : function(u, h) {
|
|
226
|
-
for (var f,
|
|
224
|
+
for (var f, R = n(u), v, m = 1; m < arguments.length; m++) {
|
|
227
225
|
f = Object(arguments[m]);
|
|
228
226
|
for (var S in f)
|
|
229
|
-
s.call(f, S) && (
|
|
227
|
+
s.call(f, S) && (R[S] = f[S]);
|
|
230
228
|
if (e) {
|
|
231
229
|
v = e(f);
|
|
232
230
|
for (var x = 0; x < v.length; x++)
|
|
233
|
-
t.call(f, v[x]) && (
|
|
231
|
+
t.call(f, v[x]) && (R[v[x]] = f[v[x]]);
|
|
234
232
|
}
|
|
235
233
|
}
|
|
236
|
-
return
|
|
234
|
+
return R;
|
|
237
235
|
}, te;
|
|
238
236
|
}
|
|
239
237
|
var ne, me;
|
|
@@ -264,7 +262,7 @@ function je() {
|
|
|
264
262
|
}
|
|
265
263
|
};
|
|
266
264
|
}
|
|
267
|
-
function c(u, h, f,
|
|
265
|
+
function c(u, h, f, R, v) {
|
|
268
266
|
if (process.env.NODE_ENV !== "production") {
|
|
269
267
|
for (var m in u)
|
|
270
268
|
if (n(u, m)) {
|
|
@@ -272,16 +270,16 @@ function je() {
|
|
|
272
270
|
try {
|
|
273
271
|
if (typeof u[m] != "function") {
|
|
274
272
|
var x = Error(
|
|
275
|
-
(
|
|
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`."
|
|
276
274
|
);
|
|
277
275
|
throw x.name = "Invariant Violation", x;
|
|
278
276
|
}
|
|
279
|
-
S = u[m](h, m,
|
|
277
|
+
S = u[m](h, m, R, f, null, s);
|
|
280
278
|
} catch ($) {
|
|
281
279
|
S = $;
|
|
282
280
|
}
|
|
283
281
|
if (S && !(S instanceof Error) && e(
|
|
284
|
-
(
|
|
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)."
|
|
285
283
|
), S instanceof Error && !(S.message in t)) {
|
|
286
284
|
t[S.message] = !0;
|
|
287
285
|
var w = v ? v() : "";
|
|
@@ -303,17 +301,17 @@ function $e() {
|
|
|
303
301
|
var e = Pe(), s = Ae(), t = /* @__PURE__ */ ce(), n = /* @__PURE__ */ Oe(), c = /* @__PURE__ */ je(), u = function() {
|
|
304
302
|
};
|
|
305
303
|
process.env.NODE_ENV !== "production" && (u = function(f) {
|
|
306
|
-
var
|
|
307
|
-
typeof console < "u" && console.error(
|
|
304
|
+
var R = "Warning: " + f;
|
|
305
|
+
typeof console < "u" && console.error(R);
|
|
308
306
|
try {
|
|
309
|
-
throw new Error(
|
|
307
|
+
throw new Error(R);
|
|
310
308
|
} catch {
|
|
311
309
|
}
|
|
312
310
|
});
|
|
313
311
|
function h() {
|
|
314
312
|
return null;
|
|
315
313
|
}
|
|
316
|
-
return ae = function(f,
|
|
314
|
+
return ae = function(f, R) {
|
|
317
315
|
var v = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
|
|
318
316
|
function S(r) {
|
|
319
317
|
var a = r && (v && r[v] || r[m]);
|
|
@@ -344,40 +342,40 @@ function $e() {
|
|
|
344
342
|
function $(r, a) {
|
|
345
343
|
return r === a ? r !== 0 || 1 / r === 1 / a : r !== r && a !== a;
|
|
346
344
|
}
|
|
347
|
-
function
|
|
345
|
+
function _(r, a) {
|
|
348
346
|
this.message = r, this.data = a && typeof a == "object" ? a : {}, this.stack = "";
|
|
349
347
|
}
|
|
350
|
-
|
|
348
|
+
_.prototype = Error.prototype;
|
|
351
349
|
function I(r) {
|
|
352
350
|
if (process.env.NODE_ENV !== "production")
|
|
353
351
|
var a = {}, b = 0;
|
|
354
|
-
function p(E, d, y,
|
|
355
|
-
if (
|
|
356
|
-
if (
|
|
352
|
+
function p(E, d, y, g, C, T, M) {
|
|
353
|
+
if (g = g || x, T = T || y, M !== t) {
|
|
354
|
+
if (R) {
|
|
357
355
|
var o = new Error(
|
|
358
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"
|
|
359
357
|
);
|
|
360
358
|
throw o.name = "Invariant Violation", o;
|
|
361
359
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
362
|
-
var k =
|
|
360
|
+
var k = g + ":" + y;
|
|
363
361
|
!a[k] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
364
362
|
b < 3 && (u(
|
|
365
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
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."
|
|
366
364
|
), a[k] = !0, b++);
|
|
367
365
|
}
|
|
368
366
|
}
|
|
369
|
-
return d[y] == null ? E ? d[y] === null ? new
|
|
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);
|
|
370
368
|
}
|
|
371
369
|
var l = p.bind(null, !1);
|
|
372
370
|
return l.isRequired = p.bind(null, !0), l;
|
|
373
371
|
}
|
|
374
372
|
function q(r) {
|
|
375
373
|
function a(b, p, l, E, d, y) {
|
|
376
|
-
var
|
|
374
|
+
var g = b[p], C = D(g);
|
|
377
375
|
if (C !== r) {
|
|
378
|
-
var
|
|
379
|
-
return new
|
|
380
|
-
"Invalid " + E + " `" + d + "` of type " + ("`" +
|
|
376
|
+
var T = L(g);
|
|
377
|
+
return new _(
|
|
378
|
+
"Invalid " + E + " `" + d + "` of type " + ("`" + T + "` supplied to `" + l + "`, expected ") + ("`" + r + "`."),
|
|
381
379
|
{ expectedType: r }
|
|
382
380
|
);
|
|
383
381
|
}
|
|
@@ -391,16 +389,16 @@ function $e() {
|
|
|
391
389
|
function j(r) {
|
|
392
390
|
function a(b, p, l, E, d) {
|
|
393
391
|
if (typeof r != "function")
|
|
394
|
-
return new
|
|
392
|
+
return new _("Property `" + d + "` of component `" + l + "` has invalid PropType notation inside arrayOf.");
|
|
395
393
|
var y = b[p];
|
|
396
394
|
if (!Array.isArray(y)) {
|
|
397
|
-
var
|
|
398
|
-
return new
|
|
395
|
+
var g = D(y);
|
|
396
|
+
return new _("Invalid " + E + " `" + d + "` of type " + ("`" + g + "` supplied to `" + l + "`, expected an array."));
|
|
399
397
|
}
|
|
400
398
|
for (var C = 0; C < y.length; C++) {
|
|
401
|
-
var
|
|
402
|
-
if (
|
|
403
|
-
return
|
|
399
|
+
var T = r(y, C, l, E, d + "[" + C + "]", t);
|
|
400
|
+
if (T instanceof Error)
|
|
401
|
+
return T;
|
|
404
402
|
}
|
|
405
403
|
return null;
|
|
406
404
|
}
|
|
@@ -411,7 +409,7 @@ function $e() {
|
|
|
411
409
|
var d = a[b];
|
|
412
410
|
if (!f(d)) {
|
|
413
411
|
var y = D(d);
|
|
414
|
-
return new
|
|
412
|
+
return new _("Invalid " + l + " `" + E + "` of type " + ("`" + y + "` supplied to `" + p + "`, expected a single ReactElement."));
|
|
415
413
|
}
|
|
416
414
|
return null;
|
|
417
415
|
}
|
|
@@ -422,7 +420,7 @@ function $e() {
|
|
|
422
420
|
var d = a[b];
|
|
423
421
|
if (!e.isValidElementType(d)) {
|
|
424
422
|
var y = D(d);
|
|
425
|
-
return new
|
|
423
|
+
return new _("Invalid " + l + " `" + E + "` of type " + ("`" + y + "` supplied to `" + p + "`, expected a single ReactElement type."));
|
|
426
424
|
}
|
|
427
425
|
return null;
|
|
428
426
|
}
|
|
@@ -431,8 +429,8 @@ function $e() {
|
|
|
431
429
|
function W(r) {
|
|
432
430
|
function a(b, p, l, E, d) {
|
|
433
431
|
if (!(b[p] instanceof r)) {
|
|
434
|
-
var y = r.name || x,
|
|
435
|
-
return new
|
|
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 + "`."));
|
|
436
434
|
}
|
|
437
435
|
return null;
|
|
438
436
|
}
|
|
@@ -444,29 +442,29 @@ function $e() {
|
|
|
444
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])."
|
|
445
443
|
) : u("Invalid argument supplied to oneOf, expected an array.")), h;
|
|
446
444
|
function a(b, p, l, E, d) {
|
|
447
|
-
for (var y = b[p],
|
|
448
|
-
if ($(y, r[
|
|
445
|
+
for (var y = b[p], g = 0; g < r.length; g++)
|
|
446
|
+
if ($(y, r[g]))
|
|
449
447
|
return null;
|
|
450
448
|
var C = JSON.stringify(r, function(M, o) {
|
|
451
449
|
var k = L(o);
|
|
452
450
|
return k === "symbol" ? String(o) : o;
|
|
453
451
|
});
|
|
454
|
-
return new
|
|
452
|
+
return new _("Invalid " + E + " `" + d + "` of value `" + String(y) + "` " + ("supplied to `" + l + "`, expected one of " + C + "."));
|
|
455
453
|
}
|
|
456
454
|
return I(a);
|
|
457
455
|
}
|
|
458
456
|
function X(r) {
|
|
459
457
|
function a(b, p, l, E, d) {
|
|
460
458
|
if (typeof r != "function")
|
|
461
|
-
return new
|
|
462
|
-
var y = b[p],
|
|
463
|
-
if (
|
|
464
|
-
return new
|
|
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."));
|
|
465
463
|
for (var C in y)
|
|
466
464
|
if (n(y, C)) {
|
|
467
|
-
var
|
|
468
|
-
if (
|
|
469
|
-
return
|
|
465
|
+
var T = r(y, C, l, E, d + "." + C, t);
|
|
466
|
+
if (T instanceof Error)
|
|
467
|
+
return T;
|
|
470
468
|
}
|
|
471
469
|
return null;
|
|
472
470
|
}
|
|
@@ -482,39 +480,39 @@ function $e() {
|
|
|
482
480
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + z(b) + " at index " + a + "."
|
|
483
481
|
), h;
|
|
484
482
|
}
|
|
485
|
-
function p(l, E, d, y,
|
|
486
|
-
for (var C = [],
|
|
487
|
-
var M = r[
|
|
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);
|
|
488
486
|
if (o == null)
|
|
489
487
|
return null;
|
|
490
488
|
o.data && n(o.data, "expectedType") && C.push(o.data.expectedType);
|
|
491
489
|
}
|
|
492
490
|
var k = C.length > 0 ? ", expected one of type [" + C.join(", ") + "]" : "";
|
|
493
|
-
return new
|
|
491
|
+
return new _("Invalid " + y + " `" + g + "` supplied to " + ("`" + d + "`" + k + "."));
|
|
494
492
|
}
|
|
495
493
|
return I(p);
|
|
496
494
|
}
|
|
497
495
|
function G() {
|
|
498
496
|
function r(a, b, p, l, E) {
|
|
499
|
-
return N(a[b]) ? null : new
|
|
497
|
+
return N(a[b]) ? null : new _("Invalid " + l + " `" + E + "` supplied to " + ("`" + p + "`, expected a ReactNode."));
|
|
500
498
|
}
|
|
501
499
|
return I(r);
|
|
502
500
|
}
|
|
503
501
|
function U(r, a, b, p, l) {
|
|
504
|
-
return new
|
|
502
|
+
return new _(
|
|
505
503
|
(r || "React class") + ": " + a + " type `" + b + "." + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + l + "`."
|
|
506
504
|
);
|
|
507
505
|
}
|
|
508
506
|
function K(r) {
|
|
509
507
|
function a(b, p, l, E, d) {
|
|
510
|
-
var y = b[p],
|
|
511
|
-
if (
|
|
512
|
-
return new
|
|
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`."));
|
|
513
511
|
for (var C in r) {
|
|
514
|
-
var
|
|
515
|
-
if (typeof
|
|
516
|
-
return U(l, E, d, C, L(
|
|
517
|
-
var M =
|
|
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);
|
|
518
516
|
if (M)
|
|
519
517
|
return M;
|
|
520
518
|
}
|
|
@@ -524,20 +522,20 @@ function $e() {
|
|
|
524
522
|
}
|
|
525
523
|
function Q(r) {
|
|
526
524
|
function a(b, p, l, E, d) {
|
|
527
|
-
var y = b[p],
|
|
528
|
-
if (
|
|
529
|
-
return new
|
|
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`."));
|
|
530
528
|
var C = s({}, b[p], r);
|
|
531
|
-
for (var
|
|
532
|
-
var M = r[
|
|
533
|
-
if (n(r,
|
|
534
|
-
return U(l, E, d,
|
|
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));
|
|
535
533
|
if (!M)
|
|
536
|
-
return new
|
|
537
|
-
"Invalid " + E + " `" + d + "` key `" +
|
|
534
|
+
return new _(
|
|
535
|
+
"Invalid " + E + " `" + d + "` key `" + T + "` supplied to `" + l + "`.\nBad object: " + JSON.stringify(b[p], null, " ") + `
|
|
538
536
|
Valid keys: ` + JSON.stringify(Object.keys(r), null, " ")
|
|
539
537
|
);
|
|
540
|
-
var o = M(y,
|
|
538
|
+
var o = M(y, T, l, E, d + "." + T, t);
|
|
541
539
|
if (o)
|
|
542
540
|
return o;
|
|
543
541
|
}
|
|
@@ -617,17 +615,17 @@ Valid keys: ` + JSON.stringify(Object.keys(r), null, " ")
|
|
|
617
615
|
return w.checkPropTypes = c, w.resetWarningCache = c.resetWarningCache, w.PropTypes = w, w;
|
|
618
616
|
}, ae;
|
|
619
617
|
}
|
|
620
|
-
var se,
|
|
618
|
+
var se, ge;
|
|
621
619
|
function Ie() {
|
|
622
|
-
if (
|
|
623
|
-
|
|
620
|
+
if (ge) return se;
|
|
621
|
+
ge = 1;
|
|
624
622
|
var e = /* @__PURE__ */ ce();
|
|
625
623
|
function s() {
|
|
626
624
|
}
|
|
627
625
|
function t() {
|
|
628
626
|
}
|
|
629
627
|
return t.resetWarningCache = s, se = function() {
|
|
630
|
-
function n(h, f,
|
|
628
|
+
function n(h, f, R, v, m, S) {
|
|
631
629
|
if (S !== e) {
|
|
632
630
|
var x = new Error(
|
|
633
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"
|
|
@@ -665,10 +663,10 @@ function Ie() {
|
|
|
665
663
|
return u.PropTypes = u, u;
|
|
666
664
|
}, se;
|
|
667
665
|
}
|
|
668
|
-
var
|
|
666
|
+
var Te;
|
|
669
667
|
function Me() {
|
|
670
|
-
if (
|
|
671
|
-
if (
|
|
668
|
+
if (Te) return V.exports;
|
|
669
|
+
if (Te = 1, process.env.NODE_ENV !== "production") {
|
|
672
670
|
var e = Pe(), s = !0;
|
|
673
671
|
V.exports = /* @__PURE__ */ $e()(e.isElement, s);
|
|
674
672
|
} else
|
|
@@ -676,7 +674,7 @@ function Me() {
|
|
|
676
674
|
return V.exports;
|
|
677
675
|
}
|
|
678
676
|
var qe = /* @__PURE__ */ Me();
|
|
679
|
-
const
|
|
677
|
+
const Qe = /* @__PURE__ */ _e(qe);
|
|
680
678
|
function Ye(e, s) {
|
|
681
679
|
typeof e == "function" ? e(s) : e && (e.current = s);
|
|
682
680
|
}
|
|
@@ -687,7 +685,7 @@ function De(...e) {
|
|
|
687
685
|
});
|
|
688
686
|
}, e);
|
|
689
687
|
}
|
|
690
|
-
function
|
|
688
|
+
function er(e, s, t = void 0) {
|
|
691
689
|
const n = {};
|
|
692
690
|
return Object.keys(e).forEach(
|
|
693
691
|
// `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
|
|
@@ -741,7 +739,7 @@ function Ue(e, s) {
|
|
|
741
739
|
const t = ke[s];
|
|
742
740
|
return t ? Ne(t) : Fe(e, s);
|
|
743
741
|
}
|
|
744
|
-
function
|
|
742
|
+
function rr(e, s) {
|
|
745
743
|
const t = {};
|
|
746
744
|
return s.forEach((n) => {
|
|
747
745
|
t[n] = Ue(e, n);
|
|
@@ -754,12 +752,12 @@ function ze(e, s, t) {
|
|
|
754
752
|
}
|
|
755
753
|
const He = {
|
|
756
754
|
disableDefaultClasses: !1
|
|
757
|
-
},
|
|
758
|
-
process.env.NODE_ENV !== "production" && (
|
|
759
|
-
function
|
|
755
|
+
}, Re = /* @__PURE__ */ ue.createContext(He);
|
|
756
|
+
process.env.NODE_ENV !== "production" && (Re.displayName = "ClassNameConfiguratorContext");
|
|
757
|
+
function tr(e) {
|
|
760
758
|
const {
|
|
761
759
|
disableDefaultClasses: s
|
|
762
|
-
} = ue.useContext(
|
|
760
|
+
} = ue.useContext(Re);
|
|
763
761
|
return (t) => s ? "" : e(t);
|
|
764
762
|
}
|
|
765
763
|
function Ve(e, s = []) {
|
|
@@ -790,20 +788,20 @@ function Je(e) {
|
|
|
790
788
|
className: u
|
|
791
789
|
} = e;
|
|
792
790
|
if (!s) {
|
|
793
|
-
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),
|
|
794
|
-
return w.length > 0 && (
|
|
795
|
-
props:
|
|
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: _,
|
|
796
794
|
internalRef: void 0
|
|
797
795
|
};
|
|
798
796
|
}
|
|
799
|
-
const h = Ve(Y({}, c, n)), f = Se(n),
|
|
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);
|
|
800
798
|
return m.length > 0 && (x.className = m), Object.keys(S).length > 0 && (x.style = S), {
|
|
801
799
|
props: x,
|
|
802
800
|
internalRef: v.ref
|
|
803
801
|
};
|
|
804
802
|
}
|
|
805
803
|
const Xe = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
|
|
806
|
-
function
|
|
804
|
+
function nr(e) {
|
|
807
805
|
var s;
|
|
808
806
|
const {
|
|
809
807
|
elementType: t,
|
|
@@ -811,26 +809,25 @@ function tr(e) {
|
|
|
811
809
|
ownerState: c,
|
|
812
810
|
skipResolvingSlotProps: u = !1
|
|
813
811
|
} = e, h = We(e, Xe), f = u ? {} : Be(n, c), {
|
|
814
|
-
props:
|
|
812
|
+
props: R,
|
|
815
813
|
internalRef: v
|
|
816
814
|
} = Je(Y({}, h, {
|
|
817
815
|
externalSlotProps: f
|
|
818
816
|
})), m = De(v, f == null ? void 0 : f.ref, (s = e.additionalProps) == null ? void 0 : s.ref);
|
|
819
|
-
return ze(t, Y({},
|
|
817
|
+
return ze(t, Y({}, R, {
|
|
820
818
|
ref: m
|
|
821
819
|
}), c);
|
|
822
820
|
}
|
|
823
821
|
export {
|
|
824
|
-
|
|
822
|
+
Qe as P,
|
|
825
823
|
We as _,
|
|
826
|
-
|
|
824
|
+
rr as a,
|
|
827
825
|
Y as b,
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
826
|
+
nr as c,
|
|
827
|
+
er as d,
|
|
828
|
+
tr as e,
|
|
831
829
|
Ve as f,
|
|
832
830
|
Ue as g,
|
|
833
|
-
Re as h,
|
|
834
831
|
Le as i,
|
|
835
832
|
Ye as s,
|
|
836
833
|
De as u
|
package/package.json
CHANGED
/package/dist/components/{Typography/typography.test.d.ts → DatePicker/DatePicker.test.d.ts}
RENAMED
|
File without changes
|