@hybridcore/ui 1.6.0 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) 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-CvE2gnly.js → Button-C5yquWAB.js} +120 -133
  7. package/dist/ButtonBase-BEF7oTOe.js +887 -0
  8. package/dist/{Delete-CW0UZv1m.js → Delete-BdyYpINH.js} +9 -8
  9. package/dist/{DialogContent-B3nbEbuv.js → DialogContent-BvVjD9z3.js} +127 -124
  10. package/dist/FormGroup-CpBsIyYR.js +89 -0
  11. package/dist/{IconButton-CHwRQF-g.js → IconButton-BoGwbvrP.js} +41 -43
  12. package/dist/InputLabel-Dd8RrneV.js +341 -0
  13. package/dist/{MenuItem-xZx_w7zA.js → MenuItem-DwqJqzuM.js} +51 -53
  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-CxbneZy_.js → Typography-DgsSLCFC.js} +53 -53
  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/index.js +8 -15
  26. package/dist/components/access/logic.js +25 -0
  27. package/dist/components/button/index.js +10 -0
  28. package/dist/components/button/logic.js +26 -0
  29. package/dist/components/button/styled.js +9 -0
  30. package/dist/components/card/index.js +158 -498
  31. package/dist/components/card/logic.js +24 -0
  32. package/dist/components/card/styled.js +226 -51
  33. package/dist/components/card-alternate/index.js +111 -139
  34. package/dist/components/card-alternate/logic.js +17 -0
  35. package/dist/components/card-alternate/styled.js +113 -19
  36. package/dist/components/charts/_common/chart-error.js +19 -0
  37. package/dist/components/charts/candlestick/index.js +3 -3
  38. package/dist/components/charts/candlestick/logic.js +123 -113
  39. package/dist/components/charts/chart-wrapper/index.js +5 -5
  40. package/dist/components/charts/column-line-mix/index.js +9 -8
  41. package/dist/components/charts/column-line-mix/logic.js +68 -71
  42. package/dist/components/charts/drill-down-treemap/index.js +8 -7
  43. package/dist/components/charts/drill-down-treemap/logic.js +138 -144
  44. package/dist/components/charts/drill-down-voronoi-treemap/index.js +9 -8
  45. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +222 -228
  46. package/dist/components/charts/heatmap/index.js +9 -8
  47. package/dist/components/charts/heatmap/logic.js +167 -173
  48. package/dist/components/charts/highlighting-line-data/index.js +3 -3
  49. package/dist/components/charts/line/index.js +9 -8
  50. package/dist/components/charts/line/logic.js +74 -79
  51. package/dist/components/charts/logaritmic-scale/index.js +9 -8
  52. package/dist/components/charts/logaritmic-scale/logic.js +63 -69
  53. package/dist/components/charts/multiple-value-axes/index.js +9 -8
  54. package/dist/components/charts/multiple-value-axes/logic.js +101 -107
  55. package/dist/components/charts/nested-pie/index.js +9 -8
  56. package/dist/components/charts/nested-pie/logic.js +62 -68
  57. package/dist/components/charts/packed-circles/index.js +7 -6
  58. package/dist/components/charts/packed-circles/logic.js +50 -56
  59. package/dist/components/charts/pie-chart/index.js +9 -8
  60. package/dist/components/charts/pie-chart/logic.js +49 -54
  61. package/dist/components/charts/stacked-area-radar/index.js +8 -7
  62. package/dist/components/charts/stacked-area-radar/logic.js +113 -118
  63. package/dist/components/charts/stacked-column-chart/index.js +9 -8
  64. package/dist/components/charts/stacked-column-chart/logic.js +78 -84
  65. package/dist/components/charts/xy-chart/index.js +9 -8
  66. package/dist/components/charts/xy-chart/logic.js +56 -60
  67. package/dist/components/collapsible-card/index.js +11 -10
  68. package/dist/components/collapsible-card/styled.js +1 -1
  69. package/dist/components/color-picker/index.js +7120 -0
  70. package/dist/components/color-picker/logic.js +18 -0
  71. package/dist/components/color-picker/styled.js +7 -0
  72. package/dist/components/confirm/dialog.js +3 -3
  73. package/dist/components/confirm/index.js +1 -1
  74. package/dist/components/container/index.js +28 -269
  75. package/dist/components/container/logic.js +12 -0
  76. package/dist/components/container/styled.js +29 -0
  77. package/dist/components/context-menu/index.js +25 -457
  78. package/dist/components/context-menu/logic.js +14 -0
  79. package/dist/components/context-menu/styled.js +40 -0
  80. package/dist/components/data-grid/index.js +22 -0
  81. package/dist/components/data-grid/logic.js +15 -0
  82. package/dist/components/data-grid/styled.js +20 -0
  83. package/dist/components/data-map/components/controls/index.js +4 -6
  84. package/dist/components/data-map/index.js +11 -11
  85. package/dist/components/data-security-selectors/dissemination-list/index.js +192 -191
  86. package/dist/components/data-security-selectors/dissemination-list/styled.js +12 -12
  87. package/dist/components/data-security-selectors/security-level/index.js +39 -91
  88. package/dist/components/data-security-selectors/security-level/logic.js +28 -0
  89. package/dist/components/data-security-selectors/security-level/styled.js +53 -0
  90. package/dist/components/date-picker-with-custom-range/index.js +1 -1
  91. package/dist/components/date-range-picker/index.js +2748 -0
  92. package/dist/components/date-range-picker/styled.js +14 -0
  93. package/dist/components/date-time-picker/index.js +45 -46
  94. package/dist/components/divider/index.js +11 -11
  95. package/dist/components/document-viewer/components/action-buttons/index.js +15 -15
  96. package/dist/components/document-viewer/components/navigation/index.js +9 -9
  97. package/dist/components/document-viewer/components/viewer/index.js +31 -35
  98. package/dist/components/document-viewer/index.js +31 -39
  99. package/dist/components/document-viewer/logic.js +41 -34
  100. package/dist/components/document-viewer/styled.js +115 -27
  101. package/dist/components/duration-select/index.js +27 -0
  102. package/dist/components/duration-select/logic.js +21 -0
  103. package/dist/components/duration-select/styled.js +26 -0
  104. package/dist/components/editable-text/index.js +20 -0
  105. package/dist/components/editable-text/logic.js +18 -0
  106. package/dist/components/editable-text/styled.js +22 -0
  107. package/dist/components/geometry-picker/coordinate/index.js +29 -29
  108. package/dist/components/geometry-picker/edit/index.js +18 -18
  109. package/dist/components/geometry-picker/geometry/index.js +67 -67
  110. package/dist/components/geometry-picker/geometry/map-overlay.js +6 -6
  111. package/dist/components/geometry-picker/index.js +69 -85
  112. package/dist/components/geometry-picker/kml/index.js +16 -16
  113. package/dist/components/geometry-picker/logic.js +50 -57
  114. package/dist/components/geometry-picker/map/index.js +8 -8
  115. package/dist/components/geometry-picker/parser/coordinate-input/index.js +4 -4
  116. package/dist/components/geometry-picker/parser/index.js +46 -50
  117. package/dist/components/geometry-picker/parser/styled.js +22 -4
  118. package/dist/components/geometry-picker/styled.js +97 -37
  119. package/dist/components/geometry-picker/wkt/index.js +13 -13
  120. package/dist/components/heat-map/components/controls/index.js +4 -6
  121. package/dist/components/heat-map/components/legend/index.js +15 -17
  122. package/dist/components/heat-map/index.js +7 -7
  123. package/dist/components/instance-form/components/TopLabelWrapper.js +8 -48
  124. package/dist/components/instance-form/components/composite-list/index.js +5 -3
  125. package/dist/components/instance-form/components/composite-matrix/components/editable-table/index.js +83 -74
  126. package/dist/components/instance-form/components/composite-matrix/components/editor/index.js +45 -66
  127. package/dist/components/instance-form/components/composite-matrix/components/form/index.js +60 -75
  128. package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2425 -2422
  129. package/dist/components/instance-form/components/composite-matrix/components/table/index.js +33 -52
  130. package/dist/components/instance-form/components/composite-matrix/index.js +30 -36
  131. package/dist/components/instance-form/components/policy-list/index.js +47 -81
  132. package/dist/components/instance-form/components/variable/index.js +6 -11
  133. package/dist/components/instance-form/components/variables/index.js +48 -55
  134. package/dist/components/instance-form/helpers.js +9 -0
  135. package/dist/components/instance-form/index.js +402 -518
  136. package/dist/components/instance-form/logic.js +115 -0
  137. package/dist/components/instance-form/styled.js +487 -0
  138. package/dist/components/instance-hierarchy-table/index.js +32 -37
  139. package/dist/components/instance-hierarchy-table/logic.js +16 -0
  140. package/dist/components/instance-hierarchy-table/styled.js +53 -12
  141. package/dist/components/instance-table/index.js +30 -135
  142. package/dist/components/instance-table/logic.js +122 -0
  143. package/dist/components/instance-table/styled.js +53 -11
  144. package/dist/components/instance-variable-list/index.js +11 -11
  145. package/dist/components/loading/index.js +15 -9
  146. package/dist/components/loading/logic.js +15 -0
  147. package/dist/components/loading/styled.js +26 -19
  148. package/dist/components/map/index.js +28 -6
  149. package/dist/components/map/styled.js +1 -1
  150. package/dist/components/notification/index.js +67 -0
  151. package/dist/components/notification/logic.js +30 -0
  152. package/dist/components/notification/store.js +23 -0
  153. package/dist/components/notification/styled.js +52 -0
  154. package/dist/components/object-profile-card/components/avatar/index.js +9 -10
  155. package/dist/components/object-profile-card/index.js +19 -20
  156. package/dist/components/paginated-list/index.js +2 -3
  157. package/dist/components/phone-input/index.js +18 -22
  158. package/dist/components/phone-input/logic.js +14 -0
  159. package/dist/components/phone-input/styled.js +12 -4
  160. package/dist/components/placeholder/index.js +10 -0
  161. package/dist/components/placeholder/logic.js +12 -0
  162. package/dist/components/placeholder/styled.js +32 -0
  163. package/dist/components/positional-tooltip/index.js +24 -0
  164. package/dist/components/positional-tooltip/styled.js +17 -0
  165. package/dist/components/property-mapping/index.js +204 -423
  166. package/dist/components/property-mapping/logic.js +156 -0
  167. package/dist/components/property-mapping/styled.js +199 -0
  168. package/dist/components/prr-map/components/controls/index.js +4 -6
  169. package/dist/components/prr-map/components/legend/index.js +26 -28
  170. package/dist/components/prr-map/index.js +5 -5
  171. package/dist/components/range-selector/components/composite-list-range/index.js +42 -50
  172. package/dist/components/range-selector/components/date-range/index.js +87 -4221
  173. package/dist/components/range-selector/components/geometry-range/index.js +11 -17
  174. package/dist/components/range-selector/components/number-range/index.js +48 -53
  175. package/dist/components/range-selector/components/string-range/index.js +15 -17
  176. package/dist/components/range-selector/index.js +63 -57
  177. package/dist/components/range-selector/logic.js +12 -0
  178. package/dist/components/range-selector/styled.js +4294 -0
  179. package/dist/components/raster-grid-map/components/controls/index.js +4 -6
  180. package/dist/components/raster-grid-map/components/legend/index.js +4 -6
  181. package/dist/components/raster-grid-map/index.js +5 -5
  182. package/dist/components/scroll-drag/index.js +22 -0
  183. package/dist/components/scroll-drag/logic.js +39 -0
  184. package/dist/components/scroll-drag/styled.js +17 -0
  185. package/dist/components/search-input/logic.js +35 -33
  186. package/dist/components/simple-pivot-table/index.js +12 -12
  187. package/dist/components/sortable-list/index.js +599 -0
  188. package/dist/components/sortable-list/logic.js +18 -0
  189. package/dist/components/sortable-list/styled.js +38 -0
  190. package/dist/components/static-text/index.js +6 -6
  191. package/dist/components/stats-box/index.js +12 -0
  192. package/dist/components/stats-box/styled.js +36 -0
  193. package/dist/components/template-filters/components/filter/index.js +13 -18
  194. package/dist/components/template-filters/components/tab-panel/index.js +8 -16
  195. package/dist/components/template-filters/index.js +21 -29
  196. package/dist/components/template-filters/logic.js +18 -0
  197. package/dist/components/template-filters/styled.js +44 -1
  198. package/dist/components/template-form/components/property-list/index.js +27 -26
  199. package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
  200. package/dist/components/template-form/components/property-list/property-list-form.js +758 -14
  201. package/dist/components/template-form/components/recognition-property-list/index.js +11 -11
  202. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
  203. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +24 -23
  204. package/dist/components/template-form/components/select-icon/index.js +24 -24
  205. package/dist/components/template-form/helpers.js +17 -0
  206. package/dist/components/template-form/index.js +270 -309
  207. package/dist/components/template-form/logic.js +69 -0
  208. package/dist/components/template-form/styled.js +84 -0
  209. package/dist/components/template-property-filters/index.js +45 -95
  210. package/dist/components/template-property-filters/logic.js +27 -0
  211. package/dist/components/template-property-filters/property.js +105 -165
  212. package/dist/components/template-property-filters/styled.js +121 -20
  213. package/dist/components/text-overflow/index.js +6 -0
  214. package/dist/components/text-overflow/styled.js +13 -0
  215. package/dist/components/timeline/index.js +12 -12
  216. package/dist/components/toggle-view-button/index.js +35 -0
  217. package/dist/components/toggle-view-button/logic.js +22 -0
  218. package/dist/components/toggle-view-button/styled.js +11 -0
  219. package/dist/components/tree-select/index.js +52 -67
  220. package/dist/components/tree-select/logic.js +59 -0
  221. package/dist/components/tree-select/styled.js +45 -62
  222. package/dist/components/treeview-filter/index.js +43 -65
  223. package/dist/components/treeview-filter/item/index.js +43 -42
  224. package/dist/components/treeview-filter/item-label/index.js +17 -37
  225. package/dist/components/treeview-filter/logic.js +28 -0
  226. package/dist/components/treeview-filter/styled.js +86 -0
  227. package/dist/components/uploader/index.js +532 -567
  228. package/dist/components/uploader/logic.js +74 -0
  229. package/dist/components/uploader/styled.js +93 -46
  230. package/dist/components/visually-hidden-input/index.js +4 -0
  231. package/dist/components/visually-hidden-input/styled.js +18 -0
  232. package/dist/createChainedFunction-C0nujS3O.js +9 -0
  233. package/dist/{createSvgIcon-DrtgaibK.js → createSvgIcon-Ch_cT8az.js} +69 -68
  234. package/dist/createSvgIcon-DuDuASu1.js +62 -0
  235. package/dist/{dialog-DcwXug9J.js → dialog-BYRnCztH.js} +18 -18
  236. package/dist/formControlState-vgaj2ksH.js +10 -0
  237. package/dist/generateUtilityClasses-C3ivN9Ie.js +2973 -0
  238. package/dist/{helpers-B4UL9NMD.js → helpers-D4uXfBfO.js} +2 -2
  239. package/dist/index-BtlzPygz.js +470 -0
  240. package/dist/index-DH6qsPBn.js +153 -0
  241. package/dist/{index-syTc6m_V.js → index-e9xTIYWt.js} +87 -87
  242. package/dist/main.d.ts +1722 -562
  243. package/dist/main.js +161 -128
  244. package/dist/ownerWindow-wg6foiOE.js +10 -0
  245. package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
  246. package/dist/styled-Db1RdcPA.js +323 -0
  247. package/dist/unsupportedProp-DuqR2hj9.js +36 -0
  248. package/dist/useId-BW-oWmul.js +19 -0
  249. package/dist/useMobilePicker-CY8ndYRL.js +8279 -0
  250. package/dist/useSlot-B_Q4vnX5.js +42 -0
  251. package/package.json +15 -7
  252. package/dist/AccordionSummary-DgAwVTk8.js +0 -742
  253. package/dist/Add-DJLrrVHm.js +0 -382
  254. package/dist/Box-p6OtTUEo.js +0 -30
  255. package/dist/ButtonBase-2bPw77UP.js +0 -961
  256. package/dist/CardContent-CSHh-ZlM.js +0 -74
  257. package/dist/Checkbox-CWRMFTBp.js +0 -421
  258. package/dist/FormControl-BLbrq4C7.js +0 -1636
  259. package/dist/FormControlLabel-C8SPv14J.js +0 -195
  260. package/dist/InputAdornment-DLxWUE6H.js +0 -157
  261. package/dist/List-tqElle9C.js +0 -121
  262. package/dist/ListItem-CfjsIg4B.js +0 -430
  263. package/dist/Modal-DhPpOoGB.js +0 -1299
  264. package/dist/Paper-2B03OBmZ.js +0 -169
  265. package/dist/Select-BgYwkZgI.js +0 -2613
  266. package/dist/TextField-1yCesIbH.js +0 -457
  267. package/dist/assertThisInitialized-BUtkG-md.js +0 -13
  268. package/dist/capitalize-ciszXJ7R.js +0 -9
  269. package/dist/components/instance-form/components/composite-list/styled.js +0 -73
  270. package/dist/components/instance-form/components/composite-matrix/components/editor/styled.js +0 -1
  271. package/dist/components/instance-form/components/composite-matrix/styled.js +0 -69
  272. package/dist/components/key-protection/index.js +0 -4
  273. package/dist/components/key-protection/menu.js +0 -85
  274. package/dist/components/key-protection/utils.js +0 -10
  275. package/dist/components/treeview-filter/item/styled.js +0 -39
  276. package/dist/createSvgIcon-BjpIhJ30.js +0 -71
  277. package/dist/createTheme-DYxDnE9u.js +0 -612
  278. package/dist/index-BMS1Otro.js +0 -183
  279. package/dist/index-CcdvNlgr.js +0 -503
  280. package/dist/index-kCJ_Zvl8.js +0 -34
  281. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  282. package/dist/isMuiElement-CxT3_ACP.js +0 -13
  283. package/dist/listItemTextClasses-C3lndiXO.js +0 -16
  284. package/dist/property-list-form-zZQfpR0X.js +0 -386
  285. package/dist/styled-eZwjUruw.js +0 -12
  286. package/dist/unsupportedProp-BND8AB6O.js +0 -25
  287. package/dist/useId-B4-oF9Mq.js +0 -34
  288. package/dist/useMobilePicker-BLg3Blg8.js +0 -7589
  289. package/dist/useThemeProps-BzzHcQyd.js +0 -58
  290. package/dist/utils-BDNynJcd.js +0 -365
  291. package/dist/utils-Bq0ye5vf.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
+ };