@hybridcore/ui 1.6.13 → 1.6.16

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.
Files changed (100) hide show
  1. package/dist/AccordionSummary-DUtr16g6.js +781 -0
  2. package/dist/Add-Bk8R160M.js +403 -0
  3. package/dist/Button-Cem3nbwc.js +357 -0
  4. package/dist/ButtonBase-DObmf4Q_.js +886 -0
  5. package/dist/Delete-CVJ6FeDn.js +203 -0
  6. package/dist/FormGroup-BRj1o7-E.js +89 -0
  7. package/dist/InputLabel-CjD30ZHz.js +341 -0
  8. package/dist/MenuItem-BKvRGLvM.js +233 -0
  9. package/dist/Modal-BVYydOr5.js +1156 -0
  10. package/dist/Paper-B1HV8GyO.js +582 -0
  11. package/dist/Select-Bfhvigsx.js +3914 -0
  12. package/dist/Source-BSZST_GH.js +4410 -0
  13. package/dist/SwitchBase-BEK49kdS.js +235 -0
  14. package/dist/Text-ChJRuaD8.js +2197 -0
  15. package/dist/TextField-Ca9ykixI.js +696 -0
  16. package/dist/TransitionGroupContext-Ja2CgIob.js +96 -0
  17. package/dist/Typography-D3X-Y5fh.js +178 -0
  18. package/dist/Vector-BmuhQO4p.js +3606 -0
  19. package/dist/Vector-DfTqQEln.js +1735 -0
  20. package/dist/WKT-2wsDT-nq.js +2310 -0
  21. package/dist/{_commonjsHelpers-BVfed4GL.js → _commonjsHelpers-BkfeUUK-.js} +2 -2
  22. package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
  23. package/dist/assets/index.css +1 -1
  24. package/dist/assets/index2.css +1 -1
  25. package/dist/assets/index3.css +1 -0
  26. package/dist/assets/index4.css +1 -0
  27. package/dist/clsx-OuTLNxxd.js +16 -0
  28. package/dist/components/button/styled.js +1 -1
  29. package/dist/components/charts/_common/format.js +126 -82
  30. package/dist/components/charts/_common/tooltip.js +44 -35
  31. package/dist/components/charts/chart-wrapper/index.js +44 -43
  32. package/dist/components/charts/donut-chart/logic.js +53 -40
  33. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +1 -1
  34. package/dist/components/charts/xy-chart/logic.js +135 -134
  35. package/dist/components/collapsible-card/index.js +30 -21
  36. package/dist/components/collapsible-card/styled.js +14 -16
  37. package/dist/components/color-picker/index.js +3358 -2228
  38. package/dist/components/color-picker/styled.js +7 -87
  39. package/dist/components/confirm/dialog.js +7 -89
  40. package/dist/components/confirm/index.js +1 -1
  41. package/dist/components/data-map/index.js +1 -1
  42. package/dist/components/data-map/logic.js +20 -20
  43. package/dist/components/data-security-selectors/dissemination-list/index.js +3117 -32
  44. package/dist/components/date-range-picker/index.js +454 -466
  45. package/dist/components/document-viewer/components/viewer/index.js +1 -1
  46. package/dist/components/duration-select/index.js +10 -10
  47. package/dist/components/duration-select/styled.js +1 -1
  48. package/dist/components/geometry-picker/coordinate/index.js +14 -14
  49. package/dist/components/geometry-picker/edit/index.js +1 -1
  50. package/dist/components/geometry-picker/geometry/index.js +1 -1
  51. package/dist/components/geometry-picker/kml/index.js +11 -11
  52. package/dist/components/geometry-picker/map/logic.js +3656 -145
  53. package/dist/components/geometry-picker/map/style.js +17 -18
  54. package/dist/components/geometry-picker/parser/coordinate-input/logic.js +1255 -43
  55. package/dist/components/heat-map/index.js +1 -1
  56. package/dist/components/heat-map/logic.js +1924 -77
  57. package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +8737 -8722
  58. package/dist/components/instance-hierarchy-table/styled.js +16 -18
  59. package/dist/components/map/helpers/mapbox.js +15 -17
  60. package/dist/components/map/helpers/ol.js +27 -386
  61. package/dist/components/map/index.js +10 -11
  62. package/dist/components/map/logic.js +22 -22
  63. package/dist/components/map/styled.js +27 -31
  64. package/dist/components/phone-input/index.js +9 -10
  65. package/dist/components/property-mapping/index.js +1 -1
  66. package/dist/components/prr-map/index.js +1 -1
  67. package/dist/components/prr-map/logic.js +26 -27
  68. package/dist/components/raster-grid-map/index.js +1 -1
  69. package/dist/components/raster-grid-map/logic.js +57 -60
  70. package/dist/components/sortable-list/index.js +1264 -1091
  71. package/dist/components/template-form/components/property-list/index.js +32 -36
  72. package/dist/components/template-form/components/property-list/property-list-columns.js +17 -19
  73. package/dist/components/template-form/components/property-list/property-list-form.js +600 -137
  74. package/dist/components/template-form/components/recognition-property-list/index.js +36 -40
  75. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +9 -11
  76. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +64 -57
  77. package/dist/components/tree-select/index.js +16 -16
  78. package/dist/createChainedFunction-C0nujS3O.js +9 -0
  79. package/dist/createSvgIcon-BghzB2Y9.js +93 -0
  80. package/dist/createSvgIcon-D7U1nd99.js +185 -0
  81. package/dist/debounce-46wSf_lW.js +15 -0
  82. package/dist/dialog-BtJhjyF5.js +664 -0
  83. package/dist/extends-C3382pL0.js +22 -0
  84. package/dist/formControlState-vgaj2ksH.js +10 -0
  85. package/dist/generateUtilityClasses-Cc-owZ4J.js +2971 -0
  86. package/dist/{index-C__OZmYy.js → index-CblbdqjE.js} +1 -1
  87. package/dist/index-DH6qsPBn.js +153 -0
  88. package/dist/index.esm-DAf19hyR.js +318 -0
  89. package/dist/main.d.ts +9 -1
  90. package/dist/math-Bvt2Ubuz.js +704 -0
  91. package/dist/ol-yOE-NV0X.js +7465 -0
  92. package/dist/ownerWindow-wg6foiOE.js +10 -0
  93. package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
  94. package/dist/styled-DD4BkuVf.js +350 -0
  95. package/dist/useControlled-BYdyS7Pn.js +31 -0
  96. package/dist/useFormControl-CatNKXAi.js +10 -0
  97. package/dist/useId-BW-oWmul.js +19 -0
  98. package/dist/useSlot-u4t0X96G.js +42 -0
  99. package/package.json +1 -1
  100. package/dist/index.esm-UfGMjYOL.js +0 -197
