@hybridcore/ui 1.6.12 → 1.6.13

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 (105) hide show
  1. package/dist/assets/index.css +1 -1
  2. package/dist/assets/index2.css +1 -1
  3. package/dist/components/button/styled.js +1 -1
  4. package/dist/components/charts/_common/format.js +149 -41
  5. package/dist/components/charts/_common/utils.js +16 -11
  6. package/dist/components/collapsible-card/index.js +21 -30
  7. package/dist/components/collapsible-card/styled.js +16 -14
  8. package/dist/components/color-picker/index.js +2227 -3357
  9. package/dist/components/color-picker/styled.js +87 -7
  10. package/dist/components/confirm/dialog.js +89 -8
  11. package/dist/components/confirm/index.js +1 -1
  12. package/dist/components/data-map/index.js +1 -1
  13. package/dist/components/data-map/logic.js +20 -20
  14. package/dist/components/data-security-selectors/dissemination-list/index.js +32 -3117
  15. package/dist/components/date-picker-with-custom-range/index.js +86 -7
  16. package/dist/components/date-range-picker/index.js +464 -452
  17. package/dist/components/document-viewer/components/viewer/index.js +1 -1
  18. package/dist/components/duration-select/index.js +10 -10
  19. package/dist/components/duration-select/styled.js +1 -1
  20. package/dist/components/geometry-picker/coordinate/index.js +14 -14
  21. package/dist/components/geometry-picker/edit/index.js +1 -1
  22. package/dist/components/geometry-picker/geometry/index.js +1 -1
  23. package/dist/components/geometry-picker/kml/index.js +11 -11
  24. package/dist/components/geometry-picker/map/logic.js +145 -3656
  25. package/dist/components/geometry-picker/map/style.js +18 -17
  26. package/dist/components/geometry-picker/parser/coordinate-input/logic.js +43 -1255
  27. package/dist/components/heat-map/index.js +1 -1
  28. package/dist/components/heat-map/logic.js +77 -1924
  29. package/dist/components/instance-hierarchy-table/styled.js +18 -16
  30. package/dist/components/map/helpers/mapbox.js +17 -15
  31. package/dist/components/map/helpers/ol.js +386 -27
  32. package/dist/components/map/index.js +11 -10
  33. package/dist/components/map/logic.js +22 -22
  34. package/dist/components/map/styled.js +31 -27
  35. package/dist/components/metric-card/logic.js +46 -49
  36. package/dist/components/phone-input/index.js +10 -9
  37. package/dist/components/property-mapping/index.js +1 -1
  38. package/dist/components/prr-map/index.js +1 -1
  39. package/dist/components/prr-map/logic.js +27 -26
  40. package/dist/components/range-selector/styled.js +65 -4228
  41. package/dist/components/raster-grid-map/index.js +1 -1
  42. package/dist/components/raster-grid-map/logic.js +60 -57
  43. package/dist/components/simple-pivot-table/index.js +17 -17
  44. package/dist/components/simple-pivot-table/logic.js +67 -76
  45. package/dist/components/sortable-list/index.js +1091 -1264
  46. package/dist/components/template-form/components/property-list/index.js +36 -33
  47. package/dist/components/template-form/components/property-list/property-list-columns.js +19 -18
  48. package/dist/components/template-form/components/property-list/property-list-form.js +137 -601
  49. package/dist/components/template-form/components/recognition-property-list/index.js +40 -37
  50. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +11 -10
  51. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +55 -63
  52. package/dist/components/tree-select/index.js +16 -16
  53. package/dist/index.esm-UfGMjYOL.js +197 -0
  54. package/dist/main.d.ts +54 -8
  55. package/dist/main.js +176 -175
  56. package/package.json +1 -1
  57. package/dist/AccordionSummary-CJppWeqF.js +0 -781
  58. package/dist/Add-CqcD1PWb.js +0 -403
  59. package/dist/Box-DqUMmZjL.js +0 -31
  60. package/dist/Button-C5yquWAB.js +0 -357
  61. package/dist/ButtonBase-BEF7oTOe.js +0 -887
  62. package/dist/Delete-BdyYpINH.js +0 -23
  63. package/dist/DialogContent-BvVjD9z3.js +0 -523
  64. package/dist/FormGroup-CpBsIyYR.js +0 -89
  65. package/dist/IconButton-BoGwbvrP.js +0 -184
  66. package/dist/InputLabel-Dd8RrneV.js +0 -341
  67. package/dist/MenuItem-DwqJqzuM.js +0 -233
  68. package/dist/Modal-MUZygjmQ.js +0 -1158
  69. package/dist/Paper-BkQLdsCI.js +0 -582
  70. package/dist/Select-DHUl_uG3.js +0 -3916
  71. package/dist/Source-BSZST_GH.js +0 -4410
  72. package/dist/SwitchBase-DTndTqI8.js +0 -235
  73. package/dist/Text-ChJRuaD8.js +0 -2197
  74. package/dist/TextField-e2oKaUN1.js +0 -669
  75. package/dist/TransitionGroupContext-BDAp2T0O.js +0 -96
  76. package/dist/Typography-DgsSLCFC.js +0 -178
  77. package/dist/Vector-BmuhQO4p.js +0 -3606
  78. package/dist/Vector-DfTqQEln.js +0 -1735
  79. package/dist/WKT-2wsDT-nq.js +0 -2310
  80. package/dist/assertThisInitialized-C1dAyb4j.js +0 -7
  81. package/dist/assets/index3.css +0 -1
  82. package/dist/assets/index4.css +0 -1
  83. package/dist/clsx-OuTLNxxd.js +0 -16
  84. package/dist/createChainedFunction-C0nujS3O.js +0 -9
  85. package/dist/createSvgIcon-Ch_cT8az.js +0 -185
  86. package/dist/createSvgIcon-DuDuASu1.js +0 -62
  87. package/dist/debounce-46wSf_lW.js +0 -15
  88. package/dist/dialog-BYRnCztH.js +0 -154
  89. package/dist/formControlState-vgaj2ksH.js +0 -10
  90. package/dist/generateUtilityClasses-C3ivN9Ie.js +0 -2973
  91. package/dist/index-DH6qsPBn.js +0 -153
  92. package/dist/index-e9xTIYWt.js +0 -1934
  93. package/dist/index.esm-BLLrbTzY.js +0 -318
  94. package/dist/math-Bvt2Ubuz.js +0 -704
  95. package/dist/objectWithoutPropertiesLoose-DJteAcBH.js +0 -22
  96. package/dist/ol-yOE-NV0X.js +0 -7465
  97. package/dist/ownerWindow-wg6foiOE.js +0 -10
  98. package/dist/setPrototypeOf-NPgp4cYc.js +0 -8
  99. package/dist/styled-SoqbyrkW.js +0 -350
  100. package/dist/unsupportedProp-DuqR2hj9.js +0 -36
  101. package/dist/useControlled-BYdyS7Pn.js +0 -31
  102. package/dist/useFormControl-CatNKXAi.js +0 -10
  103. package/dist/useId-BW-oWmul.js +0 -19
  104. package/dist/useMobilePicker-CY8ndYRL.js +0 -8279
  105. package/dist/useSlot-B_Q4vnX5.js +0 -42
