@sisense/sdk-shared-ui 1.27.1 → 1.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CheckableList-BLLCGCKX.cjs +1 -0
- package/dist/CheckableList-CC7iKnHq.js +21 -0
- package/dist/Checkbox-CrbGw8d7.js +513 -0
- package/dist/Checkbox-Dy9BTXfS.cjs +1 -0
- package/dist/DEPRECATED_Button-D2XS1y1r.cjs +1 -0
- package/dist/DEPRECATED_Button-m2ifXo3Q.js +87 -0
- package/dist/DEPRECATED_Checkbox-CYomxatm.cjs +1 -0
- package/dist/DEPRECATED_Checkbox-DWtXr5K7.js +63 -0
- package/dist/DEPRECATED_Icon-BQ4AqiI1.js +56 -0
- package/dist/DEPRECATED_Icon-iUszZb09.cjs +1 -0
- package/dist/DEPRECATED_Toggle-DMnlQO3F.js +30 -0
- package/dist/DEPRECATED_Toggle-Dp0ZZ_6E.cjs +1 -0
- package/dist/DEPRECATED_Tooltip-C2bU8ipb.js +2316 -0
- package/dist/DEPRECATED_Tooltip-D3ReAkFF.cjs +27 -0
- package/dist/Dropdown-BtZZ4fY6.cjs +1 -0
- package/dist/Dropdown-BxoUPsca.js +231 -0
- package/dist/Icon-B1V-T6UH.cjs +1 -0
- package/dist/Icon-Cs6oGRgo.js +110 -0
- package/dist/Input-BghWSV2Z.js +119 -0
- package/dist/Input-Cd6a2FUC.cjs +1 -0
- package/dist/LazyLoader-DB86QSSx.js +18 -0
- package/dist/LazyLoader-gOLNhxc-.cjs +1 -0
- package/dist/Menu-BfAQOpHl.cjs +1 -0
- package/dist/Menu-C5wQnuq6.js +1212 -0
- package/dist/Popover-0n4kd3ut.js +49 -0
- package/dist/Popover-Bp5g_ws9.cjs +1 -0
- package/dist/RadioButton-BpAksn2s.js +70 -0
- package/dist/RadioButton-Ds-0wj0r.cjs +1 -0
- package/dist/SvgIcon-LwOuESoH.js +238 -0
- package/dist/SvgIcon-SnObJHZS.cjs +1 -0
- package/dist/TablePagination-B8I5QURH.js +7929 -0
- package/dist/TablePagination-DH0TZ21v.cjs +31 -0
- package/dist/ThemeProvider-aq1EWT1u.js +5041 -0
- package/dist/ThemeProvider-sqppyE-5.cjs +114 -0
- package/dist/Tooltip-Dokek6y8.cjs +7 -0
- package/dist/Tooltip-vVc6Lxew.js +2153 -0
- package/dist/TransitionGroupContext-BlR3HYBG.cjs +4 -0
- package/dist/TransitionGroupContext-Ci_clMyv.js +120 -0
- package/dist/Typography-C891hjk2.js +497 -0
- package/dist/Typography-vldQClJj.cjs +1 -0
- package/dist/align.interface-B17uA473.cjs +1 -0
- package/dist/align.interface-DdWsijrT.js +4 -0
- package/dist/assertThisInitialized-BSnhOY1M.cjs +1 -0
- package/dist/assertThisInitialized-lz6cHcRv.js +8 -0
- package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +17 -0
- package/dist/createSimplePaletteValueFilter-PTK3TAhW.cjs +1 -0
- package/dist/createSvgIcon-CXJWSg3i.js +902 -0
- package/dist/createSvgIcon-DF4qzIJY.cjs +74 -0
- package/dist/extends-DX42hfxm.js +13 -0
- package/dist/extends-q0Hkx4pQ.cjs +1 -0
- package/dist/index-B-zZeebW.cjs +20 -0
- package/dist/index-D0lMis-I.js +667 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/lib/CheckableList/CheckableList.cjs +1 -0
- package/dist/lib/CheckableList/CheckableList.d.ts +16 -0
- package/dist/lib/CheckableList/CheckableList.d.ts.map +1 -0
- package/dist/lib/CheckableList/CheckableList.js +5 -0
- package/dist/lib/CheckableList/index.d.ts +4 -0
- package/dist/lib/CheckableList/index.d.ts.map +1 -0
- package/dist/lib/Checkbox/Checkbox.cjs +1 -0
- package/dist/lib/Checkbox/Checkbox.d.ts +20 -0
- package/dist/lib/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/lib/Checkbox/Checkbox.js +5 -0
- package/dist/lib/Checkbox/index.d.ts +4 -0
- package/dist/lib/Checkbox/index.d.ts.map +1 -0
- package/dist/lib/Checkbox/themes/checkboxTheme.d.ts +12 -0
- package/dist/lib/Checkbox/themes/checkboxTheme.d.ts.map +1 -0
- package/{src/lib/Checkbox/themes/index.ts → dist/lib/Checkbox/themes/index.d.ts} +1 -0
- package/dist/lib/Checkbox/themes/index.d.ts.map +1 -0
- package/dist/lib/Checkbox/themes/uiCustomization.d.ts +12 -0
- package/dist/lib/Checkbox/themes/uiCustomization.d.ts.map +1 -0
- package/dist/lib/DEPRECATED_Button/DEPRECATED_Button.cjs +1 -0
- package/dist/lib/DEPRECATED_Button/DEPRECATED_Button.d.ts +43 -0
- package/dist/lib/DEPRECATED_Button/DEPRECATED_Button.d.ts.map +1 -0
- package/dist/lib/DEPRECATED_Button/DEPRECATED_Button.js +5 -0
- package/dist/lib/DEPRECATED_Button/index.d.ts +4 -0
- package/dist/lib/DEPRECATED_Button/index.d.ts.map +1 -0
- package/dist/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.cjs +1 -0
- package/dist/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.d.ts +20 -0
- package/dist/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.d.ts.map +1 -0
- package/dist/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.js +5 -0
- package/dist/lib/DEPRECATED_Checkbox/index.d.ts +4 -0
- package/dist/lib/DEPRECATED_Checkbox/index.d.ts.map +1 -0
- package/dist/lib/DEPRECATED_Icon/DEPRECATED_Icon.cjs +1 -0
- package/dist/lib/DEPRECATED_Icon/DEPRECATED_Icon.d.ts +17 -0
- package/dist/lib/DEPRECATED_Icon/DEPRECATED_Icon.d.ts.map +1 -0
- package/dist/lib/DEPRECATED_Icon/DEPRECATED_Icon.js +5 -0
- package/dist/lib/DEPRECATED_Icon/index.d.ts +4 -0
- package/dist/lib/DEPRECATED_Icon/index.d.ts.map +1 -0
- package/dist/lib/DEPRECATED_Toggle/DEPRECATED_Toggle.cjs +1 -0
- package/dist/lib/DEPRECATED_Toggle/DEPRECATED_Toggle.d.ts +13 -0
- package/dist/lib/DEPRECATED_Toggle/DEPRECATED_Toggle.d.ts.map +1 -0
- package/dist/lib/DEPRECATED_Toggle/DEPRECATED_Toggle.js +5 -0
- package/dist/lib/DEPRECATED_Toggle/index.d.ts +4 -0
- package/dist/lib/DEPRECATED_Toggle/index.d.ts.map +1 -0
- package/dist/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.cjs +1 -0
- package/dist/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.d.ts +15 -0
- package/dist/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.d.ts.map +1 -0
- package/dist/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.js +5 -0
- package/dist/lib/DEPRECATED_Tooltip/index.d.ts +4 -0
- package/dist/lib/DEPRECATED_Tooltip/index.d.ts.map +1 -0
- package/dist/lib/Dropdown/Dropdown.cjs +1 -0
- package/dist/lib/Dropdown/Dropdown.d.ts +32 -0
- package/dist/lib/Dropdown/Dropdown.d.ts.map +1 -0
- package/dist/lib/Dropdown/Dropdown.js +5 -0
- package/dist/lib/Dropdown/DropdownButton/DropdownButton.d.ts +18 -0
- package/dist/lib/Dropdown/DropdownButton/DropdownButton.d.ts.map +1 -0
- package/dist/lib/Dropdown/DropdownButton/DropdownButtonBody/DropdownButtonBody.d.ts +12 -0
- package/dist/lib/Dropdown/DropdownButton/DropdownButtonBody/DropdownButtonBody.d.ts.map +1 -0
- package/{src/lib/Dropdown/DropdownButton/DropdownButtonBody/index.ts → dist/lib/Dropdown/DropdownButton/DropdownButtonBody/index.d.ts} +1 -0
- package/dist/lib/Dropdown/DropdownButton/DropdownButtonBody/index.d.ts.map +1 -0
- package/dist/lib/Dropdown/DropdownButton/DropdownButtonSearch/DropdownButtonSearch.d.ts +10 -0
- package/dist/lib/Dropdown/DropdownButton/DropdownButtonSearch/DropdownButtonSearch.d.ts.map +1 -0
- package/dist/lib/Dropdown/DropdownButton/DropdownButtonSearch/constants.d.ts +2 -0
- package/dist/lib/Dropdown/DropdownButton/DropdownButtonSearch/constants.d.ts.map +1 -0
- package/{src/lib/Dropdown/DropdownButton/DropdownButtonSearch/index.ts → dist/lib/Dropdown/DropdownButton/DropdownButtonSearch/index.d.ts} +1 -0
- package/dist/lib/Dropdown/DropdownButton/DropdownButtonSearch/index.d.ts.map +1 -0
- package/{src/lib/Dropdown/DropdownButton/hooks/index.tsx → dist/lib/Dropdown/DropdownButton/hooks/index.d.ts} +1 -0
- package/dist/lib/Dropdown/DropdownButton/hooks/index.d.ts.map +1 -0
- package/dist/lib/Dropdown/DropdownButton/hooks/useDropdownButtonSearch.d.ts +15 -0
- package/dist/lib/Dropdown/DropdownButton/hooks/useDropdownButtonSearch.d.ts.map +1 -0
- package/{src/lib/Dropdown/DropdownButton/index.ts → dist/lib/Dropdown/DropdownButton/index.d.ts} +1 -0
- package/dist/lib/Dropdown/DropdownButton/index.d.ts.map +1 -0
- package/{src/lib/Dropdown/hooks/index.tsx → dist/lib/Dropdown/hooks/index.d.ts} +1 -0
- package/dist/lib/Dropdown/hooks/index.d.ts.map +1 -0
- package/dist/lib/Dropdown/hooks/useDropdown.d.ts +9 -0
- package/dist/lib/Dropdown/hooks/useDropdown.d.ts.map +1 -0
- package/dist/lib/Dropdown/index.d.ts +5 -0
- package/dist/lib/Dropdown/index.d.ts.map +1 -0
- package/dist/lib/Dropdown/types.d.ts +12 -0
- package/dist/lib/Dropdown/types.d.ts.map +1 -0
- package/dist/lib/Icon/Icon.cjs +1 -0
- package/dist/lib/Icon/Icon.d.ts +13 -0
- package/dist/lib/Icon/Icon.d.ts.map +1 -0
- package/dist/lib/Icon/Icon.js +5 -0
- package/dist/lib/Icon/index.d.ts +4 -0
- package/dist/lib/Icon/index.d.ts.map +1 -0
- package/dist/lib/Icon/themes/iconTheme.d.ts +8 -0
- package/dist/lib/Icon/themes/iconTheme.d.ts.map +1 -0
- package/{src/lib/Icon/themes/index.ts → dist/lib/Icon/themes/index.d.ts} +1 -0
- package/dist/lib/Icon/themes/index.d.ts.map +1 -0
- package/dist/lib/Icon/themes/uiCustomization.d.ts +2 -0
- package/dist/lib/Icon/themes/uiCustomization.d.ts.map +1 -0
- package/dist/lib/Input/Input.cjs +1 -0
- package/dist/lib/Input/Input.d.ts +28 -0
- package/dist/lib/Input/Input.d.ts.map +1 -0
- package/dist/lib/Input/Input.js +5 -0
- package/dist/lib/Input/index.d.ts +4 -0
- package/dist/lib/Input/index.d.ts.map +1 -0
- package/dist/lib/LazyLoader/LazyLoader.cjs +1 -0
- package/dist/lib/LazyLoader/LazyLoader.d.ts +9 -0
- package/dist/lib/LazyLoader/LazyLoader.d.ts.map +1 -0
- package/dist/lib/LazyLoader/LazyLoader.js +5 -0
- package/dist/lib/LazyLoader/index.d.ts +4 -0
- package/dist/lib/LazyLoader/index.d.ts.map +1 -0
- package/dist/lib/Menu/Confirmation/Confirmation.d.ts +8 -0
- package/dist/lib/Menu/Confirmation/Confirmation.d.ts.map +1 -0
- package/{src/lib/Menu/Confirmation/index.ts → dist/lib/Menu/Confirmation/index.d.ts} +1 -0
- package/dist/lib/Menu/Confirmation/index.d.ts.map +1 -0
- package/dist/lib/Menu/Confirmation/translation.d.ts +2 -0
- package/dist/lib/Menu/Confirmation/translation.d.ts.map +1 -0
- package/dist/lib/Menu/Menu.cjs +1 -0
- package/dist/lib/Menu/Menu.d.ts +80 -0
- package/dist/lib/Menu/Menu.d.ts.map +1 -0
- package/dist/lib/Menu/Menu.js +8 -0
- package/dist/lib/Menu/MenuItem/MenuItem.d.ts +36 -0
- package/dist/lib/Menu/MenuItem/MenuItem.d.ts.map +1 -0
- package/{src/lib/Menu/MenuItem/index.ts → dist/lib/Menu/MenuItem/index.d.ts} +1 -0
- package/dist/lib/Menu/MenuItem/index.d.ts.map +1 -0
- package/{src/lib/Menu/index.ts → dist/lib/Menu/index.d.ts} +2 -2
- package/dist/lib/Menu/index.d.ts.map +1 -0
- package/dist/lib/Menu/utils.d.ts +6 -0
- package/dist/lib/Menu/utils.d.ts.map +1 -0
- package/dist/lib/Popover/Popover.cjs +1 -0
- package/dist/lib/Popover/Popover.d.ts +16 -0
- package/dist/lib/Popover/Popover.d.ts.map +1 -0
- package/dist/lib/Popover/Popover.js +7 -0
- package/dist/lib/Popover/align.interface.d.ts +23 -0
- package/dist/lib/Popover/align.interface.d.ts.map +1 -0
- package/{src/lib/Popover/index.ts → dist/lib/Popover/index.d.ts} +2 -2
- package/dist/lib/Popover/index.d.ts.map +1 -0
- package/dist/lib/RadioButton/RadioButton.cjs +1 -0
- package/dist/lib/RadioButton/RadioButton.d.ts +20 -0
- package/dist/lib/RadioButton/RadioButton.d.ts.map +1 -0
- package/dist/lib/RadioButton/RadioButton.js +5 -0
- package/dist/lib/RadioButton/index.d.ts +4 -0
- package/dist/lib/RadioButton/index.d.ts.map +1 -0
- package/dist/lib/TablePagination/PaginationActionsComponent/PaginationActionsComponent.d.ts +9 -0
- package/dist/lib/TablePagination/PaginationActionsComponent/PaginationActionsComponent.d.ts.map +1 -0
- package/dist/lib/TablePagination/PaginationActionsComponent/index.d.ts +2 -0
- package/dist/lib/TablePagination/PaginationActionsComponent/index.d.ts.map +1 -0
- package/dist/lib/TablePagination/PaginationActionsComponent/themes/index.d.ts +2 -0
- package/dist/lib/TablePagination/PaginationActionsComponent/themes/index.d.ts.map +1 -0
- package/dist/lib/TablePagination/PaginationActionsComponent/themes/paginationActionsComponentTheme.d.ts +3 -0
- package/dist/lib/TablePagination/PaginationActionsComponent/themes/paginationActionsComponentTheme.d.ts.map +1 -0
- package/dist/lib/TablePagination/PaginationActionsComponent/themes/uiCustomization.d.ts +2 -0
- package/dist/lib/TablePagination/PaginationActionsComponent/themes/uiCustomization.d.ts.map +1 -0
- package/dist/lib/TablePagination/TablePagination.cjs +1 -0
- package/dist/lib/TablePagination/TablePagination.d.ts +19 -0
- package/dist/lib/TablePagination/TablePagination.d.ts.map +1 -0
- package/dist/lib/TablePagination/TablePagination.js +5 -0
- package/dist/lib/TablePagination/TablePaginationContext.d.ts +3 -0
- package/dist/lib/TablePagination/TablePaginationContext.d.ts.map +1 -0
- package/dist/lib/TablePagination/index.d.ts +4 -0
- package/dist/lib/TablePagination/index.d.ts.map +1 -0
- package/{src/lib/TablePagination/themes/index.ts → dist/lib/TablePagination/themes/index.d.ts} +1 -0
- package/dist/lib/TablePagination/themes/index.d.ts.map +1 -0
- package/dist/lib/TablePagination/themes/tablePaginationResponsiveDesign.d.ts +10 -0
- package/dist/lib/TablePagination/themes/tablePaginationResponsiveDesign.d.ts.map +1 -0
- package/dist/lib/TablePagination/themes/tablePaginationTheme.d.ts +3 -0
- package/dist/lib/TablePagination/themes/tablePaginationTheme.d.ts.map +1 -0
- package/dist/lib/TablePagination/themes/uiCustomization.d.ts +2 -0
- package/dist/lib/TablePagination/themes/uiCustomization.d.ts.map +1 -0
- package/dist/lib/Tooltip/Tooltip.cjs +1 -0
- package/dist/lib/Tooltip/Tooltip.d.ts +10 -0
- package/dist/lib/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/lib/Tooltip/Tooltip.js +7 -0
- package/{src/lib/Tooltip/index.ts → dist/lib/Tooltip/index.d.ts} +2 -2
- package/dist/lib/Tooltip/index.d.ts.map +1 -0
- package/{src/lib/Tooltip/themes/index.ts → dist/lib/Tooltip/themes/index.d.ts} +1 -0
- package/dist/lib/Tooltip/themes/index.d.ts.map +1 -0
- package/dist/lib/Tooltip/themes/tooltipTheme.d.ts +3 -0
- package/dist/lib/Tooltip/themes/tooltipTheme.d.ts.map +1 -0
- package/dist/lib/Typography/Typography.cjs +1 -0
- package/dist/lib/Typography/Typography.d.ts +11 -0
- package/dist/lib/Typography/Typography.d.ts.map +1 -0
- package/dist/lib/Typography/Typography.js +7 -0
- package/{src/lib/Typography/index.ts → dist/lib/Typography/index.d.ts} +2 -2
- package/dist/lib/Typography/index.d.ts.map +1 -0
- package/{src/lib/Typography/themes/index.ts → dist/lib/Typography/themes/index.d.ts} +1 -0
- package/dist/lib/Typography/themes/index.d.ts.map +1 -0
- package/dist/lib/Typography/themes/typographyTheme.d.ts +21 -0
- package/dist/lib/Typography/themes/typographyTheme.d.ts.map +1 -0
- package/dist/lib/Typography/themes/uiCustomization.d.ts +2 -0
- package/dist/lib/Typography/themes/uiCustomization.d.ts.map +1 -0
- package/dist/lib/constants/styleguideConstants.d.ts +9 -0
- package/dist/lib/constants/styleguideConstants.d.ts.map +1 -0
- package/{src/lib/index.ts → dist/lib/index.d.ts} +1 -0
- package/dist/lib/index.d.ts.map +1 -0
- package/{src/lib/themes/colors/index.ts → dist/lib/themes/colors/index.d.ts} +1 -0
- package/dist/lib/themes/colors/index.d.ts.map +1 -0
- package/dist/lib/themes/colors/siColors.d.ts +140 -0
- package/dist/lib/themes/colors/siColors.d.ts.map +1 -0
- package/{src/lib/themes/index.ts → dist/lib/themes/index.d.ts} +1 -0
- package/dist/lib/themes/index.d.ts.map +1 -0
- package/dist/lib/themes/themes.cjs +2 -0
- package/dist/lib/themes/themes.js +142 -0
- package/dist/lib/themes/types/SisenseTheme.d.ts +12 -0
- package/dist/lib/themes/types/SisenseTheme.d.ts.map +1 -0
- package/{src/lib/themes/types/index.ts → dist/lib/themes/types/index.d.ts} +1 -0
- package/dist/lib/themes/types/index.d.ts.map +1 -0
- package/dist/package.json +208 -0
- package/dist/setPrototypeOf-BmHXYjK5.cjs +1 -0
- package/dist/setPrototypeOf-CEtRTXk2.js +19 -0
- package/dist/styleguideConstants-CtXkvIZK.cjs +1 -0
- package/dist/styleguideConstants-D4Yls16w.js +11 -0
- package/dist/useSlot-BfQr8KCN.js +803 -0
- package/dist/useSlot-C3-OaWva.cjs +1 -0
- package/dist/useTheme-CtIZL8WJ.js +8 -0
- package/dist/useTheme-DJmNR5EL.cjs +1 -0
- package/package.json +4 -1
- package/.eslintignore +0 -4
- package/.prettierignore +0 -11
- package/.storybook/main.ts +0 -44
- package/.storybook/preview-head.html +0 -4
- package/.storybook/preview.tsx +0 -34
- package/src/index.ts +0 -1
- package/src/lib/@types/sass.d.ts +0 -19
- package/src/lib/CheckableList/CheckableList.module.scss +0 -13
- package/src/lib/CheckableList/CheckableList.test.tsx +0 -61
- package/src/lib/CheckableList/CheckableList.tsx +0 -41
- package/src/lib/CheckableList/index.ts +0 -4
- package/src/lib/Checkbox/Checkbox.tsx +0 -28
- package/src/lib/Checkbox/index.ts +0 -4
- package/src/lib/Checkbox/themes/checkboxTheme.ts +0 -42
- package/src/lib/Checkbox/themes/uiCustomization.ts +0 -28
- package/src/lib/DEPRECATED_Button/DEPRECATED_Button.module.scss +0 -57
- package/src/lib/DEPRECATED_Button/DEPRECATED_Button.stories.tsx +0 -169
- package/src/lib/DEPRECATED_Button/DEPRECATED_Button.test.tsx +0 -154
- package/src/lib/DEPRECATED_Button/DEPRECATED_Button.tsx +0 -129
- package/src/lib/DEPRECATED_Button/index.ts +0 -4
- package/src/lib/DEPRECATED_Checkbox/Checkbox.module.scss +0 -49
- package/src/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.test.tsx +0 -131
- package/src/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.tsx +0 -103
- package/src/lib/DEPRECATED_Checkbox/index.ts +0 -4
- package/src/lib/DEPRECATED_Icon/DEPRECATED_Icon.module.scss +0 -7
- package/src/lib/DEPRECATED_Icon/DEPRECATED_Icon.stories.tsx +0 -27
- package/src/lib/DEPRECATED_Icon/DEPRECATED_Icon.test.tsx +0 -105
- package/src/lib/DEPRECATED_Icon/DEPRECATED_Icon.tsx +0 -91
- package/src/lib/DEPRECATED_Icon/index.ts +0 -4
- package/src/lib/DEPRECATED_Toggle/DEPRECATED_Toggle.tsx +0 -49
- package/src/lib/DEPRECATED_Toggle/index.ts +0 -4
- package/src/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.module.scss +0 -115
- package/src/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.tsx +0 -68
- package/src/lib/DEPRECATED_Tooltip/index.ts +0 -4
- package/src/lib/Dropdown/Dropdown.module.scss +0 -9
- package/src/lib/Dropdown/Dropdown.tsx +0 -150
- package/src/lib/Dropdown/DropdownButton/DropdownButton.module.scss +0 -49
- package/src/lib/Dropdown/DropdownButton/DropdownButton.tsx +0 -81
- package/src/lib/Dropdown/DropdownButton/DropdownButtonBody/DropdownButtonBody.test.tsx +0 -121
- package/src/lib/Dropdown/DropdownButton/DropdownButtonBody/DropdownButtonBody.tsx +0 -39
- package/src/lib/Dropdown/DropdownButton/DropdownButtonSearch/DropdownButtonSearch.module.scss +0 -20
- package/src/lib/Dropdown/DropdownButton/DropdownButtonSearch/DropdownButtonSearch.tsx +0 -44
- package/src/lib/Dropdown/DropdownButton/DropdownButtonSearch/constants.ts +0 -1
- package/src/lib/Dropdown/DropdownButton/hooks/useDropdownButtonSearch.ts +0 -51
- package/src/lib/Dropdown/hooks/useDropdown.ts +0 -29
- package/src/lib/Dropdown/index.ts +0 -5
- package/src/lib/Dropdown/types.ts +0 -17
- package/src/lib/Icon/Icon.tsx +0 -118
- package/src/lib/Icon/index.ts +0 -4
- package/src/lib/Icon/themes/iconTheme.tsx +0 -38
- package/src/lib/Icon/themes/uiCustomization.ts +0 -9
- package/src/lib/Input/Input.module.scss +0 -97
- package/src/lib/Input/Input.test.tsx +0 -177
- package/src/lib/Input/Input.tsx +0 -134
- package/src/lib/Input/index.ts +0 -4
- package/src/lib/LazyLoader/LazyLoader.module.scss +0 -18
- package/src/lib/LazyLoader/LazyLoader.tsx +0 -42
- package/src/lib/LazyLoader/index.ts +0 -4
- package/src/lib/Menu/Confirmation/Confirmation.module.scss +0 -48
- package/src/lib/Menu/Confirmation/Confirmation.tsx +0 -45
- package/src/lib/Menu/Confirmation/translation.ts +0 -17
- package/src/lib/Menu/Menu.module.scss +0 -178
- package/src/lib/Menu/Menu.tsx +0 -363
- package/src/lib/Menu/MenuItem/MenuItem.test.tsx +0 -241
- package/src/lib/Menu/MenuItem/MenuItem.tsx +0 -186
- package/src/lib/Menu/utils.ts +0 -13
- package/src/lib/Popover/Popover.module.scss +0 -15
- package/src/lib/Popover/Popover.tsx +0 -92
- package/src/lib/Popover/align.interface.ts +0 -20
- package/src/lib/RadioButton/RadioButton.module.scss +0 -22
- package/src/lib/RadioButton/RadioButton.tsx +0 -89
- package/src/lib/RadioButton/index.ts +0 -4
- package/src/lib/TablePagination/PaginationActionsComponent/PaginationActionsComponent.tsx +0 -87
- package/src/lib/TablePagination/PaginationActionsComponent/index.ts +0 -4
- package/src/lib/TablePagination/PaginationActionsComponent/themes/index.ts +0 -4
- package/src/lib/TablePagination/PaginationActionsComponent/themes/paginationActionsComponentTheme.tsx +0 -70
- package/src/lib/TablePagination/PaginationActionsComponent/themes/uiCustomization.ts +0 -17
- package/src/lib/TablePagination/TablePagination.tsx +0 -148
- package/src/lib/TablePagination/TablePaginationContext.ts +0 -4
- package/src/lib/TablePagination/index.ts +0 -4
- package/src/lib/TablePagination/themes/tablePaginationResponsiveDesign.ts +0 -33
- package/src/lib/TablePagination/themes/tablePaginationTheme.tsx +0 -128
- package/src/lib/TablePagination/themes/uiCustomization.ts +0 -50
- package/src/lib/Tooltip/Tooltip.module.scss +0 -125
- package/src/lib/Tooltip/Tooltip.tsx +0 -34
- package/src/lib/Tooltip/themes/tooltipTheme.ts +0 -30
- package/src/lib/Typography/Typography.tsx +0 -28
- package/src/lib/Typography/themes/typographyTheme.tsx +0 -170
- package/src/lib/Typography/themes/uiCustomization.ts +0 -10
- package/src/lib/constants/styleguideConstants.ts +0 -8
- package/src/lib/styles/colors.module.scss +0 -10
- package/src/lib/styles/sisenseStyleguideReactColors.scss +0 -57
- package/src/lib/styles/style_styleguide_react/_variables.deprecated.scss +0 -107
- package/src/lib/styles/style_styleguide_react/_variables.scss +0 -100
- package/src/lib/styles/style_styleguide_react/base.scss +0 -9
- package/src/lib/styles/style_styleguide_react/colors.scss +0 -71
- package/src/lib/styles/style_styleguide_react/exports/colors.exports.scss +0 -69
- package/src/lib/styles/style_styleguide_react/exports/fonts.exports.scss +0 -33
- package/src/lib/styles/style_styleguide_react/fonts.scss +0 -27
- package/src/lib/styles/style_styleguide_react/mixins.scss +0 -90
- package/src/lib/themes/colors/siColors.ts +0 -143
- package/src/lib/themes/types/SisenseTheme.ts +0 -12
- package/tsconfig.eslint.json +0 -12
- package/tsconfig.json +0 -17
- package/tsconfig.lib.json +0 -22
- package/tsconfig.spec.json +0 -21
- package/vite.config.ts +0 -140
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import React, { FC, useRef } from 'react';
|
|
2
|
-
import classNames from 'classnames';
|
|
3
|
-
|
|
4
|
-
import { DropdownButtonSearch } from './DropdownButtonSearch';
|
|
5
|
-
import { DropdownButtonBody } from './DropdownButtonBody';
|
|
6
|
-
import { useDropdownButtonSearch } from './hooks';
|
|
7
|
-
|
|
8
|
-
import type { DropdownItem, DropdownInputProps } from '../types';
|
|
9
|
-
|
|
10
|
-
import style from './DropdownButton.module.scss';
|
|
11
|
-
|
|
12
|
-
export type DropdownButtonProps = {
|
|
13
|
-
items?: DropdownItem[];
|
|
14
|
-
selectedShowIcon?: boolean;
|
|
15
|
-
placeholder?: string;
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
selectedItemId?: string;
|
|
18
|
-
width?: number;
|
|
19
|
-
inlineVariant?: boolean;
|
|
20
|
-
classNameDropdown?: string;
|
|
21
|
-
classNameButton?: string;
|
|
22
|
-
classNameSearch?: string;
|
|
23
|
-
searchInputProps?: DropdownInputProps;
|
|
24
|
-
isOpen?: boolean;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export const DropdownButton: FC<DropdownButtonProps> = ({
|
|
28
|
-
items = [],
|
|
29
|
-
selectedShowIcon = true,
|
|
30
|
-
placeholder = '',
|
|
31
|
-
disabled,
|
|
32
|
-
selectedItemId,
|
|
33
|
-
width,
|
|
34
|
-
inlineVariant,
|
|
35
|
-
classNameDropdown,
|
|
36
|
-
classNameButton,
|
|
37
|
-
classNameSearch,
|
|
38
|
-
searchInputProps,
|
|
39
|
-
isOpen = false,
|
|
40
|
-
}) => {
|
|
41
|
-
const selectedItem = items.find((item) => item.id === selectedItemId);
|
|
42
|
-
const ref = useRef(null);
|
|
43
|
-
|
|
44
|
-
const {
|
|
45
|
-
inputProps,
|
|
46
|
-
handlers: { handleOnSearchInputClick, handleOnSearchInputChange },
|
|
47
|
-
} = useDropdownButtonSearch(isOpen, selectedItem, searchInputProps, ref);
|
|
48
|
-
|
|
49
|
-
const dropDownButtonClasses = classNames(
|
|
50
|
-
classNameButton,
|
|
51
|
-
style.dropdownButton,
|
|
52
|
-
{
|
|
53
|
-
[style.disabled]: disabled,
|
|
54
|
-
[style.open]: isOpen,
|
|
55
|
-
[style.inlineVariant]: inlineVariant,
|
|
56
|
-
},
|
|
57
|
-
classNameDropdown,
|
|
58
|
-
);
|
|
59
|
-
|
|
60
|
-
return (
|
|
61
|
-
<>
|
|
62
|
-
{searchInputProps && isOpen && !disabled ? (
|
|
63
|
-
<DropdownButtonSearch
|
|
64
|
-
ref={ref}
|
|
65
|
-
width={width}
|
|
66
|
-
onClick={handleOnSearchInputClick}
|
|
67
|
-
inputProps={{ ...inputProps, onChange: handleOnSearchInputChange }}
|
|
68
|
-
className={classNameSearch}
|
|
69
|
-
/>
|
|
70
|
-
) : (
|
|
71
|
-
<DropdownButtonBody
|
|
72
|
-
selectedItem={selectedItem}
|
|
73
|
-
width={width}
|
|
74
|
-
placeholder={placeholder}
|
|
75
|
-
selectedShowIcon={selectedShowIcon}
|
|
76
|
-
dropDownButtonClasses={dropDownButtonClasses}
|
|
77
|
-
/>
|
|
78
|
-
)}
|
|
79
|
-
</>
|
|
80
|
-
);
|
|
81
|
-
};
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { render, screen } from '@testing-library/react';
|
|
3
|
-
|
|
4
|
-
import { DropdownButtonBody } from './DropdownButtonBody';
|
|
5
|
-
|
|
6
|
-
import '@testing-library/jest-dom';
|
|
7
|
-
|
|
8
|
-
describe('DropdownButtonBody', () => {
|
|
9
|
-
it('should render with selected item and icon', () => {
|
|
10
|
-
const selectedItem = {
|
|
11
|
-
caption: 'Selected Item',
|
|
12
|
-
iconName: 'check-icon',
|
|
13
|
-
id: 'selected-item-id',
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
const { container } = render(
|
|
17
|
-
<DropdownButtonBody
|
|
18
|
-
selectedItem={selectedItem}
|
|
19
|
-
selectedShowIcon={true}
|
|
20
|
-
placeholder="Placeholder"
|
|
21
|
-
/>,
|
|
22
|
-
);
|
|
23
|
-
|
|
24
|
-
expect(screen.getByText('Selected Item')).toBeInTheDocument();
|
|
25
|
-
expect(screen.queryByText('Placeholder')).toBeNull();
|
|
26
|
-
const icon = container.querySelector(`.app-icon.app-icon`);
|
|
27
|
-
expect(icon).toBeInTheDocument();
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
it('should render with placeholder when no selected item', () => {
|
|
31
|
-
render(
|
|
32
|
-
<DropdownButtonBody
|
|
33
|
-
selectedItem={undefined}
|
|
34
|
-
selectedShowIcon={false}
|
|
35
|
-
placeholder="No item selected"
|
|
36
|
-
/>,
|
|
37
|
-
);
|
|
38
|
-
|
|
39
|
-
expect(screen.getByText('No item selected')).toBeInTheDocument();
|
|
40
|
-
expect(screen.queryByText('general-arrow-down')).toBeNull();
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
it('should render the default icon', () => {
|
|
44
|
-
const selectedItem = {
|
|
45
|
-
caption: 'Selected Item',
|
|
46
|
-
iconName: 'check-icon',
|
|
47
|
-
id: 'selected-item-id',
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
const { container } = render(
|
|
51
|
-
<DropdownButtonBody selectedItem={selectedItem} selectedShowIcon={true} />,
|
|
52
|
-
);
|
|
53
|
-
|
|
54
|
-
const icon = container.querySelector(`.app-icon.app-icon--general-arrow-down`);
|
|
55
|
-
expect(icon).toBeInTheDocument();
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
it('should render conditionally the custom icon when selectedShowIcon is true', () => {
|
|
59
|
-
const selectedItem = {
|
|
60
|
-
caption: 'Selected Item',
|
|
61
|
-
iconName: 'check-icon',
|
|
62
|
-
id: 'selected-item-id',
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
const { container } = render(
|
|
66
|
-
<DropdownButtonBody selectedItem={selectedItem} selectedShowIcon={true} />,
|
|
67
|
-
);
|
|
68
|
-
|
|
69
|
-
const customIcon = container.querySelector(`.app-icon.app-icon--check-icon`);
|
|
70
|
-
expect(customIcon).toBeInTheDocument();
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
it('should not render the custom icon when selectedShowIcon is false', () => {
|
|
74
|
-
const selectedItem = {
|
|
75
|
-
caption: 'Selected Item',
|
|
76
|
-
iconName: 'check-icon',
|
|
77
|
-
id: 'selected-item-id',
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
const { container } = render(
|
|
81
|
-
<DropdownButtonBody selectedItem={selectedItem} selectedShowIcon={false} />,
|
|
82
|
-
);
|
|
83
|
-
|
|
84
|
-
const customIcon = container.querySelector(`.app-icon.app-icon--check-icon`);
|
|
85
|
-
expect(customIcon).toBeNull();
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
it('should apply custom dropDownButtonClasses when provided', () => {
|
|
89
|
-
const selectedItem = {
|
|
90
|
-
caption: 'Selected Item',
|
|
91
|
-
iconName: 'check-icon',
|
|
92
|
-
id: 'selected-item-id',
|
|
93
|
-
};
|
|
94
|
-
const { container } = render(
|
|
95
|
-
<DropdownButtonBody selectedItem={selectedItem} dropDownButtonClasses={'custom-class'} />,
|
|
96
|
-
);
|
|
97
|
-
|
|
98
|
-
const containerDiv = container.querySelector('.custom-class');
|
|
99
|
-
|
|
100
|
-
expect(containerDiv).toBeInTheDocument();
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
it('should apply the width style when provided', () => {
|
|
104
|
-
const selectedItem = {
|
|
105
|
-
caption: 'Selected Item',
|
|
106
|
-
iconName: 'check-icon',
|
|
107
|
-
id: 'selected-item-id',
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
const { container } = render(
|
|
111
|
-
<DropdownButtonBody
|
|
112
|
-
dropDownButtonClasses={'custom-class'}
|
|
113
|
-
selectedItem={selectedItem}
|
|
114
|
-
width={200}
|
|
115
|
-
/>,
|
|
116
|
-
);
|
|
117
|
-
const containerDiv = container.querySelector('.custom-class');
|
|
118
|
-
|
|
119
|
-
expect(containerDiv).toHaveStyle('width: 200px');
|
|
120
|
-
});
|
|
121
|
-
});
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import React, { FC } from 'react';
|
|
2
|
-
|
|
3
|
-
import { DEPRECATED_Icon } from '../../../DEPRECATED_Icon';
|
|
4
|
-
|
|
5
|
-
import type { DropdownItem } from '../../types';
|
|
6
|
-
|
|
7
|
-
import style from '../DropdownButton.module.scss';
|
|
8
|
-
|
|
9
|
-
export type DropdownButtonBodyProps = {
|
|
10
|
-
selectedItem?: DropdownItem;
|
|
11
|
-
width?: number;
|
|
12
|
-
dropDownButtonClasses?: string;
|
|
13
|
-
resolvedCaptionClassName?: string;
|
|
14
|
-
selectedShowIcon?: boolean;
|
|
15
|
-
placeholder?: string;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export const DropdownButtonBody: FC<DropdownButtonBodyProps> = ({
|
|
19
|
-
selectedItem,
|
|
20
|
-
width,
|
|
21
|
-
dropDownButtonClasses,
|
|
22
|
-
selectedShowIcon = true,
|
|
23
|
-
placeholder = '',
|
|
24
|
-
}) => {
|
|
25
|
-
const { caption, iconName } = selectedItem || {};
|
|
26
|
-
const styles = width ? { width, minWidth: 'inherit' } : {};
|
|
27
|
-
|
|
28
|
-
return (
|
|
29
|
-
<div className={dropDownButtonClasses} title={caption} style={styles}>
|
|
30
|
-
{selectedShowIcon && iconName && (
|
|
31
|
-
<DEPRECATED_Icon className={style.selectedIcon} name={iconName} />
|
|
32
|
-
)}
|
|
33
|
-
<div className={style.chosenTitle}>{caption || placeholder}</div>
|
|
34
|
-
<div className={style.clickIcon}>
|
|
35
|
-
<DEPRECATED_Icon name={'general-arrow-down'} />
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
38
|
-
);
|
|
39
|
-
};
|
package/src/lib/Dropdown/DropdownButton/DropdownButtonSearch/DropdownButtonSearch.module.scss
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
@import '../../../styles/colors.module';
|
|
2
|
-
|
|
3
|
-
.searchInputWrapper {
|
|
4
|
-
div {
|
|
5
|
-
background: $ATHENS_GRAY;
|
|
6
|
-
border-radius: 4px;
|
|
7
|
-
border: 1px solid $COLOR-TEXT;
|
|
8
|
-
span {
|
|
9
|
-
margin-left: -6px;
|
|
10
|
-
z-index: 1071 !important;
|
|
11
|
-
}
|
|
12
|
-
input {
|
|
13
|
-
position: relative;
|
|
14
|
-
z-index: 1070;
|
|
15
|
-
background: transparent;
|
|
16
|
-
text-indent: 0;
|
|
17
|
-
border: none !important;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import React, { forwardRef, MouseEventHandler } from 'react';
|
|
2
|
-
import classNames from 'classnames';
|
|
3
|
-
|
|
4
|
-
import { Input } from '../../../Input';
|
|
5
|
-
|
|
6
|
-
import type { DropdownInputProps } from '../../types';
|
|
7
|
-
import { DEFAULT_SEARCH_WIDTH } from './constants';
|
|
8
|
-
|
|
9
|
-
import style from './DropdownButtonSearch.module.scss';
|
|
10
|
-
|
|
11
|
-
const noop = () => {};
|
|
12
|
-
|
|
13
|
-
export type DropdownButtonSearchProps = {
|
|
14
|
-
width?: number;
|
|
15
|
-
onClick?: MouseEventHandler;
|
|
16
|
-
className?: string;
|
|
17
|
-
inputProps?: DropdownInputProps;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export const DropdownButtonSearch = forwardRef<HTMLDivElement, DropdownButtonSearchProps>(
|
|
21
|
-
(
|
|
22
|
-
{
|
|
23
|
-
width = DEFAULT_SEARCH_WIDTH,
|
|
24
|
-
onClick = noop,
|
|
25
|
-
inputProps = { onChange: noop },
|
|
26
|
-
className = '',
|
|
27
|
-
},
|
|
28
|
-
ref,
|
|
29
|
-
) => {
|
|
30
|
-
const dropdownSearchClass = classNames(className || style.searchInputWrapper);
|
|
31
|
-
const styles = { width };
|
|
32
|
-
|
|
33
|
-
return (
|
|
34
|
-
<div
|
|
35
|
-
ref={ref}
|
|
36
|
-
style={styles}
|
|
37
|
-
className={dropdownSearchClass}
|
|
38
|
-
data-testid="search_input_container"
|
|
39
|
-
>
|
|
40
|
-
<Input onClicked={onClick} {...inputProps} />
|
|
41
|
-
</div>
|
|
42
|
-
);
|
|
43
|
-
},
|
|
44
|
-
);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const DEFAULT_SEARCH_WIDTH = 136;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { RefObject, SyntheticEvent, useEffect, useState, useCallback } from 'react';
|
|
2
|
-
|
|
3
|
-
import type { DropdownInputProps, DropdownItem } from '../../types';
|
|
4
|
-
|
|
5
|
-
export const useDropdownButtonSearch = (
|
|
6
|
-
isOpen: boolean,
|
|
7
|
-
selectedItem?: DropdownItem,
|
|
8
|
-
searchInputProps?: DropdownInputProps,
|
|
9
|
-
ref?: RefObject<HTMLDivElement>,
|
|
10
|
-
) => {
|
|
11
|
-
const [inputProps, setInputProps] = useState({
|
|
12
|
-
...searchInputProps,
|
|
13
|
-
value: selectedItem?.caption,
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
const handleOnSearchInputClick = (event: SyntheticEvent): void => {
|
|
17
|
-
event.stopPropagation();
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const handleOnSearchInputChange = (value: string): void => {
|
|
21
|
-
searchInputProps?.onChange(value);
|
|
22
|
-
setInputProps({ ...searchInputProps, value });
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
const selectInputValue = useCallback((): void => {
|
|
26
|
-
const inputElement = ref?.current?.getElementsByTagName('input')[0];
|
|
27
|
-
inputElement?.select();
|
|
28
|
-
}, [ref]);
|
|
29
|
-
|
|
30
|
-
useEffect(() => {
|
|
31
|
-
if (isOpen) {
|
|
32
|
-
setInputProps({ ...searchInputProps, value: selectedItem?.caption });
|
|
33
|
-
selectInputValue();
|
|
34
|
-
} else {
|
|
35
|
-
searchInputProps?.onChange('');
|
|
36
|
-
}
|
|
37
|
-
}, [isOpen, searchInputProps, selectedItem?.caption, selectInputValue]);
|
|
38
|
-
|
|
39
|
-
useEffect(() => {
|
|
40
|
-
if (isOpen && inputProps.value !== searchInputProps?.value) {
|
|
41
|
-
selectInputValue();
|
|
42
|
-
}
|
|
43
|
-
}, [inputProps.value, isOpen, searchInputProps?.value, selectInputValue]);
|
|
44
|
-
|
|
45
|
-
const handlers = {
|
|
46
|
-
handleOnSearchInputClick,
|
|
47
|
-
handleOnSearchInputChange,
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
return { handlers, inputProps };
|
|
51
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { useState } from 'react';
|
|
2
|
-
|
|
3
|
-
import type { MenuItemConfig } from '../../Menu';
|
|
4
|
-
|
|
5
|
-
export const useDropdown = (
|
|
6
|
-
onSelectItem: (item: MenuItemConfig) => void,
|
|
7
|
-
open: boolean,
|
|
8
|
-
disabled: boolean,
|
|
9
|
-
) => {
|
|
10
|
-
const [isOpen, setIsOpen] = useState(open);
|
|
11
|
-
|
|
12
|
-
const handleDropdownClick = () => {
|
|
13
|
-
if (!disabled) {
|
|
14
|
-
setIsOpen(!isOpen);
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
const handleOnSelectItem = (item: MenuItemConfig) => {
|
|
19
|
-
onSelectItem(item);
|
|
20
|
-
handleDropdownClick();
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
const handlers = {
|
|
24
|
-
handleOnSelectItem,
|
|
25
|
-
handleDropdownClick,
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
return { handlers, isOpen };
|
|
29
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { Input } from '../Input';
|
|
4
|
-
|
|
5
|
-
export type DropdownInputProps = Pick<
|
|
6
|
-
React.ComponentProps<typeof Input>,
|
|
7
|
-
'onChange' | 'value' | 'search' | 'onClicked'
|
|
8
|
-
>;
|
|
9
|
-
|
|
10
|
-
export type DropdownItem = {
|
|
11
|
-
id: string;
|
|
12
|
-
caption: string;
|
|
13
|
-
iconName?: string;
|
|
14
|
-
iconClass?: string;
|
|
15
|
-
tooltip?: string | React.ReactFragment;
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
};
|
package/src/lib/Icon/Icon.tsx
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import React, { type ForwardedRef, forwardRef } from 'react';
|
|
2
|
-
import { IconProps as MuiIconProps } from '@mui/material';
|
|
3
|
-
import ThemeProvider from '@mui/material/styles/ThemeProvider';
|
|
4
|
-
import SvgIcon from '@mui/material/SvgIcon';
|
|
5
|
-
import classNames from 'classnames';
|
|
6
|
-
|
|
7
|
-
import { iconTheme } from './themes';
|
|
8
|
-
|
|
9
|
-
export type IconProps = {
|
|
10
|
-
className?: string;
|
|
11
|
-
name: string;
|
|
12
|
-
title?: string;
|
|
13
|
-
dataTestId?: string;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
} & MuiIconProps &
|
|
16
|
-
React.HTMLAttributes<HTMLSpanElement>;
|
|
17
|
-
|
|
18
|
-
const SisenseSvgIcon = (props: IconProps) => {
|
|
19
|
-
const { name, sx } = props;
|
|
20
|
-
const svgClassName = classNames('app-icon__svg');
|
|
21
|
-
return (
|
|
22
|
-
<SvgIcon classes={{ root: svgClassName }} sx={sx} inheritViewBox={true}>
|
|
23
|
-
<use xlinkHref={`#${name}`} />
|
|
24
|
-
<symbol id="general-arrow-big-down" viewBox="0 0 24 24">
|
|
25
|
-
<path
|
|
26
|
-
fill="currentColor"
|
|
27
|
-
d="M7.589 10L7 10.777 11.99 15 17 10.777 16.413 10l-4.422 3.727z"
|
|
28
|
-
></path>
|
|
29
|
-
</symbol>
|
|
30
|
-
<symbol id="general-arrow-left" viewBox="0 0 24 24">
|
|
31
|
-
<path
|
|
32
|
-
fill="currentColor"
|
|
33
|
-
d="M13.878 9.325a.5.5 0 1 0-.76-.65l-2.998 3.5a.5.5 0 0 0 0 .65l2.999 3.5a.5.5 0 1 0 .76-.65l-2.72-3.175 2.72-3.175z"
|
|
34
|
-
></path>
|
|
35
|
-
</symbol>
|
|
36
|
-
|
|
37
|
-
<symbol id="general-arrow-long-right" viewBox="0 0 29 8">
|
|
38
|
-
<path
|
|
39
|
-
d="M28.354 4.354a.5.5 0 0 0 0-.708L25.172.464a.5.5 0 1 0-.707.708L27.293 4l-2.828 2.828a.5.5 0 1 0 .707.708l3.182-3.182zM0 4.5h28v-1H0v1z"
|
|
40
|
-
fill="#3A4356"
|
|
41
|
-
></path>
|
|
42
|
-
</symbol>
|
|
43
|
-
|
|
44
|
-
<symbol id="general-arrow-right" viewBox="0 0 24 24">
|
|
45
|
-
<path
|
|
46
|
-
fill="currentColor"
|
|
47
|
-
d="M13.34 12.5l-2.72-3.175a.5.5 0 1 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.998 3.5a.5.5 0 1 1-.76-.65l2.72-3.175z"
|
|
48
|
-
></path>
|
|
49
|
-
</symbol>
|
|
50
|
-
|
|
51
|
-
<symbol id="general-arrow-up" viewBox="0 0 24 24">
|
|
52
|
-
<path
|
|
53
|
-
fill="currentColor"
|
|
54
|
-
d="M12 10.16l-3.174 2.719a.5.5 0 0 1-.65-.76l3.5-2.998a.5.5 0 0 1 .65 0l3.5 2.998a.5.5 0 1 1-.65.76L12 10.159z"
|
|
55
|
-
></path>
|
|
56
|
-
</symbol>
|
|
57
|
-
|
|
58
|
-
<symbol id="general-arrow-up-down" viewBox="0 0 24 24">
|
|
59
|
-
<path
|
|
60
|
-
fill="currentColor"
|
|
61
|
-
d="M15.646 14.646a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L12 18.293l3.646-3.647zm0-5.292L12 5.707 8.354 9.354a.5.5 0 1 1-.708-.708l4-4a.5.5 0 0 1 .708 0l4 4a.5.5 0 0 1-.708.708z"
|
|
62
|
-
></path>
|
|
63
|
-
</symbol>
|
|
64
|
-
|
|
65
|
-
<symbol id="general-double-arrow-back" viewBox="0 0 24 24">
|
|
66
|
-
<path
|
|
67
|
-
fill="currentColor"
|
|
68
|
-
d="M9.658 12.5l2.72 3.175a.5.5 0 1 1-.76.65l-2.998-3.5a.5.5 0 0 1 0-.65l2.999-3.5a.5.5 0 1 1 .76.65L9.658 12.5zm5.719-3.175l-2.72 3.175 2.72 3.175a.5.5 0 1 1-.76.65l-2.998-3.5a.5.5 0 0 1 0-.65l2.998-3.5a.5.5 0 1 1 .76.65z"
|
|
69
|
-
></path>
|
|
70
|
-
</symbol>
|
|
71
|
-
|
|
72
|
-
<symbol id="general-double-arrow-front" viewBox="0 0 24 24">
|
|
73
|
-
<path
|
|
74
|
-
fill="currentColor"
|
|
75
|
-
d="M11.34 12.5L8.62 9.325a.5.5 0 0 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.998 3.5a.5.5 0 1 1-.76-.65l2.72-3.175zm.279-3.175a.5.5 0 0 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.999 3.5a.5.5 0 1 1-.76-.65l2.72-3.175-2.72-3.175z"
|
|
76
|
-
></path>
|
|
77
|
-
</symbol>
|
|
78
|
-
|
|
79
|
-
<symbol id="general-double-big-arrow-back" viewBox="0 0 31 31">
|
|
80
|
-
<g fill="currentColor">
|
|
81
|
-
<path d="M16 11.825l-3.842 4.297 3.662 4.087a.5.5 0 1 1-.76.65l-3.94-4.412a.5.5 0 0 1 0-.65l4.12-4.622a.5.5 0 1 1 .76.65zm5 0l-3.842 4.297 3.662 4.087a.5.5 0 1 1-.76.65l-3.94-4.412a.5.5 0 0 1 0-.65l4.12-4.622a.5.5 0 1 1 .76.65z"></path>
|
|
82
|
-
<path d="M10 11.5a.5.5 0 0 1 1 0v9a.5.5 0 0 1-1 0v-9z"></path>
|
|
83
|
-
</g>
|
|
84
|
-
</symbol>
|
|
85
|
-
|
|
86
|
-
<symbol id="general-double-big-arrow-front" viewBox="0 0 31 31">
|
|
87
|
-
<g fill="currentColor">
|
|
88
|
-
<path d="M15 20.175l3.842-4.297-3.662-4.087a.5.5 0 1 1 .76-.65l3.94 4.412a.5.5 0 0 1 0 .65l-4.12 4.622a.5.5 0 1 1-.76-.65zm-5 0l3.842-4.297-3.662-4.087a.5.5 0 1 1 .76-.65l3.94 4.412a.5.5 0 0 1 0 .65l-4.12 4.622a.5.5 0 1 1-.76-.65z"></path>
|
|
89
|
-
<path d="M21 20.5a.5.5 0 0 1-1 0v-9a.5.5 0 0 1 1 0v9z"></path>
|
|
90
|
-
</g>
|
|
91
|
-
</symbol>
|
|
92
|
-
|
|
93
|
-
<symbol id="general-x" viewBox="0 0 24 24">
|
|
94
|
-
<path
|
|
95
|
-
fill="currentColor"
|
|
96
|
-
d="M12 12.293L6.854 7.146a.5.5 0 1 0-.708.708L11.293 13l-5.147 5.146a.5.5 0 0 0 .708.708L12 13.707l5.146 5.147a.5.5 0 0 0 .708-.708L12.707 13l5.147-5.146a.5.5 0 0 0-.708-.708L12 12.293z"
|
|
97
|
-
></path>
|
|
98
|
-
</symbol>
|
|
99
|
-
</SvgIcon>
|
|
100
|
-
);
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
const Icon = forwardRef((props: IconProps, ref: ForwardedRef<HTMLSpanElement>) => {
|
|
104
|
-
const { dataTestId, name, className } = props;
|
|
105
|
-
const returnedIconComponent = <SisenseSvgIcon {...props} />;
|
|
106
|
-
const iconClassName = classNames('app-icon', `app-icon--${name}`, className);
|
|
107
|
-
|
|
108
|
-
return (
|
|
109
|
-
<ThemeProvider theme={iconTheme}>
|
|
110
|
-
<span data-testid={dataTestId} {...props} ref={ref} className={iconClassName}>
|
|
111
|
-
{returnedIconComponent}
|
|
112
|
-
</span>
|
|
113
|
-
</ThemeProvider>
|
|
114
|
-
);
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
export default Icon;
|
|
118
|
-
export { Icon };
|
package/src/lib/Icon/index.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import createTheme from '@mui/material/styles/createTheme';
|
|
2
|
-
// import { injectStylesWithWrapper, themeService, utils } from '@sbi/styleguide';
|
|
3
|
-
|
|
4
|
-
// import { calcStyles } from './uiCustomization';
|
|
5
|
-
import { siColors } from '../../themes';
|
|
6
|
-
|
|
7
|
-
// injectStylesWithWrapper && injectStylesWithWrapper(calcStyles);
|
|
8
|
-
|
|
9
|
-
declare module '@mui/material/Icon' {
|
|
10
|
-
interface IconPropsVariantOverrides {
|
|
11
|
-
gray: true;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export const iconTheme = createTheme({
|
|
16
|
-
components: {
|
|
17
|
-
MuiIcon: {
|
|
18
|
-
styleOverrides: {
|
|
19
|
-
root: {
|
|
20
|
-
color: `${siColors.StPrimaryColors.primary}`,
|
|
21
|
-
top: 0,
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
MuiSvgIcon: {
|
|
26
|
-
// styleOverrides: {
|
|
27
|
-
// root: {
|
|
28
|
-
// fill: utils.makeASlightlyDifferentColor(
|
|
29
|
-
// themeService.getDesignSettings().typography.primaryTextColor,
|
|
30
|
-
// 0.9,
|
|
31
|
-
// ),
|
|
32
|
-
// },
|
|
33
|
-
// },
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
export type IconTheme = typeof iconTheme;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
// import { CalcStyles, DesignSettings, utils } from '@sbi/styleguide';
|
|
3
|
-
//
|
|
4
|
-
// export const calcStyles: CalcStyles = (designSettings: DesignSettings) => ({
|
|
5
|
-
// '.MuiSvgIcon-root': {
|
|
6
|
-
// fill: utils.makeASlightlyDifferentColor(designSettings.typography.secondaryTextColor, 0.1),
|
|
7
|
-
// color: utils.makeASlightlyDifferentColor(designSettings.typography.secondaryTextColor, 0.1),
|
|
8
|
-
// },
|
|
9
|
-
// });
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
@import '../styles/style_styleguide_react/_variables';
|
|
2
|
-
|
|
3
|
-
@mixin component {
|
|
4
|
-
position: relative;
|
|
5
|
-
display: flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
// .component .icon conflicts with .sis-scope .app-icon on position
|
|
8
|
-
.searchIcon.searchIcon {
|
|
9
|
-
position: absolute;
|
|
10
|
-
left: 8px;
|
|
11
|
-
z-index: 1;
|
|
12
|
-
opacity: 40%;
|
|
13
|
-
&.large {
|
|
14
|
-
top: 4px;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
.clearIcon.clearIcon {
|
|
18
|
-
width: 15px;
|
|
19
|
-
height: 15px;
|
|
20
|
-
position: absolute;
|
|
21
|
-
top: 3px;
|
|
22
|
-
right: 4px;
|
|
23
|
-
border-radius: 20px;
|
|
24
|
-
padding: 4px;
|
|
25
|
-
&:hover {
|
|
26
|
-
background-color: $color-gray-2;
|
|
27
|
-
}
|
|
28
|
-
&.clearIconHidden {
|
|
29
|
-
display: none;
|
|
30
|
-
}
|
|
31
|
-
&.large {
|
|
32
|
-
width: 15px;
|
|
33
|
-
height: 15px;
|
|
34
|
-
top: 4px;
|
|
35
|
-
padding: 5px;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
.passwordVisibilityIcon.passwordVisibilityIcon {
|
|
39
|
-
width: 24px;
|
|
40
|
-
height: 24px;
|
|
41
|
-
position: absolute;
|
|
42
|
-
right: 8px;
|
|
43
|
-
&.large {
|
|
44
|
-
width: 24px;
|
|
45
|
-
height: 24px;
|
|
46
|
-
top: 5px;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.customIcon {
|
|
51
|
-
position: absolute;
|
|
52
|
-
top: 3px;
|
|
53
|
-
right: 4px;
|
|
54
|
-
|
|
55
|
-
&.isLeft {
|
|
56
|
-
right: 0;
|
|
57
|
-
left: 8px;
|
|
58
|
-
}
|
|
59
|
-
&.large {
|
|
60
|
-
top: 5px;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.input {
|
|
65
|
-
border-radius: 4px;
|
|
66
|
-
outline: none;
|
|
67
|
-
background: $color-gray-4;
|
|
68
|
-
line-height: 28px;
|
|
69
|
-
height: 28px;
|
|
70
|
-
border: none;
|
|
71
|
-
text-indent: 8px;
|
|
72
|
-
width: 100%;
|
|
73
|
-
&.withLeftIcon {
|
|
74
|
-
text-indent: 32px;
|
|
75
|
-
}
|
|
76
|
-
&::placeholder {
|
|
77
|
-
color: #b0b5bf;
|
|
78
|
-
}
|
|
79
|
-
&:focus {
|
|
80
|
-
border: 1px solid $color-text;
|
|
81
|
-
}
|
|
82
|
-
&.large {
|
|
83
|
-
height: 34px;
|
|
84
|
-
line-height: 34px;
|
|
85
|
-
}
|
|
86
|
-
&::-ms-reveal {
|
|
87
|
-
display: none;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.component {
|
|
93
|
-
@include component;
|
|
94
|
-
}
|
|
95
|
-
:global(.sis-scope) .component {
|
|
96
|
-
@include component;
|
|
97
|
-
}
|