@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,789 +0,0 @@
1
- import { _ as se, a as b } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
2
- import * as d from "react";
3
- import { r as Ke } from "./createStyled-BGx1I94c.js";
4
- import { P as l } from "./index-DMSHuq6l.js";
5
- import { g as Be, u as Ee, c as L, a as Me } from "./useThemeProps-DRP1dikX.js";
6
- import { s as O } from "./styled-B8ugzvji.js";
7
- import { u as Ne } from "./useTheme-D-uii9iX.js";
8
- import { jsx as y, jsxs as ve } from "react/jsx-runtime";
9
- import { o as Re } from "./ownerWindow-niciwP7I.js";
10
- import { d as ne } from "./debounce-46wSf_lW.js";
11
- import { g as ze } from "./createTheme-CNnKNxwL.js";
12
- import { B as qe, b as re, r as Ge } from "./ButtonBase-DsX-jMQJ.js";
13
- import { c as Ie } from "./createSvgIcon-OuwzpcaC.js";
14
- import { o as Je } from "./ownerDocument-CUrv0DIK.js";
15
- let I;
16
- function Le() {
17
- if (I)
18
- return I;
19
- const e = document.createElement("div"), t = document.createElement("div");
20
- return t.style.width = "10px", t.style.height = "1px", e.appendChild(t), e.dir = "rtl", e.style.fontSize = "14px", e.style.width = "4px", e.style.height = "1px", e.style.position = "absolute", e.style.top = "-1000px", e.style.overflow = "scroll", document.body.appendChild(e), I = "reverse", e.scrollLeft > 0 ? I = "default" : (e.scrollLeft = 1, e.scrollLeft === 0 && (I = "negative")), document.body.removeChild(e), I;
21
- }
22
- function Se(e, t) {
23
- const s = e.scrollLeft;
24
- if (t !== "rtl")
25
- return s;
26
- switch (Le()) {
27
- case "negative":
28
- return e.scrollWidth - e.clientWidth + s;
29
- case "reverse":
30
- return e.scrollWidth - e.clientWidth - s;
31
- default:
32
- return s;
33
- }
34
- }
35
- function Qe(e) {
36
- return (1 + Math.sin(Math.PI * e - Math.PI / 2)) / 2;
37
- }
38
- function Ze(e, t, s, c = {}, a = () => {
39
- }) {
40
- const {
41
- ease: u = Qe,
42
- duration: p = 300
43
- // standard
44
- } = c;
45
- let m = null;
46
- const v = t[e];
47
- let w = !1;
48
- const M = () => {
49
- w = !0;
50
- }, _ = (W) => {
51
- if (w) {
52
- a(new Error("Animation cancelled"));
53
- return;
54
- }
55
- m === null && (m = W);
56
- const k = Math.min(1, (W - m) / p);
57
- if (t[e] = u(k) * (s - v) + v, k >= 1) {
58
- requestAnimationFrame(() => {
59
- a(null);
60
- });
61
- return;
62
- }
63
- requestAnimationFrame(_);
64
- };
65
- return v === s ? (a(new Error("Element already at target position")), M) : (requestAnimationFrame(_), M);
66
- }
67
- const et = ["onChange"], tt = {
68
- width: 99,
69
- height: 99,
70
- position: "absolute",
71
- top: -9999,
72
- overflow: "scroll"
73
- };
74
- function Oe(e) {
75
- const {
76
- onChange: t
77
- } = e, s = se(e, et), c = d.useRef(), a = d.useRef(null), u = () => {
78
- c.current = a.current.offsetHeight - a.current.clientHeight;
79
- };
80
- return d.useEffect(() => {
81
- const p = ne(() => {
82
- const v = c.current;
83
- u(), v !== c.current && t(c.current);
84
- }), m = Re(a.current);
85
- return m.addEventListener("resize", p), () => {
86
- p.clear(), m.removeEventListener("resize", p);
87
- };
88
- }, [t]), d.useEffect(() => {
89
- u(), t(c.current);
90
- }, [t]), /* @__PURE__ */ y("div", b({
91
- style: tt,
92
- ref: a
93
- }, s));
94
- }
95
- process.env.NODE_ENV !== "production" && (Oe.propTypes = {
96
- onChange: l.func.isRequired
97
- });
98
- const ot = Ie(/* @__PURE__ */ y("path", {
99
- d: "M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"
100
- }), "KeyboardArrowLeft"), rt = Ie(/* @__PURE__ */ y("path", {
101
- d: "M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"
102
- }), "KeyboardArrowRight");
103
- function lt(e) {
104
- return ze("MuiTabScrollButton", e);
105
- }
106
- const nt = Be("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled"]);
107
- var ye, ge;
108
- const st = ["className", "direction", "orientation", "disabled"], it = (e) => {
109
- const {
110
- classes: t,
111
- orientation: s,
112
- disabled: c
113
- } = e;
114
- return Me({
115
- root: ["root", s, c && "disabled"]
116
- }, lt, t);
117
- }, at = O(qe, {
118
- name: "MuiTabScrollButton",
119
- slot: "Root",
120
- overridesResolver: (e, t) => {
121
- const {
122
- ownerState: s
123
- } = e;
124
- return [t.root, s.orientation && t[s.orientation]];
125
- }
126
- })(({
127
- ownerState: e
128
- }) => b({
129
- width: 40,
130
- flexShrink: 0,
131
- opacity: 0.8,
132
- [`&.${nt.disabled}`]: {
133
- opacity: 0
134
- }
135
- }, e.orientation === "vertical" && {
136
- width: "100%",
137
- height: 40,
138
- "& svg": {
139
- transform: `rotate(${e.isRtl ? -90 : 90}deg)`
140
- }
141
- })), We = /* @__PURE__ */ d.forwardRef(function(t, s) {
142
- const c = Ee({
143
- props: t,
144
- name: "MuiTabScrollButton"
145
- }), {
146
- className: a,
147
- direction: u
148
- } = c, p = se(c, st), v = Ne().direction === "rtl", w = b({
149
- isRtl: v
150
- }, c), M = it(w);
151
- return /* @__PURE__ */ y(at, b({
152
- component: "div",
153
- className: L(M.root, a),
154
- ref: s,
155
- role: null,
156
- ownerState: w,
157
- tabIndex: null
158
- }, p, {
159
- children: u === "left" ? ye || (ye = /* @__PURE__ */ y(ot, {
160
- fontSize: "small"
161
- })) : ge || (ge = /* @__PURE__ */ y(rt, {
162
- fontSize: "small"
163
- }))
164
- }));
165
- });
166
- process.env.NODE_ENV !== "production" && (We.propTypes = {
167
- // ----------------------------- Warning --------------------------------
168
- // | These PropTypes are generated from the TypeScript type definitions |
169
- // | To update them edit the d.ts file and run "yarn proptypes" |
170
- // ----------------------------------------------------------------------
171
- /**
172
- * The content of the component.
173
- */
174
- children: l.node,
175
- /**
176
- * Override or extend the styles applied to the component.
177
- */
178
- classes: l.object,
179
- /**
180
- * @ignore
181
- */
182
- className: l.string,
183
- /**
184
- * The direction the button should indicate.
185
- */
186
- direction: l.oneOf(["left", "right"]).isRequired,
187
- /**
188
- * If `true`, the component is disabled.
189
- * @default false
190
- */
191
- disabled: l.bool,
192
- /**
193
- * The component orientation (layout flow direction).
194
- */
195
- orientation: l.oneOf(["horizontal", "vertical"]).isRequired,
196
- /**
197
- * The system prop that allows defining system overrides as well as additional CSS styles.
198
- */
199
- sx: l.oneOfType([l.arrayOf(l.oneOfType([l.func, l.object, l.bool])), l.func, l.object])
200
- });
201
- function ct(e) {
202
- return ze("MuiTabs", e);
203
- }
204
- const le = Be("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVertical", "centered", "scroller", "fixed", "scrollableX", "scrollableY", "hideScrollbar", "scrollButtons", "scrollButtonsHideMobile", "indicator"]), dt = ["aria-label", "aria-labelledby", "action", "centered", "children", "className", "component", "allowScrollButtonsMobile", "indicatorColor", "onChange", "orientation", "ScrollButtonComponent", "scrollButtons", "selectionFollowsFocus", "TabIndicatorProps", "TabScrollButtonProps", "textColor", "value", "variant", "visibleScrollbar"], we = (e, t) => e === t ? e.firstChild : t && t.nextElementSibling ? t.nextElementSibling : e.firstChild, Te = (e, t) => e === t ? e.lastChild : t && t.previousElementSibling ? t.previousElementSibling : e.lastChild, q = (e, t, s) => {
205
- let c = !1, a = s(e, t);
206
- for (; a; ) {
207
- if (a === e.firstChild) {
208
- if (c)
209
- return;
210
- c = !0;
211
- }
212
- const u = a.disabled || a.getAttribute("aria-disabled") === "true";
213
- if (!a.hasAttribute("tabindex") || u)
214
- a = s(e, a);
215
- else {
216
- a.focus();
217
- return;
218
- }
219
- }
220
- }, ut = (e) => {
221
- const {
222
- vertical: t,
223
- fixed: s,
224
- hideScrollbar: c,
225
- scrollableX: a,
226
- scrollableY: u,
227
- centered: p,
228
- scrollButtonsHideMobile: m,
229
- classes: v
230
- } = e;
231
- return Me({
232
- root: ["root", t && "vertical"],
233
- scroller: ["scroller", s && "fixed", c && "hideScrollbar", a && "scrollableX", u && "scrollableY"],
234
- flexContainer: ["flexContainer", t && "flexContainerVertical", p && "centered"],
235
- indicator: ["indicator"],
236
- scrollButtons: ["scrollButtons", m && "scrollButtonsHideMobile"],
237
- scrollableX: [a && "scrollableX"],
238
- hideScrollbar: [c && "hideScrollbar"]
239
- }, ct, v);
240
- }, ft = O("div", {
241
- name: "MuiTabs",
242
- slot: "Root",
243
- overridesResolver: (e, t) => {
244
- const {
245
- ownerState: s
246
- } = e;
247
- return [{
248
- [`& .${le.scrollButtons}`]: t.scrollButtons
249
- }, {
250
- [`& .${le.scrollButtons}`]: s.scrollButtonsHideMobile && t.scrollButtonsHideMobile
251
- }, t.root, s.vertical && t.vertical];
252
- }
253
- })(({
254
- ownerState: e,
255
- theme: t
256
- }) => b({
257
- overflow: "hidden",
258
- minHeight: 48,
259
- // Add iOS momentum scrolling for iOS < 13.0
260
- WebkitOverflowScrolling: "touch",
261
- display: "flex"
262
- }, e.vertical && {
263
- flexDirection: "column"
264
- }, e.scrollButtonsHideMobile && {
265
- [`& .${le.scrollButtons}`]: {
266
- [t.breakpoints.down("sm")]: {
267
- display: "none"
268
- }
269
- }
270
- })), bt = O("div", {
271
- name: "MuiTabs",
272
- slot: "Scroller",
273
- overridesResolver: (e, t) => {
274
- const {
275
- ownerState: s
276
- } = e;
277
- return [t.scroller, s.fixed && t.fixed, s.hideScrollbar && t.hideScrollbar, s.scrollableX && t.scrollableX, s.scrollableY && t.scrollableY];
278
- }
279
- })(({
280
- ownerState: e
281
- }) => b({
282
- position: "relative",
283
- display: "inline-block",
284
- flex: "1 1 auto",
285
- whiteSpace: "nowrap"
286
- }, e.fixed && {
287
- overflowX: "hidden",
288
- width: "100%"
289
- }, e.hideScrollbar && {
290
- // Hide dimensionless scrollbar on macOS
291
- scrollbarWidth: "none",
292
- // Firefox
293
- "&::-webkit-scrollbar": {
294
- display: "none"
295
- // Safari + Chrome
296
- }
297
- }, e.scrollableX && {
298
- overflowX: "auto",
299
- overflowY: "hidden"
300
- }, e.scrollableY && {
301
- overflowY: "auto",
302
- overflowX: "hidden"
303
- })), ht = O("div", {
304
- name: "MuiTabs",
305
- slot: "FlexContainer",
306
- overridesResolver: (e, t) => {
307
- const {
308
- ownerState: s
309
- } = e;
310
- return [t.flexContainer, s.vertical && t.flexContainerVertical, s.centered && t.centered];
311
- }
312
- })(({
313
- ownerState: e
314
- }) => b({
315
- display: "flex"
316
- }, e.vertical && {
317
- flexDirection: "column"
318
- }, e.centered && {
319
- justifyContent: "center"
320
- })), pt = O("span", {
321
- name: "MuiTabs",
322
- slot: "Indicator",
323
- overridesResolver: (e, t) => t.indicator
324
- })(({
325
- ownerState: e,
326
- theme: t
327
- }) => b({
328
- position: "absolute",
329
- height: 2,
330
- bottom: 0,
331
- width: "100%",
332
- transition: t.transitions.create()
333
- }, e.indicatorColor === "primary" && {
334
- backgroundColor: (t.vars || t).palette.primary.main
335
- }, e.indicatorColor === "secondary" && {
336
- backgroundColor: (t.vars || t).palette.secondary.main
337
- }, e.vertical && {
338
- height: "100%",
339
- width: 2,
340
- right: 0
341
- })), mt = O(Oe, {
342
- name: "MuiTabs",
343
- slot: "ScrollbarSize"
344
- })({
345
- overflowX: "auto",
346
- overflowY: "hidden",
347
- // Hide dimensionless scrollbar on macOS
348
- scrollbarWidth: "none",
349
- // Firefox
350
- "&::-webkit-scrollbar": {
351
- display: "none"
352
- // Safari + Chrome
353
- }
354
- }), Ce = {};
355
- let xe = !1;
356
- const vt = /* @__PURE__ */ d.forwardRef(function(t, s) {
357
- const c = Ee({
358
- props: t,
359
- name: "MuiTabs"
360
- }), a = Ne(), u = a.direction === "rtl", {
361
- "aria-label": p,
362
- "aria-labelledby": m,
363
- action: v,
364
- centered: w = !1,
365
- children: M,
366
- className: _,
367
- component: W = "div",
368
- allowScrollButtonsMobile: k = !1,
369
- indicatorColor: ke = "primary",
370
- onChange: Ae,
371
- orientation: C = "horizontal",
372
- ScrollButtonComponent: ie = We,
373
- scrollButtons: V = "auto",
374
- selectionFollowsFocus: De,
375
- TabIndicatorProps: G = {},
376
- TabScrollButtonProps: P = {},
377
- textColor: ae = "primary",
378
- value: N,
379
- variant: J = "standard",
380
- visibleScrollbar: Q = !1
381
- } = c, He = se(c, dt), T = J === "scrollable", h = C === "vertical", A = h ? "scrollTop" : "scrollLeft", X = h ? "top" : "left", Y = h ? "bottom" : "right", Z = h ? "clientHeight" : "clientWidth", D = h ? "height" : "width", H = b({}, c, {
382
- component: W,
383
- allowScrollButtonsMobile: k,
384
- indicatorColor: ke,
385
- orientation: C,
386
- vertical: h,
387
- scrollButtons: V,
388
- textColor: ae,
389
- variant: J,
390
- visibleScrollbar: Q,
391
- fixed: !T,
392
- hideScrollbar: T && !Q,
393
- scrollableX: T && !h,
394
- scrollableY: T && h,
395
- centered: w && !T,
396
- scrollButtonsHideMobile: !k
397
- }), x = ut(H);
398
- process.env.NODE_ENV !== "production" && w && T && console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');
399
- const [ce, je] = d.useState(!1), [B, de] = d.useState(Ce), [R, Fe] = d.useState({
400
- start: !1,
401
- end: !1
402
- }), [ue, _e] = d.useState({
403
- overflow: "hidden",
404
- scrollbarWidth: 0
405
- }), $ = /* @__PURE__ */ new Map(), g = d.useRef(null), j = d.useRef(null), fe = () => {
406
- const o = g.current;
407
- let r;
408
- if (o) {
409
- const i = o.getBoundingClientRect();
410
- r = {
411
- clientWidth: o.clientWidth,
412
- scrollLeft: o.scrollLeft,
413
- scrollTop: o.scrollTop,
414
- scrollLeftNormalized: Se(o, a.direction),
415
- scrollWidth: o.scrollWidth,
416
- top: i.top,
417
- bottom: i.bottom,
418
- left: i.left,
419
- right: i.right
420
- };
421
- }
422
- let n;
423
- if (o && N !== !1) {
424
- const i = j.current.children;
425
- if (i.length > 0) {
426
- const f = i[$.get(N)];
427
- process.env.NODE_ENV !== "production" && (f || console.error(["MUI: The `value` provided to the Tabs component is invalid.", `None of the Tabs' children match with "${N}".`, $.keys ? `You can provide one of the following values: ${Array.from($.keys()).join(", ")}.` : null].join(`
428
- `))), n = f ? f.getBoundingClientRect() : null, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && !xe && n && n.width === 0 && n.height === 0 && // if the whole Tabs component is hidden, don't warn
429
- r.clientWidth !== 0 && (r = null, console.error(["MUI: The `value` provided to the Tabs component is invalid.", `The Tab with this \`value\` ("${N}") is not part of the document layout.`, "Make sure the tab item is present in the document or that it's not `display: none`."].join(`
430
- `)), xe = !0);
431
- }
432
- }
433
- return {
434
- tabsMeta: r,
435
- tabMeta: n
436
- };
437
- }, F = re(() => {
438
- const {
439
- tabsMeta: o,
440
- tabMeta: r
441
- } = fe();
442
- let n = 0, i;
443
- if (h)
444
- i = "top", r && o && (n = r.top - o.top + o.scrollTop);
445
- else if (i = u ? "right" : "left", r && o) {
446
- const S = u ? o.scrollLeftNormalized + o.clientWidth - o.scrollWidth : o.scrollLeft;
447
- n = (u ? -1 : 1) * (r[i] - o[i] + S);
448
- }
449
- const f = {
450
- [i]: n,
451
- // May be wrong until the font is loaded.
452
- [D]: r ? r[D] : 0
453
- };
454
- if (isNaN(B[i]) || isNaN(B[D]))
455
- de(f);
456
- else {
457
- const S = Math.abs(B[i] - f[i]), z = Math.abs(B[D] - f[D]);
458
- (S >= 1 || z >= 1) && de(f);
459
- }
460
- }), ee = (o, {
461
- animation: r = !0
462
- } = {}) => {
463
- r ? Ze(A, g.current, o, {
464
- duration: a.transitions.duration.standard
465
- }) : g.current[A] = o;
466
- }, be = (o) => {
467
- let r = g.current[A];
468
- h ? r += o : (r += o * (u ? -1 : 1), r *= u && Le() === "reverse" ? -1 : 1), ee(r);
469
- }, he = () => {
470
- const o = g.current[Z];
471
- let r = 0;
472
- const n = Array.from(j.current.children);
473
- for (let i = 0; i < n.length; i += 1) {
474
- const f = n[i];
475
- if (r + f[Z] > o) {
476
- i === 0 && (r = o);
477
- break;
478
- }
479
- r += f[Z];
480
- }
481
- return r;
482
- }, Ve = () => {
483
- be(-1 * he());
484
- }, Pe = () => {
485
- be(he());
486
- }, Xe = d.useCallback((o) => {
487
- _e({
488
- overflow: null,
489
- scrollbarWidth: o
490
- });
491
- }, []), Ye = () => {
492
- const o = {};
493
- o.scrollbarSizeListener = T ? /* @__PURE__ */ y(mt, {
494
- onChange: Xe,
495
- className: L(x.scrollableX, x.hideScrollbar)
496
- }) : null;
497
- const r = R.start || R.end, n = T && (V === "auto" && r || V === !0);
498
- return o.scrollButtonStart = n ? /* @__PURE__ */ y(ie, b({
499
- orientation: C,
500
- direction: u ? "right" : "left",
501
- onClick: Ve,
502
- disabled: !R.start
503
- }, P, {
504
- className: L(x.scrollButtons, P.className)
505
- })) : null, o.scrollButtonEnd = n ? /* @__PURE__ */ y(ie, b({
506
- orientation: C,
507
- direction: u ? "left" : "right",
508
- onClick: Pe,
509
- disabled: !R.end
510
- }, P, {
511
- className: L(x.scrollButtons, P.className)
512
- })) : null, o;
513
- }, pe = re((o) => {
514
- const {
515
- tabsMeta: r,
516
- tabMeta: n
517
- } = fe();
518
- if (!(!n || !r)) {
519
- if (n[X] < r[X]) {
520
- const i = r[A] + (n[X] - r[X]);
521
- ee(i, {
522
- animation: o
523
- });
524
- } else if (n[Y] > r[Y]) {
525
- const i = r[A] + (n[Y] - r[Y]);
526
- ee(i, {
527
- animation: o
528
- });
529
- }
530
- }
531
- }), E = re(() => {
532
- if (T && V !== !1) {
533
- const {
534
- scrollTop: o,
535
- scrollHeight: r,
536
- clientHeight: n,
537
- scrollWidth: i,
538
- clientWidth: f
539
- } = g.current;
540
- let S, z;
541
- if (h)
542
- S = o > 1, z = o < r - n - 1;
543
- else {
544
- const K = Se(g.current, a.direction);
545
- S = u ? K < i - f - 1 : K > 1, z = u ? K > 1 : K < i - f - 1;
546
- }
547
- (S !== R.start || z !== R.end) && Fe({
548
- start: S,
549
- end: z
550
- });
551
- }
552
- });
553
- d.useEffect(() => {
554
- const o = ne(() => {
555
- g.current && (F(), E());
556
- }), r = Re(g.current);
557
- r.addEventListener("resize", o);
558
- let n;
559
- return typeof ResizeObserver < "u" && (n = new ResizeObserver(o), Array.from(j.current.children).forEach((i) => {
560
- n.observe(i);
561
- })), () => {
562
- o.clear(), r.removeEventListener("resize", o), n && n.disconnect();
563
- };
564
- }, [F, E]);
565
- const te = d.useMemo(() => ne(() => {
566
- E();
567
- }), [E]);
568
- d.useEffect(() => () => {
569
- te.clear();
570
- }, [te]), d.useEffect(() => {
571
- je(!0);
572
- }, []), d.useEffect(() => {
573
- F(), E();
574
- }), d.useEffect(() => {
575
- pe(Ce !== B);
576
- }, [pe, B]), d.useImperativeHandle(v, () => ({
577
- updateIndicator: F,
578
- updateScrollButtons: E
579
- }), [F, E]);
580
- const me = /* @__PURE__ */ y(pt, b({}, G, {
581
- className: L(x.indicator, G.className),
582
- ownerState: H,
583
- style: b({}, B, G.style)
584
- }));
585
- let U = 0;
586
- const $e = d.Children.map(M, (o) => {
587
- if (!/* @__PURE__ */ d.isValidElement(o))
588
- return null;
589
- process.env.NODE_ENV !== "production" && Ke.isFragment(o) && console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
590
- `));
591
- const r = o.props.value === void 0 ? U : o.props.value;
592
- $.set(r, U);
593
- const n = r === N;
594
- return U += 1, /* @__PURE__ */ d.cloneElement(o, b({
595
- fullWidth: J === "fullWidth",
596
- indicator: n && !ce && me,
597
- selected: n,
598
- selectionFollowsFocus: De,
599
- onChange: Ae,
600
- textColor: ae,
601
- value: r
602
- }, U === 1 && N === !1 && !o.props.tabIndex ? {
603
- tabIndex: 0
604
- } : {}));
605
- }), Ue = (o) => {
606
- const r = j.current, n = Je(r).activeElement;
607
- if (n.getAttribute("role") !== "tab")
608
- return;
609
- let f = C === "horizontal" ? "ArrowLeft" : "ArrowUp", S = C === "horizontal" ? "ArrowRight" : "ArrowDown";
610
- switch (C === "horizontal" && u && (f = "ArrowRight", S = "ArrowLeft"), o.key) {
611
- case f:
612
- o.preventDefault(), q(r, n, Te);
613
- break;
614
- case S:
615
- o.preventDefault(), q(r, n, we);
616
- break;
617
- case "Home":
618
- o.preventDefault(), q(r, null, we);
619
- break;
620
- case "End":
621
- o.preventDefault(), q(r, null, Te);
622
- break;
623
- }
624
- }, oe = Ye();
625
- return /* @__PURE__ */ ve(ft, b({
626
- className: L(x.root, _),
627
- ownerState: H,
628
- ref: s,
629
- as: W
630
- }, He, {
631
- children: [oe.scrollButtonStart, oe.scrollbarSizeListener, /* @__PURE__ */ ve(bt, {
632
- className: x.scroller,
633
- ownerState: H,
634
- style: {
635
- overflow: ue.overflow,
636
- [h ? `margin${u ? "Left" : "Right"}` : "marginBottom"]: Q ? void 0 : -ue.scrollbarWidth
637
- },
638
- ref: g,
639
- onScroll: te,
640
- children: [/* @__PURE__ */ y(ht, {
641
- "aria-label": p,
642
- "aria-labelledby": m,
643
- "aria-orientation": C === "vertical" ? "vertical" : null,
644
- className: x.flexContainer,
645
- ownerState: H,
646
- onKeyDown: Ue,
647
- ref: j,
648
- role: "tablist",
649
- children: $e
650
- }), ce && me]
651
- }), oe.scrollButtonEnd]
652
- }));
653
- });
654
- process.env.NODE_ENV !== "production" && (vt.propTypes = {
655
- // ----------------------------- Warning --------------------------------
656
- // | These PropTypes are generated from the TypeScript type definitions |
657
- // | To update them edit the d.ts file and run "yarn proptypes" |
658
- // ----------------------------------------------------------------------
659
- /**
660
- * Callback fired when the component mounts.
661
- * This is useful when you want to trigger an action programmatically.
662
- * It supports two actions: `updateIndicator()` and `updateScrollButtons()`
663
- *
664
- * @param {object} actions This object contains all possible actions
665
- * that can be triggered programmatically.
666
- */
667
- action: Ge,
668
- /**
669
- * If `true`, the scroll buttons aren't forced hidden on mobile.
670
- * By default the scroll buttons are hidden on mobile and takes precedence over `scrollButtons`.
671
- * @default false
672
- */
673
- allowScrollButtonsMobile: l.bool,
674
- /**
675
- * The label for the Tabs as a string.
676
- */
677
- "aria-label": l.string,
678
- /**
679
- * An id or list of ids separated by a space that label the Tabs.
680
- */
681
- "aria-labelledby": l.string,
682
- /**
683
- * If `true`, the tabs are centered.
684
- * This prop is intended for large views.
685
- * @default false
686
- */
687
- centered: l.bool,
688
- /**
689
- * The content of the component.
690
- */
691
- children: l.node,
692
- /**
693
- * Override or extend the styles applied to the component.
694
- */
695
- classes: l.object,
696
- /**
697
- * @ignore
698
- */
699
- className: l.string,
700
- /**
701
- * The component used for the root node.
702
- * Either a string to use a HTML element or a component.
703
- */
704
- component: l.elementType,
705
- /**
706
- * Determines the color of the indicator.
707
- * @default 'primary'
708
- */
709
- indicatorColor: l.oneOfType([l.oneOf(["primary", "secondary"]), l.string]),
710
- /**
711
- * Callback fired when the value changes.
712
- *
713
- * @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.
714
- * @param {any} value We default to the index of the child (number)
715
- */
716
- onChange: l.func,
717
- /**
718
- * The component orientation (layout flow direction).
719
- * @default 'horizontal'
720
- */
721
- orientation: l.oneOf(["horizontal", "vertical"]),
722
- /**
723
- * The component used to render the scroll buttons.
724
- * @default TabScrollButton
725
- */
726
- ScrollButtonComponent: l.elementType,
727
- /**
728
- * Determine behavior of scroll buttons when tabs are set to scroll:
729
- *
730
- * - `auto` will only present them when not all the items are visible.
731
- * - `true` will always present them.
732
- * - `false` will never present them.
733
- *
734
- * By default the scroll buttons are hidden on mobile.
735
- * This behavior can be disabled with `allowScrollButtonsMobile`.
736
- * @default 'auto'
737
- */
738
- scrollButtons: l.oneOf(["auto", !1, !0]),
739
- /**
740
- * If `true` the selected tab changes on focus. Otherwise it only
741
- * changes on activation.
742
- */
743
- selectionFollowsFocus: l.bool,
744
- /**
745
- * The system prop that allows defining system overrides as well as additional CSS styles.
746
- */
747
- sx: l.oneOfType([l.arrayOf(l.oneOfType([l.func, l.object, l.bool])), l.func, l.object]),
748
- /**
749
- * Props applied to the tab indicator element.
750
- * @default {}
751
- */
752
- TabIndicatorProps: l.object,
753
- /**
754
- * Props applied to the [`TabScrollButton`](/material-ui/api/tab-scroll-button/) element.
755
- * @default {}
756
- */
757
- TabScrollButtonProps: l.object,
758
- /**
759
- * Determines the color of the `Tab`.
760
- * @default 'primary'
761
- */
762
- textColor: l.oneOf(["inherit", "primary", "secondary"]),
763
- /**
764
- * The value of the currently selected `Tab`.
765
- * If you don't want any selected `Tab`, you can set this prop to `false`.
766
- */
767
- value: l.any,
768
- /**
769
- * Determines additional display behavior of the tabs:
770
- *
771
- * - `scrollable` will invoke scrolling properties and allow for horizontally
772
- * scrolling (or swiping) of the tab bar.
773
- * -`fullWidth` will make the tabs grow to use all the available space,
774
- * which should be used for small views, like on mobile.
775
- * - `standard` will render the default state.
776
- * @default 'standard'
777
- */
778
- variant: l.oneOf(["fullWidth", "scrollable", "standard"]),
779
- /**
780
- * If `true`, the scrollbar is visible. It can be useful when displaying
781
- * a long vertical list of tabs.
782
- * @default false
783
- */
784
- visibleScrollbar: l.bool
785
- });
786
- export {
787
- vt as T,
788
- le as t
789
- };