@@ -0,0 +1,203 @@
1
+ import { a as s, _ as $ } from "./extends-C3382pL0.js";
2
+ import * as d from "react";
3
+ import { P as r } from "./index-CblbdqjE.js";
4
+ import { c as x } from "./clsx-OuTLNxxd.js";
5
+ import { g as I, a as O, s as B, b as i, d as b, u as j, c as M, i as m } from "./generateUtilityClasses-Cc-owZ4J.js";
6
+ import y, { jsx as T } from "react/jsx-runtime";
7
+ import { B as k } from "./ButtonBase-DObmf4Q_.js";
8
+ import { c as E } from "./TransitionGroupContext-Ja2CgIob.js";
9
+ import { r as h } from "./createSvgIcon-BghzB2Y9.js";
10
+ function P(e) {
11
+ return O("MuiIconButton", e);
12
+ }
13
+ const D = I("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge"]), N = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"], q = (e) => {
14
+ const {
15
+ classes: o,
16
+ disabled: a,
17
+ color: t,
18
+ edge: n,
19
+ size: l
20
+ } = e, c = {
21
+ root: ["root", a && "disabled", t !== "default" && `color${i(t)}`, n && `edge${i(n)}`, `size${i(l)}`]
22
+ };
23
+ return M(c, P, o);
24
+ }, U = B(k, {
25
+ name: "MuiIconButton",
26
+ slot: "Root",
27
+ overridesResolver: (e, o) => {
28
+ const {
29
+ ownerState: a
30
+ } = e;
31
+ return [o.root, a.color !== "default" && o[`color${i(a.color)}`], a.edge && o[`edge${i(a.edge)}`], o[`size${i(a.size)}`]];
32
+ }
33
+ })(({
34
+ theme: e,
35
+ ownerState: o
36
+ }) => s({
37
+ textAlign: "center",
38
+ flex: "0 0 auto",
39
+ fontSize: e.typography.pxToRem(24),
40
+ padding: 8,
41
+ borderRadius: "50%",
42
+ overflow: "visible",
43
+ // Explicitly set the default value to solve a bug on IE11.
44
+ color: (e.vars || e).palette.action.active,
45
+ transition: e.transitions.create("background-color", {
46
+ duration: e.transitions.duration.shortest
47
+ })
48
+ }, !o.disableRipple && {
49
+ "&:hover": {
50
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})` : b(e.palette.action.active, e.palette.action.hoverOpacity),
51
+ // Reset on touch devices, it doesn't add specificity
52
+ "@media (hover: none)": {
53
+ backgroundColor: "transparent"
54
+ }
55
+ }
56
+ }, o.edge === "start" && {
57
+ marginLeft: o.size === "small" ? -3 : -12
58
+ }, o.edge === "end" && {
59
+ marginRight: o.size === "small" ? -3 : -12
60
+ }), ({
61
+ theme: e,
62
+ ownerState: o
63
+ }) => {
64
+ var a;
65
+ const t = (a = (e.vars || e).palette) == null ? void 0 : a[o.color];
66
+ return s({}, o.color === "inherit" && {
67
+ color: "inherit"
68
+ }, o.color !== "inherit" && o.color !== "default" && s({
69
+ color: t == null ? void 0 : t.main
70
+ }, !o.disableRipple && {
71
+ "&:hover": s({}, t && {
72
+ backgroundColor: e.vars ? `rgba(${t.mainChannel} / ${e.vars.palette.action.hoverOpacity})` : b(t.main, e.palette.action.hoverOpacity)
73
+ }, {
74
+ // Reset on touch devices, it doesn't add specificity
75
+ "@media (hover: none)": {
76
+ backgroundColor: "transparent"
77
+ }
78
+ })
79
+ }), o.size === "small" && {
80
+ padding: 5,
81
+ fontSize: e.typography.pxToRem(18)
82
+ }, o.size === "large" && {
83
+ padding: 12,
84
+ fontSize: e.typography.pxToRem(28)
85
+ }, {
86
+ [`&.${D.disabled}`]: {
87
+ backgroundColor: "transparent",
88
+ color: (e.vars || e).palette.action.disabled
89
+ }
90
+ });
91
+ }), L = /* @__PURE__ */ d.forwardRef(function(o, a) {
92
+ const t = j({
93
+ props: o,
94
+ name: "MuiIconButton"
95
+ }), {
96
+ edge: n = !1,
97
+ children: l,
98
+ className: c,
99
+ color: R = "default",
100
+ disabled: f = !1,
101
+ disableFocusRipple: v = !1,
102
+ size: z = "medium"
103
+ } = t, _ = $(t, N), g = s({}, t, {
104
+ edge: n,
105
+ color: R,
106
+ disabled: f,
107
+ disableFocusRipple: v,
108
+ size: z
109
+ }), C = q(g);
110
+ return /* @__PURE__ */ T(U, s({
111
+ className: x(C.root, c),
112
+ centerRipple: !0,
113
+ focusRipple: !v,
114
+ disabled: f,
115
+ ref: a
116
+ }, _, {
117
+ ownerState: g,
118
+ children: l
119
+ }));
120
+ });
121
+ process.env.NODE_ENV !== "production" && (L.propTypes = {
122
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
123
+ // │ These PropTypes are generated from the TypeScript type definitions. │
124
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
125
+ // └─────────────────────────────────────────────────────────────────────┘
126
+ /**
127
+ * The icon to display.
128
+ */
129
+ children: E(r.node, (e) => d.Children.toArray(e.children).some((a) => /* @__PURE__ */ d.isValidElement(a) && a.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole <button> will be responsive to click events."].join(`
130
+ `)) : null),
131
+ /**
132
+ * Override or extend the styles applied to the component.
133
+ */
134
+ classes: r.object,
135
+ /**
136
+ * @ignore
137
+ */
138
+ className: r.string,
139
+ /**
140
+ * The color of the component.
141
+ * It supports both default and custom theme colors, which can be added as shown in the
142
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
143
+ * @default 'default'
144
+ */
145
+ color: r.oneOfType([r.oneOf(["inherit", "default", "primary", "secondary", "error", "info", "success", "warning"]), r.string]),
146
+ /**
147
+ * If `true`, the component is disabled.
148
+ * @default false
149
+ */
150
+ disabled: r.bool,
151
+ /**
152
+ * If `true`, the keyboard focus ripple is disabled.
153
+ * @default false
154
+ */
155
+ disableFocusRipple: r.bool,
156
+ /**
157
+ * If `true`, the ripple effect is disabled.
158
+ *
159
+ * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
160
+ * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
161
+ * @default false
162
+ */
163
+ disableRipple: r.bool,
164
+ /**
165
+ * If given, uses a negative margin to counteract the padding on one
166
+ * side (this is often helpful for aligning the left or right
167
+ * side of the icon with content above or below, without ruining the border
168
+ * size and shape).
169
+ * @default false
170
+ */
171
+ edge: r.oneOf(["end", "start", !1]),
172
+ /**
173
+ * The size of the component.
174
+ * `small` is equivalent to the dense button styling.
175
+ * @default 'medium'
176
+ */
177
+ size: r.oneOfType([r.oneOf(["small", "medium", "large"]), r.string]),
178
+ /**
179
+ * The system prop that allows defining system overrides as well as additional CSS styles.
180
+ */
181
+ sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object])
182
+ });
183
+ var p = {}, V = m;
184
+ Object.defineProperty(p, "__esModule", {
185
+ value: !0
186
+ });
187
+ var F = p.default = void 0, S = V(h()), A = y;
188
+ F = p.default = (0, S.default)(/* @__PURE__ */ (0, A.jsx)("path", {
189
+ d: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"
190
+ }), "Edit");
191
+ var u = {}, H = m;
192
+ Object.defineProperty(u, "__esModule", {
193
+ value: !0
194
+ });
195
+ var W = u.default = void 0, Y = H(h()), G = y;
196
+ W = u.default = (0, Y.default)(/* @__PURE__ */ (0, G.jsx)("path", {
197
+ d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"
198
+ }), "Delete");
199
+ export {
200
+ L as I,
201
+ W as a,
202
+ F as d
203
+ };
@@ -0,0 +1,89 @@
1
+ import { a, _ as f } from "./extends-C3382pL0.js";
2
+ import * as w from "react";
3
+ import { P as o } from "./index-CblbdqjE.js";
4
+ import { c as d } from "./clsx-OuTLNxxd.js";
5
+ import { g as F, a as x, s as y, u as C, c as G } from "./generateUtilityClasses-Cc-owZ4J.js";
6
+ import { u as b } from "./useFormControl-CatNKXAi.js";
7
+ import { f as N } from "./formControlState-vgaj2ksH.js";
8
+ import { jsx as g } from "react/jsx-runtime";
9
+ function j(r) {
10
+ return x("MuiFormGroup", r);
11
+ }
12
+ F("MuiFormGroup", ["root", "row", "error"]);
13
+ const v = ["className", "row"], R = (r) => {
14
+ const {
15
+ classes: s,
16
+ row: t,
17
+ error: e
18
+ } = r;
19
+ return G({
20
+ root: ["root", t && "row", e && "error"]
21
+ }, j, s);
22
+ }, _ = y("div", {
23
+ name: "MuiFormGroup",
24
+ slot: "Root",
25
+ overridesResolver: (r, s) => {
26
+ const {
27
+ ownerState: t
28
+ } = r;
29
+ return [s.root, t.row && s.row];
30
+ }
31
+ })(({
32
+ ownerState: r
33
+ }) => a({
34
+ display: "flex",
35
+ flexDirection: "column",
36
+ flexWrap: "wrap"
37
+ }, r.row && {
38
+ flexDirection: "row"
39
+ })), D = /* @__PURE__ */ w.forwardRef(function(s, t) {
40
+ const e = C({
41
+ props: s,
42
+ name: "MuiFormGroup"
43
+ }), {
44
+ className: n,
45
+ row: i = !1
46
+ } = e, l = f(e, v), m = b(), p = N({
47
+ props: e,
48
+ muiFormControl: m,
49
+ states: ["error"]
50
+ }), c = a({}, e, {
51
+ row: i,
52
+ error: p.error
53
+ }), u = R(c);
54
+ return /* @__PURE__ */ g(_, a({
55
+ className: d(u.root, n),
56
+ ownerState: c,
57
+ ref: t
58
+ }, l));
59
+ });
60
+ process.env.NODE_ENV !== "production" && (D.propTypes = {
61
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
62
+ // │ These PropTypes are generated from the TypeScript type definitions. │
63
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
64
+ // └─────────────────────────────────────────────────────────────────────┘
65
+ /**
66
+ * The content of the component.
67
+ */
68
+ children: o.node,
69
+ /**
70
+ * Override or extend the styles applied to the component.
71
+ */
72
+ classes: o.object,
73
+ /**
74
+ * @ignore
75
+ */
76
+ className: o.string,
77
+ /**
78
+ * Display group of elements in a compact row.
79
+ * @default false
80
+ */
81
+ row: o.bool,
82
+ /**
83
+ * The system prop that allows defining system overrides as well as additional CSS styles.
84
+ */
85
+ sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
86
+ });
87
+ export {
88
+ D as F
89
+ };
@@ -0,0 +1,341 @@
1
+ import { a as i, _ as h } from "./extends-C3382pL0.js";
2
+ import * as k from "react";
3
+ import { P as o } from "./index-CblbdqjE.js";
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-Cc-owZ4J.js";
8
+ import { jsxs as v, jsx as T } from "react/jsx-runtime";
9
+ function R(e) {
10
+ return L("MuiFormLabel", e);
11
+ }
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) => {
13
+ const {
14
+ classes: r,
15
+ color: a,
16
+ focused: s,
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"]
24
+ };
25
+ return F(n, R, r);
26
+ }, $ = b("label", {
27
+ name: "MuiFormLabel",
28
+ slot: "Root",
29
+ overridesResolver: ({
30
+ ownerState: e
31
+ }, r) => i({}, r.root, e.color === "secondary" && r.colorSecondary, e.filled && r.filled)
32
+ })(({
33
+ theme: e,
34
+ ownerState: r
35
+ }) => i({
36
+ color: (e.vars || e).palette.text.secondary
37
+ }, e.typography.body1, {
38
+ lineHeight: "1.4375em",
39
+ padding: 0,
40
+ position: "relative",
41
+ [`&.${u.focused}`]: {
42
+ color: (e.vars || e).palette[r.color].main
43
+ },
44
+ [`&.${u.disabled}`]: {
45
+ color: (e.vars || e).palette.text.disabled
46
+ },
47
+ [`&.${u.error}`]: {
48
+ color: (e.vars || e).palette.error.main
49
+ }
50
+ })), A = b("span", {
51
+ name: "MuiFormLabel",
52
+ slot: "Asterisk",
53
+ overridesResolver: (e, r) => r.asterisk
54
+ })(({
55
+ theme: e
56
+ }) => ({
57
+ [`&.${u.error}`]: {
58
+ color: (e.vars || e).palette.error.main
59
+ }
60
+ })), N = /* @__PURE__ */ k.forwardRef(function(r, a) {
61
+ const s = z({
62
+ props: r,
63
+ name: "MuiFormLabel"
64
+ }), {
65
+ children: f,
66
+ className: l,
67
+ component: c = "label"
68
+ } = s, p = h(s, j), n = C(), t = g({
69
+ props: s,
70
+ muiFormControl: n,
71
+ states: ["color", "required", "focused", "disabled", "error", "filled"]
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),
85
+ ref: a
86
+ }, p, {
87
+ children: [f, t.required && /* @__PURE__ */ v(A, {
88
+ ownerState: d,
89
+ "aria-hidden": !0,
90
+ className: m.asterisk,
91
+ children: [" ", "*"]
92
+ })]
93
+ }));
94
+ });
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
+ // └─────────────────────────────────────────────────────────────────────┘
100
+ /**
101
+ * The content of the component.
102
+ */
103
+ children: o.node,
104
+ /**
105
+ * Override or extend the styles applied to the component.
106
+ */
107
+ classes: o.object,
108
+ /**
109
+ * @ignore
110
+ */
111
+ className: o.string,
112
+ /**
113
+ * The color of the component.
114
+ * It supports both default and custom theme colors, which can be added as shown in the
115
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
116
+ */
117
+ color: o.oneOfType([o.oneOf(["error", "info", "primary", "secondary", "success", "warning"]), o.string]),
118
+ /**
119
+ * The component used for the root node.
120
+ * Either a string to use a HTML element or a component.
121
+ */
122
+ component: o.elementType,
123
+ /**
124
+ * If `true`, the label should be displayed in a disabled state.
125
+ */
126
+ disabled: o.bool,
127
+ /**
128
+ * If `true`, the label is displayed in an error state.
129
+ */
130
+ error: o.bool,
131
+ /**
132
+ * If `true`, the label should use filled classes key.
133
+ */
134
+ filled: o.bool,
135
+ /**
136
+ * If `true`, the input of this label is focused (used by `FormGroup` components).
137
+ */
138
+ focused: o.bool,
139
+ /**
140
+ * If `true`, the label will indicate that the `input` is required.
141
+ */
142
+ required: o.bool,
143
+ /**
144
+ * The system prop that allows defining system overrides as well as additional CSS styles.
145
+ */
146
+ sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
147
+ });
148
+ function E(e) {
149
+ return L("MuiInputLabel", e);
150
+ }
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) => {
153
+ const {
154
+ classes: r,
155
+ formControl: a,
156
+ size: s,
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",
168
+ name: "MuiInputLabel",
169
+ slot: "Root",
170
+ overridesResolver: (e, r) => {
171
+ const {
172
+ ownerState: a
173
+ } = e;
174
+ return [{
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]];
177
+ }
178
+ })(({
179
+ theme: e,
180
+ ownerState: r
181
+ }) => i({
182
+ display: "block",
183
+ transformOrigin: "top left",
184
+ whiteSpace: "nowrap",
185
+ overflow: "hidden",
186
+ textOverflow: "ellipsis",
187
+ maxWidth: "100%"
188
+ }, r.formControl && {
189
+ position: "absolute",
190
+ left: 0,
191
+ top: 0,
192
+ // slight alteration to spec spacing to match visual spec result
193
+ transform: "translate(0, 20px) scale(1)"
194
+ }, r.size === "small" && {
195
+ // Compensation for the `Input.inputSizeSmall` style.
196
+ transform: "translate(0, 17px) scale(1)"
197
+ }, r.shrink && {
198
+ transform: "translate(0, -1.5px) scale(0.75)",
199
+ transformOrigin: "top left",
200
+ maxWidth: "133%"
201
+ }, !r.disableAnimation && {
202
+ transition: e.transitions.create(["color", "transform", "max-width"], {
203
+ duration: e.transitions.duration.shorter,
204
+ easing: e.transitions.easing.easeOut
205
+ })
206
+ }, r.variant === "filled" && i({
207
+ // Chrome's autofill feature gives the input field a yellow background.
208
+ // Since the input field is behind the label in the HTML tree,
209
+ // the input field is drawn last and hides the label with an opaque background color.
210
+ // zIndex: 1 will raise the label above opaque background-colors of input.
211
+ zIndex: 1,
212
+ pointerEvents: "none",
213
+ transform: "translate(12px, 16px) scale(1)",
214
+ maxWidth: "calc(100% - 24px)"
215
+ }, r.size === "small" && {
216
+ transform: "translate(12px, 13px) scale(1)"
217
+ }, r.shrink && i({
218
+ userSelect: "none",
219
+ pointerEvents: "auto",
220
+ transform: "translate(12px, 7px) scale(0.75)",
221
+ maxWidth: "calc(133% - 24px)"
222
+ }, r.size === "small" && {
223
+ transform: "translate(12px, 4px) scale(0.75)"
224
+ })), r.variant === "outlined" && i({
225
+ // see comment above on filled.zIndex
226
+ zIndex: 1,
227
+ pointerEvents: "none",
228
+ transform: "translate(14px, 16px) scale(1)",
229
+ maxWidth: "calc(100% - 24px)"
230
+ }, r.size === "small" && {
231
+ transform: "translate(14px, 9px) scale(1)"
232
+ }, r.shrink && {
233
+ userSelect: "none",
234
+ pointerEvents: "auto",
235
+ // Theoretically, we should have (8+5)*2/0.75 = 34px
236
+ // but it feels a better when it bleeds a bit on the left, so 32px.
237
+ maxWidth: "calc(133% - 32px)",
238
+ transform: "translate(14px, -9px) scale(0.75)"
239
+ }))), w = /* @__PURE__ */ k.forwardRef(function(r, a) {
240
+ const s = z({
241
+ name: "MuiInputLabel",
242
+ props: r
243
+ }), {
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({
251
+ props: s,
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,
266
+ ref: a,
267
+ className: y(x.root, c)
268
+ }, p, {
269
+ classes: x
270
+ }));
271
+ });
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
+ // └─────────────────────────────────────────────────────────────────────┘
277
+ /**
278
+ * The content of the component.
279
+ */
280
+ children: o.node,
281
+ /**
282
+ * Override or extend the styles applied to the component.
283
+ */
284
+ classes: o.object,
285
+ /**
286
+ * @ignore
287
+ */
288
+ className: o.string,
289
+ /**
290
+ * The color of the component.
291
+ * It supports both default and custom theme colors, which can be added as shown in the
292
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
293
+ */
294
+ color: o.oneOfType([o.oneOf(["error", "info", "primary", "secondary", "success", "warning"]), o.string]),
295
+ /**
296
+ * If `true`, the transition animation is disabled.
297
+ * @default false
298
+ */
299
+ disableAnimation: o.bool,
300
+ /**
301
+ * If `true`, the component is disabled.
302
+ */
303
+ disabled: o.bool,
304
+ /**
305
+ * If `true`, the label is displayed in an error state.
306
+ */
307
+ error: o.bool,
308
+ /**
309
+ * If `true`, the `input` of this label is focused.
310
+ */
311
+ focused: o.bool,
312
+ /**
313
+ * If `dense`, will adjust vertical spacing. This is normally obtained via context from
314
+ * FormControl.
315
+ */
316
+ margin: o.oneOf(["dense"]),
317
+ /**
318
+ * if `true`, the label will indicate that the `input` is required.
319
+ */
320
+ required: o.bool,
321
+ /**
322
+ * If `true`, the label is shrunk.
323
+ */
324
+ shrink: o.bool,
325
+ /**
326
+ * The size of the component.
327
+ * @default 'normal'
328
+ */
329
+ size: o.oneOfType([o.oneOf(["normal", "small"]), o.string]),
330
+ /**
331
+ * The system prop that allows defining system overrides as well as additional CSS styles.
332
+ */
333
+ sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
334
+ /**
335
+ * The variant to use.
336
+ */
337
+ variant: o.oneOf(["filled", "outlined", "standard"])
338
+ });
339
+ export {
340
+ w as I
341
+ };