@hybridcore/ui 1.6.1 → 1.6.3

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 (231) hide show
  1. package/CATALOG.md +179 -0
  2. package/README.md +1 -2
  3. package/dist/AccordionSummary-CJppWeqF.js +781 -0
  4. package/dist/Add-CqcD1PWb.js +403 -0
  5. package/dist/Box-DqUMmZjL.js +31 -0
  6. package/dist/Button-C5yquWAB.js +357 -0
  7. package/dist/ButtonBase-BEF7oTOe.js +887 -0
  8. package/dist/{Delete-fBLhTHbF.js → Delete-BdyYpINH.js} +9 -8
  9. package/dist/{DialogContent-CGJ7alb8.js → DialogContent-BvVjD9z3.js} +127 -122
  10. package/dist/FormGroup-CpBsIyYR.js +89 -0
  11. package/dist/{IconButton-_opV1iNK.js → IconButton-BoGwbvrP.js} +26 -26
  12. package/dist/{InputLabel-rEwwnD4_.js → InputLabel-Dd8RrneV.js} +140 -153
  13. package/dist/{MenuItem-DrE50M_p.js → MenuItem-DwqJqzuM.js} +65 -89
  14. package/dist/Modal-MUZygjmQ.js +1158 -0
  15. package/dist/Paper-BkQLdsCI.js +582 -0
  16. package/dist/Select-DHUl_uG3.js +3916 -0
  17. package/dist/SwitchBase-DTndTqI8.js +235 -0
  18. package/dist/TextField-e2oKaUN1.js +669 -0
  19. package/dist/TransitionGroupContext-BDAp2T0O.js +96 -0
  20. package/dist/{Typography-B-Z5Y0Xq.js → Typography-DgsSLCFC.js} +28 -26
  21. package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
  22. package/dist/assets/index4.css +1 -0
  23. package/dist/clsx-OuTLNxxd.js +16 -0
  24. package/dist/components/access/helpers.js +1 -1
  25. package/dist/components/access/logic.js +1 -1
  26. package/dist/components/button/index.js +10 -0
  27. package/dist/components/button/logic.js +26 -0
  28. package/dist/components/button/styled.js +9 -0
  29. package/dist/components/charts/_common/chart-error.js +19 -0
  30. package/dist/components/charts/candlestick/index.js +3 -3
  31. package/dist/components/charts/candlestick/logic.js +123 -113
  32. package/dist/components/charts/chart-wrapper/index.js +5 -5
  33. package/dist/components/charts/column-line-mix/index.js +9 -8
  34. package/dist/components/charts/column-line-mix/logic.js +68 -71
  35. package/dist/components/charts/drill-down-treemap/index.js +8 -7
  36. package/dist/components/charts/drill-down-treemap/logic.js +138 -144
  37. package/dist/components/charts/drill-down-voronoi-treemap/index.js +9 -8
  38. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +222 -228
  39. package/dist/components/charts/heatmap/index.js +9 -8
  40. package/dist/components/charts/heatmap/logic.js +167 -173
  41. package/dist/components/charts/highlighting-line-data/index.js +3 -3
  42. package/dist/components/charts/line/index.js +9 -8
  43. package/dist/components/charts/line/logic.js +74 -79
  44. package/dist/components/charts/logaritmic-scale/index.js +9 -8
  45. package/dist/components/charts/logaritmic-scale/logic.js +63 -69
  46. package/dist/components/charts/multiple-value-axes/index.js +9 -8
  47. package/dist/components/charts/multiple-value-axes/logic.js +101 -107
  48. package/dist/components/charts/nested-pie/index.js +9 -8
  49. package/dist/components/charts/nested-pie/logic.js +62 -68
  50. package/dist/components/charts/packed-circles/index.js +7 -6
  51. package/dist/components/charts/packed-circles/logic.js +50 -56
  52. package/dist/components/charts/pie-chart/index.js +9 -8
  53. package/dist/components/charts/pie-chart/logic.js +49 -54
  54. package/dist/components/charts/stacked-area-radar/index.js +8 -7
  55. package/dist/components/charts/stacked-area-radar/logic.js +113 -118
  56. package/dist/components/charts/stacked-column-chart/index.js +9 -8
  57. package/dist/components/charts/stacked-column-chart/logic.js +78 -84
  58. package/dist/components/charts/xy-chart/index.js +9 -8
  59. package/dist/components/charts/xy-chart/logic.js +56 -60
  60. package/dist/components/collapsible-card/index.js +11 -10
  61. package/dist/components/collapsible-card/styled.js +1 -1
  62. package/dist/components/color-picker/index.js +7120 -0
  63. package/dist/components/color-picker/logic.js +18 -0
  64. package/dist/components/color-picker/styled.js +7 -0
  65. package/dist/components/confirm/dialog.js +3 -3
  66. package/dist/components/confirm/index.js +1 -1
  67. package/dist/components/data-grid/index.js +22 -0
  68. package/dist/components/data-grid/logic.js +15 -0
  69. package/dist/components/data-grid/styled.js +20 -0
  70. package/dist/components/data-map/components/controls/index.js +4 -6
  71. package/dist/components/data-map/index.js +11 -11
  72. package/dist/components/data-security-selectors/dissemination-list/index.js +192 -191
  73. package/dist/components/data-security-selectors/dissemination-list/styled.js +12 -12
  74. package/dist/components/data-security-selectors/security-level/index.js +18 -15
  75. package/dist/components/data-security-selectors/security-level/logic.js +18 -63
  76. package/dist/components/data-security-selectors/security-level/styled.js +23 -17
  77. package/dist/components/date-picker-with-custom-range/index.js +1 -1
  78. package/dist/components/date-range-picker/index.js +2748 -0
  79. package/dist/components/date-range-picker/styled.js +14 -0
  80. package/dist/components/date-time-picker/index.js +45 -46
  81. package/dist/components/divider/index.js +11 -11
  82. package/dist/components/document-viewer/components/action-buttons/index.js +15 -15
  83. package/dist/components/document-viewer/components/navigation/index.js +9 -9
  84. package/dist/components/document-viewer/components/viewer/index.js +31 -35
  85. package/dist/components/document-viewer/index.js +31 -39
  86. package/dist/components/document-viewer/logic.js +41 -34
  87. package/dist/components/document-viewer/styled.js +115 -27
  88. package/dist/components/duration-select/index.js +27 -0
  89. package/dist/components/duration-select/logic.js +21 -0
  90. package/dist/components/duration-select/styled.js +26 -0
  91. package/dist/components/editable-text/index.js +20 -0
  92. package/dist/components/editable-text/logic.js +18 -0
  93. package/dist/components/editable-text/styled.js +22 -0
  94. package/dist/components/geometry-picker/coordinate/index.js +29 -29
  95. package/dist/components/geometry-picker/edit/index.js +18 -18
  96. package/dist/components/geometry-picker/geometry/index.js +67 -67
  97. package/dist/components/geometry-picker/geometry/map-overlay.js +6 -6
  98. package/dist/components/geometry-picker/index.js +69 -86
  99. package/dist/components/geometry-picker/kml/index.js +16 -16
  100. package/dist/components/geometry-picker/logic.js +50 -57
  101. package/dist/components/geometry-picker/map/index.js +8 -8
  102. package/dist/components/geometry-picker/parser/coordinate-input/index.js +4 -4
  103. package/dist/components/geometry-picker/parser/index.js +46 -50
  104. package/dist/components/geometry-picker/parser/styled.js +22 -4
  105. package/dist/components/geometry-picker/styled.js +97 -37
  106. package/dist/components/geometry-picker/wkt/index.js +13 -13
  107. package/dist/components/heat-map/components/controls/index.js +4 -6
  108. package/dist/components/heat-map/components/legend/index.js +15 -17
  109. package/dist/components/heat-map/index.js +7 -7
  110. package/dist/components/instance-form/components/TopLabelWrapper.js +8 -48
  111. package/dist/components/instance-form/components/composite-list/index.js +5 -3
  112. package/dist/components/instance-form/components/composite-matrix/components/editable-table/index.js +83 -74
  113. package/dist/components/instance-form/components/composite-matrix/components/editor/index.js +45 -66
  114. package/dist/components/instance-form/components/composite-matrix/components/form/index.js +60 -75
  115. package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2425 -2422
  116. package/dist/components/instance-form/components/composite-matrix/components/table/index.js +33 -52
  117. package/dist/components/instance-form/components/composite-matrix/index.js +30 -36
  118. package/dist/components/instance-form/components/policy-list/index.js +47 -81
  119. package/dist/components/instance-form/components/variable/index.js +6 -9
  120. package/dist/components/instance-form/components/variables/index.js +48 -55
  121. package/dist/components/instance-form/helpers.js +9 -0
  122. package/dist/components/instance-form/index.js +402 -518
  123. package/dist/components/instance-form/logic.js +115 -0
  124. package/dist/components/instance-form/styled.js +487 -0
  125. package/dist/components/instance-hierarchy-table/styled.js +1 -1
  126. package/dist/components/instance-variable-list/index.js +11 -11
  127. package/dist/components/map/index.js +28 -6
  128. package/dist/components/map/styled.js +1 -1
  129. package/dist/components/notification/index.js +67 -0
  130. package/dist/components/notification/logic.js +30 -0
  131. package/dist/components/notification/store.js +23 -0
  132. package/dist/components/notification/styled.js +52 -0
  133. package/dist/components/object-profile-card/components/avatar/index.js +9 -10
  134. package/dist/components/object-profile-card/index.js +19 -20
  135. package/dist/components/paginated-list/index.js +2 -3
  136. package/dist/components/placeholder/index.js +10 -0
  137. package/dist/components/placeholder/logic.js +12 -0
  138. package/dist/components/placeholder/styled.js +32 -0
  139. package/dist/components/positional-tooltip/index.js +24 -0
  140. package/dist/components/positional-tooltip/styled.js +17 -0
  141. package/dist/components/property-mapping/index.js +204 -423
  142. package/dist/components/property-mapping/logic.js +156 -0
  143. package/dist/components/property-mapping/styled.js +199 -0
  144. package/dist/components/prr-map/components/controls/index.js +4 -6
  145. package/dist/components/prr-map/components/legend/index.js +26 -28
  146. package/dist/components/prr-map/index.js +5 -5
  147. package/dist/components/range-selector/styled.js +1106 -1034
  148. package/dist/components/raster-grid-map/components/controls/index.js +4 -6
  149. package/dist/components/raster-grid-map/components/legend/index.js +4 -6
  150. package/dist/components/raster-grid-map/index.js +5 -5
  151. package/dist/components/scroll-drag/index.js +22 -0
  152. package/dist/components/scroll-drag/logic.js +39 -0
  153. package/dist/components/scroll-drag/styled.js +17 -0
  154. package/dist/components/search-input/logic.js +35 -33
  155. package/dist/components/simple-pivot-table/index.js +12 -12
  156. package/dist/components/sortable-list/index.js +599 -0
  157. package/dist/components/sortable-list/logic.js +18 -0
  158. package/dist/components/sortable-list/styled.js +38 -0
  159. package/dist/components/static-text/index.js +6 -6
  160. package/dist/components/stats-box/index.js +12 -0
  161. package/dist/components/stats-box/styled.js +36 -0
  162. package/dist/components/template-form/components/property-list/index.js +27 -26
  163. package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
  164. package/dist/components/template-form/components/property-list/property-list-form.js +758 -12
  165. package/dist/components/template-form/components/recognition-property-list/index.js +11 -11
  166. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
  167. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +24 -22
  168. package/dist/components/template-form/components/select-icon/index.js +24 -24
  169. package/dist/components/template-form/helpers.js +17 -0
  170. package/dist/components/template-form/index.js +270 -308
  171. package/dist/components/template-form/logic.js +69 -0
  172. package/dist/components/template-form/styled.js +84 -0
  173. package/dist/components/text-overflow/index.js +6 -0
  174. package/dist/components/text-overflow/styled.js +13 -0
  175. package/dist/components/timeline/index.js +12 -12
  176. package/dist/components/toggle-view-button/index.js +35 -0
  177. package/dist/components/toggle-view-button/logic.js +22 -0
  178. package/dist/components/toggle-view-button/styled.js +11 -0
  179. package/dist/components/tree-select/index.js +1 -1
  180. package/dist/components/visually-hidden-input/index.js +4 -0
  181. package/dist/components/visually-hidden-input/styled.js +18 -0
  182. package/dist/createChainedFunction-C0nujS3O.js +9 -0
  183. package/dist/{createSvgIcon-DX-SqL8M.js → createSvgIcon-Ch_cT8az.js} +68 -65
  184. package/dist/createSvgIcon-DuDuASu1.js +62 -0
  185. package/dist/debounce-46wSf_lW.js +15 -0
  186. package/dist/{dialog-cf4HUXXl.js → dialog-BYRnCztH.js} +30 -29
  187. package/dist/formControlState-vgaj2ksH.js +10 -0
  188. package/dist/generateUtilityClasses-C3ivN9Ie.js +2973 -0
  189. package/dist/{helpers-B4UL9NMD.js → helpers-D4uXfBfO.js} +2 -2
  190. package/dist/index-BtlzPygz.js +470 -0
  191. package/dist/index-DH6qsPBn.js +153 -0
  192. package/dist/{index-C8C3YXle.js → index-e9xTIYWt.js} +139 -137
  193. package/dist/main.d.ts +1066 -328
  194. package/dist/main.js +165 -130
  195. package/dist/ownerWindow-wg6foiOE.js +10 -0
  196. package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
  197. package/dist/styled-Db1RdcPA.js +323 -0
  198. package/dist/unsupportedProp-DuqR2hj9.js +36 -0
  199. package/dist/useFormControl-CatNKXAi.js +10 -0
  200. package/dist/useId-BW-oWmul.js +19 -0
  201. package/dist/{useMobilePicker-B-M3dnTn.js → useMobilePicker-CY8ndYRL.js} +4777 -4491
  202. package/dist/useSlot-B_Q4vnX5.js +42 -0
  203. package/package.json +15 -7
  204. package/dist/AccordionSummary-CMg08YSA.js +0 -739
  205. package/dist/Add-DuVVJeQU.js +0 -380
  206. package/dist/ButtonBase-sObABYY2.js +0 -965
  207. package/dist/FormControl-BCurCxRj.js +0 -1294
  208. package/dist/FormControlLabel-BkRfrhNy.js +0 -601
  209. package/dist/InputAdornment-C7PEvvYr.js +0 -155
  210. package/dist/Modal-DlB6GH-f.js +0 -1659
  211. package/dist/Paper-q9kKjAKx.js +0 -527
  212. package/dist/TextField-DSDIEEKu.js +0 -3161
  213. package/dist/assertThisInitialized-BUtkG-md.js +0 -13
  214. package/dist/capitalize-quqpGCFu.js +0 -9
  215. package/dist/components/instance-form/components/composite-list/styled.js +0 -73
  216. package/dist/components/instance-form/components/composite-matrix/components/editor/styled.js +0 -1
  217. package/dist/components/instance-form/components/composite-matrix/styled.js +0 -69
  218. package/dist/components/key-protection/index.js +0 -47
  219. package/dist/components/key-protection/logic.js +0 -40
  220. package/dist/components/key-protection/styled.js +0 -45
  221. package/dist/components/key-protection/utils.js +0 -10
  222. package/dist/createSvgIcon-BM3-TsGy.js +0 -70
  223. package/dist/index-BMS1Otro.js +0 -183
  224. package/dist/index-DPKUmQnz.js +0 -501
  225. package/dist/index-kCJ_Zvl8.js +0 -34
  226. package/dist/isMuiElement-BkJ72LB3.js +0 -26
  227. package/dist/property-list-form-DL_dEoNn.js +0 -381
  228. package/dist/styled-Bsjp3kFh.js +0 -668
  229. package/dist/unsupportedProp-BND8AB6O.js +0 -25
  230. package/dist/useId-B4-oF9Mq.js +0 -34
  231. package/dist/utils-Cxu-fHjQ.js +0 -115
@@ -0,0 +1,669 @@
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
+ };