@@ -1,184 +0,0 @@
1
- import { a as t, _ as h } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
2
- import * as d from "react";
3
- import { P as r } from "./index-C__OZmYy.js";
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
- function k(o) {
10
- return C("MuiIconButton", o);
11
- }
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
- const {
14
- classes: e,
15
- disabled: a,
16
- color: s,
17
- edge: i,
18
- size: l
19
- } = o, c = {
20
- root: ["root", a && "disabled", s !== "default" && `color${n(s)}`, i && `edge${n(i)}`, `size${n(l)}`]
21
- };
22
- return O(c, k, e);
23
- }, E = B(T, {
24
- name: "MuiIconButton",
25
- slot: "Root",
26
- overridesResolver: (o, e) => {
27
- const {
28
- ownerState: a
29
- } = o;
30
- return [e.root, a.color !== "default" && e[`color${n(a.color)}`], a.edge && e[`edge${n(a.edge)}`], e[`size${n(a.size)}`]];
31
- }
32
- })(({
33
- theme: o,
34
- ownerState: e
35
- }) => t({
36
- textAlign: "center",
37
- flex: "0 0 auto",
38
- fontSize: o.typography.pxToRem(24),
39
- padding: 8,
40
- borderRadius: "50%",
41
- overflow: "visible",
42
- // Explicitly set the default value to solve a bug on IE11.
43
- color: (o.vars || o).palette.action.active,
44
- transition: o.transitions.create("background-color", {
45
- duration: o.transitions.duration.shortest
46
- })
47
- }, !e.disableRipple && {
48
- "&:hover": {
49
- backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : g(o.palette.action.active, o.palette.action.hoverOpacity),
50
- // Reset on touch devices, it doesn't add specificity
51
- "@media (hover: none)": {
52
- backgroundColor: "transparent"
53
- }
54
- }
55
- }, e.edge === "start" && {
56
- marginLeft: e.size === "small" ? -3 : -12
57
- }, e.edge === "end" && {
58
- marginRight: e.size === "small" ? -3 : -12
59
- }), ({
60
- theme: o,
61
- ownerState: e
62
- }) => {
63
- var a;
64
- const s = (a = (o.vars || o).palette) == null ? void 0 : a[e.color];
65
- return t({}, e.color === "inherit" && {
66
- color: "inherit"
67
- }, e.color !== "inherit" && e.color !== "default" && t({
68
- color: s == null ? void 0 : s.main
69
- }, !e.disableRipple && {
70
- "&:hover": t({}, s && {
71
- backgroundColor: o.vars ? `rgba(${s.mainChannel} / ${o.vars.palette.action.hoverOpacity})` : g(s.main, o.palette.action.hoverOpacity)
72
- }, {
73
- // Reset on touch devices, it doesn't add specificity
74
- "@media (hover: none)": {
75
- backgroundColor: "transparent"
76
- }
77
- })
78
- }), e.size === "small" && {
79
- padding: 5,
80
- fontSize: o.typography.pxToRem(18)
81
- }, e.size === "large" && {
82
- padding: 12,
83
- fontSize: o.typography.pxToRem(28)
84
- }, {
85
- [`&.${P.disabled}`]: {
86
- backgroundColor: "transparent",
87
- color: (o.vars || o).palette.action.disabled
88
- }
89
- });
90
- }), M = /* @__PURE__ */ d.forwardRef(function(e, a) {
91
- const s = I({
92
- props: e,
93
- name: "MuiIconButton"
94
- }), {
95
- edge: i = !1,
96
- children: l,
97
- className: c,
98
- color: b = "default",
99
- disabled: p = !1,
100
- disableFocusRipple: u = !1,
101
- size: v = "medium"
102
- } = s, m = h(s, _), f = t({}, s, {
103
- edge: i,
104
- color: b,
105
- disabled: p,
106
- disableFocusRipple: u,
107
- size: v
108
- }), y = j(f);
109
- return /* @__PURE__ */ x(E, t({
110
- className: z(y.root, c),
111
- centerRipple: !0,
112
- focusRipple: !u,
113
- disabled: p,
114
- ref: a
115
- }, m, {
116
- ownerState: f,
117
- children: l
118
- }));
119
- });
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
- /**
126
- * The icon to display.
127
- */
128
- children: $(r.node, (o) => d.Children.toArray(o.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(`
129
- `)) : null),
130
- /**
131
- * Override or extend the styles applied to the component.
132
- */
133
- classes: r.object,
134
- /**
135
- * @ignore
136
- */
137
- className: r.string,
138
- /**
139
- * The color of the component.
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/#custom-colors).
142
- * @default 'default'
143
- */
144
- color: r.oneOfType([r.oneOf(["inherit", "default", "primary", "secondary", "error", "info", "success", "warning"]), r.string]),
145
- /**
146
- * If `true`, the component is disabled.
147
- * @default false
148
- */
149
- disabled: r.bool,
150
- /**
151
- * If `true`, the keyboard focus ripple is disabled.
152
- * @default false
153
- */
154
- disableFocusRipple: r.bool,
155
- /**
156
- * If `true`, the ripple effect is disabled.
157
- *
158
- * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
159
- * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
160
- * @default false
161
- */
162
- disableRipple: r.bool,
163
- /**
164
- * If given, uses a negative margin to counteract the padding on one
165
- * side (this is often helpful for aligning the left or right
166
- * side of the icon with content above or below, without ruining the border
167
- * size and shape).
168
- * @default false
169
- */
170
- edge: r.oneOf(["end", "start", !1]),
171
- /**
172
- * The size of the component.
173
- * `small` is equivalent to the dense button styling.
174
- * @default 'medium'
175
- */
176
- size: r.oneOfType([r.oneOf(["small", "medium", "large"]), r.string]),
177
- /**
178
- * The system prop that allows defining system overrides as well as additional CSS styles.
179
- */
180
- sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object])
181
- });
182
- export {
183
- M as I
184
- };
@@ -1,341 +0,0 @@
1
- import { a as i, _ as h } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
2
- import * as k from "react";
3
- import { P as o } from "./index-C__OZmYy.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-C3ivN9Ie.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
- };