@hybridcore/ui 1.6.0 → 1.6.2
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/CATALOG.md +179 -0
- package/README.md +1 -2
- package/dist/AccordionSummary-CJppWeqF.js +781 -0
- package/dist/Add-CqcD1PWb.js +403 -0
- package/dist/Box-DqUMmZjL.js +31 -0
- package/dist/{Button-CvE2gnly.js → Button-C5yquWAB.js} +120 -133
- package/dist/ButtonBase-BEF7oTOe.js +887 -0
- package/dist/{Delete-CW0UZv1m.js → Delete-BdyYpINH.js} +9 -8
- package/dist/{DialogContent-B3nbEbuv.js → DialogContent-BvVjD9z3.js} +127 -124
- package/dist/FormGroup-CpBsIyYR.js +89 -0
- package/dist/{IconButton-CHwRQF-g.js → IconButton-BoGwbvrP.js} +41 -43
- package/dist/InputLabel-Dd8RrneV.js +341 -0
- package/dist/{MenuItem-xZx_w7zA.js → MenuItem-DwqJqzuM.js} +51 -53
- package/dist/Modal-MUZygjmQ.js +1158 -0
- package/dist/Paper-BkQLdsCI.js +582 -0
- package/dist/Select-DHUl_uG3.js +3916 -0
- package/dist/SwitchBase-DTndTqI8.js +235 -0
- package/dist/TextField-e2oKaUN1.js +669 -0
- package/dist/TransitionGroupContext-BDAp2T0O.js +96 -0
- package/dist/{Typography-CxbneZy_.js → Typography-DgsSLCFC.js} +53 -53
- package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
- package/dist/assets/index4.css +1 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/access/helpers.js +1 -1
- package/dist/components/access/index.js +8 -15
- package/dist/components/access/logic.js +25 -0
- package/dist/components/button/index.js +10 -0
- package/dist/components/button/logic.js +26 -0
- package/dist/components/button/styled.js +9 -0
- package/dist/components/card/index.js +158 -498
- package/dist/components/card/logic.js +24 -0
- package/dist/components/card/styled.js +226 -51
- package/dist/components/card-alternate/index.js +111 -139
- package/dist/components/card-alternate/logic.js +17 -0
- package/dist/components/card-alternate/styled.js +113 -19
- package/dist/components/charts/_common/chart-error.js +19 -0
- package/dist/components/charts/candlestick/index.js +3 -3
- package/dist/components/charts/candlestick/logic.js +123 -113
- package/dist/components/charts/chart-wrapper/index.js +5 -5
- package/dist/components/charts/column-line-mix/index.js +9 -8
- package/dist/components/charts/column-line-mix/logic.js +68 -71
- package/dist/components/charts/drill-down-treemap/index.js +8 -7
- package/dist/components/charts/drill-down-treemap/logic.js +138 -144
- package/dist/components/charts/drill-down-voronoi-treemap/index.js +9 -8
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +222 -228
- package/dist/components/charts/heatmap/index.js +9 -8
- package/dist/components/charts/heatmap/logic.js +167 -173
- package/dist/components/charts/highlighting-line-data/index.js +3 -3
- package/dist/components/charts/line/index.js +9 -8
- package/dist/components/charts/line/logic.js +74 -79
- package/dist/components/charts/logaritmic-scale/index.js +9 -8
- package/dist/components/charts/logaritmic-scale/logic.js +63 -69
- package/dist/components/charts/multiple-value-axes/index.js +9 -8
- package/dist/components/charts/multiple-value-axes/logic.js +101 -107
- package/dist/components/charts/nested-pie/index.js +9 -8
- package/dist/components/charts/nested-pie/logic.js +62 -68
- package/dist/components/charts/packed-circles/index.js +7 -6
- package/dist/components/charts/packed-circles/logic.js +50 -56
- package/dist/components/charts/pie-chart/index.js +9 -8
- package/dist/components/charts/pie-chart/logic.js +49 -54
- package/dist/components/charts/stacked-area-radar/index.js +8 -7
- package/dist/components/charts/stacked-area-radar/logic.js +113 -118
- package/dist/components/charts/stacked-column-chart/index.js +9 -8
- package/dist/components/charts/stacked-column-chart/logic.js +78 -84
- package/dist/components/charts/xy-chart/index.js +9 -8
- package/dist/components/charts/xy-chart/logic.js +56 -60
- package/dist/components/collapsible-card/index.js +11 -10
- package/dist/components/collapsible-card/styled.js +1 -1
- package/dist/components/color-picker/index.js +7120 -0
- package/dist/components/color-picker/logic.js +18 -0
- package/dist/components/color-picker/styled.js +7 -0
- package/dist/components/confirm/dialog.js +3 -3
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/container/index.js +28 -269
- package/dist/components/container/logic.js +12 -0
- package/dist/components/container/styled.js +29 -0
- package/dist/components/context-menu/index.js +25 -457
- package/dist/components/context-menu/logic.js +14 -0
- package/dist/components/context-menu/styled.js +40 -0
- package/dist/components/data-grid/index.js +22 -0
- package/dist/components/data-grid/logic.js +15 -0
- package/dist/components/data-grid/styled.js +20 -0
- package/dist/components/data-map/components/controls/index.js +4 -6
- package/dist/components/data-map/index.js +11 -11
- package/dist/components/data-security-selectors/dissemination-list/index.js +192 -191
- package/dist/components/data-security-selectors/dissemination-list/styled.js +12 -12
- package/dist/components/data-security-selectors/security-level/index.js +39 -91
- package/dist/components/data-security-selectors/security-level/logic.js +28 -0
- package/dist/components/data-security-selectors/security-level/styled.js +53 -0
- package/dist/components/date-picker-with-custom-range/index.js +1 -1
- package/dist/components/date-range-picker/index.js +2748 -0
- package/dist/components/date-range-picker/styled.js +14 -0
- package/dist/components/date-time-picker/index.js +45 -46
- package/dist/components/divider/index.js +11 -11
- package/dist/components/document-viewer/components/action-buttons/index.js +15 -15
- package/dist/components/document-viewer/components/navigation/index.js +9 -9
- package/dist/components/document-viewer/components/viewer/index.js +31 -35
- package/dist/components/document-viewer/index.js +31 -39
- package/dist/components/document-viewer/logic.js +41 -34
- package/dist/components/document-viewer/styled.js +115 -27
- package/dist/components/duration-select/index.js +27 -0
- package/dist/components/duration-select/logic.js +21 -0
- package/dist/components/duration-select/styled.js +26 -0
- package/dist/components/editable-text/index.js +20 -0
- package/dist/components/editable-text/logic.js +18 -0
- package/dist/components/editable-text/styled.js +22 -0
- package/dist/components/geometry-picker/coordinate/index.js +29 -29
- package/dist/components/geometry-picker/edit/index.js +18 -18
- package/dist/components/geometry-picker/geometry/index.js +67 -67
- package/dist/components/geometry-picker/geometry/map-overlay.js +6 -6
- package/dist/components/geometry-picker/index.js +69 -85
- package/dist/components/geometry-picker/kml/index.js +16 -16
- package/dist/components/geometry-picker/logic.js +50 -57
- package/dist/components/geometry-picker/map/index.js +8 -8
- package/dist/components/geometry-picker/parser/coordinate-input/index.js +4 -4
- package/dist/components/geometry-picker/parser/index.js +46 -50
- package/dist/components/geometry-picker/parser/styled.js +22 -4
- package/dist/components/geometry-picker/styled.js +97 -37
- package/dist/components/geometry-picker/wkt/index.js +13 -13
- package/dist/components/heat-map/components/controls/index.js +4 -6
- package/dist/components/heat-map/components/legend/index.js +15 -17
- package/dist/components/heat-map/index.js +7 -7
- package/dist/components/instance-form/components/TopLabelWrapper.js +8 -48
- package/dist/components/instance-form/components/composite-list/index.js +5 -3
- package/dist/components/instance-form/components/composite-matrix/components/editable-table/index.js +83 -74
- package/dist/components/instance-form/components/composite-matrix/components/editor/index.js +45 -66
- package/dist/components/instance-form/components/composite-matrix/components/form/index.js +60 -75
- package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2425 -2422
- package/dist/components/instance-form/components/composite-matrix/components/table/index.js +33 -52
- package/dist/components/instance-form/components/composite-matrix/index.js +30 -36
- package/dist/components/instance-form/components/policy-list/index.js +47 -81
- package/dist/components/instance-form/components/variable/index.js +6 -11
- package/dist/components/instance-form/components/variables/index.js +48 -55
- package/dist/components/instance-form/helpers.js +9 -0
- package/dist/components/instance-form/index.js +402 -518
- package/dist/components/instance-form/logic.js +115 -0
- package/dist/components/instance-form/styled.js +487 -0
- package/dist/components/instance-hierarchy-table/index.js +32 -37
- package/dist/components/instance-hierarchy-table/logic.js +16 -0
- package/dist/components/instance-hierarchy-table/styled.js +53 -12
- package/dist/components/instance-table/index.js +30 -135
- package/dist/components/instance-table/logic.js +122 -0
- package/dist/components/instance-table/styled.js +53 -11
- package/dist/components/instance-variable-list/index.js +11 -11
- package/dist/components/loading/index.js +15 -9
- package/dist/components/loading/logic.js +15 -0
- package/dist/components/loading/styled.js +26 -19
- package/dist/components/map/index.js +28 -6
- package/dist/components/map/styled.js +1 -1
- package/dist/components/notification/index.js +67 -0
- package/dist/components/notification/logic.js +30 -0
- package/dist/components/notification/store.js +23 -0
- package/dist/components/notification/styled.js +52 -0
- package/dist/components/object-profile-card/components/avatar/index.js +9 -10
- package/dist/components/object-profile-card/index.js +19 -20
- package/dist/components/paginated-list/index.js +2 -3
- package/dist/components/phone-input/index.js +18 -22
- package/dist/components/phone-input/logic.js +14 -0
- package/dist/components/phone-input/styled.js +12 -4
- package/dist/components/placeholder/index.js +10 -0
- package/dist/components/placeholder/logic.js +12 -0
- package/dist/components/placeholder/styled.js +32 -0
- package/dist/components/positional-tooltip/index.js +24 -0
- package/dist/components/positional-tooltip/styled.js +17 -0
- package/dist/components/property-mapping/index.js +204 -423
- package/dist/components/property-mapping/logic.js +156 -0
- package/dist/components/property-mapping/styled.js +199 -0
- package/dist/components/prr-map/components/controls/index.js +4 -6
- package/dist/components/prr-map/components/legend/index.js +26 -28
- package/dist/components/prr-map/index.js +5 -5
- package/dist/components/range-selector/components/composite-list-range/index.js +42 -50
- package/dist/components/range-selector/components/date-range/index.js +87 -4221
- package/dist/components/range-selector/components/geometry-range/index.js +11 -17
- package/dist/components/range-selector/components/number-range/index.js +48 -53
- package/dist/components/range-selector/components/string-range/index.js +15 -17
- package/dist/components/range-selector/index.js +63 -57
- package/dist/components/range-selector/logic.js +12 -0
- package/dist/components/range-selector/styled.js +4294 -0
- package/dist/components/raster-grid-map/components/controls/index.js +4 -6
- package/dist/components/raster-grid-map/components/legend/index.js +4 -6
- package/dist/components/raster-grid-map/index.js +5 -5
- package/dist/components/scroll-drag/index.js +22 -0
- package/dist/components/scroll-drag/logic.js +39 -0
- package/dist/components/scroll-drag/styled.js +17 -0
- package/dist/components/search-input/logic.js +35 -33
- package/dist/components/simple-pivot-table/index.js +12 -12
- package/dist/components/sortable-list/index.js +599 -0
- package/dist/components/sortable-list/logic.js +18 -0
- package/dist/components/sortable-list/styled.js +38 -0
- package/dist/components/static-text/index.js +6 -6
- package/dist/components/stats-box/index.js +12 -0
- package/dist/components/stats-box/styled.js +36 -0
- package/dist/components/template-filters/components/filter/index.js +13 -18
- package/dist/components/template-filters/components/tab-panel/index.js +8 -16
- package/dist/components/template-filters/index.js +21 -29
- package/dist/components/template-filters/logic.js +18 -0
- package/dist/components/template-filters/styled.js +44 -1
- package/dist/components/template-form/components/property-list/index.js +27 -26
- package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
- package/dist/components/template-form/components/property-list/property-list-form.js +758 -14
- package/dist/components/template-form/components/recognition-property-list/index.js +11 -11
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +24 -23
- package/dist/components/template-form/components/select-icon/index.js +24 -24
- package/dist/components/template-form/helpers.js +17 -0
- package/dist/components/template-form/index.js +270 -309
- package/dist/components/template-form/logic.js +69 -0
- package/dist/components/template-form/styled.js +84 -0
- package/dist/components/template-property-filters/index.js +45 -95
- package/dist/components/template-property-filters/logic.js +27 -0
- package/dist/components/template-property-filters/property.js +105 -165
- package/dist/components/template-property-filters/styled.js +121 -20
- package/dist/components/text-overflow/index.js +6 -0
- package/dist/components/text-overflow/styled.js +13 -0
- package/dist/components/timeline/index.js +12 -12
- package/dist/components/toggle-view-button/index.js +35 -0
- package/dist/components/toggle-view-button/logic.js +22 -0
- package/dist/components/toggle-view-button/styled.js +11 -0
- package/dist/components/tree-select/index.js +52 -67
- package/dist/components/tree-select/logic.js +59 -0
- package/dist/components/tree-select/styled.js +45 -62
- package/dist/components/treeview-filter/index.js +43 -65
- package/dist/components/treeview-filter/item/index.js +43 -42
- package/dist/components/treeview-filter/item-label/index.js +17 -37
- package/dist/components/treeview-filter/logic.js +28 -0
- package/dist/components/treeview-filter/styled.js +86 -0
- package/dist/components/uploader/index.js +532 -567
- package/dist/components/uploader/logic.js +74 -0
- package/dist/components/uploader/styled.js +93 -46
- package/dist/components/visually-hidden-input/index.js +4 -0
- package/dist/components/visually-hidden-input/styled.js +18 -0
- package/dist/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/{createSvgIcon-DrtgaibK.js → createSvgIcon-Ch_cT8az.js} +69 -68
- package/dist/createSvgIcon-DuDuASu1.js +62 -0
- package/dist/{dialog-DcwXug9J.js → dialog-BYRnCztH.js} +18 -18
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/generateUtilityClasses-C3ivN9Ie.js +2973 -0
- package/dist/{helpers-B4UL9NMD.js → helpers-D4uXfBfO.js} +2 -2
- package/dist/index-BtlzPygz.js +470 -0
- package/dist/index-DH6qsPBn.js +153 -0
- package/dist/{index-syTc6m_V.js → index-e9xTIYWt.js} +87 -87
- package/dist/main.d.ts +1722 -562
- package/dist/main.js +161 -128
- package/dist/ownerWindow-wg6foiOE.js +10 -0
- package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
- package/dist/styled-Db1RdcPA.js +323 -0
- package/dist/unsupportedProp-DuqR2hj9.js +36 -0
- package/dist/useId-BW-oWmul.js +19 -0
- package/dist/useMobilePicker-CY8ndYRL.js +8279 -0
- package/dist/useSlot-B_Q4vnX5.js +42 -0
- package/package.json +15 -7
- package/dist/AccordionSummary-DgAwVTk8.js +0 -742
- package/dist/Add-DJLrrVHm.js +0 -382
- package/dist/Box-p6OtTUEo.js +0 -30
- package/dist/ButtonBase-2bPw77UP.js +0 -961
- package/dist/CardContent-CSHh-ZlM.js +0 -74
- package/dist/Checkbox-CWRMFTBp.js +0 -421
- package/dist/FormControl-BLbrq4C7.js +0 -1636
- package/dist/FormControlLabel-C8SPv14J.js +0 -195
- package/dist/InputAdornment-DLxWUE6H.js +0 -157
- package/dist/List-tqElle9C.js +0 -121
- package/dist/ListItem-CfjsIg4B.js +0 -430
- package/dist/Modal-DhPpOoGB.js +0 -1299
- package/dist/Paper-2B03OBmZ.js +0 -169
- package/dist/Select-BgYwkZgI.js +0 -2613
- package/dist/TextField-1yCesIbH.js +0 -457
- package/dist/assertThisInitialized-BUtkG-md.js +0 -13
- package/dist/capitalize-ciszXJ7R.js +0 -9
- package/dist/components/instance-form/components/composite-list/styled.js +0 -73
- package/dist/components/instance-form/components/composite-matrix/components/editor/styled.js +0 -1
- package/dist/components/instance-form/components/composite-matrix/styled.js +0 -69
- package/dist/components/key-protection/index.js +0 -4
- package/dist/components/key-protection/menu.js +0 -85
- package/dist/components/key-protection/utils.js +0 -10
- package/dist/components/treeview-filter/item/styled.js +0 -39
- package/dist/createSvgIcon-BjpIhJ30.js +0 -71
- package/dist/createTheme-DYxDnE9u.js +0 -612
- package/dist/index-BMS1Otro.js +0 -183
- package/dist/index-CcdvNlgr.js +0 -503
- package/dist/index-kCJ_Zvl8.js +0 -34
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/isMuiElement-CxT3_ACP.js +0 -13
- package/dist/listItemTextClasses-C3lndiXO.js +0 -16
- package/dist/property-list-form-zZQfpR0X.js +0 -386
- package/dist/styled-eZwjUruw.js +0 -12
- package/dist/unsupportedProp-BND8AB6O.js +0 -25
- package/dist/useId-B4-oF9Mq.js +0 -34
- package/dist/useMobilePicker-BLg3Blg8.js +0 -7589
- package/dist/useThemeProps-BzzHcQyd.js +0 -58
- package/dist/utils-BDNynJcd.js +0 -365
- package/dist/utils-Bq0ye5vf.js +0 -115
|
@@ -1,612 +0,0 @@
|
|
|
1
|
-
import { a as m, _ as M } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
2
|
-
import { getContrastRatio as D, lighten as H, darken as q, createTheme as G, unstable_defaultSxConfig as L, unstable_styleFunctionSx as J } from "@mui/system";
|
|
3
|
-
function S(e) {
|
|
4
|
-
if (typeof e != "object" || e === null)
|
|
5
|
-
return !1;
|
|
6
|
-
const t = Object.getPrototypeOf(e);
|
|
7
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
8
|
-
}
|
|
9
|
-
function R(e) {
|
|
10
|
-
if (!S(e))
|
|
11
|
-
return e;
|
|
12
|
-
const t = {};
|
|
13
|
-
return Object.keys(e).forEach((a) => {
|
|
14
|
-
t[a] = R(e[a]);
|
|
15
|
-
}), t;
|
|
16
|
-
}
|
|
17
|
-
function k(e, t, a = {
|
|
18
|
-
clone: !0
|
|
19
|
-
}) {
|
|
20
|
-
const i = a.clone ? m({}, e) : e;
|
|
21
|
-
return S(e) && S(t) && Object.keys(t).forEach((n) => {
|
|
22
|
-
S(t[n]) && // Avoid prototype pollution
|
|
23
|
-
Object.prototype.hasOwnProperty.call(e, n) && S(e[n]) ? i[n] = k(e[n], t[n], a) : a.clone ? i[n] = S(t[n]) ? R(t[n]) : t[n] : i[n] = t[n];
|
|
24
|
-
}), i;
|
|
25
|
-
}
|
|
26
|
-
function _(e) {
|
|
27
|
-
let t = "https://mui.com/production-error/?code=" + e;
|
|
28
|
-
for (let a = 1; a < arguments.length; a += 1)
|
|
29
|
-
t += "&args[]=" + encodeURIComponent(arguments[a]);
|
|
30
|
-
return "Minified MUI error #" + e + "; visit " + t + " for the full message.";
|
|
31
|
-
}
|
|
32
|
-
const j = (e) => e, K = () => {
|
|
33
|
-
let e = j;
|
|
34
|
-
return {
|
|
35
|
-
configure(t) {
|
|
36
|
-
e = t;
|
|
37
|
-
},
|
|
38
|
-
generate(t) {
|
|
39
|
-
return e(t);
|
|
40
|
-
},
|
|
41
|
-
reset() {
|
|
42
|
-
e = j;
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
}, Y = K(), Q = {
|
|
46
|
-
active: "active",
|
|
47
|
-
checked: "checked",
|
|
48
|
-
completed: "completed",
|
|
49
|
-
disabled: "disabled",
|
|
50
|
-
error: "error",
|
|
51
|
-
expanded: "expanded",
|
|
52
|
-
focused: "focused",
|
|
53
|
-
focusVisible: "focusVisible",
|
|
54
|
-
open: "open",
|
|
55
|
-
readOnly: "readOnly",
|
|
56
|
-
required: "required",
|
|
57
|
-
selected: "selected"
|
|
58
|
-
};
|
|
59
|
-
function X(e, t, a = "Mui") {
|
|
60
|
-
const i = Q[t];
|
|
61
|
-
return i ? `${a}-${i}` : `${Y.generate(e)}-${t}`;
|
|
62
|
-
}
|
|
63
|
-
function Z(e, t) {
|
|
64
|
-
return m({
|
|
65
|
-
toolbar: {
|
|
66
|
-
minHeight: 56,
|
|
67
|
-
[e.up("xs")]: {
|
|
68
|
-
"@media (orientation: landscape)": {
|
|
69
|
-
minHeight: 48
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
[e.up("sm")]: {
|
|
73
|
-
minHeight: 64
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}, t);
|
|
77
|
-
}
|
|
78
|
-
const N = {
|
|
79
|
-
black: "#000",
|
|
80
|
-
white: "#fff"
|
|
81
|
-
}, ee = {
|
|
82
|
-
50: "#fafafa",
|
|
83
|
-
100: "#f5f5f5",
|
|
84
|
-
200: "#eeeeee",
|
|
85
|
-
300: "#e0e0e0",
|
|
86
|
-
400: "#bdbdbd",
|
|
87
|
-
500: "#9e9e9e",
|
|
88
|
-
600: "#757575",
|
|
89
|
-
700: "#616161",
|
|
90
|
-
800: "#424242",
|
|
91
|
-
900: "#212121",
|
|
92
|
-
A100: "#f5f5f5",
|
|
93
|
-
A200: "#eeeeee",
|
|
94
|
-
A400: "#bdbdbd",
|
|
95
|
-
A700: "#616161"
|
|
96
|
-
}, $ = {
|
|
97
|
-
50: "#f3e5f5",
|
|
98
|
-
100: "#e1bee7",
|
|
99
|
-
200: "#ce93d8",
|
|
100
|
-
300: "#ba68c8",
|
|
101
|
-
400: "#ab47bc",
|
|
102
|
-
500: "#9c27b0",
|
|
103
|
-
600: "#8e24aa",
|
|
104
|
-
700: "#7b1fa2",
|
|
105
|
-
800: "#6a1b9a",
|
|
106
|
-
900: "#4a148c",
|
|
107
|
-
A100: "#ea80fc",
|
|
108
|
-
A200: "#e040fb",
|
|
109
|
-
A400: "#d500f9",
|
|
110
|
-
A700: "#aa00ff"
|
|
111
|
-
}, A = {
|
|
112
|
-
50: "#ffebee",
|
|
113
|
-
100: "#ffcdd2",
|
|
114
|
-
200: "#ef9a9a",
|
|
115
|
-
300: "#e57373",
|
|
116
|
-
400: "#ef5350",
|
|
117
|
-
500: "#f44336",
|
|
118
|
-
600: "#e53935",
|
|
119
|
-
700: "#d32f2f",
|
|
120
|
-
800: "#c62828",
|
|
121
|
-
900: "#b71c1c",
|
|
122
|
-
A100: "#ff8a80",
|
|
123
|
-
A200: "#ff5252",
|
|
124
|
-
A400: "#ff1744",
|
|
125
|
-
A700: "#d50000"
|
|
126
|
-
}, E = {
|
|
127
|
-
50: "#fff3e0",
|
|
128
|
-
100: "#ffe0b2",
|
|
129
|
-
200: "#ffcc80",
|
|
130
|
-
300: "#ffb74d",
|
|
131
|
-
400: "#ffa726",
|
|
132
|
-
500: "#ff9800",
|
|
133
|
-
600: "#fb8c00",
|
|
134
|
-
700: "#f57c00",
|
|
135
|
-
800: "#ef6c00",
|
|
136
|
-
900: "#e65100",
|
|
137
|
-
A100: "#ffd180",
|
|
138
|
-
A200: "#ffab40",
|
|
139
|
-
A400: "#ff9100",
|
|
140
|
-
A700: "#ff6d00"
|
|
141
|
-
}, v = {
|
|
142
|
-
50: "#e3f2fd",
|
|
143
|
-
100: "#bbdefb",
|
|
144
|
-
200: "#90caf9",
|
|
145
|
-
300: "#64b5f6",
|
|
146
|
-
400: "#42a5f5",
|
|
147
|
-
500: "#2196f3",
|
|
148
|
-
600: "#1e88e5",
|
|
149
|
-
700: "#1976d2",
|
|
150
|
-
800: "#1565c0",
|
|
151
|
-
900: "#0d47a1",
|
|
152
|
-
A100: "#82b1ff",
|
|
153
|
-
A200: "#448aff",
|
|
154
|
-
A400: "#2979ff",
|
|
155
|
-
A700: "#2962ff"
|
|
156
|
-
}, x = {
|
|
157
|
-
50: "#e1f5fe",
|
|
158
|
-
100: "#b3e5fc",
|
|
159
|
-
200: "#81d4fa",
|
|
160
|
-
300: "#4fc3f7",
|
|
161
|
-
400: "#29b6f6",
|
|
162
|
-
500: "#03a9f4",
|
|
163
|
-
600: "#039be5",
|
|
164
|
-
700: "#0288d1",
|
|
165
|
-
800: "#0277bd",
|
|
166
|
-
900: "#01579b",
|
|
167
|
-
A100: "#80d8ff",
|
|
168
|
-
A200: "#40c4ff",
|
|
169
|
-
A400: "#00b0ff",
|
|
170
|
-
A700: "#0091ea"
|
|
171
|
-
}, w = {
|
|
172
|
-
50: "#e8f5e9",
|
|
173
|
-
100: "#c8e6c9",
|
|
174
|
-
200: "#a5d6a7",
|
|
175
|
-
300: "#81c784",
|
|
176
|
-
400: "#66bb6a",
|
|
177
|
-
500: "#4caf50",
|
|
178
|
-
600: "#43a047",
|
|
179
|
-
700: "#388e3c",
|
|
180
|
-
800: "#2e7d32",
|
|
181
|
-
900: "#1b5e20",
|
|
182
|
-
A100: "#b9f6ca",
|
|
183
|
-
A200: "#69f0ae",
|
|
184
|
-
A400: "#00e676",
|
|
185
|
-
A700: "#00c853"
|
|
186
|
-
}, te = ["mode", "contrastThreshold", "tonalOffset"], U = {
|
|
187
|
-
// The colors used to style the text.
|
|
188
|
-
text: {
|
|
189
|
-
// The most important text.
|
|
190
|
-
primary: "rgba(0, 0, 0, 0.87)",
|
|
191
|
-
// Secondary text.
|
|
192
|
-
secondary: "rgba(0, 0, 0, 0.6)",
|
|
193
|
-
// Disabled text have even lower visual prominence.
|
|
194
|
-
disabled: "rgba(0, 0, 0, 0.38)"
|
|
195
|
-
},
|
|
196
|
-
// The color used to divide different elements.
|
|
197
|
-
divider: "rgba(0, 0, 0, 0.12)",
|
|
198
|
-
// The background colors used to style the surfaces.
|
|
199
|
-
// Consistency between these values is important.
|
|
200
|
-
background: {
|
|
201
|
-
paper: N.white,
|
|
202
|
-
default: N.white
|
|
203
|
-
},
|
|
204
|
-
// The colors used to style the action elements.
|
|
205
|
-
action: {
|
|
206
|
-
// The color of an active action like an icon button.
|
|
207
|
-
active: "rgba(0, 0, 0, 0.54)",
|
|
208
|
-
// The color of an hovered action.
|
|
209
|
-
hover: "rgba(0, 0, 0, 0.04)",
|
|
210
|
-
hoverOpacity: 0.04,
|
|
211
|
-
// The color of a selected action.
|
|
212
|
-
selected: "rgba(0, 0, 0, 0.08)",
|
|
213
|
-
selectedOpacity: 0.08,
|
|
214
|
-
// The color of a disabled action.
|
|
215
|
-
disabled: "rgba(0, 0, 0, 0.26)",
|
|
216
|
-
// The background color of a disabled action.
|
|
217
|
-
disabledBackground: "rgba(0, 0, 0, 0.12)",
|
|
218
|
-
disabledOpacity: 0.38,
|
|
219
|
-
focus: "rgba(0, 0, 0, 0.12)",
|
|
220
|
-
focusOpacity: 0.12,
|
|
221
|
-
activatedOpacity: 0.12
|
|
222
|
-
}
|
|
223
|
-
}, C = {
|
|
224
|
-
text: {
|
|
225
|
-
primary: N.white,
|
|
226
|
-
secondary: "rgba(255, 255, 255, 0.7)",
|
|
227
|
-
disabled: "rgba(255, 255, 255, 0.5)",
|
|
228
|
-
icon: "rgba(255, 255, 255, 0.5)"
|
|
229
|
-
},
|
|
230
|
-
divider: "rgba(255, 255, 255, 0.12)",
|
|
231
|
-
background: {
|
|
232
|
-
paper: "#121212",
|
|
233
|
-
default: "#121212"
|
|
234
|
-
},
|
|
235
|
-
action: {
|
|
236
|
-
active: N.white,
|
|
237
|
-
hover: "rgba(255, 255, 255, 0.08)",
|
|
238
|
-
hoverOpacity: 0.08,
|
|
239
|
-
selected: "rgba(255, 255, 255, 0.16)",
|
|
240
|
-
selectedOpacity: 0.16,
|
|
241
|
-
disabled: "rgba(255, 255, 255, 0.3)",
|
|
242
|
-
disabledBackground: "rgba(255, 255, 255, 0.12)",
|
|
243
|
-
disabledOpacity: 0.38,
|
|
244
|
-
focus: "rgba(255, 255, 255, 0.12)",
|
|
245
|
-
focusOpacity: 0.12,
|
|
246
|
-
activatedOpacity: 0.24
|
|
247
|
-
}
|
|
248
|
-
};
|
|
249
|
-
function V(e, t, a, i) {
|
|
250
|
-
const n = i.light || i, g = i.dark || i * 1.5;
|
|
251
|
-
e[t] || (e.hasOwnProperty(a) ? e[t] = e[a] : t === "light" ? e.light = H(e.main, n) : t === "dark" && (e.dark = q(e.main, g)));
|
|
252
|
-
}
|
|
253
|
-
function re(e = "light") {
|
|
254
|
-
return e === "dark" ? {
|
|
255
|
-
main: v[200],
|
|
256
|
-
light: v[50],
|
|
257
|
-
dark: v[400]
|
|
258
|
-
} : {
|
|
259
|
-
main: v[700],
|
|
260
|
-
light: v[400],
|
|
261
|
-
dark: v[800]
|
|
262
|
-
};
|
|
263
|
-
}
|
|
264
|
-
function ne(e = "light") {
|
|
265
|
-
return e === "dark" ? {
|
|
266
|
-
main: $[200],
|
|
267
|
-
light: $[50],
|
|
268
|
-
dark: $[400]
|
|
269
|
-
} : {
|
|
270
|
-
main: $[500],
|
|
271
|
-
light: $[300],
|
|
272
|
-
dark: $[700]
|
|
273
|
-
};
|
|
274
|
-
}
|
|
275
|
-
function ae(e = "light") {
|
|
276
|
-
return e === "dark" ? {
|
|
277
|
-
main: A[500],
|
|
278
|
-
light: A[300],
|
|
279
|
-
dark: A[700]
|
|
280
|
-
} : {
|
|
281
|
-
main: A[700],
|
|
282
|
-
light: A[400],
|
|
283
|
-
dark: A[800]
|
|
284
|
-
};
|
|
285
|
-
}
|
|
286
|
-
function oe(e = "light") {
|
|
287
|
-
return e === "dark" ? {
|
|
288
|
-
main: x[400],
|
|
289
|
-
light: x[300],
|
|
290
|
-
dark: x[700]
|
|
291
|
-
} : {
|
|
292
|
-
main: x[700],
|
|
293
|
-
light: x[500],
|
|
294
|
-
dark: x[900]
|
|
295
|
-
};
|
|
296
|
-
}
|
|
297
|
-
function ie(e = "light") {
|
|
298
|
-
return e === "dark" ? {
|
|
299
|
-
main: w[400],
|
|
300
|
-
light: w[300],
|
|
301
|
-
dark: w[700]
|
|
302
|
-
} : {
|
|
303
|
-
main: w[800],
|
|
304
|
-
light: w[500],
|
|
305
|
-
dark: w[900]
|
|
306
|
-
};
|
|
307
|
-
}
|
|
308
|
-
function se(e = "light") {
|
|
309
|
-
return e === "dark" ? {
|
|
310
|
-
main: E[400],
|
|
311
|
-
light: E[300],
|
|
312
|
-
dark: E[700]
|
|
313
|
-
} : {
|
|
314
|
-
main: "#ed6c02",
|
|
315
|
-
// closest to orange[800] that pass 3:1.
|
|
316
|
-
light: E[500],
|
|
317
|
-
dark: E[900]
|
|
318
|
-
};
|
|
319
|
-
}
|
|
320
|
-
function ce(e) {
|
|
321
|
-
const {
|
|
322
|
-
mode: t = "light",
|
|
323
|
-
contrastThreshold: a = 3,
|
|
324
|
-
tonalOffset: i = 0.2
|
|
325
|
-
} = e, n = M(e, te), g = e.primary || re(t), s = e.secondary || ne(t), h = e.error || ae(t), b = e.info || oe(t), f = e.success || ie(t), l = e.warning || se(t);
|
|
326
|
-
function u(r) {
|
|
327
|
-
const d = D(r, C.text.primary) >= a ? C.text.primary : U.text.primary;
|
|
328
|
-
if (process.env.NODE_ENV !== "production") {
|
|
329
|
-
const p = D(r, d);
|
|
330
|
-
p < 3 && console.error([`MUI: The contrast ratio of ${p}:1 for ${d} on ${r}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
331
|
-
`));
|
|
332
|
-
}
|
|
333
|
-
return d;
|
|
334
|
-
}
|
|
335
|
-
const c = ({
|
|
336
|
-
color: r,
|
|
337
|
-
name: d,
|
|
338
|
-
mainShade: p = 500,
|
|
339
|
-
lightShade: I = 300,
|
|
340
|
-
darkShade: T = 700
|
|
341
|
-
}) => {
|
|
342
|
-
if (r = m({}, r), !r.main && r[p] && (r.main = r[p]), !r.hasOwnProperty("main"))
|
|
343
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${d ? ` (${d})` : ""} provided to augmentColor(color) is invalid.
|
|
344
|
-
The color object needs to have a \`main\` property or a \`${p}\` property.` : _(11, d ? ` (${d})` : "", p));
|
|
345
|
-
if (typeof r.main != "string")
|
|
346
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${d ? ` (${d})` : ""} provided to augmentColor(color) is invalid.
|
|
347
|
-
\`color.main\` should be a string, but \`${JSON.stringify(r.main)}\` was provided instead.
|
|
348
|
-
|
|
349
|
-
Did you intend to use one of the following approaches?
|
|
350
|
-
|
|
351
|
-
import { green } from "@mui/material/colors";
|
|
352
|
-
|
|
353
|
-
const theme1 = createTheme({ palette: {
|
|
354
|
-
primary: green,
|
|
355
|
-
} });
|
|
356
|
-
|
|
357
|
-
const theme2 = createTheme({ palette: {
|
|
358
|
-
primary: { main: green[500] },
|
|
359
|
-
} });` : _(12, d ? ` (${d})` : "", JSON.stringify(r.main)));
|
|
360
|
-
return V(r, "light", I, i), V(r, "dark", T, i), r.contrastText || (r.contrastText = u(r.main)), r;
|
|
361
|
-
}, O = {
|
|
362
|
-
dark: C,
|
|
363
|
-
light: U
|
|
364
|
-
};
|
|
365
|
-
return process.env.NODE_ENV !== "production" && (O[t] || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), k(m({
|
|
366
|
-
// A collection of common colors.
|
|
367
|
-
common: m({}, N),
|
|
368
|
-
// prevent mutable object.
|
|
369
|
-
// The palette mode, can be light or dark.
|
|
370
|
-
mode: t,
|
|
371
|
-
// The colors used to represent primary interface elements for a user.
|
|
372
|
-
primary: c({
|
|
373
|
-
color: g,
|
|
374
|
-
name: "primary"
|
|
375
|
-
}),
|
|
376
|
-
// The colors used to represent secondary interface elements for a user.
|
|
377
|
-
secondary: c({
|
|
378
|
-
color: s,
|
|
379
|
-
name: "secondary",
|
|
380
|
-
mainShade: "A400",
|
|
381
|
-
lightShade: "A200",
|
|
382
|
-
darkShade: "A700"
|
|
383
|
-
}),
|
|
384
|
-
// The colors used to represent interface elements that the user should be made aware of.
|
|
385
|
-
error: c({
|
|
386
|
-
color: h,
|
|
387
|
-
name: "error"
|
|
388
|
-
}),
|
|
389
|
-
// The colors used to represent potentially dangerous actions or important messages.
|
|
390
|
-
warning: c({
|
|
391
|
-
color: l,
|
|
392
|
-
name: "warning"
|
|
393
|
-
}),
|
|
394
|
-
// The colors used to present information to the user that is neutral and not necessarily important.
|
|
395
|
-
info: c({
|
|
396
|
-
color: b,
|
|
397
|
-
name: "info"
|
|
398
|
-
}),
|
|
399
|
-
// The colors used to indicate the successful completion of an action that user triggered.
|
|
400
|
-
success: c({
|
|
401
|
-
color: f,
|
|
402
|
-
name: "success"
|
|
403
|
-
}),
|
|
404
|
-
// The grey colors.
|
|
405
|
-
grey: ee,
|
|
406
|
-
// Used by `getContrastText()` to maximize the contrast between
|
|
407
|
-
// the background and the text.
|
|
408
|
-
contrastThreshold: a,
|
|
409
|
-
// Takes a background color and returns the text color that maximizes the contrast.
|
|
410
|
-
getContrastText: u,
|
|
411
|
-
// Generate a rich color object.
|
|
412
|
-
augmentColor: c,
|
|
413
|
-
// Used by the functions below to shift a color's luminance by approximately
|
|
414
|
-
// two indexes within its tonal palette.
|
|
415
|
-
// E.g., shift from Red 500 to Red 300 or Red 700.
|
|
416
|
-
tonalOffset: i
|
|
417
|
-
}, O[t]), n);
|
|
418
|
-
}
|
|
419
|
-
const fe = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
|
|
420
|
-
function de(e) {
|
|
421
|
-
return Math.round(e * 1e5) / 1e5;
|
|
422
|
-
}
|
|
423
|
-
const z = {
|
|
424
|
-
textTransform: "uppercase"
|
|
425
|
-
}, W = '"Roboto", "Helvetica", "Arial", sans-serif';
|
|
426
|
-
function le(e, t) {
|
|
427
|
-
const a = typeof t == "function" ? t(e) : t, {
|
|
428
|
-
fontFamily: i = W,
|
|
429
|
-
// The default font size of the Material Specification.
|
|
430
|
-
fontSize: n = 14,
|
|
431
|
-
// px
|
|
432
|
-
fontWeightLight: g = 300,
|
|
433
|
-
fontWeightRegular: s = 400,
|
|
434
|
-
fontWeightMedium: h = 500,
|
|
435
|
-
fontWeightBold: b = 700,
|
|
436
|
-
// Tell MUI what's the font-size on the html element.
|
|
437
|
-
// 16px is the default font-size used by browsers.
|
|
438
|
-
htmlFontSize: f = 16,
|
|
439
|
-
// Apply the CSS properties to all the variants.
|
|
440
|
-
allVariants: l,
|
|
441
|
-
pxToRem: u
|
|
442
|
-
} = a, c = M(a, fe);
|
|
443
|
-
process.env.NODE_ENV !== "production" && (typeof n != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof f != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
|
|
444
|
-
const O = n / 14, y = u || ((p) => `${p / f * O}rem`), r = (p, I, T, F, B) => m({
|
|
445
|
-
fontFamily: i,
|
|
446
|
-
fontWeight: p,
|
|
447
|
-
fontSize: y(I),
|
|
448
|
-
// Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
|
|
449
|
-
lineHeight: T
|
|
450
|
-
}, i === W ? {
|
|
451
|
-
letterSpacing: `${de(F / I)}em`
|
|
452
|
-
} : {}, B, l), d = {
|
|
453
|
-
h1: r(g, 96, 1.167, -1.5),
|
|
454
|
-
h2: r(g, 60, 1.2, -0.5),
|
|
455
|
-
h3: r(s, 48, 1.167, 0),
|
|
456
|
-
h4: r(s, 34, 1.235, 0.25),
|
|
457
|
-
h5: r(s, 24, 1.334, 0),
|
|
458
|
-
h6: r(h, 20, 1.6, 0.15),
|
|
459
|
-
subtitle1: r(s, 16, 1.75, 0.15),
|
|
460
|
-
subtitle2: r(h, 14, 1.57, 0.1),
|
|
461
|
-
body1: r(s, 16, 1.5, 0.15),
|
|
462
|
-
body2: r(s, 14, 1.43, 0.15),
|
|
463
|
-
button: r(h, 14, 1.75, 0.4, z),
|
|
464
|
-
caption: r(s, 12, 1.66, 0.4),
|
|
465
|
-
overline: r(s, 12, 2.66, 1, z),
|
|
466
|
-
inherit: {
|
|
467
|
-
fontFamily: "inherit",
|
|
468
|
-
fontWeight: "inherit",
|
|
469
|
-
fontSize: "inherit",
|
|
470
|
-
lineHeight: "inherit",
|
|
471
|
-
letterSpacing: "inherit"
|
|
472
|
-
}
|
|
473
|
-
};
|
|
474
|
-
return k(m({
|
|
475
|
-
htmlFontSize: f,
|
|
476
|
-
pxToRem: y,
|
|
477
|
-
fontFamily: i,
|
|
478
|
-
fontSize: n,
|
|
479
|
-
fontWeightLight: g,
|
|
480
|
-
fontWeightRegular: s,
|
|
481
|
-
fontWeightMedium: h,
|
|
482
|
-
fontWeightBold: b
|
|
483
|
-
}, d), c, {
|
|
484
|
-
clone: !1
|
|
485
|
-
// No need to clone deep
|
|
486
|
-
});
|
|
487
|
-
}
|
|
488
|
-
const ue = 0.2, ge = 0.14, he = 0.12;
|
|
489
|
-
function o(...e) {
|
|
490
|
-
return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${ue})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ge})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${he})`].join(",");
|
|
491
|
-
}
|
|
492
|
-
const be = ["none", o(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), o(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), o(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), o(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), o(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), o(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), o(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), o(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), o(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), o(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), o(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), o(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), o(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), o(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), o(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), o(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), o(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), o(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), o(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), o(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), o(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), o(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), o(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), o(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], me = ["duration", "easing", "delay"], pe = {
|
|
493
|
-
// This is the most common easing curve.
|
|
494
|
-
easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
495
|
-
// Objects enter the screen at full velocity from off-screen and
|
|
496
|
-
// slowly decelerate to a resting point.
|
|
497
|
-
easeOut: "cubic-bezier(0.0, 0, 0.2, 1)",
|
|
498
|
-
// Objects leave the screen at full velocity. They do not decelerate when off-screen.
|
|
499
|
-
easeIn: "cubic-bezier(0.4, 0, 1, 1)",
|
|
500
|
-
// The sharp curve is used by objects that may return to the screen at any time.
|
|
501
|
-
sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
|
|
502
|
-
}, ye = {
|
|
503
|
-
shortest: 150,
|
|
504
|
-
shorter: 200,
|
|
505
|
-
short: 250,
|
|
506
|
-
// most basic recommended timing
|
|
507
|
-
standard: 300,
|
|
508
|
-
// this is to be used in complex animations
|
|
509
|
-
complex: 375,
|
|
510
|
-
// recommended when something is entering screen
|
|
511
|
-
enteringScreen: 225,
|
|
512
|
-
// recommended when something is leaving screen
|
|
513
|
-
leavingScreen: 195
|
|
514
|
-
};
|
|
515
|
-
function P(e) {
|
|
516
|
-
return `${Math.round(e)}ms`;
|
|
517
|
-
}
|
|
518
|
-
function Oe(e) {
|
|
519
|
-
if (!e)
|
|
520
|
-
return 0;
|
|
521
|
-
const t = e / 36;
|
|
522
|
-
return Math.round((4 + 15 * t ** 0.25 + t / 5) * 10);
|
|
523
|
-
}
|
|
524
|
-
function $e(e) {
|
|
525
|
-
const t = m({}, pe, e.easing), a = m({}, ye, e.duration);
|
|
526
|
-
return m({
|
|
527
|
-
getAutoHeightDuration: Oe,
|
|
528
|
-
create: (n = ["all"], g = {}) => {
|
|
529
|
-
const {
|
|
530
|
-
duration: s = a.standard,
|
|
531
|
-
easing: h = t.easeInOut,
|
|
532
|
-
delay: b = 0
|
|
533
|
-
} = g, f = M(g, me);
|
|
534
|
-
if (process.env.NODE_ENV !== "production") {
|
|
535
|
-
const l = (c) => typeof c == "string", u = (c) => !isNaN(parseFloat(c));
|
|
536
|
-
!l(n) && !Array.isArray(n) && console.error('MUI: Argument "props" must be a string or Array.'), !u(s) && !l(s) && console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`), l(h) || console.error('MUI: Argument "easing" must be a string.'), !u(b) && !l(b) && console.error('MUI: Argument "delay" must be a number or a string.'), Object.keys(f).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(f).join(",")}].`);
|
|
537
|
-
}
|
|
538
|
-
return (Array.isArray(n) ? n : [n]).map((l) => `${l} ${typeof s == "string" ? s : P(s)} ${h} ${typeof b == "string" ? b : P(b)}`).join(",");
|
|
539
|
-
}
|
|
540
|
-
}, e, {
|
|
541
|
-
easing: t,
|
|
542
|
-
duration: a
|
|
543
|
-
});
|
|
544
|
-
}
|
|
545
|
-
const Ae = {
|
|
546
|
-
mobileStepper: 1e3,
|
|
547
|
-
fab: 1050,
|
|
548
|
-
speedDial: 1050,
|
|
549
|
-
appBar: 1100,
|
|
550
|
-
drawer: 1200,
|
|
551
|
-
modal: 1300,
|
|
552
|
-
snackbar: 1400,
|
|
553
|
-
tooltip: 1500
|
|
554
|
-
}, ve = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
|
|
555
|
-
function Se(e = {}, ...t) {
|
|
556
|
-
const {
|
|
557
|
-
mixins: a = {},
|
|
558
|
-
palette: i = {},
|
|
559
|
-
transitions: n = {},
|
|
560
|
-
typography: g = {}
|
|
561
|
-
} = e, s = M(e, ve);
|
|
562
|
-
if (e.vars)
|
|
563
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." : _(18));
|
|
564
|
-
const h = ce(i), b = G(e);
|
|
565
|
-
let f = k(b, {
|
|
566
|
-
mixins: Z(b.breakpoints, a),
|
|
567
|
-
palette: h,
|
|
568
|
-
// Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
|
|
569
|
-
shadows: be.slice(),
|
|
570
|
-
typography: le(h, g),
|
|
571
|
-
transitions: $e(n),
|
|
572
|
-
zIndex: m({}, Ae)
|
|
573
|
-
});
|
|
574
|
-
if (f = k(f, s), f = t.reduce((l, u) => k(l, u), f), process.env.NODE_ENV !== "production") {
|
|
575
|
-
const l = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], u = (c, O) => {
|
|
576
|
-
let y;
|
|
577
|
-
for (y in c) {
|
|
578
|
-
const r = c[y];
|
|
579
|
-
if (l.indexOf(y) !== -1 && Object.keys(r).length > 0) {
|
|
580
|
-
if (process.env.NODE_ENV !== "production") {
|
|
581
|
-
const d = X("", y);
|
|
582
|
-
console.error([`MUI: The \`${O}\` component increases the CSS specificity of the \`${y}\` internal state.`, "You can not override it like this: ", JSON.stringify(c, null, 2), "", `Instead, you need to use the '&.${d}' syntax:`, JSON.stringify({
|
|
583
|
-
root: {
|
|
584
|
-
[`&.${d}`]: r
|
|
585
|
-
}
|
|
586
|
-
}, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
|
|
587
|
-
`));
|
|
588
|
-
}
|
|
589
|
-
c[y] = {};
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
};
|
|
593
|
-
Object.keys(f.components).forEach((c) => {
|
|
594
|
-
const O = f.components[c].styleOverrides;
|
|
595
|
-
O && c.indexOf("Mui") === 0 && u(O, c);
|
|
596
|
-
});
|
|
597
|
-
}
|
|
598
|
-
return f.unstable_sxConfig = m({}, L, s == null ? void 0 : s.unstable_sxConfig), f.unstable_sx = function(u) {
|
|
599
|
-
return J({
|
|
600
|
-
sx: u,
|
|
601
|
-
theme: this
|
|
602
|
-
});
|
|
603
|
-
}, f;
|
|
604
|
-
}
|
|
605
|
-
export {
|
|
606
|
-
Y as C,
|
|
607
|
-
k as a,
|
|
608
|
-
Se as c,
|
|
609
|
-
ye as d,
|
|
610
|
-
_ as f,
|
|
611
|
-
X as g
|
|
612
|
-
};
|