@hybridcore/ui 1.5.89 → 1.6.0

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 (267) hide show
  1. package/dist/{AccordionDetails-DhriPVPP.js → AccordionSummary-DgAwVTk8.js} +81 -82
  2. package/dist/{Add-CMz4N2zT.js → Add-DJLrrVHm.js} +52 -51
  3. package/dist/AnimatedTheme-jnasw6rT.js +11305 -0
  4. package/dist/AxisRenderer-DTyLLA6c.js +3579 -0
  5. package/dist/AxisRendererY-C_ItLPNV.js +445 -0
  6. package/dist/Box-p6OtTUEo.js +30 -0
  7. package/dist/Bullet-DVczI2TD.js +41 -0
  8. package/dist/Button-CcsPEIDh.js +35 -0
  9. package/dist/{Button-eqWvpDuh.js → Button-CvE2gnly.js} +138 -124
  10. package/dist/{ButtonBase-DsX-jMQJ.js → ButtonBase-2bPw77UP.js} +5 -5
  11. package/dist/{CardContent-DsYqqPeJ.js → CardContent-CSHh-ZlM.js} +4 -4
  12. package/dist/CategoryAxis-CwnfaGc8.js +458 -0
  13. package/dist/{Checkbox-CrU2hpWB.js → Checkbox-CWRMFTBp.js} +12 -11
  14. package/dist/Circle-Cy5s-pVc.js +27 -0
  15. package/dist/ColorSet-C7vpNXhM.js +2957 -0
  16. package/dist/{ColumnSeries-BTcqshjB.js → ColumnSeries-CjgdJ2QL.js} +129 -126
  17. package/dist/DataProcessor-CHDO51q4.js +83 -0
  18. package/dist/DateAxis-YX3QNIB-.js +569 -0
  19. package/dist/{Delete-86TO0fMo.js → Delete-CW0UZv1m.js} +1 -1
  20. package/dist/{DialogContent-CqTojymQ.js → DialogContent-B3nbEbuv.js} +10 -11
  21. package/dist/FormControl-BLbrq4C7.js +1636 -0
  22. package/dist/{FormControlLabel-BrdX4R71.js → FormControlLabel-C8SPv14J.js} +8 -8
  23. package/dist/Hierarchy-Bihj0S61.js +925 -0
  24. package/dist/{IconButton-DJ-31-Fd.js → IconButton-CHwRQF-g.js} +20 -19
  25. package/dist/IconPlus-yPkff_Vj.js +19 -0
  26. package/dist/{InputAdornment-B7qEA4kN.js → InputAdornment-DLxWUE6H.js} +6 -6
  27. package/dist/Legend-Dp_MKfS4.js +178 -0
  28. package/dist/LineSeries-Uiv5o56b.js +472 -0
  29. package/dist/{List-DOD5kSk3.js → List-tqElle9C.js} +4 -4
  30. package/dist/{ListItem-r8PbsvCz.js → ListItem-CfjsIg4B.js} +9 -8
  31. package/dist/{MenuItem-C6qlUyV3.js → MenuItem-xZx_w7zA.js} +14 -13
  32. package/dist/{Modal-CkcFEpHa.js → Modal-DhPpOoGB.js} +292 -277
  33. package/dist/{Paper-CjqLScHA.js → Paper-2B03OBmZ.js} +47 -41
  34. package/dist/PieSeries-B2fW3z0s.js +693 -0
  35. package/dist/RoundedRectangle-CWLi2PXn.js +34 -0
  36. package/dist/Scrollbar-D86MJyr2.js +171 -0
  37. package/dist/{Select-t3ewnSdf.js → Select-BgYwkZgI.js} +2066 -1633
  38. package/dist/Slice-B19rbYDZ.js +261 -0
  39. package/dist/{Source-BESIjd9X.js → Source-BSZST_GH.js} +2472 -2445
  40. package/dist/{Text-Cl1H4b0h.js → Text-ChJRuaD8.js} +398 -397
  41. package/dist/{TextField-BQ8a50fA.js → TextField-1yCesIbH.js} +23 -25
  42. package/dist/Tick-2bcLyHpF.js +162 -0
  43. package/dist/{Typography-D1t7XuLN.js → Typography-CxbneZy_.js} +11 -11
  44. package/dist/Vector-BmuhQO4p.js +3606 -0
  45. package/dist/Vector-DfTqQEln.js +1735 -0
  46. package/dist/WKT-2wsDT-nq.js +2310 -0
  47. package/dist/XYCursor-C8WktvKM.js +362 -0
  48. package/dist/ZoomableContainer-DYyqwaMb.js +220 -0
  49. package/dist/_commonjsHelpers-BVfed4GL.js +28 -0
  50. package/dist/capitalize-ciszXJ7R.js +9 -0
  51. package/dist/components/access/helpers.js +1 -1
  52. package/dist/components/access/index.js +1 -1
  53. package/dist/components/card/index.js +6 -6
  54. package/dist/components/card/styled.js +1 -1
  55. package/dist/components/charts/_common/utils.js +20 -0
  56. package/dist/components/charts/candlestick/logic.js +170 -140
  57. package/dist/components/charts/chart-wrapper/helpers.js +27 -0
  58. package/dist/components/charts/chart-wrapper/index.js +44 -0
  59. package/dist/components/charts/chart-wrapper/logic.js +47 -0
  60. package/dist/components/charts/chart-wrapper/styled.js +44 -0
  61. package/dist/components/charts/column-line-mix/index.js +10 -0
  62. package/dist/components/charts/column-line-mix/logic.js +162 -0
  63. package/dist/components/charts/column-line-mix/styled.js +12 -0
  64. package/dist/components/charts/drill-down-treemap/index.js +10 -0
  65. package/dist/components/charts/drill-down-treemap/logic.js +391 -0
  66. package/dist/components/charts/drill-down-treemap/styled.js +12 -0
  67. package/dist/components/charts/drill-down-voronoi-treemap/index.js +10 -0
  68. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +1527 -0
  69. package/dist/components/charts/drill-down-voronoi-treemap/styled.js +12 -0
  70. package/dist/components/charts/heatmap/index.js +10 -0
  71. package/dist/components/charts/heatmap/logic.js +361 -0
  72. package/dist/components/charts/heatmap/styled.js +12 -0
  73. package/dist/components/charts/highlighting-line-data/logic.js +89 -256
  74. package/dist/components/charts/line/index.js +10 -0
  75. package/dist/components/charts/line/logic.js +148 -0
  76. package/dist/components/charts/line/styled.js +12 -0
  77. package/dist/components/charts/logaritmic-scale/index.js +10 -0
  78. package/dist/components/charts/logaritmic-scale/logic.js +119 -0
  79. package/dist/components/charts/logaritmic-scale/styled.js +12 -0
  80. package/dist/components/charts/multiple-value-axes/index.js +10 -0
  81. package/dist/components/charts/multiple-value-axes/logic.js +191 -0
  82. package/dist/components/charts/multiple-value-axes/styled.js +12 -0
  83. package/dist/components/charts/nested-pie/index.js +10 -0
  84. package/dist/components/charts/nested-pie/logic.js +110 -0
  85. package/dist/components/charts/nested-pie/styled.js +12 -0
  86. package/dist/components/charts/packed-circles/index.js +10 -0
  87. package/dist/components/charts/packed-circles/logic.js +423 -0
  88. package/dist/components/charts/packed-circles/styled.js +12 -0
  89. package/dist/components/charts/pie-chart/index.js +10 -0
  90. package/dist/components/charts/pie-chart/logic.js +70 -0
  91. package/dist/components/charts/pie-chart/styled.js +12 -0
  92. package/dist/components/charts/stacked-area-radar/index.js +10 -0
  93. package/dist/components/charts/stacked-area-radar/logic.js +868 -0
  94. package/dist/components/charts/stacked-area-radar/styled.js +12 -0
  95. package/dist/components/charts/stacked-column-chart/index.js +10 -0
  96. package/dist/components/charts/stacked-column-chart/logic.js +148 -0
  97. package/dist/components/charts/stacked-column-chart/styled.js +12 -0
  98. package/dist/components/charts/xy-chart/index.js +10 -0
  99. package/dist/components/charts/xy-chart/logic.js +170 -0
  100. package/dist/components/charts/xy-chart/styled.js +12 -0
  101. package/dist/components/collapsible-card/index.js +58 -32
  102. package/dist/components/collapsible-card/logic.js +20 -0
  103. package/dist/components/collapsible-card/styled.js +52 -0
  104. package/dist/components/confirm/dialog.js +3 -3
  105. package/dist/components/confirm/index.js +1 -1
  106. package/dist/components/container/index.js +7 -7
  107. package/dist/components/context-menu/index.js +153 -253
  108. package/dist/components/data-map/components/controls/index.js +12 -0
  109. package/dist/components/data-map/components/controls/styled.js +34 -0
  110. package/dist/components/data-map/index.js +51 -0
  111. package/dist/components/data-map/logic.js +108 -0
  112. package/dist/components/data-map/styled.js +32 -0
  113. package/dist/components/data-security-selectors/security-level/index.js +5 -5
  114. package/dist/components/date-picker-with-custom-range/index.js +9 -0
  115. package/dist/components/date-picker-with-custom-range/logic.js +66 -0
  116. package/dist/components/date-picker-with-custom-range/styled.js +43 -0
  117. package/dist/components/divider/index.js +18 -0
  118. package/dist/components/divider/logic.js +13 -0
  119. package/dist/components/divider/styled.js +14 -0
  120. package/dist/components/geometry-picker/coordinate/index.js +1 -1
  121. package/dist/components/geometry-picker/edit/index.js +1 -1
  122. package/dist/components/geometry-picker/geometry/index.js +1 -1
  123. package/dist/components/geometry-picker/index.js +7 -8
  124. package/dist/components/geometry-picker/kml/index.js +1 -1
  125. package/dist/components/geometry-picker/map/index.js +1 -1
  126. package/dist/components/geometry-picker/map/logic.js +65 -62
  127. package/dist/components/geometry-picker/map/style.js +1 -1
  128. package/dist/components/heat-map/components/controls/index.js +12 -0
  129. package/dist/components/heat-map/components/controls/styled.js +34 -0
  130. package/dist/components/heat-map/components/legend/index.js +26 -0
  131. package/dist/components/heat-map/components/legend/styled.js +14 -0
  132. package/dist/components/heat-map/index.js +37 -0
  133. package/dist/components/heat-map/logic.js +1945 -0
  134. package/dist/components/heat-map/styled.js +32 -0
  135. package/dist/components/icon-button/index.js +22 -15
  136. package/dist/components/icon-button/logic.js +15 -0
  137. package/dist/components/icon-button/styled.js +22 -10
  138. package/dist/components/instance-form/components/composite-list/index.js +1 -1
  139. package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +8 -7
  140. package/dist/components/instance-form/components/variable/index.js +8 -8
  141. package/dist/components/instance-form/components/variables/index.js +1 -1
  142. package/dist/components/instance-hierarchy-table/styled.js +1 -1
  143. package/dist/components/instance-variable-list/index.js +34 -29
  144. package/dist/components/instance-variable-list/styled.js +21 -21
  145. package/dist/components/instance-variable-list/variable.js +44 -74
  146. package/dist/components/linear-indicator/index.js +10 -67
  147. package/dist/components/linear-indicator/logic.js +47 -0
  148. package/dist/components/linear-indicator/styled.js +39 -40
  149. package/dist/components/map/helpers/kml.js +1 -1
  150. package/dist/components/map/helpers/mapbox.js +14 -14
  151. package/dist/components/map/helpers/ol.js +23 -19
  152. package/dist/components/map/helpers/wkt.js +26 -1314
  153. package/dist/components/map/index.js +1 -1
  154. package/dist/components/map/logic.js +113 -101
  155. package/dist/components/map/styled.js +39 -31
  156. package/dist/components/metric-card/MetricChart.js +50 -498
  157. package/dist/components/metric-card/index.js +94 -115
  158. package/dist/components/metric-card/logic.js +70 -131
  159. package/dist/components/object-profile-card/components/avatar/index.js +44 -0
  160. package/dist/components/object-profile-card/components/avatar/logic.js +19 -0
  161. package/dist/components/object-profile-card/components/avatar/styled.js +41 -0
  162. package/dist/components/object-profile-card/index.js +90 -0
  163. package/dist/components/object-profile-card/logic.js +33 -0
  164. package/dist/components/object-profile-card/styled.js +48 -0
  165. package/dist/components/paginated-list/index.js +93 -89
  166. package/dist/components/paginated-list/logic.js +51 -40
  167. package/dist/components/paginated-list/styled.js +25 -21
  168. package/dist/components/property-mapping/index.js +2 -2
  169. package/dist/components/prr-map/components/controls/index.js +12 -0
  170. package/dist/components/prr-map/components/controls/styled.js +34 -0
  171. package/dist/components/prr-map/components/legend/index.js +36 -0
  172. package/dist/components/prr-map/components/legend/styled.js +21 -0
  173. package/dist/components/prr-map/index.js +38 -0
  174. package/dist/components/prr-map/logic.js +104 -0
  175. package/dist/components/prr-map/styled.js +32 -0
  176. package/dist/components/range-selector/components/composite-list-range/index.js +1 -1
  177. package/dist/components/range-selector/components/date-range/index.js +4282 -7
  178. package/dist/components/range-selector/index.js +1 -1
  179. package/dist/components/raster-grid-map/components/controls/index.js +12 -0
  180. package/dist/components/raster-grid-map/components/controls/styled.js +34 -0
  181. package/dist/components/raster-grid-map/components/legend/index.js +14 -0
  182. package/dist/components/raster-grid-map/components/legend/styled.js +21 -0
  183. package/dist/components/raster-grid-map/helpers.js +190 -0
  184. package/dist/components/raster-grid-map/index.js +38 -0
  185. package/dist/components/raster-grid-map/logic.js +172 -0
  186. package/dist/components/raster-grid-map/styled.js +32 -0
  187. package/dist/components/search-input/index.js +62 -140
  188. package/dist/components/search-input/logic.js +43 -0
  189. package/dist/components/search-input/styled.js +33 -0
  190. package/dist/components/simple-pivot-table/index.js +66 -0
  191. package/dist/components/simple-pivot-table/logic.js +51 -0
  192. package/dist/components/simple-pivot-table/styled.js +45 -0
  193. package/dist/components/static-text/index.js +18 -0
  194. package/dist/components/static-text/logic.js +13 -0
  195. package/dist/components/static-text/styled.js +45 -0
  196. package/dist/components/tabs/index.js +56 -2160
  197. package/dist/components/tabs/logic.js +36 -0
  198. package/dist/components/tabs/styled.js +94 -16
  199. package/dist/components/tabs/tab-panel.js +11 -10
  200. package/dist/components/template-filters/components/tab-panel/index.js +1 -1
  201. package/dist/components/template-form/components/property-list/index.js +7 -7
  202. package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
  203. package/dist/components/template-form/components/property-list/property-list-form.js +9 -9
  204. package/dist/components/template-form/components/recognition-property-list/index.js +6 -6
  205. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
  206. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +7 -7
  207. package/dist/components/template-form/index.js +5 -5
  208. package/dist/components/template-property-filters/property.js +5 -5
  209. package/dist/components/timeline/index.js +61 -0
  210. package/dist/components/timeline/logic.js +40 -0
  211. package/dist/components/timeline/styled.js +48 -0
  212. package/dist/components/tree-select/index.js +5 -5
  213. package/dist/components/treeview-filter/item-label/index.js +3 -3
  214. package/dist/constant-BiOGvlZc.js +21 -0
  215. package/dist/createReactComponent-C7L-DMHj.js +60 -0
  216. package/dist/{createSvgIcon-DLPYMuH1.js → createSvgIcon-BjpIhJ30.js} +30 -32
  217. package/dist/{createSvgIcon-OuwzpcaC.js → createSvgIcon-DrtgaibK.js} +5 -5
  218. package/dist/{createTheme-CNnKNxwL.js → createTheme-DYxDnE9u.js} +226 -285
  219. package/dist/{dialog-BE4D6swf.js → dialog-DcwXug9J.js} +6 -6
  220. package/dist/{helpers-DaCoWmi2.js → helpers-B4UL9NMD.js} +3 -3
  221. package/dist/index-BMS1Otro.js +183 -0
  222. package/dist/index-C__OZmYy.js +663 -0
  223. package/dist/{index-CGNxsLVm.js → index-CcdvNlgr.js} +7 -7
  224. package/dist/{index-JrtqxUdI.js → index-kCJ_Zvl8.js} +5 -5
  225. package/dist/index-syTc6m_V.js +1934 -0
  226. package/dist/index.es-CHNMhaMi.js +2067 -0
  227. package/dist/index.esm-BLLrbTzY.js +318 -0
  228. package/dist/{listItemTextClasses-CNjn41Of.js → listItemTextClasses-C3lndiXO.js} +2 -2
  229. package/dist/main.d.ts +1226 -358
  230. package/dist/main.js +141 -443
  231. package/dist/{has-DNclCIDV.js → math-Bvt2Ubuz.js} +220 -222
  232. package/dist/ol-yOE-NV0X.js +7465 -0
  233. package/dist/path-CNVruS--.js +84 -0
  234. package/dist/{property-list-form-C5hcK2y2.js → property-list-form-zZQfpR0X.js} +13 -13
  235. package/dist/styled-eZwjUruw.js +12 -0
  236. package/dist/useId-B4-oF9Mq.js +34 -0
  237. package/dist/useMobilePicker-BLg3Blg8.js +7589 -0
  238. package/dist/useThemeProps-BzzHcQyd.js +58 -0
  239. package/dist/{utils-CsOZUsQj.js → utils-BDNynJcd.js} +2 -2
  240. package/package.json +42 -9
  241. package/dist/AxisRendererY-kADUad00.js +0 -18370
  242. package/dist/Box-B1AVyJ_s.js +0 -71
  243. package/dist/DateAxis-CMum47iz.js +0 -924
  244. package/dist/Input-CoIrGZAh.js +0 -326
  245. package/dist/InputLabel-CBuAYyuT.js +0 -1367
  246. package/dist/LineSeries-CfcpoYla.js +0 -549
  247. package/dist/OutlinedInput-B-iZoc9l.js +0 -450
  248. package/dist/Tabs-Cn42Z5QI.js +0 -789
  249. package/dist/components/collapsible-card/style.js +0 -49
  250. package/dist/components/profile-card/index.js +0 -80
  251. package/dist/components/profile-card/logic.js +0 -33
  252. package/dist/components/profile-card/styled.js +0 -43
  253. package/dist/components/tabs/appleTabs.style.js +0 -55
  254. package/dist/createStyled-BGx1I94c.js +0 -352
  255. package/dist/createTheme-CyC5HawC.js +0 -879
  256. package/dist/exactProp-cjT0t_Pt.js +0 -36
  257. package/dist/extendSxProp-FEpqY5_S.js +0 -30
  258. package/dist/index-DMSHuq6l.js +0 -688
  259. package/dist/index-SpeaLUQD.js +0 -10963
  260. package/dist/ol-lGwSyEIV.js +0 -15050
  261. package/dist/ownerDocument-CUrv0DIK.js +0 -6
  262. package/dist/ownerWindow-niciwP7I.js +0 -7
  263. package/dist/styled-B8ugzvji.js +0 -12
  264. package/dist/useId-BHG98T5I.js +0 -26
  265. package/dist/useTheme-C15Eq8KG.js +0 -18
  266. package/dist/useTheme-D-uii9iX.js +0 -10
  267. package/dist/useThemeProps-DRP1dikX.js +0 -95
