@sisense/sdk-shared-ui 1.27.1 → 1.28.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/CheckableList-BLLCGCKX.cjs +1 -0
- package/dist/CheckableList-CC7iKnHq.js +21 -0
- package/dist/Checkbox-CrbGw8d7.js +513 -0
- package/dist/Checkbox-Dy9BTXfS.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-B1V-T6UH.cjs +1 -0
- package/dist/Icon-Cs6oGRgo.js +110 -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-LwOuESoH.js +238 -0
- package/dist/SvgIcon-SnObJHZS.cjs +1 -0
- package/dist/TablePagination-B8I5QURH.js +7929 -0
- package/dist/TablePagination-DH0TZ21v.cjs +31 -0
- package/dist/ThemeProvider-aq1EWT1u.js +5041 -0
- package/dist/ThemeProvider-sqppyE-5.cjs +114 -0
- package/dist/Tooltip-Dokek6y8.cjs +7 -0
- package/dist/Tooltip-vVc6Lxew.js +2153 -0
- package/dist/TransitionGroupContext-BlR3HYBG.cjs +4 -0
- package/dist/TransitionGroupContext-Ci_clMyv.js +120 -0
- package/dist/Typography-C891hjk2.js +497 -0
- package/dist/Typography-vldQClJj.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-CXJWSg3i.js +902 -0
- package/dist/createSvgIcon-DF4qzIJY.cjs +74 -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/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} +1 -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 +208 -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/useSlot-BfQr8KCN.js +803 -0
- package/dist/useSlot-C3-OaWva.cjs +1 -0
- package/dist/useTheme-CtIZL8WJ.js +8 -0
- package/dist/useTheme-DJmNR5EL.cjs +1 -0
- package/package.json +4 -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,803 @@
|
|
|
1
|
+
import * as p from "react";
|
|
2
|
+
import M from "react";
|
|
3
|
+
import { c as Y, d as V, _ as Et, T as tt, b as mt, f as X, s as F } from "./TransitionGroupContext-Ci_clMyv.js";
|
|
4
|
+
import { P as r } from "./index-D0lMis-I.js";
|
|
5
|
+
import { f as Z, l as ht, k as gt, p as xt } from "./ThemeProvider-aq1EWT1u.js";
|
|
6
|
+
import { u as yt } from "./useTheme-CtIZL8WJ.js";
|
|
7
|
+
import { jsx as vt } from "react/jsx-runtime";
|
|
8
|
+
import { _ as Tt } from "./setPrototypeOf-CEtRTXk2.js";
|
|
9
|
+
import * as Nt from "react-dom";
|
|
10
|
+
import A from "react-dom";
|
|
11
|
+
function bt(e) {
|
|
12
|
+
const {
|
|
13
|
+
prototype: a = {}
|
|
14
|
+
} = e;
|
|
15
|
+
return !!a.isReactComponent;
|
|
16
|
+
}
|
|
17
|
+
function et(e, a, o, i, n) {
|
|
18
|
+
const t = e[a], s = n || a;
|
|
19
|
+
if (t == null || // When server-side rendering React doesn't warn either.
|
|
20
|
+
// This is not an accurate check for SSR.
|
|
21
|
+
// This is only in place for Emotion compat.
|
|
22
|
+
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
|
|
23
|
+
typeof window > "u")
|
|
24
|
+
return null;
|
|
25
|
+
let u;
|
|
26
|
+
const c = t.type;
|
|
27
|
+
return typeof c == "function" && !bt(c) && (u = "Did you accidentally use a plain function component for an element instead?"), u !== void 0 ? new Error(`Invalid ${i} \`${s}\` supplied to \`${o}\`. Expected an element that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
28
|
+
}
|
|
29
|
+
const nt = Y(r.element, et);
|
|
30
|
+
nt.isRequired = Y(r.element.isRequired, et);
|
|
31
|
+
function Rt(e, a, o, i, n) {
|
|
32
|
+
if (process.env.NODE_ENV === "production")
|
|
33
|
+
return null;
|
|
34
|
+
const t = e[a], s = n || a;
|
|
35
|
+
return t == null ? null : t && t.nodeType !== 1 ? new Error(`Invalid ${i} \`${s}\` supplied to \`${o}\`. Expected an HTMLElement.`) : null;
|
|
36
|
+
}
|
|
37
|
+
function Wt(e) {
|
|
38
|
+
return e && e.ownerDocument || document;
|
|
39
|
+
}
|
|
40
|
+
let z = 0;
|
|
41
|
+
function Dt(e) {
|
|
42
|
+
const [a, o] = p.useState(e), i = e || a;
|
|
43
|
+
return p.useEffect(() => {
|
|
44
|
+
a == null && (z += 1, o(`mui-${z}`));
|
|
45
|
+
}, [a]), i;
|
|
46
|
+
}
|
|
47
|
+
const Ot = {
|
|
48
|
+
...p
|
|
49
|
+
}, B = Ot.useId;
|
|
50
|
+
function Xt(e) {
|
|
51
|
+
if (B !== void 0) {
|
|
52
|
+
const a = B();
|
|
53
|
+
return e ?? a;
|
|
54
|
+
}
|
|
55
|
+
return Dt(e);
|
|
56
|
+
}
|
|
57
|
+
function St(e) {
|
|
58
|
+
return typeof e == "string";
|
|
59
|
+
}
|
|
60
|
+
function it(e, a, o) {
|
|
61
|
+
return e === void 0 || St(e) ? a : {
|
|
62
|
+
...a,
|
|
63
|
+
ownerState: {
|
|
64
|
+
...a.ownerState,
|
|
65
|
+
...o
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function Ct(e, a = []) {
|
|
70
|
+
if (e === void 0)
|
|
71
|
+
return {};
|
|
72
|
+
const o = {};
|
|
73
|
+
return Object.keys(e).filter((i) => i.match(/^on[A-Z]/) && typeof e[i] == "function" && !a.includes(i)).forEach((i) => {
|
|
74
|
+
o[i] = e[i];
|
|
75
|
+
}), o;
|
|
76
|
+
}
|
|
77
|
+
function K(e) {
|
|
78
|
+
if (e === void 0)
|
|
79
|
+
return {};
|
|
80
|
+
const a = {};
|
|
81
|
+
return Object.keys(e).filter((o) => !(o.match(/^on[A-Z]/) && typeof e[o] == "function")).forEach((o) => {
|
|
82
|
+
a[o] = e[o];
|
|
83
|
+
}), a;
|
|
84
|
+
}
|
|
85
|
+
function ot(e) {
|
|
86
|
+
const {
|
|
87
|
+
getSlotProps: a,
|
|
88
|
+
additionalProps: o,
|
|
89
|
+
externalSlotProps: i,
|
|
90
|
+
externalForwardedProps: n,
|
|
91
|
+
className: t
|
|
92
|
+
} = e;
|
|
93
|
+
if (!a) {
|
|
94
|
+
const g = Z(o == null ? void 0 : o.className, t, n == null ? void 0 : n.className, i == null ? void 0 : i.className), x = {
|
|
95
|
+
...o == null ? void 0 : o.style,
|
|
96
|
+
...n == null ? void 0 : n.style,
|
|
97
|
+
...i == null ? void 0 : i.style
|
|
98
|
+
}, m = {
|
|
99
|
+
...o,
|
|
100
|
+
...n,
|
|
101
|
+
...i
|
|
102
|
+
};
|
|
103
|
+
return g.length > 0 && (m.className = g), Object.keys(x).length > 0 && (m.style = x), {
|
|
104
|
+
props: m,
|
|
105
|
+
internalRef: void 0
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
const s = Ct({
|
|
109
|
+
...n,
|
|
110
|
+
...i
|
|
111
|
+
}), u = K(i), c = K(n), f = a(s), d = Z(f == null ? void 0 : f.className, o == null ? void 0 : o.className, t, n == null ? void 0 : n.className, i == null ? void 0 : i.className), E = {
|
|
112
|
+
...f == null ? void 0 : f.style,
|
|
113
|
+
...o == null ? void 0 : o.style,
|
|
114
|
+
...n == null ? void 0 : n.style,
|
|
115
|
+
...i == null ? void 0 : i.style
|
|
116
|
+
}, h = {
|
|
117
|
+
...f,
|
|
118
|
+
...o,
|
|
119
|
+
...c,
|
|
120
|
+
...u
|
|
121
|
+
};
|
|
122
|
+
return d.length > 0 && (h.className = d), Object.keys(E).length > 0 && (h.style = E), {
|
|
123
|
+
props: h,
|
|
124
|
+
internalRef: f.ref
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
function rt(e, a, o) {
|
|
128
|
+
return typeof e == "function" ? e(a, o) : e;
|
|
129
|
+
}
|
|
130
|
+
function Ft(e) {
|
|
131
|
+
var E;
|
|
132
|
+
const {
|
|
133
|
+
elementType: a,
|
|
134
|
+
externalSlotProps: o,
|
|
135
|
+
ownerState: i,
|
|
136
|
+
skipResolvingSlotProps: n = !1,
|
|
137
|
+
...t
|
|
138
|
+
} = e, s = n ? {} : rt(o, i), {
|
|
139
|
+
props: u,
|
|
140
|
+
internalRef: c
|
|
141
|
+
} = ot({
|
|
142
|
+
...t,
|
|
143
|
+
externalSlotProps: s
|
|
144
|
+
}), f = V(c, s == null ? void 0 : s.ref, (E = e.additionalProps) == null ? void 0 : E.ref);
|
|
145
|
+
return it(a, {
|
|
146
|
+
...u,
|
|
147
|
+
ref: f
|
|
148
|
+
}, i);
|
|
149
|
+
}
|
|
150
|
+
function st(e) {
|
|
151
|
+
var a;
|
|
152
|
+
return parseInt(p.version, 10) >= 19 ? ((a = e == null ? void 0 : e.props) == null ? void 0 : a.ref) || null : (e == null ? void 0 : e.ref) || null;
|
|
153
|
+
}
|
|
154
|
+
function kt() {
|
|
155
|
+
const e = yt(gt);
|
|
156
|
+
return process.env.NODE_ENV !== "production" && p.useDebugValue(e), e[ht] || e;
|
|
157
|
+
}
|
|
158
|
+
const J = {
|
|
159
|
+
disabled: !1
|
|
160
|
+
};
|
|
161
|
+
var It = process.env.NODE_ENV !== "production" ? r.oneOfType([r.number, r.shape({
|
|
162
|
+
enter: r.number,
|
|
163
|
+
exit: r.number,
|
|
164
|
+
appear: r.number
|
|
165
|
+
}).isRequired]) : null;
|
|
166
|
+
process.env.NODE_ENV !== "production" && r.oneOfType([r.string, r.shape({
|
|
167
|
+
enter: r.string,
|
|
168
|
+
exit: r.string,
|
|
169
|
+
active: r.string
|
|
170
|
+
}), r.shape({
|
|
171
|
+
enter: r.string,
|
|
172
|
+
enterDone: r.string,
|
|
173
|
+
enterActive: r.string,
|
|
174
|
+
exit: r.string,
|
|
175
|
+
exitDone: r.string,
|
|
176
|
+
exitActive: r.string
|
|
177
|
+
})]);
|
|
178
|
+
var wt = function(a) {
|
|
179
|
+
return a.scrollTop;
|
|
180
|
+
}, w = "unmounted", b = "exited", R = "entering", k = "entered", U = "exiting", v = /* @__PURE__ */ function(e) {
|
|
181
|
+
Et(a, e);
|
|
182
|
+
function a(i, n) {
|
|
183
|
+
var t;
|
|
184
|
+
t = e.call(this, i, n) || this;
|
|
185
|
+
var s = n, u = s && !s.isMounting ? i.enter : i.appear, c;
|
|
186
|
+
return t.appearStatus = null, i.in ? u ? (c = b, t.appearStatus = R) : c = k : i.unmountOnExit || i.mountOnEnter ? c = w : c = b, t.state = {
|
|
187
|
+
status: c
|
|
188
|
+
}, t.nextCallback = null, t;
|
|
189
|
+
}
|
|
190
|
+
a.getDerivedStateFromProps = function(n, t) {
|
|
191
|
+
var s = n.in;
|
|
192
|
+
return s && t.status === w ? {
|
|
193
|
+
status: b
|
|
194
|
+
} : null;
|
|
195
|
+
};
|
|
196
|
+
var o = a.prototype;
|
|
197
|
+
return o.componentDidMount = function() {
|
|
198
|
+
this.updateStatus(!0, this.appearStatus);
|
|
199
|
+
}, o.componentDidUpdate = function(n) {
|
|
200
|
+
var t = null;
|
|
201
|
+
if (n !== this.props) {
|
|
202
|
+
var s = this.state.status;
|
|
203
|
+
this.props.in ? s !== R && s !== k && (t = R) : (s === R || s === k) && (t = U);
|
|
204
|
+
}
|
|
205
|
+
this.updateStatus(!1, t);
|
|
206
|
+
}, o.componentWillUnmount = function() {
|
|
207
|
+
this.cancelNextCallback();
|
|
208
|
+
}, o.getTimeouts = function() {
|
|
209
|
+
var n = this.props.timeout, t, s, u;
|
|
210
|
+
return t = s = u = n, n != null && typeof n != "number" && (t = n.exit, s = n.enter, u = n.appear !== void 0 ? n.appear : s), {
|
|
211
|
+
exit: t,
|
|
212
|
+
enter: s,
|
|
213
|
+
appear: u
|
|
214
|
+
};
|
|
215
|
+
}, o.updateStatus = function(n, t) {
|
|
216
|
+
if (n === void 0 && (n = !1), t !== null)
|
|
217
|
+
if (this.cancelNextCallback(), t === R) {
|
|
218
|
+
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
219
|
+
var s = this.props.nodeRef ? this.props.nodeRef.current : A.findDOMNode(this);
|
|
220
|
+
s && wt(s);
|
|
221
|
+
}
|
|
222
|
+
this.performEnter(n);
|
|
223
|
+
} else
|
|
224
|
+
this.performExit();
|
|
225
|
+
else this.props.unmountOnExit && this.state.status === b && this.setState({
|
|
226
|
+
status: w
|
|
227
|
+
});
|
|
228
|
+
}, o.performEnter = function(n) {
|
|
229
|
+
var t = this, s = this.props.enter, u = this.context ? this.context.isMounting : n, c = this.props.nodeRef ? [u] : [A.findDOMNode(this), u], f = c[0], d = c[1], E = this.getTimeouts(), h = u ? E.appear : E.enter;
|
|
230
|
+
if (!n && !s || J.disabled) {
|
|
231
|
+
this.safeSetState({
|
|
232
|
+
status: k
|
|
233
|
+
}, function() {
|
|
234
|
+
t.props.onEntered(f);
|
|
235
|
+
});
|
|
236
|
+
return;
|
|
237
|
+
}
|
|
238
|
+
this.props.onEnter(f, d), this.safeSetState({
|
|
239
|
+
status: R
|
|
240
|
+
}, function() {
|
|
241
|
+
t.props.onEntering(f, d), t.onTransitionEnd(h, function() {
|
|
242
|
+
t.safeSetState({
|
|
243
|
+
status: k
|
|
244
|
+
}, function() {
|
|
245
|
+
t.props.onEntered(f, d);
|
|
246
|
+
});
|
|
247
|
+
});
|
|
248
|
+
});
|
|
249
|
+
}, o.performExit = function() {
|
|
250
|
+
var n = this, t = this.props.exit, s = this.getTimeouts(), u = this.props.nodeRef ? void 0 : A.findDOMNode(this);
|
|
251
|
+
if (!t || J.disabled) {
|
|
252
|
+
this.safeSetState({
|
|
253
|
+
status: b
|
|
254
|
+
}, function() {
|
|
255
|
+
n.props.onExited(u);
|
|
256
|
+
});
|
|
257
|
+
return;
|
|
258
|
+
}
|
|
259
|
+
this.props.onExit(u), this.safeSetState({
|
|
260
|
+
status: U
|
|
261
|
+
}, function() {
|
|
262
|
+
n.props.onExiting(u), n.onTransitionEnd(s.exit, function() {
|
|
263
|
+
n.safeSetState({
|
|
264
|
+
status: b
|
|
265
|
+
}, function() {
|
|
266
|
+
n.props.onExited(u);
|
|
267
|
+
});
|
|
268
|
+
});
|
|
269
|
+
});
|
|
270
|
+
}, o.cancelNextCallback = function() {
|
|
271
|
+
this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
|
|
272
|
+
}, o.safeSetState = function(n, t) {
|
|
273
|
+
t = this.setNextCallback(t), this.setState(n, t);
|
|
274
|
+
}, o.setNextCallback = function(n) {
|
|
275
|
+
var t = this, s = !0;
|
|
276
|
+
return this.nextCallback = function(u) {
|
|
277
|
+
s && (s = !1, t.nextCallback = null, n(u));
|
|
278
|
+
}, this.nextCallback.cancel = function() {
|
|
279
|
+
s = !1;
|
|
280
|
+
}, this.nextCallback;
|
|
281
|
+
}, o.onTransitionEnd = function(n, t) {
|
|
282
|
+
this.setNextCallback(t);
|
|
283
|
+
var s = this.props.nodeRef ? this.props.nodeRef.current : A.findDOMNode(this), u = n == null && !this.props.addEndListener;
|
|
284
|
+
if (!s || u) {
|
|
285
|
+
setTimeout(this.nextCallback, 0);
|
|
286
|
+
return;
|
|
287
|
+
}
|
|
288
|
+
if (this.props.addEndListener) {
|
|
289
|
+
var c = this.props.nodeRef ? [this.nextCallback] : [s, this.nextCallback], f = c[0], d = c[1];
|
|
290
|
+
this.props.addEndListener(f, d);
|
|
291
|
+
}
|
|
292
|
+
n != null && setTimeout(this.nextCallback, n);
|
|
293
|
+
}, o.render = function() {
|
|
294
|
+
var n = this.state.status;
|
|
295
|
+
if (n === w)
|
|
296
|
+
return null;
|
|
297
|
+
var t = this.props, s = t.children;
|
|
298
|
+
t.in, t.mountOnEnter, t.unmountOnExit, t.appear, t.enter, t.exit, t.timeout, t.addEndListener, t.onEnter, t.onEntering, t.onEntered, t.onExit, t.onExiting, t.onExited, t.nodeRef;
|
|
299
|
+
var u = Tt(t, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
300
|
+
return (
|
|
301
|
+
// allows for nested Transitions
|
|
302
|
+
/* @__PURE__ */ M.createElement(tt.Provider, {
|
|
303
|
+
value: null
|
|
304
|
+
}, typeof s == "function" ? s(n, u) : M.cloneElement(M.Children.only(s), u))
|
|
305
|
+
);
|
|
306
|
+
}, a;
|
|
307
|
+
}(M.Component);
|
|
308
|
+
v.contextType = tt;
|
|
309
|
+
v.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
310
|
+
/**
|
|
311
|
+
* A React reference to DOM element that need to transition:
|
|
312
|
+
* https://stackoverflow.com/a/51127130/4671932
|
|
313
|
+
*
|
|
314
|
+
* - When `nodeRef` prop is used, `node` is not passed to callback functions
|
|
315
|
+
* (e.g. `onEnter`) because user already has direct access to the node.
|
|
316
|
+
* - When changing `key` prop of `Transition` in a `TransitionGroup` a new
|
|
317
|
+
* `nodeRef` need to be provided to `Transition` with changed `key` prop
|
|
318
|
+
* (see
|
|
319
|
+
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
320
|
+
*/
|
|
321
|
+
nodeRef: r.shape({
|
|
322
|
+
current: typeof Element > "u" ? r.any : function(e, a, o, i, n, t) {
|
|
323
|
+
var s = e[a];
|
|
324
|
+
return r.instanceOf(s && "ownerDocument" in s ? s.ownerDocument.defaultView.Element : Element)(e, a, o, i, n, t);
|
|
325
|
+
}
|
|
326
|
+
}),
|
|
327
|
+
/**
|
|
328
|
+
* A `function` child can be used instead of a React element. This function is
|
|
329
|
+
* called with the current transition status (`'entering'`, `'entered'`,
|
|
330
|
+
* `'exiting'`, `'exited'`), which can be used to apply context
|
|
331
|
+
* specific props to a component.
|
|
332
|
+
*
|
|
333
|
+
* ```jsx
|
|
334
|
+
* <Transition in={this.state.in} timeout={150}>
|
|
335
|
+
* {state => (
|
|
336
|
+
* <MyComponent className={`fade fade-${state}`} />
|
|
337
|
+
* )}
|
|
338
|
+
* </Transition>
|
|
339
|
+
* ```
|
|
340
|
+
*/
|
|
341
|
+
children: r.oneOfType([r.func.isRequired, r.element.isRequired]).isRequired,
|
|
342
|
+
/**
|
|
343
|
+
* Show the component; triggers the enter or exit states
|
|
344
|
+
*/
|
|
345
|
+
in: r.bool,
|
|
346
|
+
/**
|
|
347
|
+
* By default the child component is mounted immediately along with
|
|
348
|
+
* the parent `Transition` component. If you want to "lazy mount" the component on the
|
|
349
|
+
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
350
|
+
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
351
|
+
*/
|
|
352
|
+
mountOnEnter: r.bool,
|
|
353
|
+
/**
|
|
354
|
+
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
355
|
+
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
356
|
+
*/
|
|
357
|
+
unmountOnExit: r.bool,
|
|
358
|
+
/**
|
|
359
|
+
* By default the child component does not perform the enter transition when
|
|
360
|
+
* it first mounts, regardless of the value of `in`. If you want this
|
|
361
|
+
* behavior, set both `appear` and `in` to `true`.
|
|
362
|
+
*
|
|
363
|
+
* > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
|
|
364
|
+
* > only adds an additional enter transition. However, in the
|
|
365
|
+
* > `<CSSTransition>` component that first enter transition does result in
|
|
366
|
+
* > additional `.appear-*` classes, that way you can choose to style it
|
|
367
|
+
* > differently.
|
|
368
|
+
*/
|
|
369
|
+
appear: r.bool,
|
|
370
|
+
/**
|
|
371
|
+
* Enable or disable enter transitions.
|
|
372
|
+
*/
|
|
373
|
+
enter: r.bool,
|
|
374
|
+
/**
|
|
375
|
+
* Enable or disable exit transitions.
|
|
376
|
+
*/
|
|
377
|
+
exit: r.bool,
|
|
378
|
+
/**
|
|
379
|
+
* The duration of the transition, in milliseconds.
|
|
380
|
+
* Required unless `addEndListener` is provided.
|
|
381
|
+
*
|
|
382
|
+
* You may specify a single timeout for all transitions:
|
|
383
|
+
*
|
|
384
|
+
* ```jsx
|
|
385
|
+
* timeout={500}
|
|
386
|
+
* ```
|
|
387
|
+
*
|
|
388
|
+
* or individually:
|
|
389
|
+
*
|
|
390
|
+
* ```jsx
|
|
391
|
+
* timeout={{
|
|
392
|
+
* appear: 500,
|
|
393
|
+
* enter: 300,
|
|
394
|
+
* exit: 500,
|
|
395
|
+
* }}
|
|
396
|
+
* ```
|
|
397
|
+
*
|
|
398
|
+
* - `appear` defaults to the value of `enter`
|
|
399
|
+
* - `enter` defaults to `0`
|
|
400
|
+
* - `exit` defaults to `0`
|
|
401
|
+
*
|
|
402
|
+
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
403
|
+
*/
|
|
404
|
+
timeout: function(a) {
|
|
405
|
+
var o = It;
|
|
406
|
+
a.addEndListener || (o = o.isRequired);
|
|
407
|
+
for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), t = 1; t < i; t++)
|
|
408
|
+
n[t - 1] = arguments[t];
|
|
409
|
+
return o.apply(void 0, [a].concat(n));
|
|
410
|
+
},
|
|
411
|
+
/**
|
|
412
|
+
* Add a custom transition end trigger. Called with the transitioning
|
|
413
|
+
* DOM node and a `done` callback. Allows for more fine grained transition end
|
|
414
|
+
* logic. Timeouts are still used as a fallback if provided.
|
|
415
|
+
*
|
|
416
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
417
|
+
*
|
|
418
|
+
* ```jsx
|
|
419
|
+
* addEndListener={(node, done) => {
|
|
420
|
+
* // use the css transitionend event to mark the finish of a transition
|
|
421
|
+
* node.addEventListener('transitionend', done, false);
|
|
422
|
+
* }}
|
|
423
|
+
* ```
|
|
424
|
+
*/
|
|
425
|
+
addEndListener: r.func,
|
|
426
|
+
/**
|
|
427
|
+
* Callback fired before the "entering" status is applied. An extra parameter
|
|
428
|
+
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
429
|
+
*
|
|
430
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
431
|
+
*
|
|
432
|
+
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
433
|
+
*/
|
|
434
|
+
onEnter: r.func,
|
|
435
|
+
/**
|
|
436
|
+
* Callback fired after the "entering" status is applied. An extra parameter
|
|
437
|
+
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
438
|
+
*
|
|
439
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
440
|
+
*
|
|
441
|
+
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
442
|
+
*/
|
|
443
|
+
onEntering: r.func,
|
|
444
|
+
/**
|
|
445
|
+
* Callback fired after the "entered" status is applied. An extra parameter
|
|
446
|
+
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
447
|
+
*
|
|
448
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
449
|
+
*
|
|
450
|
+
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
451
|
+
*/
|
|
452
|
+
onEntered: r.func,
|
|
453
|
+
/**
|
|
454
|
+
* Callback fired before the "exiting" status is applied.
|
|
455
|
+
*
|
|
456
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
457
|
+
*
|
|
458
|
+
* @type Function(node: HtmlElement) -> void
|
|
459
|
+
*/
|
|
460
|
+
onExit: r.func,
|
|
461
|
+
/**
|
|
462
|
+
* Callback fired after the "exiting" status is applied.
|
|
463
|
+
*
|
|
464
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
465
|
+
*
|
|
466
|
+
* @type Function(node: HtmlElement) -> void
|
|
467
|
+
*/
|
|
468
|
+
onExiting: r.func,
|
|
469
|
+
/**
|
|
470
|
+
* Callback fired after the "exited" status is applied.
|
|
471
|
+
*
|
|
472
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed
|
|
473
|
+
*
|
|
474
|
+
* @type Function(node: HtmlElement) -> void
|
|
475
|
+
*/
|
|
476
|
+
onExited: r.func
|
|
477
|
+
} : {};
|
|
478
|
+
function C() {
|
|
479
|
+
}
|
|
480
|
+
v.defaultProps = {
|
|
481
|
+
in: !1,
|
|
482
|
+
mountOnEnter: !1,
|
|
483
|
+
unmountOnExit: !1,
|
|
484
|
+
appear: !1,
|
|
485
|
+
enter: !0,
|
|
486
|
+
exit: !0,
|
|
487
|
+
onEnter: C,
|
|
488
|
+
onEntering: C,
|
|
489
|
+
onEntered: C,
|
|
490
|
+
onExit: C,
|
|
491
|
+
onExiting: C,
|
|
492
|
+
onExited: C
|
|
493
|
+
};
|
|
494
|
+
v.UNMOUNTED = w;
|
|
495
|
+
v.EXITED = b;
|
|
496
|
+
v.ENTERING = R;
|
|
497
|
+
v.ENTERED = k;
|
|
498
|
+
v.EXITING = U;
|
|
499
|
+
const Lt = (e) => e.scrollTop;
|
|
500
|
+
function Q(e, a) {
|
|
501
|
+
const {
|
|
502
|
+
timeout: o,
|
|
503
|
+
easing: i,
|
|
504
|
+
style: n = {}
|
|
505
|
+
} = e;
|
|
506
|
+
return {
|
|
507
|
+
duration: n.transitionDuration ?? (typeof o == "number" ? o : o[a.mode] || 0),
|
|
508
|
+
easing: n.transitionTimingFunction ?? (typeof i == "object" ? i[a.mode] : i),
|
|
509
|
+
delay: n.transitionDelay
|
|
510
|
+
};
|
|
511
|
+
}
|
|
512
|
+
function q(e) {
|
|
513
|
+
return `scale(${e}, ${e ** 2})`;
|
|
514
|
+
}
|
|
515
|
+
const _t = {
|
|
516
|
+
entering: {
|
|
517
|
+
opacity: 1,
|
|
518
|
+
transform: q(1)
|
|
519
|
+
},
|
|
520
|
+
entered: {
|
|
521
|
+
opacity: 1,
|
|
522
|
+
transform: "none"
|
|
523
|
+
}
|
|
524
|
+
}, P = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent), j = /* @__PURE__ */ p.forwardRef(function(a, o) {
|
|
525
|
+
const {
|
|
526
|
+
addEndListener: i,
|
|
527
|
+
appear: n = !0,
|
|
528
|
+
children: t,
|
|
529
|
+
easing: s,
|
|
530
|
+
in: u,
|
|
531
|
+
onEnter: c,
|
|
532
|
+
onEntered: f,
|
|
533
|
+
onEntering: d,
|
|
534
|
+
onExit: E,
|
|
535
|
+
onExited: h,
|
|
536
|
+
onExiting: g,
|
|
537
|
+
style: x,
|
|
538
|
+
timeout: m = "auto",
|
|
539
|
+
// eslint-disable-next-line react/prop-types
|
|
540
|
+
TransitionComponent: $ = v,
|
|
541
|
+
...G
|
|
542
|
+
} = a, L = mt(), I = p.useRef(), D = kt(), _ = p.useRef(null), at = V(_, st(t), o), O = (l) => (T) => {
|
|
543
|
+
if (l) {
|
|
544
|
+
const N = _.current;
|
|
545
|
+
T === void 0 ? l(N) : l(N, T);
|
|
546
|
+
}
|
|
547
|
+
}, ut = O(d), ct = O((l, T) => {
|
|
548
|
+
Lt(l);
|
|
549
|
+
const {
|
|
550
|
+
duration: N,
|
|
551
|
+
delay: H,
|
|
552
|
+
easing: y
|
|
553
|
+
} = Q({
|
|
554
|
+
style: x,
|
|
555
|
+
timeout: m,
|
|
556
|
+
easing: s
|
|
557
|
+
}, {
|
|
558
|
+
mode: "enter"
|
|
559
|
+
});
|
|
560
|
+
let S;
|
|
561
|
+
m === "auto" ? (S = D.transitions.getAutoHeightDuration(l.clientHeight), I.current = S) : S = N, l.style.transition = [D.transitions.create("opacity", {
|
|
562
|
+
duration: S,
|
|
563
|
+
delay: H
|
|
564
|
+
}), D.transitions.create("transform", {
|
|
565
|
+
duration: P ? S : S * 0.666,
|
|
566
|
+
delay: H,
|
|
567
|
+
easing: y
|
|
568
|
+
})].join(","), c && c(l, T);
|
|
569
|
+
}), ft = O(f), lt = O(g), pt = O((l) => {
|
|
570
|
+
const {
|
|
571
|
+
duration: T,
|
|
572
|
+
delay: N,
|
|
573
|
+
easing: H
|
|
574
|
+
} = Q({
|
|
575
|
+
style: x,
|
|
576
|
+
timeout: m,
|
|
577
|
+
easing: s
|
|
578
|
+
}, {
|
|
579
|
+
mode: "exit"
|
|
580
|
+
});
|
|
581
|
+
let y;
|
|
582
|
+
m === "auto" ? (y = D.transitions.getAutoHeightDuration(l.clientHeight), I.current = y) : y = T, l.style.transition = [D.transitions.create("opacity", {
|
|
583
|
+
duration: y,
|
|
584
|
+
delay: N
|
|
585
|
+
}), D.transitions.create("transform", {
|
|
586
|
+
duration: P ? y : y * 0.666,
|
|
587
|
+
delay: P ? N : N || y * 0.333,
|
|
588
|
+
easing: H
|
|
589
|
+
})].join(","), l.style.opacity = 0, l.style.transform = q(0.75), E && E(l);
|
|
590
|
+
}), dt = O(h);
|
|
591
|
+
return /* @__PURE__ */ vt($, {
|
|
592
|
+
appear: n,
|
|
593
|
+
in: u,
|
|
594
|
+
nodeRef: _,
|
|
595
|
+
onEnter: ct,
|
|
596
|
+
onEntered: ft,
|
|
597
|
+
onEntering: ut,
|
|
598
|
+
onExit: pt,
|
|
599
|
+
onExited: dt,
|
|
600
|
+
onExiting: lt,
|
|
601
|
+
addEndListener: (l) => {
|
|
602
|
+
m === "auto" && L.start(I.current || 0, l), i && i(_.current, l);
|
|
603
|
+
},
|
|
604
|
+
timeout: m === "auto" ? null : m,
|
|
605
|
+
...G,
|
|
606
|
+
children: (l, T) => /* @__PURE__ */ p.cloneElement(t, {
|
|
607
|
+
style: {
|
|
608
|
+
opacity: 0,
|
|
609
|
+
transform: q(0.75),
|
|
610
|
+
visibility: l === "exited" && !u ? "hidden" : void 0,
|
|
611
|
+
..._t[l],
|
|
612
|
+
...x,
|
|
613
|
+
...t.props.style
|
|
614
|
+
},
|
|
615
|
+
ref: at,
|
|
616
|
+
...T
|
|
617
|
+
})
|
|
618
|
+
});
|
|
619
|
+
});
|
|
620
|
+
process.env.NODE_ENV !== "production" && (j.propTypes = {
|
|
621
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
622
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
623
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
624
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
625
|
+
/**
|
|
626
|
+
* Add a custom transition end trigger. Called with the transitioning DOM
|
|
627
|
+
* node and a done callback. Allows for more fine grained transition end
|
|
628
|
+
* logic. Note: Timeouts are still used as a fallback if provided.
|
|
629
|
+
*/
|
|
630
|
+
addEndListener: r.func,
|
|
631
|
+
/**
|
|
632
|
+
* Perform the enter transition when it first mounts if `in` is also `true`.
|
|
633
|
+
* Set this to `false` to disable this behavior.
|
|
634
|
+
* @default true
|
|
635
|
+
*/
|
|
636
|
+
appear: r.bool,
|
|
637
|
+
/**
|
|
638
|
+
* A single child content element.
|
|
639
|
+
*/
|
|
640
|
+
children: nt.isRequired,
|
|
641
|
+
/**
|
|
642
|
+
* The transition timing function.
|
|
643
|
+
* You may specify a single easing or a object containing enter and exit values.
|
|
644
|
+
*/
|
|
645
|
+
easing: r.oneOfType([r.shape({
|
|
646
|
+
enter: r.string,
|
|
647
|
+
exit: r.string
|
|
648
|
+
}), r.string]),
|
|
649
|
+
/**
|
|
650
|
+
* If `true`, the component will transition in.
|
|
651
|
+
*/
|
|
652
|
+
in: r.bool,
|
|
653
|
+
/**
|
|
654
|
+
* @ignore
|
|
655
|
+
*/
|
|
656
|
+
onEnter: r.func,
|
|
657
|
+
/**
|
|
658
|
+
* @ignore
|
|
659
|
+
*/
|
|
660
|
+
onEntered: r.func,
|
|
661
|
+
/**
|
|
662
|
+
* @ignore
|
|
663
|
+
*/
|
|
664
|
+
onEntering: r.func,
|
|
665
|
+
/**
|
|
666
|
+
* @ignore
|
|
667
|
+
*/
|
|
668
|
+
onExit: r.func,
|
|
669
|
+
/**
|
|
670
|
+
* @ignore
|
|
671
|
+
*/
|
|
672
|
+
onExited: r.func,
|
|
673
|
+
/**
|
|
674
|
+
* @ignore
|
|
675
|
+
*/
|
|
676
|
+
onExiting: r.func,
|
|
677
|
+
/**
|
|
678
|
+
* @ignore
|
|
679
|
+
*/
|
|
680
|
+
style: r.object,
|
|
681
|
+
/**
|
|
682
|
+
* The duration for the transition, in milliseconds.
|
|
683
|
+
* You may specify a single timeout for all transitions, or individually with an object.
|
|
684
|
+
*
|
|
685
|
+
* Set to 'auto' to automatically calculate transition time based on height.
|
|
686
|
+
* @default 'auto'
|
|
687
|
+
*/
|
|
688
|
+
timeout: r.oneOfType([r.oneOf(["auto"]), r.number, r.shape({
|
|
689
|
+
appear: r.number,
|
|
690
|
+
enter: r.number,
|
|
691
|
+
exit: r.number
|
|
692
|
+
})])
|
|
693
|
+
});
|
|
694
|
+
j && (j.muiSupportAuto = !0);
|
|
695
|
+
function Ht(e) {
|
|
696
|
+
return typeof e == "function" ? e() : e;
|
|
697
|
+
}
|
|
698
|
+
const W = /* @__PURE__ */ p.forwardRef(function(a, o) {
|
|
699
|
+
const {
|
|
700
|
+
children: i,
|
|
701
|
+
container: n,
|
|
702
|
+
disablePortal: t = !1
|
|
703
|
+
} = a, [s, u] = p.useState(null), c = V(/* @__PURE__ */ p.isValidElement(i) ? st(i) : null, o);
|
|
704
|
+
if (X(() => {
|
|
705
|
+
t || u(Ht(n) || document.body);
|
|
706
|
+
}, [n, t]), X(() => {
|
|
707
|
+
if (s && !t)
|
|
708
|
+
return F(o, s), () => {
|
|
709
|
+
F(o, null);
|
|
710
|
+
};
|
|
711
|
+
}, [o, s, t]), t) {
|
|
712
|
+
if (/* @__PURE__ */ p.isValidElement(i)) {
|
|
713
|
+
const f = {
|
|
714
|
+
ref: c
|
|
715
|
+
};
|
|
716
|
+
return /* @__PURE__ */ p.cloneElement(i, f);
|
|
717
|
+
}
|
|
718
|
+
return i;
|
|
719
|
+
}
|
|
720
|
+
return s && /* @__PURE__ */ Nt.createPortal(i, s);
|
|
721
|
+
});
|
|
722
|
+
process.env.NODE_ENV !== "production" && (W.propTypes = {
|
|
723
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
724
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
725
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
726
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
727
|
+
/**
|
|
728
|
+
* The children to render into the `container`.
|
|
729
|
+
*/
|
|
730
|
+
children: r.node,
|
|
731
|
+
/**
|
|
732
|
+
* An HTML element or function that returns one.
|
|
733
|
+
* The `container` will have the portal children appended to it.
|
|
734
|
+
*
|
|
735
|
+
* You can also provide a callback, which is called in a React layout effect.
|
|
736
|
+
* This lets you set the container from a ref, and also makes server-side rendering possible.
|
|
737
|
+
*
|
|
738
|
+
* By default, it uses the body of the top-level document object,
|
|
739
|
+
* so it's simply `document.body` most of the time.
|
|
740
|
+
*/
|
|
741
|
+
container: r.oneOfType([Rt, r.func]),
|
|
742
|
+
/**
|
|
743
|
+
* The `children` will be under the DOM hierarchy of the parent component.
|
|
744
|
+
* @default false
|
|
745
|
+
*/
|
|
746
|
+
disablePortal: r.bool
|
|
747
|
+
});
|
|
748
|
+
process.env.NODE_ENV !== "production" && (W.propTypes = xt(W.propTypes));
|
|
749
|
+
function Zt(e, a) {
|
|
750
|
+
const {
|
|
751
|
+
className: o,
|
|
752
|
+
elementType: i,
|
|
753
|
+
ownerState: n,
|
|
754
|
+
externalForwardedProps: t,
|
|
755
|
+
internalForwardedProps: s,
|
|
756
|
+
...u
|
|
757
|
+
} = a, {
|
|
758
|
+
component: c,
|
|
759
|
+
slots: f = {
|
|
760
|
+
[e]: void 0
|
|
761
|
+
},
|
|
762
|
+
slotProps: d = {
|
|
763
|
+
[e]: void 0
|
|
764
|
+
},
|
|
765
|
+
...E
|
|
766
|
+
} = t, h = f[e] || i, g = rt(d[e], n), {
|
|
767
|
+
props: {
|
|
768
|
+
component: x,
|
|
769
|
+
...m
|
|
770
|
+
},
|
|
771
|
+
internalRef: $
|
|
772
|
+
} = ot({
|
|
773
|
+
className: o,
|
|
774
|
+
...u,
|
|
775
|
+
externalForwardedProps: e === "root" ? E : void 0,
|
|
776
|
+
externalSlotProps: g
|
|
777
|
+
}), G = V($, g == null ? void 0 : g.ref, a.ref), L = e === "root" ? x || c : x, I = it(h, {
|
|
778
|
+
...e === "root" && !c && !f[e] && s,
|
|
779
|
+
...e !== "root" && !f[e] && s,
|
|
780
|
+
...m,
|
|
781
|
+
...L && {
|
|
782
|
+
as: L
|
|
783
|
+
},
|
|
784
|
+
ref: G
|
|
785
|
+
}, n);
|
|
786
|
+
return [h, I];
|
|
787
|
+
}
|
|
788
|
+
export {
|
|
789
|
+
j as G,
|
|
790
|
+
Rt as H,
|
|
791
|
+
W as P,
|
|
792
|
+
v as T,
|
|
793
|
+
kt as a,
|
|
794
|
+
Xt as b,
|
|
795
|
+
Zt as c,
|
|
796
|
+
Q as d,
|
|
797
|
+
nt as e,
|
|
798
|
+
Ct as f,
|
|
799
|
+
st as g,
|
|
800
|
+
Wt as o,
|
|
801
|
+
Lt as r,
|
|
802
|
+
Ft as u
|
|
803
|
+
};
|