@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,883 @@
|
|
|
1
|
+
var Se = Object.defineProperty;
|
|
2
|
+
var ve = (o, e, n) => e in o ? Se(o, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : o[e] = n;
|
|
3
|
+
var re = (o, e, n) => ve(o, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
+
import * as d from "react";
|
|
5
|
+
import H, { Children as Be, isValidElement as W, cloneElement as G } from "react";
|
|
6
|
+
import { P as t } from "./index-D0lMis-I.js";
|
|
7
|
+
import { f as E, b as ce, p as te, s as ne, e as pe, g as Le, h as $e } from "./ThemeProvider-BCsnqK18.js";
|
|
8
|
+
import { jsx as I, jsxs as ke } from "react/jsx-runtime";
|
|
9
|
+
import { c as Oe, a as Fe, _ as je, T as ae, b as Ie, u as le, d as J, i as ue, r as Ue } from "./useTimeout-BG7TPjEm.js";
|
|
10
|
+
import { _ as ze } from "./setPrototypeOf-CEtRTXk2.js";
|
|
11
|
+
import { _ as _e } from "./extends-DX42hfxm.js";
|
|
12
|
+
import { _ as Ae } from "./assertThisInitialized-lz6cHcRv.js";
|
|
13
|
+
function Xe(o) {
|
|
14
|
+
const {
|
|
15
|
+
prototype: e = {}
|
|
16
|
+
} = o;
|
|
17
|
+
return !!e.isReactComponent;
|
|
18
|
+
}
|
|
19
|
+
function Ye(o, e, n, l, i) {
|
|
20
|
+
const s = o[e], r = i || e;
|
|
21
|
+
if (s == null || // When server-side rendering React doesn't warn either.
|
|
22
|
+
// This is not an accurate check for SSR.
|
|
23
|
+
// This is only in place for emotion compat.
|
|
24
|
+
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
|
|
25
|
+
typeof window > "u")
|
|
26
|
+
return null;
|
|
27
|
+
let u;
|
|
28
|
+
return typeof s == "function" && !Xe(s) && (u = "Did you accidentally provide a plain function component instead?"), u !== void 0 ? new Error(`Invalid ${l} \`${r}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
29
|
+
}
|
|
30
|
+
const Ke = Oe(t.elementType, Ye);
|
|
31
|
+
class Q {
|
|
32
|
+
constructor() {
|
|
33
|
+
re(this, "mountEffect", () => {
|
|
34
|
+
this.shouldMount && !this.didMount && this.ref.current !== null && (this.didMount = !0, this.mounted.resolve());
|
|
35
|
+
});
|
|
36
|
+
this.ref = {
|
|
37
|
+
current: null
|
|
38
|
+
}, this.mounted = null, this.didMount = !1, this.shouldMount = !1, this.setShouldMount = null;
|
|
39
|
+
}
|
|
40
|
+
/** React ref to the ripple instance */
|
|
41
|
+
/** If the ripple component should be mounted */
|
|
42
|
+
/** Promise that resolves when the ripple component is mounted */
|
|
43
|
+
/** If the ripple component has been mounted */
|
|
44
|
+
/** React state hook setter */
|
|
45
|
+
static create() {
|
|
46
|
+
return new Q();
|
|
47
|
+
}
|
|
48
|
+
static use() {
|
|
49
|
+
const e = Fe(Q.create).current, [n, l] = d.useState(!1);
|
|
50
|
+
return e.shouldMount = n, e.setShouldMount = l, d.useEffect(e.mountEffect, [n]), e;
|
|
51
|
+
}
|
|
52
|
+
mount() {
|
|
53
|
+
return this.mounted || (this.mounted = He(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
|
|
54
|
+
}
|
|
55
|
+
/* Ripple API */
|
|
56
|
+
start(...e) {
|
|
57
|
+
this.mount().then(() => {
|
|
58
|
+
var n;
|
|
59
|
+
return (n = this.ref.current) == null ? void 0 : n.start(...e);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
stop(...e) {
|
|
63
|
+
this.mount().then(() => {
|
|
64
|
+
var n;
|
|
65
|
+
return (n = this.ref.current) == null ? void 0 : n.stop(...e);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
pulsate(...e) {
|
|
69
|
+
this.mount().then(() => {
|
|
70
|
+
var n;
|
|
71
|
+
return (n = this.ref.current) == null ? void 0 : n.pulsate(...e);
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
function qe() {
|
|
76
|
+
return Q.use();
|
|
77
|
+
}
|
|
78
|
+
function He() {
|
|
79
|
+
let o, e;
|
|
80
|
+
const n = new Promise((l, i) => {
|
|
81
|
+
o = l, e = i;
|
|
82
|
+
});
|
|
83
|
+
return n.resolve = o, n.reject = e, n;
|
|
84
|
+
}
|
|
85
|
+
function oe(o, e) {
|
|
86
|
+
var n = function(s) {
|
|
87
|
+
return e && W(s) ? e(s) : s;
|
|
88
|
+
}, l = /* @__PURE__ */ Object.create(null);
|
|
89
|
+
return o && Be.map(o, function(i) {
|
|
90
|
+
return i;
|
|
91
|
+
}).forEach(function(i) {
|
|
92
|
+
l[i.key] = n(i);
|
|
93
|
+
}), l;
|
|
94
|
+
}
|
|
95
|
+
function We(o, e) {
|
|
96
|
+
o = o || {}, e = e || {};
|
|
97
|
+
function n(h) {
|
|
98
|
+
return h in e ? e[h] : o[h];
|
|
99
|
+
}
|
|
100
|
+
var l = /* @__PURE__ */ Object.create(null), i = [];
|
|
101
|
+
for (var s in o)
|
|
102
|
+
s in e ? i.length && (l[s] = i, i = []) : i.push(s);
|
|
103
|
+
var r, u = {};
|
|
104
|
+
for (var c in e) {
|
|
105
|
+
if (l[c])
|
|
106
|
+
for (r = 0; r < l[c].length; r++) {
|
|
107
|
+
var f = l[c][r];
|
|
108
|
+
u[l[c][r]] = n(f);
|
|
109
|
+
}
|
|
110
|
+
u[c] = n(c);
|
|
111
|
+
}
|
|
112
|
+
for (r = 0; r < i.length; r++)
|
|
113
|
+
u[i[r]] = n(i[r]);
|
|
114
|
+
return u;
|
|
115
|
+
}
|
|
116
|
+
function k(o, e, n) {
|
|
117
|
+
return n[e] != null ? n[e] : o.props[e];
|
|
118
|
+
}
|
|
119
|
+
function Ge(o, e) {
|
|
120
|
+
return oe(o.children, function(n) {
|
|
121
|
+
return G(n, {
|
|
122
|
+
onExited: e.bind(null, n),
|
|
123
|
+
in: !0,
|
|
124
|
+
appear: k(n, "appear", o),
|
|
125
|
+
enter: k(n, "enter", o),
|
|
126
|
+
exit: k(n, "exit", o)
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
function Je(o, e, n) {
|
|
131
|
+
var l = oe(o.children), i = We(e, l);
|
|
132
|
+
return Object.keys(i).forEach(function(s) {
|
|
133
|
+
var r = i[s];
|
|
134
|
+
if (W(r)) {
|
|
135
|
+
var u = s in e, c = s in l, f = e[s], h = W(f) && !f.props.in;
|
|
136
|
+
c && (!u || h) ? i[s] = G(r, {
|
|
137
|
+
onExited: n.bind(null, r),
|
|
138
|
+
in: !0,
|
|
139
|
+
exit: k(r, "exit", o),
|
|
140
|
+
enter: k(r, "enter", o)
|
|
141
|
+
}) : !c && u && !h ? i[s] = G(r, {
|
|
142
|
+
in: !1
|
|
143
|
+
}) : c && u && W(f) && (i[s] = G(r, {
|
|
144
|
+
onExited: n.bind(null, r),
|
|
145
|
+
in: f.props.in,
|
|
146
|
+
exit: k(r, "exit", o),
|
|
147
|
+
enter: k(r, "enter", o)
|
|
148
|
+
}));
|
|
149
|
+
}
|
|
150
|
+
}), i;
|
|
151
|
+
}
|
|
152
|
+
var Qe = Object.values || function(o) {
|
|
153
|
+
return Object.keys(o).map(function(e) {
|
|
154
|
+
return o[e];
|
|
155
|
+
});
|
|
156
|
+
}, Ze = {
|
|
157
|
+
component: "div",
|
|
158
|
+
childFactory: function(e) {
|
|
159
|
+
return e;
|
|
160
|
+
}
|
|
161
|
+
}, ie = /* @__PURE__ */ function(o) {
|
|
162
|
+
je(e, o);
|
|
163
|
+
function e(l, i) {
|
|
164
|
+
var s;
|
|
165
|
+
s = o.call(this, l, i) || this;
|
|
166
|
+
var r = s.handleExited.bind(Ae(s));
|
|
167
|
+
return s.state = {
|
|
168
|
+
contextValue: {
|
|
169
|
+
isMounting: !0
|
|
170
|
+
},
|
|
171
|
+
handleExited: r,
|
|
172
|
+
firstRender: !0
|
|
173
|
+
}, s;
|
|
174
|
+
}
|
|
175
|
+
var n = e.prototype;
|
|
176
|
+
return n.componentDidMount = function() {
|
|
177
|
+
this.mounted = !0, this.setState({
|
|
178
|
+
contextValue: {
|
|
179
|
+
isMounting: !1
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
}, n.componentWillUnmount = function() {
|
|
183
|
+
this.mounted = !1;
|
|
184
|
+
}, e.getDerivedStateFromProps = function(i, s) {
|
|
185
|
+
var r = s.children, u = s.handleExited, c = s.firstRender;
|
|
186
|
+
return {
|
|
187
|
+
children: c ? Ge(i, u) : Je(i, r, u),
|
|
188
|
+
firstRender: !1
|
|
189
|
+
};
|
|
190
|
+
}, n.handleExited = function(i, s) {
|
|
191
|
+
var r = oe(this.props.children);
|
|
192
|
+
i.key in r || (i.props.onExited && i.props.onExited(s), this.mounted && this.setState(function(u) {
|
|
193
|
+
var c = _e({}, u.children);
|
|
194
|
+
return delete c[i.key], {
|
|
195
|
+
children: c
|
|
196
|
+
};
|
|
197
|
+
}));
|
|
198
|
+
}, n.render = function() {
|
|
199
|
+
var i = this.props, s = i.component, r = i.childFactory, u = ze(i, ["component", "childFactory"]), c = this.state.contextValue, f = Qe(this.state.children).map(r);
|
|
200
|
+
return delete u.appear, delete u.enter, delete u.exit, s === null ? /* @__PURE__ */ H.createElement(ae.Provider, {
|
|
201
|
+
value: c
|
|
202
|
+
}, f) : /* @__PURE__ */ H.createElement(ae.Provider, {
|
|
203
|
+
value: c
|
|
204
|
+
}, /* @__PURE__ */ H.createElement(s, u, f));
|
|
205
|
+
}, e;
|
|
206
|
+
}(H.Component);
|
|
207
|
+
ie.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
208
|
+
/**
|
|
209
|
+
* `<TransitionGroup>` renders a `<div>` by default. You can change this
|
|
210
|
+
* behavior by providing a `component` prop.
|
|
211
|
+
* If you use React v16+ and would like to avoid a wrapping `<div>` element
|
|
212
|
+
* you can pass in `component={null}`. This is useful if the wrapping div
|
|
213
|
+
* borks your css styles.
|
|
214
|
+
*/
|
|
215
|
+
component: t.any,
|
|
216
|
+
/**
|
|
217
|
+
* A set of `<Transition>` components, that are toggled `in` and out as they
|
|
218
|
+
* leave. the `<TransitionGroup>` will inject specific transition props, so
|
|
219
|
+
* remember to spread them through if you are wrapping the `<Transition>` as
|
|
220
|
+
* with our `<Fade>` example.
|
|
221
|
+
*
|
|
222
|
+
* While this component is meant for multiple `Transition` or `CSSTransition`
|
|
223
|
+
* children, sometimes you may want to have a single transition child with
|
|
224
|
+
* content that you want to be transitioned out and in when you change it
|
|
225
|
+
* (e.g. routes, images etc.) In that case you can change the `key` prop of
|
|
226
|
+
* the transition child as you change its content, this will cause
|
|
227
|
+
* `TransitionGroup` to transition the child out and back in.
|
|
228
|
+
*/
|
|
229
|
+
children: t.node,
|
|
230
|
+
/**
|
|
231
|
+
* A convenience prop that enables or disables appear animations
|
|
232
|
+
* for all children. Note that specifying this will override any defaults set
|
|
233
|
+
* on individual children Transitions.
|
|
234
|
+
*/
|
|
235
|
+
appear: t.bool,
|
|
236
|
+
/**
|
|
237
|
+
* A convenience prop that enables or disables enter animations
|
|
238
|
+
* for all children. Note that specifying this will override any defaults set
|
|
239
|
+
* on individual children Transitions.
|
|
240
|
+
*/
|
|
241
|
+
enter: t.bool,
|
|
242
|
+
/**
|
|
243
|
+
* A convenience prop that enables or disables exit animations
|
|
244
|
+
* for all children. Note that specifying this will override any defaults set
|
|
245
|
+
* on individual children Transitions.
|
|
246
|
+
*/
|
|
247
|
+
exit: t.bool,
|
|
248
|
+
/**
|
|
249
|
+
* You may need to apply reactive updates to a child as it is exiting.
|
|
250
|
+
* This is generally done by using `cloneElement` however in the case of an exiting
|
|
251
|
+
* child the element has already been removed and not accessible to the consumer.
|
|
252
|
+
*
|
|
253
|
+
* If you do need to update a child as it leaves you can provide a `childFactory`
|
|
254
|
+
* to wrap every child, even the ones that are leaving.
|
|
255
|
+
*
|
|
256
|
+
* @type Function(child: ReactElement) -> ReactElement
|
|
257
|
+
*/
|
|
258
|
+
childFactory: t.func
|
|
259
|
+
} : {};
|
|
260
|
+
ie.defaultProps = Ze;
|
|
261
|
+
function fe(o) {
|
|
262
|
+
const {
|
|
263
|
+
className: e,
|
|
264
|
+
classes: n,
|
|
265
|
+
pulsate: l = !1,
|
|
266
|
+
rippleX: i,
|
|
267
|
+
rippleY: s,
|
|
268
|
+
rippleSize: r,
|
|
269
|
+
in: u,
|
|
270
|
+
onExited: c,
|
|
271
|
+
timeout: f
|
|
272
|
+
} = o, [h, m] = d.useState(!1), M = E(e, n.ripple, n.rippleVisible, l && n.ripplePulsate), N = {
|
|
273
|
+
width: r,
|
|
274
|
+
height: r,
|
|
275
|
+
top: -(r / 2) + s,
|
|
276
|
+
left: -(r / 2) + i
|
|
277
|
+
}, g = E(n.child, h && n.childLeaving, l && n.childPulsate);
|
|
278
|
+
return !u && !h && m(!0), d.useEffect(() => {
|
|
279
|
+
if (!u && c != null) {
|
|
280
|
+
const v = setTimeout(c, f);
|
|
281
|
+
return () => {
|
|
282
|
+
clearTimeout(v);
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
}, [c, u, f]), /* @__PURE__ */ I("span", {
|
|
286
|
+
className: M,
|
|
287
|
+
style: N,
|
|
288
|
+
children: /* @__PURE__ */ I("span", {
|
|
289
|
+
className: g
|
|
290
|
+
})
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
process.env.NODE_ENV !== "production" && (fe.propTypes = {
|
|
294
|
+
/**
|
|
295
|
+
* Override or extend the styles applied to the component.
|
|
296
|
+
*/
|
|
297
|
+
classes: t.object.isRequired,
|
|
298
|
+
className: t.string,
|
|
299
|
+
/**
|
|
300
|
+
* @ignore - injected from TransitionGroup
|
|
301
|
+
*/
|
|
302
|
+
in: t.bool,
|
|
303
|
+
/**
|
|
304
|
+
* @ignore - injected from TransitionGroup
|
|
305
|
+
*/
|
|
306
|
+
onExited: t.func,
|
|
307
|
+
/**
|
|
308
|
+
* If `true`, the ripple pulsates, typically indicating the keyboard focus state of an element.
|
|
309
|
+
*/
|
|
310
|
+
pulsate: t.bool,
|
|
311
|
+
/**
|
|
312
|
+
* Diameter of the ripple.
|
|
313
|
+
*/
|
|
314
|
+
rippleSize: t.number,
|
|
315
|
+
/**
|
|
316
|
+
* Horizontal position of the ripple center.
|
|
317
|
+
*/
|
|
318
|
+
rippleX: t.number,
|
|
319
|
+
/**
|
|
320
|
+
* Vertical position of the ripple center.
|
|
321
|
+
*/
|
|
322
|
+
rippleY: t.number,
|
|
323
|
+
/**
|
|
324
|
+
* exit delay
|
|
325
|
+
*/
|
|
326
|
+
timeout: t.number.isRequired
|
|
327
|
+
});
|
|
328
|
+
const y = ce("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), ee = 550, et = 80, tt = te`
|
|
329
|
+
0% {
|
|
330
|
+
transform: scale(0);
|
|
331
|
+
opacity: 0.1;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
100% {
|
|
335
|
+
transform: scale(1);
|
|
336
|
+
opacity: 0.3;
|
|
337
|
+
}
|
|
338
|
+
`, nt = te`
|
|
339
|
+
0% {
|
|
340
|
+
opacity: 1;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
100% {
|
|
344
|
+
opacity: 0;
|
|
345
|
+
}
|
|
346
|
+
`, ot = te`
|
|
347
|
+
0% {
|
|
348
|
+
transform: scale(1);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
50% {
|
|
352
|
+
transform: scale(0.92);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
100% {
|
|
356
|
+
transform: scale(1);
|
|
357
|
+
}
|
|
358
|
+
`, it = ne("span", {
|
|
359
|
+
name: "MuiTouchRipple",
|
|
360
|
+
slot: "Root"
|
|
361
|
+
})({
|
|
362
|
+
overflow: "hidden",
|
|
363
|
+
pointerEvents: "none",
|
|
364
|
+
position: "absolute",
|
|
365
|
+
zIndex: 0,
|
|
366
|
+
top: 0,
|
|
367
|
+
right: 0,
|
|
368
|
+
bottom: 0,
|
|
369
|
+
left: 0,
|
|
370
|
+
borderRadius: "inherit"
|
|
371
|
+
}), st = ne(fe, {
|
|
372
|
+
name: "MuiTouchRipple",
|
|
373
|
+
slot: "Ripple"
|
|
374
|
+
})`
|
|
375
|
+
opacity: 0;
|
|
376
|
+
position: absolute;
|
|
377
|
+
|
|
378
|
+
&.${y.rippleVisible} {
|
|
379
|
+
opacity: 0.3;
|
|
380
|
+
transform: scale(1);
|
|
381
|
+
animation-name: ${tt};
|
|
382
|
+
animation-duration: ${ee}ms;
|
|
383
|
+
animation-timing-function: ${({
|
|
384
|
+
theme: o
|
|
385
|
+
}) => o.transitions.easing.easeInOut};
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
&.${y.ripplePulsate} {
|
|
389
|
+
animation-duration: ${({
|
|
390
|
+
theme: o
|
|
391
|
+
}) => o.transitions.duration.shorter}ms;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
& .${y.child} {
|
|
395
|
+
opacity: 1;
|
|
396
|
+
display: block;
|
|
397
|
+
width: 100%;
|
|
398
|
+
height: 100%;
|
|
399
|
+
border-radius: 50%;
|
|
400
|
+
background-color: currentColor;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
& .${y.childLeaving} {
|
|
404
|
+
opacity: 0;
|
|
405
|
+
animation-name: ${nt};
|
|
406
|
+
animation-duration: ${ee}ms;
|
|
407
|
+
animation-timing-function: ${({
|
|
408
|
+
theme: o
|
|
409
|
+
}) => o.transitions.easing.easeInOut};
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
& .${y.childPulsate} {
|
|
413
|
+
position: absolute;
|
|
414
|
+
/* @noflip */
|
|
415
|
+
left: 0px;
|
|
416
|
+
top: 0;
|
|
417
|
+
animation-name: ${ot};
|
|
418
|
+
animation-duration: 2500ms;
|
|
419
|
+
animation-timing-function: ${({
|
|
420
|
+
theme: o
|
|
421
|
+
}) => o.transitions.easing.easeInOut};
|
|
422
|
+
animation-iteration-count: infinite;
|
|
423
|
+
animation-delay: 200ms;
|
|
424
|
+
}
|
|
425
|
+
`, de = /* @__PURE__ */ d.forwardRef(function(e, n) {
|
|
426
|
+
const l = pe({
|
|
427
|
+
props: e,
|
|
428
|
+
name: "MuiTouchRipple"
|
|
429
|
+
}), {
|
|
430
|
+
center: i = !1,
|
|
431
|
+
classes: s = {},
|
|
432
|
+
className: r,
|
|
433
|
+
...u
|
|
434
|
+
} = l, [c, f] = d.useState([]), h = d.useRef(0), m = d.useRef(null);
|
|
435
|
+
d.useEffect(() => {
|
|
436
|
+
m.current && (m.current(), m.current = null);
|
|
437
|
+
}, [c]);
|
|
438
|
+
const M = d.useRef(!1), N = Ie(), g = d.useRef(null), v = d.useRef(null), x = d.useCallback((p) => {
|
|
439
|
+
const {
|
|
440
|
+
pulsate: T,
|
|
441
|
+
rippleX: R,
|
|
442
|
+
rippleY: j,
|
|
443
|
+
rippleSize: B,
|
|
444
|
+
cb: U
|
|
445
|
+
} = p;
|
|
446
|
+
f((C) => [...C, /* @__PURE__ */ I(st, {
|
|
447
|
+
classes: {
|
|
448
|
+
ripple: E(s.ripple, y.ripple),
|
|
449
|
+
rippleVisible: E(s.rippleVisible, y.rippleVisible),
|
|
450
|
+
ripplePulsate: E(s.ripplePulsate, y.ripplePulsate),
|
|
451
|
+
child: E(s.child, y.child),
|
|
452
|
+
childLeaving: E(s.childLeaving, y.childLeaving),
|
|
453
|
+
childPulsate: E(s.childPulsate, y.childPulsate)
|
|
454
|
+
},
|
|
455
|
+
timeout: ee,
|
|
456
|
+
pulsate: T,
|
|
457
|
+
rippleX: R,
|
|
458
|
+
rippleY: j,
|
|
459
|
+
rippleSize: B
|
|
460
|
+
}, h.current)]), h.current += 1, m.current = U;
|
|
461
|
+
}, [s]), O = d.useCallback((p = {}, T = {}, R = () => {
|
|
462
|
+
}) => {
|
|
463
|
+
const {
|
|
464
|
+
pulsate: j = !1,
|
|
465
|
+
center: B = i || T.pulsate,
|
|
466
|
+
fakeElement: U = !1
|
|
467
|
+
// For test purposes
|
|
468
|
+
} = T;
|
|
469
|
+
if ((p == null ? void 0 : p.type) === "mousedown" && M.current) {
|
|
470
|
+
M.current = !1;
|
|
471
|
+
return;
|
|
472
|
+
}
|
|
473
|
+
(p == null ? void 0 : p.type) === "touchstart" && (M.current = !0);
|
|
474
|
+
const C = U ? null : v.current, V = C ? C.getBoundingClientRect() : {
|
|
475
|
+
width: 0,
|
|
476
|
+
height: 0,
|
|
477
|
+
left: 0,
|
|
478
|
+
top: 0
|
|
479
|
+
};
|
|
480
|
+
let w, P, S;
|
|
481
|
+
if (B || p === void 0 || p.clientX === 0 && p.clientY === 0 || !p.clientX && !p.touches)
|
|
482
|
+
w = Math.round(V.width / 2), P = Math.round(V.height / 2);
|
|
483
|
+
else {
|
|
484
|
+
const {
|
|
485
|
+
clientX: z,
|
|
486
|
+
clientY: L
|
|
487
|
+
} = p.touches && p.touches.length > 0 ? p.touches[0] : p;
|
|
488
|
+
w = Math.round(z - V.left), P = Math.round(L - V.top);
|
|
489
|
+
}
|
|
490
|
+
if (B)
|
|
491
|
+
S = Math.sqrt((2 * V.width ** 2 + V.height ** 2) / 3), S % 2 === 0 && (S += 1);
|
|
492
|
+
else {
|
|
493
|
+
const z = Math.max(Math.abs((C ? C.clientWidth : 0) - w), w) * 2 + 2, L = Math.max(Math.abs((C ? C.clientHeight : 0) - P), P) * 2 + 2;
|
|
494
|
+
S = Math.sqrt(z ** 2 + L ** 2);
|
|
495
|
+
}
|
|
496
|
+
p != null && p.touches ? g.current === null && (g.current = () => {
|
|
497
|
+
x({
|
|
498
|
+
pulsate: j,
|
|
499
|
+
rippleX: w,
|
|
500
|
+
rippleY: P,
|
|
501
|
+
rippleSize: S,
|
|
502
|
+
cb: R
|
|
503
|
+
});
|
|
504
|
+
}, N.start(et, () => {
|
|
505
|
+
g.current && (g.current(), g.current = null);
|
|
506
|
+
})) : x({
|
|
507
|
+
pulsate: j,
|
|
508
|
+
rippleX: w,
|
|
509
|
+
rippleY: P,
|
|
510
|
+
rippleSize: S,
|
|
511
|
+
cb: R
|
|
512
|
+
});
|
|
513
|
+
}, [i, x, N]), Y = d.useCallback(() => {
|
|
514
|
+
O({}, {
|
|
515
|
+
pulsate: !0
|
|
516
|
+
});
|
|
517
|
+
}, [O]), F = d.useCallback((p, T) => {
|
|
518
|
+
if (N.clear(), (p == null ? void 0 : p.type) === "touchend" && g.current) {
|
|
519
|
+
g.current(), g.current = null, N.start(0, () => {
|
|
520
|
+
F(p, T);
|
|
521
|
+
});
|
|
522
|
+
return;
|
|
523
|
+
}
|
|
524
|
+
g.current = null, f((R) => R.length > 0 ? R.slice(1) : R), m.current = T;
|
|
525
|
+
}, [N]);
|
|
526
|
+
return d.useImperativeHandle(n, () => ({
|
|
527
|
+
pulsate: Y,
|
|
528
|
+
start: O,
|
|
529
|
+
stop: F
|
|
530
|
+
}), [Y, O, F]), /* @__PURE__ */ I(it, {
|
|
531
|
+
className: E(y.root, s.root, r),
|
|
532
|
+
ref: v,
|
|
533
|
+
...u,
|
|
534
|
+
children: /* @__PURE__ */ I(ie, {
|
|
535
|
+
component: null,
|
|
536
|
+
exit: !0,
|
|
537
|
+
children: c
|
|
538
|
+
})
|
|
539
|
+
});
|
|
540
|
+
});
|
|
541
|
+
process.env.NODE_ENV !== "production" && (de.propTypes = {
|
|
542
|
+
/**
|
|
543
|
+
* If `true`, the ripple starts at the center of the component
|
|
544
|
+
* rather than at the point of interaction.
|
|
545
|
+
*/
|
|
546
|
+
center: t.bool,
|
|
547
|
+
/**
|
|
548
|
+
* Override or extend the styles applied to the component.
|
|
549
|
+
*/
|
|
550
|
+
classes: t.object,
|
|
551
|
+
/**
|
|
552
|
+
* @ignore
|
|
553
|
+
*/
|
|
554
|
+
className: t.string
|
|
555
|
+
});
|
|
556
|
+
function rt(o) {
|
|
557
|
+
return Le("MuiButtonBase", o);
|
|
558
|
+
}
|
|
559
|
+
const at = ce("MuiButtonBase", ["root", "disabled", "focusVisible"]), lt = (o) => {
|
|
560
|
+
const {
|
|
561
|
+
disabled: e,
|
|
562
|
+
focusVisible: n,
|
|
563
|
+
focusVisibleClassName: l,
|
|
564
|
+
classes: i
|
|
565
|
+
} = o, r = $e({
|
|
566
|
+
root: ["root", e && "disabled", n && "focusVisible"]
|
|
567
|
+
}, rt, i);
|
|
568
|
+
return n && l && (r.root += ` ${l}`), r;
|
|
569
|
+
}, ut = ne("button", {
|
|
570
|
+
name: "MuiButtonBase",
|
|
571
|
+
slot: "Root",
|
|
572
|
+
overridesResolver: (o, e) => e.root
|
|
573
|
+
})({
|
|
574
|
+
display: "inline-flex",
|
|
575
|
+
alignItems: "center",
|
|
576
|
+
justifyContent: "center",
|
|
577
|
+
position: "relative",
|
|
578
|
+
boxSizing: "border-box",
|
|
579
|
+
WebkitTapHighlightColor: "transparent",
|
|
580
|
+
backgroundColor: "transparent",
|
|
581
|
+
// Reset default value
|
|
582
|
+
// We disable the focus ring for mouse, touch and keyboard users.
|
|
583
|
+
outline: 0,
|
|
584
|
+
border: 0,
|
|
585
|
+
margin: 0,
|
|
586
|
+
// Remove the margin in Safari
|
|
587
|
+
borderRadius: 0,
|
|
588
|
+
padding: 0,
|
|
589
|
+
// Remove the padding in Firefox
|
|
590
|
+
cursor: "pointer",
|
|
591
|
+
userSelect: "none",
|
|
592
|
+
verticalAlign: "middle",
|
|
593
|
+
MozAppearance: "none",
|
|
594
|
+
// Reset
|
|
595
|
+
WebkitAppearance: "none",
|
|
596
|
+
// Reset
|
|
597
|
+
textDecoration: "none",
|
|
598
|
+
// So we take precedent over the style of a native <a /> element.
|
|
599
|
+
color: "inherit",
|
|
600
|
+
"&::-moz-focus-inner": {
|
|
601
|
+
borderStyle: "none"
|
|
602
|
+
// Remove Firefox dotted outline.
|
|
603
|
+
},
|
|
604
|
+
[`&.${at.disabled}`]: {
|
|
605
|
+
pointerEvents: "none",
|
|
606
|
+
// Disable link interactions
|
|
607
|
+
cursor: "default"
|
|
608
|
+
},
|
|
609
|
+
"@media print": {
|
|
610
|
+
colorAdjust: "exact"
|
|
611
|
+
}
|
|
612
|
+
}), ct = /* @__PURE__ */ d.forwardRef(function(e, n) {
|
|
613
|
+
const l = pe({
|
|
614
|
+
props: e,
|
|
615
|
+
name: "MuiButtonBase"
|
|
616
|
+
}), {
|
|
617
|
+
action: i,
|
|
618
|
+
centerRipple: s = !1,
|
|
619
|
+
children: r,
|
|
620
|
+
className: u,
|
|
621
|
+
component: c = "button",
|
|
622
|
+
disabled: f = !1,
|
|
623
|
+
disableRipple: h = !1,
|
|
624
|
+
disableTouchRipple: m = !1,
|
|
625
|
+
focusRipple: M = !1,
|
|
626
|
+
focusVisibleClassName: N,
|
|
627
|
+
LinkComponent: g = "a",
|
|
628
|
+
onBlur: v,
|
|
629
|
+
onClick: x,
|
|
630
|
+
onContextMenu: O,
|
|
631
|
+
onDragLeave: Y,
|
|
632
|
+
onFocus: F,
|
|
633
|
+
onFocusVisible: p,
|
|
634
|
+
onKeyDown: T,
|
|
635
|
+
onKeyUp: R,
|
|
636
|
+
onMouseDown: j,
|
|
637
|
+
onMouseLeave: B,
|
|
638
|
+
onMouseUp: U,
|
|
639
|
+
onTouchEnd: C,
|
|
640
|
+
onTouchMove: V,
|
|
641
|
+
onTouchStart: w,
|
|
642
|
+
tabIndex: P = 0,
|
|
643
|
+
TouchRippleProps: S,
|
|
644
|
+
touchRippleRef: z,
|
|
645
|
+
type: L,
|
|
646
|
+
..._
|
|
647
|
+
} = l, A = d.useRef(null), b = qe(), he = le(b.ref, z), [$, K] = d.useState(!1);
|
|
648
|
+
f && $ && K(!1), d.useImperativeHandle(i, () => ({
|
|
649
|
+
focusVisible: () => {
|
|
650
|
+
K(!0), A.current.focus();
|
|
651
|
+
}
|
|
652
|
+
}), []);
|
|
653
|
+
const me = b.shouldMount && !h && !f;
|
|
654
|
+
d.useEffect(() => {
|
|
655
|
+
$ && M && !h && b.pulsate();
|
|
656
|
+
}, [h, M, $, b]);
|
|
657
|
+
const be = D(b, "start", j, m), ge = D(b, "stop", O, m), ye = D(b, "stop", Y, m), Me = D(b, "stop", U, m), Re = D(b, "stop", (a) => {
|
|
658
|
+
$ && a.preventDefault(), B && B(a);
|
|
659
|
+
}, m), Te = D(b, "start", w, m), Ce = D(b, "stop", C, m), Ee = D(b, "stop", V, m), xe = D(b, "stop", (a) => {
|
|
660
|
+
ue(a.target) || K(!1), v && v(a);
|
|
661
|
+
}, !1), Pe = J((a) => {
|
|
662
|
+
A.current || (A.current = a.currentTarget), ue(a.target) && (K(!0), p && p(a)), F && F(a);
|
|
663
|
+
}), Z = () => {
|
|
664
|
+
const a = A.current;
|
|
665
|
+
return c && c !== "button" && !(a.tagName === "A" && a.href);
|
|
666
|
+
}, De = J((a) => {
|
|
667
|
+
M && !a.repeat && $ && a.key === " " && b.stop(a, () => {
|
|
668
|
+
b.start(a);
|
|
669
|
+
}), a.target === a.currentTarget && Z() && a.key === " " && a.preventDefault(), T && T(a), a.target === a.currentTarget && Z() && a.key === "Enter" && !f && (a.preventDefault(), x && x(a));
|
|
670
|
+
}), Ne = J((a) => {
|
|
671
|
+
M && a.key === " " && $ && !a.defaultPrevented && b.stop(a, () => {
|
|
672
|
+
b.pulsate(a);
|
|
673
|
+
}), R && R(a), x && a.target === a.currentTarget && Z() && a.key === " " && !a.defaultPrevented && x(a);
|
|
674
|
+
});
|
|
675
|
+
let q = c;
|
|
676
|
+
q === "button" && (_.href || _.to) && (q = g);
|
|
677
|
+
const X = {};
|
|
678
|
+
q === "button" ? (X.type = L === void 0 ? "button" : L, X.disabled = f) : (!_.href && !_.to && (X.role = "button"), f && (X["aria-disabled"] = f));
|
|
679
|
+
const Ve = le(n, A), se = {
|
|
680
|
+
...l,
|
|
681
|
+
centerRipple: s,
|
|
682
|
+
component: c,
|
|
683
|
+
disabled: f,
|
|
684
|
+
disableRipple: h,
|
|
685
|
+
disableTouchRipple: m,
|
|
686
|
+
focusRipple: M,
|
|
687
|
+
tabIndex: P,
|
|
688
|
+
focusVisible: $
|
|
689
|
+
}, we = lt(se);
|
|
690
|
+
return /* @__PURE__ */ ke(ut, {
|
|
691
|
+
as: q,
|
|
692
|
+
className: E(we.root, u),
|
|
693
|
+
ownerState: se,
|
|
694
|
+
onBlur: xe,
|
|
695
|
+
onClick: x,
|
|
696
|
+
onContextMenu: ge,
|
|
697
|
+
onFocus: Pe,
|
|
698
|
+
onKeyDown: De,
|
|
699
|
+
onKeyUp: Ne,
|
|
700
|
+
onMouseDown: be,
|
|
701
|
+
onMouseLeave: Re,
|
|
702
|
+
onMouseUp: Me,
|
|
703
|
+
onDragLeave: ye,
|
|
704
|
+
onTouchEnd: Ce,
|
|
705
|
+
onTouchMove: Ee,
|
|
706
|
+
onTouchStart: Te,
|
|
707
|
+
ref: Ve,
|
|
708
|
+
tabIndex: f ? -1 : P,
|
|
709
|
+
type: L,
|
|
710
|
+
...X,
|
|
711
|
+
..._,
|
|
712
|
+
children: [r, me ? /* @__PURE__ */ I(de, {
|
|
713
|
+
ref: he,
|
|
714
|
+
center: s,
|
|
715
|
+
...S
|
|
716
|
+
}) : null]
|
|
717
|
+
});
|
|
718
|
+
});
|
|
719
|
+
function D(o, e, n, l = !1) {
|
|
720
|
+
return J((i) => (n && n(i), l || o[e](i), !0));
|
|
721
|
+
}
|
|
722
|
+
process.env.NODE_ENV !== "production" && (ct.propTypes = {
|
|
723
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
724
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
725
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
726
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
727
|
+
/**
|
|
728
|
+
* A ref for imperative actions.
|
|
729
|
+
* It currently only supports `focusVisible()` action.
|
|
730
|
+
*/
|
|
731
|
+
action: Ue,
|
|
732
|
+
/**
|
|
733
|
+
* If `true`, the ripples are centered.
|
|
734
|
+
* They won't start at the cursor interaction position.
|
|
735
|
+
* @default false
|
|
736
|
+
*/
|
|
737
|
+
centerRipple: t.bool,
|
|
738
|
+
/**
|
|
739
|
+
* The content of the component.
|
|
740
|
+
*/
|
|
741
|
+
children: t.node,
|
|
742
|
+
/**
|
|
743
|
+
* Override or extend the styles applied to the component.
|
|
744
|
+
*/
|
|
745
|
+
classes: t.object,
|
|
746
|
+
/**
|
|
747
|
+
* @ignore
|
|
748
|
+
*/
|
|
749
|
+
className: t.string,
|
|
750
|
+
/**
|
|
751
|
+
* The component used for the root node.
|
|
752
|
+
* Either a string to use a HTML element or a component.
|
|
753
|
+
*/
|
|
754
|
+
component: Ke,
|
|
755
|
+
/**
|
|
756
|
+
* If `true`, the component is disabled.
|
|
757
|
+
* @default false
|
|
758
|
+
*/
|
|
759
|
+
disabled: t.bool,
|
|
760
|
+
/**
|
|
761
|
+
* If `true`, the ripple effect is disabled.
|
|
762
|
+
*
|
|
763
|
+
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
764
|
+
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
765
|
+
* @default false
|
|
766
|
+
*/
|
|
767
|
+
disableRipple: t.bool,
|
|
768
|
+
/**
|
|
769
|
+
* If `true`, the touch ripple effect is disabled.
|
|
770
|
+
* @default false
|
|
771
|
+
*/
|
|
772
|
+
disableTouchRipple: t.bool,
|
|
773
|
+
/**
|
|
774
|
+
* If `true`, the base button will have a keyboard focus ripple.
|
|
775
|
+
* @default false
|
|
776
|
+
*/
|
|
777
|
+
focusRipple: t.bool,
|
|
778
|
+
/**
|
|
779
|
+
* This prop can help identify which element has keyboard focus.
|
|
780
|
+
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
781
|
+
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
782
|
+
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
783
|
+
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
784
|
+
* if needed.
|
|
785
|
+
*/
|
|
786
|
+
focusVisibleClassName: t.string,
|
|
787
|
+
/**
|
|
788
|
+
* @ignore
|
|
789
|
+
*/
|
|
790
|
+
href: t.any,
|
|
791
|
+
/**
|
|
792
|
+
* The component used to render a link when the `href` prop is provided.
|
|
793
|
+
* @default 'a'
|
|
794
|
+
*/
|
|
795
|
+
LinkComponent: t.elementType,
|
|
796
|
+
/**
|
|
797
|
+
* @ignore
|
|
798
|
+
*/
|
|
799
|
+
onBlur: t.func,
|
|
800
|
+
/**
|
|
801
|
+
* @ignore
|
|
802
|
+
*/
|
|
803
|
+
onClick: t.func,
|
|
804
|
+
/**
|
|
805
|
+
* @ignore
|
|
806
|
+
*/
|
|
807
|
+
onContextMenu: t.func,
|
|
808
|
+
/**
|
|
809
|
+
* @ignore
|
|
810
|
+
*/
|
|
811
|
+
onDragLeave: t.func,
|
|
812
|
+
/**
|
|
813
|
+
* @ignore
|
|
814
|
+
*/
|
|
815
|
+
onFocus: t.func,
|
|
816
|
+
/**
|
|
817
|
+
* Callback fired when the component is focused with a keyboard.
|
|
818
|
+
* We trigger a `onFocus` callback too.
|
|
819
|
+
*/
|
|
820
|
+
onFocusVisible: t.func,
|
|
821
|
+
/**
|
|
822
|
+
* @ignore
|
|
823
|
+
*/
|
|
824
|
+
onKeyDown: t.func,
|
|
825
|
+
/**
|
|
826
|
+
* @ignore
|
|
827
|
+
*/
|
|
828
|
+
onKeyUp: t.func,
|
|
829
|
+
/**
|
|
830
|
+
* @ignore
|
|
831
|
+
*/
|
|
832
|
+
onMouseDown: t.func,
|
|
833
|
+
/**
|
|
834
|
+
* @ignore
|
|
835
|
+
*/
|
|
836
|
+
onMouseLeave: t.func,
|
|
837
|
+
/**
|
|
838
|
+
* @ignore
|
|
839
|
+
*/
|
|
840
|
+
onMouseUp: t.func,
|
|
841
|
+
/**
|
|
842
|
+
* @ignore
|
|
843
|
+
*/
|
|
844
|
+
onTouchEnd: t.func,
|
|
845
|
+
/**
|
|
846
|
+
* @ignore
|
|
847
|
+
*/
|
|
848
|
+
onTouchMove: t.func,
|
|
849
|
+
/**
|
|
850
|
+
* @ignore
|
|
851
|
+
*/
|
|
852
|
+
onTouchStart: t.func,
|
|
853
|
+
/**
|
|
854
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
855
|
+
*/
|
|
856
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
857
|
+
/**
|
|
858
|
+
* @default 0
|
|
859
|
+
*/
|
|
860
|
+
tabIndex: t.number,
|
|
861
|
+
/**
|
|
862
|
+
* Props applied to the `TouchRipple` element.
|
|
863
|
+
*/
|
|
864
|
+
TouchRippleProps: t.object,
|
|
865
|
+
/**
|
|
866
|
+
* A ref that points to the `TouchRipple` element.
|
|
867
|
+
*/
|
|
868
|
+
touchRippleRef: t.oneOfType([t.func, t.shape({
|
|
869
|
+
current: t.shape({
|
|
870
|
+
pulsate: t.func.isRequired,
|
|
871
|
+
start: t.func.isRequired,
|
|
872
|
+
stop: t.func.isRequired
|
|
873
|
+
})
|
|
874
|
+
})]),
|
|
875
|
+
/**
|
|
876
|
+
* @ignore
|
|
877
|
+
*/
|
|
878
|
+
type: t.oneOfType([t.oneOf(["button", "reset", "submit"]), t.string])
|
|
879
|
+
});
|
|
880
|
+
export {
|
|
881
|
+
ct as B,
|
|
882
|
+
Ke as e
|
|
883
|
+
};
|