@hybridcore/ui 1.6.1 → 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-C5yquWAB.js +357 -0
- package/dist/ButtonBase-BEF7oTOe.js +887 -0
- package/dist/{Delete-fBLhTHbF.js → Delete-BdyYpINH.js} +9 -8
- package/dist/{DialogContent-CGJ7alb8.js → DialogContent-BvVjD9z3.js} +127 -122
- package/dist/FormGroup-CpBsIyYR.js +89 -0
- package/dist/{IconButton-_opV1iNK.js → IconButton-BoGwbvrP.js} +26 -26
- package/dist/{InputLabel-rEwwnD4_.js → InputLabel-Dd8RrneV.js} +140 -153
- package/dist/{MenuItem-DrE50M_p.js → MenuItem-DwqJqzuM.js} +65 -89
- 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-B-Z5Y0Xq.js → Typography-DgsSLCFC.js} +28 -26
- 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/logic.js +1 -1
- 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/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/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 +18 -15
- package/dist/components/data-security-selectors/security-level/logic.js +18 -63
- package/dist/components/data-security-selectors/security-level/styled.js +23 -17
- 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 -86
- 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 -9
- 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/styled.js +1 -1
- package/dist/components/instance-variable-list/index.js +11 -11
- 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/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/styled.js +1106 -1034
- 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-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 -12
- 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 -22
- 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 -308
- package/dist/components/template-form/logic.js +69 -0
- package/dist/components/template-form/styled.js +84 -0
- 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 +1 -1
- 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-DX-SqL8M.js → createSvgIcon-Ch_cT8az.js} +68 -65
- package/dist/createSvgIcon-DuDuASu1.js +62 -0
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/{dialog-cf4HUXXl.js → dialog-BYRnCztH.js} +30 -29
- 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-C8C3YXle.js → index-e9xTIYWt.js} +139 -137
- package/dist/main.d.ts +1054 -330
- package/dist/main.js +163 -130
- 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/useFormControl-CatNKXAi.js +10 -0
- package/dist/useId-BW-oWmul.js +19 -0
- package/dist/{useMobilePicker-B-M3dnTn.js → useMobilePicker-CY8ndYRL.js} +4777 -4491
- package/dist/useSlot-B_Q4vnX5.js +42 -0
- package/package.json +15 -7
- package/dist/AccordionSummary-CMg08YSA.js +0 -739
- package/dist/Add-DuVVJeQU.js +0 -380
- package/dist/ButtonBase-sObABYY2.js +0 -965
- package/dist/FormControl-BCurCxRj.js +0 -1294
- package/dist/FormControlLabel-BkRfrhNy.js +0 -601
- package/dist/InputAdornment-C7PEvvYr.js +0 -155
- package/dist/Modal-DlB6GH-f.js +0 -1659
- package/dist/Paper-q9kKjAKx.js +0 -527
- package/dist/TextField-DSDIEEKu.js +0 -3161
- package/dist/assertThisInitialized-BUtkG-md.js +0 -13
- package/dist/capitalize-quqpGCFu.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 -47
- package/dist/components/key-protection/logic.js +0 -40
- package/dist/components/key-protection/styled.js +0 -45
- package/dist/components/key-protection/utils.js +0 -10
- package/dist/createSvgIcon-BM3-TsGy.js +0 -70
- package/dist/index-BMS1Otro.js +0 -183
- package/dist/index-DPKUmQnz.js +0 -501
- package/dist/index-kCJ_Zvl8.js +0 -34
- package/dist/isMuiElement-BkJ72LB3.js +0 -26
- package/dist/property-list-form-DL_dEoNn.js +0 -381
- package/dist/styled-Bsjp3kFh.js +0 -668
- package/dist/unsupportedProp-BND8AB6O.js +0 -25
- package/dist/useId-B4-oF9Mq.js +0 -34
- package/dist/utils-Cxu-fHjQ.js +0 -115
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { a as t, _ as h } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
2
2
|
import * as d from "react";
|
|
3
3
|
import { P as r } from "./index-C__OZmYy.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { jsx as
|
|
7
|
-
import { B as
|
|
8
|
-
import { c as
|
|
4
|
+
import { c as z } from "./clsx-OuTLNxxd.js";
|
|
5
|
+
import { g as R, a as C, s as B, b as n, f as g, u as I, c as O } from "./generateUtilityClasses-C3ivN9Ie.js";
|
|
6
|
+
import { jsx as x } from "react/jsx-runtime";
|
|
7
|
+
import { B as T } from "./ButtonBase-BEF7oTOe.js";
|
|
8
|
+
import { c as $ } from "./TransitionGroupContext-BDAp2T0O.js";
|
|
9
9
|
function k(o) {
|
|
10
|
-
return
|
|
10
|
+
return C("MuiIconButton", o);
|
|
11
11
|
}
|
|
12
|
-
const P =
|
|
12
|
+
const P = R("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge"]), _ = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"], j = (o) => {
|
|
13
13
|
const {
|
|
14
14
|
classes: e,
|
|
15
15
|
disabled: a,
|
|
@@ -20,7 +20,7 @@ const P = z("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
|
|
|
20
20
|
root: ["root", a && "disabled", s !== "default" && `color${n(s)}`, i && `edge${n(i)}`, `size${n(l)}`]
|
|
21
21
|
};
|
|
22
22
|
return O(c, k, e);
|
|
23
|
-
},
|
|
23
|
+
}, E = B(T, {
|
|
24
24
|
name: "MuiIconButton",
|
|
25
25
|
slot: "Root",
|
|
26
26
|
overridesResolver: (o, e) => {
|
|
@@ -87,8 +87,8 @@ const P = z("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
|
|
|
87
87
|
color: (o.vars || o).palette.action.disabled
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
|
-
}),
|
|
91
|
-
const s =
|
|
90
|
+
}), M = /* @__PURE__ */ d.forwardRef(function(e, a) {
|
|
91
|
+
const s = I({
|
|
92
92
|
props: e,
|
|
93
93
|
name: "MuiIconButton"
|
|
94
94
|
}), {
|
|
@@ -98,30 +98,30 @@ const P = z("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
|
|
|
98
98
|
color: b = "default",
|
|
99
99
|
disabled: p = !1,
|
|
100
100
|
disableFocusRipple: u = !1,
|
|
101
|
-
size:
|
|
102
|
-
} = s,
|
|
101
|
+
size: v = "medium"
|
|
102
|
+
} = s, m = h(s, _), f = t({}, s, {
|
|
103
103
|
edge: i,
|
|
104
104
|
color: b,
|
|
105
105
|
disabled: p,
|
|
106
106
|
disableFocusRipple: u,
|
|
107
|
-
size:
|
|
108
|
-
}), y =
|
|
109
|
-
return /* @__PURE__ */
|
|
110
|
-
className:
|
|
107
|
+
size: v
|
|
108
|
+
}), y = j(f);
|
|
109
|
+
return /* @__PURE__ */ x(E, t({
|
|
110
|
+
className: z(y.root, c),
|
|
111
111
|
centerRipple: !0,
|
|
112
112
|
focusRipple: !u,
|
|
113
113
|
disabled: p,
|
|
114
|
-
ref: a
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
ref: a
|
|
115
|
+
}, m, {
|
|
116
|
+
ownerState: f,
|
|
117
117
|
children: l
|
|
118
118
|
}));
|
|
119
119
|
});
|
|
120
|
-
process.env.NODE_ENV !== "production" && (
|
|
121
|
-
//
|
|
122
|
-
//
|
|
123
|
-
//
|
|
124
|
-
//
|
|
120
|
+
process.env.NODE_ENV !== "production" && (M.propTypes = {
|
|
121
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
122
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
123
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
124
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
125
125
|
/**
|
|
126
126
|
* The icon to display.
|
|
127
127
|
*/
|
|
@@ -138,7 +138,7 @@ process.env.NODE_ENV !== "production" && (N.propTypes = {
|
|
|
138
138
|
/**
|
|
139
139
|
* The color of the component.
|
|
140
140
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
141
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
141
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
142
142
|
* @default 'default'
|
|
143
143
|
*/
|
|
144
144
|
color: r.oneOfType([r.oneOf(["inherit", "default", "primary", "secondary", "error", "info", "success", "warning"]), r.string]),
|
|
@@ -180,5 +180,5 @@ process.env.NODE_ENV !== "production" && (N.propTypes = {
|
|
|
180
180
|
sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object])
|
|
181
181
|
});
|
|
182
182
|
export {
|
|
183
|
-
|
|
183
|
+
M as I
|
|
184
184
|
};
|
|
@@ -1,112 +1,102 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import * as
|
|
1
|
+
import { a as i, _ as h } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
2
|
+
import * as k from "react";
|
|
3
3
|
import { P as o } from "./index-C__OZmYy.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
function
|
|
10
|
-
return
|
|
4
|
+
import { c as y } from "./clsx-OuTLNxxd.js";
|
|
5
|
+
import { f as g } from "./formControlState-vgaj2ksH.js";
|
|
6
|
+
import { u as C } from "./useFormControl-CatNKXAi.js";
|
|
7
|
+
import { g as O, a as L, s as b, u as z, b as q, c as F, r as I } from "./generateUtilityClasses-C3ivN9Ie.js";
|
|
8
|
+
import { jsxs as v, jsx as T } from "react/jsx-runtime";
|
|
9
|
+
function R(e) {
|
|
10
|
+
return L("MuiFormLabel", e);
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
props: r,
|
|
14
|
-
states: e,
|
|
15
|
-
muiFormControl: a
|
|
16
|
-
}) {
|
|
17
|
-
return e.reduce((s, t) => (s[t] = r[t], a && typeof r[t] > "u" && (s[t] = a[t]), s), {});
|
|
18
|
-
}
|
|
19
|
-
function R(r) {
|
|
20
|
-
return C("MuiFormLabel", r);
|
|
21
|
-
}
|
|
22
|
-
const m = k("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "error", "filled", "required", "asterisk"]), j = ["children", "className", "color", "component", "disabled", "error", "filled", "focused", "required"], M = (r) => {
|
|
12
|
+
const u = O("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "error", "filled", "required", "asterisk"]), j = ["children", "className", "color", "component", "disabled", "error", "filled", "focused", "required"], M = (e) => {
|
|
23
13
|
const {
|
|
24
|
-
classes:
|
|
14
|
+
classes: r,
|
|
25
15
|
color: a,
|
|
26
16
|
focused: s,
|
|
27
|
-
disabled:
|
|
28
|
-
error:
|
|
29
|
-
filled:
|
|
30
|
-
required:
|
|
31
|
-
} =
|
|
32
|
-
root: ["root", `color${
|
|
33
|
-
asterisk: ["asterisk",
|
|
17
|
+
disabled: f,
|
|
18
|
+
error: l,
|
|
19
|
+
filled: c,
|
|
20
|
+
required: p
|
|
21
|
+
} = e, n = {
|
|
22
|
+
root: ["root", `color${q(a)}`, f && "disabled", l && "error", c && "filled", s && "focused", p && "required"],
|
|
23
|
+
asterisk: ["asterisk", l && "error"]
|
|
34
24
|
};
|
|
35
|
-
return
|
|
36
|
-
},
|
|
25
|
+
return F(n, R, r);
|
|
26
|
+
}, $ = b("label", {
|
|
37
27
|
name: "MuiFormLabel",
|
|
38
28
|
slot: "Root",
|
|
39
29
|
overridesResolver: ({
|
|
40
|
-
ownerState:
|
|
41
|
-
},
|
|
30
|
+
ownerState: e
|
|
31
|
+
}, r) => i({}, r.root, e.color === "secondary" && r.colorSecondary, e.filled && r.filled)
|
|
42
32
|
})(({
|
|
43
|
-
theme:
|
|
44
|
-
ownerState:
|
|
45
|
-
}) =>
|
|
46
|
-
color: (
|
|
47
|
-
},
|
|
33
|
+
theme: e,
|
|
34
|
+
ownerState: r
|
|
35
|
+
}) => i({
|
|
36
|
+
color: (e.vars || e).palette.text.secondary
|
|
37
|
+
}, e.typography.body1, {
|
|
48
38
|
lineHeight: "1.4375em",
|
|
49
39
|
padding: 0,
|
|
50
40
|
position: "relative",
|
|
51
|
-
[`&.${
|
|
52
|
-
color: (
|
|
41
|
+
[`&.${u.focused}`]: {
|
|
42
|
+
color: (e.vars || e).palette[r.color].main
|
|
53
43
|
},
|
|
54
|
-
[`&.${
|
|
55
|
-
color: (
|
|
44
|
+
[`&.${u.disabled}`]: {
|
|
45
|
+
color: (e.vars || e).palette.text.disabled
|
|
56
46
|
},
|
|
57
|
-
[`&.${
|
|
58
|
-
color: (
|
|
47
|
+
[`&.${u.error}`]: {
|
|
48
|
+
color: (e.vars || e).palette.error.main
|
|
59
49
|
}
|
|
60
|
-
})),
|
|
50
|
+
})), A = b("span", {
|
|
61
51
|
name: "MuiFormLabel",
|
|
62
52
|
slot: "Asterisk",
|
|
63
|
-
overridesResolver: (
|
|
53
|
+
overridesResolver: (e, r) => r.asterisk
|
|
64
54
|
})(({
|
|
65
|
-
theme:
|
|
55
|
+
theme: e
|
|
66
56
|
}) => ({
|
|
67
|
-
[`&.${
|
|
68
|
-
color: (
|
|
57
|
+
[`&.${u.error}`]: {
|
|
58
|
+
color: (e.vars || e).palette.error.main
|
|
69
59
|
}
|
|
70
|
-
})),
|
|
71
|
-
const s =
|
|
72
|
-
props:
|
|
60
|
+
})), N = /* @__PURE__ */ k.forwardRef(function(r, a) {
|
|
61
|
+
const s = z({
|
|
62
|
+
props: r,
|
|
73
63
|
name: "MuiFormLabel"
|
|
74
64
|
}), {
|
|
75
|
-
children:
|
|
76
|
-
className:
|
|
77
|
-
component:
|
|
78
|
-
} = s,
|
|
65
|
+
children: f,
|
|
66
|
+
className: l,
|
|
67
|
+
component: c = "label"
|
|
68
|
+
} = s, p = h(s, j), n = C(), t = g({
|
|
79
69
|
props: s,
|
|
80
|
-
muiFormControl:
|
|
70
|
+
muiFormControl: n,
|
|
81
71
|
states: ["color", "required", "focused", "disabled", "error", "filled"]
|
|
82
|
-
}),
|
|
83
|
-
color:
|
|
84
|
-
component:
|
|
85
|
-
disabled:
|
|
86
|
-
error:
|
|
87
|
-
filled:
|
|
88
|
-
focused:
|
|
89
|
-
required:
|
|
90
|
-
}),
|
|
91
|
-
return /* @__PURE__ */
|
|
92
|
-
as:
|
|
93
|
-
ownerState:
|
|
94
|
-
className:
|
|
72
|
+
}), d = i({}, s, {
|
|
73
|
+
color: t.color || "primary",
|
|
74
|
+
component: c,
|
|
75
|
+
disabled: t.disabled,
|
|
76
|
+
error: t.error,
|
|
77
|
+
filled: t.filled,
|
|
78
|
+
focused: t.focused,
|
|
79
|
+
required: t.required
|
|
80
|
+
}), m = M(d);
|
|
81
|
+
return /* @__PURE__ */ v($, i({
|
|
82
|
+
as: c,
|
|
83
|
+
ownerState: d,
|
|
84
|
+
className: y(m.root, l),
|
|
95
85
|
ref: a
|
|
96
|
-
},
|
|
97
|
-
children: [
|
|
98
|
-
ownerState:
|
|
86
|
+
}, p, {
|
|
87
|
+
children: [f, t.required && /* @__PURE__ */ v(A, {
|
|
88
|
+
ownerState: d,
|
|
99
89
|
"aria-hidden": !0,
|
|
100
|
-
className:
|
|
90
|
+
className: m.asterisk,
|
|
101
91
|
children: [" ", "*"]
|
|
102
92
|
})]
|
|
103
93
|
}));
|
|
104
94
|
});
|
|
105
|
-
process.env.NODE_ENV !== "production" && (
|
|
106
|
-
//
|
|
107
|
-
//
|
|
108
|
-
//
|
|
109
|
-
//
|
|
95
|
+
process.env.NODE_ENV !== "production" && (N.propTypes = {
|
|
96
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
97
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
98
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
99
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
110
100
|
/**
|
|
111
101
|
* The content of the component.
|
|
112
102
|
*/
|
|
@@ -122,7 +112,7 @@ process.env.NODE_ENV !== "production" && (q.propTypes = {
|
|
|
122
112
|
/**
|
|
123
113
|
* The color of the component.
|
|
124
114
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
125
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
115
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
126
116
|
*/
|
|
127
117
|
color: o.oneOfType([o.oneOf(["error", "info", "primary", "secondary", "success", "warning"]), o.string]),
|
|
128
118
|
/**
|
|
@@ -155,65 +145,65 @@ process.env.NODE_ENV !== "production" && (q.propTypes = {
|
|
|
155
145
|
*/
|
|
156
146
|
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
157
147
|
});
|
|
158
|
-
function
|
|
159
|
-
return
|
|
148
|
+
function E(e) {
|
|
149
|
+
return L("MuiInputLabel", e);
|
|
160
150
|
}
|
|
161
|
-
|
|
162
|
-
const P = ["disableAnimation", "margin", "shrink", "variant", "className"], W = (
|
|
151
|
+
O("MuiInputLabel", ["root", "focused", "disabled", "error", "required", "asterisk", "formControl", "sizeSmall", "shrink", "animated", "standard", "filled", "outlined"]);
|
|
152
|
+
const P = ["disableAnimation", "margin", "shrink", "variant", "className"], W = (e) => {
|
|
163
153
|
const {
|
|
164
|
-
classes:
|
|
154
|
+
classes: r,
|
|
165
155
|
formControl: a,
|
|
166
156
|
size: s,
|
|
167
|
-
shrink:
|
|
168
|
-
disableAnimation:
|
|
169
|
-
variant:
|
|
170
|
-
required:
|
|
171
|
-
} =
|
|
172
|
-
root: ["root", a && "formControl", !
|
|
173
|
-
asterisk: [
|
|
174
|
-
},
|
|
175
|
-
return
|
|
176
|
-
},
|
|
177
|
-
shouldForwardProp: (
|
|
157
|
+
shrink: f,
|
|
158
|
+
disableAnimation: l,
|
|
159
|
+
variant: c,
|
|
160
|
+
required: p
|
|
161
|
+
} = e, n = {
|
|
162
|
+
root: ["root", a && "formControl", !l && "animated", f && "shrink", s && s !== "normal" && `size${q(s)}`, c],
|
|
163
|
+
asterisk: [p && "asterisk"]
|
|
164
|
+
}, t = F(n, E, r);
|
|
165
|
+
return i({}, r, t);
|
|
166
|
+
}, _ = b(N, {
|
|
167
|
+
shouldForwardProp: (e) => I(e) || e === "classes",
|
|
178
168
|
name: "MuiInputLabel",
|
|
179
169
|
slot: "Root",
|
|
180
|
-
overridesResolver: (
|
|
170
|
+
overridesResolver: (e, r) => {
|
|
181
171
|
const {
|
|
182
172
|
ownerState: a
|
|
183
|
-
} =
|
|
173
|
+
} = e;
|
|
184
174
|
return [{
|
|
185
|
-
[`& .${
|
|
186
|
-
},
|
|
175
|
+
[`& .${u.asterisk}`]: r.asterisk
|
|
176
|
+
}, r.root, a.formControl && r.formControl, a.size === "small" && r.sizeSmall, a.shrink && r.shrink, !a.disableAnimation && r.animated, a.focused && r.focused, r[a.variant]];
|
|
187
177
|
}
|
|
188
178
|
})(({
|
|
189
|
-
theme:
|
|
190
|
-
ownerState:
|
|
191
|
-
}) =>
|
|
179
|
+
theme: e,
|
|
180
|
+
ownerState: r
|
|
181
|
+
}) => i({
|
|
192
182
|
display: "block",
|
|
193
183
|
transformOrigin: "top left",
|
|
194
184
|
whiteSpace: "nowrap",
|
|
195
185
|
overflow: "hidden",
|
|
196
186
|
textOverflow: "ellipsis",
|
|
197
187
|
maxWidth: "100%"
|
|
198
|
-
},
|
|
188
|
+
}, r.formControl && {
|
|
199
189
|
position: "absolute",
|
|
200
190
|
left: 0,
|
|
201
191
|
top: 0,
|
|
202
192
|
// slight alteration to spec spacing to match visual spec result
|
|
203
193
|
transform: "translate(0, 20px) scale(1)"
|
|
204
|
-
},
|
|
194
|
+
}, r.size === "small" && {
|
|
205
195
|
// Compensation for the `Input.inputSizeSmall` style.
|
|
206
196
|
transform: "translate(0, 17px) scale(1)"
|
|
207
|
-
},
|
|
197
|
+
}, r.shrink && {
|
|
208
198
|
transform: "translate(0, -1.5px) scale(0.75)",
|
|
209
199
|
transformOrigin: "top left",
|
|
210
200
|
maxWidth: "133%"
|
|
211
|
-
}, !
|
|
212
|
-
transition:
|
|
213
|
-
duration:
|
|
214
|
-
easing:
|
|
201
|
+
}, !r.disableAnimation && {
|
|
202
|
+
transition: e.transitions.create(["color", "transform", "max-width"], {
|
|
203
|
+
duration: e.transitions.duration.shorter,
|
|
204
|
+
easing: e.transitions.easing.easeOut
|
|
215
205
|
})
|
|
216
|
-
},
|
|
206
|
+
}, r.variant === "filled" && i({
|
|
217
207
|
// Chrome's autofill feature gives the input field a yellow background.
|
|
218
208
|
// Since the input field is behind the label in the HTML tree,
|
|
219
209
|
// the input field is drawn last and hides the label with an opaque background color.
|
|
@@ -222,67 +212,68 @@ const P = ["disableAnimation", "margin", "shrink", "variant", "className"], W =
|
|
|
222
212
|
pointerEvents: "none",
|
|
223
213
|
transform: "translate(12px, 16px) scale(1)",
|
|
224
214
|
maxWidth: "calc(100% - 24px)"
|
|
225
|
-
},
|
|
215
|
+
}, r.size === "small" && {
|
|
226
216
|
transform: "translate(12px, 13px) scale(1)"
|
|
227
|
-
},
|
|
217
|
+
}, r.shrink && i({
|
|
228
218
|
userSelect: "none",
|
|
229
219
|
pointerEvents: "auto",
|
|
230
220
|
transform: "translate(12px, 7px) scale(0.75)",
|
|
231
221
|
maxWidth: "calc(133% - 24px)"
|
|
232
|
-
},
|
|
222
|
+
}, r.size === "small" && {
|
|
233
223
|
transform: "translate(12px, 4px) scale(0.75)"
|
|
234
|
-
})),
|
|
224
|
+
})), r.variant === "outlined" && i({
|
|
235
225
|
// see comment above on filled.zIndex
|
|
236
226
|
zIndex: 1,
|
|
237
227
|
pointerEvents: "none",
|
|
238
228
|
transform: "translate(14px, 16px) scale(1)",
|
|
239
229
|
maxWidth: "calc(100% - 24px)"
|
|
240
|
-
},
|
|
230
|
+
}, r.size === "small" && {
|
|
241
231
|
transform: "translate(14px, 9px) scale(1)"
|
|
242
|
-
},
|
|
232
|
+
}, r.shrink && {
|
|
243
233
|
userSelect: "none",
|
|
244
234
|
pointerEvents: "auto",
|
|
245
235
|
// Theoretically, we should have (8+5)*2/0.75 = 34px
|
|
246
236
|
// but it feels a better when it bleeds a bit on the left, so 32px.
|
|
247
237
|
maxWidth: "calc(133% - 32px)",
|
|
248
238
|
transform: "translate(14px, -9px) scale(0.75)"
|
|
249
|
-
}))),
|
|
250
|
-
const s =
|
|
239
|
+
}))), w = /* @__PURE__ */ k.forwardRef(function(r, a) {
|
|
240
|
+
const s = z({
|
|
251
241
|
name: "MuiInputLabel",
|
|
252
|
-
props:
|
|
242
|
+
props: r
|
|
253
243
|
}), {
|
|
254
|
-
disableAnimation:
|
|
255
|
-
shrink:
|
|
256
|
-
className:
|
|
257
|
-
} = s,
|
|
258
|
-
let
|
|
259
|
-
typeof
|
|
260
|
-
const
|
|
244
|
+
disableAnimation: f = !1,
|
|
245
|
+
shrink: l,
|
|
246
|
+
className: c
|
|
247
|
+
} = s, p = h(s, P), n = C();
|
|
248
|
+
let t = l;
|
|
249
|
+
typeof t > "u" && n && (t = n.filled || n.focused || n.adornedStart);
|
|
250
|
+
const d = g({
|
|
261
251
|
props: s,
|
|
262
|
-
muiFormControl:
|
|
263
|
-
states: ["size", "variant", "required"]
|
|
264
|
-
}),
|
|
265
|
-
disableAnimation:
|
|
266
|
-
formControl:
|
|
267
|
-
shrink:
|
|
268
|
-
size:
|
|
269
|
-
variant:
|
|
270
|
-
required:
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
252
|
+
muiFormControl: n,
|
|
253
|
+
states: ["size", "variant", "required", "focused"]
|
|
254
|
+
}), m = i({}, s, {
|
|
255
|
+
disableAnimation: f,
|
|
256
|
+
formControl: n,
|
|
257
|
+
shrink: t,
|
|
258
|
+
size: d.size,
|
|
259
|
+
variant: d.variant,
|
|
260
|
+
required: d.required,
|
|
261
|
+
focused: d.focused
|
|
262
|
+
}), x = W(m);
|
|
263
|
+
return /* @__PURE__ */ T(_, i({
|
|
264
|
+
"data-shrink": t,
|
|
265
|
+
ownerState: m,
|
|
275
266
|
ref: a,
|
|
276
|
-
className:
|
|
277
|
-
},
|
|
278
|
-
classes:
|
|
267
|
+
className: y(x.root, c)
|
|
268
|
+
}, p, {
|
|
269
|
+
classes: x
|
|
279
270
|
}));
|
|
280
271
|
});
|
|
281
|
-
process.env.NODE_ENV !== "production" && (
|
|
282
|
-
//
|
|
283
|
-
//
|
|
284
|
-
//
|
|
285
|
-
//
|
|
272
|
+
process.env.NODE_ENV !== "production" && (w.propTypes = {
|
|
273
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
274
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
275
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
276
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
286
277
|
/**
|
|
287
278
|
* The content of the component.
|
|
288
279
|
*/
|
|
@@ -298,7 +289,7 @@ process.env.NODE_ENV !== "production" && (S.propTypes = {
|
|
|
298
289
|
/**
|
|
299
290
|
* The color of the component.
|
|
300
291
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
301
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
292
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
302
293
|
*/
|
|
303
294
|
color: o.oneOfType([o.oneOf(["error", "info", "primary", "secondary", "success", "warning"]), o.string]),
|
|
304
295
|
/**
|
|
@@ -346,9 +337,5 @@ process.env.NODE_ENV !== "production" && (S.propTypes = {
|
|
|
346
337
|
variant: o.oneOf(["filled", "outlined", "standard"])
|
|
347
338
|
});
|
|
348
339
|
export {
|
|
349
|
-
|
|
350
|
-
S as I,
|
|
351
|
-
z as a,
|
|
352
|
-
N as f,
|
|
353
|
-
F as u
|
|
340
|
+
w as I
|
|
354
341
|
};
|