@ck-ui/component-library 2.0.3 → 2.0.4

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 (333) hide show
  1. package/dist/{CalendarGrid-DzsGX04L.js → CalendarGrid-Cu-E76sM.js} +1 -1
  2. package/dist/DropdownFooter-W4D9bbd6.js +98 -0
  3. package/dist/IconSlot-lz-E7RIY.js +33 -0
  4. package/dist/{MenuItem-DlaRT10y.js → MenuItem-jNWNRrDR.js} +1 -1
  5. package/dist/ScrollDropdown-gfB7tdTr.js +80 -0
  6. package/dist/assets/DateRangePicker-FyjycaFJ.css +1 -0
  7. package/dist/assets/DropdownFooter-DTuzF-cp.css +1 -0
  8. package/dist/assets/IconSlot-BhpCcM3C.css +1 -0
  9. package/dist/assets/ScrollDropdown-Dq3Kic27.css +1 -0
  10. package/dist/assets/Sidebar-CrD-rucg.css +1 -0
  11. package/dist/assets/ToastContent-B0d7ZeVJ.css +1 -0
  12. package/dist/assets/index-050F7Cq1.css +1 -0
  13. package/dist/assets/index-BE0-nPjX.css +1 -0
  14. package/dist/assets/index-BFoXf6nS.css +1 -0
  15. package/dist/assets/index-BIccl6ps.css +1 -0
  16. package/dist/assets/index-BJ3ki-dZ.css +1 -0
  17. package/dist/assets/index-BZUn0Wdm.css +1 -0
  18. package/dist/assets/index-BcYUvt6V.css +1 -0
  19. package/dist/assets/index-Bcdauu8Y.css +1 -0
  20. package/dist/assets/index-BcfUGu_y.css +1 -0
  21. package/dist/assets/index-BqELPvtv.css +1 -0
  22. package/dist/assets/index-C44rlX6h.css +1 -0
  23. package/dist/assets/index-CAGY1l6E.css +1 -0
  24. package/dist/assets/index-CCTeose3.css +1 -0
  25. package/dist/assets/{index-BbJZjGLb.css → index-CV06CpqV.css} +1 -1
  26. package/dist/assets/index-Cj3VbHpe.css +1 -0
  27. package/dist/assets/{index-BXwGxK7I.css → index-CmfUag81.css} +1 -1
  28. package/dist/assets/index-CuOeYu7b.css +1 -0
  29. package/dist/assets/index-CuopEZmw.css +1 -0
  30. package/dist/assets/index-CwPQKjpa.css +1 -0
  31. package/dist/assets/index-D0X2hwMU.css +1 -0
  32. package/dist/assets/{index-BgFw4AMY.css → index-DVtITeZI.css} +1 -1
  33. package/dist/assets/index-DWMUQAdQ.css +1 -0
  34. package/dist/assets/index-DXeEmcnJ.css +1 -0
  35. package/dist/assets/index-DZaWJ3P3.css +1 -0
  36. package/dist/assets/index-DaV0QrZW.css +1 -0
  37. package/dist/assets/index-DePIj7wn.css +1 -0
  38. package/dist/assets/index-DhtWNfIJ.css +1 -0
  39. package/dist/assets/{index-zWDnehqu.css → index-DlcdXqx_.css} +1 -1
  40. package/dist/assets/index-Dmo2W49y.css +1 -0
  41. package/dist/assets/index-DoRanRth.css +1 -0
  42. package/dist/assets/index-DoTtYYv9.css +1 -0
  43. package/dist/assets/index-F_VkoiK8.css +1 -0
  44. package/dist/assets/index-V_YjVwnC.css +1 -0
  45. package/dist/assets/index-cVRrZueX.css +1 -0
  46. package/dist/assets/{index-rrYSS2rl.css → index-t1PYEt2I.css} +1 -1
  47. package/dist/assets/index-tNRjcWyS.css +1 -0
  48. package/dist/assets/main-PzmpqYzB.css +1 -0
  49. package/dist/assets/styles-B4HnRCM5.css +1 -0
  50. package/dist/assets/styles-BWiKngtQ.css +1 -0
  51. package/dist/assets/{styles-0GdZsGyi.css → styles-CBX41mCH.css} +1 -1
  52. package/dist/assets/{styles-CwZG1jzB.css → styles-CnUruVcX.css} +1 -1
  53. package/dist/assets/styles-DGuBVeco.css +1 -0
  54. package/dist/assets/{styles-DrYTmjez.css → styles-DIZ9K_K2.css} +1 -1
  55. package/dist/assets/styles-DJ1QnJSM.css +1 -0
  56. package/dist/assets/styles-DVAtoUQM.css +1 -0
  57. package/dist/assets/styles-DzivbMl0.css +1 -0
  58. package/dist/assets/styles-Ias6f7--.css +1 -0
  59. package/dist/assets/styles-ak9WG2cT.css +1 -0
  60. package/dist/assets/styles-dHWZnWrb.css +1 -0
  61. package/dist/assets/theme-CzZnUu2H.css +1 -0
  62. package/dist/components/Avatar/index.js +19 -19
  63. package/dist/components/Breadcrumb/index.js +45 -45
  64. package/dist/components/Button/index.js +18 -18
  65. package/dist/components/CKBadge/_types/ckBadge.types.d.ts +15 -0
  66. package/dist/components/CKBadge/_types/ckBadge.types.d.ts.map +1 -0
  67. package/dist/components/CKBadge/_types/ckBadge.types.js +4 -0
  68. package/dist/components/CKBadge/index.d.ts +6 -0
  69. package/dist/components/CKBadge/index.d.ts.map +1 -0
  70. package/dist/components/CKBadge/index.js +54 -0
  71. package/dist/components/CKButton/_helper/ComboLayout.js +1 -1
  72. package/dist/components/CKButton/_helper/IconSlot.js +1 -1
  73. package/dist/components/CKButton/_helper/StandardLayout.js +1 -1
  74. package/dist/components/CKButton/index.js +1 -1
  75. package/dist/components/CKCheckbox/index.js +30 -30
  76. package/dist/components/CKTag/index.js +38 -38
  77. package/dist/components/CardBox/index.js +20 -20
  78. package/dist/components/Checkbox/index.js +11 -11
  79. package/dist/components/CostComparatorTable/_helpers/CostCell.js +1 -1
  80. package/dist/components/CostComparatorTable/_helpers/HeaderCheckbox.js +1 -1
  81. package/dist/components/CostComparatorTable/index.js +1 -1
  82. package/dist/components/DateRangePicker/Calendar/CalendarGrid.js +2 -2
  83. package/dist/components/DateRangePicker/Calendar/ScrollDropdown.js +1 -1
  84. package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
  85. package/dist/components/DateRangePicker/DateRangePicker.js +298 -206
  86. package/dist/components/DeviationTag/index.js +19 -19
  87. package/dist/components/EmptyState/index.js +5 -5
  88. package/dist/components/FusionChart/index.js +217 -217
  89. package/dist/components/GroupedMultiSelect/_helpers/DropdownFooter.js +1 -1
  90. package/dist/components/GroupedMultiSelect/_helpers/MenuItem.js +1 -1
  91. package/dist/components/GroupedMultiSelect/_helpers/MenuList.js +1 -1
  92. package/dist/components/GroupedMultiSelect/_helpers/OptionRow.js +1 -1
  93. package/dist/components/GroupedMultiSelect/_helpers/OptionsList.js +1 -1
  94. package/dist/components/GroupedMultiSelect/_helpers/SearchResult.js +1 -1
  95. package/dist/components/GroupedMultiSelect/_helpers/TagContent.js +1 -1
  96. package/dist/components/GroupedMultiSelect/_helpers/TriggerButton.js +1 -1
  97. package/dist/components/GroupedMultiSelect/index.js +1 -1
  98. package/dist/components/GroupedSingleSelect/_helpers/DropdownFooter.js +1 -1
  99. package/dist/components/GroupedSingleSelect/_helpers/OptionRow.js +1 -1
  100. package/dist/components/GroupedSingleSelect/_helpers/OptionsList.js +1 -1
  101. package/dist/components/GroupedSingleSelect/_helpers/TriggerButton.js +1 -1
  102. package/dist/components/GroupedSingleSelect/index.js +1 -1
  103. package/dist/components/IconButton/_types/iconButton.type.d.ts +1 -1
  104. package/dist/components/IconButton/_types/iconButton.type.d.ts.map +1 -1
  105. package/dist/components/IconButton/index.js +28 -28
  106. package/dist/components/MAVDropdown/index.js +65 -65
  107. package/dist/components/MenuOptions/MenuOptionsWrapper.js +1 -1
  108. package/dist/components/MenuOptions/_helpers/MenuItem.js +2 -2
  109. package/dist/components/MenuOptions/_helpers/RadioMenuItem.js +1 -1
  110. package/dist/components/MenuOptions/_helpers/SubMenu.js +2 -2
  111. package/dist/components/MenuOptions/index.js +2 -2
  112. package/dist/components/MetricCards/Component/CardWithIconAndForecast/index.js +28 -28
  113. package/dist/components/MultiSelect/SimpleMultiSelect.js +1 -1
  114. package/dist/components/MultiSelect/_helpers/DropdownFooter.js +1 -1
  115. package/dist/components/MultiSelect/_helpers/OptionRow.js +1 -1
  116. package/dist/components/MultiSelect/_helpers/OverflowMenu.js +1 -1
  117. package/dist/components/MultiSelect/_helpers/OverflowMenuItem.js +1 -1
  118. package/dist/components/MultiSelect/_helpers/SearchResult.js +1 -1
  119. package/dist/components/MultiSelect/_helpers/TagContent.js +1 -1
  120. package/dist/components/MultiSelect/_helpers/TriggerButton.js +1 -1
  121. package/dist/components/MultiSelect/index.js +1 -1
  122. package/dist/components/Pagination/index.js +37 -37
  123. package/dist/components/Popover/index.js +2 -2
  124. package/dist/components/PopupAndDialogBox/_types/popupAndDialog.types.d.ts +3 -0
  125. package/dist/components/PopupAndDialogBox/_types/popupAndDialog.types.d.ts.map +1 -1
  126. package/dist/components/PopupAndDialogBox/components/DialogContent.d.ts +1 -0
  127. package/dist/components/PopupAndDialogBox/components/DialogContent.d.ts.map +1 -1
  128. package/dist/components/PopupAndDialogBox/components/DialogContent.js +5 -4
  129. package/dist/components/PopupAndDialogBox/components/DialogFooter.d.ts.map +1 -1
  130. package/dist/components/PopupAndDialogBox/components/DialogFooter.js +32 -31
  131. package/dist/components/PopupAndDialogBox/components/DialogHeader.d.ts.map +1 -1
  132. package/dist/components/PopupAndDialogBox/components/DialogHeader.js +18 -15
  133. package/dist/components/PopupAndDialogBox/index.js +1 -1
  134. package/dist/components/ProfileDropdown/index.js +42 -42
  135. package/dist/components/ProgressBar/index.js +24 -24
  136. package/dist/components/RadioButton/index.js +25 -25
  137. package/dist/components/RangeSlider/_types/rangeSlider.types.d.ts +31 -0
  138. package/dist/components/RangeSlider/_types/rangeSlider.types.d.ts.map +1 -0
  139. package/dist/components/RangeSlider/_types/rangeSlider.types.js +1 -0
  140. package/dist/components/RangeSlider/index.d.ts +3 -0
  141. package/dist/components/RangeSlider/index.d.ts.map +1 -0
  142. package/dist/components/RangeSlider/index.js +190 -0
  143. package/dist/components/Search/index.js +33 -33
  144. package/dist/components/Sidebar/Sidebar.d.ts +1 -1
  145. package/dist/components/Sidebar/Sidebar.d.ts.map +1 -1
  146. package/dist/components/Sidebar/Sidebar.js +103 -99
  147. package/dist/components/Sidebar/Sidebar.types.d.ts +1 -1
  148. package/dist/components/Sidebar/Sidebar.types.d.ts.map +1 -1
  149. package/dist/components/Sidebar/Sidebar.utils.d.ts.map +1 -1
  150. package/dist/components/Sidebar/Sidebar.utils.js +3 -1
  151. package/dist/components/Sidebar/_helpers/TruncatedLabel.d.ts +15 -0
  152. package/dist/components/Sidebar/_helpers/TruncatedLabel.d.ts.map +1 -0
  153. package/dist/components/Sidebar/_helpers/TruncatedLabel.js +26 -0
  154. package/dist/components/Sidebar/_helpers/animateScroll.d.ts +2 -0
  155. package/dist/components/Sidebar/_helpers/animateScroll.d.ts.map +1 -0
  156. package/dist/components/Sidebar/_helpers/animateScroll.js +12 -0
  157. package/dist/components/Sidebar/_helpers/index.d.ts +3 -0
  158. package/dist/components/Sidebar/_helpers/index.d.ts.map +1 -0
  159. package/dist/components/Sidebar/_helpers/index.js +6 -0
  160. package/dist/components/Sidebar/components/CollapsedTooltip/index.d.ts +3 -4
  161. package/dist/components/Sidebar/components/CollapsedTooltip/index.d.ts.map +1 -1
  162. package/dist/components/Sidebar/components/CollapsedTooltip/index.js +5 -3
  163. package/dist/components/Sidebar/components/ContactUsButton/index.d.ts +1 -1
  164. package/dist/components/Sidebar/components/ContactUsButton/index.d.ts.map +1 -1
  165. package/dist/components/Sidebar/components/ContactUsButton/index.js +60 -14
  166. package/dist/components/Sidebar/components/ExploreSection/index.d.ts +1 -1
  167. package/dist/components/Sidebar/components/ExploreSection/index.d.ts.map +1 -1
  168. package/dist/components/Sidebar/components/ExploreSection/index.js +47 -20
  169. package/dist/components/Sidebar/components/GptCard/index.d.ts +3 -2
  170. package/dist/components/Sidebar/components/GptCard/index.d.ts.map +1 -1
  171. package/dist/components/Sidebar/components/GptCard/index.js +132 -29
  172. package/dist/components/Sidebar/components/IconRenderer/index.d.ts +7 -1
  173. package/dist/components/Sidebar/components/IconRenderer/index.d.ts.map +1 -1
  174. package/dist/components/Sidebar/components/IconRenderer/index.js +82 -13
  175. package/dist/components/Sidebar/components/MenuItemWrapper/index.d.ts +2 -1
  176. package/dist/components/Sidebar/components/MenuItemWrapper/index.d.ts.map +1 -1
  177. package/dist/components/Sidebar/components/MenuItemWrapper/index.js +57 -27
  178. package/dist/components/Sidebar/components/MenuRenderer/CollapsedMenu.d.ts +1 -1
  179. package/dist/components/Sidebar/components/MenuRenderer/CollapsedMenu.d.ts.map +1 -1
  180. package/dist/components/Sidebar/components/MenuRenderer/CollapsedMenu.js +162 -75
  181. package/dist/components/Sidebar/components/MenuRenderer/ExpandedMenu.d.ts +2 -4
  182. package/dist/components/Sidebar/components/MenuRenderer/ExpandedMenu.d.ts.map +1 -1
  183. package/dist/components/Sidebar/components/MenuRenderer/ExpandedMenu.js +74 -52
  184. package/dist/components/Sidebar/components/MenuRenderer/index.d.ts +2 -1
  185. package/dist/components/Sidebar/components/MenuRenderer/index.d.ts.map +1 -1
  186. package/dist/components/Sidebar/components/MenuRenderer/index.js +135 -24
  187. package/dist/components/Sidebar/components/ModuleSwitchButton/index.d.ts +1 -1
  188. package/dist/components/Sidebar/components/ModuleSwitchButton/index.d.ts.map +1 -1
  189. package/dist/components/Sidebar/components/ModuleSwitchButton/index.js +36 -18
  190. package/dist/components/Sidebar/components/SectionLabel/index.js +4 -4
  191. package/dist/components/Sidebar/components/SubMenuWrapper/index.d.ts +2 -1
  192. package/dist/components/Sidebar/components/SubMenuWrapper/index.d.ts.map +1 -1
  193. package/dist/components/Sidebar/components/SubMenuWrapper/index.js +132 -47
  194. package/dist/components/Sidebar/components/index.js +1 -1
  195. package/dist/components/Sidebar/hooks/useActiveDetection.d.ts +1 -1
  196. package/dist/components/Sidebar/hooks/useActiveDetection.d.ts.map +1 -1
  197. package/dist/components/Sidebar/hooks/useActiveDetection.js +4 -1
  198. package/dist/components/Sidebar/hooks/useMenuState.d.ts +2 -2
  199. package/dist/components/Sidebar/hooks/useMenuState.d.ts.map +1 -1
  200. package/dist/components/Sidebar/hooks/useMenuState.js +116 -59
  201. package/dist/components/Sidebar/hooks/useModuleSwitch.d.ts.map +1 -1
  202. package/dist/components/Sidebar/hooks/useOverlayScrollbar.d.ts +7 -0
  203. package/dist/components/Sidebar/hooks/useOverlayScrollbar.d.ts.map +1 -0
  204. package/dist/components/Sidebar/hooks/useOverlayScrollbar.js +98 -0
  205. package/dist/components/Sidebar/index.d.ts +3 -3
  206. package/dist/components/Sidebar/index.d.ts.map +1 -1
  207. package/dist/components/Sidebar/index.js +1 -1
  208. package/dist/components/Sidebar/types/gpt.types.d.ts +38 -0
  209. package/dist/components/Sidebar/types/gpt.types.d.ts.map +1 -1
  210. package/dist/components/Sidebar/types/index.d.ts +1 -1
  211. package/dist/components/Sidebar/types/index.d.ts.map +1 -1
  212. package/dist/components/Sidebar/types/sidebar.types.d.ts +8 -1
  213. package/dist/components/Sidebar/types/sidebar.types.d.ts.map +1 -1
  214. package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.js +7 -5
  215. package/dist/components/SingleSelectDropdown/index.js +14 -12
  216. package/dist/components/Stepper/_helper/StepIcon.js +1 -1
  217. package/dist/components/Stepper/_helper/StepText.js +1 -1
  218. package/dist/components/Stepper/index.js +1 -1
  219. package/dist/components/Switch/index.js +6 -6
  220. package/dist/components/Tab/index.js +38 -38
  221. package/dist/components/Table/_helpers/ColumnManager/index.js +1 -1
  222. package/dist/components/Table/_helpers/TableFilterModal/RangeSelector.d.ts.map +1 -1
  223. package/dist/components/Table/_helpers/TableFilterModal/RangeSelector.js +31 -1528
  224. package/dist/components/Table/_helpers/TableFilterModal/index.js +1 -1
  225. package/dist/components/Table/_helpers/TableRows.d.ts.map +1 -1
  226. package/dist/components/Table/_helpers/TableRows.js +395 -201
  227. package/dist/components/Table/_hooks/useFilterColumnState.d.ts.map +1 -1
  228. package/dist/components/Table/_hooks/useFilterColumnState.js +26 -11
  229. package/dist/components/Table/_types/table.types.d.ts +6 -0
  230. package/dist/components/Table/_types/table.types.d.ts.map +1 -1
  231. package/dist/components/Table/index.js +1 -1
  232. package/dist/components/Tag/index.js +20 -20
  233. package/dist/components/TextArea/index.js +31 -31
  234. package/dist/components/TextField/index.d.ts.map +1 -1
  235. package/dist/components/TextField/index.js +165 -7351
  236. package/dist/components/Toast/_helper/ToastContent.js +36 -36
  237. package/dist/components/Toast/_helper/ToastProvider.js +1 -1
  238. package/dist/components/Toast/_hooks/useToast.js +1 -1
  239. package/dist/components/Toggle/index.js +18 -18
  240. package/dist/components/Tooltip/_helpers/calculatePosition.d.ts +7 -0
  241. package/dist/components/Tooltip/_helpers/calculatePosition.d.ts.map +1 -0
  242. package/dist/components/Tooltip/_helpers/calculatePosition.js +27 -0
  243. package/dist/components/Tooltip/_helpers/index.d.ts +4 -0
  244. package/dist/components/Tooltip/_helpers/index.d.ts.map +1 -0
  245. package/dist/components/Tooltip/_helpers/index.js +6 -0
  246. package/dist/components/Tooltip/_helpers/mergeRef.d.ts +3 -0
  247. package/dist/components/Tooltip/_helpers/mergeRef.d.ts.map +1 -0
  248. package/dist/components/Tooltip/_helpers/mergeRef.js +6 -0
  249. package/dist/components/Tooltip/_types/tooltip.types.d.ts +1 -2
  250. package/dist/components/Tooltip/_types/tooltip.types.d.ts.map +1 -1
  251. package/dist/components/Tooltip/index.d.ts +5 -1
  252. package/dist/components/Tooltip/index.d.ts.map +1 -1
  253. package/dist/components/Tooltip/index.js +59 -2041
  254. package/dist/components/Typography/index.js +23 -23
  255. package/dist/down-arrow-Con-s3fU.js +5 -0
  256. package/dist/index-BAG5O9tQ.js +97 -0
  257. package/dist/{index-BR6M9zUI.js → index-Cc3gWc2P.js} +166 -154
  258. package/dist/main.d.ts +2 -0
  259. package/dist/main.d.ts.map +1 -1
  260. package/dist/main.js +87 -83
  261. package/dist/styles.module-BhZ_Dm1P.js +16 -0
  262. package/dist/styles.module-Bxs1UJxF.js +15 -0
  263. package/dist/styles.module-CRMuLY4A.js +13 -0
  264. package/dist/styles.module-DBuEcddZ.js +29 -0
  265. package/dist/styles.module-DKDRix10.js +39 -0
  266. package/dist/styles.module-DjiC2kYs.js +20 -0
  267. package/dist/styles.module-Xxs9bBCg.js +56 -0
  268. package/dist/styles.module-aSzD4I4G.js +19 -0
  269. package/dist/theme/Theme.js +1 -1
  270. package/dist/theme/theme.css +1 -1
  271. package/package.json +1 -1
  272. package/dist/DropdownFooter-DIxlKK1Y.js +0 -96
  273. package/dist/Grow-gzixxVwK.js +0 -789
  274. package/dist/IconSlot-DvUwY6Do.js +0 -33
  275. package/dist/ScrollDropdown-B6iVjMy_.js +0 -80
  276. package/dist/assets/DateRangePicker-BJW-EAys.css +0 -1
  277. package/dist/assets/DropdownFooter-CRxQRvLY.css +0 -1
  278. package/dist/assets/IconSlot-BWv5PQN_.css +0 -1
  279. package/dist/assets/ScrollDropdown-zzvVGbzo.css +0 -1
  280. package/dist/assets/Sidebar-D5jVJ-ln.css +0 -1
  281. package/dist/assets/ToastContent-DpF5zCks.css +0 -1
  282. package/dist/assets/index-0R9p-l95.css +0 -1
  283. package/dist/assets/index-31u7i502.css +0 -1
  284. package/dist/assets/index-B5N2Zvs1.css +0 -1
  285. package/dist/assets/index-B6Mg98vm.css +0 -1
  286. package/dist/assets/index-B8lwBNV9.css +0 -1
  287. package/dist/assets/index-BD0OawaZ.css +0 -1
  288. package/dist/assets/index-BD0iilmm.css +0 -1
  289. package/dist/assets/index-BLz-9Nuk.css +0 -1
  290. package/dist/assets/index-BOXxnraF.css +0 -1
  291. package/dist/assets/index-BZgvXFWW.css +0 -1
  292. package/dist/assets/index-BkNXS5fR.css +0 -1
  293. package/dist/assets/index-Bo4Tx8px.css +0 -1
  294. package/dist/assets/index-BoQKDmZt.css +0 -1
  295. package/dist/assets/index-C3K5UCMn.css +0 -1
  296. package/dist/assets/index-C4-S_v9y.css +0 -1
  297. package/dist/assets/index-C6j9Ze5V.css +0 -1
  298. package/dist/assets/index-CSofT_ix.css +0 -1
  299. package/dist/assets/index-C_Tn9jS-.css +0 -1
  300. package/dist/assets/index-D2HelNRV.css +0 -1
  301. package/dist/assets/index-DDdi2wxl.css +0 -1
  302. package/dist/assets/index-DRigR6XT.css +0 -1
  303. package/dist/assets/index-Dpv0OAoW.css +0 -1
  304. package/dist/assets/index-EOsQwhza.css +0 -1
  305. package/dist/assets/index-UphWJR2V.css +0 -1
  306. package/dist/assets/index-_Kh8p9R0.css +0 -1
  307. package/dist/assets/index-eZS6kms7.css +0 -1
  308. package/dist/assets/index-t78owPAF.css +0 -1
  309. package/dist/assets/index-tIl-UucG.css +0 -1
  310. package/dist/assets/index-xlbz19JS.css +0 -1
  311. package/dist/assets/main-3OqLSdPm.css +0 -1
  312. package/dist/assets/styles-BS1nwHmS.css +0 -1
  313. package/dist/assets/styles-Be-tqCP9.css +0 -1
  314. package/dist/assets/styles-C5uYY4fL.css +0 -1
  315. package/dist/assets/styles-C9rG0Alp.css +0 -1
  316. package/dist/assets/styles-CZCmGNUn.css +0 -1
  317. package/dist/assets/styles-CwEfypOd.css +0 -1
  318. package/dist/assets/styles-DAFhOzfn.css +0 -1
  319. package/dist/assets/styles-DGlqPkdv.css +0 -1
  320. package/dist/assets/theme-CDdq9khQ.css +0 -1
  321. package/dist/clsx-OuTLNxxd.js +0 -16
  322. package/dist/createSimplePaletteValueFilter-BqxST_wX.js +0 -24
  323. package/dist/index-CSxlVCTW.js +0 -52
  324. package/dist/isFocusVisible-BzX3wEi7.js +0 -12
  325. package/dist/styles.module-B5fY7mP8.js +0 -20
  326. package/dist/styles.module-BXby6f8d.js +0 -16
  327. package/dist/styles.module-DGDgpLAB.js +0 -29
  328. package/dist/styles.module-DSbSTQeV.js +0 -56
  329. package/dist/styles.module-ZyeVE7KZ.js +0 -39
  330. package/dist/styles.module-r_cdKgD9.js +0 -19
  331. package/dist/styles.module-xqgv3wwP.js +0 -12
  332. package/dist/styles.module-yNDMDNO-.js +0 -14
  333. package/dist/useSlot-BAOpgsKZ.js +0 -4687
