@hybridcore/ui 1.6.11 → 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 (150) hide show
  1. package/dist/{AnimatedTheme-D3VZKKNV.js → AnimatedTheme-ktdO3Bel.js} +6 -6
  2. package/dist/{AxisRenderer-Doyw-FTI.js → AxisRenderer-BCQoUJw6.js} +6 -6
  3. package/dist/{AxisRendererY-BylCU67e.js → AxisRendererY-AXWvGU6r.js} +3 -3
  4. package/dist/{Bullet-C6357hTv.js → Bullet-Djj7Vs9T.js} +1 -1
  5. package/dist/{Button-DGOT8RcT.js → Button-BLY4PVJC.js} +3 -3
  6. package/dist/{CategoryAxis-B5uTZjhL.js → CategoryAxis-B6NqW8qd.js} +3 -3
  7. package/dist/{Circle-DhzVdFBd.js → Circle-BnfBNKBD.js} +1 -1
  8. package/dist/{ColorSet-DGLMpbL3.js → ColorSet-cyPmWGwh.js} +1 -1
  9. package/dist/{ColumnSeries-CqJ-563p.js → ColumnSeries-CtRTsn-E.js} +28 -28
  10. package/dist/{DateAxis-lJZjbAS-.js → DateAxis-DEXKps1S.js} +4 -4
  11. package/dist/{Entity-4Lr2piVN.js → Entity-BJCuhdq_.js} +14 -14
  12. package/dist/GaplessDateAxis-B2g2jgSG.js +376 -0
  13. package/dist/{Hierarchy-DPEcTr0v.js → Hierarchy-CEOK8Gzh.js} +4 -4
  14. package/dist/{Legend-CTb6rZz_.js → Legend-CFvQiIfn.js} +4 -4
  15. package/dist/{LineSeries-Dg1aytHA.js → LineSeries-D_IL2qGF.js} +4 -4
  16. package/dist/{LinearGradient-D1hzMjaW.js → LinearGradient-CxQyCSEB.js} +2 -2
  17. package/dist/{PieSeries-C9YUWMnA.js → PieSeries-CMH0Z7pz.js} +8 -8
  18. package/dist/{RoundedRectangle-B23Oh_r6.js → RoundedRectangle-BKLX1LKM.js} +2 -2
  19. package/dist/{Scrollbar-CSoXoZSe.js → Scrollbar-CTI7_8Qw.js} +4 -4
  20. package/dist/{Slice-CIP7Vmzu.js → Slice-BUncQh1B.js} +11 -11
  21. package/dist/{Tick-CRu6rQQy.js → Tick--VhF0xlz.js} +2 -2
  22. package/dist/{Tooltip-RhAldW7s.js → Tooltip-vyZRZWih.js} +1 -1
  23. package/dist/{XYCursor-Z-Ral42q.js → XYCursor-CVUSpqb9.js} +3 -3
  24. package/dist/{ZoomableContainer-D1laxHnA.js → ZoomableContainer-Ca_pDVYQ.js} +2 -2
  25. package/dist/assets/index.css +1 -1
  26. package/dist/assets/index2.css +1 -1
  27. package/dist/components/button/styled.js +1 -1
  28. package/dist/components/charts/_common/format.js +149 -41
  29. package/dist/components/charts/_common/tooltip.js +2 -2
  30. package/dist/components/charts/_common/utils.js +16 -11
  31. package/dist/components/charts/candlestick/logic.js +34 -35
  32. package/dist/components/charts/column-line-mix/logic.js +40 -41
  33. package/dist/components/charts/donut-chart/logic.js +4 -4
  34. package/dist/components/charts/drill-down-treemap/logic.js +5 -5
  35. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +5 -5
  36. package/dist/components/charts/forecast-cone/logic.js +134 -120
  37. package/dist/components/charts/heatmap/logic.js +9 -9
  38. package/dist/components/charts/highlighting-line-data/logic.js +10 -10
  39. package/dist/components/charts/line/logic.js +19 -20
  40. package/dist/components/charts/logaritmic-scale/logic.js +30 -31
  41. package/dist/components/charts/multiple-value-axes/logic.js +18 -19
  42. package/dist/components/charts/nested-pie/logic.js +3 -3
  43. package/dist/components/charts/packed-circles/logic.js +7 -7
  44. package/dist/components/charts/pie-chart/logic.js +4 -4
  45. package/dist/components/charts/stacked-area-radar/logic.js +9 -9
  46. package/dist/components/charts/stacked-column-chart/logic.js +10 -10
  47. package/dist/components/charts/xy-chart/logic.js +28 -29
  48. package/dist/components/collapsible-card/index.js +21 -30
  49. package/dist/components/collapsible-card/styled.js +16 -14
  50. package/dist/components/color-picker/index.js +2227 -3357
  51. package/dist/components/color-picker/styled.js +87 -7
  52. package/dist/components/confirm/dialog.js +89 -8
  53. package/dist/components/confirm/index.js +1 -1
  54. package/dist/components/data-map/index.js +1 -1
  55. package/dist/components/data-map/logic.js +20 -20
  56. package/dist/components/data-security-selectors/dissemination-list/index.js +32 -3117
  57. package/dist/components/date-picker-with-custom-range/index.js +86 -7
  58. package/dist/components/date-range-picker/index.js +464 -452
  59. package/dist/components/document-viewer/components/viewer/index.js +1 -1
  60. package/dist/components/duration-select/index.js +10 -10
  61. package/dist/components/duration-select/styled.js +1 -1
  62. package/dist/components/geometry-picker/coordinate/index.js +14 -14
  63. package/dist/components/geometry-picker/edit/index.js +1 -1
  64. package/dist/components/geometry-picker/geometry/index.js +1 -1
  65. package/dist/components/geometry-picker/kml/index.js +11 -11
  66. package/dist/components/geometry-picker/map/logic.js +145 -3656
  67. package/dist/components/geometry-picker/map/style.js +18 -17
  68. package/dist/components/geometry-picker/parser/coordinate-input/logic.js +43 -1255
  69. package/dist/components/heat-map/index.js +1 -1
  70. package/dist/components/heat-map/logic.js +77 -1924
  71. package/dist/components/instance-hierarchy-table/styled.js +18 -16
  72. package/dist/components/map/helpers/mapbox.js +17 -15
  73. package/dist/components/map/helpers/ol.js +386 -27
  74. package/dist/components/map/index.js +11 -10
  75. package/dist/components/map/logic.js +22 -22
  76. package/dist/components/map/styled.js +31 -27
  77. package/dist/components/metric-card/MetricChart.js +9 -9
  78. package/dist/components/metric-card/logic.js +46 -49
  79. package/dist/components/phone-input/index.js +10 -9
  80. package/dist/components/property-mapping/index.js +1 -1
  81. package/dist/components/prr-map/index.js +1 -1
  82. package/dist/components/prr-map/logic.js +27 -26
  83. package/dist/components/range-selector/styled.js +65 -4228
  84. package/dist/components/raster-grid-map/index.js +1 -1
  85. package/dist/components/raster-grid-map/logic.js +60 -57
  86. package/dist/components/simple-pivot-table/index.js +17 -17
  87. package/dist/components/simple-pivot-table/logic.js +67 -76
  88. package/dist/components/sortable-list/index.js +1091 -1264
  89. package/dist/components/template-form/components/property-list/index.js +36 -33
  90. package/dist/components/template-form/components/property-list/property-list-columns.js +19 -18
  91. package/dist/components/template-form/components/property-list/property-list-form.js +137 -601
  92. package/dist/components/template-form/components/recognition-property-list/index.js +40 -37
  93. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +11 -10
  94. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +55 -63
  95. package/dist/components/tree-select/index.js +16 -16
  96. package/dist/index.esm-UfGMjYOL.js +197 -0
  97. package/dist/main.d.ts +67 -8
  98. package/dist/main.js +176 -175
  99. package/package.json +1 -1
  100. package/dist/AccordionSummary-CJppWeqF.js +0 -781
  101. package/dist/Add-CqcD1PWb.js +0 -403
  102. package/dist/Box-DqUMmZjL.js +0 -31
  103. package/dist/Button-C5yquWAB.js +0 -357
  104. package/dist/ButtonBase-BEF7oTOe.js +0 -887
  105. package/dist/DataProcessor-WXzhvIg6.js +0 -83
  106. package/dist/Delete-BdyYpINH.js +0 -23
  107. package/dist/DialogContent-BvVjD9z3.js +0 -523
  108. package/dist/FormGroup-CpBsIyYR.js +0 -89
  109. package/dist/GaplessDateAxis-DowssQ6y.js +0 -296
  110. package/dist/IconButton-BoGwbvrP.js +0 -184
  111. package/dist/InputLabel-Dd8RrneV.js +0 -341
  112. package/dist/MenuItem-DwqJqzuM.js +0 -233
  113. package/dist/Modal-MUZygjmQ.js +0 -1158
  114. package/dist/Paper-BkQLdsCI.js +0 -582
  115. package/dist/Select-DHUl_uG3.js +0 -3916
  116. package/dist/Source-BSZST_GH.js +0 -4410
  117. package/dist/SwitchBase-DTndTqI8.js +0 -235
  118. package/dist/Text-ChJRuaD8.js +0 -2197
  119. package/dist/TextField-e2oKaUN1.js +0 -669
  120. package/dist/TransitionGroupContext-BDAp2T0O.js +0 -96
  121. package/dist/Typography-DgsSLCFC.js +0 -178
  122. package/dist/Vector-BmuhQO4p.js +0 -3606
  123. package/dist/Vector-DfTqQEln.js +0 -1735
  124. package/dist/WKT-2wsDT-nq.js +0 -2310
  125. package/dist/assertThisInitialized-C1dAyb4j.js +0 -7
  126. package/dist/assets/index3.css +0 -1
  127. package/dist/assets/index4.css +0 -1
  128. package/dist/clsx-OuTLNxxd.js +0 -16
  129. package/dist/createChainedFunction-C0nujS3O.js +0 -9
  130. package/dist/createSvgIcon-Ch_cT8az.js +0 -185
  131. package/dist/createSvgIcon-DuDuASu1.js +0 -62
  132. package/dist/debounce-46wSf_lW.js +0 -15
  133. package/dist/dialog-BYRnCztH.js +0 -154
  134. package/dist/formControlState-vgaj2ksH.js +0 -10
  135. package/dist/generateUtilityClasses-C3ivN9Ie.js +0 -2973
  136. package/dist/index-DH6qsPBn.js +0 -153
  137. package/dist/index-e9xTIYWt.js +0 -1934
  138. package/dist/index.esm-BLLrbTzY.js +0 -318
  139. package/dist/math-Bvt2Ubuz.js +0 -704
  140. package/dist/objectWithoutPropertiesLoose-DJteAcBH.js +0 -22
  141. package/dist/ol-yOE-NV0X.js +0 -7465
  142. package/dist/ownerWindow-wg6foiOE.js +0 -10
  143. package/dist/setPrototypeOf-NPgp4cYc.js +0 -8
  144. package/dist/styled-SoqbyrkW.js +0 -350
  145. package/dist/unsupportedProp-DuqR2hj9.js +0 -36
  146. package/dist/useControlled-BYdyS7Pn.js +0 -31
  147. package/dist/useFormControl-CatNKXAi.js +0 -10
  148. package/dist/useId-BW-oWmul.js +0 -19
  149. package/dist/useMobilePicker-CY8ndYRL.js +0 -8279
  150. package/dist/useSlot-B_Q4vnX5.js +0 -42