@@ -1,1367 +0,0 @@
1
- import { _ as G, a } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
2
- import * as i from "react";
3
- import { P as e } from "./index-DMSHuq6l.js";
4
- import { g as ee, u as oe, c as V, a as ne } from "./useThemeProps-DRP1dikX.js";
5
- import { s as _, d as Ve, r as Ue } from "./styled-B8ugzvji.js";
6
- import { F as Ee, u as fe } from "./useFormControl-CatNKXAi.js";
7
- import { g as re } from "./createTheme-CNnKNxwL.js";
8
- import { jsxs as U, jsx as N } from "react/jsx-runtime";
9
- import { c as K, g as Ge } from "./createTheme-CyC5HawC.js";
10
- import { i as ce } from "./isMuiElement-CxT3_ACP.js";
11
- import { a as Ne, u as ke, e as Ke, r as Ye } from "./ButtonBase-DsX-jMQJ.js";
12
- import * as Ze from "react-dom";
13
- import { o as we } from "./ownerWindow-niciwP7I.js";
14
- import { d as Je } from "./debounce-46wSf_lW.js";
15
- import { i as Oe } from "./isHostComponent-kiaBvYVo.js";
16
- import { u as Qe } from "./useTheme-C15Eq8KG.js";
17
- import { Global as Xe } from "@emotion/react";
18
- const eo = ["onChange", "maxRows", "minRows", "style", "value"];
19
- function X(o) {
20
- return parseInt(o, 10) || 0;
21
- }
22
- const oo = {
23
- shadow: {
24
- // Visibility needed to hide the extra text area on iPads
25
- visibility: "hidden",
26
- // Remove from the content flow
27
- position: "absolute",
28
- // Ignore the scrollbar width
29
- overflow: "hidden",
30
- height: 0,
31
- top: 0,
32
- left: 0,
33
- // Create a new layer, increase the isolation of the computed values
34
- transform: "translateZ(0)"
35
- }
36
- };
37
- function Te(o) {
38
- return o == null || Object.keys(o).length === 0 || o.outerHeightStyle === 0 && !o.overflow;
39
- }
40
- const Fe = /* @__PURE__ */ i.forwardRef(function(n, r) {
41
- const {
42
- onChange: t,
43
- maxRows: s,
44
- minRows: u = 1,
45
- style: h,
46
- value: g
47
- } = n, p = G(n, eo), {
48
- current: l
49
- } = i.useRef(g != null), b = i.useRef(null), C = Ne(r, b), w = i.useRef(null), T = i.useRef(0), [E, k] = i.useState({
50
- outerHeightStyle: 0
51
- }), F = i.useCallback(() => {
52
- const d = b.current, y = we(d).getComputedStyle(d);
53
- if (y.width === "0px")
54
- return {
55
- outerHeightStyle: 0
56
- };
57
- const f = w.current;
58
- f.style.width = y.width, f.value = d.value || n.placeholder || "x", f.value.slice(-1) === `
59
- ` && (f.value += " ");
60
- const I = y.boxSizing, L = X(y.paddingBottom) + X(y.paddingTop), A = X(y.borderBottomWidth) + X(y.borderTopWidth), P = f.scrollHeight;
61
- f.value = "x";
62
- const O = f.scrollHeight;
63
- let v = P;
64
- u && (v = Math.max(Number(u) * O, v)), s && (v = Math.min(Number(s) * O, v)), v = Math.max(v, O);
65
- const M = v + (I === "border-box" ? L + A : 0), Y = Math.abs(v - P) <= 1;
66
- return {
67
- outerHeightStyle: M,
68
- overflow: Y
69
- };
70
- }, [s, u, n.placeholder]), B = (d, x) => {
71
- const {
72
- outerHeightStyle: y,
73
- overflow: f
74
- } = x;
75
- return T.current < 20 && (y > 0 && Math.abs((d.outerHeightStyle || 0) - y) > 1 || d.overflow !== f) ? (T.current += 1, {
76
- overflow: f,
77
- outerHeightStyle: y
78
- }) : (process.env.NODE_ENV !== "production" && T.current === 20 && console.error(["MUI: Too many re-renders. The layout is unstable.", "TextareaAutosize limits the number of renders to prevent an infinite loop."].join(`
79
- `)), d);
80
- }, S = i.useCallback(() => {
81
- const d = F();
82
- Te(d) || k((x) => B(x, d));
83
- }, [F]), j = () => {
84
- const d = F();
85
- Te(d) || Ze.flushSync(() => {
86
- k((x) => B(x, d));
87
- });
88
- };
89
- i.useEffect(() => {
90
- const d = Je(() => {
91
- T.current = 0, b.current && j();
92
- });
93
- let x;
94
- const y = b.current, f = we(y);
95
- return f.addEventListener("resize", d), typeof ResizeObserver < "u" && (x = new ResizeObserver(d), x.observe(y)), () => {
96
- d.clear(), f.removeEventListener("resize", d), x && x.disconnect();
97
- };
98
- }), ke(() => {
99
- S();
100
- }), i.useEffect(() => {
101
- T.current = 0;
102
- }, [g]);
103
- const W = (d) => {
104
- T.current = 0, l || S(), t && t(d);
105
- };
106
- return /* @__PURE__ */ U(i.Fragment, {
107
- children: [/* @__PURE__ */ N("textarea", a({
108
- value: g,
109
- onChange: W,
110
- ref: C,
111
- rows: u,
112
- style: a({
113
- height: E.outerHeightStyle,
114
- // Need a large enough difference to allow scrolling.
115
- // This prevents infinite rendering loop.
116
- overflow: E.overflow ? "hidden" : void 0
117
- }, h)
118
- }, p)), /* @__PURE__ */ N("textarea", {
119
- "aria-hidden": !0,
120
- className: n.className,
121
- readOnly: !0,
122
- ref: w,
123
- tabIndex: -1,
124
- style: a({}, oo.shadow, h, {
125
- padding: 0
126
- })
127
- })]
128
- });
129
- });
130
- process.env.NODE_ENV !== "production" && (Fe.propTypes = {
131
- // ----------------------------- Warning --------------------------------
132
- // | These PropTypes are generated from the TypeScript type definitions |
133
- // | To update them edit TypeScript types and run "yarn proptypes" |
134
- // ----------------------------------------------------------------------
135
- /**
136
- * @ignore
137
- */
138
- className: e.string,
139
- /**
140
- * Maximum number of rows to display.
141
- */
142
- maxRows: e.oneOfType([e.number, e.string]),
143
- /**
144
- * Minimum number of rows to display.
145
- * @default 1
146
- */
147
- minRows: e.oneOfType([e.number, e.string]),
148
- /**
149
- * @ignore
150
- */
151
- onChange: e.func,
152
- /**
153
- * @ignore
154
- */
155
- placeholder: e.string,
156
- /**
157
- * @ignore
158
- */
159
- style: e.object,
160
- /**
161
- * @ignore
162
- */
163
- value: e.oneOfType([e.arrayOf(e.string), e.number, e.string])
164
- });
165
- function no(o) {
166
- return o == null || Object.keys(o).length === 0;
167
- }
168
- function ze(o) {
169
- const {
170
- styles: n,
171
- defaultTheme: r = {}
172
- } = o;
173
- return /* @__PURE__ */ N(Xe, {
174
- styles: typeof n == "function" ? (s) => n(no(s) ? r : s) : n
175
- });
176
- }
177
- process.env.NODE_ENV !== "production" && (ze.propTypes = {
178
- defaultTheme: e.object,
179
- styles: e.oneOfType([e.array, e.string, e.object, e.func])
180
- });
181
- function Ie({
182
- styles: o,
183
- themeId: n,
184
- defaultTheme: r = {}
185
- }) {
186
- const t = Qe(r), s = typeof o == "function" ? o(n && t[n] || t) : o;
187
- return /* @__PURE__ */ N(ze, {
188
- styles: s
189
- });
190
- }
191
- process.env.NODE_ENV !== "production" && (Ie.propTypes = {
192
- // ┌────────────────────────────── Warning ──────────────────────────────┐
193
- // │ These PropTypes are generated from the TypeScript type definitions. │
194
- // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
195
- // └─────────────────────────────────────────────────────────────────────┘
196
- /**
197
- * @ignore
198
- */
199
- defaultTheme: e.object,
200
- /**
201
- * @ignore
202
- */
203
- styles: e.oneOfType([e.array, e.func, e.number, e.object, e.string, e.bool]),
204
- /**
205
- * @ignore
206
- */
207
- themeId: e.string
208
- });
209
- function Re(o) {
210
- return o != null && !(Array.isArray(o) && o.length === 0);
211
- }
212
- function Ae(o, n = !1) {
213
- return o && (Re(o.value) && o.value !== "" || n && Re(o.defaultValue) && o.defaultValue !== "");
214
- }
215
- function ro(o) {
216
- return o.startAdornment;
217
- }
218
- function to(o) {
219
- return re("MuiFormControl", o);
220
- }
221
- ee("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDense", "fullWidth", "disabled"]);
222
- const so = ["children", "className", "color", "component", "disabled", "error", "focused", "fullWidth", "hiddenLabel", "margin", "required", "size", "variant"], io = (o) => {
223
- const {
224
- classes: n,
225
- margin: r,
226
- fullWidth: t
227
- } = o, s = {
228
- root: ["root", r !== "none" && `margin${K(r)}`, t && "fullWidth"]
229
- };
230
- return ne(s, to, n);
231
- }, ao = _("div", {
232
- name: "MuiFormControl",
233
- slot: "Root",
234
- overridesResolver: ({
235
- ownerState: o
236
- }, n) => a({}, n.root, n[`margin${K(o.margin)}`], o.fullWidth && n.fullWidth)
237
- })(({
238
- ownerState: o
239
- }) => a({
240
- display: "inline-flex",
241
- flexDirection: "column",
242
- position: "relative",
243
- // Reset fieldset default style.
244
- minWidth: 0,
245
- padding: 0,
246
- margin: 0,
247
- border: 0,
248
- verticalAlign: "top"
249
- }, o.margin === "normal" && {
250
- marginTop: 16,
251
- marginBottom: 8
252
- }, o.margin === "dense" && {
253
- marginTop: 8,
254
- marginBottom: 4
255
- }, o.fullWidth && {
256
- width: "100%"
257
- })), lo = /* @__PURE__ */ i.forwardRef(function(n, r) {
258
- const t = oe({
259
- props: n,
260
- name: "MuiFormControl"
261
- }), {
262
- children: s,
263
- className: u,
264
- color: h = "primary",
265
- component: g = "div",
266
- disabled: p = !1,
267
- error: l = !1,
268
- focused: b,
269
- fullWidth: C = !1,
270
- hiddenLabel: w = !1,
271
- margin: T = "none",
272
- required: E = !1,
273
- size: k = "medium",
274
- variant: F = "outlined"
275
- } = t, B = G(t, so), S = a({}, t, {
276
- color: h,
277
- component: g,
278
- disabled: p,
279
- error: l,
280
- fullWidth: C,
281
- hiddenLabel: w,
282
- margin: T,
283
- required: E,
284
- size: k,
285
- variant: F
286
- }), j = io(S), [W, d] = i.useState(() => {
287
- let O = !1;
288
- return s && i.Children.forEach(s, (v) => {
289
- if (!ce(v, ["Input", "Select"]))
290
- return;
291
- const M = ce(v, ["Select"]) ? v.props.input : v;
292
- M && ro(M.props) && (O = !0);
293
- }), O;
294
- }), [x, y] = i.useState(() => {
295
- let O = !1;
296
- return s && i.Children.forEach(s, (v) => {
297
- ce(v, ["Input", "Select"]) && Ae(v.props, !0) && (O = !0);
298
- }), O;
299
- }), [f, I] = i.useState(!1);
300
- p && f && I(!1);
301
- const L = b !== void 0 && !p ? b : f;
302
- let A;
303
- if (process.env.NODE_ENV !== "production") {
304
- const O = i.useRef(!1);
305
- A = () => (O.current && console.error(["MUI: There are multiple `InputBase` components inside a FormControl.", "This creates visual inconsistencies, only use one `InputBase`."].join(`
306
- `)), O.current = !0, () => {
307
- O.current = !1;
308
- });
309
- }
310
- const P = i.useMemo(() => ({
311
- adornedStart: W,
312
- setAdornedStart: d,
313
- color: h,
314
- disabled: p,
315
- error: l,
316
- filled: x,
317
- focused: L,
318
- fullWidth: C,
319
- hiddenLabel: w,
320
- size: k,
321
- onBlur: () => {
322
- I(!1);
323
- },
324
- onEmpty: () => {
325
- y(!1);
326
- },
327
- onFilled: () => {
328
- y(!0);
329
- },
330
- onFocus: () => {
331
- I(!0);
332
- },
333
- registerEffect: A,
334
- required: E,
335
- variant: F
336
- }), [W, h, p, l, x, L, C, w, A, E, k, F]);
337
- return /* @__PURE__ */ N(Ee.Provider, {
338
- value: P,
339
- children: /* @__PURE__ */ N(ao, a({
340
- as: g,
341
- ownerState: S,
342
- className: V(j.root, u),
343
- ref: r
344
- }, B, {
345
- children: s
346
- }))
347
- });
348
- });
349
- process.env.NODE_ENV !== "production" && (lo.propTypes = {
350
- // ----------------------------- Warning --------------------------------
351
- // | These PropTypes are generated from the TypeScript type definitions |
352
- // | To update them edit the d.ts file and run "yarn proptypes" |
353
- // ----------------------------------------------------------------------
354
- /**
355
- * The content of the component.
356
- */
357
- children: e.node,
358
- /**
359
- * Override or extend the styles applied to the component.
360
- */
361
- classes: e.object,
362
- /**
363
- * @ignore
364
- */
365
- className: e.string,
366
- /**
367
- * The color of the component.
368
- * It supports both default and custom theme colors, which can be added as shown in the
369
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
370
- * @default 'primary'
371
- */
372
- color: e.oneOfType([e.oneOf(["primary", "secondary", "error", "info", "success", "warning"]), e.string]),
373
- /**
374
- * The component used for the root node.
375
- * Either a string to use a HTML element or a component.
376
- */
377
- component: e.elementType,
378
- /**
379
- * If `true`, the label, input and helper text should be displayed in a disabled state.
380
- * @default false
381
- */
382
- disabled: e.bool,
383
- /**
384
- * If `true`, the label is displayed in an error state.
385
- * @default false
386
- */
387
- error: e.bool,
388
- /**
389
- * If `true`, the component is displayed in focused state.
390
- */
391
- focused: e.bool,
392
- /**
393
- * If `true`, the component will take up the full width of its container.
394
- * @default false
395
- */
396
- fullWidth: e.bool,
397
- /**
398
- * If `true`, the label is hidden.
399
- * This is used to increase density for a `FilledInput`.
400
- * Be sure to add `aria-label` to the `input` element.
401
- * @default false
402
- */
403
- hiddenLabel: e.bool,
404
- /**
405
- * If `dense` or `normal`, will adjust vertical spacing of this and contained components.
406
- * @default 'none'
407
- */
408
- margin: e.oneOf(["dense", "none", "normal"]),
409
- /**
410
- * If `true`, the label will indicate that the `input` is required.
411
- * @default false
412
- */
413
- required: e.bool,
414
- /**
415
- * The size of the component.
416
- * @default 'medium'
417
- */
418
- size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
419
- /**
420
- * The system prop that allows defining system overrides as well as additional CSS styles.
421
- */
422
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
423
- /**
424
- * The variant to use.
425
- * @default 'outlined'
426
- */
427
- variant: e.oneOf(["filled", "outlined", "standard"])
428
- });
429
- function me({
430
- props: o,
431
- states: n,
432
- muiFormControl: r
433
- }) {
434
- return n.reduce((t, s) => (t[s] = o[s], r && typeof o[s] > "u" && (t[s] = r[s]), t), {});
435
- }
436
- function uo(o) {
437
- return re("MuiFormLabel", o);
438
- }
439
- const H = ee("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "error", "filled", "required", "asterisk"]), co = ["children", "className", "color", "component", "disabled", "error", "filled", "focused", "required"], po = (o) => {
440
- const {
441
- classes: n,
442
- color: r,
443
- focused: t,
444
- disabled: s,
445
- error: u,
446
- filled: h,
447
- required: g
448
- } = o, p = {
449
- root: ["root", `color${K(r)}`, s && "disabled", u && "error", h && "filled", t && "focused", g && "required"],
450
- asterisk: ["asterisk", u && "error"]
451
- };
452
- return ne(p, uo, n);
453
- }, fo = _("label", {
454
- name: "MuiFormLabel",
455
- slot: "Root",
456
- overridesResolver: ({
457
- ownerState: o
458
- }, n) => a({}, n.root, o.color === "secondary" && n.colorSecondary, o.filled && n.filled)
459
- })(({
460
- theme: o,
461
- ownerState: n
462
- }) => a({
463
- color: (o.vars || o).palette.text.secondary
464
- }, o.typography.body1, {
465
- lineHeight: "1.4375em",
466
- padding: 0,
467
- position: "relative",
468
- [`&.${H.focused}`]: {
469
- color: (o.vars || o).palette[n.color].main
470
- },
471
- [`&.${H.disabled}`]: {
472
- color: (o.vars || o).palette.text.disabled
473
- },
474
- [`&.${H.error}`]: {
475
- color: (o.vars || o).palette.error.main
476
- }
477
- })), mo = _("span", {
478
- name: "MuiFormLabel",
479
- slot: "Asterisk",
480
- overridesResolver: (o, n) => n.asterisk
481
- })(({
482
- theme: o
483
- }) => ({
484
- [`&.${H.error}`]: {
485
- color: (o.vars || o).palette.error.main
486
- }
487
- })), Me = /* @__PURE__ */ i.forwardRef(function(n, r) {
488
- const t = oe({
489
- props: n,
490
- name: "MuiFormLabel"
491
- }), {
492
- children: s,
493
- className: u,
494
- component: h = "label"
495
- } = t, g = G(t, co), p = fe(), l = me({
496
- props: t,
497
- muiFormControl: p,
498
- states: ["color", "required", "focused", "disabled", "error", "filled"]
499
- }), b = a({}, t, {
500
- color: l.color || "primary",
501
- component: h,
502
- disabled: l.disabled,
503
- error: l.error,
504
- filled: l.filled,
505
- focused: l.focused,
506
- required: l.required
507
- }), C = po(b);
508
- return /* @__PURE__ */ U(fo, a({
509
- as: h,
510
- ownerState: b,
511
- className: V(C.root, u),
512
- ref: r
513
- }, g, {
514
- children: [s, l.required && /* @__PURE__ */ U(mo, {
515
- ownerState: b,
516
- "aria-hidden": !0,
517
- className: C.asterisk,
518
- children: [" ", "*"]
519
- })]
520
- }));
521
- });
522
- process.env.NODE_ENV !== "production" && (Me.propTypes = {
523
- // ----------------------------- Warning --------------------------------
524
- // | These PropTypes are generated from the TypeScript type definitions |
525
- // | To update them edit the d.ts file and run "yarn proptypes" |
526
- // ----------------------------------------------------------------------
527
- /**
528
- * The content of the component.
529
- */
530
- children: e.node,
531
- /**
532
- * Override or extend the styles applied to the component.
533
- */
534
- classes: e.object,
535
- /**
536
- * @ignore
537
- */
538
- className: e.string,
539
- /**
540
- * The color of the component.
541
- * It supports both default and custom theme colors, which can be added as shown in the
542
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
543
- */
544
- color: e.oneOfType([e.oneOf(["error", "info", "primary", "secondary", "success", "warning"]), e.string]),
545
- /**
546
- * The component used for the root node.
547
- * Either a string to use a HTML element or a component.
548
- */
549
- component: e.elementType,
550
- /**
551
- * If `true`, the label should be displayed in a disabled state.
552
- */
553
- disabled: e.bool,
554
- /**
555
- * If `true`, the label is displayed in an error state.
556
- */
557
- error: e.bool,
558
- /**
559
- * If `true`, the label should use filled classes key.
560
- */
561
- filled: e.bool,
562
- /**
563
- * If `true`, the input of this label is focused (used by `FormGroup` components).
564
- */
565
- focused: e.bool,
566
- /**
567
- * If `true`, the label will indicate that the `input` is required.
568
- */
569
- required: e.bool,
570
- /**
571
- * The system prop that allows defining system overrides as well as additional CSS styles.
572
- */
573
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
574
- });
575
- function We(o) {
576
- return /* @__PURE__ */ N(Ie, a({}, o, {
577
- defaultTheme: Ve
578
- }));
579
- }
580
- process.env.NODE_ENV !== "production" && (We.propTypes = {
581
- // ----------------------------- Warning --------------------------------
582
- // | These PropTypes are generated from the TypeScript type definitions |
583
- // | To update them edit the d.ts file and run "yarn proptypes" |
584
- // ----------------------------------------------------------------------
585
- /**
586
- * The styles you want to apply globally.
587
- */
588
- styles: e.oneOfType([e.func, e.number, e.object, e.shape({
589
- __emotion_styles: e.any.isRequired
590
- }), e.string, e.bool])
591
- });
592
- function bo(o) {
593
- return re("MuiInputBase", o);
594
- }
595
- const pe = ee("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]), ho = ["aria-describedby", "autoComplete", "autoFocus", "className", "color", "components", "componentsProps", "defaultValue", "disabled", "disableInjectingGlobalStyles", "endAdornment", "error", "fullWidth", "id", "inputComponent", "inputProps", "inputRef", "margin", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "placeholder", "readOnly", "renderSuffix", "rows", "size", "slotProps", "slots", "startAdornment", "type", "value"], yo = (o, n) => {
596
- const {
597
- ownerState: r
598
- } = o;
599
- return [n.root, r.formControl && n.formControl, r.startAdornment && n.adornedStart, r.endAdornment && n.adornedEnd, r.error && n.error, r.size === "small" && n.sizeSmall, r.multiline && n.multiline, r.color && n[`color${K(r.color)}`], r.fullWidth && n.fullWidth, r.hiddenLabel && n.hiddenLabel];
600
- }, go = (o, n) => {
601
- const {
602
- ownerState: r
603
- } = o;
604
- return [n.input, r.size === "small" && n.inputSizeSmall, r.multiline && n.inputMultiline, r.type === "search" && n.inputTypeSearch, r.startAdornment && n.inputAdornedStart, r.endAdornment && n.inputAdornedEnd, r.hiddenLabel && n.inputHiddenLabel];
605
- }, vo = (o) => {
606
- const {
607
- classes: n,
608
- color: r,
609
- disabled: t,
610
- error: s,
611
- endAdornment: u,
612
- focused: h,
613
- formControl: g,
614
- fullWidth: p,
615
- hiddenLabel: l,
616
- multiline: b,
617
- readOnly: C,
618
- size: w,
619
- startAdornment: T,
620
- type: E
621
- } = o, k = {
622
- root: ["root", `color${K(r)}`, t && "disabled", s && "error", p && "fullWidth", h && "focused", g && "formControl", w === "small" && "sizeSmall", b && "multiline", T && "adornedStart", u && "adornedEnd", l && "hiddenLabel", C && "readOnly"],
623
- input: ["input", t && "disabled", E === "search" && "inputTypeSearch", b && "inputMultiline", w === "small" && "inputSizeSmall", l && "inputHiddenLabel", T && "inputAdornedStart", u && "inputAdornedEnd", C && "readOnly"]
624
- };
625
- return ne(k, bo, n);
626
- }, xo = _("div", {
627
- name: "MuiInputBase",
628
- slot: "Root",
629
- overridesResolver: yo
630
- })(({
631
- theme: o,
632
- ownerState: n
633
- }) => a({}, o.typography.body1, {
634
- color: (o.vars || o).palette.text.primary,
635
- lineHeight: "1.4375em",
636
- // 23px
637
- boxSizing: "border-box",
638
- // Prevent padding issue with fullWidth.
639
- position: "relative",
640
- cursor: "text",
641
- display: "inline-flex",
642
- alignItems: "center",
643
- [`&.${pe.disabled}`]: {
644
- color: (o.vars || o).palette.text.disabled,
645
- cursor: "default"
646
- }
647
- }, n.multiline && a({
648
- padding: "4px 0 5px"
649
- }, n.size === "small" && {
650
- paddingTop: 1
651
- }), n.fullWidth && {
652
- width: "100%"
653
- })), Co = _("input", {
654
- name: "MuiInputBase",
655
- slot: "Input",
656
- overridesResolver: go
657
- })(({
658
- theme: o,
659
- ownerState: n
660
- }) => {
661
- const r = o.palette.mode === "light", t = a({
662
- color: "currentColor"
663
- }, o.vars ? {
664
- opacity: o.vars.opacity.inputPlaceholder
665
- } : {
666
- opacity: r ? 0.42 : 0.5
667
- }, {
668
- transition: o.transitions.create("opacity", {
669
- duration: o.transitions.duration.shorter
670
- })
671
- }), s = {
672
- opacity: "0 !important"
673
- }, u = o.vars ? {
674
- opacity: o.vars.opacity.inputPlaceholder
675
- } : {
676
- opacity: r ? 0.42 : 0.5
677
- };
678
- return a({
679
- font: "inherit",
680
- letterSpacing: "inherit",
681
- color: "currentColor",
682
- padding: "4px 0 5px",
683
- border: 0,
684
- boxSizing: "content-box",
685
- background: "none",
686
- height: "1.4375em",
687
- // Reset 23pxthe native input line-height
688
- margin: 0,
689
- // Reset for Safari
690
- WebkitTapHighlightColor: "transparent",
691
- display: "block",
692
- // Make the flex item shrink with Firefox
693
- minWidth: 0,
694
- width: "100%",
695
- // Fix IE11 width issue
696
- animationName: "mui-auto-fill-cancel",
697
- animationDuration: "10ms",
698
- "&::-webkit-input-placeholder": t,
699
- "&::-moz-placeholder": t,
700
- // Firefox 19+
701
- "&:-ms-input-placeholder": t,
702
- // IE11
703
- "&::-ms-input-placeholder": t,
704
- // Edge
705
- "&:focus": {
706
- outline: 0
707
- },
708
- // Reset Firefox invalid required input style
709
- "&:invalid": {
710
- boxShadow: "none"
711
- },
712
- "&::-webkit-search-decoration": {
713
- // Remove the padding when type=search.
714
- WebkitAppearance: "none"
715
- },
716
- // Show and hide the placeholder logic
717
- [`label[data-shrink=false] + .${pe.formControl} &`]: {
718
- "&::-webkit-input-placeholder": s,
719
- "&::-moz-placeholder": s,
720
- // Firefox 19+
721
- "&:-ms-input-placeholder": s,
722
- // IE11
723
- "&::-ms-input-placeholder": s,
724
- // Edge
725
- "&:focus::-webkit-input-placeholder": u,
726
- "&:focus::-moz-placeholder": u,
727
- // Firefox 19+
728
- "&:focus:-ms-input-placeholder": u,
729
- // IE11
730
- "&:focus::-ms-input-placeholder": u
731
- // Edge
732
- },
733
- [`&.${pe.disabled}`]: {
734
- opacity: 1,
735
- // Reset iOS opacity
736
- WebkitTextFillColor: (o.vars || o).palette.text.disabled
737
- // Fix opacity Safari bug
738
- },
739
- "&:-webkit-autofill": {
740
- animationDuration: "5000s",
741
- animationName: "mui-auto-fill"
742
- }
743
- }, n.size === "small" && {
744
- paddingTop: 1
745
- }, n.multiline && {
746
- height: "auto",
747
- resize: "none",
748
- padding: 0,
749
- paddingTop: 0
750
- }, n.type === "search" && {
751
- // Improve type search style.
752
- MozAppearance: "textfield"
753
- });
754
- }), So = /* @__PURE__ */ N(We, {
755
- styles: {
756
- "@keyframes mui-auto-fill": {
757
- from: {
758
- display: "block"
759
- }
760
- },
761
- "@keyframes mui-auto-fill-cancel": {
762
- from: {
763
- display: "block"
764
- }
765
- }
766
- }
767
- }), wo = /* @__PURE__ */ i.forwardRef(function(n, r) {
768
- var t;
769
- const s = oe({
770
- props: n,
771
- name: "MuiInputBase"
772
- }), {
773
- "aria-describedby": u,
774
- autoComplete: h,
775
- autoFocus: g,
776
- className: p,
777
- components: l = {},
778
- componentsProps: b = {},
779
- defaultValue: C,
780
- disabled: w,
781
- disableInjectingGlobalStyles: T,
782
- endAdornment: E,
783
- fullWidth: k = !1,
784
- id: F,
785
- inputComponent: B = "input",
786
- inputProps: S = {},
787
- inputRef: j,
788
- maxRows: W,
789
- minRows: d,
790
- multiline: x = !1,
791
- name: y,
792
- onBlur: f,
793
- onChange: I,
794
- onClick: L,
795
- onFocus: A,
796
- onKeyDown: P,
797
- onKeyUp: O,
798
- placeholder: v,
799
- readOnly: M,
800
- renderSuffix: Y,
801
- rows: Z,
802
- slotProps: be = {},
803
- slots: he = {},
804
- startAdornment: $,
805
- type: ye = "text",
806
- value: Le
807
- } = s, Be = G(s, ho), J = S.value != null ? S.value : Le, {
808
- current: te
809
- } = i.useRef(J != null), D = i.useRef(), Pe = i.useCallback((c) => {
810
- process.env.NODE_ENV !== "production" && c && c.nodeName !== "INPUT" && !c.focus && console.error(["MUI: You have provided a `inputComponent` to the input component", "that does not correctly handle the `ref` prop.", "Make sure the `ref` prop is called with a HTMLInputElement."].join(`
811
- `));
812
- }, []), De = Ne(D, j, S.ref, Pe), [se, ie] = i.useState(!1), m = fe();
813
- process.env.NODE_ENV !== "production" && i.useEffect(() => {
814
- if (m)
815
- return m.registerEffect();
816
- }, [m]);
817
- const R = me({
818
- props: s,
819
- muiFormControl: m,
820
- states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
821
- });
822
- R.focused = m ? m.focused : se, i.useEffect(() => {
823
- !m && w && se && (ie(!1), f && f());
824
- }, [m, w, se, f]);
825
- const ae = m && m.onFilled, le = m && m.onEmpty, q = i.useCallback((c) => {
826
- Ae(c) ? ae && ae() : le && le();
827
- }, [ae, le]);
828
- ke(() => {
829
- te && q({
830
- value: J
831
- });
832
- }, [J, q, te]);
833
- const _e = (c) => {
834
- if (R.disabled) {
835
- c.stopPropagation();
836
- return;
837
- }
838
- A && A(c), S.onFocus && S.onFocus(c), m && m.onFocus ? m.onFocus(c) : ie(!0);
839
- }, je = (c) => {
840
- f && f(c), S.onBlur && S.onBlur(c), m && m.onBlur ? m.onBlur(c) : ie(!1);
841
- }, $e = (c, ...Ce) => {
842
- if (!te) {
843
- const Se = c.target || D.current;
844
- if (Se == null)
845
- throw new Error(process.env.NODE_ENV !== "production" ? "MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info." : Ge(1));
846
- q({
847
- value: Se.value
848
- });
849
- }
850
- S.onChange && S.onChange(c, ...Ce), I && I(c, ...Ce);
851
- };
852
- i.useEffect(() => {
853
- q(D.current);
854
- }, []);
855
- const qe = (c) => {
856
- D.current && c.currentTarget === c.target && D.current.focus(), L && L(c);
857
- };
858
- let ue = B, z = S;
859
- x && ue === "input" && (Z ? (process.env.NODE_ENV !== "production" && (d || W) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), z = a({
860
- type: void 0,
861
- minRows: Z,
862
- maxRows: Z
863
- }, z)) : z = a({
864
- type: void 0,
865
- maxRows: W,
866
- minRows: d
867
- }, z), ue = Fe);
868
- const He = (c) => {
869
- q(c.animationName === "mui-auto-fill-cancel" ? D.current : {
870
- value: "x"
871
- });
872
- };
873
- i.useEffect(() => {
874
- m && m.setAdornedStart(!!$);
875
- }, [m, $]);
876
- const Q = a({}, s, {
877
- color: R.color || "primary",
878
- disabled: R.disabled,
879
- endAdornment: E,
880
- error: R.error,
881
- focused: R.focused,
882
- formControl: m,
883
- fullWidth: k,
884
- hiddenLabel: R.hiddenLabel,
885
- multiline: x,
886
- size: R.size,
887
- startAdornment: $,
888
- type: ye
889
- }), ge = vo(Q), ve = he.root || l.Root || xo, de = be.root || b.root || {}, xe = he.input || l.Input || Co;
890
- return z = a({}, z, (t = be.input) != null ? t : b.input), /* @__PURE__ */ U(i.Fragment, {
891
- children: [!T && So, /* @__PURE__ */ U(ve, a({}, de, !Oe(ve) && {
892
- ownerState: a({}, Q, de.ownerState)
893
- }, {
894
- ref: r,
895
- onClick: qe
896
- }, Be, {
897
- className: V(ge.root, de.className, p, M && "MuiInputBase-readOnly"),
898
- children: [$, /* @__PURE__ */ N(Ee.Provider, {
899
- value: null,
900
- children: /* @__PURE__ */ N(xe, a({
901
- ownerState: Q,
902
- "aria-invalid": R.error,
903
- "aria-describedby": u,
904
- autoComplete: h,
905
- autoFocus: g,
906
- defaultValue: C,
907
- disabled: R.disabled,
908
- id: F,
909
- onAnimationStart: He,
910
- name: y,
911
- placeholder: v,
912
- readOnly: M,
913
- required: R.required,
914
- rows: Z,
915
- value: J,
916
- onKeyDown: P,
917
- onKeyUp: O,
918
- type: ye
919
- }, z, !Oe(xe) && {
920
- as: ue,
921
- ownerState: a({}, Q, z.ownerState)
922
- }, {
923
- ref: De,
924
- className: V(ge.input, z.className, M && "MuiInputBase-readOnly"),
925
- onBlur: je,
926
- onChange: $e,
927
- onFocus: _e
928
- }))
929
- }), E, Y ? Y(a({}, R, {
930
- startAdornment: $
931
- })) : null]
932
- }))]
933
- });
934
- });
935
- process.env.NODE_ENV !== "production" && (wo.propTypes = {
936
- // ----------------------------- Warning --------------------------------
937
- // | These PropTypes are generated from the TypeScript type definitions |
938
- // | To update them edit the d.ts file and run "yarn proptypes" |
939
- // ----------------------------------------------------------------------
940
- /**
941
- * @ignore
942
- */
943
- "aria-describedby": e.string,
944
- /**
945
- * This prop helps users to fill forms faster, especially on mobile devices.
946
- * The name can be confusing, as it's more like an autofill.
947
- * You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).
948
- */
949
- autoComplete: e.string,
950
- /**
951
- * If `true`, the `input` element is focused during the first mount.
952
- */
953
- autoFocus: e.bool,
954
- /**
955
- * Override or extend the styles applied to the component.
956
- */
957
- classes: e.object,
958
- /**
959
- * @ignore
960
- */
961
- className: e.string,
962
- /**
963
- * The color of the component.
964
- * It supports both default and custom theme colors, which can be added as shown in the
965
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
966
- * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
967
- */
968
- color: e.oneOfType([e.oneOf(["primary", "secondary", "error", "info", "success", "warning"]), e.string]),
969
- /**
970
- * The components used for each slot inside.
971
- *
972
- * This prop is an alias for the `slots` prop.
973
- * It's recommended to use the `slots` prop instead.
974
- *
975
- * @default {}
976
- */
977
- components: e.shape({
978
- Input: e.elementType,
979
- Root: e.elementType
980
- }),
981
- /**
982
- * The extra props for the slot components.
983
- * You can override the existing props or add new ones.
984
- *
985
- * This prop is an alias for the `slotProps` prop.
986
- * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
987
- *
988
- * @default {}
989
- */
990
- componentsProps: e.shape({
991
- input: e.object,
992
- root: e.object
993
- }),
994
- /**
995
- * The default value. Use when the component is not controlled.
996
- */
997
- defaultValue: e.any,
998
- /**
999
- * If `true`, the component is disabled.
1000
- * The prop defaults to the value (`false`) inherited from the parent FormControl component.
1001
- */
1002
- disabled: e.bool,
1003
- /**
1004
- * If `true`, GlobalStyles for the auto-fill keyframes will not be injected/removed on mount/unmount. Make sure to inject them at the top of your application.
1005
- * This option is intended to help with boosting the initial rendering performance if you are loading a big amount of Input components at once.
1006
- * @default false
1007
- */
1008
- disableInjectingGlobalStyles: e.bool,
1009
- /**
1010
- * End `InputAdornment` for this component.
1011
- */
1012
- endAdornment: e.node,
1013
- /**
1014
- * If `true`, the `input` will indicate an error.
1015
- * The prop defaults to the value (`false`) inherited from the parent FormControl component.
1016
- */
1017
- error: e.bool,
1018
- /**
1019
- * If `true`, the `input` will take up the full width of its container.
1020
- * @default false
1021
- */
1022
- fullWidth: e.bool,
1023
- /**
1024
- * The id of the `input` element.
1025
- */
1026
- id: e.string,
1027
- /**
1028
- * The component used for the `input` element.
1029
- * Either a string to use a HTML element or a component.
1030
- * @default 'input'
1031
- */
1032
- inputComponent: Ke,
1033
- /**
1034
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
1035
- * @default {}
1036
- */
1037
- inputProps: e.object,
1038
- /**
1039
- * Pass a ref to the `input` element.
1040
- */
1041
- inputRef: Ye,
1042
- /**
1043
- * If `dense`, will adjust vertical spacing. This is normally obtained via context from
1044
- * FormControl.
1045
- * The prop defaults to the value (`'none'`) inherited from the parent FormControl component.
1046
- */
1047
- margin: e.oneOf(["dense", "none"]),
1048
- /**
1049
- * Maximum number of rows to display when multiline option is set to true.
1050
- */
1051
- maxRows: e.oneOfType([e.number, e.string]),
1052
- /**
1053
- * Minimum number of rows to display when multiline option is set to true.
1054
- */
1055
- minRows: e.oneOfType([e.number, e.string]),
1056
- /**
1057
- * If `true`, a [TextareaAutosize](/material-ui/react-textarea-autosize/) element is rendered.
1058
- * @default false
1059
- */
1060
- multiline: e.bool,
1061
- /**
1062
- * Name attribute of the `input` element.
1063
- */
1064
- name: e.string,
1065
- /**
1066
- * Callback fired when the `input` is blurred.
1067
- *
1068
- * Notice that the first argument (event) might be undefined.
1069
- */
1070
- onBlur: e.func,
1071
- /**
1072
- * Callback fired when the value is changed.
1073
- *
1074
- * @param {React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>} event The event source of the callback.
1075
- * You can pull out the new value by accessing `event.target.value` (string).
1076
- */
1077
- onChange: e.func,
1078
- /**
1079
- * @ignore
1080
- */
1081
- onClick: e.func,
1082
- /**
1083
- * @ignore
1084
- */
1085
- onFocus: e.func,
1086
- /**
1087
- * Callback fired when the `input` doesn't satisfy its constraints.
1088
- */
1089
- onInvalid: e.func,
1090
- /**
1091
- * @ignore
1092
- */
1093
- onKeyDown: e.func,
1094
- /**
1095
- * @ignore
1096
- */
1097
- onKeyUp: e.func,
1098
- /**
1099
- * The short hint displayed in the `input` before the user enters a value.
1100
- */
1101
- placeholder: e.string,
1102
- /**
1103
- * It prevents the user from changing the value of the field
1104
- * (not from interacting with the field).
1105
- */
1106
- readOnly: e.bool,
1107
- /**
1108
- * @ignore
1109
- */
1110
- renderSuffix: e.func,
1111
- /**
1112
- * If `true`, the `input` element is required.
1113
- * The prop defaults to the value (`false`) inherited from the parent FormControl component.
1114
- */
1115
- required: e.bool,
1116
- /**
1117
- * Number of rows to display when multiline option is set to true.
1118
- */
1119
- rows: e.oneOfType([e.number, e.string]),
1120
- /**
1121
- * The size of the component.
1122
- */
1123
- size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
1124
- /**
1125
- * The extra props for the slot components.
1126
- * You can override the existing props or add new ones.
1127
- *
1128
- * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
1129
- *
1130
- * @default {}
1131
- */
1132
- slotProps: e.shape({
1133
- input: e.object,
1134
- root: e.object
1135
- }),
1136
- /**
1137
- * The components used for each slot inside.
1138
- *
1139
- * This prop is an alias for the `components` prop, which will be deprecated in the future.
1140
- *
1141
- * @default {}
1142
- */
1143
- slots: e.shape({
1144
- input: e.elementType,
1145
- root: e.elementType
1146
- }),
1147
- /**
1148
- * Start `InputAdornment` for this component.
1149
- */
1150
- startAdornment: e.node,
1151
- /**
1152
- * The system prop that allows defining system overrides as well as additional CSS styles.
1153
- */
1154
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
1155
- /**
1156
- * 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).
1157
- * @default 'text'
1158
- */
1159
- type: e.string,
1160
- /**
1161
- * The value of the `input` element, required for a controlled component.
1162
- */
1163
- value: e.any
1164
- });
1165
- function Oo(o) {
1166
- return re("MuiInputLabel", o);
1167
- }
1168
- ee("MuiInputLabel", ["root", "focused", "disabled", "error", "required", "asterisk", "formControl", "sizeSmall", "shrink", "animated", "standard", "filled", "outlined"]);
1169
- const To = ["disableAnimation", "margin", "shrink", "variant", "className"], Ro = (o) => {
1170
- const {
1171
- classes: n,
1172
- formControl: r,
1173
- size: t,
1174
- shrink: s,
1175
- disableAnimation: u,
1176
- variant: h,
1177
- required: g
1178
- } = o, l = ne({
1179
- root: ["root", r && "formControl", !u && "animated", s && "shrink", t === "small" && "sizeSmall", h],
1180
- asterisk: [g && "asterisk"]
1181
- }, Oo, n);
1182
- return a({}, n, l);
1183
- }, Eo = _(Me, {
1184
- shouldForwardProp: (o) => Ue(o) || o === "classes",
1185
- name: "MuiInputLabel",
1186
- slot: "Root",
1187
- overridesResolver: (o, n) => {
1188
- const {
1189
- ownerState: r
1190
- } = o;
1191
- return [{
1192
- [`& .${H.asterisk}`]: n.asterisk
1193
- }, n.root, r.formControl && n.formControl, r.size === "small" && n.sizeSmall, r.shrink && n.shrink, !r.disableAnimation && n.animated, n[r.variant]];
1194
- }
1195
- })(({
1196
- theme: o,
1197
- ownerState: n
1198
- }) => a({
1199
- display: "block",
1200
- transformOrigin: "top left",
1201
- whiteSpace: "nowrap",
1202
- overflow: "hidden",
1203
- textOverflow: "ellipsis",
1204
- maxWidth: "100%"
1205
- }, n.formControl && {
1206
- position: "absolute",
1207
- left: 0,
1208
- top: 0,
1209
- // slight alteration to spec spacing to match visual spec result
1210
- transform: "translate(0, 20px) scale(1)"
1211
- }, n.size === "small" && {
1212
- // Compensation for the `Input.inputSizeSmall` style.
1213
- transform: "translate(0, 17px) scale(1)"
1214
- }, n.shrink && {
1215
- transform: "translate(0, -1.5px) scale(0.75)",
1216
- transformOrigin: "top left",
1217
- maxWidth: "133%"
1218
- }, !n.disableAnimation && {
1219
- transition: o.transitions.create(["color", "transform", "max-width"], {
1220
- duration: o.transitions.duration.shorter,
1221
- easing: o.transitions.easing.easeOut
1222
- })
1223
- }, n.variant === "filled" && a({
1224
- // Chrome's autofill feature gives the input field a yellow background.
1225
- // Since the input field is behind the label in the HTML tree,
1226
- // the input field is drawn last and hides the label with an opaque background color.
1227
- // zIndex: 1 will raise the label above opaque background-colors of input.
1228
- zIndex: 1,
1229
- pointerEvents: "none",
1230
- transform: "translate(12px, 16px) scale(1)",
1231
- maxWidth: "calc(100% - 24px)"
1232
- }, n.size === "small" && {
1233
- transform: "translate(12px, 13px) scale(1)"
1234
- }, n.shrink && a({
1235
- userSelect: "none",
1236
- pointerEvents: "auto",
1237
- transform: "translate(12px, 7px) scale(0.75)",
1238
- maxWidth: "calc(133% - 24px)"
1239
- }, n.size === "small" && {
1240
- transform: "translate(12px, 4px) scale(0.75)"
1241
- })), n.variant === "outlined" && a({
1242
- // see comment above on filled.zIndex
1243
- zIndex: 1,
1244
- pointerEvents: "none",
1245
- transform: "translate(14px, 16px) scale(1)",
1246
- maxWidth: "calc(100% - 24px)"
1247
- }, n.size === "small" && {
1248
- transform: "translate(14px, 9px) scale(1)"
1249
- }, n.shrink && {
1250
- userSelect: "none",
1251
- pointerEvents: "auto",
1252
- // Theoretically, we should have (8+5)*2/0.75 = 34px
1253
- // but it feels a better when it bleeds a bit on the left, so 32px.
1254
- maxWidth: "calc(133% - 32px)",
1255
- transform: "translate(14px, -9px) scale(0.75)"
1256
- }))), No = /* @__PURE__ */ i.forwardRef(function(n, r) {
1257
- const t = oe({
1258
- name: "MuiInputLabel",
1259
- props: n
1260
- }), {
1261
- disableAnimation: s = !1,
1262
- shrink: u,
1263
- className: h
1264
- } = t, g = G(t, To), p = fe();
1265
- let l = u;
1266
- typeof l > "u" && p && (l = p.filled || p.focused || p.adornedStart);
1267
- const b = me({
1268
- props: t,
1269
- muiFormControl: p,
1270
- states: ["size", "variant", "required"]
1271
- }), C = a({}, t, {
1272
- disableAnimation: s,
1273
- formControl: p,
1274
- shrink: l,
1275
- size: b.size,
1276
- variant: b.variant,
1277
- required: b.required
1278
- }), w = Ro(C);
1279
- return /* @__PURE__ */ N(Eo, a({
1280
- "data-shrink": l,
1281
- ownerState: C,
1282
- ref: r,
1283
- className: V(w.root, h)
1284
- }, g, {
1285
- classes: w
1286
- }));
1287
- });
1288
- process.env.NODE_ENV !== "production" && (No.propTypes = {
1289
- // ----------------------------- Warning --------------------------------
1290
- // | These PropTypes are generated from the TypeScript type definitions |
1291
- // | To update them edit the d.ts file and run "yarn proptypes" |
1292
- // ----------------------------------------------------------------------
1293
- /**
1294
- * The content of the component.
1295
- */
1296
- children: e.node,
1297
- /**
1298
- * Override or extend the styles applied to the component.
1299
- */
1300
- classes: e.object,
1301
- /**
1302
- * @ignore
1303
- */
1304
- className: e.string,
1305
- /**
1306
- * The color of the component.
1307
- * It supports both default and custom theme colors, which can be added as shown in the
1308
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
1309
- */
1310
- color: e.oneOfType([e.oneOf(["error", "info", "primary", "secondary", "success", "warning"]), e.string]),
1311
- /**
1312
- * If `true`, the transition animation is disabled.
1313
- * @default false
1314
- */
1315
- disableAnimation: e.bool,
1316
- /**
1317
- * If `true`, the component is disabled.
1318
- */
1319
- disabled: e.bool,
1320
- /**
1321
- * If `true`, the label is displayed in an error state.
1322
- */
1323
- error: e.bool,
1324
- /**
1325
- * If `true`, the `input` of this label is focused.
1326
- */
1327
- focused: e.bool,
1328
- /**
1329
- * If `dense`, will adjust vertical spacing. This is normally obtained via context from
1330
- * FormControl.
1331
- */
1332
- margin: e.oneOf(["dense"]),
1333
- /**
1334
- * if `true`, the label will indicate that the `input` is required.
1335
- */
1336
- required: e.bool,
1337
- /**
1338
- * If `true`, the label is shrunk.
1339
- */
1340
- shrink: e.bool,
1341
- /**
1342
- * The size of the component.
1343
- * @default 'normal'
1344
- */
1345
- size: e.oneOfType([e.oneOf(["normal", "small"]), e.string]),
1346
- /**
1347
- * The system prop that allows defining system overrides as well as additional CSS styles.
1348
- */
1349
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
1350
- /**
1351
- * The variant to use.
1352
- */
1353
- variant: e.oneOf(["filled", "outlined", "standard"])
1354
- });
1355
- export {
1356
- lo as F,
1357
- No as I,
1358
- Me as a,
1359
- xo as b,
1360
- Co as c,
1361
- go as d,
1362
- wo as e,
1363
- me as f,
1364
- Ae as g,
1365
- pe as i,
1366
- yo as r
1367
- };