@@ -1,2050 +1,68 @@
1
- import { jsx as oe, jsxs as vt } from "react/jsx-runtime";
2
- import * as j from "react";
3
- import { f as jt, g as Ct, o as mt, b as ot, d as ht, m as $t, P as n, q as ro, i as St, h as Dt, s as Ke, a as no, u as gt, j as Fe, l as kt, n as at } from "../../useSlot-BAOpgsKZ.js";
4
- import { c as ao } from "../../clsx-OuTLNxxd.js";
5
- import { P as io, i as Bt, u as so, r as Lt, H as Ye, a as po, b as He, c as lo, g as co, G as fo, T as uo, e as vo } from "../../Grow-gzixxVwK.js";
6
- import { i as yt } from "../../isFocusVisible-BzX3wEi7.js";
7
- var H = "top", X = "bottom", G = "right", U = "left", it = "auto", De = [H, X, G, U], Oe = "start", $e = "end", mo = "clippingParents", Nt = "viewport", Ae = "popper", ho = "reference", bt = /* @__PURE__ */ De.reduce(function(t, e) {
8
- return t.concat([e + "-" + Oe, e + "-" + $e]);
9
- }, []), Wt = /* @__PURE__ */ [].concat(De, [it]).reduce(function(t, e) {
10
- return t.concat([e, e + "-" + Oe, e + "-" + $e]);
11
- }, []), go = "beforeRead", yo = "read", bo = "afterRead", wo = "beforeMain", Oo = "main", xo = "afterMain", To = "beforeWrite", Po = "write", Eo = "afterWrite", Ro = [go, yo, bo, wo, Oo, xo, To, Po, Eo];
12
- function _(t) {
13
- return t ? (t.nodeName || "").toLowerCase() : null;
14
- }
15
- function q(t) {
16
- if (t == null)
17
- return window;
18
- if (t.toString() !== "[object Window]") {
19
- var e = t.ownerDocument;
20
- return e && e.defaultView || window;
21
- }
22
- return t;
23
- }
24
- function ye(t) {
25
- var e = q(t).Element;
26
- return t instanceof e || t instanceof Element;
27
- }
28
- function Y(t) {
29
- var e = q(t).HTMLElement;
30
- return t instanceof e || t instanceof HTMLElement;
31
- }
32
- function st(t) {
33
- if (typeof ShadowRoot > "u")
34
- return !1;
35
- var e = q(t).ShadowRoot;
36
- return t instanceof e || t instanceof ShadowRoot;
37
- }
38
- function Ao(t) {
39
- var e = t.state;
40
- Object.keys(e.elements).forEach(function(o) {
41
- var r = e.styles[o] || {}, a = e.attributes[o] || {}, i = e.elements[o];
42
- !Y(i) || !_(i) || (Object.assign(i.style, r), Object.keys(a).forEach(function(c) {
43
- var s = a[c];
44
- s === !1 ? i.removeAttribute(c) : i.setAttribute(c, s === !0 ? "" : s);
45
- }));
46
- });
47
- }
48
- function Mo(t) {
49
- var e = t.state, o = {
50
- popper: {
51
- position: e.options.strategy,
52
- left: "0",
53
- top: "0",
54
- margin: "0"
55
- },
56
- arrow: {
57
- position: "absolute"
58
- },
59
- reference: {}
60
- };
61
- return Object.assign(e.elements.popper.style, o.popper), e.styles = o, e.elements.arrow && Object.assign(e.elements.arrow.style, o.arrow), function() {
62
- Object.keys(e.elements).forEach(function(r) {
63
- var a = e.elements[r], i = e.attributes[r] || {}, c = Object.keys(e.styles.hasOwnProperty(r) ? e.styles[r] : o[r]), s = c.reduce(function(p, f) {
64
- return p[f] = "", p;
65
- }, {});
66
- !Y(a) || !_(a) || (Object.assign(a.style, s), Object.keys(i).forEach(function(p) {
67
- a.removeAttribute(p);
68
- }));
69
- });
70
- };
71
- }
72
- const jo = {
73
- name: "applyStyles",
74
- enabled: !0,
75
- phase: "write",
76
- fn: Ao,
77
- effect: Mo,
78
- requires: ["computeStyles"]
79
- };
80
- function Z(t) {
81
- return t.split("-")[0];
82
- }
83
- var ge = Math.max, Xe = Math.min, xe = Math.round;
84
- function rt() {
85
- var t = navigator.userAgentData;
86
- return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) {
87
- return e.brand + "/" + e.version;
88
- }).join(" ") : navigator.userAgent;
89
- }
90
- function It() {
91
- return !/^((?!chrome|android).)*safari/i.test(rt());
92
- }
93
- function Te(t, e, o) {
94
- e === void 0 && (e = !1), o === void 0 && (o = !1);
95
- var r = t.getBoundingClientRect(), a = 1, i = 1;
96
- e && Y(t) && (a = t.offsetWidth > 0 && xe(r.width) / t.offsetWidth || 1, i = t.offsetHeight > 0 && xe(r.height) / t.offsetHeight || 1);
97
- var c = ye(t) ? q(t) : window, s = c.visualViewport, p = !It() && o, f = (r.left + (p && s ? s.offsetLeft : 0)) / a, l = (r.top + (p && s ? s.offsetTop : 0)) / i, g = r.width / a, O = r.height / i;
98
- return {
99
- width: g,
100
- height: O,
101
- top: l,
102
- right: f + g,
103
- bottom: l + O,
104
- left: f,
105
- x: f,
106
- y: l
107
- };
108
- }
109
- function pt(t) {
110
- var e = Te(t), o = t.offsetWidth, r = t.offsetHeight;
111
- return Math.abs(e.width - o) <= 1 && (o = e.width), Math.abs(e.height - r) <= 1 && (r = e.height), {
112
- x: t.offsetLeft,
113
- y: t.offsetTop,
114
- width: o,
115
- height: r
116
- };
117
- }
118
- function Ft(t, e) {
119
- var o = e.getRootNode && e.getRootNode();
120
- if (t.contains(e))
121
- return !0;
122
- if (o && st(o)) {
123
- var r = e;
124
- do {
125
- if (r && t.isSameNode(r))
126
- return !0;
127
- r = r.parentNode || r.host;
128
- } while (r);
129
- }
130
- return !1;
131
- }
132
- function re(t) {
133
- return q(t).getComputedStyle(t);
134
- }
135
- function Co(t) {
136
- return ["table", "td", "th"].indexOf(_(t)) >= 0;
137
- }
138
- function ue(t) {
139
- return ((ye(t) ? t.ownerDocument : (
140
- // $FlowFixMe[prop-missing]
141
- t.document
142
- )) || window.document).documentElement;
143
- }
144
- function Je(t) {
145
- return _(t) === "html" ? t : (
146
- // this is a quicker (but less type safe) way to save quite some bytes from the bundle
147
- // $FlowFixMe[incompatible-return]
148
- // $FlowFixMe[prop-missing]
149
- t.assignedSlot || // step into the shadow DOM of the parent of a slotted node
150
- t.parentNode || // DOM Element detected
151
- (st(t) ? t.host : null) || // ShadowRoot detected
152
- // $FlowFixMe[incompatible-call]: HTMLElement is a Node
153
- ue(t)
154
- );
155
- }
156
- function wt(t) {
157
- return !Y(t) || // https://github.com/popperjs/popper-core/issues/837
158
- re(t).position === "fixed" ? null : t.offsetParent;
159
- }
160
- function $o(t) {
161
- var e = /firefox/i.test(rt()), o = /Trident/i.test(rt());
162
- if (o && Y(t)) {
163
- var r = re(t);
164
- if (r.position === "fixed")
165
- return null;
166
- }
167
- var a = Je(t);
168
- for (st(a) && (a = a.host); Y(a) && ["html", "body"].indexOf(_(a)) < 0; ) {
169
- var i = re(a);
170
- if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || e && i.willChange === "filter" || e && i.filter && i.filter !== "none")
171
- return a;
172
- a = a.parentNode;
173
- }
174
- return null;
175
- }
176
- function ke(t) {
177
- for (var e = q(t), o = wt(t); o && Co(o) && re(o).position === "static"; )
178
- o = wt(o);
179
- return o && (_(o) === "html" || _(o) === "body" && re(o).position === "static") ? e : o || $o(t) || e;
180
- }
181
- function lt(t) {
182
- return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
183
- }
184
- function je(t, e, o) {
185
- return ge(t, Xe(e, o));
186
- }
187
- function So(t, e, o) {
188
- var r = je(t, e, o);
189
- return r > o ? o : r;
190
- }
191
- function Ht() {
192
- return {
193
- top: 0,
194
- right: 0,
195
- bottom: 0,
196
- left: 0
197
- };
198
- }
199
- function Ut(t) {
200
- return Object.assign({}, Ht(), t);
201
- }
202
- function Vt(t, e) {
203
- return e.reduce(function(o, r) {
204
- return o[r] = t, o;
205
- }, {});
206
- }
207
- var Do = function(e, o) {
208
- return e = typeof e == "function" ? e(Object.assign({}, o.rects, {
209
- placement: o.placement
210
- })) : e, Ut(typeof e != "number" ? e : Vt(e, De));
211
- };
212
- function ko(t) {
213
- var e, o = t.state, r = t.name, a = t.options, i = o.elements.arrow, c = o.modifiersData.popperOffsets, s = Z(o.placement), p = lt(s), f = [U, G].indexOf(s) >= 0, l = f ? "height" : "width";
214
- if (!(!i || !c)) {
215
- var g = Do(a.padding, o), O = pt(i), u = p === "y" ? H : U, E = p === "y" ? X : G, v = o.rects.reference[l] + o.rects.reference[p] - c[p] - o.rects.popper[l], h = c[p] - o.rects.reference[p], x = ke(i), A = x ? p === "y" ? x.clientHeight || 0 : x.clientWidth || 0 : 0, T = v / 2 - h / 2, d = g[u], y = A - O[l] - g[E], b = A / 2 - O[l] / 2 + T, P = je(d, b, y), C = p;
216
- o.modifiersData[r] = (e = {}, e[C] = P, e.centerOffset = P - b, e);
217
- }
218
- }
219
- function Bo(t) {
220
- var e = t.state, o = t.options, r = o.element, a = r === void 0 ? "[data-popper-arrow]" : r;
221
- a != null && (typeof a == "string" && (a = e.elements.popper.querySelector(a), !a) || Ft(e.elements.popper, a) && (e.elements.arrow = a));
222
- }
223
- const Lo = {
224
- name: "arrow",
225
- enabled: !0,
226
- phase: "main",
227
- fn: ko,
228
- effect: Bo,
229
- requires: ["popperOffsets"],
230
- requiresIfExists: ["preventOverflow"]
231
- };
232
- function Pe(t) {
233
- return t.split("-")[1];
234
- }
235
- var No = {
236
- top: "auto",
237
- right: "auto",
238
- bottom: "auto",
239
- left: "auto"
240
- };
241
- function Wo(t, e) {
242
- var o = t.x, r = t.y, a = e.devicePixelRatio || 1;
243
- return {
244
- x: xe(o * a) / a || 0,
245
- y: xe(r * a) / a || 0
246
- };
247
- }
248
- function Ot(t) {
249
- var e, o = t.popper, r = t.popperRect, a = t.placement, i = t.variation, c = t.offsets, s = t.position, p = t.gpuAcceleration, f = t.adaptive, l = t.roundOffsets, g = t.isFixed, O = c.x, u = O === void 0 ? 0 : O, E = c.y, v = E === void 0 ? 0 : E, h = typeof l == "function" ? l({
250
- x: u,
251
- y: v
252
- }) : {
253
- x: u,
254
- y: v
255
- };
256
- u = h.x, v = h.y;
257
- var x = c.hasOwnProperty("x"), A = c.hasOwnProperty("y"), T = U, d = H, y = window;
258
- if (f) {
259
- var b = ke(o), P = "clientHeight", C = "clientWidth";
260
- if (b === q(o) && (b = ue(o), re(b).position !== "static" && s === "absolute" && (P = "scrollHeight", C = "scrollWidth")), b = b, a === H || (a === U || a === G) && i === $e) {
261
- d = X;
262
- var w = g && b === y && y.visualViewport ? y.visualViewport.height : (
263
- // $FlowFixMe[prop-missing]
264
- b[P]
265
- );
266
- v -= w - r.height, v *= p ? 1 : -1;
267
- }
268
- if (a === U || (a === H || a === X) && i === $e) {
269
- T = G;
270
- var M = g && b === y && y.visualViewport ? y.visualViewport.width : (
271
- // $FlowFixMe[prop-missing]
272
- b[C]
1
+ import { jsxs as _, Fragment as d, jsx as g } from "react/jsx-runtime";
2
+ import { useRef as a, useState as v, useCallback as c, cloneElement as R } from "react";
3
+ import { createPortal as $ } from "react-dom";
4
+ import { calculateTooltipPosition as y } from "./_helpers/calculatePosition.js";
5
+ import { assignRef as B } from "./_helpers/mergeRef.js";
6
+ import '../../assets/index-BE0-nPjX.css';const C = "_arrow_1n4gf_20", l = {
7
+ "tooltip-portal": "_tooltip-portal_1n4gf_1",
8
+ "tooltip-box": "_tooltip-box_1n4gf_7",
9
+ arrow: C,
10
+ "arrow-top": "_arrow-top_1n4gf_29",
11
+ "arrow-bottom": "_arrow-bottom_1n4gf_35",
12
+ "arrow-left": "_arrow-left_1n4gf_41",
13
+ "arrow-right": "_arrow-right_1n4gf_47"
14
+ };
15
+ function L({
16
+ children: r,
17
+ title: i = "",
18
+ placement: u = "bottom",
19
+ arrow: w = !0
20
+ }) {
21
+ const t = a(null), [T, p] = v(!1), e = a(null), n = a(null), f = c((o) => {
22
+ e.current && (clearTimeout(e.current), e.current = null), t.current = o, n.current = setTimeout(() => p(!0), 150);
23
+ }, []), m = c(() => {
24
+ n.current && (clearTimeout(n.current), n.current = null), e.current = setTimeout(() => p(!1), 100);
25
+ }, []), b = c(
26
+ (o) => {
27
+ if (!o || !t.current) return;
28
+ const s = y(
29
+ t.current.getBoundingClientRect(),
30
+ o.getBoundingClientRect(),
31
+ u
273
32
  );
274
- u -= M - r.width, u *= p ? 1 : -1;
275
- }
276
- }
277
- var R = Object.assign({
278
- position: s
279
- }, f && No), L = l === !0 ? Wo({
280
- x: u,
281
- y: v
282
- }, q(o)) : {
283
- x: u,
284
- y: v
285
- };
286
- if (u = L.x, v = L.y, p) {
287
- var k;
288
- return Object.assign({}, R, (k = {}, k[d] = A ? "0" : "", k[T] = x ? "0" : "", k.transform = (y.devicePixelRatio || 1) <= 1 ? "translate(" + u + "px, " + v + "px)" : "translate3d(" + u + "px, " + v + "px, 0)", k));
289
- }
290
- return Object.assign({}, R, (e = {}, e[d] = A ? v + "px" : "", e[T] = x ? u + "px" : "", e.transform = "", e));
291
- }
292
- function Io(t) {
293
- var e = t.state, o = t.options, r = o.gpuAcceleration, a = r === void 0 ? !0 : r, i = o.adaptive, c = i === void 0 ? !0 : i, s = o.roundOffsets, p = s === void 0 ? !0 : s, f = {
294
- placement: Z(e.placement),
295
- variation: Pe(e.placement),
296
- popper: e.elements.popper,
297
- popperRect: e.rects.popper,
298
- gpuAcceleration: a,
299
- isFixed: e.options.strategy === "fixed"
300
- };
301
- e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, Ot(Object.assign({}, f, {
302
- offsets: e.modifiersData.popperOffsets,
303
- position: e.options.strategy,
304
- adaptive: c,
305
- roundOffsets: p
306
- })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, Ot(Object.assign({}, f, {
307
- offsets: e.modifiersData.arrow,
308
- position: "absolute",
309
- adaptive: !1,
310
- roundOffsets: p
311
- })))), e.attributes.popper = Object.assign({}, e.attributes.popper, {
312
- "data-popper-placement": e.placement
313
- });
314
- }
315
- const Fo = {
316
- name: "computeStyles",
317
- enabled: !0,
318
- phase: "beforeWrite",
319
- fn: Io,
320
- data: {}
321
- };
322
- var Ue = {
323
- passive: !0
324
- };
325
- function Ho(t) {
326
- var e = t.state, o = t.instance, r = t.options, a = r.scroll, i = a === void 0 ? !0 : a, c = r.resize, s = c === void 0 ? !0 : c, p = q(e.elements.popper), f = [].concat(e.scrollParents.reference, e.scrollParents.popper);
327
- return i && f.forEach(function(l) {
328
- l.addEventListener("scroll", o.update, Ue);
329
- }), s && p.addEventListener("resize", o.update, Ue), function() {
330
- i && f.forEach(function(l) {
331
- l.removeEventListener("scroll", o.update, Ue);
332
- }), s && p.removeEventListener("resize", o.update, Ue);
333
- };
334
- }
335
- const Uo = {
336
- name: "eventListeners",
337
- enabled: !0,
338
- phase: "write",
339
- fn: function() {
340
- },
341
- effect: Ho,
342
- data: {}
343
- };
344
- var Vo = {
345
- left: "right",
346
- right: "left",
347
- bottom: "top",
348
- top: "bottom"
349
- };
350
- function ze(t) {
351
- return t.replace(/left|right|bottom|top/g, function(e) {
352
- return Vo[e];
353
- });
354
- }
355
- var qo = {
356
- start: "end",
357
- end: "start"
358
- };
359
- function xt(t) {
360
- return t.replace(/start|end/g, function(e) {
361
- return qo[e];
362
- });
363
- }
364
- function ct(t) {
365
- var e = q(t), o = e.pageXOffset, r = e.pageYOffset;
366
- return {
367
- scrollLeft: o,
368
- scrollTop: r
369
- };
370
- }
371
- function ft(t) {
372
- return Te(ue(t)).left + ct(t).scrollLeft;
373
- }
374
- function zo(t, e) {
375
- var o = q(t), r = ue(t), a = o.visualViewport, i = r.clientWidth, c = r.clientHeight, s = 0, p = 0;
376
- if (a) {
377
- i = a.width, c = a.height;
378
- var f = It();
379
- (f || !f && e === "fixed") && (s = a.offsetLeft, p = a.offsetTop);
380
- }
381
- return {
382
- width: i,
383
- height: c,
384
- x: s + ft(t),
385
- y: p
386
- };
387
- }
388
- function Yo(t) {
389
- var e, o = ue(t), r = ct(t), a = (e = t.ownerDocument) == null ? void 0 : e.body, i = ge(o.scrollWidth, o.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), c = ge(o.scrollHeight, o.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), s = -r.scrollLeft + ft(t), p = -r.scrollTop;
390
- return re(a || o).direction === "rtl" && (s += ge(o.clientWidth, a ? a.clientWidth : 0) - i), {
391
- width: i,
392
- height: c,
393
- x: s,
394
- y: p
395
- };
396
- }
397
- function ut(t) {
398
- var e = re(t), o = e.overflow, r = e.overflowX, a = e.overflowY;
399
- return /auto|scroll|overlay|hidden/.test(o + a + r);
400
- }
401
- function qt(t) {
402
- return ["html", "body", "#document"].indexOf(_(t)) >= 0 ? t.ownerDocument.body : Y(t) && ut(t) ? t : qt(Je(t));
403
- }
404
- function Ce(t, e) {
405
- var o;
406
- e === void 0 && (e = []);
407
- var r = qt(t), a = r === ((o = t.ownerDocument) == null ? void 0 : o.body), i = q(r), c = a ? [i].concat(i.visualViewport || [], ut(r) ? r : []) : r, s = e.concat(c);
408
- return a ? s : (
409
- // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
410
- s.concat(Ce(Je(c)))
411
- );
412
- }
413
- function nt(t) {
414
- return Object.assign({}, t, {
415
- left: t.x,
416
- top: t.y,
417
- right: t.x + t.width,
418
- bottom: t.y + t.height
419
- });
420
- }
421
- function Xo(t, e) {
422
- var o = Te(t, !1, e === "fixed");
423
- return o.top = o.top + t.clientTop, o.left = o.left + t.clientLeft, o.bottom = o.top + t.clientHeight, o.right = o.left + t.clientWidth, o.width = t.clientWidth, o.height = t.clientHeight, o.x = o.left, o.y = o.top, o;
424
- }
425
- function Tt(t, e, o) {
426
- return e === Nt ? nt(zo(t, o)) : ye(e) ? Xo(e, o) : nt(Yo(ue(t)));
427
- }
428
- function Go(t) {
429
- var e = Ce(Je(t)), o = ["absolute", "fixed"].indexOf(re(t).position) >= 0, r = o && Y(t) ? ke(t) : t;
430
- return ye(r) ? e.filter(function(a) {
431
- return ye(a) && Ft(a, r) && _(a) !== "body";
432
- }) : [];
433
- }
434
- function Ko(t, e, o, r) {
435
- var a = e === "clippingParents" ? Go(t) : [].concat(e), i = [].concat(a, [o]), c = i[0], s = i.reduce(function(p, f) {
436
- var l = Tt(t, f, r);
437
- return p.top = ge(l.top, p.top), p.right = Xe(l.right, p.right), p.bottom = Xe(l.bottom, p.bottom), p.left = ge(l.left, p.left), p;
438
- }, Tt(t, c, r));
439
- return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
440
- }
441
- function zt(t) {
442
- var e = t.reference, o = t.element, r = t.placement, a = r ? Z(r) : null, i = r ? Pe(r) : null, c = e.x + e.width / 2 - o.width / 2, s = e.y + e.height / 2 - o.height / 2, p;
443
- switch (a) {
444
- case H:
445
- p = {
446
- x: c,
447
- y: e.y - o.height
448
- };
449
- break;
450
- case X:
451
- p = {
452
- x: c,
453
- y: e.y + e.height
454
- };
455
- break;
456
- case G:
457
- p = {
458
- x: e.x + e.width,
459
- y: s
460
- };
461
- break;
462
- case U:
463
- p = {
464
- x: e.x - o.width,
465
- y: s
466
- };
467
- break;
468
- default:
469
- p = {
470
- x: e.x,
471
- y: e.y
472
- };
473
- }
474
- var f = a ? lt(a) : null;
475
- if (f != null) {
476
- var l = f === "y" ? "height" : "width";
477
- switch (i) {
478
- case Oe:
479
- p[f] = p[f] - (e[l] / 2 - o[l] / 2);
480
- break;
481
- case $e:
482
- p[f] = p[f] + (e[l] / 2 - o[l] / 2);
483
- break;
484
- }
485
- }
486
- return p;
487
- }
488
- function Se(t, e) {
489
- e === void 0 && (e = {});
490
- var o = e, r = o.placement, a = r === void 0 ? t.placement : r, i = o.strategy, c = i === void 0 ? t.strategy : i, s = o.boundary, p = s === void 0 ? mo : s, f = o.rootBoundary, l = f === void 0 ? Nt : f, g = o.elementContext, O = g === void 0 ? Ae : g, u = o.altBoundary, E = u === void 0 ? !1 : u, v = o.padding, h = v === void 0 ? 0 : v, x = Ut(typeof h != "number" ? h : Vt(h, De)), A = O === Ae ? ho : Ae, T = t.rects.popper, d = t.elements[E ? A : O], y = Ko(ye(d) ? d : d.contextElement || ue(t.elements.popper), p, l, c), b = Te(t.elements.reference), P = zt({
491
- reference: b,
492
- element: T,
493
- placement: a
494
- }), C = nt(Object.assign({}, T, P)), w = O === Ae ? C : b, M = {
495
- top: y.top - w.top + x.top,
496
- bottom: w.bottom - y.bottom + x.bottom,
497
- left: y.left - w.left + x.left,
498
- right: w.right - y.right + x.right
499
- }, R = t.modifiersData.offset;
500
- if (O === Ae && R) {
501
- var L = R[a];
502
- Object.keys(M).forEach(function(k) {
503
- var $ = [G, X].indexOf(k) >= 0 ? 1 : -1, z = [H, X].indexOf(k) >= 0 ? "y" : "x";
504
- M[k] += L[z] * $;
505
- });
506
- }
507
- return M;
508
- }
509
- function Jo(t, e) {
510
- e === void 0 && (e = {});
511
- var o = e, r = o.placement, a = o.boundary, i = o.rootBoundary, c = o.padding, s = o.flipVariations, p = o.allowedAutoPlacements, f = p === void 0 ? Wt : p, l = Pe(r), g = l ? s ? bt : bt.filter(function(E) {
512
- return Pe(E) === l;
513
- }) : De, O = g.filter(function(E) {
514
- return f.indexOf(E) >= 0;
515
- });
516
- O.length === 0 && (O = g);
517
- var u = O.reduce(function(E, v) {
518
- return E[v] = Se(t, {
519
- placement: v,
520
- boundary: a,
521
- rootBoundary: i,
522
- padding: c
523
- })[Z(v)], E;
524
- }, {});
525
- return Object.keys(u).sort(function(E, v) {
526
- return u[E] - u[v];
527
- });
528
- }
529
- function Qo(t) {
530
- if (Z(t) === it)
531
- return [];
532
- var e = ze(t);
533
- return [xt(t), e, xt(e)];
534
- }
535
- function Zo(t) {
536
- var e = t.state, o = t.options, r = t.name;
537
- if (!e.modifiersData[r]._skip) {
538
- for (var a = o.mainAxis, i = a === void 0 ? !0 : a, c = o.altAxis, s = c === void 0 ? !0 : c, p = o.fallbackPlacements, f = o.padding, l = o.boundary, g = o.rootBoundary, O = o.altBoundary, u = o.flipVariations, E = u === void 0 ? !0 : u, v = o.allowedAutoPlacements, h = e.options.placement, x = Z(h), A = x === h, T = p || (A || !E ? [ze(h)] : Qo(h)), d = [h].concat(T).reduce(function(ne, J) {
539
- return ne.concat(Z(J) === it ? Jo(e, {
540
- placement: J,
541
- boundary: l,
542
- rootBoundary: g,
543
- padding: f,
544
- flipVariations: E,
545
- allowedAutoPlacements: v
546
- }) : J);
547
- }, []), y = e.rects.reference, b = e.rects.popper, P = /* @__PURE__ */ new Map(), C = !0, w = d[0], M = 0; M < d.length; M++) {
548
- var R = d[M], L = Z(R), k = Pe(R) === Oe, $ = [H, X].indexOf(L) >= 0, z = $ ? "width" : "height", S = Se(e, {
549
- placement: R,
550
- boundary: l,
551
- rootBoundary: g,
552
- altBoundary: O,
553
- padding: f
554
- }), N = $ ? k ? G : U : k ? X : H;
555
- y[z] > b[z] && (N = ze(N));
556
- var B = ze(N), K = [];
557
- if (i && K.push(S[L] <= 0), s && K.push(S[N] <= 0, S[B] <= 0), K.every(function(ne) {
558
- return ne;
559
- })) {
560
- w = R, C = !1;
561
- break;
562
- }
563
- P.set(R, K);
564
- }
565
- if (C)
566
- for (var de = E ? 3 : 1, ve = function(J) {
567
- var W = d.find(function(ae) {
568
- var V = P.get(ae);
569
- if (V)
570
- return V.slice(0, J).every(function(ie) {
571
- return ie;
572
- });
573
- });
574
- if (W)
575
- return w = W, "break";
576
- }, Q = de; Q > 0; Q--) {
577
- var me = ve(Q);
578
- if (me === "break") break;
579
- }
580
- e.placement !== w && (e.modifiersData[r]._skip = !0, e.placement = w, e.reset = !0);
581
- }
582
- }
583
- const _o = {
584
- name: "flip",
585
- enabled: !0,
586
- phase: "main",
587
- fn: Zo,
588
- requiresIfExists: ["offset"],
589
- data: {
590
- _skip: !1
591
- }
592
- };
593
- function Pt(t, e, o) {
594
- return o === void 0 && (o = {
595
- x: 0,
596
- y: 0
597
- }), {
598
- top: t.top - e.height - o.y,
599
- right: t.right - e.width + o.x,
600
- bottom: t.bottom - e.height + o.y,
601
- left: t.left - e.width - o.x
602
- };
603
- }
604
- function Et(t) {
605
- return [H, G, X, U].some(function(e) {
606
- return t[e] >= 0;
607
- });
608
- }
609
- function er(t) {
610
- var e = t.state, o = t.name, r = e.rects.reference, a = e.rects.popper, i = e.modifiersData.preventOverflow, c = Se(e, {
611
- elementContext: "reference"
612
- }), s = Se(e, {
613
- altBoundary: !0
614
- }), p = Pt(c, r), f = Pt(s, a, i), l = Et(p), g = Et(f);
615
- e.modifiersData[o] = {
616
- referenceClippingOffsets: p,
617
- popperEscapeOffsets: f,
618
- isReferenceHidden: l,
619
- hasPopperEscaped: g
620
- }, e.attributes.popper = Object.assign({}, e.attributes.popper, {
621
- "data-popper-reference-hidden": l,
622
- "data-popper-escaped": g
623
- });
624
- }
625
- const tr = {
626
- name: "hide",
627
- enabled: !0,
628
- phase: "main",
629
- requiresIfExists: ["preventOverflow"],
630
- fn: er
631
- };
632
- function or(t, e, o) {
633
- var r = Z(t), a = [U, H].indexOf(r) >= 0 ? -1 : 1, i = typeof o == "function" ? o(Object.assign({}, e, {
634
- placement: t
635
- })) : o, c = i[0], s = i[1];
636
- return c = c || 0, s = (s || 0) * a, [U, G].indexOf(r) >= 0 ? {
637
- x: s,
638
- y: c
639
- } : {
640
- x: c,
641
- y: s
642
- };
643
- }
644
- function rr(t) {
645
- var e = t.state, o = t.options, r = t.name, a = o.offset, i = a === void 0 ? [0, 0] : a, c = Wt.reduce(function(l, g) {
646
- return l[g] = or(g, e.rects, i), l;
647
- }, {}), s = c[e.placement], p = s.x, f = s.y;
648
- e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += p, e.modifiersData.popperOffsets.y += f), e.modifiersData[r] = c;
649
- }
650
- const nr = {
651
- name: "offset",
652
- enabled: !0,
653
- phase: "main",
654
- requires: ["popperOffsets"],
655
- fn: rr
656
- };
657
- function ar(t) {
658
- var e = t.state, o = t.name;
659
- e.modifiersData[o] = zt({
660
- reference: e.rects.reference,
661
- element: e.rects.popper,
662
- placement: e.placement
663
- });
664
- }
665
- const ir = {
666
- name: "popperOffsets",
667
- enabled: !0,
668
- phase: "read",
669
- fn: ar,
670
- data: {}
671
- };
672
- function sr(t) {
673
- return t === "x" ? "y" : "x";
674
- }
675
- function pr(t) {
676
- var e = t.state, o = t.options, r = t.name, a = o.mainAxis, i = a === void 0 ? !0 : a, c = o.altAxis, s = c === void 0 ? !1 : c, p = o.boundary, f = o.rootBoundary, l = o.altBoundary, g = o.padding, O = o.tether, u = O === void 0 ? !0 : O, E = o.tetherOffset, v = E === void 0 ? 0 : E, h = Se(e, {
677
- boundary: p,
678
- rootBoundary: f,
679
- padding: g,
680
- altBoundary: l
681
- }), x = Z(e.placement), A = Pe(e.placement), T = !A, d = lt(x), y = sr(d), b = e.modifiersData.popperOffsets, P = e.rects.reference, C = e.rects.popper, w = typeof v == "function" ? v(Object.assign({}, e.rects, {
682
- placement: e.placement
683
- })) : v, M = typeof w == "number" ? {
684
- mainAxis: w,
685
- altAxis: w
686
- } : Object.assign({
687
- mainAxis: 0,
688
- altAxis: 0
689
- }, w), R = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, L = {
690
- x: 0,
691
- y: 0
692
- };
693
- if (b) {
694
- if (i) {
695
- var k, $ = d === "y" ? H : U, z = d === "y" ? X : G, S = d === "y" ? "height" : "width", N = b[d], B = N + h[$], K = N - h[z], de = u ? -C[S] / 2 : 0, ve = A === Oe ? P[S] : C[S], Q = A === Oe ? -C[S] : -P[S], me = e.elements.arrow, ne = u && me ? pt(me) : {
696
- width: 0,
697
- height: 0
698
- }, J = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Ht(), W = J[$], ae = J[z], V = je(0, P[S], ne[S]), ie = T ? P[S] / 2 - de - V - W - M.mainAxis : ve - V - W - M.mainAxis, Be = T ? -P[S] / 2 + de + V + ae + M.mainAxis : Q + V + ae + M.mainAxis, se = e.elements.arrow && ke(e.elements.arrow), be = se ? d === "y" ? se.clientTop || 0 : se.clientLeft || 0 : 0, we = (k = R?.[d]) != null ? k : 0, Le = N + ie - we - be, Ne = N + Be - we, Ee = je(u ? Xe(B, Le) : B, N, u ? ge(K, Ne) : K);
699
- b[d] = Ee, L[d] = Ee - N;
700
- }
701
- if (s) {
702
- var Re, Ze = d === "x" ? H : U, _e = d === "x" ? X : G, ee = b[y], pe = y === "y" ? "height" : "width", We = ee + h[Ze], le = ee - h[_e], he = [H, U].indexOf(x) !== -1, I = (Re = R?.[y]) != null ? Re : 0, ce = he ? We : ee - P[pe] - C[pe] - I + M.altAxis, te = he ? ee + P[pe] + C[pe] - I - M.altAxis : le, fe = u && he ? So(ce, ee, te) : je(u ? ce : We, ee, u ? te : le);
703
- b[y] = fe, L[y] = fe - ee;
704
- }
705
- e.modifiersData[r] = L;
706
- }
707
- }
708
- const lr = {
709
- name: "preventOverflow",
710
- enabled: !0,
711
- phase: "main",
712
- fn: pr,
713
- requiresIfExists: ["offset"]
714
- };
715
- function cr(t) {
716
- return {
717
- scrollLeft: t.scrollLeft,
718
- scrollTop: t.scrollTop
719
- };
720
- }
721
- function fr(t) {
722
- return t === q(t) || !Y(t) ? ct(t) : cr(t);
723
- }
724
- function ur(t) {
725
- var e = t.getBoundingClientRect(), o = xe(e.width) / t.offsetWidth || 1, r = xe(e.height) / t.offsetHeight || 1;
726
- return o !== 1 || r !== 1;
727
- }
728
- function dr(t, e, o) {
729
- o === void 0 && (o = !1);
730
- var r = Y(e), a = Y(e) && ur(e), i = ue(e), c = Te(t, a, o), s = {
731
- scrollLeft: 0,
732
- scrollTop: 0
733
- }, p = {
734
- x: 0,
735
- y: 0
736
- };
737
- return (r || !r && !o) && ((_(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
738
- ut(i)) && (s = fr(e)), Y(e) ? (p = Te(e, !0), p.x += e.clientLeft, p.y += e.clientTop) : i && (p.x = ft(i))), {
739
- x: c.left + s.scrollLeft - p.x,
740
- y: c.top + s.scrollTop - p.y,
741
- width: c.width,
742
- height: c.height
743
- };
744
- }
745
- function vr(t) {
746
- var e = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Set(), r = [];
747
- t.forEach(function(i) {
748
- e.set(i.name, i);
749
- });
750
- function a(i) {
751
- o.add(i.name);
752
- var c = [].concat(i.requires || [], i.requiresIfExists || []);
753
- c.forEach(function(s) {
754
- if (!o.has(s)) {
755
- var p = e.get(s);
756
- p && a(p);
757
- }
758
- }), r.push(i);
759
- }
760
- return t.forEach(function(i) {
761
- o.has(i.name) || a(i);
762
- }), r;
763
- }
764
- function mr(t) {
765
- var e = vr(t);
766
- return Ro.reduce(function(o, r) {
767
- return o.concat(e.filter(function(a) {
768
- return a.phase === r;
769
- }));
770
- }, []);
771
- }
772
- function hr(t) {
773
- var e;
774
- return function() {
775
- return e || (e = new Promise(function(o) {
776
- Promise.resolve().then(function() {
777
- e = void 0, o(t());
778
- });
779
- })), e;
780
- };
781
- }
782
- function gr(t) {
783
- var e = t.reduce(function(o, r) {
784
- var a = o[r.name];
785
- return o[r.name] = a ? Object.assign({}, a, r, {
786
- options: Object.assign({}, a.options, r.options),
787
- data: Object.assign({}, a.data, r.data)
788
- }) : r, o;
789
- }, {});
790
- return Object.keys(e).map(function(o) {
791
- return e[o];
792
- });
793
- }
794
- var Rt = {
795
- placement: "bottom",
796
- modifiers: [],
797
- strategy: "absolute"
798
- };
799
- function At() {
800
- for (var t = arguments.length, e = new Array(t), o = 0; o < t; o++)
801
- e[o] = arguments[o];
802
- return !e.some(function(r) {
803
- return !(r && typeof r.getBoundingClientRect == "function");
804
- });
805
- }
806
- function yr(t) {
807
- t === void 0 && (t = {});
808
- var e = t, o = e.defaultModifiers, r = o === void 0 ? [] : o, a = e.defaultOptions, i = a === void 0 ? Rt : a;
809
- return function(s, p, f) {
810
- f === void 0 && (f = i);
811
- var l = {
812
- placement: "bottom",
813
- orderedModifiers: [],
814
- options: Object.assign({}, Rt, i),
815
- modifiersData: {},
816
- elements: {
817
- reference: s,
818
- popper: p
819
- },
820
- attributes: {},
821
- styles: {}
822
- }, g = [], O = !1, u = {
823
- state: l,
824
- setOptions: function(x) {
825
- var A = typeof x == "function" ? x(l.options) : x;
826
- v(), l.options = Object.assign({}, i, l.options, A), l.scrollParents = {
827
- reference: ye(s) ? Ce(s) : s.contextElement ? Ce(s.contextElement) : [],
828
- popper: Ce(p)
829
- };
830
- var T = mr(gr([].concat(r, l.options.modifiers)));
831
- return l.orderedModifiers = T.filter(function(d) {
832
- return d.enabled;
833
- }), E(), u.update();
834
- },
835
- // Sync update – it will always be executed, even if not necessary. This
836
- // is useful for low frequency updates where sync behavior simplifies the
837
- // logic.
838
- // For high frequency updates (e.g. `resize` and `scroll` events), always
839
- // prefer the async Popper#update method
840
- forceUpdate: function() {
841
- if (!O) {
842
- var x = l.elements, A = x.reference, T = x.popper;
843
- if (At(A, T)) {
844
- l.rects = {
845
- reference: dr(A, ke(T), l.options.strategy === "fixed"),
846
- popper: pt(T)
847
- }, l.reset = !1, l.placement = l.options.placement, l.orderedModifiers.forEach(function(M) {
848
- return l.modifiersData[M.name] = Object.assign({}, M.data);
849
- });
850
- for (var d = 0; d < l.orderedModifiers.length; d++) {
851
- if (l.reset === !0) {
852
- l.reset = !1, d = -1;
853
- continue;
854
- }
855
- var y = l.orderedModifiers[d], b = y.fn, P = y.options, C = P === void 0 ? {} : P, w = y.name;
856
- typeof b == "function" && (l = b({
857
- state: l,
858
- options: C,
859
- name: w,
860
- instance: u
861
- }) || l);
862
- }
863
- }
864
- }
865
- },
866
- // Async and optimistically optimized update – it will not be executed if
867
- // not necessary (debounced to run at most once-per-tick)
868
- update: hr(function() {
869
- return new Promise(function(h) {
870
- u.forceUpdate(), h(l);
871
- });
872
- }),
873
- destroy: function() {
874
- v(), O = !0;
875
- }
876
- };
877
- if (!At(s, p))
878
- return u;
879
- u.setOptions(f).then(function(h) {
880
- !O && f.onFirstUpdate && f.onFirstUpdate(h);
881
- });
882
- function E() {
883
- l.orderedModifiers.forEach(function(h) {
884
- var x = h.name, A = h.options, T = A === void 0 ? {} : A, d = h.effect;
885
- if (typeof d == "function") {
886
- var y = d({
887
- state: l,
888
- name: x,
889
- instance: u,
890
- options: T
891
- }), b = function() {
892
- };
893
- g.push(y || b);
894
- }
895
- });
896
- }
897
- function v() {
898
- g.forEach(function(h) {
899
- return h();
900
- }), g = [];
901
- }
902
- return u;
903
- };
904
- }
905
- var br = [Uo, ir, Fo, jo, nr, _o, lr, Lo, tr], wr = /* @__PURE__ */ yr({
906
- defaultModifiers: br
907
- });
908
- function Or(t) {
909
- return jt("MuiPopper", t);
910
- }
911
- Ct("MuiPopper", ["root"]);
912
- function xr(t, e) {
913
- if (e === "ltr")
914
- return t;
915
- switch (t) {
916
- case "bottom-end":
917
- return "bottom-start";
918
- case "bottom-start":
919
- return "bottom-end";
920
- case "top-end":
921
- return "top-start";
922
- case "top-start":
923
- return "top-end";
924
- default:
925
- return t;
926
- }
927
- }
928
- function Ge(t) {
929
- return typeof t == "function" ? t() : t;
930
- }
931
- function Qe(t) {
932
- return t.nodeType !== void 0;
933
- }
934
- function Tr(t) {
935
- return !Qe(t);
936
- }
937
- const Pr = (t) => {
938
- const {
939
- classes: e
940
- } = t;
941
- return $t({
942
- root: ["root"]
943
- }, Or, e);
944
- }, Er = {}, Rr = /* @__PURE__ */ j.forwardRef(function(e, o) {
945
- const {
946
- anchorEl: r,
947
- children: a,
948
- direction: i,
949
- disablePortal: c,
950
- modifiers: s,
951
- open: p,
952
- placement: f,
953
- popperOptions: l,
954
- popperRef: g,
955
- slotProps: O = {},
956
- slots: u = {},
957
- TransitionProps: E,
958
- // @ts-ignore internal logic
959
- ownerState: v,
960
- // prevent from spreading to DOM, it can come from the parent component e.g. Select.
961
- ...h
962
- } = e, x = j.useRef(null), A = ot(x, o), T = j.useRef(null), d = ot(T, g), y = j.useRef(d);
963
- ht(() => {
964
- y.current = d;
965
- }, [d]), j.useImperativeHandle(g, () => T.current, []);
966
- const b = xr(f, i), [P, C] = j.useState(b), [w, M] = j.useState(Ge(r));
967
- j.useEffect(() => {
968
- T.current && T.current.forceUpdate();
969
- }), j.useEffect(() => {
970
- r && M(Ge(r));
971
- }, [r]), ht(() => {
972
- if (!w || !p)
973
- return;
974
- const z = (B) => {
975
- C(B.placement);
976
- };
977
- if (process.env.NODE_ENV !== "production" && w && Qe(w) && w.nodeType === 1) {
978
- const B = w.getBoundingClientRect();
979
- Bt() && B.top === 0 && B.left === 0 && B.right === 0 && B.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
980
- `));
981
- }
982
- let S = [{
983
- name: "preventOverflow",
984
- options: {
985
- altBoundary: c
986
- }
987
- }, {
988
- name: "flip",
989
- options: {
990
- altBoundary: c
991
- }
992
- }, {
993
- name: "onUpdate",
994
- enabled: !0,
995
- phase: "afterWrite",
996
- fn: ({
997
- state: B
998
- }) => {
999
- z(B);
1000
- }
1001
- }];
1002
- s != null && (S = S.concat(s)), l && l.modifiers != null && (S = S.concat(l.modifiers));
1003
- const N = wr(w, x.current, {
1004
- placement: b,
1005
- ...l,
1006
- modifiers: S
1007
- });
1008
- return y.current(N), () => {
1009
- N.destroy(), y.current(null);
1010
- };
1011
- }, [w, c, s, p, l, b]);
1012
- const R = {
1013
- placement: P
1014
- };
1015
- E !== null && (R.TransitionProps = E);
1016
- const L = Pr(e), k = u.root ?? "div", $ = so({
1017
- elementType: k,
1018
- externalSlotProps: O.root,
1019
- externalForwardedProps: h,
1020
- additionalProps: {
1021
- role: "tooltip",
1022
- ref: A
33
+ o.style.top = `${s.top}px`, o.style.left = `${s.left}px`;
1023
34
  },
1024
- ownerState: e,
1025
- className: L.root
1026
- });
1027
- return /* @__PURE__ */ oe(k, {
1028
- ...$,
1029
- children: typeof a == "function" ? a(R) : a
1030
- });
1031
- }), Yt = /* @__PURE__ */ j.forwardRef(function(e, o) {
1032
- const {
1033
- anchorEl: r,
1034
- children: a,
1035
- container: i,
1036
- direction: c = "ltr",
1037
- disablePortal: s = !1,
1038
- keepMounted: p = !1,
1039
- modifiers: f,
1040
- open: l,
1041
- placement: g = "bottom",
1042
- popperOptions: O = Er,
1043
- popperRef: u,
1044
- style: E,
1045
- transition: v = !1,
1046
- slotProps: h = {},
1047
- slots: x = {},
1048
- ...A
1049
- } = e, [T, d] = j.useState(!0), y = () => {
1050
- d(!1);
1051
- }, b = () => {
1052
- d(!0);
1053
- };
1054
- if (!p && !l && (!v || T))
1055
- return null;
1056
- let P;
1057
- if (i)
1058
- P = i;
1059
- else if (r) {
1060
- const M = Ge(r);
1061
- P = M && Qe(M) ? mt(M).body : mt(null).body;
1062
- }
1063
- const C = !l && p && (!v || T) ? "none" : void 0, w = v ? {
1064
- in: l,
1065
- onEnter: y,
1066
- onExited: b
1067
- } : void 0;
1068
- return /* @__PURE__ */ oe(io, {
1069
- disablePortal: s,
1070
- container: P,
1071
- children: /* @__PURE__ */ oe(Rr, {
1072
- anchorEl: r,
1073
- direction: c,
1074
- disablePortal: s,
1075
- modifiers: f,
1076
- ref: o,
1077
- open: v ? !T : l,
1078
- placement: g,
1079
- popperOptions: O,
1080
- popperRef: u,
1081
- slotProps: h,
1082
- slots: x,
1083
- ...A,
1084
- style: {
1085
- // Prevents scroll issue, waiting for Popper.js to add this style once initiated.
1086
- position: "fixed",
1087
- // Fix Popper.js display issue
1088
- top: 0,
1089
- left: 0,
1090
- display: C,
1091
- ...E
1092
- },
1093
- TransitionProps: w,
1094
- children: a
1095
- })
1096
- });
1097
- });
1098
- process.env.NODE_ENV !== "production" && (Yt.propTypes = {
1099
- // ┌────────────────────────────── Warning ──────────────────────────────┐
1100
- // │ These PropTypes are generated from the TypeScript type definitions. │
1101
- // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
1102
- // └─────────────────────────────────────────────────────────────────────┘
1103
- /**
1104
- * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
1105
- * or a function that returns either.
1106
- * It's used to set the position of the popper.
1107
- * The return value will passed as the reference object of the Popper instance.
1108
- */
1109
- anchorEl: ro(n.oneOfType([Ye, n.object, n.func]), (t) => {
1110
- if (t.open) {
1111
- const e = Ge(t.anchorEl);
1112
- if (e && Qe(e) && e.nodeType === 1) {
1113
- const o = e.getBoundingClientRect();
1114
- if (process.env.NODE_ENV !== "production" && Bt() && o.top === 0 && o.left === 0 && o.right === 0 && o.bottom === 0)
1115
- return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
1116
- `));
1117
- } else if (!e || typeof e.getBoundingClientRect != "function" || Tr(e) && e.contextElement != null && e.contextElement.nodeType !== 1)
1118
- return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "It should be an HTML element instance or a virtualElement ", "(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
1119
- `));
1120
- }
1121
- return null;
1122
- }),
1123
- /**
1124
- * Popper render function or node.
1125
- */
1126
- children: n.oneOfType([n.node, n.func]),
1127
- /**
1128
- * An HTML element or function that returns one.
1129
- * The `container` will have the portal children appended to it.
1130
- *
1131
- * You can also provide a callback, which is called in a React layout effect.
1132
- * This lets you set the container from a ref, and also makes server-side rendering possible.
1133
- *
1134
- * By default, it uses the body of the top-level document object,
1135
- * so it's simply `document.body` most of the time.
1136
- */
1137
- container: n.oneOfType([Ye, n.func]),
1138
- /**
1139
- * Direction of the text.
1140
- * @default 'ltr'
1141
- */
1142
- direction: n.oneOf(["ltr", "rtl"]),
1143
- /**
1144
- * The `children` will be under the DOM hierarchy of the parent component.
1145
- * @default false
1146
- */
1147
- disablePortal: n.bool,
1148
- /**
1149
- * Always keep the children in the DOM.
1150
- * This prop can be useful in SEO situation or
1151
- * when you want to maximize the responsiveness of the Popper.
1152
- * @default false
1153
- */
1154
- keepMounted: n.bool,
1155
- /**
1156
- * Popper.js is based on a "plugin-like" architecture,
1157
- * most of its features are fully encapsulated "modifiers".
1158
- *
1159
- * A modifier is a function that is called each time Popper.js needs to
1160
- * compute the position of the popper.
1161
- * For this reason, modifiers should be very performant to avoid bottlenecks.
1162
- * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
1163
- */
1164
- modifiers: n.arrayOf(n.shape({
1165
- data: n.object,
1166
- effect: n.func,
1167
- enabled: n.bool,
1168
- fn: n.func,
1169
- name: n.any,
1170
- options: n.object,
1171
- phase: n.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
1172
- requires: n.arrayOf(n.string),
1173
- requiresIfExists: n.arrayOf(n.string)
1174
- })),
1175
- /**
1176
- * If `true`, the component is shown.
1177
- */
1178
- open: n.bool.isRequired,
1179
- /**
1180
- * Popper placement.
1181
- * @default 'bottom'
1182
- */
1183
- placement: n.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1184
- /**
1185
- * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
1186
- * @default {}
1187
- */
1188
- popperOptions: n.shape({
1189
- modifiers: n.array,
1190
- onFirstUpdate: n.func,
1191
- placement: n.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1192
- strategy: n.oneOf(["absolute", "fixed"])
1193
- }),
1194
- /**
1195
- * A ref that points to the used popper instance.
1196
- */
1197
- popperRef: Lt,
1198
- /**
1199
- * The props used for each slot inside the Popper.
1200
- * @default {}
1201
- */
1202
- slotProps: n.shape({
1203
- root: n.oneOfType([n.func, n.object])
1204
- }),
1205
- /**
1206
- * The components used for each slot inside the Popper.
1207
- * Either a string to use a HTML element or a component.
1208
- * @default {}
1209
- */
1210
- slots: n.shape({
1211
- root: n.elementType
1212
- }),
1213
- /**
1214
- * Help supporting a react-transition-group/Transition component.
1215
- * @default false
1216
- */
1217
- transition: n.bool
1218
- });
1219
- const Ar = Ke(Yt, {
1220
- name: "MuiPopper",
1221
- slot: "Root"
1222
- })({}), dt = /* @__PURE__ */ j.forwardRef(function(e, o) {
1223
- const r = St(), a = Dt({
1224
- props: e,
1225
- name: "MuiPopper"
1226
- }), {
1227
- anchorEl: i,
1228
- component: c,
1229
- container: s,
1230
- disablePortal: p,
1231
- keepMounted: f,
1232
- modifiers: l,
1233
- open: g,
1234
- placement: O,
1235
- popperOptions: u,
1236
- popperRef: E,
1237
- transition: v,
1238
- slots: h,
1239
- slotProps: x,
1240
- ...A
1241
- } = a, T = {
1242
- anchorEl: i,
1243
- container: s,
1244
- disablePortal: p,
1245
- keepMounted: f,
1246
- modifiers: l,
1247
- open: g,
1248
- placement: O,
1249
- popperOptions: u,
1250
- popperRef: E,
1251
- transition: v,
1252
- ...A
1253
- };
1254
- return /* @__PURE__ */ oe(Ar, {
1255
- as: c,
1256
- direction: r ? "rtl" : "ltr",
1257
- slots: h,
1258
- slotProps: x,
1259
- ...T,
1260
- ref: o
1261
- });
1262
- });
1263
- process.env.NODE_ENV !== "production" && (dt.propTypes = {
1264
- // ┌────────────────────────────── Warning ──────────────────────────────┐
1265
- // │ These PropTypes are generated from the TypeScript type definitions. │
1266
- // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
1267
- // └─────────────────────────────────────────────────────────────────────┘
1268
- /**
1269
- * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
1270
- * or a function that returns either.
1271
- * It's used to set the position of the popper.
1272
- * The return value will passed as the reference object of the Popper instance.
1273
- */
1274
- anchorEl: n.oneOfType([Ye, n.object, n.func]),
1275
- /**
1276
- * Popper render function or node.
1277
- */
1278
- children: n.oneOfType([n.node, n.func]),
1279
- /**
1280
- * The component used for the root node.
1281
- * Either a string to use a HTML element or a component.
1282
- */
1283
- component: n.elementType,
1284
- /**
1285
- * An HTML element or function that returns one.
1286
- * The `container` will have the portal children appended to it.
1287
- *
1288
- * You can also provide a callback, which is called in a React layout effect.
1289
- * This lets you set the container from a ref, and also makes server-side rendering possible.
1290
- *
1291
- * By default, it uses the body of the top-level document object,
1292
- * so it's simply `document.body` most of the time.
1293
- */
1294
- container: n.oneOfType([Ye, n.func]),
1295
- /**
1296
- * The `children` will be under the DOM hierarchy of the parent component.
1297
- * @default false
1298
- */
1299
- disablePortal: n.bool,
1300
- /**
1301
- * Always keep the children in the DOM.
1302
- * This prop can be useful in SEO situation or
1303
- * when you want to maximize the responsiveness of the Popper.
1304
- * @default false
1305
- */
1306
- keepMounted: n.bool,
1307
- /**
1308
- * Popper.js is based on a "plugin-like" architecture,
1309
- * most of its features are fully encapsulated "modifiers".
1310
- *
1311
- * A modifier is a function that is called each time Popper.js needs to
1312
- * compute the position of the popper.
1313
- * For this reason, modifiers should be very performant to avoid bottlenecks.
1314
- * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
1315
- */
1316
- modifiers: n.arrayOf(n.shape({
1317
- data: n.object,
1318
- effect: n.func,
1319
- enabled: n.bool,
1320
- fn: n.func,
1321
- name: n.any,
1322
- options: n.object,
1323
- phase: n.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
1324
- requires: n.arrayOf(n.string),
1325
- requiresIfExists: n.arrayOf(n.string)
1326
- })),
1327
- /**
1328
- * If `true`, the component is shown.
1329
- */
1330
- open: n.bool.isRequired,
1331
- /**
1332
- * Popper placement.
1333
- * @default 'bottom'
1334
- */
1335
- placement: n.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1336
- /**
1337
- * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
1338
- * @default {}
1339
- */
1340
- popperOptions: n.shape({
1341
- modifiers: n.array,
1342
- onFirstUpdate: n.func,
1343
- placement: n.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1344
- strategy: n.oneOf(["absolute", "fixed"])
1345
- }),
1346
- /**
1347
- * A ref that points to the used popper instance.
1348
- */
1349
- popperRef: Lt,
1350
- /**
1351
- * The props used for each slot inside the Popper.
1352
- * @default {}
1353
- */
1354
- slotProps: n.shape({
1355
- root: n.oneOfType([n.func, n.object])
1356
- }),
1357
- /**
1358
- * The components used for each slot inside the Popper.
1359
- * Either a string to use a HTML element or a component.
1360
- * @default {}
1361
- */
1362
- slots: n.shape({
1363
- root: n.elementType
1364
- }),
1365
- /**
1366
- * The system prop that allows defining system overrides as well as additional CSS styles.
1367
- */
1368
- sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
1369
- /**
1370
- * Help supporting a react-transition-group/Transition component.
1371
- * @default false
1372
- */
1373
- transition: n.bool
1374
- });
1375
- function Mr(t) {
1376
- return jt("MuiTooltip", t);
1377
- }
1378
- const D = Ct("MuiTooltip", ["popper", "popperInteractive", "popperArrow", "popperClose", "tooltip", "tooltipArrow", "touch", "tooltipPlacementLeft", "tooltipPlacementRight", "tooltipPlacementTop", "tooltipPlacementBottom", "arrow"]);
1379
- function jr(t) {
1380
- return Math.round(t * 1e5) / 1e5;
1381
- }
1382
- const Cr = (t) => {
1383
- const {
1384
- classes: e,
1385
- disableInteractive: o,
1386
- arrow: r,
1387
- touch: a,
1388
- placement: i
1389
- } = t, c = {
1390
- popper: ["popper", !o && "popperInteractive", r && "popperArrow"],
1391
- tooltip: ["tooltip", r && "tooltipArrow", a && "touch", `tooltipPlacement${kt(i.split("-")[0])}`],
1392
- arrow: ["arrow"]
1393
- };
1394
- return $t(c, Mr, e);
1395
- }, $r = Ke(dt, {
1396
- name: "MuiTooltip",
1397
- slot: "Popper",
1398
- overridesResolver: (t, e) => {
1399
- const {
1400
- ownerState: o
1401
- } = t;
1402
- return [e.popper, !o.disableInteractive && e.popperInteractive, o.arrow && e.popperArrow, !o.open && e.popperClose];
1403
- }
1404
- })(at(({
1405
- theme: t
1406
- }) => ({
1407
- zIndex: (t.vars || t).zIndex.tooltip,
1408
- pointerEvents: "none",
1409
- variants: [{
1410
- props: ({
1411
- ownerState: e
1412
- }) => !e.disableInteractive,
1413
- style: {
1414
- pointerEvents: "auto"
1415
- }
1416
- }, {
1417
- props: ({
1418
- open: e
1419
- }) => !e,
1420
- style: {
1421
- pointerEvents: "none"
1422
- }
1423
- }, {
1424
- props: ({
1425
- ownerState: e
1426
- }) => e.arrow,
1427
- style: {
1428
- [`&[data-popper-placement*="bottom"] .${D.arrow}`]: {
1429
- top: 0,
1430
- marginTop: "-0.71em",
1431
- "&::before": {
1432
- transformOrigin: "0 100%"
1433
- }
35
+ [u]
36
+ ), h = l[`arrow-${u}`], x = T && !!i;
37
+ return /* @__PURE__ */ _(d, { children: [
38
+ R(r, {
39
+ ref: (o) => {
40
+ t.current = o;
41
+ const s = r.ref;
42
+ B(s, o);
1434
43
  },
1435
- [`&[data-popper-placement*="top"] .${D.arrow}`]: {
1436
- bottom: 0,
1437
- marginBottom: "-0.71em",
1438
- "&::before": {
1439
- transformOrigin: "100% 0"
1440
- }
44
+ onMouseEnter: (o) => {
45
+ f(o.currentTarget), r.props?.onMouseEnter?.(o);
1441
46
  },
1442
- [`&[data-popper-placement*="right"] .${D.arrow}`]: {
1443
- height: "1em",
1444
- width: "0.71em",
1445
- "&::before": {
1446
- transformOrigin: "100% 100%"
1447
- }
47
+ onMouseLeave: (o) => {
48
+ m(), r.props?.onMouseLeave?.(o);
1448
49
  },
1449
- [`&[data-popper-placement*="left"] .${D.arrow}`]: {
1450
- height: "1em",
1451
- width: "0.71em",
1452
- "&::before": {
1453
- transformOrigin: "0 0"
1454
- }
1455
- }
1456
- }
1457
- }, {
1458
- props: ({
1459
- ownerState: e
1460
- }) => e.arrow && !e.isRtl,
1461
- style: {
1462
- [`&[data-popper-placement*="right"] .${D.arrow}`]: {
1463
- left: 0,
1464
- marginLeft: "-0.71em"
1465
- }
1466
- }
1467
- }, {
1468
- props: ({
1469
- ownerState: e
1470
- }) => e.arrow && !!e.isRtl,
1471
- style: {
1472
- [`&[data-popper-placement*="right"] .${D.arrow}`]: {
1473
- right: 0,
1474
- marginRight: "-0.71em"
1475
- }
1476
- }
1477
- }, {
1478
- props: ({
1479
- ownerState: e
1480
- }) => e.arrow && !e.isRtl,
1481
- style: {
1482
- [`&[data-popper-placement*="left"] .${D.arrow}`]: {
1483
- right: 0,
1484
- marginRight: "-0.71em"
1485
- }
1486
- }
1487
- }, {
1488
- props: ({
1489
- ownerState: e
1490
- }) => e.arrow && !!e.isRtl,
1491
- style: {
1492
- [`&[data-popper-placement*="left"] .${D.arrow}`]: {
1493
- left: 0,
1494
- marginLeft: "-0.71em"
1495
- }
1496
- }
1497
- }]
1498
- }))), Sr = Ke("div", {
1499
- name: "MuiTooltip",
1500
- slot: "Tooltip",
1501
- overridesResolver: (t, e) => {
1502
- const {
1503
- ownerState: o
1504
- } = t;
1505
- return [e.tooltip, o.touch && e.touch, o.arrow && e.tooltipArrow, e[`tooltipPlacement${kt(o.placement.split("-")[0])}`]];
1506
- }
1507
- })(at(({
1508
- theme: t
1509
- }) => ({
1510
- backgroundColor: t.vars ? t.vars.palette.Tooltip.bg : t.alpha(t.palette.grey[700], 0.92),
1511
- borderRadius: (t.vars || t).shape.borderRadius,
1512
- color: (t.vars || t).palette.common.white,
1513
- fontFamily: t.typography.fontFamily,
1514
- padding: "4px 8px",
1515
- fontSize: t.typography.pxToRem(11),
1516
- maxWidth: 300,
1517
- margin: 2,
1518
- wordWrap: "break-word",
1519
- fontWeight: t.typography.fontWeightMedium,
1520
- [`.${D.popper}[data-popper-placement*="left"] &`]: {
1521
- transformOrigin: "right center"
1522
- },
1523
- [`.${D.popper}[data-popper-placement*="right"] &`]: {
1524
- transformOrigin: "left center"
1525
- },
1526
- [`.${D.popper}[data-popper-placement*="top"] &`]: {
1527
- transformOrigin: "center bottom",
1528
- marginBottom: "14px"
1529
- },
1530
- [`.${D.popper}[data-popper-placement*="bottom"] &`]: {
1531
- transformOrigin: "center top",
1532
- marginTop: "14px"
1533
- },
1534
- variants: [{
1535
- props: ({
1536
- ownerState: e
1537
- }) => e.arrow,
1538
- style: {
1539
- position: "relative",
1540
- margin: 0
1541
- }
1542
- }, {
1543
- props: ({
1544
- ownerState: e
1545
- }) => e.touch,
1546
- style: {
1547
- padding: "8px 16px",
1548
- fontSize: t.typography.pxToRem(14),
1549
- lineHeight: `${jr(16 / 14)}em`,
1550
- fontWeight: t.typography.fontWeightRegular
1551
- }
1552
- }, {
1553
- props: ({
1554
- ownerState: e
1555
- }) => !e.isRtl,
1556
- style: {
1557
- [`.${D.popper}[data-popper-placement*="left"] &`]: {
1558
- marginRight: "14px"
1559
- },
1560
- [`.${D.popper}[data-popper-placement*="right"] &`]: {
1561
- marginLeft: "14px"
1562
- }
1563
- }
1564
- }, {
1565
- props: ({
1566
- ownerState: e
1567
- }) => !e.isRtl && e.touch,
1568
- style: {
1569
- [`.${D.popper}[data-popper-placement*="left"] &`]: {
1570
- marginRight: "24px"
1571
- },
1572
- [`.${D.popper}[data-popper-placement*="right"] &`]: {
1573
- marginLeft: "24px"
1574
- }
1575
- }
1576
- }, {
1577
- props: ({
1578
- ownerState: e
1579
- }) => !!e.isRtl,
1580
- style: {
1581
- [`.${D.popper}[data-popper-placement*="left"] &`]: {
1582
- marginLeft: "14px"
1583
- },
1584
- [`.${D.popper}[data-popper-placement*="right"] &`]: {
1585
- marginRight: "14px"
1586
- }
1587
- }
1588
- }, {
1589
- props: ({
1590
- ownerState: e
1591
- }) => !!e.isRtl && e.touch,
1592
- style: {
1593
- [`.${D.popper}[data-popper-placement*="left"] &`]: {
1594
- marginLeft: "24px"
1595
- },
1596
- [`.${D.popper}[data-popper-placement*="right"] &`]: {
1597
- marginRight: "24px"
1598
- }
1599
- }
1600
- }, {
1601
- props: ({
1602
- ownerState: e
1603
- }) => e.touch,
1604
- style: {
1605
- [`.${D.popper}[data-popper-placement*="top"] &`]: {
1606
- marginBottom: "24px"
1607
- }
1608
- }
1609
- }, {
1610
- props: ({
1611
- ownerState: e
1612
- }) => e.touch,
1613
- style: {
1614
- [`.${D.popper}[data-popper-placement*="bottom"] &`]: {
1615
- marginTop: "24px"
1616
- }
1617
- }
1618
- }]
1619
- }))), Dr = Ke("span", {
1620
- name: "MuiTooltip",
1621
- slot: "Arrow"
1622
- })(at(({
1623
- theme: t
1624
- }) => ({
1625
- overflow: "hidden",
1626
- position: "absolute",
1627
- width: "1em",
1628
- height: "0.71em",
1629
- boxSizing: "border-box",
1630
- color: t.vars ? t.vars.palette.Tooltip.bg : t.alpha(t.palette.grey[700], 0.9),
1631
- "&::before": {
1632
- content: '""',
1633
- margin: "auto",
1634
- display: "block",
1635
- width: "100%",
1636
- height: "100%",
1637
- backgroundColor: "currentColor",
1638
- transform: "rotate(45deg)"
1639
- }
1640
- })));
1641
- let Ve = !1;
1642
- const Mt = new uo();
1643
- let Me = {
1644
- x: 0,
1645
- y: 0
1646
- };
1647
- function qe(t, e) {
1648
- return (o, ...r) => {
1649
- e && e(o, ...r), t(o, ...r);
1650
- };
1651
- }
1652
- const Xt = /* @__PURE__ */ j.forwardRef(function(e, o) {
1653
- const r = Dt({
1654
- props: e,
1655
- name: "MuiTooltip"
1656
- }), {
1657
- arrow: a = !1,
1658
- children: i,
1659
- classes: c,
1660
- describeChild: s = !1,
1661
- disableFocusListener: p = !1,
1662
- disableHoverListener: f = !1,
1663
- disableInteractive: l = !1,
1664
- disableTouchListener: g = !1,
1665
- enterDelay: O = 100,
1666
- enterNextDelay: u = 0,
1667
- enterTouchDelay: E = 700,
1668
- followCursor: v = !1,
1669
- id: h,
1670
- leaveDelay: x = 0,
1671
- leaveTouchDelay: A = 1500,
1672
- onClose: T,
1673
- onOpen: d,
1674
- open: y,
1675
- placement: b = "bottom",
1676
- slotProps: P = {},
1677
- slots: C = {},
1678
- title: w,
1679
- ...M
1680
- } = r, R = /* @__PURE__ */ j.isValidElement(i) ? i : /* @__PURE__ */ oe("span", {
1681
- children: i
1682
- }), L = po(), k = St(), [$, z] = j.useState(), [S, N] = j.useState(null), B = j.useRef(!1), K = l || v, de = He(), ve = He(), Q = He(), me = He(), [ne, J] = no({
1683
- controlled: y,
1684
- default: !1,
1685
- name: "Tooltip",
1686
- state: "open"
1687
- });
1688
- let W = ne;
1689
- if (process.env.NODE_ENV !== "production") {
1690
- const {
1691
- current: m
1692
- } = j.useRef(y !== void 0);
1693
- j.useEffect(() => {
1694
- $ && $.disabled && !m && w !== "" && $.tagName.toLowerCase() === "button" && console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.", "A disabled element does not fire events.", "Tooltip needs to listen to the child element's events to display the title.", "", "Add a simple wrapper element, such as a `span`."].join(`
1695
- `));
1696
- }, [w, $, m]);
1697
- }
1698
- const ae = lo(h), V = j.useRef(), ie = gt(() => {
1699
- V.current !== void 0 && (document.body.style.WebkitUserSelect = V.current, V.current = void 0), me.clear();
1700
- });
1701
- j.useEffect(() => ie, [ie]);
1702
- const Be = (m) => {
1703
- Mt.clear(), Ve = !0, J(!0), d && !W && d(m);
1704
- }, se = gt(
1705
- /**
1706
- * @param {React.SyntheticEvent | Event} event
1707
- */
1708
- (m) => {
1709
- Mt.start(800 + x, () => {
1710
- Ve = !1;
1711
- }), J(!1), T && W && T(m), de.start(L.transitions.duration.shortest, () => {
1712
- B.current = !1;
1713
- });
1714
- }
1715
- ), be = (m) => {
1716
- B.current && m.type !== "touchstart" || ($ && $.removeAttribute("title"), ve.clear(), Q.clear(), O || Ve && u ? ve.start(Ve ? u : O, () => {
1717
- Be(m);
1718
- }) : Be(m));
1719
- }, we = (m) => {
1720
- ve.clear(), Q.start(x, () => {
1721
- se(m);
1722
- });
1723
- }, [, Le] = j.useState(!1), Ne = (m) => {
1724
- const F = m?.target ?? $;
1725
- if (!F || !yt(F)) {
1726
- Le(!1);
1727
- const tt = m ?? new Event("blur");
1728
- !m && F && (Object.defineProperty(tt, "target", {
1729
- value: F
1730
- }), Object.defineProperty(tt, "currentTarget", {
1731
- value: F
1732
- })), we(tt);
1733
- }
1734
- }, Ee = (m) => {
1735
- $ || z(m.currentTarget), yt(m.target) && (Le(!0), be(m));
1736
- }, Re = (m) => {
1737
- B.current = !0;
1738
- const F = R.props;
1739
- F.onTouchStart && F.onTouchStart(m);
1740
- }, Ze = (m) => {
1741
- Re(m), Q.clear(), de.clear(), ie(), V.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", me.start(E, () => {
1742
- document.body.style.WebkitUserSelect = V.current, be(m);
1743
- });
1744
- }, _e = (m) => {
1745
- R.props.onTouchEnd && R.props.onTouchEnd(m), ie(), Q.start(A, () => {
1746
- se(m);
1747
- });
1748
- };
1749
- j.useEffect(() => {
1750
- if (!W)
1751
- return;
1752
- function m(F) {
1753
- F.key === "Escape" && se(F);
1754
- }
1755
- return document.addEventListener("keydown", m), () => {
1756
- document.removeEventListener("keydown", m);
1757
- };
1758
- }, [se, W]);
1759
- const ee = ot(co(R), z, o);
1760
- !w && w !== 0 && (W = !1);
1761
- const pe = j.useRef(), We = (m) => {
1762
- const F = R.props;
1763
- F.onMouseMove && F.onMouseMove(m), Me = {
1764
- x: m.clientX,
1765
- y: m.clientY
1766
- }, pe.current && pe.current.update();
1767
- }, le = {}, he = typeof w == "string";
1768
- s ? (le.title = !W && he && !f ? w : null, le["aria-describedby"] = W ? ae : null) : (le["aria-label"] = he ? w : null, le["aria-labelledby"] = W && !he ? ae : null);
1769
- const I = {
1770
- ...le,
1771
- ...M,
1772
- ...R.props,
1773
- className: ao(M.className, R.props.className),
1774
- onTouchStart: Re,
1775
- ref: ee,
1776
- ...v ? {
1777
- onMouseMove: We
1778
- } : {}
1779
- };
1780
- process.env.NODE_ENV !== "production" && (I["data-mui-internal-clone-element"] = !0, j.useEffect(() => {
1781
- $ && !$.getAttribute("data-mui-internal-clone-element") && console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.", "Please make sure that props are spread on the same element that the ref is applied to."].join(`
1782
- `));
1783
- }, [$]));
1784
- const ce = {};
1785
- g || (I.onTouchStart = Ze, I.onTouchEnd = _e), f || (I.onMouseOver = qe(be, I.onMouseOver), I.onMouseLeave = qe(we, I.onMouseLeave), K || (ce.onMouseOver = be, ce.onMouseLeave = we)), p || (I.onFocus = qe(Ee, I.onFocus), I.onBlur = qe(Ne, I.onBlur), K || (ce.onFocus = Ee, ce.onBlur = Ne)), process.env.NODE_ENV !== "production" && R.props.title && console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.", `Remove this title prop \`${R.props.title}\` or the Tooltip component.`].join(`
1786
- `));
1787
- const te = {
1788
- ...r,
1789
- isRtl: k,
1790
- arrow: a,
1791
- disableInteractive: K,
1792
- placement: b,
1793
- touch: B.current
1794
- }, fe = typeof P.popper == "function" ? P.popper(te) : P.popper, Gt = j.useMemo(() => {
1795
- let m = [{
1796
- name: "arrow",
1797
- enabled: !!S,
1798
- options: {
1799
- element: S,
1800
- padding: 4
1801
- }
1802
- }];
1803
- return fe?.popperOptions?.modifiers && (m = m.concat(fe.popperOptions.modifiers)), {
1804
- ...fe?.popperOptions,
1805
- modifiers: m
1806
- };
1807
- }, [S, fe?.popperOptions]), et = Cr(te), Ie = {
1808
- slots: C,
1809
- slotProps: {
1810
- arrow: P.arrow,
1811
- popper: fe,
1812
- tooltip: P.tooltip,
1813
- transition: P.transition
1814
- }
1815
- }, [Kt, Jt] = Fe("popper", {
1816
- elementType: $r,
1817
- externalForwardedProps: Ie,
1818
- ownerState: te,
1819
- className: et.popper
1820
- }), [Qt, Zt] = Fe("transition", {
1821
- elementType: fo,
1822
- externalForwardedProps: Ie,
1823
- ownerState: te
1824
- }), [_t, eo] = Fe("tooltip", {
1825
- elementType: Sr,
1826
- className: et.tooltip,
1827
- externalForwardedProps: Ie,
1828
- ownerState: te
1829
- }), [to, oo] = Fe("arrow", {
1830
- elementType: Dr,
1831
- className: et.arrow,
1832
- externalForwardedProps: Ie,
1833
- ownerState: te,
1834
- ref: N
1835
- });
1836
- return /* @__PURE__ */ vt(j.Fragment, {
1837
- children: [/* @__PURE__ */ j.cloneElement(R, I), /* @__PURE__ */ oe(Kt, {
1838
- as: dt,
1839
- placement: b,
1840
- anchorEl: v ? {
1841
- getBoundingClientRect: () => ({
1842
- top: Me.y,
1843
- left: Me.x,
1844
- right: Me.x,
1845
- bottom: Me.y,
1846
- width: 0,
1847
- height: 0
1848
- })
1849
- } : $,
1850
- popperRef: pe,
1851
- open: $ ? W : !1,
1852
- id: ae,
1853
- transition: !0,
1854
- ...ce,
1855
- ...Jt,
1856
- popperOptions: Gt,
1857
- children: ({
1858
- TransitionProps: m
1859
- }) => /* @__PURE__ */ oe(Qt, {
1860
- timeout: L.transitions.duration.shorter,
1861
- ...m,
1862
- ...Zt,
1863
- children: /* @__PURE__ */ vt(_t, {
1864
- ...eo,
1865
- children: [w, a ? /* @__PURE__ */ oe(to, {
1866
- ...oo
1867
- }) : null]
1868
- })
1869
- })
1870
- })]
1871
- });
1872
- });
1873
- process.env.NODE_ENV !== "production" && (Xt.propTypes = {
1874
- // ┌────────────────────────────── Warning ──────────────────────────────┐
1875
- // │ These PropTypes are generated from the TypeScript type definitions. │
1876
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
1877
- // └─────────────────────────────────────────────────────────────────────┘
1878
- /**
1879
- * If `true`, adds an arrow to the tooltip.
1880
- * @default false
1881
- */
1882
- arrow: n.bool,
1883
- /**
1884
- * Tooltip reference element.
1885
- */
1886
- children: vo.isRequired,
1887
- /**
1888
- * Override or extend the styles applied to the component.
1889
- */
1890
- classes: n.object,
1891
- /**
1892
- * @ignore
1893
- */
1894
- className: n.string,
1895
- /**
1896
- * Set to `true` if the `title` acts as an accessible description.
1897
- * By default the `title` acts as an accessible label for the child.
1898
- * @default false
1899
- */
1900
- describeChild: n.bool,
1901
- /**
1902
- * Do not respond to focus-visible events.
1903
- * @default false
1904
- */
1905
- disableFocusListener: n.bool,
1906
- /**
1907
- * Do not respond to hover events.
1908
- * @default false
1909
- */
1910
- disableHoverListener: n.bool,
1911
- /**
1912
- * Makes a tooltip not interactive, i.e. it will close when the user
1913
- * hovers over the tooltip before the `leaveDelay` is expired.
1914
- * @default false
1915
- */
1916
- disableInteractive: n.bool,
1917
- /**
1918
- * Do not respond to long press touch events.
1919
- * @default false
1920
- */
1921
- disableTouchListener: n.bool,
1922
- /**
1923
- * The number of milliseconds to wait before showing the tooltip.
1924
- * This prop won't impact the enter touch delay (`enterTouchDelay`).
1925
- * @default 100
1926
- */
1927
- enterDelay: n.number,
1928
- /**
1929
- * The number of milliseconds to wait before showing the tooltip when one was already recently opened.
1930
- * @default 0
1931
- */
1932
- enterNextDelay: n.number,
1933
- /**
1934
- * The number of milliseconds a user must touch the element before showing the tooltip.
1935
- * @default 700
1936
- */
1937
- enterTouchDelay: n.number,
1938
- /**
1939
- * If `true`, the tooltip follow the cursor over the wrapped element.
1940
- * @default false
1941
- */
1942
- followCursor: n.bool,
1943
- /**
1944
- * This prop is used to help implement the accessibility logic.
1945
- * If you don't provide this prop. It falls back to a randomly generated id.
1946
- */
1947
- id: n.string,
1948
- /**
1949
- * The number of milliseconds to wait before hiding the tooltip.
1950
- * This prop won't impact the leave touch delay (`leaveTouchDelay`).
1951
- * @default 0
1952
- */
1953
- leaveDelay: n.number,
1954
- /**
1955
- * The number of milliseconds after the user stops touching an element before hiding the tooltip.
1956
- * @default 1500
1957
- */
1958
- leaveTouchDelay: n.number,
1959
- /**
1960
- * Callback fired when the component requests to be closed.
1961
- *
1962
- * @param {React.SyntheticEvent} event The event source of the callback.
1963
- */
1964
- onClose: n.func,
1965
- /**
1966
- * Callback fired when the component requests to be open.
1967
- *
1968
- * @param {React.SyntheticEvent} event The event source of the callback.
1969
- */
1970
- onOpen: n.func,
1971
- /**
1972
- * If `true`, the component is shown.
1973
- */
1974
- open: n.bool,
1975
- /**
1976
- * Tooltip placement.
1977
- * @default 'bottom'
1978
- */
1979
- placement: n.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1980
- /**
1981
- * The props used for each slot inside.
1982
- * @default {}
1983
- */
1984
- slotProps: n.shape({
1985
- arrow: n.oneOfType([n.func, n.object]),
1986
- popper: n.oneOfType([n.func, n.object]),
1987
- tooltip: n.oneOfType([n.func, n.object]),
1988
- transition: n.oneOfType([n.func, n.object])
1989
- }),
1990
- /**
1991
- * The components used for each slot inside.
1992
- * @default {}
1993
- */
1994
- slots: n.shape({
1995
- arrow: n.elementType,
1996
- popper: n.elementType,
1997
- tooltip: n.elementType,
1998
- transition: n.elementType
1999
- }),
2000
- /**
2001
- * The system prop that allows defining system overrides as well as additional CSS styles.
2002
- */
2003
- sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
2004
- /**
2005
- * Tooltip title. Zero-length titles string, undefined, null and false are never displayed.
2006
- */
2007
- title: n.node
2008
- });
2009
- function Ir({
2010
- children: t,
2011
- title: e = "",
2012
- placement: o = "bottom",
2013
- arrow: r = !0,
2014
- ...a
2015
- }) {
2016
- return /* @__PURE__ */ oe(
2017
- Xt,
2018
- {
2019
- title: e,
2020
- arrow: r,
2021
- placement: o,
2022
- slotProps: {
2023
- tooltip: {
2024
- sx: {
2025
- maxWidth: "196px",
2026
- whiteSpace: "normal",
2027
- backgroundColor: "var(--ckcl-black-350, #676666)",
2028
- color: "var(--ckcl-white, #FFFFFF)",
2029
- fontSize: "var(--ckcl-fs-3xs, 10px)",
2030
- padding: "var(--ckcl-spacing-sm, 8px) var(--ckcl-spacing-ms, 12px)",
2031
- borderRadius: "8px",
2032
- lineHeight: "var(--ckcl-leading-sm, 16px)",
2033
- borderColor: "var(--ckcl-black-350, #676666)"
2034
- }
2035
- },
2036
- arrow: {
2037
- sx: {
2038
- color: "var(--ckcl-black-350, #676666)",
2039
- fontSize: "17px"
2040
- }
2041
- }
50
+ onFocus: (o) => {
51
+ f(o.currentTarget), r.props?.onFocus?.(o);
2042
52
  },
2043
- ...a,
2044
- children: t
2045
- }
2046
- );
53
+ onBlur: (o) => {
54
+ m(), r.props?.onBlur?.(o);
55
+ }
56
+ }),
57
+ x && $(
58
+ /* @__PURE__ */ g("div", { ref: b, className: l["tooltip-portal"], children: /* @__PURE__ */ _("div", { className: l["tooltip-box"], children: [
59
+ i,
60
+ w && /* @__PURE__ */ g("span", { className: `${l.arrow} ${h}` })
61
+ ] }) }),
62
+ document.body
63
+ )
64
+ ] });
2047
65
  }
2048
66
  export {
2049
- Ir as Tooltip
67
+ L as Tooltip
2050
68
  };