@hybridcore/ui 1.5.90 → 1.6.1

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 (325) hide show
  1. package/dist/{AccordionDetails-DhriPVPP.js → AccordionSummary-CMg08YSA.js} +91 -95
  2. package/dist/{Add-CMz4N2zT.js → Add-DuVVJeQU.js} +35 -36
  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/Bullet-DVczI2TD.js +41 -0
  7. package/dist/Button-CcsPEIDh.js +35 -0
  8. package/dist/{ButtonBase-DsX-jMQJ.js → ButtonBase-sObABYY2.js} +62 -58
  9. package/dist/CategoryAxis-CwnfaGc8.js +458 -0
  10. package/dist/Circle-Cy5s-pVc.js +27 -0
  11. package/dist/ColorSet-C7vpNXhM.js +2957 -0
  12. package/dist/{ColumnSeries-BTcqshjB.js → ColumnSeries-CjgdJ2QL.js} +129 -126
  13. package/dist/DataProcessor-CHDO51q4.js +83 -0
  14. package/dist/DateAxis-YX3QNIB-.js +569 -0
  15. package/dist/{Delete-86TO0fMo.js → Delete-fBLhTHbF.js} +1 -1
  16. package/dist/{DialogContent-CqTojymQ.js → DialogContent-CGJ7alb8.js} +10 -13
  17. package/dist/FormControl-BCurCxRj.js +1294 -0
  18. package/dist/FormControlLabel-BkRfrhNy.js +601 -0
  19. package/dist/Hierarchy-Bihj0S61.js +925 -0
  20. package/dist/{IconButton-DJ-31-Fd.js → IconButton-_opV1iNK.js} +18 -19
  21. package/dist/IconPlus-yPkff_Vj.js +19 -0
  22. package/dist/{InputAdornment-B7qEA4kN.js → InputAdornment-C7PEvvYr.js} +17 -19
  23. package/dist/InputLabel-rEwwnD4_.js +354 -0
  24. package/dist/Legend-Dp_MKfS4.js +178 -0
  25. package/dist/LineSeries-Uiv5o56b.js +472 -0
  26. package/dist/{MenuItem-C6qlUyV3.js → MenuItem-DrE50M_p.js} +92 -69
  27. package/dist/Modal-DlB6GH-f.js +1659 -0
  28. package/dist/Paper-q9kKjAKx.js +527 -0
  29. package/dist/PieSeries-B2fW3z0s.js +693 -0
  30. package/dist/RoundedRectangle-CWLi2PXn.js +34 -0
  31. package/dist/Scrollbar-D86MJyr2.js +171 -0
  32. package/dist/Slice-B19rbYDZ.js +261 -0
  33. package/dist/{Source-BESIjd9X.js → Source-BSZST_GH.js} +2472 -2445
  34. package/dist/{Text-Cl1H4b0h.js → Text-ChJRuaD8.js} +398 -397
  35. package/dist/TextField-DSDIEEKu.js +3161 -0
  36. package/dist/Tick-2bcLyHpF.js +162 -0
  37. package/dist/{Typography-D1t7XuLN.js → Typography-B-Z5Y0Xq.js} +48 -50
  38. package/dist/Vector-BmuhQO4p.js +3606 -0
  39. package/dist/Vector-DfTqQEln.js +1735 -0
  40. package/dist/WKT-2wsDT-nq.js +2310 -0
  41. package/dist/XYCursor-C8WktvKM.js +362 -0
  42. package/dist/ZoomableContainer-DYyqwaMb.js +220 -0
  43. package/dist/_commonjsHelpers-BVfed4GL.js +28 -0
  44. package/dist/capitalize-quqpGCFu.js +9 -0
  45. package/dist/components/access/helpers.js +1 -1
  46. package/dist/components/access/index.js +8 -15
  47. package/dist/components/access/logic.js +25 -0
  48. package/dist/components/card/index.js +158 -498
  49. package/dist/components/card/logic.js +24 -0
  50. package/dist/components/card/styled.js +226 -51
  51. package/dist/components/card-alternate/index.js +111 -139
  52. package/dist/components/card-alternate/logic.js +17 -0
  53. package/dist/components/card-alternate/styled.js +113 -19
  54. package/dist/components/charts/_common/utils.js +20 -0
  55. package/dist/components/charts/candlestick/logic.js +170 -140
  56. package/dist/components/charts/chart-wrapper/helpers.js +27 -0
  57. package/dist/components/charts/chart-wrapper/index.js +44 -0
  58. package/dist/components/charts/chart-wrapper/logic.js +47 -0
  59. package/dist/components/charts/chart-wrapper/styled.js +44 -0
  60. package/dist/components/charts/column-line-mix/index.js +10 -0
  61. package/dist/components/charts/column-line-mix/logic.js +162 -0
  62. package/dist/components/charts/column-line-mix/styled.js +12 -0
  63. package/dist/components/charts/drill-down-treemap/index.js +10 -0
  64. package/dist/components/charts/drill-down-treemap/logic.js +391 -0
  65. package/dist/components/charts/drill-down-treemap/styled.js +12 -0
  66. package/dist/components/charts/drill-down-voronoi-treemap/index.js +10 -0
  67. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +1527 -0
  68. package/dist/components/charts/drill-down-voronoi-treemap/styled.js +12 -0
  69. package/dist/components/charts/heatmap/index.js +10 -0
  70. package/dist/components/charts/heatmap/logic.js +361 -0
  71. package/dist/components/charts/heatmap/styled.js +12 -0
  72. package/dist/components/charts/highlighting-line-data/logic.js +89 -256
  73. package/dist/components/charts/line/index.js +10 -0
  74. package/dist/components/charts/line/logic.js +148 -0
  75. package/dist/components/charts/line/styled.js +12 -0
  76. package/dist/components/charts/logaritmic-scale/index.js +10 -0
  77. package/dist/components/charts/logaritmic-scale/logic.js +119 -0
  78. package/dist/components/charts/logaritmic-scale/styled.js +12 -0
  79. package/dist/components/charts/multiple-value-axes/index.js +10 -0
  80. package/dist/components/charts/multiple-value-axes/logic.js +191 -0
  81. package/dist/components/charts/multiple-value-axes/styled.js +12 -0
  82. package/dist/components/charts/nested-pie/index.js +10 -0
  83. package/dist/components/charts/nested-pie/logic.js +110 -0
  84. package/dist/components/charts/nested-pie/styled.js +12 -0
  85. package/dist/components/charts/packed-circles/index.js +10 -0
  86. package/dist/components/charts/packed-circles/logic.js +423 -0
  87. package/dist/components/charts/packed-circles/styled.js +12 -0
  88. package/dist/components/charts/pie-chart/index.js +10 -0
  89. package/dist/components/charts/pie-chart/logic.js +70 -0
  90. package/dist/components/charts/pie-chart/styled.js +12 -0
  91. package/dist/components/charts/stacked-area-radar/index.js +10 -0
  92. package/dist/components/charts/stacked-area-radar/logic.js +868 -0
  93. package/dist/components/charts/stacked-area-radar/styled.js +12 -0
  94. package/dist/components/charts/stacked-column-chart/index.js +10 -0
  95. package/dist/components/charts/stacked-column-chart/logic.js +148 -0
  96. package/dist/components/charts/stacked-column-chart/styled.js +12 -0
  97. package/dist/components/charts/xy-chart/index.js +10 -0
  98. package/dist/components/charts/xy-chart/logic.js +170 -0
  99. package/dist/components/charts/xy-chart/styled.js +12 -0
  100. package/dist/components/collapsible-card/index.js +58 -32
  101. package/dist/components/collapsible-card/logic.js +20 -0
  102. package/dist/components/collapsible-card/styled.js +52 -0
  103. package/dist/components/confirm/dialog.js +3 -3
  104. package/dist/components/confirm/index.js +1 -1
  105. package/dist/components/container/index.js +28 -269
  106. package/dist/components/container/logic.js +12 -0
  107. package/dist/components/container/styled.js +29 -0
  108. package/dist/components/context-menu/index.js +25 -557
  109. package/dist/components/context-menu/logic.js +14 -0
  110. package/dist/components/context-menu/styled.js +40 -0
  111. package/dist/components/data-map/components/controls/index.js +12 -0
  112. package/dist/components/data-map/components/controls/styled.js +34 -0
  113. package/dist/components/data-map/index.js +51 -0
  114. package/dist/components/data-map/logic.js +108 -0
  115. package/dist/components/data-map/styled.js +32 -0
  116. package/dist/components/data-security-selectors/security-level/index.js +36 -91
  117. package/dist/components/data-security-selectors/security-level/logic.js +73 -0
  118. package/dist/components/data-security-selectors/security-level/styled.js +47 -0
  119. package/dist/components/date-picker-with-custom-range/index.js +9 -0
  120. package/dist/components/date-picker-with-custom-range/logic.js +66 -0
  121. package/dist/components/date-picker-with-custom-range/styled.js +43 -0
  122. package/dist/components/divider/index.js +18 -0
  123. package/dist/components/divider/logic.js +13 -0
  124. package/dist/components/divider/styled.js +14 -0
  125. package/dist/components/geometry-picker/coordinate/index.js +1 -1
  126. package/dist/components/geometry-picker/edit/index.js +1 -1
  127. package/dist/components/geometry-picker/geometry/index.js +1 -1
  128. package/dist/components/geometry-picker/index.js +8 -8
  129. package/dist/components/geometry-picker/kml/index.js +1 -1
  130. package/dist/components/geometry-picker/map/index.js +1 -1
  131. package/dist/components/geometry-picker/map/logic.js +65 -62
  132. package/dist/components/geometry-picker/map/style.js +1 -1
  133. package/dist/components/heat-map/components/controls/index.js +12 -0
  134. package/dist/components/heat-map/components/controls/styled.js +34 -0
  135. package/dist/components/heat-map/components/legend/index.js +26 -0
  136. package/dist/components/heat-map/components/legend/styled.js +14 -0
  137. package/dist/components/heat-map/index.js +37 -0
  138. package/dist/components/heat-map/logic.js +1945 -0
  139. package/dist/components/heat-map/styled.js +32 -0
  140. package/dist/components/icon-button/index.js +22 -15
  141. package/dist/components/icon-button/logic.js +15 -0
  142. package/dist/components/icon-button/styled.js +22 -10
  143. package/dist/components/instance-form/components/composite-list/index.js +1 -1
  144. package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +8 -7
  145. package/dist/components/instance-form/components/variable/index.js +7 -9
  146. package/dist/components/instance-form/components/variables/index.js +1 -1
  147. package/dist/components/instance-form/index.js +1 -1
  148. package/dist/components/instance-hierarchy-table/index.js +32 -37
  149. package/dist/components/instance-hierarchy-table/logic.js +16 -0
  150. package/dist/components/instance-hierarchy-table/styled.js +53 -12
  151. package/dist/components/instance-table/index.js +30 -135
  152. package/dist/components/instance-table/logic.js +122 -0
  153. package/dist/components/instance-table/styled.js +53 -11
  154. package/dist/components/instance-variable-list/index.js +34 -29
  155. package/dist/components/instance-variable-list/styled.js +21 -21
  156. package/dist/components/instance-variable-list/variable.js +44 -74
  157. package/dist/components/key-protection/index.js +45 -2
  158. package/dist/components/key-protection/logic.js +40 -0
  159. package/dist/components/key-protection/styled.js +45 -0
  160. package/dist/components/key-protection/utils.js +1 -1
  161. package/dist/components/linear-indicator/index.js +10 -67
  162. package/dist/components/linear-indicator/logic.js +47 -0
  163. package/dist/components/linear-indicator/styled.js +39 -40
  164. package/dist/components/loading/index.js +15 -9
  165. package/dist/components/loading/logic.js +15 -0
  166. package/dist/components/loading/styled.js +26 -19
  167. package/dist/components/map/helpers/kml.js +1 -1
  168. package/dist/components/map/helpers/mapbox.js +14 -14
  169. package/dist/components/map/helpers/ol.js +23 -19
  170. package/dist/components/map/helpers/wkt.js +26 -1314
  171. package/dist/components/map/index.js +1 -1
  172. package/dist/components/map/logic.js +113 -101
  173. package/dist/components/map/styled.js +39 -31
  174. package/dist/components/metric-card/MetricChart.js +50 -498
  175. package/dist/components/metric-card/index.js +94 -115
  176. package/dist/components/metric-card/logic.js +70 -131
  177. package/dist/components/object-profile-card/components/avatar/index.js +44 -0
  178. package/dist/components/object-profile-card/components/avatar/logic.js +19 -0
  179. package/dist/components/object-profile-card/components/avatar/styled.js +41 -0
  180. package/dist/components/object-profile-card/index.js +90 -0
  181. package/dist/components/object-profile-card/logic.js +33 -0
  182. package/dist/components/object-profile-card/styled.js +48 -0
  183. package/dist/components/paginated-list/index.js +93 -89
  184. package/dist/components/paginated-list/logic.js +51 -40
  185. package/dist/components/paginated-list/styled.js +25 -21
  186. package/dist/components/phone-input/index.js +18 -22
  187. package/dist/components/phone-input/logic.js +14 -0
  188. package/dist/components/phone-input/styled.js +12 -4
  189. package/dist/components/property-mapping/index.js +2 -2
  190. package/dist/components/prr-map/components/controls/index.js +12 -0
  191. package/dist/components/prr-map/components/controls/styled.js +34 -0
  192. package/dist/components/prr-map/components/legend/index.js +36 -0
  193. package/dist/components/prr-map/components/legend/styled.js +21 -0
  194. package/dist/components/prr-map/index.js +38 -0
  195. package/dist/components/prr-map/logic.js +104 -0
  196. package/dist/components/prr-map/styled.js +32 -0
  197. package/dist/components/range-selector/components/composite-list-range/index.js +42 -50
  198. package/dist/components/range-selector/components/date-range/index.js +148 -7
  199. package/dist/components/range-selector/components/geometry-range/index.js +11 -17
  200. package/dist/components/range-selector/components/number-range/index.js +48 -53
  201. package/dist/components/range-selector/components/string-range/index.js +15 -17
  202. package/dist/components/range-selector/index.js +63 -57
  203. package/dist/components/range-selector/logic.js +12 -0
  204. package/dist/components/range-selector/styled.js +4222 -0
  205. package/dist/components/raster-grid-map/components/controls/index.js +12 -0
  206. package/dist/components/raster-grid-map/components/controls/styled.js +34 -0
  207. package/dist/components/raster-grid-map/components/legend/index.js +14 -0
  208. package/dist/components/raster-grid-map/components/legend/styled.js +21 -0
  209. package/dist/components/raster-grid-map/helpers.js +190 -0
  210. package/dist/components/raster-grid-map/index.js +38 -0
  211. package/dist/components/raster-grid-map/logic.js +172 -0
  212. package/dist/components/raster-grid-map/styled.js +32 -0
  213. package/dist/components/search-input/index.js +62 -140
  214. package/dist/components/search-input/logic.js +43 -0
  215. package/dist/components/search-input/styled.js +33 -0
  216. package/dist/components/simple-pivot-table/index.js +66 -0
  217. package/dist/components/simple-pivot-table/logic.js +51 -0
  218. package/dist/components/simple-pivot-table/styled.js +45 -0
  219. package/dist/components/static-text/index.js +18 -0
  220. package/dist/components/static-text/logic.js +13 -0
  221. package/dist/components/static-text/styled.js +45 -0
  222. package/dist/components/tabs/index.js +56 -2160
  223. package/dist/components/tabs/logic.js +36 -0
  224. package/dist/components/tabs/styled.js +94 -16
  225. package/dist/components/tabs/tab-panel.js +11 -10
  226. package/dist/components/template-filters/components/filter/index.js +13 -18
  227. package/dist/components/template-filters/components/tab-panel/index.js +8 -16
  228. package/dist/components/template-filters/index.js +21 -29
  229. package/dist/components/template-filters/logic.js +18 -0
  230. package/dist/components/template-filters/styled.js +44 -1
  231. package/dist/components/template-form/components/property-list/index.js +8 -8
  232. package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
  233. package/dist/components/template-form/components/property-list/property-list-form.js +8 -10
  234. package/dist/components/template-form/components/recognition-property-list/index.js +6 -6
  235. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
  236. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +8 -9
  237. package/dist/components/template-form/index.js +32 -33
  238. package/dist/components/template-property-filters/index.js +45 -95
  239. package/dist/components/template-property-filters/logic.js +27 -0
  240. package/dist/components/template-property-filters/property.js +105 -165
  241. package/dist/components/template-property-filters/styled.js +121 -20
  242. package/dist/components/timeline/index.js +61 -0
  243. package/dist/components/timeline/logic.js +40 -0
  244. package/dist/components/timeline/styled.js +48 -0
  245. package/dist/components/tree-select/index.js +52 -67
  246. package/dist/components/tree-select/logic.js +59 -0
  247. package/dist/components/tree-select/styled.js +45 -62
  248. package/dist/components/treeview-filter/index.js +43 -65
  249. package/dist/components/treeview-filter/item/index.js +43 -42
  250. package/dist/components/treeview-filter/item-label/index.js +17 -37
  251. package/dist/components/treeview-filter/logic.js +28 -0
  252. package/dist/components/treeview-filter/styled.js +86 -0
  253. package/dist/components/uploader/index.js +532 -567
  254. package/dist/components/uploader/logic.js +74 -0
  255. package/dist/components/uploader/styled.js +93 -46
  256. package/dist/constant-BiOGvlZc.js +21 -0
  257. package/dist/createReactComponent-C7L-DMHj.js +60 -0
  258. package/dist/{createSvgIcon-DLPYMuH1.js → createSvgIcon-BM3-TsGy.js} +33 -36
  259. package/dist/{createSvgIcon-OuwzpcaC.js → createSvgIcon-DX-SqL8M.js} +24 -26
  260. package/dist/{dialog-BE4D6swf.js → dialog-cf4HUXXl.js} +27 -28
  261. package/dist/{helpers-DaCoWmi2.js → helpers-B4UL9NMD.js} +3 -3
  262. package/dist/index-BMS1Otro.js +183 -0
  263. package/dist/index-C8C3YXle.js +1932 -0
  264. package/dist/index-C__OZmYy.js +663 -0
  265. package/dist/{index-CGNxsLVm.js → index-DPKUmQnz.js} +11 -13
  266. package/dist/{index-JrtqxUdI.js → index-kCJ_Zvl8.js} +5 -5
  267. package/dist/index.es-CHNMhaMi.js +2067 -0
  268. package/dist/index.esm-BLLrbTzY.js +318 -0
  269. package/dist/isMuiElement-BkJ72LB3.js +26 -0
  270. package/dist/main.d.ts +1869 -565
  271. package/dist/main.js +141 -443
  272. package/dist/{has-DNclCIDV.js → math-Bvt2Ubuz.js} +220 -222
  273. package/dist/ol-yOE-NV0X.js +7465 -0
  274. package/dist/path-CNVruS--.js +84 -0
  275. package/dist/{property-list-form-C5hcK2y2.js → property-list-form-DL_dEoNn.js} +57 -62
  276. package/dist/{createTheme-CNnKNxwL.js → styled-Bsjp3kFh.js} +275 -278
  277. package/dist/useId-B4-oF9Mq.js +34 -0
  278. package/dist/useMobilePicker-B-M3dnTn.js +7993 -0
  279. package/dist/{utils-Bq0ye5vf.js → utils-Cxu-fHjQ.js} +7 -7
  280. package/package.json +11 -2
  281. package/dist/AxisRendererY-kADUad00.js +0 -18370
  282. package/dist/Box-B1AVyJ_s.js +0 -71
  283. package/dist/Button-eqWvpDuh.js +0 -356
  284. package/dist/CardContent-DsYqqPeJ.js +0 -74
  285. package/dist/Checkbox-CrU2hpWB.js +0 -420
  286. package/dist/DateAxis-CMum47iz.js +0 -924
  287. package/dist/FormControlLabel-BrdX4R71.js +0 -195
  288. package/dist/Input-CoIrGZAh.js +0 -326
  289. package/dist/InputLabel-CBuAYyuT.js +0 -1367
  290. package/dist/LineSeries-CfcpoYla.js +0 -549
  291. package/dist/List-DOD5kSk3.js +0 -121
  292. package/dist/ListItem-r8PbsvCz.js +0 -429
  293. package/dist/Modal-CkcFEpHa.js +0 -1284
  294. package/dist/OutlinedInput-B-iZoc9l.js +0 -450
  295. package/dist/Paper-CjqLScHA.js +0 -163
  296. package/dist/Select-t3ewnSdf.js +0 -2180
  297. package/dist/Tabs-Cn42Z5QI.js +0 -789
  298. package/dist/TextField-BQ8a50fA.js +0 -459
  299. package/dist/components/collapsible-card/style.js +0 -49
  300. package/dist/components/key-protection/menu.js +0 -85
  301. package/dist/components/profile-card/index.js +0 -80
  302. package/dist/components/profile-card/logic.js +0 -33
  303. package/dist/components/profile-card/styled.js +0 -43
  304. package/dist/components/tabs/appleTabs.style.js +0 -55
  305. package/dist/components/treeview-filter/item/styled.js +0 -39
  306. package/dist/createStyled-BGx1I94c.js +0 -352
  307. package/dist/createTheme-CyC5HawC.js +0 -879
  308. package/dist/debounce-46wSf_lW.js +0 -15
  309. package/dist/exactProp-cjT0t_Pt.js +0 -36
  310. package/dist/extendSxProp-FEpqY5_S.js +0 -30
  311. package/dist/index-DMSHuq6l.js +0 -688
  312. package/dist/index-SpeaLUQD.js +0 -10963
  313. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  314. package/dist/isMuiElement-CxT3_ACP.js +0 -13
  315. package/dist/listItemTextClasses-CNjn41Of.js +0 -16
  316. package/dist/ol-lGwSyEIV.js +0 -15050
  317. package/dist/ownerDocument-CUrv0DIK.js +0 -6
  318. package/dist/ownerWindow-niciwP7I.js +0 -7
  319. package/dist/styled-B8ugzvji.js +0 -12
  320. package/dist/useFormControl-CatNKXAi.js +0 -10
  321. package/dist/useId-BHG98T5I.js +0 -26
  322. package/dist/useTheme-C15Eq8KG.js +0 -18
  323. package/dist/useTheme-D-uii9iX.js +0 -10
  324. package/dist/useThemeProps-DRP1dikX.js +0 -95
  325. package/dist/utils-CsOZUsQj.js +0 -365
