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