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