@@ -1,669 +0,0 @@
1
- import { a as l, _ as V } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
2
- import * as p from "react";
3
- import { P as e } from "./index-C__OZmYy.js";
4
- import { c as D } from "./clsx-OuTLNxxd.js";
5
- import { a as A, g as k, s as G, b as W, u as J, c as K } from "./generateUtilityClasses-C3ivN9Ie.js";
6
- import { jsx as F, jsxs as de } from "react/jsx-runtime";
7
- import { i as ue, a as ee, S as ce, I as pe, F as fe, O as me } from "./Select-DHUl_uG3.js";
8
- import { F as be, u as ge } from "./useFormControl-CatNKXAi.js";
9
- import { i as U } from "./unsupportedProp-DuqR2hj9.js";
10
- import { u as he } from "./useId-BW-oWmul.js";
11
- import { I as Te } from "./InputLabel-Dd8RrneV.js";
12
- import { f as Fe } from "./formControlState-vgaj2ksH.js";
13
- import { r as ye } from "./TransitionGroupContext-BDAp2T0O.js";
14
- function ve(o) {
15
- return A("MuiFormControl", o);
16
- }
17
- k("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDense", "fullWidth", "disabled"]);
18
- const xe = ["children", "className", "color", "component", "disabled", "error", "focused", "fullWidth", "hiddenLabel", "margin", "required", "size", "variant"], Ce = (o) => {
19
- const {
20
- classes: r,
21
- margin: s,
22
- fullWidth: t
23
- } = o, i = {
24
- root: ["root", s !== "none" && `margin${W(s)}`, t && "fullWidth"]
25
- };
26
- return K(i, ve, r);
27
- }, Oe = G("div", {
28
- name: "MuiFormControl",
29
- slot: "Root",
30
- overridesResolver: ({
31
- ownerState: o
32
- }, r) => l({}, r.root, r[`margin${W(o.margin)}`], o.fullWidth && r.fullWidth)
33
- })(({
34
- ownerState: o
35
- }) => l({
36
- display: "inline-flex",
37
- flexDirection: "column",
38
- position: "relative",
39
- // Reset fieldset default style.
40
- minWidth: 0,
41
- padding: 0,
42
- margin: 0,
43
- border: 0,
44
- verticalAlign: "top"
45
- }, o.margin === "normal" && {
46
- marginTop: 16,
47
- marginBottom: 8
48
- }, o.margin === "dense" && {
49
- marginTop: 8,
50
- marginBottom: 4
51
- }, o.fullWidth && {
52
- width: "100%"
53
- })), te = /* @__PURE__ */ p.forwardRef(function(r, s) {
54
- const t = J({
55
- props: r,
56
- name: "MuiFormControl"
57
- }), {
58
- children: i,
59
- className: f,
60
- color: u = "primary",
61
- component: m = "div",
62
- disabled: a = !1,
63
- error: n = !1,
64
- focused: b,
65
- fullWidth: g = !1,
66
- hiddenLabel: C = !1,
67
- margin: O = "none",
68
- required: y = !1,
69
- size: R = "medium",
70
- variant: h = "outlined"
71
- } = t, q = V(t, xe), S = l({}, t, {
72
- color: u,
73
- component: m,
74
- disabled: a,
75
- error: n,
76
- fullWidth: g,
77
- hiddenLabel: C,
78
- margin: O,
79
- required: y,
80
- size: R,
81
- variant: h
82
- }), H = Ce(S), [T, _] = p.useState(() => {
83
- let d = !1;
84
- return i && p.Children.forEach(i, (c) => {
85
- if (!U(c, ["Input", "Select"]))
86
- return;
87
- const v = U(c, ["Select"]) ? c.props.input : c;
88
- v && ue(v.props) && (d = !0);
89
- }), d;
90
- }), [j, I] = p.useState(() => {
91
- let d = !1;
92
- return i && p.Children.forEach(i, (c) => {
93
- U(c, ["Input", "Select"]) && (ee(c.props, !0) || ee(c.props.inputProps, !0)) && (d = !0);
94
- }), d;
95
- }), [M, N] = p.useState(!1);
96
- a && M && N(!1);
97
- const z = b !== void 0 && !a ? b : M;
98
- let w;
99
- if (process.env.NODE_ENV !== "production") {
100
- const d = p.useRef(!1);
101
- w = () => (d.current && console.error(["MUI: There are multiple `InputBase` components inside a FormControl.", "This creates visual inconsistencies, only use one `InputBase`."].join(`
102
- `)), d.current = !0, () => {
103
- d.current = !1;
104
- });
105
- }
106
- const $ = p.useMemo(() => ({
107
- adornedStart: T,
108
- setAdornedStart: _,
109
- color: u,
110
- disabled: a,
111
- error: n,
112
- filled: j,
113
- focused: z,
114
- fullWidth: g,
115
- hiddenLabel: C,
116
- size: R,
117
- onBlur: () => {
118
- N(!1);
119
- },
120
- onEmpty: () => {
121
- I(!1);
122
- },
123
- onFilled: () => {
124
- I(!0);
125
- },
126
- onFocus: () => {
127
- N(!0);
128
- },
129
- registerEffect: w,
130
- required: y,
131
- variant: h
132
- }), [T, u, a, n, j, z, g, C, w, y, R, h]);
133
- return /* @__PURE__ */ F(be.Provider, {
134
- value: $,
135
- children: /* @__PURE__ */ F(Oe, l({
136
- as: m,
137
- ownerState: S,
138
- className: D(H.root, f),
139
- ref: s
140
- }, q, {
141
- children: i
142
- }))
143
- });
144
- });
145
- process.env.NODE_ENV !== "production" && (te.propTypes = {
146
- // ┌────────────────────────────── Warning ──────────────────────────────┐
147
- // │ These PropTypes are generated from the TypeScript type definitions. │
148
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
149
- // └─────────────────────────────────────────────────────────────────────┘
150
- /**
151
- * The content of the component.
152
- */
153
- children: e.node,
154
- /**
155
- * Override or extend the styles applied to the component.
156
- */
157
- classes: e.object,
158
- /**
159
- * @ignore
160
- */
161
- className: e.string,
162
- /**
163
- * The color of the component.
164
- * It supports both default and custom theme colors, which can be added as shown in the
165
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
166
- * @default 'primary'
167
- */
168
- color: e.oneOfType([e.oneOf(["primary", "secondary", "error", "info", "success", "warning"]), e.string]),
169
- /**
170
- * The component used for the root node.
171
- * Either a string to use a HTML element or a component.
172
- */
173
- component: e.elementType,
174
- /**
175
- * If `true`, the label, input and helper text should be displayed in a disabled state.
176
- * @default false
177
- */
178
- disabled: e.bool,
179
- /**
180
- * If `true`, the label is displayed in an error state.
181
- * @default false
182
- */
183
- error: e.bool,
184
- /**
185
- * If `true`, the component is displayed in focused state.
186
- */
187
- focused: e.bool,
188
- /**
189
- * If `true`, the component will take up the full width of its container.
190
- * @default false
191
- */
192
- fullWidth: e.bool,
193
- /**
194
- * If `true`, the label is hidden.
195
- * This is used to increase density for a `FilledInput`.
196
- * Be sure to add `aria-label` to the `input` element.
197
- * @default false
198
- */
199
- hiddenLabel: e.bool,
200
- /**
201
- * If `dense` or `normal`, will adjust vertical spacing of this and contained components.
202
- * @default 'none'
203
- */
204
- margin: e.oneOf(["dense", "none", "normal"]),
205
- /**
206
- * If `true`, the label will indicate that the `input` is required.
207
- * @default false
208
- */
209
- required: e.bool,
210
- /**
211
- * The size of the component.
212
- * @default 'medium'
213
- */
214
- size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
215
- /**
216
- * The system prop that allows defining system overrides as well as additional CSS styles.
217
- */
218
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
219
- /**
220
- * The variant to use.
221
- * @default 'outlined'
222
- */
223
- variant: e.oneOf(["filled", "outlined", "standard"])
224
- });
225
- function Re(o) {
226
- return A("MuiFormHelperText", o);
227
- }
228
- const oe = k("MuiFormHelperText", ["root", "error", "disabled", "sizeSmall", "sizeMedium", "contained", "focused", "filled", "required"]);
229
- var re;
230
- const Ie = ["children", "className", "component", "disabled", "error", "filled", "focused", "margin", "required", "variant"], Ne = (o) => {
231
- const {
232
- classes: r,
233
- contained: s,
234
- size: t,
235
- disabled: i,
236
- error: f,
237
- filled: u,
238
- focused: m,
239
- required: a
240
- } = o, n = {
241
- root: ["root", i && "disabled", f && "error", t && `size${W(t)}`, s && "contained", m && "focused", u && "filled", a && "required"]
242
- };
243
- return K(n, Re, r);
244
- }, we = G("p", {
245
- name: "MuiFormHelperText",
246
- slot: "Root",
247
- overridesResolver: (o, r) => {
248
- const {
249
- ownerState: s
250
- } = o;
251
- return [r.root, s.size && r[`size${W(s.size)}`], s.contained && r.contained, s.filled && r.filled];
252
- }
253
- })(({
254
- theme: o,
255
- ownerState: r
256
- }) => l({
257
- color: (o.vars || o).palette.text.secondary
258
- }, o.typography.caption, {
259
- textAlign: "left",
260
- marginTop: 3,
261
- marginRight: 0,
262
- marginBottom: 0,
263
- marginLeft: 0,
264
- [`&.${oe.disabled}`]: {
265
- color: (o.vars || o).palette.text.disabled
266
- },
267
- [`&.${oe.error}`]: {
268
- color: (o.vars || o).palette.error.main
269
- }
270
- }, r.size === "small" && {
271
- marginTop: 4
272
- }, r.contained && {
273
- marginLeft: 14,
274
- marginRight: 14
275
- })), ne = /* @__PURE__ */ p.forwardRef(function(r, s) {
276
- const t = J({
277
- props: r,
278
- name: "MuiFormHelperText"
279
- }), {
280
- children: i,
281
- className: f,
282
- component: u = "p"
283
- } = t, m = V(t, Ie), a = ge(), n = Fe({
284
- props: t,
285
- muiFormControl: a,
286
- states: ["variant", "size", "disabled", "error", "filled", "focused", "required"]
287
- }), b = l({}, t, {
288
- component: u,
289
- contained: n.variant === "filled" || n.variant === "outlined",
290
- variant: n.variant,
291
- size: n.size,
292
- disabled: n.disabled,
293
- error: n.error,
294
- filled: n.filled,
295
- focused: n.focused,
296
- required: n.required
297
- }), g = Ne(b);
298
- return /* @__PURE__ */ F(we, l({
299
- as: u,
300
- ownerState: b,
301
- className: D(g.root, f),
302
- ref: s
303
- }, m, {
304
- children: i === " " ? (
305
- // notranslate needed while Google Translate will not fix zero-width space issue
306
- re || (re = /* @__PURE__ */ F("span", {
307
- className: "notranslate",
308
- children: "​"
309
- }))
310
- ) : i
311
- }));
312
- });
313
- process.env.NODE_ENV !== "production" && (ne.propTypes = {
314
- // ┌────────────────────────────── Warning ──────────────────────────────┐
315
- // │ These PropTypes are generated from the TypeScript type definitions. │
316
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
317
- // └─────────────────────────────────────────────────────────────────────┘
318
- /**
319
- * The content of the component.
320
- *
321
- * If `' '` is provided, the component reserves one line height for displaying a future message.
322
- */
323
- children: e.node,
324
- /**
325
- * Override or extend the styles applied to the component.
326
- */
327
- classes: e.object,
328
- /**
329
- * @ignore
330
- */
331
- className: e.string,
332
- /**
333
- * The component used for the root node.
334
- * Either a string to use a HTML element or a component.
335
- */
336
- component: e.elementType,
337
- /**
338
- * If `true`, the helper text should be displayed in a disabled state.
339
- */
340
- disabled: e.bool,
341
- /**
342
- * If `true`, helper text should be displayed in an error state.
343
- */
344
- error: e.bool,
345
- /**
346
- * If `true`, the helper text should use filled classes key.
347
- */
348
- filled: e.bool,
349
- /**
350
- * If `true`, the helper text should use focused classes key.
351
- */
352
- focused: e.bool,
353
- /**
354
- * If `dense`, will adjust vertical spacing. This is normally obtained via context from
355
- * FormControl.
356
- */
357
- margin: e.oneOf(["dense"]),
358
- /**
359
- * If `true`, the helper text should use required classes key.
360
- */
361
- required: e.bool,
362
- /**
363
- * The system prop that allows defining system overrides as well as additional CSS styles.
364
- */
365
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
366
- /**
367
- * The variant to use.
368
- */
369
- variant: e.oneOfType([e.oneOf(["filled", "outlined", "standard"]), e.string])
370
- });
371
- function Pe(o) {
372
- return A("MuiTextField", o);
373
- }
374
- k("MuiTextField", ["root"]);
375
- const Se = ["autoComplete", "autoFocus", "children", "className", "color", "defaultValue", "disabled", "error", "FormHelperTextProps", "fullWidth", "helperText", "id", "InputLabelProps", "inputProps", "InputProps", "inputRef", "label", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onFocus", "placeholder", "required", "rows", "select", "SelectProps", "type", "value", "variant"], je = {
376
- standard: pe,
377
- filled: fe,
378
- outlined: me
379
- }, Me = (o) => {
380
- const {
381
- classes: r
382
- } = o;
383
- return K({
384
- root: ["root"]
385
- }, Pe, r);
386
- }, ze = G(te, {
387
- name: "MuiTextField",
388
- slot: "Root",
389
- overridesResolver: (o, r) => r.root
390
- })({}), Ee = /* @__PURE__ */ p.forwardRef(function(r, s) {
391
- const t = J({
392
- props: r,
393
- name: "MuiTextField"
394
- }), {
395
- autoComplete: i,
396
- autoFocus: f = !1,
397
- children: u,
398
- className: m,
399
- color: a = "primary",
400
- defaultValue: n,
401
- disabled: b = !1,
402
- error: g = !1,
403
- FormHelperTextProps: C,
404
- fullWidth: O = !1,
405
- helperText: y,
406
- id: R,
407
- InputLabelProps: h,
408
- inputProps: q,
409
- InputProps: S,
410
- inputRef: H,
411
- label: T,
412
- maxRows: _,
413
- minRows: j,
414
- multiline: I = !1,
415
- name: M,
416
- onBlur: N,
417
- onChange: z,
418
- onFocus: w,
419
- placeholder: $,
420
- required: d = !1,
421
- rows: c,
422
- select: v = !1,
423
- SelectProps: B,
424
- type: se,
425
- value: Q,
426
- variant: E = "outlined"
427
- } = t, ie = V(t, Se), X = l({}, t, {
428
- autoFocus: f,
429
- color: a,
430
- disabled: b,
431
- error: g,
432
- fullWidth: O,
433
- multiline: I,
434
- required: d,
435
- select: v,
436
- variant: E
437
- }), le = Me(X);
438
- process.env.NODE_ENV !== "production" && v && !u && console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");
439
- const P = {};
440
- E === "outlined" && (h && typeof h.shrink < "u" && (P.notched = h.shrink), P.label = T), v && ((!B || !B.native) && (P.id = void 0), P["aria-describedby"] = void 0);
441
- const x = he(R), L = y && x ? `${x}-helper-text` : void 0, Y = T && x ? `${x}-label` : void 0, ae = je[E], Z = /* @__PURE__ */ F(ae, l({
442
- "aria-describedby": L,
443
- autoComplete: i,
444
- autoFocus: f,
445
- defaultValue: n,
446
- fullWidth: O,
447
- multiline: I,
448
- name: M,
449
- rows: c,
450
- maxRows: _,
451
- minRows: j,
452
- type: se,
453
- value: Q,
454
- id: x,
455
- inputRef: H,
456
- onBlur: N,
457
- onChange: z,
458
- onFocus: w,
459
- placeholder: $,
460
- inputProps: q
461
- }, P, S));
462
- return /* @__PURE__ */ de(ze, l({
463
- className: D(le.root, m),
464
- disabled: b,
465
- error: g,
466
- fullWidth: O,
467
- ref: s,
468
- required: d,
469
- color: a,
470
- variant: E,
471
- ownerState: X
472
- }, ie, {
473
- children: [T != null && T !== "" && /* @__PURE__ */ F(Te, l({
474
- htmlFor: x,
475
- id: Y
476
- }, h, {
477
- children: T
478
- })), v ? /* @__PURE__ */ F(ce, l({
479
- "aria-describedby": L,
480
- id: x,
481
- labelId: Y,
482
- value: Q,
483
- input: Z
484
- }, B, {
485
- children: u
486
- })) : Z, y && /* @__PURE__ */ F(ne, l({
487
- id: L
488
- }, C, {
489
- children: y
490
- }))]
491
- }));
492
- });
493
- process.env.NODE_ENV !== "production" && (Ee.propTypes = {
494
- // ┌────────────────────────────── Warning ──────────────────────────────┐
495
- // │ These PropTypes are generated from the TypeScript type definitions. │
496
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
497
- // └─────────────────────────────────────────────────────────────────────┘
498
- /**
499
- * This prop helps users to fill forms faster, especially on mobile devices.
500
- * The name can be confusing, as it's more like an autofill.
501
- * You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).
502
- */
503
- autoComplete: e.string,
504
- /**
505
- * If `true`, the `input` element is focused during the first mount.
506
- * @default false
507
- */
508
- autoFocus: e.bool,
509
- /**
510
- * @ignore
511
- */
512
- children: e.node,
513
- /**
514
- * Override or extend the styles applied to the component.
515
- */
516
- classes: e.object,
517
- /**
518
- * @ignore
519
- */
520
- className: e.string,
521
- /**
522
- * The color of the component.
523
- * It supports both default and custom theme colors, which can be added as shown in the
524
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
525
- * @default 'primary'
526
- */
527
- color: e.oneOfType([e.oneOf(["primary", "secondary", "error", "info", "success", "warning"]), e.string]),
528
- /**
529
- * The default value. Use when the component is not controlled.
530
- */
531
- defaultValue: e.any,
532
- /**
533
- * If `true`, the component is disabled.
534
- * @default false
535
- */
536
- disabled: e.bool,
537
- /**
538
- * If `true`, the label is displayed in an error state.
539
- * @default false
540
- */
541
- error: e.bool,
542
- /**
543
- * Props applied to the [`FormHelperText`](/material-ui/api/form-helper-text/) element.
544
- */
545
- FormHelperTextProps: e.object,
546
- /**
547
- * If `true`, the input will take up the full width of its container.
548
- * @default false
549
- */
550
- fullWidth: e.bool,
551
- /**
552
- * The helper text content.
553
- */
554
- helperText: e.node,
555
- /**
556
- * The id of the `input` element.
557
- * Use this prop to make `label` and `helperText` accessible for screen readers.
558
- */
559
- id: e.string,
560
- /**
561
- * Props applied to the [`InputLabel`](/material-ui/api/input-label/) element.
562
- * Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
563
- */
564
- InputLabelProps: e.object,
565
- /**
566
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
567
- */
568
- inputProps: e.object,
569
- /**
570
- * Props applied to the Input element.
571
- * It will be a [`FilledInput`](/material-ui/api/filled-input/),
572
- * [`OutlinedInput`](/material-ui/api/outlined-input/) or [`Input`](/material-ui/api/input/)
573
- * component depending on the `variant` prop value.
574
- */
575
- InputProps: e.object,
576
- /**
577
- * Pass a ref to the `input` element.
578
- */
579
- inputRef: ye,
580
- /**
581
- * The label content.
582
- */
583
- label: e.node,
584
- /**
585
- * If `dense` or `normal`, will adjust vertical spacing of this and contained components.
586
- * @default 'none'
587
- */
588
- margin: e.oneOf(["dense", "none", "normal"]),
589
- /**
590
- * Maximum number of rows to display when multiline option is set to true.
591
- */
592
- maxRows: e.oneOfType([e.number, e.string]),
593
- /**
594
- * Minimum number of rows to display when multiline option is set to true.
595
- */
596
- minRows: e.oneOfType([e.number, e.string]),
597
- /**
598
- * If `true`, a `textarea` element is rendered instead of an input.
599
- * @default false
600
- */
601
- multiline: e.bool,
602
- /**
603
- * Name attribute of the `input` element.
604
- */
605
- name: e.string,
606
- /**
607
- * @ignore
608
- */
609
- onBlur: e.func,
610
- /**
611
- * Callback fired when the value is changed.
612
- *
613
- * @param {object} event The event source of the callback.
614
- * You can pull out the new value by accessing `event.target.value` (string).
615
- */
616
- onChange: e.func,
617
- /**
618
- * @ignore
619
- */
620
- onFocus: e.func,
621
- /**
622
- * The short hint displayed in the `input` before the user enters a value.
623
- */
624
- placeholder: e.string,
625
- /**
626
- * If `true`, the label is displayed as required and the `input` element is required.
627
- * @default false
628
- */
629
- required: e.bool,
630
- /**
631
- * Number of rows to display when multiline option is set to true.
632
- */
633
- rows: e.oneOfType([e.number, e.string]),
634
- /**
635
- * Render a [`Select`](/material-ui/api/select/) element while passing the Input element to `Select` as `input` parameter.
636
- * If this option is set you must pass the options of the select as children.
637
- * @default false
638
- */
639
- select: e.bool,
640
- /**
641
- * Props applied to the [`Select`](/material-ui/api/select/) element.
642
- */
643
- SelectProps: e.object,
644
- /**
645
- * The size of the component.
646
- */
647
- size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
648
- /**
649
- * The system prop that allows defining system overrides as well as additional CSS styles.
650
- */
651
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
652
- /**
653
- * 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).
654
- */
655
- type: e.string,
656
- /**
657
- * The value of the `input` element, required for a controlled component.
658
- */
659
- value: e.any,
660
- /**
661
- * The variant to use.
662
- * @default 'outlined'
663
- */
664
- variant: e.oneOf(["filled", "outlined", "standard"])
665
- });
666
- export {
667
- te as F,
668
- Ee as T
669
- };