@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,1636 +0,0 @@
|
|
|
1
|
-
import { _ as j, a as i } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
2
|
-
import * as l from "react";
|
|
3
|
-
import { P as e } from "./index-C__OZmYy.js";
|
|
4
|
-
import { d as Je, s as L, r as Ee } from "./styled-eZwjUruw.js";
|
|
5
|
-
import { g as X, u as Y, c as K, a as Z } from "./useThemeProps-BzzHcQyd.js";
|
|
6
|
-
import { g as J, f as Qe, a as eo } from "./createTheme-DYxDnE9u.js";
|
|
7
|
-
import { u as me, F as Ne } from "./useFormControl-CatNKXAi.js";
|
|
8
|
-
import { jsxs as G, jsx as k } from "react/jsx-runtime";
|
|
9
|
-
import { c as Q } from "./capitalize-ciszXJ7R.js";
|
|
10
|
-
import { a as Fe, u as ke, e as oo, r as ze } from "./ButtonBase-2bPw77UP.js";
|
|
11
|
-
import * as no from "react-dom";
|
|
12
|
-
import { a as Se } from "./useId-B4-oF9Mq.js";
|
|
13
|
-
import { d as to } from "./debounce-46wSf_lW.js";
|
|
14
|
-
import { i as Re } from "./isHostComponent-kiaBvYVo.js";
|
|
15
|
-
import { GlobalStyles as ro } from "@mui/system";
|
|
16
|
-
import { i as fe } from "./isMuiElement-CxT3_ACP.js";
|
|
17
|
-
const so = ["onChange", "maxRows", "minRows", "style", "value"];
|
|
18
|
-
function re(o) {
|
|
19
|
-
return parseInt(o, 10) || 0;
|
|
20
|
-
}
|
|
21
|
-
const io = {
|
|
22
|
-
shadow: {
|
|
23
|
-
// Visibility needed to hide the extra text area on iPads
|
|
24
|
-
visibility: "hidden",
|
|
25
|
-
// Remove from the content flow
|
|
26
|
-
position: "absolute",
|
|
27
|
-
// Ignore the scrollbar width
|
|
28
|
-
overflow: "hidden",
|
|
29
|
-
height: 0,
|
|
30
|
-
top: 0,
|
|
31
|
-
left: 0,
|
|
32
|
-
// Create a new layer, increase the isolation of the computed values
|
|
33
|
-
transform: "translateZ(0)"
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
function Te(o) {
|
|
37
|
-
return o == null || Object.keys(o).length === 0 || o.outerHeightStyle === 0 && !o.overflow;
|
|
38
|
-
}
|
|
39
|
-
const Me = /* @__PURE__ */ l.forwardRef(function(n, t) {
|
|
40
|
-
const {
|
|
41
|
-
onChange: r,
|
|
42
|
-
maxRows: s,
|
|
43
|
-
minRows: u = 1,
|
|
44
|
-
style: m,
|
|
45
|
-
value: b
|
|
46
|
-
} = n, c = j(n, so), {
|
|
47
|
-
current: a
|
|
48
|
-
} = l.useRef(b != null), p = l.useRef(null), x = Fe(t, p), w = l.useRef(null), R = l.useRef(0), [S, I] = l.useState({
|
|
49
|
-
outerHeightStyle: 0
|
|
50
|
-
}), N = l.useCallback(() => {
|
|
51
|
-
const d = p.current, g = Se(d).getComputedStyle(d);
|
|
52
|
-
if (g.width === "0px")
|
|
53
|
-
return {
|
|
54
|
-
outerHeightStyle: 0
|
|
55
|
-
};
|
|
56
|
-
const h = w.current;
|
|
57
|
-
h.style.width = g.width, h.value = d.value || n.placeholder || "x", h.value.slice(-1) === `
|
|
58
|
-
` && (h.value += " ");
|
|
59
|
-
const A = g.boxSizing, B = re(g.paddingBottom) + re(g.paddingTop), P = re(g.borderBottomWidth) + re(g.borderTopWidth), U = h.scrollHeight;
|
|
60
|
-
h.value = "x";
|
|
61
|
-
const T = h.scrollHeight;
|
|
62
|
-
let O = U;
|
|
63
|
-
u && (O = Math.max(Number(u) * T, O)), s && (O = Math.min(Number(s) * T, O)), O = Math.max(O, T);
|
|
64
|
-
const W = O + (A === "border-box" ? B + P : 0), ee = Math.abs(O - U) <= 1;
|
|
65
|
-
return {
|
|
66
|
-
outerHeightStyle: W,
|
|
67
|
-
overflow: ee
|
|
68
|
-
};
|
|
69
|
-
}, [s, u, n.placeholder]), M = (d, v) => {
|
|
70
|
-
const {
|
|
71
|
-
outerHeightStyle: g,
|
|
72
|
-
overflow: h
|
|
73
|
-
} = v;
|
|
74
|
-
return R.current < 20 && (g > 0 && Math.abs((d.outerHeightStyle || 0) - g) > 1 || d.overflow !== h) ? (R.current += 1, {
|
|
75
|
-
overflow: h,
|
|
76
|
-
outerHeightStyle: g
|
|
77
|
-
}) : (process.env.NODE_ENV !== "production" && R.current === 20 && console.error(["MUI: Too many re-renders. The layout is unstable.", "TextareaAutosize limits the number of renders to prevent an infinite loop."].join(`
|
|
78
|
-
`)), d);
|
|
79
|
-
}, C = l.useCallback(() => {
|
|
80
|
-
const d = N();
|
|
81
|
-
Te(d) || I((v) => M(v, d));
|
|
82
|
-
}, [N]), $ = () => {
|
|
83
|
-
const d = N();
|
|
84
|
-
Te(d) || no.flushSync(() => {
|
|
85
|
-
I((v) => M(v, d));
|
|
86
|
-
});
|
|
87
|
-
};
|
|
88
|
-
l.useEffect(() => {
|
|
89
|
-
const d = to(() => {
|
|
90
|
-
R.current = 0, p.current && $();
|
|
91
|
-
});
|
|
92
|
-
let v;
|
|
93
|
-
const g = p.current, h = Se(g);
|
|
94
|
-
return h.addEventListener("resize", d), typeof ResizeObserver < "u" && (v = new ResizeObserver(d), v.observe(g)), () => {
|
|
95
|
-
d.clear(), h.removeEventListener("resize", d), v && v.disconnect();
|
|
96
|
-
};
|
|
97
|
-
}), ke(() => {
|
|
98
|
-
C();
|
|
99
|
-
}), l.useEffect(() => {
|
|
100
|
-
R.current = 0;
|
|
101
|
-
}, [b]);
|
|
102
|
-
const F = (d) => {
|
|
103
|
-
R.current = 0, a || C(), r && r(d);
|
|
104
|
-
};
|
|
105
|
-
return /* @__PURE__ */ G(l.Fragment, {
|
|
106
|
-
children: [/* @__PURE__ */ k("textarea", i({
|
|
107
|
-
value: b,
|
|
108
|
-
onChange: F,
|
|
109
|
-
ref: x,
|
|
110
|
-
rows: u,
|
|
111
|
-
style: i({
|
|
112
|
-
height: S.outerHeightStyle,
|
|
113
|
-
// Need a large enough difference to allow scrolling.
|
|
114
|
-
// This prevents infinite rendering loop.
|
|
115
|
-
overflow: S.overflow ? "hidden" : void 0
|
|
116
|
-
}, m)
|
|
117
|
-
}, c)), /* @__PURE__ */ k("textarea", {
|
|
118
|
-
"aria-hidden": !0,
|
|
119
|
-
className: n.className,
|
|
120
|
-
readOnly: !0,
|
|
121
|
-
ref: w,
|
|
122
|
-
tabIndex: -1,
|
|
123
|
-
style: i({}, io.shadow, m, {
|
|
124
|
-
padding: 0
|
|
125
|
-
})
|
|
126
|
-
})]
|
|
127
|
-
});
|
|
128
|
-
});
|
|
129
|
-
process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
130
|
-
// ----------------------------- Warning --------------------------------
|
|
131
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
132
|
-
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
133
|
-
// ----------------------------------------------------------------------
|
|
134
|
-
/**
|
|
135
|
-
* @ignore
|
|
136
|
-
*/
|
|
137
|
-
className: e.string,
|
|
138
|
-
/**
|
|
139
|
-
* Maximum number of rows to display.
|
|
140
|
-
*/
|
|
141
|
-
maxRows: e.oneOfType([e.number, e.string]),
|
|
142
|
-
/**
|
|
143
|
-
* Minimum number of rows to display.
|
|
144
|
-
* @default 1
|
|
145
|
-
*/
|
|
146
|
-
minRows: e.oneOfType([e.number, e.string]),
|
|
147
|
-
/**
|
|
148
|
-
* @ignore
|
|
149
|
-
*/
|
|
150
|
-
onChange: e.func,
|
|
151
|
-
/**
|
|
152
|
-
* @ignore
|
|
153
|
-
*/
|
|
154
|
-
placeholder: e.string,
|
|
155
|
-
/**
|
|
156
|
-
* @ignore
|
|
157
|
-
*/
|
|
158
|
-
style: e.object,
|
|
159
|
-
/**
|
|
160
|
-
* @ignore
|
|
161
|
-
*/
|
|
162
|
-
value: e.oneOfType([e.arrayOf(e.string), e.number, e.string])
|
|
163
|
-
});
|
|
164
|
-
function be({
|
|
165
|
-
props: o,
|
|
166
|
-
states: n,
|
|
167
|
-
muiFormControl: t
|
|
168
|
-
}) {
|
|
169
|
-
return n.reduce((r, s) => (r[s] = o[s], t && typeof o[s] > "u" && (r[s] = t[s]), r), {});
|
|
170
|
-
}
|
|
171
|
-
function Ae(o) {
|
|
172
|
-
return /* @__PURE__ */ k(ro, i({}, o, {
|
|
173
|
-
defaultTheme: Je
|
|
174
|
-
}));
|
|
175
|
-
}
|
|
176
|
-
process.env.NODE_ENV !== "production" && (Ae.propTypes = {
|
|
177
|
-
// ----------------------------- Warning --------------------------------
|
|
178
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
179
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
180
|
-
// ----------------------------------------------------------------------
|
|
181
|
-
/**
|
|
182
|
-
* The styles you want to apply globally.
|
|
183
|
-
*/
|
|
184
|
-
styles: e.oneOfType([e.func, e.number, e.object, e.shape({
|
|
185
|
-
__emotion_styles: e.any.isRequired
|
|
186
|
-
}), e.string, e.bool])
|
|
187
|
-
});
|
|
188
|
-
function Ie(o) {
|
|
189
|
-
return o != null && !(Array.isArray(o) && o.length === 0);
|
|
190
|
-
}
|
|
191
|
-
function Pe(o, n = !1) {
|
|
192
|
-
return o && (Ie(o.value) && o.value !== "" || n && Ie(o.defaultValue) && o.defaultValue !== "");
|
|
193
|
-
}
|
|
194
|
-
function lo(o) {
|
|
195
|
-
return o.startAdornment;
|
|
196
|
-
}
|
|
197
|
-
function ao(o) {
|
|
198
|
-
return J("MuiInputBase", o);
|
|
199
|
-
}
|
|
200
|
-
const se = X("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]), uo = ["aria-describedby", "autoComplete", "autoFocus", "className", "color", "components", "componentsProps", "defaultValue", "disabled", "disableInjectingGlobalStyles", "endAdornment", "error", "fullWidth", "id", "inputComponent", "inputProps", "inputRef", "margin", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "placeholder", "readOnly", "renderSuffix", "rows", "size", "slotProps", "slots", "startAdornment", "type", "value"], We = (o, n) => {
|
|
201
|
-
const {
|
|
202
|
-
ownerState: t
|
|
203
|
-
} = o;
|
|
204
|
-
return [n.root, t.formControl && n.formControl, t.startAdornment && n.adornedStart, t.endAdornment && n.adornedEnd, t.error && n.error, t.size === "small" && n.sizeSmall, t.multiline && n.multiline, t.color && n[`color${Q(t.color)}`], t.fullWidth && n.fullWidth, t.hiddenLabel && n.hiddenLabel];
|
|
205
|
-
}, Le = (o, n) => {
|
|
206
|
-
const {
|
|
207
|
-
ownerState: t
|
|
208
|
-
} = o;
|
|
209
|
-
return [n.input, t.size === "small" && n.inputSizeSmall, t.multiline && n.inputMultiline, t.type === "search" && n.inputTypeSearch, t.startAdornment && n.inputAdornedStart, t.endAdornment && n.inputAdornedEnd, t.hiddenLabel && n.inputHiddenLabel];
|
|
210
|
-
}, co = (o) => {
|
|
211
|
-
const {
|
|
212
|
-
classes: n,
|
|
213
|
-
color: t,
|
|
214
|
-
disabled: r,
|
|
215
|
-
error: s,
|
|
216
|
-
endAdornment: u,
|
|
217
|
-
focused: m,
|
|
218
|
-
formControl: b,
|
|
219
|
-
fullWidth: c,
|
|
220
|
-
hiddenLabel: a,
|
|
221
|
-
multiline: p,
|
|
222
|
-
readOnly: x,
|
|
223
|
-
size: w,
|
|
224
|
-
startAdornment: R,
|
|
225
|
-
type: S
|
|
226
|
-
} = o, I = {
|
|
227
|
-
root: ["root", `color${Q(t)}`, r && "disabled", s && "error", c && "fullWidth", m && "focused", b && "formControl", w === "small" && "sizeSmall", p && "multiline", R && "adornedStart", u && "adornedEnd", a && "hiddenLabel", x && "readOnly"],
|
|
228
|
-
input: ["input", r && "disabled", S === "search" && "inputTypeSearch", p && "inputMultiline", w === "small" && "inputSizeSmall", a && "inputHiddenLabel", R && "inputAdornedStart", u && "inputAdornedEnd", x && "readOnly"]
|
|
229
|
-
};
|
|
230
|
-
return Z(I, ao, n);
|
|
231
|
-
}, Be = L("div", {
|
|
232
|
-
name: "MuiInputBase",
|
|
233
|
-
slot: "Root",
|
|
234
|
-
overridesResolver: We
|
|
235
|
-
})(({
|
|
236
|
-
theme: o,
|
|
237
|
-
ownerState: n
|
|
238
|
-
}) => i({}, o.typography.body1, {
|
|
239
|
-
color: (o.vars || o).palette.text.primary,
|
|
240
|
-
lineHeight: "1.4375em",
|
|
241
|
-
// 23px
|
|
242
|
-
boxSizing: "border-box",
|
|
243
|
-
// Prevent padding issue with fullWidth.
|
|
244
|
-
position: "relative",
|
|
245
|
-
cursor: "text",
|
|
246
|
-
display: "inline-flex",
|
|
247
|
-
alignItems: "center",
|
|
248
|
-
[`&.${se.disabled}`]: {
|
|
249
|
-
color: (o.vars || o).palette.text.disabled,
|
|
250
|
-
cursor: "default"
|
|
251
|
-
}
|
|
252
|
-
}, n.multiline && i({
|
|
253
|
-
padding: "4px 0 5px"
|
|
254
|
-
}, n.size === "small" && {
|
|
255
|
-
paddingTop: 1
|
|
256
|
-
}), n.fullWidth && {
|
|
257
|
-
width: "100%"
|
|
258
|
-
})), $e = L("input", {
|
|
259
|
-
name: "MuiInputBase",
|
|
260
|
-
slot: "Input",
|
|
261
|
-
overridesResolver: Le
|
|
262
|
-
})(({
|
|
263
|
-
theme: o,
|
|
264
|
-
ownerState: n
|
|
265
|
-
}) => {
|
|
266
|
-
const t = o.palette.mode === "light", r = i({
|
|
267
|
-
color: "currentColor"
|
|
268
|
-
}, o.vars ? {
|
|
269
|
-
opacity: o.vars.opacity.inputPlaceholder
|
|
270
|
-
} : {
|
|
271
|
-
opacity: t ? 0.42 : 0.5
|
|
272
|
-
}, {
|
|
273
|
-
transition: o.transitions.create("opacity", {
|
|
274
|
-
duration: o.transitions.duration.shorter
|
|
275
|
-
})
|
|
276
|
-
}), s = {
|
|
277
|
-
opacity: "0 !important"
|
|
278
|
-
}, u = o.vars ? {
|
|
279
|
-
opacity: o.vars.opacity.inputPlaceholder
|
|
280
|
-
} : {
|
|
281
|
-
opacity: t ? 0.42 : 0.5
|
|
282
|
-
};
|
|
283
|
-
return i({
|
|
284
|
-
font: "inherit",
|
|
285
|
-
letterSpacing: "inherit",
|
|
286
|
-
color: "currentColor",
|
|
287
|
-
padding: "4px 0 5px",
|
|
288
|
-
border: 0,
|
|
289
|
-
boxSizing: "content-box",
|
|
290
|
-
background: "none",
|
|
291
|
-
height: "1.4375em",
|
|
292
|
-
// Reset 23pxthe native input line-height
|
|
293
|
-
margin: 0,
|
|
294
|
-
// Reset for Safari
|
|
295
|
-
WebkitTapHighlightColor: "transparent",
|
|
296
|
-
display: "block",
|
|
297
|
-
// Make the flex item shrink with Firefox
|
|
298
|
-
minWidth: 0,
|
|
299
|
-
width: "100%",
|
|
300
|
-
// Fix IE11 width issue
|
|
301
|
-
animationName: "mui-auto-fill-cancel",
|
|
302
|
-
animationDuration: "10ms",
|
|
303
|
-
"&::-webkit-input-placeholder": r,
|
|
304
|
-
"&::-moz-placeholder": r,
|
|
305
|
-
// Firefox 19+
|
|
306
|
-
"&:-ms-input-placeholder": r,
|
|
307
|
-
// IE11
|
|
308
|
-
"&::-ms-input-placeholder": r,
|
|
309
|
-
// Edge
|
|
310
|
-
"&:focus": {
|
|
311
|
-
outline: 0
|
|
312
|
-
},
|
|
313
|
-
// Reset Firefox invalid required input style
|
|
314
|
-
"&:invalid": {
|
|
315
|
-
boxShadow: "none"
|
|
316
|
-
},
|
|
317
|
-
"&::-webkit-search-decoration": {
|
|
318
|
-
// Remove the padding when type=search.
|
|
319
|
-
WebkitAppearance: "none"
|
|
320
|
-
},
|
|
321
|
-
// Show and hide the placeholder logic
|
|
322
|
-
[`label[data-shrink=false] + .${se.formControl} &`]: {
|
|
323
|
-
"&::-webkit-input-placeholder": s,
|
|
324
|
-
"&::-moz-placeholder": s,
|
|
325
|
-
// Firefox 19+
|
|
326
|
-
"&:-ms-input-placeholder": s,
|
|
327
|
-
// IE11
|
|
328
|
-
"&::-ms-input-placeholder": s,
|
|
329
|
-
// Edge
|
|
330
|
-
"&:focus::-webkit-input-placeholder": u,
|
|
331
|
-
"&:focus::-moz-placeholder": u,
|
|
332
|
-
// Firefox 19+
|
|
333
|
-
"&:focus:-ms-input-placeholder": u,
|
|
334
|
-
// IE11
|
|
335
|
-
"&:focus::-ms-input-placeholder": u
|
|
336
|
-
// Edge
|
|
337
|
-
},
|
|
338
|
-
[`&.${se.disabled}`]: {
|
|
339
|
-
opacity: 1,
|
|
340
|
-
// Reset iOS opacity
|
|
341
|
-
WebkitTextFillColor: (o.vars || o).palette.text.disabled
|
|
342
|
-
// Fix opacity Safari bug
|
|
343
|
-
},
|
|
344
|
-
"&:-webkit-autofill": {
|
|
345
|
-
animationDuration: "5000s",
|
|
346
|
-
animationName: "mui-auto-fill"
|
|
347
|
-
}
|
|
348
|
-
}, n.size === "small" && {
|
|
349
|
-
paddingTop: 1
|
|
350
|
-
}, n.multiline && {
|
|
351
|
-
height: "auto",
|
|
352
|
-
resize: "none",
|
|
353
|
-
padding: 0,
|
|
354
|
-
paddingTop: 0
|
|
355
|
-
}, n.type === "search" && {
|
|
356
|
-
// Improve type search style.
|
|
357
|
-
MozAppearance: "textfield"
|
|
358
|
-
});
|
|
359
|
-
}), po = /* @__PURE__ */ k(Ae, {
|
|
360
|
-
styles: {
|
|
361
|
-
"@keyframes mui-auto-fill": {
|
|
362
|
-
from: {
|
|
363
|
-
display: "block"
|
|
364
|
-
}
|
|
365
|
-
},
|
|
366
|
-
"@keyframes mui-auto-fill-cancel": {
|
|
367
|
-
from: {
|
|
368
|
-
display: "block"
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
}), Ue = /* @__PURE__ */ l.forwardRef(function(n, t) {
|
|
373
|
-
var r;
|
|
374
|
-
const s = Y({
|
|
375
|
-
props: n,
|
|
376
|
-
name: "MuiInputBase"
|
|
377
|
-
}), {
|
|
378
|
-
"aria-describedby": u,
|
|
379
|
-
autoComplete: m,
|
|
380
|
-
autoFocus: b,
|
|
381
|
-
className: c,
|
|
382
|
-
components: a = {},
|
|
383
|
-
componentsProps: p = {},
|
|
384
|
-
defaultValue: x,
|
|
385
|
-
disabled: w,
|
|
386
|
-
disableInjectingGlobalStyles: R,
|
|
387
|
-
endAdornment: S,
|
|
388
|
-
fullWidth: I = !1,
|
|
389
|
-
id: N,
|
|
390
|
-
inputComponent: M = "input",
|
|
391
|
-
inputProps: C = {},
|
|
392
|
-
inputRef: $,
|
|
393
|
-
maxRows: F,
|
|
394
|
-
minRows: d,
|
|
395
|
-
multiline: v = !1,
|
|
396
|
-
name: g,
|
|
397
|
-
onBlur: h,
|
|
398
|
-
onChange: A,
|
|
399
|
-
onClick: B,
|
|
400
|
-
onFocus: P,
|
|
401
|
-
onKeyDown: U,
|
|
402
|
-
onKeyUp: T,
|
|
403
|
-
placeholder: O,
|
|
404
|
-
readOnly: W,
|
|
405
|
-
renderSuffix: ee,
|
|
406
|
-
rows: oe,
|
|
407
|
-
slotProps: he = {},
|
|
408
|
-
slots: ye = {},
|
|
409
|
-
startAdornment: D,
|
|
410
|
-
type: ge = "text",
|
|
411
|
-
value: De
|
|
412
|
-
} = s, qe = j(s, uo), ne = C.value != null ? C.value : De, {
|
|
413
|
-
current: ie
|
|
414
|
-
} = l.useRef(ne != null), _ = l.useRef(), He = l.useCallback((f) => {
|
|
415
|
-
process.env.NODE_ENV !== "production" && f && f.nodeName !== "INPUT" && !f.focus && console.error(["MUI: You have provided a `inputComponent` to the input component", "that does not correctly handle the `ref` prop.", "Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
416
|
-
`));
|
|
417
|
-
}, []), Ve = Fe(_, $, C.ref, He), [le, ae] = l.useState(!1), y = me();
|
|
418
|
-
process.env.NODE_ENV !== "production" && l.useEffect(() => {
|
|
419
|
-
if (y)
|
|
420
|
-
return y.registerEffect();
|
|
421
|
-
}, [y]);
|
|
422
|
-
const E = be({
|
|
423
|
-
props: s,
|
|
424
|
-
muiFormControl: y,
|
|
425
|
-
states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
|
|
426
|
-
});
|
|
427
|
-
E.focused = y ? y.focused : le, l.useEffect(() => {
|
|
428
|
-
!y && w && le && (ae(!1), h && h());
|
|
429
|
-
}, [y, w, le, h]);
|
|
430
|
-
const ue = y && y.onFilled, de = y && y.onEmpty, q = l.useCallback((f) => {
|
|
431
|
-
Pe(f) ? ue && ue() : de && de();
|
|
432
|
-
}, [ue, de]);
|
|
433
|
-
ke(() => {
|
|
434
|
-
ie && q({
|
|
435
|
-
value: ne
|
|
436
|
-
});
|
|
437
|
-
}, [ne, q, ie]);
|
|
438
|
-
const Ke = (f) => {
|
|
439
|
-
if (E.disabled) {
|
|
440
|
-
f.stopPropagation();
|
|
441
|
-
return;
|
|
442
|
-
}
|
|
443
|
-
P && P(f), C.onFocus && C.onFocus(f), y && y.onFocus ? y.onFocus(f) : ae(!0);
|
|
444
|
-
}, Ge = (f) => {
|
|
445
|
-
h && h(f), C.onBlur && C.onBlur(f), y && y.onBlur ? y.onBlur(f) : ae(!1);
|
|
446
|
-
}, Xe = (f, ...Oe) => {
|
|
447
|
-
if (!ie) {
|
|
448
|
-
const we = f.target || _.current;
|
|
449
|
-
if (we == null)
|
|
450
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info." : Qe(1));
|
|
451
|
-
q({
|
|
452
|
-
value: we.value
|
|
453
|
-
});
|
|
454
|
-
}
|
|
455
|
-
C.onChange && C.onChange(f, ...Oe), A && A(f, ...Oe);
|
|
456
|
-
};
|
|
457
|
-
l.useEffect(() => {
|
|
458
|
-
q(_.current);
|
|
459
|
-
}, []);
|
|
460
|
-
const Ye = (f) => {
|
|
461
|
-
_.current && f.currentTarget === f.target && _.current.focus(), B && B(f);
|
|
462
|
-
};
|
|
463
|
-
let ce = M, z = C;
|
|
464
|
-
v && ce === "input" && (oe ? (process.env.NODE_ENV !== "production" && (d || F) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), z = i({
|
|
465
|
-
type: void 0,
|
|
466
|
-
minRows: oe,
|
|
467
|
-
maxRows: oe
|
|
468
|
-
}, z)) : z = i({
|
|
469
|
-
type: void 0,
|
|
470
|
-
maxRows: F,
|
|
471
|
-
minRows: d
|
|
472
|
-
}, z), ce = Me);
|
|
473
|
-
const Ze = (f) => {
|
|
474
|
-
q(f.animationName === "mui-auto-fill-cancel" ? _.current : {
|
|
475
|
-
value: "x"
|
|
476
|
-
});
|
|
477
|
-
};
|
|
478
|
-
l.useEffect(() => {
|
|
479
|
-
y && y.setAdornedStart(!!D);
|
|
480
|
-
}, [y, D]);
|
|
481
|
-
const te = i({}, s, {
|
|
482
|
-
color: E.color || "primary",
|
|
483
|
-
disabled: E.disabled,
|
|
484
|
-
endAdornment: S,
|
|
485
|
-
error: E.error,
|
|
486
|
-
focused: E.focused,
|
|
487
|
-
formControl: y,
|
|
488
|
-
fullWidth: I,
|
|
489
|
-
hiddenLabel: E.hiddenLabel,
|
|
490
|
-
multiline: v,
|
|
491
|
-
size: E.size,
|
|
492
|
-
startAdornment: D,
|
|
493
|
-
type: ge
|
|
494
|
-
}), ve = co(te), xe = ye.root || a.Root || Be, pe = he.root || p.root || {}, Ce = ye.input || a.Input || $e;
|
|
495
|
-
return z = i({}, z, (r = he.input) != null ? r : p.input), /* @__PURE__ */ G(l.Fragment, {
|
|
496
|
-
children: [!R && po, /* @__PURE__ */ G(xe, i({}, pe, !Re(xe) && {
|
|
497
|
-
ownerState: i({}, te, pe.ownerState)
|
|
498
|
-
}, {
|
|
499
|
-
ref: t,
|
|
500
|
-
onClick: Ye
|
|
501
|
-
}, qe, {
|
|
502
|
-
className: K(ve.root, pe.className, c, W && "MuiInputBase-readOnly"),
|
|
503
|
-
children: [D, /* @__PURE__ */ k(Ne.Provider, {
|
|
504
|
-
value: null,
|
|
505
|
-
children: /* @__PURE__ */ k(Ce, i({
|
|
506
|
-
ownerState: te,
|
|
507
|
-
"aria-invalid": E.error,
|
|
508
|
-
"aria-describedby": u,
|
|
509
|
-
autoComplete: m,
|
|
510
|
-
autoFocus: b,
|
|
511
|
-
defaultValue: x,
|
|
512
|
-
disabled: E.disabled,
|
|
513
|
-
id: N,
|
|
514
|
-
onAnimationStart: Ze,
|
|
515
|
-
name: g,
|
|
516
|
-
placeholder: O,
|
|
517
|
-
readOnly: W,
|
|
518
|
-
required: E.required,
|
|
519
|
-
rows: oe,
|
|
520
|
-
value: ne,
|
|
521
|
-
onKeyDown: U,
|
|
522
|
-
onKeyUp: T,
|
|
523
|
-
type: ge
|
|
524
|
-
}, z, !Re(Ce) && {
|
|
525
|
-
as: ce,
|
|
526
|
-
ownerState: i({}, te, z.ownerState)
|
|
527
|
-
}, {
|
|
528
|
-
ref: Ve,
|
|
529
|
-
className: K(ve.input, z.className, W && "MuiInputBase-readOnly"),
|
|
530
|
-
onBlur: Ge,
|
|
531
|
-
onChange: Xe,
|
|
532
|
-
onFocus: Ke
|
|
533
|
-
}))
|
|
534
|
-
}), S, ee ? ee(i({}, E, {
|
|
535
|
-
startAdornment: D
|
|
536
|
-
})) : null]
|
|
537
|
-
}))]
|
|
538
|
-
});
|
|
539
|
-
});
|
|
540
|
-
process.env.NODE_ENV !== "production" && (Ue.propTypes = {
|
|
541
|
-
// ----------------------------- Warning --------------------------------
|
|
542
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
543
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
544
|
-
// ----------------------------------------------------------------------
|
|
545
|
-
/**
|
|
546
|
-
* @ignore
|
|
547
|
-
*/
|
|
548
|
-
"aria-describedby": e.string,
|
|
549
|
-
/**
|
|
550
|
-
* This prop helps users to fill forms faster, especially on mobile devices.
|
|
551
|
-
* The name can be confusing, as it's more like an autofill.
|
|
552
|
-
* You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).
|
|
553
|
-
*/
|
|
554
|
-
autoComplete: e.string,
|
|
555
|
-
/**
|
|
556
|
-
* If `true`, the `input` element is focused during the first mount.
|
|
557
|
-
*/
|
|
558
|
-
autoFocus: e.bool,
|
|
559
|
-
/**
|
|
560
|
-
* Override or extend the styles applied to the component.
|
|
561
|
-
*/
|
|
562
|
-
classes: e.object,
|
|
563
|
-
/**
|
|
564
|
-
* @ignore
|
|
565
|
-
*/
|
|
566
|
-
className: e.string,
|
|
567
|
-
/**
|
|
568
|
-
* The color of the component.
|
|
569
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
570
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
571
|
-
* The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
|
|
572
|
-
*/
|
|
573
|
-
color: e.oneOfType([e.oneOf(["primary", "secondary", "error", "info", "success", "warning"]), e.string]),
|
|
574
|
-
/**
|
|
575
|
-
* The components used for each slot inside.
|
|
576
|
-
*
|
|
577
|
-
* This prop is an alias for the `slots` prop.
|
|
578
|
-
* It's recommended to use the `slots` prop instead.
|
|
579
|
-
*
|
|
580
|
-
* @default {}
|
|
581
|
-
*/
|
|
582
|
-
components: e.shape({
|
|
583
|
-
Input: e.elementType,
|
|
584
|
-
Root: e.elementType
|
|
585
|
-
}),
|
|
586
|
-
/**
|
|
587
|
-
* The extra props for the slot components.
|
|
588
|
-
* You can override the existing props or add new ones.
|
|
589
|
-
*
|
|
590
|
-
* This prop is an alias for the `slotProps` prop.
|
|
591
|
-
* It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
|
|
592
|
-
*
|
|
593
|
-
* @default {}
|
|
594
|
-
*/
|
|
595
|
-
componentsProps: e.shape({
|
|
596
|
-
input: e.object,
|
|
597
|
-
root: e.object
|
|
598
|
-
}),
|
|
599
|
-
/**
|
|
600
|
-
* The default value. Use when the component is not controlled.
|
|
601
|
-
*/
|
|
602
|
-
defaultValue: e.any,
|
|
603
|
-
/**
|
|
604
|
-
* If `true`, the component is disabled.
|
|
605
|
-
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
|
|
606
|
-
*/
|
|
607
|
-
disabled: e.bool,
|
|
608
|
-
/**
|
|
609
|
-
* If `true`, GlobalStyles for the auto-fill keyframes will not be injected/removed on mount/unmount. Make sure to inject them at the top of your application.
|
|
610
|
-
* This option is intended to help with boosting the initial rendering performance if you are loading a big amount of Input components at once.
|
|
611
|
-
* @default false
|
|
612
|
-
*/
|
|
613
|
-
disableInjectingGlobalStyles: e.bool,
|
|
614
|
-
/**
|
|
615
|
-
* End `InputAdornment` for this component.
|
|
616
|
-
*/
|
|
617
|
-
endAdornment: e.node,
|
|
618
|
-
/**
|
|
619
|
-
* If `true`, the `input` will indicate an error.
|
|
620
|
-
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
|
|
621
|
-
*/
|
|
622
|
-
error: e.bool,
|
|
623
|
-
/**
|
|
624
|
-
* If `true`, the `input` will take up the full width of its container.
|
|
625
|
-
* @default false
|
|
626
|
-
*/
|
|
627
|
-
fullWidth: e.bool,
|
|
628
|
-
/**
|
|
629
|
-
* The id of the `input` element.
|
|
630
|
-
*/
|
|
631
|
-
id: e.string,
|
|
632
|
-
/**
|
|
633
|
-
* The component used for the `input` element.
|
|
634
|
-
* Either a string to use a HTML element or a component.
|
|
635
|
-
* @default 'input'
|
|
636
|
-
*/
|
|
637
|
-
inputComponent: oo,
|
|
638
|
-
/**
|
|
639
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
640
|
-
* @default {}
|
|
641
|
-
*/
|
|
642
|
-
inputProps: e.object,
|
|
643
|
-
/**
|
|
644
|
-
* Pass a ref to the `input` element.
|
|
645
|
-
*/
|
|
646
|
-
inputRef: ze,
|
|
647
|
-
/**
|
|
648
|
-
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
649
|
-
* FormControl.
|
|
650
|
-
* The prop defaults to the value (`'none'`) inherited from the parent FormControl component.
|
|
651
|
-
*/
|
|
652
|
-
margin: e.oneOf(["dense", "none"]),
|
|
653
|
-
/**
|
|
654
|
-
* Maximum number of rows to display when multiline option is set to true.
|
|
655
|
-
*/
|
|
656
|
-
maxRows: e.oneOfType([e.number, e.string]),
|
|
657
|
-
/**
|
|
658
|
-
* Minimum number of rows to display when multiline option is set to true.
|
|
659
|
-
*/
|
|
660
|
-
minRows: e.oneOfType([e.number, e.string]),
|
|
661
|
-
/**
|
|
662
|
-
* If `true`, a [TextareaAutosize](/material-ui/react-textarea-autosize/) element is rendered.
|
|
663
|
-
* @default false
|
|
664
|
-
*/
|
|
665
|
-
multiline: e.bool,
|
|
666
|
-
/**
|
|
667
|
-
* Name attribute of the `input` element.
|
|
668
|
-
*/
|
|
669
|
-
name: e.string,
|
|
670
|
-
/**
|
|
671
|
-
* Callback fired when the `input` is blurred.
|
|
672
|
-
*
|
|
673
|
-
* Notice that the first argument (event) might be undefined.
|
|
674
|
-
*/
|
|
675
|
-
onBlur: e.func,
|
|
676
|
-
/**
|
|
677
|
-
* Callback fired when the value is changed.
|
|
678
|
-
*
|
|
679
|
-
* @param {React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>} event The event source of the callback.
|
|
680
|
-
* You can pull out the new value by accessing `event.target.value` (string).
|
|
681
|
-
*/
|
|
682
|
-
onChange: e.func,
|
|
683
|
-
/**
|
|
684
|
-
* @ignore
|
|
685
|
-
*/
|
|
686
|
-
onClick: e.func,
|
|
687
|
-
/**
|
|
688
|
-
* @ignore
|
|
689
|
-
*/
|
|
690
|
-
onFocus: e.func,
|
|
691
|
-
/**
|
|
692
|
-
* Callback fired when the `input` doesn't satisfy its constraints.
|
|
693
|
-
*/
|
|
694
|
-
onInvalid: e.func,
|
|
695
|
-
/**
|
|
696
|
-
* @ignore
|
|
697
|
-
*/
|
|
698
|
-
onKeyDown: e.func,
|
|
699
|
-
/**
|
|
700
|
-
* @ignore
|
|
701
|
-
*/
|
|
702
|
-
onKeyUp: e.func,
|
|
703
|
-
/**
|
|
704
|
-
* The short hint displayed in the `input` before the user enters a value.
|
|
705
|
-
*/
|
|
706
|
-
placeholder: e.string,
|
|
707
|
-
/**
|
|
708
|
-
* It prevents the user from changing the value of the field
|
|
709
|
-
* (not from interacting with the field).
|
|
710
|
-
*/
|
|
711
|
-
readOnly: e.bool,
|
|
712
|
-
/**
|
|
713
|
-
* @ignore
|
|
714
|
-
*/
|
|
715
|
-
renderSuffix: e.func,
|
|
716
|
-
/**
|
|
717
|
-
* If `true`, the `input` element is required.
|
|
718
|
-
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
|
|
719
|
-
*/
|
|
720
|
-
required: e.bool,
|
|
721
|
-
/**
|
|
722
|
-
* Number of rows to display when multiline option is set to true.
|
|
723
|
-
*/
|
|
724
|
-
rows: e.oneOfType([e.number, e.string]),
|
|
725
|
-
/**
|
|
726
|
-
* The size of the component.
|
|
727
|
-
*/
|
|
728
|
-
size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
|
|
729
|
-
/**
|
|
730
|
-
* The extra props for the slot components.
|
|
731
|
-
* You can override the existing props or add new ones.
|
|
732
|
-
*
|
|
733
|
-
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
|
734
|
-
*
|
|
735
|
-
* @default {}
|
|
736
|
-
*/
|
|
737
|
-
slotProps: e.shape({
|
|
738
|
-
input: e.object,
|
|
739
|
-
root: e.object
|
|
740
|
-
}),
|
|
741
|
-
/**
|
|
742
|
-
* The components used for each slot inside.
|
|
743
|
-
*
|
|
744
|
-
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
|
745
|
-
*
|
|
746
|
-
* @default {}
|
|
747
|
-
*/
|
|
748
|
-
slots: e.shape({
|
|
749
|
-
input: e.elementType,
|
|
750
|
-
root: e.elementType
|
|
751
|
-
}),
|
|
752
|
-
/**
|
|
753
|
-
* Start `InputAdornment` for this component.
|
|
754
|
-
*/
|
|
755
|
-
startAdornment: e.node,
|
|
756
|
-
/**
|
|
757
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
758
|
-
*/
|
|
759
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
760
|
-
/**
|
|
761
|
-
* Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).
|
|
762
|
-
* @default 'text'
|
|
763
|
-
*/
|
|
764
|
-
type: e.string,
|
|
765
|
-
/**
|
|
766
|
-
* The value of the `input` element, required for a controlled component.
|
|
767
|
-
*/
|
|
768
|
-
value: e.any
|
|
769
|
-
});
|
|
770
|
-
function fo(o) {
|
|
771
|
-
return J("MuiInput", o);
|
|
772
|
-
}
|
|
773
|
-
const H = i({}, se, X("MuiInput", ["root", "underline", "input"])), mo = ["disableUnderline", "components", "componentsProps", "fullWidth", "inputComponent", "multiline", "slotProps", "slots", "type"], bo = (o) => {
|
|
774
|
-
const {
|
|
775
|
-
classes: n,
|
|
776
|
-
disableUnderline: t
|
|
777
|
-
} = o, s = Z({
|
|
778
|
-
root: ["root", !t && "underline"],
|
|
779
|
-
input: ["input"]
|
|
780
|
-
}, fo, n);
|
|
781
|
-
return i({}, n, s);
|
|
782
|
-
}, ho = L(Be, {
|
|
783
|
-
shouldForwardProp: (o) => Ee(o) || o === "classes",
|
|
784
|
-
name: "MuiInput",
|
|
785
|
-
slot: "Root",
|
|
786
|
-
overridesResolver: (o, n) => {
|
|
787
|
-
const {
|
|
788
|
-
ownerState: t
|
|
789
|
-
} = o;
|
|
790
|
-
return [...We(o, n), !t.disableUnderline && n.underline];
|
|
791
|
-
}
|
|
792
|
-
})(({
|
|
793
|
-
theme: o,
|
|
794
|
-
ownerState: n
|
|
795
|
-
}) => {
|
|
796
|
-
let r = o.palette.mode === "light" ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)";
|
|
797
|
-
return o.vars && (r = `rgba(${o.vars.palette.common.onBackgroundChannel} / ${o.vars.opacity.inputUnderline})`), i({
|
|
798
|
-
position: "relative"
|
|
799
|
-
}, n.formControl && {
|
|
800
|
-
"label + &": {
|
|
801
|
-
marginTop: 16
|
|
802
|
-
}
|
|
803
|
-
}, !n.disableUnderline && {
|
|
804
|
-
"&:after": {
|
|
805
|
-
borderBottom: `2px solid ${(o.vars || o).palette[n.color].main}`,
|
|
806
|
-
left: 0,
|
|
807
|
-
bottom: 0,
|
|
808
|
-
// Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
|
|
809
|
-
content: '""',
|
|
810
|
-
position: "absolute",
|
|
811
|
-
right: 0,
|
|
812
|
-
transform: "scaleX(0)",
|
|
813
|
-
transition: o.transitions.create("transform", {
|
|
814
|
-
duration: o.transitions.duration.shorter,
|
|
815
|
-
easing: o.transitions.easing.easeOut
|
|
816
|
-
}),
|
|
817
|
-
pointerEvents: "none"
|
|
818
|
-
// Transparent to the hover style.
|
|
819
|
-
},
|
|
820
|
-
[`&.${H.focused}:after`]: {
|
|
821
|
-
// translateX(0) is a workaround for Safari transform scale bug
|
|
822
|
-
// See https://github.com/mui/material-ui/issues/31766
|
|
823
|
-
transform: "scaleX(1) translateX(0)"
|
|
824
|
-
},
|
|
825
|
-
[`&.${H.error}`]: {
|
|
826
|
-
"&:before, &:after": {
|
|
827
|
-
borderBottomColor: (o.vars || o).palette.error.main
|
|
828
|
-
}
|
|
829
|
-
},
|
|
830
|
-
"&:before": {
|
|
831
|
-
borderBottom: `1px solid ${r}`,
|
|
832
|
-
left: 0,
|
|
833
|
-
bottom: 0,
|
|
834
|
-
// Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
|
|
835
|
-
content: '"\\00a0"',
|
|
836
|
-
position: "absolute",
|
|
837
|
-
right: 0,
|
|
838
|
-
transition: o.transitions.create("border-bottom-color", {
|
|
839
|
-
duration: o.transitions.duration.shorter
|
|
840
|
-
}),
|
|
841
|
-
pointerEvents: "none"
|
|
842
|
-
// Transparent to the hover style.
|
|
843
|
-
},
|
|
844
|
-
[`&:hover:not(.${H.disabled}, .${H.error}):before`]: {
|
|
845
|
-
borderBottom: `2px solid ${(o.vars || o).palette.text.primary}`,
|
|
846
|
-
// Reset on touch devices, it doesn't add specificity
|
|
847
|
-
"@media (hover: none)": {
|
|
848
|
-
borderBottom: `1px solid ${r}`
|
|
849
|
-
}
|
|
850
|
-
},
|
|
851
|
-
[`&.${H.disabled}:before`]: {
|
|
852
|
-
borderBottomStyle: "dotted"
|
|
853
|
-
}
|
|
854
|
-
});
|
|
855
|
-
}), yo = L($e, {
|
|
856
|
-
name: "MuiInput",
|
|
857
|
-
slot: "Input",
|
|
858
|
-
overridesResolver: Le
|
|
859
|
-
})({}), _e = /* @__PURE__ */ l.forwardRef(function(n, t) {
|
|
860
|
-
var r, s, u, m;
|
|
861
|
-
const b = Y({
|
|
862
|
-
props: n,
|
|
863
|
-
name: "MuiInput"
|
|
864
|
-
}), {
|
|
865
|
-
disableUnderline: c,
|
|
866
|
-
components: a = {},
|
|
867
|
-
componentsProps: p,
|
|
868
|
-
fullWidth: x = !1,
|
|
869
|
-
inputComponent: w = "input",
|
|
870
|
-
multiline: R = !1,
|
|
871
|
-
slotProps: S,
|
|
872
|
-
slots: I = {},
|
|
873
|
-
type: N = "text"
|
|
874
|
-
} = b, M = j(b, mo), C = bo(b), F = {
|
|
875
|
-
root: {
|
|
876
|
-
ownerState: {
|
|
877
|
-
disableUnderline: c
|
|
878
|
-
}
|
|
879
|
-
}
|
|
880
|
-
}, d = S ?? p ? eo(S ?? p, F) : F, v = (r = (s = I.root) != null ? s : a.Root) != null ? r : ho, g = (u = (m = I.input) != null ? m : a.Input) != null ? u : yo;
|
|
881
|
-
return /* @__PURE__ */ k(Ue, i({
|
|
882
|
-
slots: {
|
|
883
|
-
root: v,
|
|
884
|
-
input: g
|
|
885
|
-
},
|
|
886
|
-
slotProps: d,
|
|
887
|
-
fullWidth: x,
|
|
888
|
-
inputComponent: w,
|
|
889
|
-
multiline: R,
|
|
890
|
-
ref: t,
|
|
891
|
-
type: N
|
|
892
|
-
}, M, {
|
|
893
|
-
classes: C
|
|
894
|
-
}));
|
|
895
|
-
});
|
|
896
|
-
process.env.NODE_ENV !== "production" && (_e.propTypes = {
|
|
897
|
-
// ----------------------------- Warning --------------------------------
|
|
898
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
899
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
900
|
-
// ----------------------------------------------------------------------
|
|
901
|
-
/**
|
|
902
|
-
* This prop helps users to fill forms faster, especially on mobile devices.
|
|
903
|
-
* The name can be confusing, as it's more like an autofill.
|
|
904
|
-
* You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).
|
|
905
|
-
*/
|
|
906
|
-
autoComplete: e.string,
|
|
907
|
-
/**
|
|
908
|
-
* If `true`, the `input` element is focused during the first mount.
|
|
909
|
-
*/
|
|
910
|
-
autoFocus: e.bool,
|
|
911
|
-
/**
|
|
912
|
-
* Override or extend the styles applied to the component.
|
|
913
|
-
*/
|
|
914
|
-
classes: e.object,
|
|
915
|
-
/**
|
|
916
|
-
* The color of the component.
|
|
917
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
918
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
919
|
-
* The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
|
|
920
|
-
*/
|
|
921
|
-
color: e.oneOfType([e.oneOf(["primary", "secondary"]), e.string]),
|
|
922
|
-
/**
|
|
923
|
-
* The components used for each slot inside.
|
|
924
|
-
*
|
|
925
|
-
* This prop is an alias for the `slots` prop.
|
|
926
|
-
* It's recommended to use the `slots` prop instead.
|
|
927
|
-
*
|
|
928
|
-
* @default {}
|
|
929
|
-
*/
|
|
930
|
-
components: e.shape({
|
|
931
|
-
Input: e.elementType,
|
|
932
|
-
Root: e.elementType
|
|
933
|
-
}),
|
|
934
|
-
/**
|
|
935
|
-
* The extra props for the slot components.
|
|
936
|
-
* You can override the existing props or add new ones.
|
|
937
|
-
*
|
|
938
|
-
* This prop is an alias for the `slotProps` prop.
|
|
939
|
-
* It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
|
|
940
|
-
*
|
|
941
|
-
* @default {}
|
|
942
|
-
*/
|
|
943
|
-
componentsProps: e.shape({
|
|
944
|
-
input: e.object,
|
|
945
|
-
root: e.object
|
|
946
|
-
}),
|
|
947
|
-
/**
|
|
948
|
-
* The default value. Use when the component is not controlled.
|
|
949
|
-
*/
|
|
950
|
-
defaultValue: e.any,
|
|
951
|
-
/**
|
|
952
|
-
* If `true`, the component is disabled.
|
|
953
|
-
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
|
|
954
|
-
*/
|
|
955
|
-
disabled: e.bool,
|
|
956
|
-
/**
|
|
957
|
-
* If `true`, the `input` will not have an underline.
|
|
958
|
-
*/
|
|
959
|
-
disableUnderline: e.bool,
|
|
960
|
-
/**
|
|
961
|
-
* End `InputAdornment` for this component.
|
|
962
|
-
*/
|
|
963
|
-
endAdornment: e.node,
|
|
964
|
-
/**
|
|
965
|
-
* If `true`, the `input` will indicate an error.
|
|
966
|
-
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
|
|
967
|
-
*/
|
|
968
|
-
error: e.bool,
|
|
969
|
-
/**
|
|
970
|
-
* If `true`, the `input` will take up the full width of its container.
|
|
971
|
-
* @default false
|
|
972
|
-
*/
|
|
973
|
-
fullWidth: e.bool,
|
|
974
|
-
/**
|
|
975
|
-
* The id of the `input` element.
|
|
976
|
-
*/
|
|
977
|
-
id: e.string,
|
|
978
|
-
/**
|
|
979
|
-
* The component used for the `input` element.
|
|
980
|
-
* Either a string to use a HTML element or a component.
|
|
981
|
-
* @default 'input'
|
|
982
|
-
*/
|
|
983
|
-
inputComponent: e.elementType,
|
|
984
|
-
/**
|
|
985
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
986
|
-
* @default {}
|
|
987
|
-
*/
|
|
988
|
-
inputProps: e.object,
|
|
989
|
-
/**
|
|
990
|
-
* Pass a ref to the `input` element.
|
|
991
|
-
*/
|
|
992
|
-
inputRef: ze,
|
|
993
|
-
/**
|
|
994
|
-
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
995
|
-
* FormControl.
|
|
996
|
-
* The prop defaults to the value (`'none'`) inherited from the parent FormControl component.
|
|
997
|
-
*/
|
|
998
|
-
margin: e.oneOf(["dense", "none"]),
|
|
999
|
-
/**
|
|
1000
|
-
* Maximum number of rows to display when multiline option is set to true.
|
|
1001
|
-
*/
|
|
1002
|
-
maxRows: e.oneOfType([e.number, e.string]),
|
|
1003
|
-
/**
|
|
1004
|
-
* Minimum number of rows to display when multiline option is set to true.
|
|
1005
|
-
*/
|
|
1006
|
-
minRows: e.oneOfType([e.number, e.string]),
|
|
1007
|
-
/**
|
|
1008
|
-
* If `true`, a [TextareaAutosize](/material-ui/react-textarea-autosize/) element is rendered.
|
|
1009
|
-
* @default false
|
|
1010
|
-
*/
|
|
1011
|
-
multiline: e.bool,
|
|
1012
|
-
/**
|
|
1013
|
-
* Name attribute of the `input` element.
|
|
1014
|
-
*/
|
|
1015
|
-
name: e.string,
|
|
1016
|
-
/**
|
|
1017
|
-
* Callback fired when the value is changed.
|
|
1018
|
-
*
|
|
1019
|
-
* @param {React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>} event The event source of the callback.
|
|
1020
|
-
* You can pull out the new value by accessing `event.target.value` (string).
|
|
1021
|
-
*/
|
|
1022
|
-
onChange: e.func,
|
|
1023
|
-
/**
|
|
1024
|
-
* The short hint displayed in the `input` before the user enters a value.
|
|
1025
|
-
*/
|
|
1026
|
-
placeholder: e.string,
|
|
1027
|
-
/**
|
|
1028
|
-
* It prevents the user from changing the value of the field
|
|
1029
|
-
* (not from interacting with the field).
|
|
1030
|
-
*/
|
|
1031
|
-
readOnly: e.bool,
|
|
1032
|
-
/**
|
|
1033
|
-
* If `true`, the `input` element is required.
|
|
1034
|
-
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
|
|
1035
|
-
*/
|
|
1036
|
-
required: e.bool,
|
|
1037
|
-
/**
|
|
1038
|
-
* Number of rows to display when multiline option is set to true.
|
|
1039
|
-
*/
|
|
1040
|
-
rows: e.oneOfType([e.number, e.string]),
|
|
1041
|
-
/**
|
|
1042
|
-
* The extra props for the slot components.
|
|
1043
|
-
* You can override the existing props or add new ones.
|
|
1044
|
-
*
|
|
1045
|
-
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
|
1046
|
-
*
|
|
1047
|
-
* @default {}
|
|
1048
|
-
*/
|
|
1049
|
-
slotProps: e.shape({
|
|
1050
|
-
input: e.object,
|
|
1051
|
-
root: e.object
|
|
1052
|
-
}),
|
|
1053
|
-
/**
|
|
1054
|
-
* The components used for each slot inside.
|
|
1055
|
-
*
|
|
1056
|
-
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
|
1057
|
-
*
|
|
1058
|
-
* @default {}
|
|
1059
|
-
*/
|
|
1060
|
-
slots: e.shape({
|
|
1061
|
-
input: e.elementType,
|
|
1062
|
-
root: e.elementType
|
|
1063
|
-
}),
|
|
1064
|
-
/**
|
|
1065
|
-
* Start `InputAdornment` for this component.
|
|
1066
|
-
*/
|
|
1067
|
-
startAdornment: e.node,
|
|
1068
|
-
/**
|
|
1069
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1070
|
-
*/
|
|
1071
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
1072
|
-
/**
|
|
1073
|
-
* Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).
|
|
1074
|
-
* @default 'text'
|
|
1075
|
-
*/
|
|
1076
|
-
type: e.string,
|
|
1077
|
-
/**
|
|
1078
|
-
* The value of the `input` element, required for a controlled component.
|
|
1079
|
-
*/
|
|
1080
|
-
value: e.any
|
|
1081
|
-
});
|
|
1082
|
-
_e.muiName = "Input";
|
|
1083
|
-
function go(o) {
|
|
1084
|
-
return J("MuiFormLabel", o);
|
|
1085
|
-
}
|
|
1086
|
-
const V = X("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "error", "filled", "required", "asterisk"]), vo = ["children", "className", "color", "component", "disabled", "error", "filled", "focused", "required"], xo = (o) => {
|
|
1087
|
-
const {
|
|
1088
|
-
classes: n,
|
|
1089
|
-
color: t,
|
|
1090
|
-
focused: r,
|
|
1091
|
-
disabled: s,
|
|
1092
|
-
error: u,
|
|
1093
|
-
filled: m,
|
|
1094
|
-
required: b
|
|
1095
|
-
} = o, c = {
|
|
1096
|
-
root: ["root", `color${Q(t)}`, s && "disabled", u && "error", m && "filled", r && "focused", b && "required"],
|
|
1097
|
-
asterisk: ["asterisk", u && "error"]
|
|
1098
|
-
};
|
|
1099
|
-
return Z(c, go, n);
|
|
1100
|
-
}, Co = L("label", {
|
|
1101
|
-
name: "MuiFormLabel",
|
|
1102
|
-
slot: "Root",
|
|
1103
|
-
overridesResolver: ({
|
|
1104
|
-
ownerState: o
|
|
1105
|
-
}, n) => i({}, n.root, o.color === "secondary" && n.colorSecondary, o.filled && n.filled)
|
|
1106
|
-
})(({
|
|
1107
|
-
theme: o,
|
|
1108
|
-
ownerState: n
|
|
1109
|
-
}) => i({
|
|
1110
|
-
color: (o.vars || o).palette.text.secondary
|
|
1111
|
-
}, o.typography.body1, {
|
|
1112
|
-
lineHeight: "1.4375em",
|
|
1113
|
-
padding: 0,
|
|
1114
|
-
position: "relative",
|
|
1115
|
-
[`&.${V.focused}`]: {
|
|
1116
|
-
color: (o.vars || o).palette[n.color].main
|
|
1117
|
-
},
|
|
1118
|
-
[`&.${V.disabled}`]: {
|
|
1119
|
-
color: (o.vars || o).palette.text.disabled
|
|
1120
|
-
},
|
|
1121
|
-
[`&.${V.error}`]: {
|
|
1122
|
-
color: (o.vars || o).palette.error.main
|
|
1123
|
-
}
|
|
1124
|
-
})), Oo = L("span", {
|
|
1125
|
-
name: "MuiFormLabel",
|
|
1126
|
-
slot: "Asterisk",
|
|
1127
|
-
overridesResolver: (o, n) => n.asterisk
|
|
1128
|
-
})(({
|
|
1129
|
-
theme: o
|
|
1130
|
-
}) => ({
|
|
1131
|
-
[`&.${V.error}`]: {
|
|
1132
|
-
color: (o.vars || o).palette.error.main
|
|
1133
|
-
}
|
|
1134
|
-
})), je = /* @__PURE__ */ l.forwardRef(function(n, t) {
|
|
1135
|
-
const r = Y({
|
|
1136
|
-
props: n,
|
|
1137
|
-
name: "MuiFormLabel"
|
|
1138
|
-
}), {
|
|
1139
|
-
children: s,
|
|
1140
|
-
className: u,
|
|
1141
|
-
component: m = "label"
|
|
1142
|
-
} = r, b = j(r, vo), c = me(), a = be({
|
|
1143
|
-
props: r,
|
|
1144
|
-
muiFormControl: c,
|
|
1145
|
-
states: ["color", "required", "focused", "disabled", "error", "filled"]
|
|
1146
|
-
}), p = i({}, r, {
|
|
1147
|
-
color: a.color || "primary",
|
|
1148
|
-
component: m,
|
|
1149
|
-
disabled: a.disabled,
|
|
1150
|
-
error: a.error,
|
|
1151
|
-
filled: a.filled,
|
|
1152
|
-
focused: a.focused,
|
|
1153
|
-
required: a.required
|
|
1154
|
-
}), x = xo(p);
|
|
1155
|
-
return /* @__PURE__ */ G(Co, i({
|
|
1156
|
-
as: m,
|
|
1157
|
-
ownerState: p,
|
|
1158
|
-
className: K(x.root, u),
|
|
1159
|
-
ref: t
|
|
1160
|
-
}, b, {
|
|
1161
|
-
children: [s, a.required && /* @__PURE__ */ G(Oo, {
|
|
1162
|
-
ownerState: p,
|
|
1163
|
-
"aria-hidden": !0,
|
|
1164
|
-
className: x.asterisk,
|
|
1165
|
-
children: [" ", "*"]
|
|
1166
|
-
})]
|
|
1167
|
-
}));
|
|
1168
|
-
});
|
|
1169
|
-
process.env.NODE_ENV !== "production" && (je.propTypes = {
|
|
1170
|
-
// ----------------------------- Warning --------------------------------
|
|
1171
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1172
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
1173
|
-
// ----------------------------------------------------------------------
|
|
1174
|
-
/**
|
|
1175
|
-
* The content of the component.
|
|
1176
|
-
*/
|
|
1177
|
-
children: e.node,
|
|
1178
|
-
/**
|
|
1179
|
-
* Override or extend the styles applied to the component.
|
|
1180
|
-
*/
|
|
1181
|
-
classes: e.object,
|
|
1182
|
-
/**
|
|
1183
|
-
* @ignore
|
|
1184
|
-
*/
|
|
1185
|
-
className: e.string,
|
|
1186
|
-
/**
|
|
1187
|
-
* The color of the component.
|
|
1188
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
1189
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
1190
|
-
*/
|
|
1191
|
-
color: e.oneOfType([e.oneOf(["error", "info", "primary", "secondary", "success", "warning"]), e.string]),
|
|
1192
|
-
/**
|
|
1193
|
-
* The component used for the root node.
|
|
1194
|
-
* Either a string to use a HTML element or a component.
|
|
1195
|
-
*/
|
|
1196
|
-
component: e.elementType,
|
|
1197
|
-
/**
|
|
1198
|
-
* If `true`, the label should be displayed in a disabled state.
|
|
1199
|
-
*/
|
|
1200
|
-
disabled: e.bool,
|
|
1201
|
-
/**
|
|
1202
|
-
* If `true`, the label is displayed in an error state.
|
|
1203
|
-
*/
|
|
1204
|
-
error: e.bool,
|
|
1205
|
-
/**
|
|
1206
|
-
* If `true`, the label should use filled classes key.
|
|
1207
|
-
*/
|
|
1208
|
-
filled: e.bool,
|
|
1209
|
-
/**
|
|
1210
|
-
* If `true`, the input of this label is focused (used by `FormGroup` components).
|
|
1211
|
-
*/
|
|
1212
|
-
focused: e.bool,
|
|
1213
|
-
/**
|
|
1214
|
-
* If `true`, the label will indicate that the `input` is required.
|
|
1215
|
-
*/
|
|
1216
|
-
required: e.bool,
|
|
1217
|
-
/**
|
|
1218
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1219
|
-
*/
|
|
1220
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
1221
|
-
});
|
|
1222
|
-
function wo(o) {
|
|
1223
|
-
return J("MuiInputLabel", o);
|
|
1224
|
-
}
|
|
1225
|
-
X("MuiInputLabel", ["root", "focused", "disabled", "error", "required", "asterisk", "formControl", "sizeSmall", "shrink", "animated", "standard", "filled", "outlined"]);
|
|
1226
|
-
const So = ["disableAnimation", "margin", "shrink", "variant", "className"], Ro = (o) => {
|
|
1227
|
-
const {
|
|
1228
|
-
classes: n,
|
|
1229
|
-
formControl: t,
|
|
1230
|
-
size: r,
|
|
1231
|
-
shrink: s,
|
|
1232
|
-
disableAnimation: u,
|
|
1233
|
-
variant: m,
|
|
1234
|
-
required: b
|
|
1235
|
-
} = o, a = Z({
|
|
1236
|
-
root: ["root", t && "formControl", !u && "animated", s && "shrink", r === "small" && "sizeSmall", m],
|
|
1237
|
-
asterisk: [b && "asterisk"]
|
|
1238
|
-
}, wo, n);
|
|
1239
|
-
return i({}, n, a);
|
|
1240
|
-
}, To = L(je, {
|
|
1241
|
-
shouldForwardProp: (o) => Ee(o) || o === "classes",
|
|
1242
|
-
name: "MuiInputLabel",
|
|
1243
|
-
slot: "Root",
|
|
1244
|
-
overridesResolver: (o, n) => {
|
|
1245
|
-
const {
|
|
1246
|
-
ownerState: t
|
|
1247
|
-
} = o;
|
|
1248
|
-
return [{
|
|
1249
|
-
[`& .${V.asterisk}`]: n.asterisk
|
|
1250
|
-
}, n.root, t.formControl && n.formControl, t.size === "small" && n.sizeSmall, t.shrink && n.shrink, !t.disableAnimation && n.animated, n[t.variant]];
|
|
1251
|
-
}
|
|
1252
|
-
})(({
|
|
1253
|
-
theme: o,
|
|
1254
|
-
ownerState: n
|
|
1255
|
-
}) => i({
|
|
1256
|
-
display: "block",
|
|
1257
|
-
transformOrigin: "top left",
|
|
1258
|
-
whiteSpace: "nowrap",
|
|
1259
|
-
overflow: "hidden",
|
|
1260
|
-
textOverflow: "ellipsis",
|
|
1261
|
-
maxWidth: "100%"
|
|
1262
|
-
}, n.formControl && {
|
|
1263
|
-
position: "absolute",
|
|
1264
|
-
left: 0,
|
|
1265
|
-
top: 0,
|
|
1266
|
-
// slight alteration to spec spacing to match visual spec result
|
|
1267
|
-
transform: "translate(0, 20px) scale(1)"
|
|
1268
|
-
}, n.size === "small" && {
|
|
1269
|
-
// Compensation for the `Input.inputSizeSmall` style.
|
|
1270
|
-
transform: "translate(0, 17px) scale(1)"
|
|
1271
|
-
}, n.shrink && {
|
|
1272
|
-
transform: "translate(0, -1.5px) scale(0.75)",
|
|
1273
|
-
transformOrigin: "top left",
|
|
1274
|
-
maxWidth: "133%"
|
|
1275
|
-
}, !n.disableAnimation && {
|
|
1276
|
-
transition: o.transitions.create(["color", "transform", "max-width"], {
|
|
1277
|
-
duration: o.transitions.duration.shorter,
|
|
1278
|
-
easing: o.transitions.easing.easeOut
|
|
1279
|
-
})
|
|
1280
|
-
}, n.variant === "filled" && i({
|
|
1281
|
-
// Chrome's autofill feature gives the input field a yellow background.
|
|
1282
|
-
// Since the input field is behind the label in the HTML tree,
|
|
1283
|
-
// the input field is drawn last and hides the label with an opaque background color.
|
|
1284
|
-
// zIndex: 1 will raise the label above opaque background-colors of input.
|
|
1285
|
-
zIndex: 1,
|
|
1286
|
-
pointerEvents: "none",
|
|
1287
|
-
transform: "translate(12px, 16px) scale(1)",
|
|
1288
|
-
maxWidth: "calc(100% - 24px)"
|
|
1289
|
-
}, n.size === "small" && {
|
|
1290
|
-
transform: "translate(12px, 13px) scale(1)"
|
|
1291
|
-
}, n.shrink && i({
|
|
1292
|
-
userSelect: "none",
|
|
1293
|
-
pointerEvents: "auto",
|
|
1294
|
-
transform: "translate(12px, 7px) scale(0.75)",
|
|
1295
|
-
maxWidth: "calc(133% - 24px)"
|
|
1296
|
-
}, n.size === "small" && {
|
|
1297
|
-
transform: "translate(12px, 4px) scale(0.75)"
|
|
1298
|
-
})), n.variant === "outlined" && i({
|
|
1299
|
-
// see comment above on filled.zIndex
|
|
1300
|
-
zIndex: 1,
|
|
1301
|
-
pointerEvents: "none",
|
|
1302
|
-
transform: "translate(14px, 16px) scale(1)",
|
|
1303
|
-
maxWidth: "calc(100% - 24px)"
|
|
1304
|
-
}, n.size === "small" && {
|
|
1305
|
-
transform: "translate(14px, 9px) scale(1)"
|
|
1306
|
-
}, n.shrink && {
|
|
1307
|
-
userSelect: "none",
|
|
1308
|
-
pointerEvents: "auto",
|
|
1309
|
-
// Theoretically, we should have (8+5)*2/0.75 = 34px
|
|
1310
|
-
// but it feels a better when it bleeds a bit on the left, so 32px.
|
|
1311
|
-
maxWidth: "calc(133% - 32px)",
|
|
1312
|
-
transform: "translate(14px, -9px) scale(0.75)"
|
|
1313
|
-
}))), Io = /* @__PURE__ */ l.forwardRef(function(n, t) {
|
|
1314
|
-
const r = Y({
|
|
1315
|
-
name: "MuiInputLabel",
|
|
1316
|
-
props: n
|
|
1317
|
-
}), {
|
|
1318
|
-
disableAnimation: s = !1,
|
|
1319
|
-
shrink: u,
|
|
1320
|
-
className: m
|
|
1321
|
-
} = r, b = j(r, So), c = me();
|
|
1322
|
-
let a = u;
|
|
1323
|
-
typeof a > "u" && c && (a = c.filled || c.focused || c.adornedStart);
|
|
1324
|
-
const p = be({
|
|
1325
|
-
props: r,
|
|
1326
|
-
muiFormControl: c,
|
|
1327
|
-
states: ["size", "variant", "required"]
|
|
1328
|
-
}), x = i({}, r, {
|
|
1329
|
-
disableAnimation: s,
|
|
1330
|
-
formControl: c,
|
|
1331
|
-
shrink: a,
|
|
1332
|
-
size: p.size,
|
|
1333
|
-
variant: p.variant,
|
|
1334
|
-
required: p.required
|
|
1335
|
-
}), w = Ro(x);
|
|
1336
|
-
return /* @__PURE__ */ k(To, i({
|
|
1337
|
-
"data-shrink": a,
|
|
1338
|
-
ownerState: x,
|
|
1339
|
-
ref: t,
|
|
1340
|
-
className: K(w.root, m)
|
|
1341
|
-
}, b, {
|
|
1342
|
-
classes: w
|
|
1343
|
-
}));
|
|
1344
|
-
});
|
|
1345
|
-
process.env.NODE_ENV !== "production" && (Io.propTypes = {
|
|
1346
|
-
// ----------------------------- Warning --------------------------------
|
|
1347
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1348
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
1349
|
-
// ----------------------------------------------------------------------
|
|
1350
|
-
/**
|
|
1351
|
-
* The content of the component.
|
|
1352
|
-
*/
|
|
1353
|
-
children: e.node,
|
|
1354
|
-
/**
|
|
1355
|
-
* Override or extend the styles applied to the component.
|
|
1356
|
-
*/
|
|
1357
|
-
classes: e.object,
|
|
1358
|
-
/**
|
|
1359
|
-
* @ignore
|
|
1360
|
-
*/
|
|
1361
|
-
className: e.string,
|
|
1362
|
-
/**
|
|
1363
|
-
* The color of the component.
|
|
1364
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
1365
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
1366
|
-
*/
|
|
1367
|
-
color: e.oneOfType([e.oneOf(["error", "info", "primary", "secondary", "success", "warning"]), e.string]),
|
|
1368
|
-
/**
|
|
1369
|
-
* If `true`, the transition animation is disabled.
|
|
1370
|
-
* @default false
|
|
1371
|
-
*/
|
|
1372
|
-
disableAnimation: e.bool,
|
|
1373
|
-
/**
|
|
1374
|
-
* If `true`, the component is disabled.
|
|
1375
|
-
*/
|
|
1376
|
-
disabled: e.bool,
|
|
1377
|
-
/**
|
|
1378
|
-
* If `true`, the label is displayed in an error state.
|
|
1379
|
-
*/
|
|
1380
|
-
error: e.bool,
|
|
1381
|
-
/**
|
|
1382
|
-
* If `true`, the `input` of this label is focused.
|
|
1383
|
-
*/
|
|
1384
|
-
focused: e.bool,
|
|
1385
|
-
/**
|
|
1386
|
-
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
1387
|
-
* FormControl.
|
|
1388
|
-
*/
|
|
1389
|
-
margin: e.oneOf(["dense"]),
|
|
1390
|
-
/**
|
|
1391
|
-
* if `true`, the label will indicate that the `input` is required.
|
|
1392
|
-
*/
|
|
1393
|
-
required: e.bool,
|
|
1394
|
-
/**
|
|
1395
|
-
* If `true`, the label is shrunk.
|
|
1396
|
-
*/
|
|
1397
|
-
shrink: e.bool,
|
|
1398
|
-
/**
|
|
1399
|
-
* The size of the component.
|
|
1400
|
-
* @default 'normal'
|
|
1401
|
-
*/
|
|
1402
|
-
size: e.oneOfType([e.oneOf(["normal", "small"]), e.string]),
|
|
1403
|
-
/**
|
|
1404
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1405
|
-
*/
|
|
1406
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
1407
|
-
/**
|
|
1408
|
-
* The variant to use.
|
|
1409
|
-
*/
|
|
1410
|
-
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
1411
|
-
});
|
|
1412
|
-
function Eo(o) {
|
|
1413
|
-
return J("MuiFormControl", o);
|
|
1414
|
-
}
|
|
1415
|
-
X("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDense", "fullWidth", "disabled"]);
|
|
1416
|
-
const No = ["children", "className", "color", "component", "disabled", "error", "focused", "fullWidth", "hiddenLabel", "margin", "required", "size", "variant"], Fo = (o) => {
|
|
1417
|
-
const {
|
|
1418
|
-
classes: n,
|
|
1419
|
-
margin: t,
|
|
1420
|
-
fullWidth: r
|
|
1421
|
-
} = o, s = {
|
|
1422
|
-
root: ["root", t !== "none" && `margin${Q(t)}`, r && "fullWidth"]
|
|
1423
|
-
};
|
|
1424
|
-
return Z(s, Eo, n);
|
|
1425
|
-
}, ko = L("div", {
|
|
1426
|
-
name: "MuiFormControl",
|
|
1427
|
-
slot: "Root",
|
|
1428
|
-
overridesResolver: ({
|
|
1429
|
-
ownerState: o
|
|
1430
|
-
}, n) => i({}, n.root, n[`margin${Q(o.margin)}`], o.fullWidth && n.fullWidth)
|
|
1431
|
-
})(({
|
|
1432
|
-
ownerState: o
|
|
1433
|
-
}) => i({
|
|
1434
|
-
display: "inline-flex",
|
|
1435
|
-
flexDirection: "column",
|
|
1436
|
-
position: "relative",
|
|
1437
|
-
// Reset fieldset default style.
|
|
1438
|
-
minWidth: 0,
|
|
1439
|
-
padding: 0,
|
|
1440
|
-
margin: 0,
|
|
1441
|
-
border: 0,
|
|
1442
|
-
verticalAlign: "top"
|
|
1443
|
-
}, o.margin === "normal" && {
|
|
1444
|
-
marginTop: 16,
|
|
1445
|
-
marginBottom: 8
|
|
1446
|
-
}, o.margin === "dense" && {
|
|
1447
|
-
marginTop: 8,
|
|
1448
|
-
marginBottom: 4
|
|
1449
|
-
}, o.fullWidth && {
|
|
1450
|
-
width: "100%"
|
|
1451
|
-
})), zo = /* @__PURE__ */ l.forwardRef(function(n, t) {
|
|
1452
|
-
const r = Y({
|
|
1453
|
-
props: n,
|
|
1454
|
-
name: "MuiFormControl"
|
|
1455
|
-
}), {
|
|
1456
|
-
children: s,
|
|
1457
|
-
className: u,
|
|
1458
|
-
color: m = "primary",
|
|
1459
|
-
component: b = "div",
|
|
1460
|
-
disabled: c = !1,
|
|
1461
|
-
error: a = !1,
|
|
1462
|
-
focused: p,
|
|
1463
|
-
fullWidth: x = !1,
|
|
1464
|
-
hiddenLabel: w = !1,
|
|
1465
|
-
margin: R = "none",
|
|
1466
|
-
required: S = !1,
|
|
1467
|
-
size: I = "medium",
|
|
1468
|
-
variant: N = "outlined"
|
|
1469
|
-
} = r, M = j(r, No), C = i({}, r, {
|
|
1470
|
-
color: m,
|
|
1471
|
-
component: b,
|
|
1472
|
-
disabled: c,
|
|
1473
|
-
error: a,
|
|
1474
|
-
fullWidth: x,
|
|
1475
|
-
hiddenLabel: w,
|
|
1476
|
-
margin: R,
|
|
1477
|
-
required: S,
|
|
1478
|
-
size: I,
|
|
1479
|
-
variant: N
|
|
1480
|
-
}), $ = Fo(C), [F, d] = l.useState(() => {
|
|
1481
|
-
let T = !1;
|
|
1482
|
-
return s && l.Children.forEach(s, (O) => {
|
|
1483
|
-
if (!fe(O, ["Input", "Select"]))
|
|
1484
|
-
return;
|
|
1485
|
-
const W = fe(O, ["Select"]) ? O.props.input : O;
|
|
1486
|
-
W && lo(W.props) && (T = !0);
|
|
1487
|
-
}), T;
|
|
1488
|
-
}), [v, g] = l.useState(() => {
|
|
1489
|
-
let T = !1;
|
|
1490
|
-
return s && l.Children.forEach(s, (O) => {
|
|
1491
|
-
fe(O, ["Input", "Select"]) && Pe(O.props, !0) && (T = !0);
|
|
1492
|
-
}), T;
|
|
1493
|
-
}), [h, A] = l.useState(!1);
|
|
1494
|
-
c && h && A(!1);
|
|
1495
|
-
const B = p !== void 0 && !c ? p : h;
|
|
1496
|
-
let P;
|
|
1497
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1498
|
-
const T = l.useRef(!1);
|
|
1499
|
-
P = () => (T.current && console.error(["MUI: There are multiple `InputBase` components inside a FormControl.", "This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
1500
|
-
`)), T.current = !0, () => {
|
|
1501
|
-
T.current = !1;
|
|
1502
|
-
});
|
|
1503
|
-
}
|
|
1504
|
-
const U = l.useMemo(() => ({
|
|
1505
|
-
adornedStart: F,
|
|
1506
|
-
setAdornedStart: d,
|
|
1507
|
-
color: m,
|
|
1508
|
-
disabled: c,
|
|
1509
|
-
error: a,
|
|
1510
|
-
filled: v,
|
|
1511
|
-
focused: B,
|
|
1512
|
-
fullWidth: x,
|
|
1513
|
-
hiddenLabel: w,
|
|
1514
|
-
size: I,
|
|
1515
|
-
onBlur: () => {
|
|
1516
|
-
A(!1);
|
|
1517
|
-
},
|
|
1518
|
-
onEmpty: () => {
|
|
1519
|
-
g(!1);
|
|
1520
|
-
},
|
|
1521
|
-
onFilled: () => {
|
|
1522
|
-
g(!0);
|
|
1523
|
-
},
|
|
1524
|
-
onFocus: () => {
|
|
1525
|
-
A(!0);
|
|
1526
|
-
},
|
|
1527
|
-
registerEffect: P,
|
|
1528
|
-
required: S,
|
|
1529
|
-
variant: N
|
|
1530
|
-
}), [F, m, c, a, v, B, x, w, P, S, I, N]);
|
|
1531
|
-
return /* @__PURE__ */ k(Ne.Provider, {
|
|
1532
|
-
value: U,
|
|
1533
|
-
children: /* @__PURE__ */ k(ko, i({
|
|
1534
|
-
as: b,
|
|
1535
|
-
ownerState: C,
|
|
1536
|
-
className: K($.root, u),
|
|
1537
|
-
ref: t
|
|
1538
|
-
}, M, {
|
|
1539
|
-
children: s
|
|
1540
|
-
}))
|
|
1541
|
-
});
|
|
1542
|
-
});
|
|
1543
|
-
process.env.NODE_ENV !== "production" && (zo.propTypes = {
|
|
1544
|
-
// ----------------------------- Warning --------------------------------
|
|
1545
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1546
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
1547
|
-
// ----------------------------------------------------------------------
|
|
1548
|
-
/**
|
|
1549
|
-
* The content of the component.
|
|
1550
|
-
*/
|
|
1551
|
-
children: e.node,
|
|
1552
|
-
/**
|
|
1553
|
-
* Override or extend the styles applied to the component.
|
|
1554
|
-
*/
|
|
1555
|
-
classes: e.object,
|
|
1556
|
-
/**
|
|
1557
|
-
* @ignore
|
|
1558
|
-
*/
|
|
1559
|
-
className: e.string,
|
|
1560
|
-
/**
|
|
1561
|
-
* The color of the component.
|
|
1562
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
1563
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
1564
|
-
* @default 'primary'
|
|
1565
|
-
*/
|
|
1566
|
-
color: e.oneOfType([e.oneOf(["primary", "secondary", "error", "info", "success", "warning"]), e.string]),
|
|
1567
|
-
/**
|
|
1568
|
-
* The component used for the root node.
|
|
1569
|
-
* Either a string to use a HTML element or a component.
|
|
1570
|
-
*/
|
|
1571
|
-
component: e.elementType,
|
|
1572
|
-
/**
|
|
1573
|
-
* If `true`, the label, input and helper text should be displayed in a disabled state.
|
|
1574
|
-
* @default false
|
|
1575
|
-
*/
|
|
1576
|
-
disabled: e.bool,
|
|
1577
|
-
/**
|
|
1578
|
-
* If `true`, the label is displayed in an error state.
|
|
1579
|
-
* @default false
|
|
1580
|
-
*/
|
|
1581
|
-
error: e.bool,
|
|
1582
|
-
/**
|
|
1583
|
-
* If `true`, the component is displayed in focused state.
|
|
1584
|
-
*/
|
|
1585
|
-
focused: e.bool,
|
|
1586
|
-
/**
|
|
1587
|
-
* If `true`, the component will take up the full width of its container.
|
|
1588
|
-
* @default false
|
|
1589
|
-
*/
|
|
1590
|
-
fullWidth: e.bool,
|
|
1591
|
-
/**
|
|
1592
|
-
* If `true`, the label is hidden.
|
|
1593
|
-
* This is used to increase density for a `FilledInput`.
|
|
1594
|
-
* Be sure to add `aria-label` to the `input` element.
|
|
1595
|
-
* @default false
|
|
1596
|
-
*/
|
|
1597
|
-
hiddenLabel: e.bool,
|
|
1598
|
-
/**
|
|
1599
|
-
* If `dense` or `normal`, will adjust vertical spacing of this and contained components.
|
|
1600
|
-
* @default 'none'
|
|
1601
|
-
*/
|
|
1602
|
-
margin: e.oneOf(["dense", "none", "normal"]),
|
|
1603
|
-
/**
|
|
1604
|
-
* If `true`, the label will indicate that the `input` is required.
|
|
1605
|
-
* @default false
|
|
1606
|
-
*/
|
|
1607
|
-
required: e.bool,
|
|
1608
|
-
/**
|
|
1609
|
-
* The size of the component.
|
|
1610
|
-
* @default 'medium'
|
|
1611
|
-
*/
|
|
1612
|
-
size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
|
|
1613
|
-
/**
|
|
1614
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1615
|
-
*/
|
|
1616
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
1617
|
-
/**
|
|
1618
|
-
* The variant to use.
|
|
1619
|
-
* @default 'outlined'
|
|
1620
|
-
*/
|
|
1621
|
-
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
1622
|
-
});
|
|
1623
|
-
export {
|
|
1624
|
-
zo as F,
|
|
1625
|
-
Io as I,
|
|
1626
|
-
je as a,
|
|
1627
|
-
_e as b,
|
|
1628
|
-
Be as c,
|
|
1629
|
-
$e as d,
|
|
1630
|
-
Le as e,
|
|
1631
|
-
be as f,
|
|
1632
|
-
Ue as g,
|
|
1633
|
-
Pe as h,
|
|
1634
|
-
se as i,
|
|
1635
|
-
We as r
|
|
1636
|
-
};
|