@@ -1,1284 +0,0 @@
1
- import { a as b, _ as q } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
2
- import * as a from "react";
3
- import { P as e } from "./index-DMSHuq6l.js";
4
- import { g as ve, a as Te, u as xe, c as te } from "./useThemeProps-DRP1dikX.js";
5
- import { s as se } from "./styled-B8ugzvji.js";
6
- import { jsxs as ke, jsx as M } from "react/jsx-runtime";
7
- import { g as Pe } from "./createTheme-CNnKNxwL.js";
8
- import { u as _e } from "./useTheme-D-uii9iX.js";
9
- import { T as je, r as He, g as de } from "./utils-CsOZUsQj.js";
10
- import { e as J, a as Re } from "./exactProp-cjT0t_Pt.js";
11
- import { a as z, u as ue, s as fe, b as pe } from "./ButtonBase-DsX-jMQJ.js";
12
- import { o as H } from "./ownerDocument-CUrv0DIK.js";
13
- import { o as ie } from "./ownerWindow-niciwP7I.js";
14
- import { c as me } from "./useId-BHG98T5I.js";
15
- import { i as Ne } from "./isHostComponent-kiaBvYVo.js";
16
- import * as $e from "react-dom";
17
- function Ue(o, n, r) {
18
- return o === void 0 || Ne(o) ? n : b({}, n, {
19
- ownerState: b({}, n.ownerState, r)
20
- });
21
- }
22
- const Ke = {
23
- disableDefaultClasses: !1
24
- }, Ve = /* @__PURE__ */ a.createContext(Ke);
25
- function We(o) {
26
- const {
27
- disableDefaultClasses: n
28
- } = a.useContext(Ve);
29
- return (r) => n ? "" : o(r);
30
- }
31
- function qe(o, n = []) {
32
- if (o === void 0)
33
- return {};
34
- const r = {};
35
- return Object.keys(o).filter((t) => t.match(/^on[A-Z]/) && typeof o[t] == "function" && !n.includes(t)).forEach((t) => {
36
- r[t] = o[t];
37
- }), r;
38
- }
39
- function re(o, n) {
40
- return typeof o == "function" ? o(n) : o;
41
- }
42
- function le(o, n, r, t, i) {
43
- if (process.env.NODE_ENV === "production")
44
- return null;
45
- const s = o[n], l = i || n;
46
- return s == null ? null : s && s.nodeType !== 1 ? new Error(`Invalid ${t} \`${l}\` supplied to \`${r}\`. Expected an HTMLElement.`) : null;
47
- }
48
- function ze(o) {
49
- const n = o.documentElement.clientWidth;
50
- return Math.abs(window.innerWidth - n);
51
- }
52
- function Se(o) {
53
- var n, r, t = "";
54
- if (typeof o == "string" || typeof o == "number") t += o;
55
- else if (typeof o == "object") if (Array.isArray(o)) for (n = 0; n < o.length; n++) o[n] && (r = Se(o[n])) && (t && (t += " "), t += r);
56
- else for (n in o) o[n] && (t && (t += " "), t += n);
57
- return t;
58
- }
59
- function be() {
60
- for (var o, n, r = 0, t = ""; r < arguments.length; ) (o = arguments[r++]) && (n = Se(o)) && (t && (t += " "), t += n);
61
- return t;
62
- }
63
- function he(o) {
64
- if (o === void 0)
65
- return {};
66
- const n = {};
67
- return Object.keys(o).filter((r) => !(r.match(/^on[A-Z]/) && typeof o[r] == "function")).forEach((r) => {
68
- n[r] = o[r];
69
- }), n;
70
- }
71
- function Ye(o) {
72
- const {
73
- getSlotProps: n,
74
- additionalProps: r,
75
- externalSlotProps: t,
76
- externalForwardedProps: i,
77
- className: s
78
- } = o;
79
- if (!n) {
80
- const x = be(i == null ? void 0 : i.className, t == null ? void 0 : t.className, s, r == null ? void 0 : r.className), m = b({}, r == null ? void 0 : r.style, i == null ? void 0 : i.style, t == null ? void 0 : t.style), R = b({}, r, i, t);
81
- return x.length > 0 && (R.className = x), Object.keys(m).length > 0 && (R.style = m), {
82
- props: R,
83
- internalRef: void 0
84
- };
85
- }
86
- const l = qe(b({}, i, t)), c = he(t), u = he(i), f = n(l), T = be(f == null ? void 0 : f.className, r == null ? void 0 : r.className, s, i == null ? void 0 : i.className, t == null ? void 0 : t.className), y = b({}, f == null ? void 0 : f.style, r == null ? void 0 : r.style, i == null ? void 0 : i.style, t == null ? void 0 : t.style), h = b({}, f, r, u, c);
87
- return T.length > 0 && (h.className = T), Object.keys(y).length > 0 && (h.style = y), {
88
- props: h,
89
- internalRef: f.ref
90
- };
91
- }
92
- const Ge = ["elementType", "externalSlotProps", "ownerState"];
93
- function ye(o) {
94
- var n;
95
- const {
96
- elementType: r,
97
- externalSlotProps: t,
98
- ownerState: i
99
- } = o, s = q(o, Ge), l = re(t, i), {
100
- props: c,
101
- internalRef: u
102
- } = Ye(b({}, s, {
103
- externalSlotProps: l
104
- })), f = z(u, l == null ? void 0 : l.ref, (n = o.additionalProps) == null ? void 0 : n.ref);
105
- return Ue(r, b({}, c, {
106
- ref: f
107
- }), i);
108
- }
109
- const Ze = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
110
- function Xe(o) {
111
- const n = parseInt(o.getAttribute("tabindex") || "", 10);
112
- return Number.isNaN(n) ? o.contentEditable === "true" || (o.nodeName === "AUDIO" || o.nodeName === "VIDEO" || o.nodeName === "DETAILS") && o.getAttribute("tabindex") === null ? 0 : o.tabIndex : n;
113
- }
114
- function Je(o) {
115
- if (o.tagName !== "INPUT" || o.type !== "radio" || !o.name)
116
- return !1;
117
- const n = (t) => o.ownerDocument.querySelector(`input[type="radio"]${t}`);
118
- let r = n(`[name="${o.name}"]:checked`);
119
- return r || (r = n(`[name="${o.name}"]`)), r !== o;
120
- }
121
- function Qe(o) {
122
- return !(o.disabled || o.tagName === "INPUT" && o.type === "hidden" || Je(o));
123
- }
124
- function eo(o) {
125
- const n = [], r = [];
126
- return Array.from(o.querySelectorAll(Ze)).forEach((t, i) => {
127
- const s = Xe(t);
128
- s === -1 || !Qe(t) || (s === 0 ? n.push(t) : r.push({
129
- documentOrder: i,
130
- tabIndex: s,
131
- node: t
132
- }));
133
- }), r.sort((t, i) => t.tabIndex === i.tabIndex ? t.documentOrder - i.documentOrder : t.tabIndex - i.tabIndex).map((t) => t.node).concat(n);
134
- }
135
- function oo() {
136
- return !0;
137
- }
138
- function Z(o) {
139
- const {
140
- children: n,
141
- disableAutoFocus: r = !1,
142
- disableEnforceFocus: t = !1,
143
- disableRestoreFocus: i = !1,
144
- getTabbable: s = eo,
145
- isEnabled: l = oo,
146
- open: c
147
- } = o, u = a.useRef(!1), f = a.useRef(null), T = a.useRef(null), y = a.useRef(null), h = a.useRef(null), x = a.useRef(!1), m = a.useRef(null), R = z(n.ref, m), N = a.useRef(null);
148
- a.useEffect(() => {
149
- !c || !m.current || (x.current = !r);
150
- }, [r, c]), a.useEffect(() => {
151
- if (!c || !m.current)
152
- return;
153
- const d = H(m.current);
154
- return m.current.contains(d.activeElement) || (m.current.hasAttribute("tabIndex") || (process.env.NODE_ENV !== "production" && console.error(["MUI: The modal content node does not accept focus.", 'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
155
- `)), m.current.setAttribute("tabIndex", "-1")), x.current && m.current.focus()), () => {
156
- i || (y.current && y.current.focus && (u.current = !0, y.current.focus()), y.current = null);
157
- };
158
- }, [c]), a.useEffect(() => {
159
- if (!c || !m.current)
160
- return;
161
- const d = H(m.current), g = (O) => {
162
- const {
163
- current: I
164
- } = m;
165
- if (I !== null) {
166
- if (!d.hasFocus() || t || !l() || u.current) {
167
- u.current = !1;
168
- return;
169
- }
170
- if (!I.contains(d.activeElement)) {
171
- if (O && h.current !== O.target || d.activeElement !== h.current)
172
- h.current = null;
173
- else if (h.current !== null)
174
- return;
175
- if (!x.current)
176
- return;
177
- let P = [];
178
- if ((d.activeElement === f.current || d.activeElement === T.current) && (P = s(m.current)), P.length > 0) {
179
- var D, L;
180
- const F = !!((D = N.current) != null && D.shiftKey && ((L = N.current) == null ? void 0 : L.key) === "Tab"), B = P[0], p = P[P.length - 1];
181
- typeof B != "string" && typeof p != "string" && (F ? p.focus() : B.focus());
182
- } else
183
- I.focus();
184
- }
185
- }
186
- }, E = (O) => {
187
- N.current = O, !(t || !l() || O.key !== "Tab") && d.activeElement === m.current && O.shiftKey && (u.current = !0, T.current && T.current.focus());
188
- };
189
- d.addEventListener("focusin", g), d.addEventListener("keydown", E, !0);
190
- const C = setInterval(() => {
191
- d.activeElement && d.activeElement.tagName === "BODY" && g(null);
192
- }, 50);
193
- return () => {
194
- clearInterval(C), d.removeEventListener("focusin", g), d.removeEventListener("keydown", E, !0);
195
- };
196
- }, [r, t, i, l, c, s]);
197
- const k = (d) => {
198
- y.current === null && (y.current = d.relatedTarget), x.current = !0, h.current = d.target;
199
- const g = n.props.onFocus;
200
- g && g(d);
201
- }, w = (d) => {
202
- y.current === null && (y.current = d.relatedTarget), x.current = !0;
203
- };
204
- return /* @__PURE__ */ ke(a.Fragment, {
205
- children: [/* @__PURE__ */ M("div", {
206
- tabIndex: c ? 0 : -1,
207
- onFocus: w,
208
- ref: f,
209
- "data-testid": "sentinelStart"
210
- }), /* @__PURE__ */ a.cloneElement(n, {
211
- ref: R,
212
- onFocus: k
213
- }), /* @__PURE__ */ M("div", {
214
- tabIndex: c ? 0 : -1,
215
- onFocus: w,
216
- ref: T,
217
- "data-testid": "sentinelEnd"
218
- })]
219
- });
220
- }
221
- process.env.NODE_ENV !== "production" && (Z.propTypes = {
222
- // ----------------------------- Warning --------------------------------
223
- // | These PropTypes are generated from the TypeScript type definitions |
224
- // | To update them edit TypeScript types and run "yarn proptypes" |
225
- // ----------------------------------------------------------------------
226
- /**
227
- * A single child content element.
228
- */
229
- children: J,
230
- /**
231
- * If `true`, the focus trap will not automatically shift focus to itself when it opens, and
232
- * replace it to the last focused element when it closes.
233
- * This also works correctly with any focus trap children that have the `disableAutoFocus` prop.
234
- *
235
- * Generally this should never be set to `true` as it makes the focus trap less
236
- * accessible to assistive technologies, like screen readers.
237
- * @default false
238
- */
239
- disableAutoFocus: e.bool,
240
- /**
241
- * If `true`, the focus trap will not prevent focus from leaving the focus trap while open.
242
- *
243
- * Generally this should never be set to `true` as it makes the focus trap less
244
- * accessible to assistive technologies, like screen readers.
245
- * @default false
246
- */
247
- disableEnforceFocus: e.bool,
248
- /**
249
- * If `true`, the focus trap will not restore focus to previously focused element once
250
- * focus trap is hidden or unmounted.
251
- * @default false
252
- */
253
- disableRestoreFocus: e.bool,
254
- /**
255
- * Returns an array of ordered tabbable nodes (i.e. in tab order) within the root.
256
- * For instance, you can provide the "tabbable" npm dependency.
257
- * @param {HTMLElement} root
258
- */
259
- getTabbable: e.func,
260
- /**
261
- * This prop extends the `open` prop.
262
- * It allows to toggle the open state without having to wait for a rerender when changing the `open` prop.
263
- * This prop should be memoized.
264
- * It can be used to support multiple focus trap mounted at the same time.
265
- * @default function defaultIsEnabled(): boolean {
266
- * return true;
267
- * }
268
- */
269
- isEnabled: e.func,
270
- /**
271
- * If `true`, focus is locked.
272
- */
273
- open: e.bool.isRequired
274
- });
275
- process.env.NODE_ENV !== "production" && (Z.propTypes = Re(Z.propTypes));
276
- function no(o) {
277
- return typeof o == "function" ? o() : o;
278
- }
279
- const X = /* @__PURE__ */ a.forwardRef(function(n, r) {
280
- const {
281
- children: t,
282
- container: i,
283
- disablePortal: s = !1
284
- } = n, [l, c] = a.useState(null), u = z(/* @__PURE__ */ a.isValidElement(t) ? t.ref : null, r);
285
- if (ue(() => {
286
- s || c(no(i) || document.body);
287
- }, [i, s]), ue(() => {
288
- if (l && !s)
289
- return fe(r, l), () => {
290
- fe(r, null);
291
- };
292
- }, [r, l, s]), s) {
293
- if (/* @__PURE__ */ a.isValidElement(t)) {
294
- const f = {
295
- ref: u
296
- };
297
- return /* @__PURE__ */ a.cloneElement(t, f);
298
- }
299
- return /* @__PURE__ */ M(a.Fragment, {
300
- children: t
301
- });
302
- }
303
- return /* @__PURE__ */ M(a.Fragment, {
304
- children: l && /* @__PURE__ */ $e.createPortal(t, l)
305
- });
306
- });
307
- process.env.NODE_ENV !== "production" && (X.propTypes = {
308
- // ----------------------------- Warning --------------------------------
309
- // | These PropTypes are generated from the TypeScript type definitions |
310
- // | To update them edit TypeScript types and run "yarn proptypes" |
311
- // ----------------------------------------------------------------------
312
- /**
313
- * The children to render into the `container`.
314
- */
315
- children: e.node,
316
- /**
317
- * An HTML element or function that returns one.
318
- * The `container` will have the portal children appended to it.
319
- *
320
- * By default, it uses the body of the top-level document object,
321
- * so it's simply `document.body` most of the time.
322
- */
323
- container: e.oneOfType([le, e.func]),
324
- /**
325
- * The `children` will be under the DOM hierarchy of the parent component.
326
- * @default false
327
- */
328
- disablePortal: e.bool
329
- });
330
- process.env.NODE_ENV !== "production" && (X.propTypes = Re(X.propTypes));
331
- function to(o) {
332
- const n = H(o);
333
- return n.body === o ? ie(o).innerWidth > n.documentElement.clientWidth : o.scrollHeight > o.clientHeight;
334
- }
335
- function W(o, n) {
336
- n ? o.setAttribute("aria-hidden", "true") : o.removeAttribute("aria-hidden");
337
- }
338
- function Ee(o) {
339
- return parseInt(ie(o).getComputedStyle(o).paddingRight, 10) || 0;
340
- }
341
- function ro(o) {
342
- const r = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].indexOf(o.tagName) !== -1, t = o.tagName === "INPUT" && o.getAttribute("type") === "hidden";
343
- return r || t;
344
- }
345
- function ge(o, n, r, t, i) {
346
- const s = [n, r, ...t];
347
- [].forEach.call(o.children, (l) => {
348
- const c = s.indexOf(l) === -1, u = !ro(l);
349
- c && u && W(l, i);
350
- });
351
- }
352
- function ne(o, n) {
353
- let r = -1;
354
- return o.some((t, i) => n(t) ? (r = i, !0) : !1), r;
355
- }
356
- function so(o, n) {
357
- const r = [], t = o.container;
358
- if (!n.disableScrollLock) {
359
- if (to(t)) {
360
- const l = ze(H(t));
361
- r.push({
362
- value: t.style.paddingRight,
363
- property: "padding-right",
364
- el: t
365
- }), t.style.paddingRight = `${Ee(t) + l}px`;
366
- const c = H(t).querySelectorAll(".mui-fixed");
367
- [].forEach.call(c, (u) => {
368
- r.push({
369
- value: u.style.paddingRight,
370
- property: "padding-right",
371
- el: u
372
- }), u.style.paddingRight = `${Ee(u) + l}px`;
373
- });
374
- }
375
- let s;
376
- if (t.parentNode instanceof DocumentFragment)
377
- s = H(t).body;
378
- else {
379
- const l = t.parentElement, c = ie(t);
380
- s = (l == null ? void 0 : l.nodeName) === "HTML" && c.getComputedStyle(l).overflowY === "scroll" ? l : t;
381
- }
382
- r.push({
383
- value: s.style.overflow,
384
- property: "overflow",
385
- el: s
386
- }, {
387
- value: s.style.overflowX,
388
- property: "overflow-x",
389
- el: s
390
- }, {
391
- value: s.style.overflowY,
392
- property: "overflow-y",
393
- el: s
394
- }), s.style.overflow = "hidden";
395
- }
396
- return () => {
397
- r.forEach(({
398
- value: s,
399
- el: l,
400
- property: c
401
- }) => {
402
- s ? l.style.setProperty(c, s) : l.style.removeProperty(c);
403
- });
404
- };
405
- }
406
- function io(o) {
407
- const n = [];
408
- return [].forEach.call(o.children, (r) => {
409
- r.getAttribute("aria-hidden") === "true" && n.push(r);
410
- }), n;
411
- }
412
- class lo {
413
- constructor() {
414
- this.containers = void 0, this.modals = void 0, this.modals = [], this.containers = [];
415
- }
416
- add(n, r) {
417
- let t = this.modals.indexOf(n);
418
- if (t !== -1)
419
- return t;
420
- t = this.modals.length, this.modals.push(n), n.modalRef && W(n.modalRef, !1);
421
- const i = io(r);
422
- ge(r, n.mount, n.modalRef, i, !0);
423
- const s = ne(this.containers, (l) => l.container === r);
424
- return s !== -1 ? (this.containers[s].modals.push(n), t) : (this.containers.push({
425
- modals: [n],
426
- container: r,
427
- restore: null,
428
- hiddenSiblings: i
429
- }), t);
430
- }
431
- mount(n, r) {
432
- const t = ne(this.containers, (s) => s.modals.indexOf(n) !== -1), i = this.containers[t];
433
- i.restore || (i.restore = so(i, r));
434
- }
435
- remove(n, r = !0) {
436
- const t = this.modals.indexOf(n);
437
- if (t === -1)
438
- return t;
439
- const i = ne(this.containers, (l) => l.modals.indexOf(n) !== -1), s = this.containers[i];
440
- if (s.modals.splice(s.modals.indexOf(n), 1), this.modals.splice(t, 1), s.modals.length === 0)
441
- s.restore && s.restore(), n.modalRef && W(n.modalRef, r), ge(s.container, n.mount, n.modalRef, s.hiddenSiblings, !1), this.containers.splice(i, 1);
442
- else {
443
- const l = s.modals[s.modals.length - 1];
444
- l.modalRef && W(l.modalRef, !1);
445
- }
446
- return t;
447
- }
448
- isTopModal(n) {
449
- return this.modals.length > 0 && this.modals[this.modals.length - 1] === n;
450
- }
451
- }
452
- function ao(o) {
453
- return Pe("MuiModal", o);
454
- }
455
- ve("MuiModal", ["root", "hidden", "backdrop"]);
456
- const co = ["children", "closeAfterTransition", "component", "container", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onKeyDown", "open", "onTransitionEnter", "onTransitionExited", "slotProps", "slots"], uo = (o) => {
457
- const {
458
- open: n,
459
- exited: r
460
- } = o;
461
- return Te({
462
- root: ["root", !n && r && "hidden"],
463
- backdrop: ["backdrop"]
464
- }, We(ao));
465
- };
466
- function fo(o) {
467
- return typeof o == "function" ? o() : o;
468
- }
469
- function po(o) {
470
- return o ? o.props.hasOwnProperty("in") : !1;
471
- }
472
- const mo = new lo(), Ce = /* @__PURE__ */ a.forwardRef(function(n, r) {
473
- var t, i;
474
- const {
475
- children: s,
476
- closeAfterTransition: l = !1,
477
- component: c,
478
- container: u,
479
- disableAutoFocus: f = !1,
480
- disableEnforceFocus: T = !1,
481
- disableEscapeKeyDown: y = !1,
482
- disablePortal: h = !1,
483
- disableRestoreFocus: x = !1,
484
- disableScrollLock: m = !1,
485
- hideBackdrop: R = !1,
486
- keepMounted: N = !1,
487
- // private
488
- manager: k = mo,
489
- onBackdropClick: w,
490
- onClose: d,
491
- onKeyDown: g,
492
- open: E,
493
- onTransitionEnter: C,
494
- onTransitionExited: O,
495
- slotProps: I = {},
496
- slots: D = {}
497
- } = n, L = q(n, co), [P, F] = a.useState(!E), B = a.useRef({}), p = a.useRef(null), v = a.useRef(null), A = z(v, r), j = po(s), _ = (t = n["aria-hidden"]) != null ? t : !0, Y = () => H(p.current), $ = () => (B.current.modalRef = v.current, B.current.mountNode = p.current, B.current), U = () => {
498
- k.mount($(), {
499
- disableScrollLock: m
500
- }), v.current && (v.current.scrollTop = 0);
501
- }, K = pe(() => {
502
- const S = fo(u) || Y().body;
503
- k.add($(), S), v.current && U();
504
- }), Q = a.useCallback(() => k.isTopModal($()), [k]), Fe = pe((S) => {
505
- p.current = S, !(!S || !v.current) && (E && Q() ? U() : W(v.current, _));
506
- }), V = a.useCallback(() => {
507
- k.remove($(), _);
508
- }, [k, _]);
509
- a.useEffect(() => () => {
510
- V();
511
- }, [V]), a.useEffect(() => {
512
- E ? K() : (!j || !l) && V();
513
- }, [E, V, j, l, K]);
514
- const ee = b({}, n, {
515
- closeAfterTransition: l,
516
- disableAutoFocus: f,
517
- disableEnforceFocus: T,
518
- disableEscapeKeyDown: y,
519
- disablePortal: h,
520
- disableRestoreFocus: x,
521
- disableScrollLock: m,
522
- exited: P,
523
- hideBackdrop: R,
524
- keepMounted: N
525
- }), ae = uo(ee), Me = () => {
526
- F(!1), C && C();
527
- }, Ie = () => {
528
- F(!0), O && O(), l && V();
529
- }, Ae = (S) => {
530
- S.target === S.currentTarget && (w && w(S), d && d(S, "backdropClick"));
531
- }, De = (S) => {
532
- g && g(S), !(S.key !== "Escape" || !Q()) && (y || (S.stopPropagation(), d && d(S, "escapeKeyDown")));
533
- }, G = {};
534
- s.props.tabIndex === void 0 && (G.tabIndex = "-1"), j && (G.onEnter = me(Me, s.props.onEnter), G.onExited = me(Ie, s.props.onExited));
535
- const ce = (i = c ?? D.root) != null ? i : "div", Be = ye({
536
- elementType: ce,
537
- externalSlotProps: I.root,
538
- externalForwardedProps: L,
539
- additionalProps: {
540
- ref: A,
541
- role: "presentation",
542
- onKeyDown: De
543
- },
544
- className: ae.root,
545
- ownerState: ee
546
- }), oe = D.backdrop, Le = ye({
547
- elementType: oe,
548
- externalSlotProps: I.backdrop,
549
- additionalProps: {
550
- "aria-hidden": !0,
551
- onClick: Ae,
552
- open: E
553
- },
554
- className: ae.backdrop,
555
- ownerState: ee
556
- });
557
- return !N && !E && (!j || P) ? null : /* @__PURE__ */ M(
558
- X,
559
- {
560
- ref: Fe,
561
- container: u,
562
- disablePortal: h,
563
- children: /* @__PURE__ */ ke(ce, b({}, Be, {
564
- children: [!R && oe ? /* @__PURE__ */ M(oe, b({}, Le)) : null, /* @__PURE__ */ M(Z, {
565
- disableEnforceFocus: T,
566
- disableAutoFocus: f,
567
- disableRestoreFocus: x,
568
- isEnabled: Q,
569
- open: E,
570
- children: /* @__PURE__ */ a.cloneElement(s, G)
571
- })]
572
- }))
573
- }
574
- );
575
- });
576
- process.env.NODE_ENV !== "production" && (Ce.propTypes = {
577
- // ----------------------------- Warning --------------------------------
578
- // | These PropTypes are generated from the TypeScript type definitions |
579
- // | To update them edit TypeScript types and run "yarn proptypes" |
580
- // ----------------------------------------------------------------------
581
- /**
582
- * A single child content element.
583
- */
584
- children: J.isRequired,
585
- /**
586
- * When set to true the Modal waits until a nested Transition is completed before closing.
587
- * @default false
588
- */
589
- closeAfterTransition: e.bool,
590
- /**
591
- * The component used for the root node.
592
- * Either a string to use a HTML element or a component.
593
- */
594
- component: e.elementType,
595
- /**
596
- * An HTML element or function that returns one.
597
- * The `container` will have the portal children appended to it.
598
- *
599
- * By default, it uses the body of the top-level document object,
600
- * so it's simply `document.body` most of the time.
601
- */
602
- container: e.oneOfType([le, e.func]),
603
- /**
604
- * If `true`, the modal will not automatically shift focus to itself when it opens, and
605
- * replace it to the last focused element when it closes.
606
- * This also works correctly with any modal children that have the `disableAutoFocus` prop.
607
- *
608
- * Generally this should never be set to `true` as it makes the modal less
609
- * accessible to assistive technologies, like screen readers.
610
- * @default false
611
- */
612
- disableAutoFocus: e.bool,
613
- /**
614
- * If `true`, the modal will not prevent focus from leaving the modal while open.
615
- *
616
- * Generally this should never be set to `true` as it makes the modal less
617
- * accessible to assistive technologies, like screen readers.
618
- * @default false
619
- */
620
- disableEnforceFocus: e.bool,
621
- /**
622
- * If `true`, hitting escape will not fire the `onClose` callback.
623
- * @default false
624
- */
625
- disableEscapeKeyDown: e.bool,
626
- /**
627
- * The `children` will be under the DOM hierarchy of the parent component.
628
- * @default false
629
- */
630
- disablePortal: e.bool,
631
- /**
632
- * If `true`, the modal will not restore focus to previously focused element once
633
- * modal is hidden or unmounted.
634
- * @default false
635
- */
636
- disableRestoreFocus: e.bool,
637
- /**
638
- * Disable the scroll lock behavior.
639
- * @default false
640
- */
641
- disableScrollLock: e.bool,
642
- /**
643
- * If `true`, the backdrop is not rendered.
644
- * @default false
645
- */
646
- hideBackdrop: e.bool,
647
- /**
648
- * Always keep the children in the DOM.
649
- * This prop can be useful in SEO situation or
650
- * when you want to maximize the responsiveness of the Modal.
651
- * @default false
652
- */
653
- keepMounted: e.bool,
654
- /**
655
- * Callback fired when the backdrop is clicked.
656
- * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
657
- */
658
- onBackdropClick: e.func,
659
- /**
660
- * Callback fired when the component requests to be closed.
661
- * The `reason` parameter can optionally be used to control the response to `onClose`.
662
- *
663
- * @param {object} event The event source of the callback.
664
- * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
665
- */
666
- onClose: e.func,
667
- /**
668
- * @ignore
669
- */
670
- onKeyDown: e.func,
671
- /**
672
- * If `true`, the component is shown.
673
- */
674
- open: e.bool.isRequired,
675
- /**
676
- * The props used for each slot inside the Modal.
677
- * @default {}
678
- */
679
- slotProps: e.shape({
680
- backdrop: e.oneOfType([e.func, e.object]),
681
- root: e.oneOfType([e.func, e.object])
682
- }),
683
- /**
684
- * The components used for each slot inside the Modal.
685
- * Either a string to use a HTML element or a component.
686
- * @default {}
687
- */
688
- slots: e.shape({
689
- backdrop: e.elementType,
690
- root: e.elementType
691
- })
692
- });
693
- const bo = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"], ho = {
694
- entering: {
695
- opacity: 1
696
- },
697
- entered: {
698
- opacity: 1
699
- }
700
- }, Oe = /* @__PURE__ */ a.forwardRef(function(n, r) {
701
- const t = _e(), i = {
702
- enter: t.transitions.duration.enteringScreen,
703
- exit: t.transitions.duration.leavingScreen
704
- }, {
705
- addEndListener: s,
706
- appear: l = !0,
707
- children: c,
708
- easing: u,
709
- in: f,
710
- onEnter: T,
711
- onEntered: y,
712
- onEntering: h,
713
- onExit: x,
714
- onExited: m,
715
- onExiting: R,
716
- style: N,
717
- timeout: k = i,
718
- // eslint-disable-next-line react/prop-types
719
- TransitionComponent: w = je
720
- } = n, d = q(n, bo), g = a.useRef(null), E = z(g, c.ref, r), C = (p) => (v) => {
721
- if (p) {
722
- const A = g.current;
723
- v === void 0 ? p(A) : p(A, v);
724
- }
725
- }, O = C(h), I = C((p, v) => {
726
- He(p);
727
- const A = de({
728
- style: N,
729
- timeout: k,
730
- easing: u
731
- }, {
732
- mode: "enter"
733
- });
734
- p.style.webkitTransition = t.transitions.create("opacity", A), p.style.transition = t.transitions.create("opacity", A), T && T(p, v);
735
- }), D = C(y), L = C(R), P = C((p) => {
736
- const v = de({
737
- style: N,
738
- timeout: k,
739
- easing: u
740
- }, {
741
- mode: "exit"
742
- });
743
- p.style.webkitTransition = t.transitions.create("opacity", v), p.style.transition = t.transitions.create("opacity", v), x && x(p);
744
- }), F = C(m);
745
- return /* @__PURE__ */ M(w, b({
746
- appear: l,
747
- in: f,
748
- nodeRef: g,
749
- onEnter: I,
750
- onEntered: D,
751
- onEntering: O,
752
- onExit: P,
753
- onExited: F,
754
- onExiting: L,
755
- addEndListener: (p) => {
756
- s && s(g.current, p);
757
- },
758
- timeout: k
759
- }, d, {
760
- children: (p, v) => /* @__PURE__ */ a.cloneElement(c, b({
761
- style: b({
762
- opacity: 0,
763
- visibility: p === "exited" && !f ? "hidden" : void 0
764
- }, ho[p], N, c.props.style),
765
- ref: E
766
- }, v))
767
- }));
768
- });
769
- process.env.NODE_ENV !== "production" && (Oe.propTypes = {
770
- // ----------------------------- Warning --------------------------------
771
- // | These PropTypes are generated from the TypeScript type definitions |
772
- // | To update them edit the d.ts file and run "yarn proptypes" |
773
- // ----------------------------------------------------------------------
774
- /**
775
- * Add a custom transition end trigger. Called with the transitioning DOM
776
- * node and a done callback. Allows for more fine grained transition end
777
- * logic. Note: Timeouts are still used as a fallback if provided.
778
- */
779
- addEndListener: e.func,
780
- /**
781
- * Perform the enter transition when it first mounts if `in` is also `true`.
782
- * Set this to `false` to disable this behavior.
783
- * @default true
784
- */
785
- appear: e.bool,
786
- /**
787
- * A single child content element.
788
- */
789
- children: J.isRequired,
790
- /**
791
- * The transition timing function.
792
- * You may specify a single easing or a object containing enter and exit values.
793
- */
794
- easing: e.oneOfType([e.shape({
795
- enter: e.string,
796
- exit: e.string
797
- }), e.string]),
798
- /**
799
- * If `true`, the component will transition in.
800
- */
801
- in: e.bool,
802
- /**
803
- * @ignore
804
- */
805
- onEnter: e.func,
806
- /**
807
- * @ignore
808
- */
809
- onEntered: e.func,
810
- /**
811
- * @ignore
812
- */
813
- onEntering: e.func,
814
- /**
815
- * @ignore
816
- */
817
- onExit: e.func,
818
- /**
819
- * @ignore
820
- */
821
- onExited: e.func,
822
- /**
823
- * @ignore
824
- */
825
- onExiting: e.func,
826
- /**
827
- * @ignore
828
- */
829
- style: e.object,
830
- /**
831
- * The duration for the transition, in milliseconds.
832
- * You may specify a single timeout for all transitions, or individually with an object.
833
- * @default {
834
- * enter: theme.transitions.duration.enteringScreen,
835
- * exit: theme.transitions.duration.leavingScreen,
836
- * }
837
- */
838
- timeout: e.oneOfType([e.number, e.shape({
839
- appear: e.number,
840
- enter: e.number,
841
- exit: e.number
842
- })])
843
- });
844
- function yo(o) {
845
- return Pe("MuiBackdrop", o);
846
- }
847
- ve("MuiBackdrop", ["root", "invisible"]);
848
- const Eo = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"], go = (o) => {
849
- const {
850
- classes: n,
851
- invisible: r
852
- } = o;
853
- return Te({
854
- root: ["root", r && "invisible"]
855
- }, yo, n);
856
- }, vo = se("div", {
857
- name: "MuiBackdrop",
858
- slot: "Root",
859
- overridesResolver: (o, n) => {
860
- const {
861
- ownerState: r
862
- } = o;
863
- return [n.root, r.invisible && n.invisible];
864
- }
865
- })(({
866
- ownerState: o
867
- }) => b({
868
- position: "fixed",
869
- display: "flex",
870
- alignItems: "center",
871
- justifyContent: "center",
872
- right: 0,
873
- bottom: 0,
874
- top: 0,
875
- left: 0,
876
- backgroundColor: "rgba(0, 0, 0, 0.5)",
877
- WebkitTapHighlightColor: "transparent"
878
- }, o.invisible && {
879
- backgroundColor: "transparent"
880
- })), we = /* @__PURE__ */ a.forwardRef(function(n, r) {
881
- var t, i, s;
882
- const l = xe({
883
- props: n,
884
- name: "MuiBackdrop"
885
- }), {
886
- children: c,
887
- className: u,
888
- component: f = "div",
889
- components: T = {},
890
- componentsProps: y = {},
891
- invisible: h = !1,
892
- open: x,
893
- slotProps: m = {},
894
- slots: R = {},
895
- TransitionComponent: N = Oe,
896
- transitionDuration: k
897
- } = l, w = q(l, Eo), d = b({}, l, {
898
- component: f,
899
- invisible: h
900
- }), g = go(d), E = (t = m.root) != null ? t : y.root;
901
- return /* @__PURE__ */ M(N, b({
902
- in: x,
903
- timeout: k
904
- }, w, {
905
- children: /* @__PURE__ */ M(vo, b({
906
- "aria-hidden": !0
907
- }, E, {
908
- as: (i = (s = R.root) != null ? s : T.Root) != null ? i : f,
909
- className: te(g.root, u, E == null ? void 0 : E.className),
910
- ownerState: b({}, d, E == null ? void 0 : E.ownerState),
911
- classes: g,
912
- ref: r,
913
- children: c
914
- }))
915
- }));
916
- });
917
- process.env.NODE_ENV !== "production" && (we.propTypes = {
918
- // ----------------------------- Warning --------------------------------
919
- // | These PropTypes are generated from the TypeScript type definitions |
920
- // | To update them edit the d.ts file and run "yarn proptypes" |
921
- // ----------------------------------------------------------------------
922
- /**
923
- * The content of the component.
924
- */
925
- children: e.node,
926
- /**
927
- * Override or extend the styles applied to the component.
928
- */
929
- classes: e.object,
930
- /**
931
- * @ignore
932
- */
933
- className: e.string,
934
- /**
935
- * The component used for the root node.
936
- * Either a string to use a HTML element or a component.
937
- */
938
- component: e.elementType,
939
- /**
940
- * The components used for each slot inside.
941
- *
942
- * This prop is an alias for the `slots` prop.
943
- * It's recommended to use the `slots` prop instead.
944
- *
945
- * @default {}
946
- */
947
- components: e.shape({
948
- Root: e.elementType
949
- }),
950
- /**
951
- * The extra props for the slot components.
952
- * You can override the existing props or add new ones.
953
- *
954
- * This prop is an alias for the `slotProps` prop.
955
- * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
956
- *
957
- * @default {}
958
- */
959
- componentsProps: e.shape({
960
- root: e.object
961
- }),
962
- /**
963
- * If `true`, the backdrop is invisible.
964
- * It can be used when rendering a popover or a custom select component.
965
- * @default false
966
- */
967
- invisible: e.bool,
968
- /**
969
- * If `true`, the component is shown.
970
- */
971
- open: e.bool.isRequired,
972
- /**
973
- * The extra props for the slot components.
974
- * You can override the existing props or add new ones.
975
- *
976
- * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
977
- *
978
- * @default {}
979
- */
980
- slotProps: e.shape({
981
- root: e.object
982
- }),
983
- /**
984
- * The components used for each slot inside.
985
- *
986
- * This prop is an alias for the `components` prop, which will be deprecated in the future.
987
- *
988
- * @default {}
989
- */
990
- slots: e.shape({
991
- root: e.elementType
992
- }),
993
- /**
994
- * The system prop that allows defining system overrides as well as additional CSS styles.
995
- */
996
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
997
- /**
998
- * The component used for the transition.
999
- * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
1000
- * @default Fade
1001
- */
1002
- TransitionComponent: e.elementType,
1003
- /**
1004
- * The duration for the transition, in milliseconds.
1005
- * You may specify a single timeout for all transitions, or individually with an object.
1006
- */
1007
- transitionDuration: e.oneOfType([e.number, e.shape({
1008
- appear: e.number,
1009
- enter: e.number,
1010
- exit: e.number
1011
- })])
1012
- });
1013
- const To = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "slotProps", "slots", "theme"], xo = se("div", {
1014
- name: "MuiModal",
1015
- slot: "Root",
1016
- overridesResolver: (o, n) => {
1017
- const {
1018
- ownerState: r
1019
- } = o;
1020
- return [n.root, !r.open && r.exited && n.hidden];
1021
- }
1022
- })(({
1023
- theme: o,
1024
- ownerState: n
1025
- }) => b({
1026
- position: "fixed",
1027
- zIndex: (o.vars || o).zIndex.modal,
1028
- right: 0,
1029
- bottom: 0,
1030
- top: 0,
1031
- left: 0
1032
- }, !n.open && n.exited && {
1033
- visibility: "hidden"
1034
- })), ko = se(we, {
1035
- name: "MuiModal",
1036
- slot: "Backdrop",
1037
- overridesResolver: (o, n) => n.backdrop
1038
- })({
1039
- zIndex: -1
1040
- }), Po = /* @__PURE__ */ a.forwardRef(function(n, r) {
1041
- var t, i, s, l, c, u;
1042
- const f = xe({
1043
- name: "MuiModal",
1044
- props: n
1045
- }), {
1046
- BackdropComponent: T = ko,
1047
- BackdropProps: y,
1048
- classes: h,
1049
- className: x,
1050
- closeAfterTransition: m = !1,
1051
- children: R,
1052
- component: N,
1053
- components: k = {},
1054
- componentsProps: w = {},
1055
- disableAutoFocus: d = !1,
1056
- disableEnforceFocus: g = !1,
1057
- disableEscapeKeyDown: E = !1,
1058
- disablePortal: C = !1,
1059
- disableRestoreFocus: O = !1,
1060
- disableScrollLock: I = !1,
1061
- hideBackdrop: D = !1,
1062
- keepMounted: L = !1,
1063
- slotProps: P,
1064
- slots: F,
1065
- // eslint-disable-next-line react/prop-types
1066
- theme: B
1067
- } = f, p = q(f, To), [v, A] = a.useState(!0), j = {
1068
- closeAfterTransition: m,
1069
- disableAutoFocus: d,
1070
- disableEnforceFocus: g,
1071
- disableEscapeKeyDown: E,
1072
- disablePortal: C,
1073
- disableRestoreFocus: O,
1074
- disableScrollLock: I,
1075
- hideBackdrop: D,
1076
- keepMounted: L
1077
- }, _ = b({}, f, j, {
1078
- exited: v
1079
- }), Y = (t = (i = F == null ? void 0 : F.root) != null ? i : k.Root) != null ? t : xo, $ = (s = (l = F == null ? void 0 : F.backdrop) != null ? l : k.Backdrop) != null ? s : T, U = (c = P == null ? void 0 : P.root) != null ? c : w.root, K = (u = P == null ? void 0 : P.backdrop) != null ? u : w.backdrop;
1080
- return /* @__PURE__ */ M(Ce, b({
1081
- slots: {
1082
- root: Y,
1083
- backdrop: $
1084
- },
1085
- slotProps: {
1086
- root: () => b({}, re(U, _), !Ne(Y) && {
1087
- as: N,
1088
- theme: B
1089
- }, {
1090
- className: te(x, U == null ? void 0 : U.className, h == null ? void 0 : h.root, !_.open && _.exited && (h == null ? void 0 : h.hidden))
1091
- }),
1092
- backdrop: () => b({}, y, re(K, _), {
1093
- className: te(K == null ? void 0 : K.className, h == null ? void 0 : h.backdrop)
1094
- })
1095
- },
1096
- onTransitionEnter: () => A(!1),
1097
- onTransitionExited: () => A(!0),
1098
- ref: r
1099
- }, p, j, {
1100
- children: R
1101
- }));
1102
- });
1103
- process.env.NODE_ENV !== "production" && (Po.propTypes = {
1104
- // ----------------------------- Warning --------------------------------
1105
- // | These PropTypes are generated from the TypeScript type definitions |
1106
- // | To update them edit the d.ts file and run "yarn proptypes" |
1107
- // ----------------------------------------------------------------------
1108
- /**
1109
- * A backdrop component. This prop enables custom backdrop rendering.
1110
- * @deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.
1111
- * Use the `slots.backdrop` prop to make your application ready for the next version of Material UI.
1112
- * @default styled(Backdrop, {
1113
- * name: 'MuiModal',
1114
- * slot: 'Backdrop',
1115
- * overridesResolver: (props, styles) => {
1116
- * return styles.backdrop;
1117
- * },
1118
- * })({
1119
- * zIndex: -1,
1120
- * })
1121
- */
1122
- BackdropComponent: e.elementType,
1123
- /**
1124
- * Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element.
1125
- * @deprecated Use `slotProps.backdrop` instead.
1126
- */
1127
- BackdropProps: e.object,
1128
- /**
1129
- * A single child content element.
1130
- */
1131
- children: J.isRequired,
1132
- /**
1133
- * Override or extend the styles applied to the component.
1134
- */
1135
- classes: e.object,
1136
- /**
1137
- * @ignore
1138
- */
1139
- className: e.string,
1140
- /**
1141
- * When set to true the Modal waits until a nested Transition is completed before closing.
1142
- * @default false
1143
- */
1144
- closeAfterTransition: e.bool,
1145
- /**
1146
- * The component used for the root node.
1147
- * Either a string to use a HTML element or a component.
1148
- */
1149
- component: e.elementType,
1150
- /**
1151
- * The components used for each slot inside.
1152
- *
1153
- * This prop is an alias for the `slots` prop.
1154
- * It's recommended to use the `slots` prop instead.
1155
- *
1156
- * @default {}
1157
- */
1158
- components: e.shape({
1159
- Backdrop: e.elementType,
1160
- Root: e.elementType
1161
- }),
1162
- /**
1163
- * The extra props for the slot components.
1164
- * You can override the existing props or add new ones.
1165
- *
1166
- * This prop is an alias for the `slotProps` prop.
1167
- * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
1168
- *
1169
- * @default {}
1170
- */
1171
- componentsProps: e.shape({
1172
- backdrop: e.oneOfType([e.func, e.object]),
1173
- root: e.oneOfType([e.func, e.object])
1174
- }),
1175
- /**
1176
- * An HTML element or function that returns one.
1177
- * The `container` will have the portal children appended to it.
1178
- *
1179
- * By default, it uses the body of the top-level document object,
1180
- * so it's simply `document.body` most of the time.
1181
- */
1182
- container: e.oneOfType([le, e.func]),
1183
- /**
1184
- * If `true`, the modal will not automatically shift focus to itself when it opens, and
1185
- * replace it to the last focused element when it closes.
1186
- * This also works correctly with any modal children that have the `disableAutoFocus` prop.
1187
- *
1188
- * Generally this should never be set to `true` as it makes the modal less
1189
- * accessible to assistive technologies, like screen readers.
1190
- * @default false
1191
- */
1192
- disableAutoFocus: e.bool,
1193
- /**
1194
- * If `true`, the modal will not prevent focus from leaving the modal while open.
1195
- *
1196
- * Generally this should never be set to `true` as it makes the modal less
1197
- * accessible to assistive technologies, like screen readers.
1198
- * @default false
1199
- */
1200
- disableEnforceFocus: e.bool,
1201
- /**
1202
- * If `true`, hitting escape will not fire the `onClose` callback.
1203
- * @default false
1204
- */
1205
- disableEscapeKeyDown: e.bool,
1206
- /**
1207
- * The `children` will be under the DOM hierarchy of the parent component.
1208
- * @default false
1209
- */
1210
- disablePortal: e.bool,
1211
- /**
1212
- * If `true`, the modal will not restore focus to previously focused element once
1213
- * modal is hidden or unmounted.
1214
- * @default false
1215
- */
1216
- disableRestoreFocus: e.bool,
1217
- /**
1218
- * Disable the scroll lock behavior.
1219
- * @default false
1220
- */
1221
- disableScrollLock: e.bool,
1222
- /**
1223
- * If `true`, the backdrop is not rendered.
1224
- * @default false
1225
- */
1226
- hideBackdrop: e.bool,
1227
- /**
1228
- * Always keep the children in the DOM.
1229
- * This prop can be useful in SEO situation or
1230
- * when you want to maximize the responsiveness of the Modal.
1231
- * @default false
1232
- */
1233
- keepMounted: e.bool,
1234
- /**
1235
- * Callback fired when the backdrop is clicked.
1236
- * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
1237
- */
1238
- onBackdropClick: e.func,
1239
- /**
1240
- * Callback fired when the component requests to be closed.
1241
- * The `reason` parameter can optionally be used to control the response to `onClose`.
1242
- *
1243
- * @param {object} event The event source of the callback.
1244
- * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
1245
- */
1246
- onClose: e.func,
1247
- /**
1248
- * If `true`, the component is shown.
1249
- */
1250
- open: e.bool.isRequired,
1251
- /**
1252
- * The props used for each slot inside the Modal.
1253
- * @default {}
1254
- */
1255
- slotProps: e.shape({
1256
- backdrop: e.oneOfType([e.func, e.object]),
1257
- root: e.oneOfType([e.func, e.object])
1258
- }),
1259
- /**
1260
- * The components used for each slot inside the Modal.
1261
- * Either a string to use a HTML element or a component.
1262
- * @default {}
1263
- */
1264
- slots: e.shape({
1265
- backdrop: e.elementType,
1266
- root: e.elementType
1267
- }),
1268
- /**
1269
- * The system prop that allows defining system overrides as well as additional CSS styles.
1270
- */
1271
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
1272
- });
1273
- export {
1274
- we as B,
1275
- Oe as F,
1276
- le as H,
1277
- Po as M,
1278
- X as P,
1279
- We as a,
1280
- Z as b,
1281
- ze as g,
1282
- re as r,
1283
- ye as u
1284
- };