@erpsquad/common 1.10.4-test → 1.10.5-test
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/chunks/{CssBaseline-D8lu6YB4.esm.js → CssBaseline-BCsBCxHw.esm.js} +2 -3
- package/dist/chunks/{CssBaseline-D8lu6YB4.esm.js.map → CssBaseline-BCsBCxHw.esm.js.map} +1 -1
- package/dist/chunks/{CssBaseline-DmJ9zaXo.js → CssBaseline-CaG36t1j.js} +3 -4
- package/dist/chunks/{CssBaseline-DmJ9zaXo.js.map → CssBaseline-CaG36t1j.js.map} +1 -1
- package/dist/chunks/{Tooltip-CyzCuxiz.js → Tooltip-BfYngwlu.js} +96 -97
- package/dist/chunks/{Tooltip-CyzCuxiz.js.map → Tooltip-BfYngwlu.js.map} +1 -1
- package/dist/chunks/{Tooltip-Db1YCjVB.esm.js → Tooltip-kVQVUXpu.esm.js} +7 -8
- package/dist/chunks/{Tooltip-Db1YCjVB.esm.js.map → Tooltip-kVQVUXpu.esm.js.map} +1 -1
- package/dist/chunks/{android-12-switch-BpR43WVN.esm.js → android-12-switch-C7HQfwOM.esm.js} +13 -14
- package/dist/chunks/{android-12-switch-BpR43WVN.esm.js.map → android-12-switch-C7HQfwOM.esm.js.map} +1 -1
- package/dist/chunks/{android-12-switch-DhfobhTE.js → android-12-switch-DW4fNSqZ.js} +223 -224
- package/dist/chunks/{android-12-switch-DhfobhTE.js.map → android-12-switch-DW4fNSqZ.js.map} +1 -1
- package/dist/chunks/{apiHelper-DrtX1wsE.js → apiHelper-BOjN9Hi2.js} +6 -6
- package/dist/chunks/{apiHelper-DrtX1wsE.js.map → apiHelper-BOjN9Hi2.js.map} +1 -1
- package/dist/chunks/{apiHelper-HTo6F1P7.esm.js → apiHelper-Bk1Svpxr.esm.js} +6 -6
- package/dist/chunks/{apiHelper-HTo6F1P7.esm.js.map → apiHelper-Bk1Svpxr.esm.js.map} +1 -1
- package/dist/chunks/{arrow-up-CzAYqkgy.js → arrow-up-DL3NGhTM.js} +47 -48
- package/dist/chunks/arrow-up-DL3NGhTM.js.map +1 -0
- package/dist/chunks/{arrow-up-iRf15n-y.esm.js → arrow-up-DazfQcnV.esm.js} +2 -3
- package/dist/chunks/arrow-up-DazfQcnV.esm.js.map +1 -0
- package/dist/chunks/{dashboard-C9j4Kzk8.js → dashboard-MOyqxPUY.js} +3 -4
- package/dist/chunks/dashboard-MOyqxPUY.js.map +1 -0
- package/dist/chunks/{dashboard-DY6kktI9.esm.js → dashboard-PY0CpaZg.esm.js} +2 -3
- package/dist/chunks/dashboard-PY0CpaZg.esm.js.map +1 -0
- package/dist/chunks/{default-data-B-pzy32C.js → default-data-BnKcMmCa.js} +12 -12
- package/dist/chunks/{default-data-B-pzy32C.js.map → default-data-BnKcMmCa.js.map} +1 -1
- package/dist/chunks/{default-data-CZZRGuJQ.esm.js → default-data-BpsCGp37.esm.js} +12 -12
- package/dist/chunks/{default-data-CZZRGuJQ.esm.js.map → default-data-BpsCGp37.esm.js.map} +1 -1
- package/dist/chunks/{document-COlmDW14.js → document-BFgGr8K0.js} +3 -4
- package/dist/chunks/document-BFgGr8K0.js.map +1 -0
- package/dist/chunks/{document-eayAKETK.esm.js → document-uNuadJTM.esm.js} +2 -3
- package/dist/chunks/document-uNuadJTM.esm.js.map +1 -0
- package/dist/chunks/{form-builder-deconversion-CPARvcpx.esm.js → form-builder-deconversion-CuZ3wtCF.esm.js} +3 -3
- package/dist/chunks/{form-builder-deconversion-CPARvcpx.esm.js.map → form-builder-deconversion-CuZ3wtCF.esm.js.map} +1 -1
- package/dist/chunks/{form-builder-deconversion-C-jHZZQX.js → form-builder-deconversion-D9-0eKfU.js} +3 -3
- package/dist/chunks/{form-builder-deconversion-C-jHZZQX.js.map → form-builder-deconversion-D9-0eKfU.js.map} +1 -1
- package/dist/chunks/{fullScreen-BZmLcvBd.esm.js → fullScreen-BYsXcZsz.esm.js} +3 -3
- package/dist/chunks/{fullScreen-BZmLcvBd.esm.js.map → fullScreen-BYsXcZsz.esm.js.map} +1 -1
- package/dist/chunks/{fullScreen-BlB0skIW.js → fullScreen-Dn9rdXui.js} +3 -3
- package/dist/chunks/{fullScreen-BlB0skIW.js.map → fullScreen-Dn9rdXui.js.map} +1 -1
- package/dist/chunks/{identifier-D2PZ045Y.js → identifier-BTBl-PeG.js} +166 -69
- package/dist/chunks/identifier-BTBl-PeG.js.map +1 -0
- package/dist/chunks/{identifier-cOOk7M93.esm.js → identifier-l1qZ_-Do.esm.js} +178 -81
- package/dist/chunks/identifier-l1qZ_-Do.esm.js.map +1 -0
- package/dist/chunks/{languageContext-B9ZrKauM.esm.js → languageContext-B0oDaLaR.esm.js} +2 -2
- package/dist/chunks/{languageContext-B9ZrKauM.esm.js.map → languageContext-B0oDaLaR.esm.js.map} +1 -1
- package/dist/chunks/{languageContext-BplN84_k.js → languageContext-BkEaNmXU.js} +2 -2
- package/dist/chunks/{languageContext-BplN84_k.js.map → languageContext-BkEaNmXU.js.map} +1 -1
- package/dist/chunks/{migration-utils-DkYf1ifk.js → migration-utils-BPJJjfTn.js} +3 -3
- package/dist/chunks/{migration-utils-DkYf1ifk.js.map → migration-utils-BPJJjfTn.js.map} +1 -1
- package/dist/chunks/{migration-utils-CQc6pY2t.esm.js → migration-utils-BV23YHF_.esm.js} +3 -3
- package/dist/chunks/{migration-utils-CQc6pY2t.esm.js.map → migration-utils-BV23YHF_.esm.js.map} +1 -1
- package/dist/chunks/{notification-BUQXYqID.esm.js → notification-CiOGHCVK.esm.js} +258 -21
- package/dist/chunks/notification-CiOGHCVK.esm.js.map +1 -0
- package/dist/chunks/{notification-YiwRvWU7.js → notification-mmnVEZtt.js} +272 -18
- package/dist/chunks/notification-mmnVEZtt.js.map +1 -0
- package/dist/chunks/{page-context-D1AdUiey.esm.js → page-context-Cp-7KQ6O.esm.js} +3 -3
- package/dist/chunks/{page-context-D1AdUiey.esm.js.map → page-context-Cp-7KQ6O.esm.js.map} +1 -1
- package/dist/chunks/{page-context-CQsKXyDK.js → page-context-DJJaibPX.js} +3 -3
- package/dist/chunks/{page-context-CQsKXyDK.js.map → page-context-DJJaibPX.js.map} +1 -1
- package/dist/chunks/{sidebar-CAEC7M85.esm.js → sidebar-BPLSYS-u.esm.js} +8 -9
- package/dist/chunks/sidebar-BPLSYS-u.esm.js.map +1 -0
- package/dist/chunks/{sidebar-C_FKqclf.js → sidebar-Dg33n-BA.js} +25 -26
- package/dist/chunks/sidebar-Dg33n-BA.js.map +1 -0
- package/dist/chunks/{sidebarScreen-DmPbjeHe.js → sidebarScreen-DGu1Nm4H.js} +4 -4
- package/dist/chunks/{sidebarScreen-DmPbjeHe.js.map → sidebarScreen-DGu1Nm4H.js.map} +1 -1
- package/dist/chunks/{sidebarScreen-3pj35MVH.esm.js → sidebarScreen-DOmXPM8l.esm.js} +4 -4
- package/dist/chunks/{sidebarScreen-3pj35MVH.esm.js.map → sidebarScreen-DOmXPM8l.esm.js.map} +1 -1
- package/dist/chunks/{theme-impl-C_w9Sj-A.js → theme-impl-B-jAlah0.js} +3 -3
- package/dist/chunks/{theme-impl-C_w9Sj-A.js.map → theme-impl-B-jAlah0.js.map} +1 -1
- package/dist/chunks/{theme-impl-BrCeOQeW.esm.js → theme-impl-BCVk-5ti.esm.js} +3 -3
- package/dist/chunks/{theme-impl-BrCeOQeW.esm.js.map → theme-impl-BCVk-5ti.esm.js.map} +1 -1
- package/dist/chunks/{themeSelector-BUU_4ha7.esm.js → themeSelector-Ce9JLKP6.esm.js} +2 -2
- package/dist/chunks/{themeSelector-BUU_4ha7.esm.js.map → themeSelector-Ce9JLKP6.esm.js.map} +1 -1
- package/dist/chunks/{themeSelector-DOSJ_YTD.js → themeSelector-Cpzcr0j7.js} +2 -2
- package/dist/chunks/{themeSelector-DOSJ_YTD.js.map → themeSelector-Cpzcr0j7.js.map} +1 -1
- package/dist/chunks/{tick-rHBbYNsa.js → tick-D0uXfgm_.js} +8 -9
- package/dist/chunks/tick-D0uXfgm_.js.map +1 -0
- package/dist/chunks/{tick-BGC9qpEu.esm.js → tick-Yg9tWd8n.esm.js} +2 -3
- package/dist/chunks/tick-Yg9tWd8n.esm.js.map +1 -0
- package/dist/chunks/{toggle-switch-DDIhdf1a.js → toggle-switch-C2GpPNpX.js} +3 -4
- package/dist/chunks/toggle-switch-C2GpPNpX.js.map +1 -0
- package/dist/chunks/{toggle-switch-C5pxbI7z.esm.js → toggle-switch-cHBJVQ9J.esm.js} +2 -3
- package/dist/chunks/toggle-switch-cHBJVQ9J.esm.js.map +1 -0
- package/dist/chunks/{trash-CiV-RKIP.esm.js → trash-BhZBqKsV.esm.js} +2 -3
- package/dist/chunks/trash-BhZBqKsV.esm.js.map +1 -0
- package/dist/chunks/{trash-VyHXYBtF.js → trash-CJyhARBA.js} +36 -37
- package/dist/chunks/trash-CJyhARBA.js.map +1 -0
- package/dist/chunks/{uom-field-wrapper-DoWBwgGv.js → uom-field-wrapper-BX1XdyHa.js} +66 -67
- package/dist/chunks/{uom-field-wrapper-DoWBwgGv.js.map → uom-field-wrapper-BX1XdyHa.js.map} +1 -1
- package/dist/chunks/{uom-field-wrapper-D3POjotB.esm.js → uom-field-wrapper-CkzzOU6N.esm.js} +15 -16
- package/dist/chunks/{uom-field-wrapper-D3POjotB.esm.js.map → uom-field-wrapper-CkzzOU6N.esm.js.map} +1 -1
- package/dist/chunks/{useAccountSetting-DlrR5hlK.esm.js → useAccountSetting-D3-1qy7H.esm.js} +2 -2
- package/dist/chunks/{useAccountSetting-DlrR5hlK.esm.js.map → useAccountSetting-D3-1qy7H.esm.js.map} +1 -1
- package/dist/chunks/{useAccountSetting-CsdyJmXj.js → useAccountSetting-IgFis2cJ.js} +2 -2
- package/dist/chunks/{useAccountSetting-CsdyJmXj.js.map → useAccountSetting-IgFis2cJ.js.map} +1 -1
- package/dist/chunks/{useAuth-CI3BaxzJ.esm.js → useAuth-BJsurhKO.esm.js} +21 -258
- package/dist/chunks/useAuth-BJsurhKO.esm.js.map +1 -0
- package/dist/chunks/{useAuth-DuPbRYgZ.js → useAuth-CiUSJsQc.js} +8 -245
- package/dist/chunks/useAuth-CiUSJsQc.js.map +1 -0
- package/dist/chunks/{useLangauge-CoBbCCSR.js → useLangauge-D2ab_l5x.js} +2 -2
- package/dist/chunks/{useLangauge-CoBbCCSR.js.map → useLangauge-D2ab_l5x.js.map} +1 -1
- package/dist/chunks/{useLangauge-Bp4TQ3yg.esm.js → useLangauge-KK13KYLL.esm.js} +2 -2
- package/dist/chunks/{useLangauge-Bp4TQ3yg.esm.js.map → useLangauge-KK13KYLL.esm.js.map} +1 -1
- package/dist/chunks/{useReduxIntegration-BBYh6fTc.js → useReduxIntegration-Cj1OTrlN.js} +3 -3
- package/dist/chunks/{useReduxIntegration-BBYh6fTc.js.map → useReduxIntegration-Cj1OTrlN.js.map} +1 -1
- package/dist/chunks/{useReduxIntegration-CcFXL_r2.esm.js → useReduxIntegration-DOzBW6tg.esm.js} +3 -3
- package/dist/chunks/{useReduxIntegration-CcFXL_r2.esm.js.map → useReduxIntegration-DOzBW6tg.esm.js.map} +1 -1
- package/dist/components/icons/custom-styled-icon.d.ts +1 -1
- package/dist/components/index.esm.js +14 -14
- package/dist/components/index.js +14 -14
- package/dist/contexts/index.esm.js +3 -3
- package/dist/contexts/index.js +3 -3
- package/dist/hooks/index.esm.js +5 -5
- package/dist/hooks/index.js +5 -5
- package/dist/icons/index.esm.js +7 -7
- package/dist/icons/index.js +7 -7
- package/dist/index.esm.js +23 -23
- package/dist/index.js +23 -23
- package/dist/layout/index.esm.js +2 -2
- package/dist/layout/index.js +2 -2
- package/dist/src/components/icons/custom-styled-icon.d.ts +1 -1
- package/dist/theme/index.esm.js +2 -2
- package/dist/theme/index.js +2 -2
- package/dist/utils/index.esm.js +3 -3
- package/dist/utils/index.js +3 -3
- package/dist/views/index.esm.js +7 -7
- package/dist/views/index.js +6 -6
- package/package.json +1 -1
- package/dist/chunks/DefaultPropsProvider-CtzpYSZM.esm.js +0 -96
- package/dist/chunks/DefaultPropsProvider-CtzpYSZM.esm.js.map +0 -1
- package/dist/chunks/DefaultPropsProvider-DNkr8p_i.js +0 -112
- package/dist/chunks/DefaultPropsProvider-DNkr8p_i.js.map +0 -1
- package/dist/chunks/arrow-up-CzAYqkgy.js.map +0 -1
- package/dist/chunks/arrow-up-iRf15n-y.esm.js.map +0 -1
- package/dist/chunks/dashboard-C9j4Kzk8.js.map +0 -1
- package/dist/chunks/dashboard-DY6kktI9.esm.js.map +0 -1
- package/dist/chunks/document-COlmDW14.js.map +0 -1
- package/dist/chunks/document-eayAKETK.esm.js.map +0 -1
- package/dist/chunks/identifier-D2PZ045Y.js.map +0 -1
- package/dist/chunks/identifier-cOOk7M93.esm.js.map +0 -1
- package/dist/chunks/notification-BUQXYqID.esm.js.map +0 -1
- package/dist/chunks/notification-YiwRvWU7.js.map +0 -1
- package/dist/chunks/sidebar-CAEC7M85.esm.js.map +0 -1
- package/dist/chunks/sidebar-C_FKqclf.js.map +0 -1
- package/dist/chunks/tick-BGC9qpEu.esm.js.map +0 -1
- package/dist/chunks/tick-rHBbYNsa.js.map +0 -1
- package/dist/chunks/toggle-switch-C5pxbI7z.esm.js.map +0 -1
- package/dist/chunks/toggle-switch-DDIhdf1a.js.map +0 -1
- package/dist/chunks/trash-CiV-RKIP.esm.js.map +0 -1
- package/dist/chunks/trash-VyHXYBtF.js.map +0 -1
- package/dist/chunks/useAuth-CI3BaxzJ.esm.js.map +0 -1
- package/dist/chunks/useAuth-DuPbRYgZ.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const emStyled = require("@emotion/styled");
|
|
3
|
-
const react = require("@emotion/react");
|
|
4
2
|
const React = require("react");
|
|
5
3
|
const jsxRuntime = require("./jsx-runtime-B6vEU3CM.js");
|
|
4
|
+
const emStyled = require("@emotion/styled");
|
|
5
|
+
const react = require("@emotion/react");
|
|
6
6
|
const _commonjsHelpers = require("./_commonjsHelpers-Cq6wktVC.js");
|
|
7
7
|
function _interopNamespaceDefault(e) {
|
|
8
8
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
@@ -439,70 +439,77 @@ function requireReactPropTypesSecret() {
|
|
|
439
439
|
ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
440
440
|
return ReactPropTypesSecret_1;
|
|
441
441
|
}
|
|
442
|
-
var has
|
|
442
|
+
var has;
|
|
443
443
|
var hasRequiredHas;
|
|
444
444
|
function requireHas() {
|
|
445
|
-
if (hasRequiredHas) return has
|
|
445
|
+
if (hasRequiredHas) return has;
|
|
446
446
|
hasRequiredHas = 1;
|
|
447
|
-
has
|
|
448
|
-
return has
|
|
449
|
-
}
|
|
450
|
-
var
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
var
|
|
456
|
-
printWarning = function(text) {
|
|
457
|
-
var message = "Warning: " + text;
|
|
458
|
-
if (typeof console !== "undefined") {
|
|
459
|
-
console.error(message);
|
|
460
|
-
}
|
|
461
|
-
try {
|
|
462
|
-
throw new Error(message);
|
|
463
|
-
} catch (x) {
|
|
464
|
-
}
|
|
447
|
+
has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
448
|
+
return has;
|
|
449
|
+
}
|
|
450
|
+
var checkPropTypes_1;
|
|
451
|
+
var hasRequiredCheckPropTypes;
|
|
452
|
+
function requireCheckPropTypes() {
|
|
453
|
+
if (hasRequiredCheckPropTypes) return checkPropTypes_1;
|
|
454
|
+
hasRequiredCheckPropTypes = 1;
|
|
455
|
+
var printWarning = function() {
|
|
465
456
|
};
|
|
466
|
-
}
|
|
467
|
-
function checkPropTypes(typeSpecs, values2, location, componentName, getStack) {
|
|
468
457
|
if (process.env.NODE_ENV !== "production") {
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
458
|
+
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
459
|
+
var loggedTypeFailures = {};
|
|
460
|
+
var has2 = requireHas();
|
|
461
|
+
printWarning = function(text) {
|
|
462
|
+
var message = "Warning: " + text;
|
|
463
|
+
if (typeof console !== "undefined") {
|
|
464
|
+
console.error(message);
|
|
465
|
+
}
|
|
466
|
+
try {
|
|
467
|
+
throw new Error(message);
|
|
468
|
+
} catch (x) {
|
|
469
|
+
}
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
function checkPropTypes(typeSpecs, values2, location, componentName, getStack) {
|
|
473
|
+
if (process.env.NODE_ENV !== "production") {
|
|
474
|
+
for (var typeSpecName in typeSpecs) {
|
|
475
|
+
if (has2(typeSpecs, typeSpecName)) {
|
|
476
|
+
var error;
|
|
477
|
+
try {
|
|
478
|
+
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
479
|
+
var err = Error(
|
|
480
|
+
(componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
481
|
+
);
|
|
482
|
+
err.name = "Invariant Violation";
|
|
483
|
+
throw err;
|
|
484
|
+
}
|
|
485
|
+
error = typeSpecs[typeSpecName](values2, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
486
|
+
} catch (ex) {
|
|
487
|
+
error = ex;
|
|
488
|
+
}
|
|
489
|
+
if (error && !(error instanceof Error)) {
|
|
490
|
+
printWarning(
|
|
491
|
+
(componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
492
|
+
);
|
|
493
|
+
}
|
|
494
|
+
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
495
|
+
loggedTypeFailures[error.message] = true;
|
|
496
|
+
var stack = getStack ? getStack() : "";
|
|
497
|
+
printWarning(
|
|
498
|
+
"Failed " + location + " type: " + error.message + (stack != null ? stack : "")
|
|
476
499
|
);
|
|
477
|
-
err.name = "Invariant Violation";
|
|
478
|
-
throw err;
|
|
479
500
|
}
|
|
480
|
-
error = typeSpecs[typeSpecName](values2, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
481
|
-
} catch (ex) {
|
|
482
|
-
error = ex;
|
|
483
|
-
}
|
|
484
|
-
if (error && !(error instanceof Error)) {
|
|
485
|
-
printWarning(
|
|
486
|
-
(componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
487
|
-
);
|
|
488
|
-
}
|
|
489
|
-
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
490
|
-
loggedTypeFailures[error.message] = true;
|
|
491
|
-
var stack = getStack ? getStack() : "";
|
|
492
|
-
printWarning(
|
|
493
|
-
"Failed " + location + " type: " + error.message + (stack != null ? stack : "")
|
|
494
|
-
);
|
|
495
501
|
}
|
|
496
502
|
}
|
|
497
503
|
}
|
|
498
504
|
}
|
|
505
|
+
checkPropTypes.resetWarningCache = function() {
|
|
506
|
+
if (process.env.NODE_ENV !== "production") {
|
|
507
|
+
loggedTypeFailures = {};
|
|
508
|
+
}
|
|
509
|
+
};
|
|
510
|
+
checkPropTypes_1 = checkPropTypes;
|
|
511
|
+
return checkPropTypes_1;
|
|
499
512
|
}
|
|
500
|
-
checkPropTypes.resetWarningCache = function() {
|
|
501
|
-
if (process.env.NODE_ENV !== "production") {
|
|
502
|
-
loggedTypeFailures = {};
|
|
503
|
-
}
|
|
504
|
-
};
|
|
505
|
-
var checkPropTypes_1 = checkPropTypes;
|
|
506
513
|
var factoryWithTypeCheckers;
|
|
507
514
|
var hasRequiredFactoryWithTypeCheckers;
|
|
508
515
|
function requireFactoryWithTypeCheckers() {
|
|
@@ -511,12 +518,12 @@ function requireFactoryWithTypeCheckers() {
|
|
|
511
518
|
var ReactIs = requireReactIs();
|
|
512
519
|
var assign2 = requireObjectAssign();
|
|
513
520
|
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
514
|
-
var
|
|
515
|
-
var
|
|
516
|
-
var
|
|
521
|
+
var has2 = requireHas();
|
|
522
|
+
var checkPropTypes = requireCheckPropTypes();
|
|
523
|
+
var printWarning = function() {
|
|
517
524
|
};
|
|
518
525
|
if (process.env.NODE_ENV !== "production") {
|
|
519
|
-
|
|
526
|
+
printWarning = function(text) {
|
|
520
527
|
var message = "Warning: " + text;
|
|
521
528
|
if (typeof console !== "undefined") {
|
|
522
529
|
console.error(message);
|
|
@@ -593,7 +600,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
593
600
|
var cacheKey = componentName + ":" + propName;
|
|
594
601
|
if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
595
602
|
manualPropTypeWarningCount < 3) {
|
|
596
|
-
|
|
603
|
+
printWarning(
|
|
597
604
|
"You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. 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."
|
|
598
605
|
);
|
|
599
606
|
manualPropTypeCallCache[cacheKey] = true;
|
|
@@ -692,11 +699,11 @@ function requireFactoryWithTypeCheckers() {
|
|
|
692
699
|
if (!Array.isArray(expectedValues)) {
|
|
693
700
|
if (process.env.NODE_ENV !== "production") {
|
|
694
701
|
if (arguments.length > 1) {
|
|
695
|
-
|
|
702
|
+
printWarning(
|
|
696
703
|
"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])."
|
|
697
704
|
);
|
|
698
705
|
} else {
|
|
699
|
-
|
|
706
|
+
printWarning("Invalid argument supplied to oneOf, expected an array.");
|
|
700
707
|
}
|
|
701
708
|
}
|
|
702
709
|
return emptyFunctionThatReturnsNull;
|
|
@@ -730,7 +737,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
730
737
|
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
|
|
731
738
|
}
|
|
732
739
|
for (var key in propValue) {
|
|
733
|
-
if (
|
|
740
|
+
if (has2(propValue, key)) {
|
|
734
741
|
var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
|
735
742
|
if (error instanceof Error) {
|
|
736
743
|
return error;
|
|
@@ -743,13 +750,13 @@ function requireFactoryWithTypeCheckers() {
|
|
|
743
750
|
}
|
|
744
751
|
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
745
752
|
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
746
|
-
process.env.NODE_ENV !== "production" ?
|
|
753
|
+
process.env.NODE_ENV !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
|
|
747
754
|
return emptyFunctionThatReturnsNull;
|
|
748
755
|
}
|
|
749
756
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
750
757
|
var checker = arrayOfTypeCheckers[i];
|
|
751
758
|
if (typeof checker !== "function") {
|
|
752
|
-
|
|
759
|
+
printWarning(
|
|
753
760
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "."
|
|
754
761
|
);
|
|
755
762
|
return emptyFunctionThatReturnsNull;
|
|
@@ -763,7 +770,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
763
770
|
if (checkerResult == null) {
|
|
764
771
|
return null;
|
|
765
772
|
}
|
|
766
|
-
if (checkerResult.data &&
|
|
773
|
+
if (checkerResult.data && has2(checkerResult.data, "expectedType")) {
|
|
767
774
|
expectedTypes.push(checkerResult.data.expectedType);
|
|
768
775
|
}
|
|
769
776
|
}
|
|
@@ -817,7 +824,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
817
824
|
var allKeys = assign2({}, props[propName], shapeTypes);
|
|
818
825
|
for (var key in allKeys) {
|
|
819
826
|
var checker = shapeTypes[key];
|
|
820
|
-
if (
|
|
827
|
+
if (has2(shapeTypes, key) && typeof checker !== "function") {
|
|
821
828
|
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
822
829
|
}
|
|
823
830
|
if (!checker) {
|
|
@@ -939,8 +946,8 @@ function requireFactoryWithTypeCheckers() {
|
|
|
939
946
|
}
|
|
940
947
|
return propValue.constructor.name;
|
|
941
948
|
}
|
|
942
|
-
ReactPropTypes.checkPropTypes =
|
|
943
|
-
ReactPropTypes.resetWarningCache =
|
|
949
|
+
ReactPropTypes.checkPropTypes = checkPropTypes;
|
|
950
|
+
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
|
944
951
|
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
945
952
|
return ReactPropTypes;
|
|
946
953
|
};
|
|
@@ -1026,6 +1033,31 @@ function capitalize(string) {
|
|
|
1026
1033
|
}
|
|
1027
1034
|
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
1028
1035
|
}
|
|
1036
|
+
function resolveProps(defaultProps, props) {
|
|
1037
|
+
const output = _extends({}, props);
|
|
1038
|
+
Object.keys(defaultProps).forEach((propName) => {
|
|
1039
|
+
if (propName.toString().match(/^(components|slots)$/)) {
|
|
1040
|
+
output[propName] = _extends({}, defaultProps[propName], output[propName]);
|
|
1041
|
+
} else if (propName.toString().match(/^(componentsProps|slotProps)$/)) {
|
|
1042
|
+
const defaultSlotProps = defaultProps[propName] || {};
|
|
1043
|
+
const slotProps = props[propName];
|
|
1044
|
+
output[propName] = {};
|
|
1045
|
+
if (!slotProps || !Object.keys(slotProps)) {
|
|
1046
|
+
output[propName] = defaultSlotProps;
|
|
1047
|
+
} else if (!defaultSlotProps || !Object.keys(defaultSlotProps)) {
|
|
1048
|
+
output[propName] = slotProps;
|
|
1049
|
+
} else {
|
|
1050
|
+
output[propName] = _extends({}, slotProps);
|
|
1051
|
+
Object.keys(defaultSlotProps).forEach((slotPropName) => {
|
|
1052
|
+
output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName]);
|
|
1053
|
+
});
|
|
1054
|
+
}
|
|
1055
|
+
} else if (output[propName] === void 0) {
|
|
1056
|
+
output[propName] = defaultProps[propName];
|
|
1057
|
+
}
|
|
1058
|
+
});
|
|
1059
|
+
return output;
|
|
1060
|
+
}
|
|
1029
1061
|
const defaultGenerator = (componentName) => componentName;
|
|
1030
1062
|
const createClassNameGenerator = () => {
|
|
1031
1063
|
let generate = defaultGenerator;
|
|
@@ -1076,6 +1108,69 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
1076
1108
|
}
|
|
1077
1109
|
return t;
|
|
1078
1110
|
}
|
|
1111
|
+
const PropsContext = /* @__PURE__ */ React__namespace.createContext(void 0);
|
|
1112
|
+
process.env.NODE_ENV !== "production" ? {
|
|
1113
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1114
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1115
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
1116
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
1117
|
+
/**
|
|
1118
|
+
* @ignore
|
|
1119
|
+
*/
|
|
1120
|
+
children: PropTypes.node,
|
|
1121
|
+
/**
|
|
1122
|
+
* @ignore
|
|
1123
|
+
*/
|
|
1124
|
+
value: PropTypes.object
|
|
1125
|
+
} : void 0;
|
|
1126
|
+
function getThemeProps(params) {
|
|
1127
|
+
const {
|
|
1128
|
+
theme,
|
|
1129
|
+
name,
|
|
1130
|
+
props
|
|
1131
|
+
} = params;
|
|
1132
|
+
if (!theme || !theme.components || !theme.components[name]) {
|
|
1133
|
+
return props;
|
|
1134
|
+
}
|
|
1135
|
+
const config = theme.components[name];
|
|
1136
|
+
if (config.defaultProps) {
|
|
1137
|
+
return resolveProps(config.defaultProps, props);
|
|
1138
|
+
}
|
|
1139
|
+
if (!config.styleOverrides && !config.variants) {
|
|
1140
|
+
return resolveProps(config, props);
|
|
1141
|
+
}
|
|
1142
|
+
return props;
|
|
1143
|
+
}
|
|
1144
|
+
function useDefaultProps$1({
|
|
1145
|
+
props,
|
|
1146
|
+
name
|
|
1147
|
+
}) {
|
|
1148
|
+
const ctx = React__namespace.useContext(PropsContext);
|
|
1149
|
+
return getThemeProps({
|
|
1150
|
+
props,
|
|
1151
|
+
name,
|
|
1152
|
+
theme: {
|
|
1153
|
+
components: ctx
|
|
1154
|
+
}
|
|
1155
|
+
});
|
|
1156
|
+
}
|
|
1157
|
+
process.env.NODE_ENV !== "production" ? {
|
|
1158
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1159
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1160
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
1161
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
1162
|
+
/**
|
|
1163
|
+
* @ignore
|
|
1164
|
+
*/
|
|
1165
|
+
children: PropTypes.node,
|
|
1166
|
+
/**
|
|
1167
|
+
* @ignore
|
|
1168
|
+
*/
|
|
1169
|
+
value: PropTypes.object.isRequired
|
|
1170
|
+
} : void 0;
|
|
1171
|
+
function useDefaultProps(params) {
|
|
1172
|
+
return useDefaultProps$1(params);
|
|
1173
|
+
}
|
|
1079
1174
|
function murmur2(str) {
|
|
1080
1175
|
var h = 0;
|
|
1081
1176
|
var k, i = 0, len = str.length;
|
|
@@ -4133,8 +4228,10 @@ exports.lighten_1 = lighten_1;
|
|
|
4133
4228
|
exports.mergeBreakpointsInOrder = mergeBreakpointsInOrder;
|
|
4134
4229
|
exports.requireObjectAssign = requireObjectAssign;
|
|
4135
4230
|
exports.resolveBreakpointValues = resolveBreakpointValues;
|
|
4231
|
+
exports.resolveProps = resolveProps;
|
|
4136
4232
|
exports.styleFunctionSx = styleFunctionSx;
|
|
4137
4233
|
exports.styled = styled;
|
|
4138
4234
|
exports.styledEngine = styledEngine;
|
|
4139
4235
|
exports.unstable_createStyleFunctionSx = unstable_createStyleFunctionSx;
|
|
4140
|
-
|
|
4236
|
+
exports.useDefaultProps = useDefaultProps;
|
|
4237
|
+
//# sourceMappingURL=identifier-BTBl-PeG.js.map
|