@sisense/sdk-shared-ui 2.1.1 → 2.3.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-B-OHBus7.cjs +3 -0
- package/dist/{Breadcrumbs-qJmt9n6B.js → Breadcrumbs-DrCp8avo.js} +12 -13
- package/dist/Button-CvkAcTyS.cjs +1 -0
- package/dist/{Button-Y7DwfxdO.js → Button-cvim-8Bz.js} +345 -165
- package/dist/{ButtonBase-UWHDpyst.js → ButtonBase-4TqAVSBf.js} +166 -164
- package/dist/ButtonBase-hZEG-21k.cjs +74 -0
- package/dist/Checkbox-BbF4jutm.cjs +1 -0
- package/dist/{Checkbox-BNkk6YDz.js → Checkbox-aMi60WQj.js} +249 -171
- package/dist/CircularProgress-B3FkrcM6.js +249 -0
- package/dist/CircularProgress-BWqRJiR-.cjs +28 -0
- package/dist/DEPRECATED_Tooltip-C3s_235Q.js +1961 -0
- package/dist/DEPRECATED_Tooltip-DL3MmzWZ.cjs +25 -0
- package/dist/{Dropdown-D8rLKKcl.cjs → Dropdown-B6uSaA3z.cjs} +1 -1
- package/dist/{Dropdown-DtWYpFk8.js → Dropdown-BzcjbX6k.js} +2 -2
- package/dist/{Icon-KwS2TWVq.cjs → Icon-DFhY5sRf.cjs} +1 -1
- package/dist/{Icon-JQpFT2bY.js → Icon-DVO7Byvy.js} +2 -2
- package/dist/{Menu-DkPO8bCf.cjs → Menu-CgLII61r.cjs} +1 -1
- package/dist/{Menu-EXiwd8T_.js → Menu-DqvdoiKn.js} +2 -2
- package/dist/{Popover-BjgDIgO7.cjs → Popover-DHy8NRMc.cjs} +1 -1
- package/dist/{Popover-CiYeL2VE.js → Popover-KR_Rc69g.js} +1 -1
- package/dist/Portal-B6TDsfBi.cjs +1 -0
- package/dist/{Portal-DUw3q8Mq.js → Portal-C6RJkJ6n.js} +253 -318
- package/dist/{SvgIcon-DXzFs5aw.cjs → SvgIcon-CjUZ_jwt.cjs} +1 -1
- package/dist/{SvgIcon-5KhsYNcu.js → SvgIcon-a_07YA77.js} +7 -7
- package/dist/TablePagination-CNwjJIdB.cjs +15 -0
- package/dist/{TablePagination-CgaKWA2r.js → TablePagination-D4-bcrO_.js} +2003 -1784
- package/dist/Tooltip-BjyR1mIC.cjs +7 -0
- package/dist/{Tooltip-BpA4opI3.js → Tooltip-CWF5y-3F.js} +20 -19
- package/dist/TransitionGroupContext-BNiEy2cD.js +119 -0
- package/dist/TransitionGroupContext-CJJeIdck.cjs +2 -0
- package/dist/{Typography-BDMqUlbg.cjs → Typography-Pieq_mxw.cjs} +1 -1
- package/dist/{Typography-pY0gGUzu.js → Typography-ReSKaH87.js} +6 -6
- package/dist/__test-helpers__/test-setup.d.ts +2 -0
- package/dist/__test-helpers__/test-setup.d.ts.map +1 -0
- package/dist/{createSvgIcon-B28x3Jky.js → createSvgIcon-CiRZfwSO.js} +1 -1
- package/dist/{createSvgIcon-KaV60kcg.cjs → createSvgIcon-DgE0zN0k.cjs} +1 -1
- package/dist/{emotion-cache-provider-CsTOkc-k.js → emotion-cache-provider-B6yKtm_a.js} +1980 -2095
- package/dist/emotion-cache-provider-XZE1SDsY.cjs +122 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +11 -11
- package/dist/index.umd.js +188 -0
- package/dist/lib/Breadcrumbs/Breadcrumbs.cjs +1 -1
- package/dist/lib/Breadcrumbs/Breadcrumbs.js +2 -2
- package/dist/lib/Button/Button.cjs +1 -1
- package/dist/lib/Button/Button.js +2 -2
- package/dist/lib/Checkbox/Checkbox.cjs +1 -1
- package/dist/lib/Checkbox/Checkbox.js +1 -1
- package/dist/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.cjs +1 -1
- package/dist/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.d.ts +1 -1
- package/dist/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.d.ts.map +1 -1
- package/dist/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.js +1 -1
- package/dist/lib/Dropdown/Dropdown.cjs +1 -1
- package/dist/lib/Dropdown/Dropdown.js +1 -1
- package/dist/lib/Icon/Icon.cjs +1 -1
- package/dist/lib/Icon/Icon.js +1 -1
- package/dist/lib/Menu/Menu.cjs +1 -1
- package/dist/lib/Menu/Menu.js +2 -2
- package/dist/lib/Popover/Popover.cjs +1 -1
- package/dist/lib/Popover/Popover.d.ts +1 -1
- package/dist/lib/Popover/Popover.d.ts.map +1 -1
- package/dist/lib/Popover/Popover.js +1 -1
- package/dist/lib/TablePagination/TablePagination.cjs +1 -1
- package/dist/lib/TablePagination/TablePagination.js +1 -1
- package/dist/lib/Tooltip/Tooltip.cjs +1 -1
- package/dist/lib/Tooltip/Tooltip.js +2 -2
- package/dist/lib/Typography/Typography.cjs +1 -1
- package/dist/lib/Typography/Typography.js +2 -2
- package/dist/lightweight/Breadcrumbs-BMR7xumU.js +37 -0
- package/dist/lightweight/Breadcrumbs-BgNa_noo.cjs +1 -0
- package/dist/lightweight/Button-C0bT7IWv.js +96 -0
- package/dist/lightweight/Button-O3zEYLfM.cjs +1 -0
- package/dist/lightweight/CheckableList-1Jq4spYu.cjs +1 -0
- package/dist/lightweight/CheckableList-DTTE9oEw.js +21 -0
- package/dist/lightweight/Checkbox-DqAy-3w-.js +34 -0
- package/dist/lightweight/Checkbox-hyvVpMGp.cjs +1 -0
- package/dist/lightweight/DEPRECATED_Button-CKGdJitl.cjs +1 -0
- package/dist/lightweight/DEPRECATED_Button-Dhs0ieAl.js +87 -0
- package/dist/lightweight/DEPRECATED_Checkbox-Be1l_Vce.js +63 -0
- package/dist/lightweight/DEPRECATED_Checkbox-BggU0HO5.cjs +1 -0
- package/dist/lightweight/DEPRECATED_Icon-Bgufd-9Q.js +56 -0
- package/dist/lightweight/DEPRECATED_Icon-DC1Hc9iB.cjs +1 -0
- package/dist/lightweight/DEPRECATED_Toggle-DMnlQO3F.js +30 -0
- package/dist/lightweight/DEPRECATED_Toggle-Dp0ZZ_6E.cjs +1 -0
- package/dist/lightweight/DEPRECATED_Tooltip-C3s_235Q.js +1961 -0
- package/dist/lightweight/DEPRECATED_Tooltip-DL3MmzWZ.cjs +25 -0
- package/dist/lightweight/Dropdown-B6uSaA3z.cjs +1 -0
- package/dist/lightweight/Dropdown-C5DcG6WG.js +231 -0
- package/dist/lightweight/Icon-4kNYAFUz.cjs +1 -0
- package/dist/lightweight/Icon-DQNqONXU.js +133 -0
- package/dist/lightweight/Input-CNvYE0Er.js +119 -0
- package/dist/lightweight/Input-_wNCDCdI.cjs +1 -0
- package/dist/lightweight/LazyLoader-DB86QSSx.js +18 -0
- package/dist/lightweight/LazyLoader-gOLNhxc-.cjs +1 -0
- package/dist/lightweight/Menu-CgLII61r.cjs +1 -0
- package/dist/lightweight/Menu-DeHgR0JO.js +1211 -0
- package/dist/lightweight/Popover-BAehEo3a.js +49 -0
- package/dist/lightweight/Popover-DHy8NRMc.cjs +1 -0
- package/dist/lightweight/RadioButton-BpAksn2s.js +70 -0
- package/dist/lightweight/RadioButton-Ds-0wj0r.cjs +1 -0
- package/dist/lightweight/TablePagination-Czpnhvp6.cjs +1 -0
- package/dist/lightweight/TablePagination-D1tyNTa7.js +338 -0
- package/dist/lightweight/Tooltip-BcjJxRj4.cjs +1 -0
- package/dist/lightweight/Tooltip-DUpknkQW.js +59 -0
- package/dist/lightweight/Typography-BT1q5az1.cjs +1 -0
- package/dist/lightweight/Typography-CvzdielF.js +153 -0
- package/dist/lightweight/__test-helpers__/test-setup.d.ts +2 -0
- package/dist/lightweight/__test-helpers__/test-setup.d.ts.map +1 -0
- package/dist/lightweight/align.interface-B17uA473.cjs +1 -0
- package/dist/lightweight/align.interface-DdWsijrT.js +4 -0
- package/dist/lightweight/emotion-cache-provider-BsnmG_09.cjs +1 -0
- package/dist/lightweight/emotion-cache-provider-CE1QZs6M.js +18 -0
- package/dist/lightweight/index-B-zZeebW.cjs +20 -0
- package/dist/lightweight/index-D0lMis-I.js +667 -0
- package/dist/lightweight/index.cjs +1 -0
- package/dist/lightweight/index.d.ts +2 -0
- package/dist/lightweight/index.d.ts.map +1 -0
- package/dist/lightweight/index.js +48 -0
- package/dist/lightweight/lib/Breadcrumbs/Breadcrumbs.cjs +1 -0
- package/dist/lightweight/lib/Breadcrumbs/Breadcrumbs.d.ts +16 -0
- package/dist/lightweight/lib/Breadcrumbs/Breadcrumbs.d.ts.map +1 -0
- package/dist/lightweight/lib/Breadcrumbs/Breadcrumbs.js +7 -0
- package/dist/lightweight/lib/Breadcrumbs/index.d.ts +5 -0
- package/dist/lightweight/lib/Breadcrumbs/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Breadcrumbs/themes/breadcrumbsTheme.d.ts +4 -0
- package/dist/lightweight/lib/Breadcrumbs/themes/breadcrumbsTheme.d.ts.map +1 -0
- package/dist/lightweight/lib/Breadcrumbs/themes/index.d.ts +2 -0
- package/dist/lightweight/lib/Breadcrumbs/themes/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Button/Button.cjs +1 -0
- package/dist/lightweight/lib/Button/Button.d.ts +10 -0
- package/dist/lightweight/lib/Button/Button.d.ts.map +1 -0
- package/dist/lightweight/lib/Button/Button.js +7 -0
- package/dist/lightweight/lib/Button/index.d.ts +5 -0
- package/dist/lightweight/lib/Button/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Button/themes/buttonsTheme.d.ts +11 -0
- package/dist/lightweight/lib/Button/themes/buttonsTheme.d.ts.map +1 -0
- package/dist/lightweight/lib/Button/themes/index.d.ts +2 -0
- package/dist/lightweight/lib/Button/themes/index.d.ts.map +1 -0
- package/dist/lightweight/lib/CheckableList/CheckableList.cjs +1 -0
- package/dist/lightweight/lib/CheckableList/CheckableList.d.ts +16 -0
- package/dist/lightweight/lib/CheckableList/CheckableList.d.ts.map +1 -0
- package/dist/lightweight/lib/CheckableList/CheckableList.js +5 -0
- package/dist/lightweight/lib/CheckableList/index.d.ts +4 -0
- package/dist/lightweight/lib/CheckableList/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Checkbox/Checkbox.cjs +1 -0
- package/dist/lightweight/lib/Checkbox/Checkbox.d.ts +20 -0
- package/dist/lightweight/lib/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/lightweight/lib/Checkbox/Checkbox.js +5 -0
- package/dist/lightweight/lib/Checkbox/index.d.ts +4 -0
- package/dist/lightweight/lib/Checkbox/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Checkbox/themes/checkboxTheme.d.ts +12 -0
- package/dist/lightweight/lib/Checkbox/themes/checkboxTheme.d.ts.map +1 -0
- package/dist/lightweight/lib/Checkbox/themes/index.d.ts +2 -0
- package/dist/lightweight/lib/Checkbox/themes/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Checkbox/themes/uiCustomization.d.ts +12 -0
- package/dist/lightweight/lib/Checkbox/themes/uiCustomization.d.ts.map +1 -0
- package/dist/lightweight/lib/DEPRECATED_Button/DEPRECATED_Button.cjs +1 -0
- package/dist/lightweight/lib/DEPRECATED_Button/DEPRECATED_Button.d.ts +43 -0
- package/dist/lightweight/lib/DEPRECATED_Button/DEPRECATED_Button.d.ts.map +1 -0
- package/dist/lightweight/lib/DEPRECATED_Button/DEPRECATED_Button.js +5 -0
- package/dist/lightweight/lib/DEPRECATED_Button/index.d.ts +4 -0
- package/dist/lightweight/lib/DEPRECATED_Button/index.d.ts.map +1 -0
- package/dist/lightweight/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.cjs +1 -0
- package/dist/lightweight/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.d.ts +20 -0
- package/dist/lightweight/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.d.ts.map +1 -0
- package/dist/lightweight/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.js +5 -0
- package/dist/lightweight/lib/DEPRECATED_Checkbox/index.d.ts +4 -0
- package/dist/lightweight/lib/DEPRECATED_Checkbox/index.d.ts.map +1 -0
- package/dist/lightweight/lib/DEPRECATED_Icon/DEPRECATED_Icon.cjs +1 -0
- package/dist/lightweight/lib/DEPRECATED_Icon/DEPRECATED_Icon.d.ts +17 -0
- package/dist/lightweight/lib/DEPRECATED_Icon/DEPRECATED_Icon.d.ts.map +1 -0
- package/dist/lightweight/lib/DEPRECATED_Icon/DEPRECATED_Icon.js +5 -0
- package/dist/lightweight/lib/DEPRECATED_Icon/index.d.ts +4 -0
- package/dist/lightweight/lib/DEPRECATED_Icon/index.d.ts.map +1 -0
- package/dist/lightweight/lib/DEPRECATED_Toggle/DEPRECATED_Toggle.cjs +1 -0
- package/dist/lightweight/lib/DEPRECATED_Toggle/DEPRECATED_Toggle.d.ts +13 -0
- package/dist/lightweight/lib/DEPRECATED_Toggle/DEPRECATED_Toggle.d.ts.map +1 -0
- package/dist/lightweight/lib/DEPRECATED_Toggle/DEPRECATED_Toggle.js +5 -0
- package/dist/lightweight/lib/DEPRECATED_Toggle/index.d.ts +4 -0
- package/dist/lightweight/lib/DEPRECATED_Toggle/index.d.ts.map +1 -0
- package/dist/lightweight/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.cjs +1 -0
- package/dist/lightweight/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.d.ts +15 -0
- package/dist/lightweight/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.d.ts.map +1 -0
- package/dist/lightweight/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.js +5 -0
- package/dist/lightweight/lib/DEPRECATED_Tooltip/index.d.ts +4 -0
- package/dist/lightweight/lib/DEPRECATED_Tooltip/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Dropdown/Dropdown.cjs +1 -0
- package/dist/lightweight/lib/Dropdown/Dropdown.d.ts +32 -0
- package/dist/lightweight/lib/Dropdown/Dropdown.d.ts.map +1 -0
- package/dist/lightweight/lib/Dropdown/Dropdown.js +5 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButton.d.ts +18 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButton.d.ts.map +1 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButtonBody/DropdownButtonBody.d.ts +12 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButtonBody/DropdownButtonBody.d.ts.map +1 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButtonBody/index.d.ts +3 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButtonBody/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButtonSearch/DropdownButtonSearch.d.ts +10 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButtonSearch/DropdownButtonSearch.d.ts.map +1 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButtonSearch/constants.d.ts +2 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButtonSearch/constants.d.ts.map +1 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButtonSearch/index.d.ts +3 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButtonSearch/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/hooks/index.d.ts +2 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/hooks/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/hooks/useDropdownButtonSearch.d.ts +15 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/hooks/useDropdownButtonSearch.d.ts.map +1 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/index.d.ts +2 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Dropdown/hooks/index.d.ts +2 -0
- package/dist/lightweight/lib/Dropdown/hooks/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Dropdown/hooks/useDropdown.d.ts +9 -0
- package/dist/lightweight/lib/Dropdown/hooks/useDropdown.d.ts.map +1 -0
- package/dist/lightweight/lib/Dropdown/index.d.ts +5 -0
- package/dist/lightweight/lib/Dropdown/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Dropdown/types.d.ts +12 -0
- package/dist/lightweight/lib/Dropdown/types.d.ts.map +1 -0
- package/dist/lightweight/lib/Icon/Icon.cjs +1 -0
- package/dist/lightweight/lib/Icon/Icon.d.ts +13 -0
- package/dist/lightweight/lib/Icon/Icon.d.ts.map +1 -0
- package/dist/lightweight/lib/Icon/Icon.js +5 -0
- package/dist/lightweight/lib/Icon/index.d.ts +4 -0
- package/dist/lightweight/lib/Icon/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Icon/themes/iconTheme.d.ts +8 -0
- package/dist/lightweight/lib/Icon/themes/iconTheme.d.ts.map +1 -0
- package/dist/lightweight/lib/Icon/themes/index.d.ts +2 -0
- package/dist/lightweight/lib/Icon/themes/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Icon/themes/uiCustomization.d.ts +2 -0
- package/dist/lightweight/lib/Icon/themes/uiCustomization.d.ts.map +1 -0
- package/dist/lightweight/lib/Input/Input.cjs +1 -0
- package/dist/lightweight/lib/Input/Input.d.ts +28 -0
- package/dist/lightweight/lib/Input/Input.d.ts.map +1 -0
- package/dist/lightweight/lib/Input/Input.js +5 -0
- package/dist/lightweight/lib/Input/index.d.ts +4 -0
- package/dist/lightweight/lib/Input/index.d.ts.map +1 -0
- package/dist/lightweight/lib/LazyLoader/LazyLoader.cjs +1 -0
- package/dist/lightweight/lib/LazyLoader/LazyLoader.d.ts +9 -0
- package/dist/lightweight/lib/LazyLoader/LazyLoader.d.ts.map +1 -0
- package/dist/lightweight/lib/LazyLoader/LazyLoader.js +5 -0
- package/dist/lightweight/lib/LazyLoader/index.d.ts +4 -0
- package/dist/lightweight/lib/LazyLoader/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Menu/Confirmation/Confirmation.d.ts +8 -0
- package/dist/lightweight/lib/Menu/Confirmation/Confirmation.d.ts.map +1 -0
- package/dist/lightweight/lib/Menu/Confirmation/index.d.ts +2 -0
- package/dist/lightweight/lib/Menu/Confirmation/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Menu/Confirmation/translation.d.ts +2 -0
- package/dist/lightweight/lib/Menu/Confirmation/translation.d.ts.map +1 -0
- package/dist/lightweight/lib/Menu/Menu.cjs +1 -0
- package/dist/lightweight/lib/Menu/Menu.d.ts +80 -0
- package/dist/lightweight/lib/Menu/Menu.d.ts.map +1 -0
- package/dist/lightweight/lib/Menu/Menu.js +8 -0
- package/dist/lightweight/lib/Menu/MenuItem/MenuItem.d.ts +36 -0
- package/dist/lightweight/lib/Menu/MenuItem/MenuItem.d.ts.map +1 -0
- package/dist/lightweight/lib/Menu/MenuItem/index.d.ts +3 -0
- package/dist/lightweight/lib/Menu/MenuItem/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Menu/index.d.ts +6 -0
- package/dist/lightweight/lib/Menu/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Menu/utils.d.ts +6 -0
- package/dist/lightweight/lib/Menu/utils.d.ts.map +1 -0
- package/dist/lightweight/lib/Popover/Popover.cjs +1 -0
- package/dist/lightweight/lib/Popover/Popover.d.ts +16 -0
- package/dist/lightweight/lib/Popover/Popover.d.ts.map +1 -0
- package/dist/lightweight/lib/Popover/Popover.js +7 -0
- package/dist/lightweight/lib/Popover/align.interface.d.ts +23 -0
- package/dist/lightweight/lib/Popover/align.interface.d.ts.map +1 -0
- package/dist/lightweight/lib/Popover/index.d.ts +6 -0
- package/dist/lightweight/lib/Popover/index.d.ts.map +1 -0
- package/dist/lightweight/lib/RadioButton/RadioButton.cjs +1 -0
- package/dist/lightweight/lib/RadioButton/RadioButton.d.ts +20 -0
- package/dist/lightweight/lib/RadioButton/RadioButton.d.ts.map +1 -0
- package/dist/lightweight/lib/RadioButton/RadioButton.js +5 -0
- package/dist/lightweight/lib/RadioButton/index.d.ts +4 -0
- package/dist/lightweight/lib/RadioButton/index.d.ts.map +1 -0
- package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/PaginationActionsComponent.d.ts +9 -0
- package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/PaginationActionsComponent.d.ts.map +1 -0
- package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/index.d.ts +2 -0
- package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/index.d.ts.map +1 -0
- package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/themes/index.d.ts +2 -0
- package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/themes/index.d.ts.map +1 -0
- package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/themes/paginationActionsComponentTheme.d.ts +3 -0
- package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/themes/paginationActionsComponentTheme.d.ts.map +1 -0
- package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/themes/uiCustomization.d.ts +2 -0
- package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/themes/uiCustomization.d.ts.map +1 -0
- package/dist/lightweight/lib/TablePagination/TablePagination.cjs +1 -0
- package/dist/lightweight/lib/TablePagination/TablePagination.d.ts +19 -0
- package/dist/lightweight/lib/TablePagination/TablePagination.d.ts.map +1 -0
- package/dist/lightweight/lib/TablePagination/TablePagination.js +5 -0
- package/dist/lightweight/lib/TablePagination/TablePaginationContext.d.ts +3 -0
- package/dist/lightweight/lib/TablePagination/TablePaginationContext.d.ts.map +1 -0
- package/dist/lightweight/lib/TablePagination/index.d.ts +4 -0
- package/dist/lightweight/lib/TablePagination/index.d.ts.map +1 -0
- package/dist/lightweight/lib/TablePagination/themes/index.d.ts +2 -0
- package/dist/lightweight/lib/TablePagination/themes/index.d.ts.map +1 -0
- package/dist/lightweight/lib/TablePagination/themes/tablePaginationResponsiveDesign.d.ts +10 -0
- package/dist/lightweight/lib/TablePagination/themes/tablePaginationResponsiveDesign.d.ts.map +1 -0
- package/dist/lightweight/lib/TablePagination/themes/tablePaginationTheme.d.ts +3 -0
- package/dist/lightweight/lib/TablePagination/themes/tablePaginationTheme.d.ts.map +1 -0
- package/dist/lightweight/lib/TablePagination/themes/uiCustomization.d.ts +2 -0
- package/dist/lightweight/lib/TablePagination/themes/uiCustomization.d.ts.map +1 -0
- package/dist/lightweight/lib/Tooltip/Tooltip.cjs +1 -0
- package/dist/lightweight/lib/Tooltip/Tooltip.d.ts +10 -0
- package/dist/lightweight/lib/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/lightweight/lib/Tooltip/Tooltip.js +7 -0
- package/dist/lightweight/lib/Tooltip/index.d.ts +5 -0
- package/dist/lightweight/lib/Tooltip/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Tooltip/themes/index.d.ts +2 -0
- package/dist/lightweight/lib/Tooltip/themes/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Tooltip/themes/tooltipTheme.d.ts +3 -0
- package/dist/lightweight/lib/Tooltip/themes/tooltipTheme.d.ts.map +1 -0
- package/dist/lightweight/lib/Typography/Typography.cjs +1 -0
- package/dist/lightweight/lib/Typography/Typography.d.ts +11 -0
- package/dist/lightweight/lib/Typography/Typography.d.ts.map +1 -0
- package/dist/lightweight/lib/Typography/Typography.js +7 -0
- package/dist/lightweight/lib/Typography/index.d.ts +5 -0
- package/dist/lightweight/lib/Typography/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Typography/themes/index.d.ts +2 -0
- package/dist/lightweight/lib/Typography/themes/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Typography/themes/typographyTheme.d.ts +21 -0
- package/dist/lightweight/lib/Typography/themes/typographyTheme.d.ts.map +1 -0
- package/dist/lightweight/lib/Typography/themes/uiCustomization.d.ts +2 -0
- package/dist/lightweight/lib/Typography/themes/uiCustomization.d.ts.map +1 -0
- package/dist/lightweight/lib/common/emotion-cache-provider.d.ts +11 -0
- package/dist/lightweight/lib/common/emotion-cache-provider.d.ts.map +1 -0
- package/dist/lightweight/lib/constants/styleguideConstants.d.ts +9 -0
- package/dist/lightweight/lib/constants/styleguideConstants.d.ts.map +1 -0
- package/dist/lightweight/lib/index.d.ts +20 -0
- package/dist/lightweight/lib/index.d.ts.map +1 -0
- package/dist/lightweight/lib/themes/colors/index.d.ts +2 -0
- package/dist/lightweight/lib/themes/colors/index.d.ts.map +1 -0
- package/dist/lightweight/lib/themes/colors/siColors.d.ts +140 -0
- package/dist/lightweight/lib/themes/colors/siColors.d.ts.map +1 -0
- package/dist/lightweight/lib/themes/index.d.ts +3 -0
- package/dist/lightweight/lib/themes/index.d.ts.map +1 -0
- package/dist/lightweight/lib/themes/themes.cjs +2 -0
- package/dist/lightweight/lib/themes/themes.js +142 -0
- package/dist/lightweight/lib/themes/types/SisenseTheme.d.ts +12 -0
- package/dist/lightweight/lib/themes/types/SisenseTheme.d.ts.map +1 -0
- package/dist/lightweight/lib/themes/types/index.d.ts +2 -0
- package/dist/lightweight/lib/themes/types/index.d.ts.map +1 -0
- package/dist/lightweight/package.json +248 -0
- package/dist/lightweight/styleguideConstants-CtXkvIZK.cjs +1 -0
- package/dist/lightweight/styleguideConstants-D4Yls16w.js +11 -0
- package/dist/package.json +34 -14
- package/dist/resolveComponentProps-BjHOskdg.cjs +1 -0
- package/dist/resolveComponentProps-L5VTqIs8.js +80 -0
- package/dist/useFormControl-DNim9J_T.cjs +1 -0
- package/dist/useFormControl-lYrMmqEx.js +56 -0
- package/dist/useId-CK6Kn3Tn.js +21 -0
- package/dist/useId-DNXtOFeX.cjs +1 -0
- package/dist/useSlot-BHK4fbKV.cjs +3 -0
- package/dist/useSlot-DUGuD2Ya.js +77 -0
- package/dist/useSlotProps-9rt1So3E.js +25 -0
- package/dist/useSlotProps-ChaoOi-_.cjs +1 -0
- package/dist/{useTheme-CzEManLl.js → useTheme-DPwUUXTG.js} +1 -1
- package/dist/{useTheme-DmoPdQRb.cjs → useTheme-Dn8Us9iT.cjs} +1 -1
- package/package.json +34 -14
- package/dist/Breadcrumbs-Da5cnPID.cjs +0 -3
- package/dist/Button-RoXZvXZf.cjs +0 -1
- package/dist/ButtonBase-CISYuRKV.cjs +0 -74
- package/dist/Checkbox-DpGUO-Li.cjs +0 -1
- package/dist/DEPRECATED_Tooltip-C2bU8ipb.js +0 -2316
- package/dist/DEPRECATED_Tooltip-D3ReAkFF.cjs +0 -27
- package/dist/Portal-CtJkkaJ7.cjs +0 -1
- package/dist/TablePagination-baLnBUNn.cjs +0 -15
- package/dist/Tooltip-Dcsip2Zy.cjs +0 -7
- package/dist/assertThisInitialized-BSnhOY1M.cjs +0 -1
- package/dist/assertThisInitialized-lz6cHcRv.js +0 -8
- package/dist/deepmerge-BuAjuQR6.cjs +0 -17
- package/dist/deepmerge-DNqbOtFI.js +0 -177
- package/dist/emotion-cache-provider-C66nBUtN.cjs +0 -114
- package/dist/extends-DX42hfxm.js +0 -13
- package/dist/extends-q0Hkx4pQ.cjs +0 -1
- package/dist/setPrototypeOf-BmHXYjK5.cjs +0 -1
- package/dist/setPrototypeOf-CEtRTXk2.js +0 -19
- package/dist/useControlled-BYdyS7Pn.js +0 -31
- package/dist/useControlled-Ysk4KqoX.cjs +0 -3
- package/dist/useFormControl-CatNKXAi.js +0 -10
- package/dist/useFormControl-haP0iPhl.cjs +0 -1
- package/dist/useSlotProps-BxlgPyQJ.js +0 -102
- package/dist/useSlotProps-DS82uuM_.cjs +0 -1
- package/dist/useTimeout-DwkOFF8P.cjs +0 -2
- package/dist/useTimeout-Oe_jK-ia.js +0 -92
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";const Xt=require("react/jsx-runtime"),Re=require("classnames"),K=require("react"),bo=require("react-dom"),vo=require("./styleguideConstants-CtXkvIZK.cjs");function Eo(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const s=Eo(K),wo=e=>{const{children:n,prefixCls:t,id:o,overlayInnerStyle:r,bodyClassName:i,className:f,style:a}=e;return s.createElement("div",{className:Re(`${t}-content`,f),style:a},s.createElement("div",{className:Re(`${t}-inner`,i),id:o,role:"tooltip",style:r},typeof n=="function"?n():n))};function we(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Zt={exports:{}},A={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-is.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var yn;function Ro(){if(yn)return A;yn=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),f=Symbol.for("react.context"),a=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),E;E=Symbol.for("react.module.reference");function g(c){if(typeof c=="object"&&c!==null){var P=c.$$typeof;switch(P){case e:switch(c=c.type,c){case t:case r:case o:case h:case d:return c;default:switch(c=c&&c.$$typeof,c){case a:case f:case p:case b:case m:case i:return c;default:return P}}case n:return P}}}return A.ContextConsumer=f,A.ContextProvider=i,A.Element=e,A.ForwardRef=p,A.Fragment=t,A.Lazy=b,A.Memo=m,A.Portal=n,A.Profiler=r,A.StrictMode=o,A.Suspense=h,A.SuspenseList=d,A.isAsyncMode=function(){return!1},A.isConcurrentMode=function(){return!1},A.isContextConsumer=function(c){return g(c)===f},A.isContextProvider=function(c){return g(c)===i},A.isElement=function(c){return typeof c=="object"&&c!==null&&c.$$typeof===e},A.isForwardRef=function(c){return g(c)===p},A.isFragment=function(c){return g(c)===t},A.isLazy=function(c){return g(c)===b},A.isMemo=function(c){return g(c)===m},A.isPortal=function(c){return g(c)===n},A.isProfiler=function(c){return g(c)===r},A.isStrictMode=function(c){return g(c)===o},A.isSuspense=function(c){return g(c)===h},A.isSuspenseList=function(c){return g(c)===d},A.isValidElementType=function(c){return typeof c=="string"||typeof c=="function"||c===t||c===r||c===o||c===h||c===d||c===R||typeof c=="object"&&c!==null&&(c.$$typeof===b||c.$$typeof===m||c.$$typeof===i||c.$$typeof===f||c.$$typeof===p||c.$$typeof===E||c.getModuleId!==void 0)},A.typeOf=g,A}var O={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-is.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var bn;function So(){return bn||(bn=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),f=Symbol.for("react.context"),a=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),E=!1,g=!1,c=!1,P=!1,y=!1,w;w=Symbol.for("react.module.reference");function L(l){return!!(typeof l=="string"||typeof l=="function"||l===t||l===r||y||l===o||l===h||l===d||P||l===R||E||g||c||typeof l=="object"&&l!==null&&(l.$$typeof===b||l.$$typeof===m||l.$$typeof===i||l.$$typeof===f||l.$$typeof===p||l.$$typeof===w||l.getModuleId!==void 0))}function S(l){if(typeof l=="object"&&l!==null){var Ne=l.$$typeof;switch(Ne){case e:var Z=l.type;switch(Z){case t:case r:case o:case h:case d:return Z;default:var ke=Z&&Z.$$typeof;switch(ke){case a:case f:case p:case b:case m:case i:return ke;default:return Ne}}case n:return Ne}}}var V=f,W=i,C=e,H=p,D=t,M=b,B=m,z=n,F=r,T=o,x=h,fe=d,U=!1,ae=!1;function G(l){return U||(U=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function me(l){return ae||(ae=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function J(l){return S(l)===f}function ee(l){return S(l)===i}function Q(l){return typeof l=="object"&&l!==null&&l.$$typeof===e}function re(l){return S(l)===p}function X(l){return S(l)===t}function _(l){return S(l)===b}function I(l){return S(l)===m}function $(l){return S(l)===n}function te(l){return S(l)===r}function q(l){return S(l)===o}function k(l){return S(l)===h}function Se(l){return S(l)===d}O.ContextConsumer=V,O.ContextProvider=W,O.Element=C,O.ForwardRef=H,O.Fragment=D,O.Lazy=M,O.Memo=B,O.Portal=z,O.Profiler=F,O.StrictMode=T,O.Suspense=x,O.SuspenseList=fe,O.isAsyncMode=G,O.isConcurrentMode=me,O.isContextConsumer=J,O.isContextProvider=ee,O.isElement=Q,O.isForwardRef=re,O.isFragment=X,O.isLazy=_,O.isMemo=I,O.isPortal=$,O.isProfiler=te,O.isStrictMode=q,O.isSuspense=k,O.isSuspenseList=Se,O.isValidElementType=L,O.typeOf=S}()),O}process.env.NODE_ENV==="production"?Zt.exports=Ro():Zt.exports=So();var qt=Zt.exports;function xo(e,n,t){const o=s.useRef({});return(!("value"in o.current)||t(o.current.condition,n))&&(o.current.value=e(),o.current.condition=n),o.current.value}const Po=Symbol.for("react.element"),To=Symbol.for("react.transitional.element"),Co=Symbol.for("react.fragment");function Wn(e){return e&&typeof e=="object"&&(e.$$typeof===Po||e.$$typeof===To)&&e.type===Co}const Mo=Number(K.version.split(".")[0]),_o=(e,n)=>{typeof e=="function"?e(n):typeof e=="object"&&e&&"current"in e&&(e.current=n)},Yn=(...e)=>{const n=e.filter(Boolean);return n.length<=1?n[0]:t=>{e.forEach(o=>{_o(o,t)})}},Fn=(...e)=>xo(()=>Yn(...e),e,(n,t)=>n.length!==t.length||n.every((o,r)=>o!==t[r])),an=e=>{var t,o;if(!e)return!1;if(jn(e)&&Mo>=19)return!0;const n=qt.isMemo(e)?e.type.type:e.type;return!(typeof n=="function"&&!((t=n.prototype)!=null&&t.render)&&n.$$typeof!==qt.ForwardRef||typeof e=="function"&&!((o=e.prototype)!=null&&o.render)&&e.$$typeof!==qt.ForwardRef)};function jn(e){return K.isValidElement(e)&&!Wn(e)}const ln=e=>{if(e&&jn(e)){const n=e;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null};let Gt={};const dn=[],No=e=>{dn.push(e)};function Ct(e,n){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){const t=dn.reduce((o,r)=>r(o??"","warning"),n);t&&console.error(`Warning: ${t}`)}}function Ao(e,n){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){const t=dn.reduce((o,r)=>r(o??"","note"),n);t&&console.warn(`Note: ${t}`)}}function Oo(){Gt={}}function Bn(e,n,t){!n&&!Gt[t]&&(e(!1,t),Gt[t]=!0)}function _t(e,n){Bn(Ct,e,n)}function Lo(e,n){Bn(Ao,e,n)}_t.preMessage=No;_t.resetWarned=Oo;_t.noteOnce=Lo;const Hn=s.createContext(null);let Io=!1;function $o(e){return Io}const vn=process.env.NODE_ENV!=="test"&&we()?s.useLayoutEffect:s.useEffect,pe=(e,n)=>{const t=s.useRef(!0);vn(()=>e(t.current),n),vn(()=>(t.current=!1,()=>{t.current=!0}),[])},En=[];function Do(e,n){const[t]=s.useState(()=>{if(!we())return null;const d=document.createElement("div");return process.env.NODE_ENV!=="production"&&n&&d.setAttribute("data-debug",n),d}),o=s.useRef(!1),r=s.useContext(Hn),[i,f]=s.useState(En),a=r||(o.current?void 0:d=>{f(m=>[d,...m])});function p(){t.parentElement||document.body.appendChild(t),o.current=!0}function h(){var d;(d=t.parentElement)==null||d.removeChild(t),o.current=!1}return pe(()=>(e?r?r(p):p():h(),h),[e]),pe(()=>{i.length&&(i.forEach(d=>d()),f(En))},[i]),[t,a]}function ko(e,n){if(!e)return!1;if(e.contains)return e.contains(n);let t=n;for(;t;){if(t===e)return!0;t=t.parentNode}return!1}const wn="data-rc-order",Rn="data-rc-priority",Vo="rc-util-key",Kt=new Map;function zn({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:Vo}function Nt(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Wo(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function pn(e){return Array.from((Kt.get(e)||e).children).filter(n=>n.tagName==="STYLE")}function Xn(e,n={}){if(!we())return null;const{csp:t,prepend:o,priority:r=0}=n,i=Wo(o),f=i==="prependQueue",a=document.createElement("style");a.setAttribute(wn,i),f&&r&&a.setAttribute(Rn,`${r}`),t!=null&&t.nonce&&(a.nonce=t==null?void 0:t.nonce),a.innerHTML=e;const p=Nt(n),{firstChild:h}=p;if(o){if(f){const d=(n.styles||pn(p)).filter(m=>{if(!["prepend","prependQueue"].includes(m.getAttribute(wn)))return!1;const b=Number(m.getAttribute(Rn)||0);return r>=b});if(d.length)return p.insertBefore(a,d[d.length-1].nextSibling),a}p.insertBefore(a,h)}else p.appendChild(a);return a}function qn(e,n={}){let{styles:t}=n;return t||(t=pn(Nt(n))),t.find(o=>o.getAttribute(zn(n))===e)}function Jt(e,n={}){const t=qn(e,n);t&&Nt(n).removeChild(t)}function Yo(e,n){const t=Kt.get(e);if(!t||!ko(document,t)){const o=Xn("",n),{parentNode:r}=o;Kt.set(e,r),e.removeChild(o)}}function Un(e,n,t={}){var p,h,d;const o=Nt(t),r=pn(o),i={...t,styles:r};Yo(o,i);const f=qn(n,i);if(f)return(p=i.csp)!=null&&p.nonce&&f.nonce!==((h=i.csp)==null?void 0:h.nonce)&&(f.nonce=(d=i.csp)==null?void 0:d.nonce),f.innerHTML!==e&&(f.innerHTML=e),f;const a=Xn(e,i);return a.setAttribute(zn(i),n),a}function Fo(e){const n=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,t=document.createElement("div");t.id=n;const o=t.style;o.position="absolute",o.left="0",o.top="0",o.width="100px",o.height="100px",o.overflow="scroll";let r,i;if(e){const p=getComputedStyle(e);o.scrollbarColor=p.scrollbarColor,o.scrollbarWidth=p.scrollbarWidth;const h=getComputedStyle(e,"::-webkit-scrollbar"),d=parseInt(h.width,10),m=parseInt(h.height,10);try{const b=d?`width: ${h.width};`:"",R=m?`height: ${h.height};`:"";Un(`
|
|
18
|
+
#${n}::-webkit-scrollbar {
|
|
19
|
+
${b}
|
|
20
|
+
${R}
|
|
21
|
+
}`,n)}catch(b){console.error(b),r=d,i=m}}document.body.appendChild(t);const f=e&&r&&!isNaN(r)?r:t.offsetWidth-t.clientWidth,a=e&&i&&!isNaN(i)?i:t.offsetHeight-t.clientHeight;return document.body.removeChild(t),Jt(n),{width:f,height:a}}function jo(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:Fo(e)}function Bo(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}const Ho=`rc-util-locker-${Date.now()}`;let Sn=0;function zo(e){const n=!!e,[t]=s.useState(()=>(Sn+=1,`${Ho}_${Sn}`));pe(()=>{if(n){const o=jo(document.body).width,r=Bo();Un(`
|
|
22
|
+
html body {
|
|
23
|
+
overflow-y: hidden;
|
|
24
|
+
${r?`width: calc(100% - ${o}px);`:""}
|
|
25
|
+
}`,t)}else Jt(t);return()=>{Jt(t)}},[n,t])}const xn=e=>e===!1?!1:!we()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e,mn=s.forwardRef((e,n)=>{const{open:t,autoLock:o,getContainer:r,debug:i,autoDestroy:f=!0,children:a}=e,[p,h]=s.useState(t),d=p||t;process.env.NODE_ENV!=="production"&&_t(we()||!t,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),s.useEffect(()=>{(f||t)&&h(t)},[t,f]);const[m,b]=s.useState(()=>xn(r));s.useEffect(()=>{const L=xn(r);b(L??null)});const[R,E]=Do(d&&!m,i),g=m??R;zo(o&&t&&we()&&(g===R||g===document.body));let c=null;a&&an(a)&&n&&(c=ln(a));const P=Fn(c,n);if(!d||!we()||m===void 0)return null;const y=g===!1||$o();let w=a;return n&&(w=s.cloneElement(a,{ref:P})),s.createElement(Hn.Provider,{value:E},y?w:bo.createPortal(w,g))});process.env.NODE_ENV!=="production"&&(mn.displayName="Portal");function en(e,n={}){let t=[];return K.Children.forEach(e,o=>{o==null&&!n.keepEmpty||(Array.isArray(o)?t=t.concat(en(o)):Wn(o)&&o.props?t=t.concat(en(o.props.children,n)):t.push(o))}),t}function at(e){return e instanceof HTMLElement||e instanceof SVGElement}function Qn(e){return e&&typeof e=="object"&&at(e.nativeElement)?e.nativeElement:at(e)?e:null}const tn=s.createContext(null);function Xo({children:e,onBatchResize:n}){const t=s.useRef(0),o=s.useRef([]),r=s.useContext(tn),i=s.useCallback((f,a,p)=>{t.current+=1;const h=t.current;o.current.push({size:f,element:a,data:p}),Promise.resolve().then(()=>{h===t.current&&(n==null||n(o.current),o.current=[])}),r==null||r(f,a,p)},[n,r]);return s.createElement(tn.Provider,{value:i},e)}const _e=new Map;function Zn(e){e.forEach(n=>{var o;const{target:t}=n;(o=_e.get(t))==null||o.forEach(r=>r(t))})}let Ut;function Gn(){return Ut||(Ut=new ResizeObserver(Zn)),Ut}process.env.NODE_ENV;process.env.NODE_ENV;function qo(e,n){_e.has(e)||(_e.set(e,new Set),Gn().observe(e)),_e.get(e).add(n)}function Uo(e,n){_e.has(e)&&(_e.get(e).delete(n),_e.get(e).size||(Gn().unobserve(e),_e.delete(e)))}function Qo(e,n){const{children:t,disabled:o}=e,r=s.useRef(null),i=s.useContext(tn),f=typeof t=="function",a=f?t(r):t,p=s.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),h=!f&&s.isValidElement(a)&&an(a),d=h?ln(a):null,m=Fn(d,r),b=()=>Qn(r.current);s.useImperativeHandle(n,()=>b());const R=s.useRef(e);R.current=e;const E=s.useCallback(g=>{const{onResize:c,data:P}=R.current,{width:y,height:w}=g.getBoundingClientRect(),{offsetWidth:L,offsetHeight:S}=g,V=Math.floor(y),W=Math.floor(w);if(p.current.width!==V||p.current.height!==W||p.current.offsetWidth!==L||p.current.offsetHeight!==S){const C={width:V,height:W,offsetWidth:L,offsetHeight:S};p.current=C;const H=L===Math.round(y)?y:L,D=S===Math.round(w)?w:S,M={...C,offsetWidth:H,offsetHeight:D};i==null||i(M,g,P),c&&Promise.resolve().then(()=>{c(M,g)})}},[]);return s.useEffect(()=>{const g=b();return g&&!o&&qo(g,E),()=>Uo(g,E)},[r.current,o]),h?s.cloneElement(a,{ref:m}):a}const Kn=s.forwardRef(Qo);process.env.NODE_ENV!=="production"&&(Kn.displayName="SingleObserver");function nn(){return nn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},nn.apply(this,arguments)}const Zo="rc-observer-key";function Go(e,n){const{children:t}=e,o=typeof t=="function"?[t]:en(t);return process.env.NODE_ENV!=="production"&&(o.length>1?Ct(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):o.length===0&&Ct(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),o.map((r,i)=>{const f=(r==null?void 0:r.key)||`${Zo}-${i}`;return s.createElement(Kn,nn({},e,{key:f,ref:i===0?n:void 0}),r)})}const At=s.forwardRef(Go);process.env.NODE_ENV!=="production"&&(At.displayName="ResizeObserver");At.Collection=Xo;function Jn(e){var n;return(n=e==null?void 0:e.getRootNode)==null?void 0:n.call(e)}function Ko(e){return Jn(e)instanceof ShadowRoot}function on(e){return Ko(e)?Jn(e):null}function Ee(e){const n=s.useRef();return n.current=e,s.useCallback((...o)=>{var r;return(r=n.current)==null?void 0:r.call(n,...o)},[])}function Jo(){return{...s}.useId}let Pn=0;const Tn=Jo(),eo=Tn?function(n){const t=Tn();return n||(process.env.NODE_ENV==="test"?"test-id":t)}:function(n){const[t,o]=s.useState("ssr-id");return s.useEffect(()=>{const r=Pn;Pn+=1,o(`rc_unique_${r}`)},[]),n||(process.env.NODE_ENV==="test"?"test-id":t)},er=()=>{if(typeof navigator>"u"||typeof window>"u")return!1;const e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))},tr=s.createContext({});function rn(e){const n=s.useRef(!1),[t,o]=s.useState(e);s.useEffect(()=>(n.current=!1,()=>{n.current=!0}),[]);function r(i,f){f&&n.current||o(i)}return[t,r]}function nr(e){const[,n]=s.useReducer(i=>i+1,0),t=s.useRef(e),o=Ee(()=>t.current),r=Ee(i=>{t.current=typeof i=="function"?i(t.current):i,n()});return[o,r]}const Me="none",St="appear",xt="enter",Pt="leave",Cn="none",be="prepare",Je="start",et="active",hn="end",to="prepared";function Mn(e,n){const t={};return t[e.toLowerCase()]=n.toLowerCase(),t[`Webkit${e}`]=`webkit${n}`,t[`Moz${e}`]=`moz${n}`,t[`ms${e}`]=`MS${n}`,t[`O${e}`]=`o${n.toLowerCase()}`,t}function or(e,n){const t={animationend:Mn("Animation","AnimationEnd"),transitionend:Mn("Transition","TransitionEnd")};return e&&("AnimationEvent"in n||delete t.animationend.animation,"TransitionEvent"in n||delete t.transitionend.transition),t}const rr=or(we(),typeof window<"u"?window:{});let no={};we()&&({style:no}=document.createElement("div"));const Tt={};function oo(e){if(Tt[e])return Tt[e];const n=rr[e];if(n){const t=Object.keys(n),o=t.length;for(let r=0;r<o;r+=1){const i=t[r];if(Object.prototype.hasOwnProperty.call(n,i)&&i in no)return Tt[e]=n[i],Tt[e]}}return""}const ro=oo("animationend"),so=oo("transitionend"),sr=!!(ro&&so),_n=ro||"animationend",Nn=so||"transitionend";function An(e,n){if(!e)return null;if(typeof e=="object"){const t=n.replace(/-\w/g,o=>o[1].toUpperCase());return e[t]}return`${e}-${n}`}const ir=e=>{const n=K.useRef();function t(r){r&&(r.removeEventListener(Nn,e),r.removeEventListener(_n,e))}function o(r){n.current&&n.current!==r&&t(n.current),r&&r!==n.current&&(r.addEventListener(Nn,e),r.addEventListener(_n,e),n.current=r)}return s.useEffect(()=>()=>{t(n.current)},[]),[o,t]},io=we()?K.useLayoutEffect:K.useEffect;let co=e=>+setTimeout(e,16),uo=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(co=e=>window.requestAnimationFrame(e),uo=e=>window.cancelAnimationFrame(e));let On=0;const Ot=new Map;function fo(e){Ot.delete(e)}const Mt=(e,n=1)=>{On+=1;const t=On;function o(r){if(r===0)fo(t),e();else{const i=co(()=>{o(r-1)});Ot.set(t,i)}}return o(n),t};Mt.cancel=e=>{const n=Ot.get(e);return fo(e),uo(n)};process.env.NODE_ENV!=="production"&&(Mt.ids=()=>Ot);const cr=()=>{const e=s.useRef(null);function n(){Mt.cancel(e.current)}function t(o,r=2){n();const i=Mt(()=>{r<=1?o({isCanceled:()=>i!==e.current}):t(o,r-1)});e.current=i}return s.useEffect(()=>()=>{n()},[]),[t,n]},ur=[be,Je,et,hn],fr=[be,to],ao=!1,ar=!0;function lo(e){return e===et||e===hn}const lr=(e,n,t)=>{const[o,r]=rn(Cn),[i,f]=cr();function a(){r(be,!0)}const p=n?fr:ur;return io(()=>{if(o!==Cn&&o!==hn){const h=p.indexOf(o),d=p[h+1],m=t(o);m===ao?r(d,!0):d&&i(b=>{function R(){b.isCanceled()||r(d,!0)}m===!0?R():Promise.resolve(m).then(R)})}},[e,o]),s.useEffect(()=>()=>{f()},[]),[a,o]};function dr(e,n,t,{motionEnter:o=!0,motionAppear:r=!0,motionLeave:i=!0,motionDeadline:f,motionLeaveImmediately:a,onAppearPrepare:p,onEnterPrepare:h,onLeavePrepare:d,onAppearStart:m,onEnterStart:b,onLeaveStart:R,onAppearActive:E,onEnterActive:g,onLeaveActive:c,onAppearEnd:P,onEnterEnd:y,onLeaveEnd:w,onVisibleChanged:L}){const[S,V]=rn(),[W,C]=nr(Me),[H,D]=rn(null),M=W(),B=K.useRef(!1),z=K.useRef(null);function F(){return t()}const T=K.useRef(!1);function x(){C(Me),D(null,!0)}const fe=Ee(_=>{const I=W();if(I===Me)return;const $=F();if(_&&!_.deadline&&_.target!==$)return;const te=T.current;let q;I===St&&te?q=P==null?void 0:P($,_):I===xt&&te?q=y==null?void 0:y($,_):I===Pt&&te&&(q=w==null?void 0:w($,_)),te&&q!==!1&&x()}),[U]=ir(fe),ae=_=>{switch(_){case St:return{[be]:p,[Je]:m,[et]:E};case xt:return{[be]:h,[Je]:b,[et]:g};case Pt:return{[be]:d,[Je]:R,[et]:c};default:return{}}},G=s.useMemo(()=>ae(M),[M]),[me,J]=lr(M,!e,_=>{var I;if(_===be){const $=G[be];return $?$(F()):ao}return J in G&&D(((I=G[J])==null?void 0:I.call(G,F(),null))||null),J===et&&M!==Me&&(U(F()),f>0&&(clearTimeout(z.current),z.current=setTimeout(()=>{fe({deadline:!0})},f))),J===to&&x(),ar}),ee=lo(J);T.current=ee;const Q=K.useRef(null);io(()=>{if(B.current&&Q.current===n)return;V(n);const _=B.current;B.current=!0;let I;!_&&n&&r&&(I=St),_&&n&&o&&(I=xt),(_&&!n&&i||!_&&a&&!n&&i)&&(I=Pt);const $=ae(I);I&&(e||$[be])?(C(I),me()):C(Me),Q.current=n},[n]),K.useEffect(()=>{(M===St&&!r||M===xt&&!o||M===Pt&&!i)&&C(Me)},[r,o,i]),K.useEffect(()=>()=>{B.current=!1,clearTimeout(z.current)},[]);const re=s.useRef(!1);K.useEffect(()=>{S&&(re.current=!0),S!==void 0&&M===Me&&((re.current||S)&&(L==null||L(S)),re.current=!0)},[S,M]);let X=H;return G[be]&&J===Je&&(X={transition:"none",...X}),[W,J,X,S??n]}function pr(e){let n=e;typeof e=="object"&&({transitionSupport:n}=e);function t(r,i){return!!(r.motionName&&n&&i!==!1)}const o=s.forwardRef((r,i)=>{const{visible:f=!0,removeOnLeave:a=!0,forceRender:p,children:h,motionName:d,leavedClassName:m,eventProps:b}=r,{motion:R}=s.useContext(tr),E=t(r,R),g=K.useRef();function c(){return Qn(g.current)}const[P,y,w,L]=dr(E,f,c,r),S=P(),V=s.useRef(L);L&&(V.current=!0);const W=s.useMemo(()=>{const D={};return Object.defineProperties(D,{nativeElement:{enumerable:!0,get:c},inMotion:{enumerable:!0,get:()=>()=>P()!==Me},enableMotion:{enumerable:!0,get:()=>()=>E}}),D},[]);s.useImperativeHandle(i,()=>W,[]);let C;const H={...b,visible:f};if(!h)C=null;else if(S===Me)L?C=h({...H},g):!a&&V.current&&m?C=h({...H,className:m},g):p||!a&&!m?C=h({...H,style:{display:"none"}},g):C=null;else{let D;y===be?D="prepare":lo(y)?D="active":y===Je&&(D="start");const M=An(d,`${S}-${D}`);C=h({...H,className:Re(An(d,S),{[M]:M&&D,[d]:typeof d=="string"}),style:w},g)}return s.isValidElement(C)&&an(C)&&(ln(C)||(C=s.cloneElement(C,{ref:g}))),C});return o.displayName="CSSMotion",o}const po=pr(sr);function mr(e){const{prefixCls:n,align:t,arrow:o,arrowPos:r}=e,{className:i,content:f}=o||{},{x:a=0,y:p=0}=r,h=s.useRef(null);if(!t||!t.points)return null;const d={position:"absolute"};if(t.autoArrow!==!1){const m=t.points[0],b=t.points[1],R=m[0],E=m[1],g=b[0],c=b[1];R===g||!["t","b"].includes(R)?d.top=p:R==="t"?d.top=0:d.bottom=0,E===c||!["l","r"].includes(E)?d.left=a:E==="l"?d.left=0:d.right=0}return s.createElement("div",{ref:h,className:Re(`${n}-arrow`,i),style:d},f)}function sn(){return sn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},sn.apply(this,arguments)}function hr(e){const{prefixCls:n,open:t,zIndex:o,mask:r,motion:i}=e;return r?s.createElement(po,sn({},i,{motionAppear:!0,visible:t,removeOnLeave:!0}),({className:f})=>s.createElement("div",{style:{zIndex:o},className:Re(`${n}-mask`,f)})):null}const mo=s.memo(({children:e})=>e,(e,n)=>n.cache);process.env.NODE_ENV!=="production"&&(mo.displayName="PopupContent");function cn(){return cn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},cn.apply(this,arguments)}const ho=s.forwardRef((e,n)=>{var $;const{popup:t,className:o,prefixCls:r,style:i,target:f,onVisibleChanged:a,open:p,keepDom:h,fresh:d,onClick:m,mask:b,arrow:R,arrowPos:E,align:g,motion:c,maskMotion:P,forceRender:y,getPopupContainer:w,autoDestroy:L,portal:S,zIndex:V,onMouseEnter:W,onMouseLeave:C,onPointerEnter:H,onPointerDownCapture:D,ready:M,offsetX:B,offsetY:z,offsetR:F,offsetB:T,onAlign:x,onPrepare:fe,stretch:U,targetWidth:ae,targetHeight:G}=e,me=typeof t=="function"?t():t,J=p||h,ee=(w==null?void 0:w.length)>0,[Q,re]=s.useState(!w||!ee);if(pe(()=>{!Q&&ee&&f&&re(!0)},[Q,ee,f]),!Q)return null;const X="auto",_={left:"-1000vw",top:"-1000vh",right:X,bottom:X};if(M||!p){const{points:te}=g,q=g.dynamicInset||(($=g._experimental)==null?void 0:$.dynamicInset),k=q&&te[0][1]==="r",Se=q&&te[0][0]==="b";k?(_.right=F,_.left=X):(_.left=B,_.right=X),Se?(_.bottom=T,_.top=X):(_.top=z,_.bottom=X)}const I={};return U&&(U.includes("height")&&G?I.height=G:U.includes("minHeight")&&G&&(I.minHeight=G),U.includes("width")&&ae?I.width=ae:U.includes("minWidth")&&ae&&(I.minWidth=ae)),p||(I.pointerEvents="none"),s.createElement(S,{open:y||J,getContainer:w&&(()=>w(f)),autoDestroy:L},s.createElement(hr,{prefixCls:r,open:p,zIndex:V,mask:b,motion:P}),s.createElement(At,{onResize:x,disabled:!p},te=>s.createElement(po,cn({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:`${r}-hidden`},c,{onAppearPrepare:fe,onEnterPrepare:fe,visible:p,onVisibleChanged:q=>{var k;(k=c==null?void 0:c.onVisibleChanged)==null||k.call(c,q),a(q)}}),({className:q,style:k},Se)=>{const l=Re(r,q,o);return s.createElement("div",{ref:Yn(te,n,Se),className:l,style:{"--arrow-x":`${E.x||0}px`,"--arrow-y":`${E.y||0}px`,..._,...I,...k,boxSizing:"border-box",zIndex:V,...i},onMouseEnter:W,onMouseLeave:C,onPointerEnter:H,onClick:m,onPointerDownCapture:D},R&&s.createElement(mr,{prefixCls:r,arrow:R,arrowPos:E,align:g}),s.createElement(mo,{cache:!p&&!d},me))})))});process.env.NODE_ENV!=="production"&&(ho.displayName="Popup");const Ln=s.createContext(null);function In(e){return e?Array.isArray(e)?e:[e]:[]}function gr(e,n,t,o){return s.useMemo(()=>{const r=In(t??n),i=In(o??n),f=new Set(r),a=new Set(i);return e&&(f.has("hover")&&(f.delete("hover"),f.add("click")),a.has("hover")&&(a.delete("hover"),a.add("click"))),[f,a]},[e,n,t,o])}const yr=e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){const{width:n,height:t}=e.getBBox();if(n||t)return!0}if(e.getBoundingClientRect){const{width:n,height:t}=e.getBoundingClientRect();if(n||t)return!0}}return!1};function br(e=[],n=[],t){return t?e[0]===n[0]:e[0]===n[0]&&e[1]===n[1]}function vr(e,n,t,o){var f;const{points:r}=t,i=Object.keys(e);for(let a=0;a<i.length;a+=1){const p=i[a];if(br((f=e[p])==null?void 0:f.points,r,o))return`${n}-placement-${p}`}return""}function dt(e){return e.ownerDocument.defaultView}function un(e){const n=[];let t=e==null?void 0:e.parentElement;const o=["hidden","scroll","clip","auto"];for(;t;){const{overflowX:r,overflowY:i,overflow:f}=dt(t).getComputedStyle(t);[r,i,f].some(a=>o.includes(a))&&n.push(t),t=t.parentElement}return n}function lt(e,n=1){return Number.isNaN(e)?n:e}function ft(e){return lt(parseFloat(e),0)}function $n(e,n){const t={...e};return(n||[]).forEach(o=>{if(o instanceof HTMLBodyElement||o instanceof HTMLHtmlElement)return;const{overflow:r,overflowClipMargin:i,borderTopWidth:f,borderBottomWidth:a,borderLeftWidth:p,borderRightWidth:h}=dt(o).getComputedStyle(o),d=o.getBoundingClientRect(),{offsetHeight:m,clientHeight:b,offsetWidth:R,clientWidth:E}=o,g=ft(f),c=ft(a),P=ft(p),y=ft(h),w=lt(Math.round(d.width/R*1e3)/1e3),L=lt(Math.round(d.height/m*1e3)/1e3),S=(R-E-P-y)*w,V=(m-b-g-c)*L,W=g*L,C=c*L,H=P*w,D=y*w;let M=0,B=0;if(r==="clip"){const fe=ft(i);M=fe*w,B=fe*L}const z=d.x+H-M,F=d.y+W-B,T=z+d.width+2*M-H-D-S,x=F+d.height+2*B-W-C-V;t.left=Math.max(t.left,z),t.top=Math.max(t.top,F),t.right=Math.min(t.right,T),t.bottom=Math.min(t.bottom,x)}),t}function Dn(e,n=0){const t=`${n}`,o=t.match(/^(.*)\%$/);return o?e*(parseFloat(o[1])/100):parseFloat(t)}function kn(e,n){const[t,o]=n||[];return[Dn(e.width,t),Dn(e.height,o)]}function Vn(e=""){return[e[0],e[1]]}function Ze(e,n){const t=n[0],o=n[1];let r,i;return t==="t"?i=e.y:t==="b"?i=e.y+e.height:i=e.y+e.height/2,o==="l"?r=e.x:o==="r"?r=e.x+e.width:r=e.x+e.width/2,{x:r,y:i}}function De(e,n){const t={t:"b",b:"t",l:"r",r:"l"};return e.map((o,r)=>r===n?t[o]||"c":o).join("")}function Er(e,n,t,o,r,i,f){const[a,p]=s.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:r[o]||{}}),h=s.useRef(0),d=s.useMemo(()=>n?un(n):[],[n]),m=s.useRef({});e||(()=>{m.current={}})();const R=Ee(()=>{var c,P;if(n&&t&&e){let de=function(v,ue,u=Ne){const Y=x.x+v,oe=x.y+ue,$e=Y+Q,Ce=oe+ee,zt=Math.max(Y,u.left),Rt=Math.max(oe,u.top),go=Math.min($e,u.right),yo=Math.min(Ce,u.bottom);return Math.max(0,(go-zt)*(yo-Rt))},Fe=function(){Ye=x.y+j,Xe=Ye+ee,ve=x.x+N,Oe=ve+Q};const y=n,w=y.ownerDocument,L=dt(y),{width:S,height:V,position:W}=L.getComputedStyle(y),C=y.style.left,H=y.style.top,D=y.style.right,M=y.style.bottom,B=y.style.overflow,z={...r[o],...i},F=w.createElement("div");(c=y.parentElement)==null||c.appendChild(F),F.style.left=`${y.offsetLeft}px`,F.style.top=`${y.offsetTop}px`,F.style.position=W,F.style.height=`${y.offsetHeight}px`,F.style.width=`${y.offsetWidth}px`,y.style.left="0",y.style.top="0",y.style.right="auto",y.style.bottom="auto",y.style.overflow="hidden";let T;if(Array.isArray(t))T={x:t[0],y:t[1],width:0,height:0};else{const v=t.getBoundingClientRect();v.x=v.x??v.left,v.y=v.y??v.top,T={x:v.x,y:v.y,width:v.width,height:v.height}}const x=y.getBoundingClientRect();x.x=x.x??x.left,x.y=x.y??x.top;const{clientWidth:fe,clientHeight:U,scrollWidth:ae,scrollHeight:G,scrollTop:me,scrollLeft:J}=w.documentElement,ee=x.height,Q=x.width,re=T.height,X=T.width,_={left:0,top:0,right:fe,bottom:U},I={left:-J,top:-me,right:ae-J,bottom:G-me};let{htmlRegion:$}=z;const te="visible",q="visibleFirst";$!=="scroll"&&$!==q&&($=te);const k=$===q,Se=$n(I,d),l=$n(_,d),Ne=$===te?l:Se,Z=k?l:Ne;y.style.left="auto",y.style.top="auto",y.style.right="0",y.style.bottom="0";const ke=y.getBoundingClientRect();y.style.left=C,y.style.top=H,y.style.right=D,y.style.bottom=M,y.style.overflow=B,(P=y.parentElement)==null||P.removeChild(F);const xe=lt(Math.round(Q/parseFloat(S)*1e3)/1e3),Ae=lt(Math.round(ee/parseFloat(V)*1e3)/1e3);if(xe===0||Ae===0||at(t)&&!yr(t))return;const{offset:He,targetOffset:se}=z;let[ie,ye]=kn(x,He);const[Lt,pt]=kn(T,se);T.x-=Lt,T.y-=pt;const[ce,It]=z.points||[],le=Vn(It),ne=Vn(ce),tt=Ze(T,le),nt=Ze(x,ne),Pe={...z};let N=tt.x-nt.x+ie,j=tt.y-nt.y+ye;const he=de(N,j),Ve=de(N,j,l),ze=Ze(T,["t","l"]),mt=Ze(x,["t","l"]),We=Ze(T,["b","r"]),ht=Ze(x,["b","r"]),$t=z.overflow||{},{adjustX:Dt,adjustY:kt,shiftX:gt,shiftY:yt}=$t,bt=v=>typeof v=="boolean"?v:v>=0;let Ye,Xe,ve,Oe;Fe();const Le=bt(kt),ot=ne[0]===le[0];if(Le&&ne[0]==="t"&&(Xe>Z.bottom||m.current.bt)){let v=j;ot?v-=ee-re:v=ze.y-ht.y-ye;const ue=de(N,v),u=de(N,v,l);ue>he||ue===he&&(!k||u>=Ve)?(m.current.bt=!0,j=v,ye=-ye,Pe.points=[De(ne,0),De(le,0)]):m.current.bt=!1}if(Le&&ne[0]==="b"&&(Ye<Z.top||m.current.tb)){let v=j;ot?v+=ee-re:v=We.y-mt.y-ye;const ue=de(N,v),u=de(N,v,l);ue>he||ue===he&&(!k||u>=Ve)?(m.current.tb=!0,j=v,ye=-ye,Pe.points=[De(ne,0),De(le,0)]):m.current.tb=!1}const je=bt(Dt),Te=ne[1]===le[1];if(je&&ne[1]==="l"&&(Oe>Z.right||m.current.rl)){let v=N;Te?v-=Q-X:v=ze.x-ht.x-ie;const ue=de(v,j),u=de(v,j,l);ue>he||ue===he&&(!k||u>=Ve)?(m.current.rl=!0,N=v,ie=-ie,Pe.points=[De(ne,1),De(le,1)]):m.current.rl=!1}if(je&&ne[1]==="r"&&(ve<Z.left||m.current.lr)){let v=N;Te?v+=Q-X:v=We.x-mt.x-ie;const ue=de(v,j),u=de(v,j,l);ue>he||ue===he&&(!k||u>=Ve)?(m.current.lr=!0,N=v,ie=-ie,Pe.points=[De(ne,1),De(le,1)]):m.current.lr=!1}Fe();const qe=gt===!0?0:gt;typeof qe=="number"&&(ve<l.left&&(N-=ve-l.left-ie,T.x+X<l.left+qe&&(N+=T.x-l.left+X-qe)),Oe>l.right&&(N-=Oe-l.right-ie,T.x>l.right-qe&&(N+=T.x-l.right+qe)));const Be=yt===!0?0:yt;typeof Be=="number"&&(Ye<l.top&&(j-=Ye-l.top-ye,T.y+re<l.top+Be&&(j+=T.y-l.top+re-Be)),Xe>l.bottom&&(j-=Xe-l.bottom-ye,T.y>l.bottom-Be&&(j+=T.y-l.bottom+Be)));const rt=x.x+N,Vt=rt+Q,st=x.y+j,Wt=st+ee,it=T.x,Yt=it+X,vt=T.y,Ft=vt+re,Ie=Math.max(rt,it),jt=Math.min(Vt,Yt),Bt=(Ie+jt)/2-rt,ct=Math.max(st,vt),Et=Math.min(Wt,Ft),Ue=(ct+Et)/2-st;f==null||f(n,Pe);let Qe=ke.right-x.x-(N+x.width),wt=ke.bottom-x.y-(j+x.height);xe===1&&(N=Math.round(N),Qe=Math.round(Qe)),Ae===1&&(j=Math.round(j),wt=Math.round(wt));const Ht={ready:!0,offsetX:N/xe,offsetY:j/Ae,offsetR:Qe/xe,offsetB:wt/Ae,arrowX:Bt/xe,arrowY:Ue/Ae,scaleX:xe,scaleY:Ae,align:Pe};p(Ht)}}),E=()=>{h.current+=1;const c=h.current;Promise.resolve().then(()=>{h.current===c&&R()})},g=()=>{p(c=>({...c,ready:!1}))};return pe(g,[o]),pe(()=>{e||g()},[e]),[a.ready,a.offsetX,a.offsetY,a.offsetR,a.offsetB,a.arrowX,a.arrowY,a.scaleX,a.scaleY,a.align,E]}function wr(e,n,t,o,r){pe(()=>{if(e&&n&&t){let m=function(){o(),r()};const i=n,f=t,a=un(i),p=un(f),h=dt(f),d=new Set([h,...a,...p]);return d.forEach(b=>{b.addEventListener("scroll",m,{passive:!0})}),h.addEventListener("resize",m,{passive:!0}),o(),()=>{d.forEach(b=>{b.removeEventListener("scroll",m),h.removeEventListener("resize",m)})}}},[e,n,t])}function Rr(e,n,t,o,r,i,f,a){const p=s.useRef(e);p.current=e;const h=s.useRef(!1);s.useEffect(()=>{var m,b;if(n&&o&&(!r||i)){const R=()=>{h.current=!1},E=P=>{var y,w;p.current&&!f(((w=(y=P.composedPath)==null?void 0:y.call(P))==null?void 0:w[0])||P.target)&&!h.current&&a(!1)},g=dt(o);g.addEventListener("pointerdown",R,!0),g.addEventListener("mousedown",E,!0),g.addEventListener("contextmenu",E,!0);const c=on(t);if(c&&(c.addEventListener("mousedown",E,!0),c.addEventListener("contextmenu",E,!0)),process.env.NODE_ENV!=="production"){const P=(m=t==null?void 0:t.getRootNode)==null?void 0:m.call(t),y=(b=o.getRootNode)==null?void 0:b.call(o);Ct(P===y,"trigger element and popup element should in same shadow root.")}return()=>{g.removeEventListener("pointerdown",R,!0),g.removeEventListener("mousedown",E,!0),g.removeEventListener("contextmenu",E,!0),c&&(c.removeEventListener("mousedown",E,!0),c.removeEventListener("contextmenu",E,!0))}}},[n,t,o,r,i]);function d(){h.current=!0}return d}function Sr(e=mn){const n=s.forwardRef((t,o)=>{const{prefixCls:r="rc-trigger-popup",children:i,action:f="hover",showAction:a,hideAction:p,popupVisible:h,defaultPopupVisible:d,onOpenChange:m,afterOpenChange:b,onPopupVisibleChange:R,afterPopupVisibleChange:E,mouseEnterDelay:g,mouseLeaveDelay:c=.1,focusDelay:P,blurDelay:y,mask:w,maskClosable:L=!0,getPopupContainer:S,forceRender:V,autoDestroy:W,popup:C,popupClassName:H,popupStyle:D,popupPlacement:M,builtinPlacements:B={},popupAlign:z,zIndex:F,stretch:T,getPopupClassNameFromAlign:x,fresh:fe,alignPoint:U,onPopupClick:ae,onPopupAlign:G,arrow:me,popupMotion:J,maskMotion:ee,...Q}=t,re=W||!1,[X,_]=s.useState(!1);pe(()=>{_(er())},[]);const I=s.useRef({}),$=s.useContext(Ln),te=s.useMemo(()=>({registerSubPopup:(u,Y)=>{I.current[u]=Y,$==null||$.registerSubPopup(u,Y)}}),[$]),q=eo(),[k,Se]=s.useState(null),l=s.useRef(null),Ne=Ee(u=>{l.current=u,at(u)&&k!==u&&Se(u),$==null||$.registerSubPopup(q,u)}),[Z,ke]=s.useState(null),xe=s.useRef(null),Ae=Ee(u=>{at(u)&&Z!==u&&(ke(u),xe.current=u)}),He=s.Children.only(i),se=(He==null?void 0:He.props)||{},ie={},ye=Ee(u=>{var oe,$e;const Y=Z;return(Y==null?void 0:Y.contains(u))||((oe=on(Y))==null?void 0:oe.host)===u||u===Y||(k==null?void 0:k.contains(u))||(($e=on(k))==null?void 0:$e.host)===u||u===k||Object.values(I.current).some(Ce=>(Ce==null?void 0:Ce.contains(u))||u===Ce)}),[Lt,pt]=s.useState(d||!1),ce=h??Lt,It=Ee(u=>{h===void 0&&pt(u)});pe(()=>{pt(h||!1)},[h]);const le=s.useRef(ce);le.current=ce;const ne=s.useRef([]);ne.current=[];const tt=Ee(u=>{It(u),(ne.current[ne.current.length-1]??ce)!==u&&(ne.current.push(u),m==null||m(u),R==null||R(u))}),nt=s.useRef(null),Pe=()=>{clearTimeout(nt.current)},N=(u,Y=0)=>{Pe(),Y===0?tt(u):nt.current=setTimeout(()=>{tt(u)},Y*1e3)};s.useEffect(()=>Pe,[]);const[j,de]=s.useState(!1);pe(u=>{(!u||ce)&&de(!0)},[ce]);const[he,Ve]=s.useState(null),[ze,mt]=s.useState(null),We=u=>{mt([u.clientX,u.clientY])},[ht,$t,Dt,kt,gt,yt,bt,Ye,Xe,ve,Oe]=Er(ce,k,U&&ze!==null?ze:Z,M,B,z,G),[Fe,Le]=gr(X,f,a,p),ot=Fe.has("click"),je=Le.has("click")||Le.has("contextMenu"),Te=Ee(()=>{j||Oe()});wr(ce,Z,k,Te,()=>{le.current&&U&&je&&N(!1)}),pe(()=>{Te()},[ze,M]),pe(()=>{ce&&!(B!=null&&B[M])&&Te()},[JSON.stringify(z)]);const Be=s.useMemo(()=>{const u=vr(B,r,ve,U);return Re(u,x==null?void 0:x(ve))},[ve,x,B,r,U]);s.useImperativeHandle(o,()=>({nativeElement:xe.current,popupElement:l.current,forceAlign:Te}));const[rt,Vt]=s.useState(0),[st,Wt]=s.useState(0),it=()=>{if(T&&Z){const u=Z.getBoundingClientRect();Vt(u.width),Wt(u.height)}},Yt=()=>{it(),Te()},vt=u=>{de(!1),Oe(),b==null||b(u),E==null||E(u)},Ft=()=>new Promise(u=>{it(),Ve(()=>u)});pe(()=>{he&&(Oe(),he(),Ve(null))},[he]);function Ie(u,Y,oe,$e){ie[u]=(Ce,...zt)=>{var Rt;$e==null||$e(Ce),N(Y,oe),(Rt=se[u])==null||Rt.call(se,Ce,...zt)}}(ot||je)&&(ie.onClick=(u,...Y)=>{var oe;le.current&&je?N(!1):!le.current&&ot&&(We(u),N(!0)),(oe=se.onClick)==null||oe.call(se,u,...Y)});const jt=Rr(ce,je,Z,k,w,L,ye,N),gn=Fe.has("hover"),Bt=Le.has("hover");let ct,Et;gn&&(Ie("onMouseEnter",!0,g,u=>{We(u)}),Ie("onPointerEnter",!0,g,u=>{We(u)}),ct=u=>{(ce||j)&&(k!=null&&k.contains(u.target))&&N(!0,g)},U&&(ie.onMouseMove=u=>{var Y;(Y=se.onMouseMove)==null||Y.call(se,u)})),Bt&&(Ie("onMouseLeave",!1,c),Ie("onPointerLeave",!1,c),Et=()=>{N(!1,c)}),Fe.has("focus")&&Ie("onFocus",!0,P),Le.has("focus")&&Ie("onBlur",!1,y),Fe.has("contextMenu")&&(ie.onContextMenu=(u,...Y)=>{var oe;le.current&&Le.has("contextMenu")?N(!1):(We(u),N(!0)),u.preventDefault(),(oe=se.onContextMenu)==null||oe.call(se,u,...Y)});const ut=s.useRef(!1);ut.current||(ut.current=V||ce||j);const Ue={...se,...ie},Qe={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(u=>{Q[u]&&(Qe[u]=(...Y)=>{var oe;(oe=Ue[u])==null||oe.call(Ue,...Y),Q[u](...Y)})});const Ht={x:yt,y:bt},v=me?{...me!==!0?me:{}}:null,ue=s.cloneElement(He,{...Ue,...Qe});return s.createElement(s.Fragment,null,s.createElement(At,{disabled:!ce,ref:Ae,onResize:Yt},ue),ut.current&&s.createElement(Ln.Provider,{value:te},s.createElement(ho,{portal:e,ref:Ne,prefixCls:r,popup:C,className:Re(H,Be),style:D,target:Z,onMouseEnter:ct,onMouseLeave:Et,onPointerEnter:ct,zIndex:F,open:ce,keepDom:j,fresh:fe,onClick:ae,onPointerDownCapture:jt,mask:w,motion:J,maskMotion:ee,onVisibleChanged:vt,onPrepare:Ft,forceRender:V,autoDestroy:re,getPopupContainer:S,align:ve,arrow:v,arrowPos:Ht,ready:ht,offsetX:$t,offsetY:Dt,offsetR:kt,offsetB:gt,onAlign:Te,stretch:T,targetWidth:rt/Ye,targetHeight:st/Xe})))});return process.env.NODE_ENV!=="production"&&(n.displayName="Trigger"),n}const xr=Sr(mn),Ge={shiftX:64,adjustY:1},Ke={adjustX:1,shiftY:!0},ge=[0,0],Pr={left:{points:["cr","cl"],overflow:Ke,offset:[-4,0],targetOffset:ge},right:{points:["cl","cr"],overflow:Ke,offset:[4,0],targetOffset:ge},top:{points:["bc","tc"],overflow:Ge,offset:[0,-4],targetOffset:ge},bottom:{points:["tc","bc"],overflow:Ge,offset:[0,4],targetOffset:ge},topLeft:{points:["bl","tl"],overflow:Ge,offset:[0,-4],targetOffset:ge},leftTop:{points:["tr","tl"],overflow:Ke,offset:[-4,0],targetOffset:ge},topRight:{points:["br","tr"],overflow:Ge,offset:[0,-4],targetOffset:ge},rightTop:{points:["tl","tr"],overflow:Ke,offset:[4,0],targetOffset:ge},bottomRight:{points:["tr","br"],overflow:Ge,offset:[0,4],targetOffset:ge},rightBottom:{points:["bl","br"],overflow:Ke,offset:[4,0],targetOffset:ge},bottomLeft:{points:["tl","bl"],overflow:Ge,offset:[0,4],targetOffset:ge},leftBottom:{points:["br","bl"],overflow:Ke,offset:[-4,0],targetOffset:ge}};function fn(){return fn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},fn.apply(this,arguments)}const Tr=s.forwardRef((e,n)=>{const{overlayClassName:t,trigger:o=["hover"],mouseEnterDelay:r=0,mouseLeaveDelay:i=.1,overlayStyle:f,prefixCls:a="rc-tooltip",children:p,onVisibleChange:h,afterVisibleChange:d,motion:m,placement:b="right",align:R={},destroyOnHidden:E=!1,defaultVisible:g,getTooltipContainer:c,overlayInnerStyle:P,arrowContent:y,overlay:w,id:L,showArrow:S=!0,classNames:V,styles:W,...C}=e,H=eo(L),D=K.useRef(null);K.useImperativeHandle(n,()=>D.current);const M={...C};"visible"in e&&(M.popupVisible=e.visible);const B=()=>s.createElement(wo,{key:"content",prefixCls:a,id:H,bodyClassName:V==null?void 0:V.body,overlayInnerStyle:{...P,...W==null?void 0:W.body}},w),z=()=>{const F=s.Children.only(p),x={...(F==null?void 0:F.props)||{},"aria-describedby":w?H:null};return s.cloneElement(p,x)};return s.createElement(xr,fn({popupClassName:Re(t,V==null?void 0:V.root),prefixCls:a,popup:B,action:o,builtinPlacements:Pr,popupPlacement:b,ref:D,popupAlign:R,getPopupContainer:c,onOpenChange:h,afterOpenChange:d,popupMotion:m,defaultPopupVisible:g,autoDestroy:E,mouseLeaveDelay:i,popupStyle:{...f,...W==null?void 0:W.root},mouseEnterDelay:r,arrow:S},M),z())}),Cr="DEPRECATED_Tooltip-module__breakLongWord___kWwu0",Mr="DEPRECATED_Tooltip-module__rcToolTipZoomIn___0ddOq",_r="DEPRECATED_Tooltip-module__rcToolTipZoomOut___kpbOG",Qt={breakLongWord:Cr,rcToolTipZoomIn:Mr,rcToolTipZoomOut:_r},Nr=e=>{const{breakingLongWord:n,hideArrow:t=!1,overlayClassName:o,overlay:r,imgOverlay:i=!1,semanticText:f,...a}=e,p=Re(o,"slf-default",vo.styleguideConstants.SISENSE_NAMESPACE,{"hide-arrow":t,[Qt.breakLongWord]:n,[Qt.semanticText]:f,[Qt.semanticText]:f}),h=()=>typeof r=="string"?i?Xt.jsx("img",{src:r}):Xt.jsx("div",{dangerouslySetInnerHTML:{__html:r}}):r;return Xt.jsx(Tr,{destroyOnHidden:!0,overlay:h(),...a,overlayClassName:p})};exports.DEPRECATED_Tooltip=Nr;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),S=require("classnames"),C=require("react"),M=require("./styleguideConstants-CtXkvIZK.cjs"),j=require("./Menu-CgLII61r.cjs"),O=require("./Popover-DHy8NRMc.cjs"),V=require("./Input-_wNCDCdI.cjs"),x=require("./DEPRECATED_Icon-DC1Hc9iB.cjs"),F="Dropdown-module__menu___u8qzp",$={menu:F},z="#2c3342",L="#f4f4f8",U="#dee1e7",G="#fff",J="DropdownButton-module__dropdownButton___oc3-H",K="DropdownButton-module__inlineVariant___WSkxA",Q="DropdownButton-module__open___bh-yG",X="DropdownButton-module__disabled___I9nuu",Y="DropdownButton-module__selectedIcon___hIp5j",Z="DropdownButton-module__chosenTitle___AgQJR",I="DropdownButton-module__clickIcon___U2low",p={loginDarkColor:z,darkBtnHoverColor:L,greyHoverColor:U,defaultBackgroundColor:G,dropdownButton:J,inlineVariant:K,open:Q,disabled:X,selectedIcon:Y,chosenTitle:Z,clickIcon:I},P=({selectedItem:s,width:o,dropDownButtonClasses:n,selectedShowIcon:e=!0,placeholder:a=""})=>{const{caption:l,iconName:r}=s||{},u=o?{width:o,minWidth:"inherit"}:{};return t.jsxs("div",{className:n,title:l,style:u,children:[e&&r&&t.jsx(x.DEPRECATED_Icon,{className:p.selectedIcon,name:r}),t.jsx("div",{className:p.chosenTitle,children:l||a}),t.jsx("div",{className:p.clickIcon,children:t.jsx(x.DEPRECATED_Icon,{name:"general-arrow-down"})})]})},nn=136,on="DropdownButtonSearch-module__searchInputWrapper___zKFuM",en={searchInputWrapper:on},y=()=>{},tn=C.forwardRef(({width:s=nn,onClick:o=y,inputProps:n={onChange:y},className:e=""},a)=>{const l=S(e||en.searchInputWrapper),r={width:s};return t.jsx("div",{ref:a,style:r,className:l,"data-testid":"search_input_container",children:t.jsx(V.Input,{onClicked:o,...n})})}),ln=(s,o,n,e)=>{const[a,l]=C.useState({...n,value:o==null?void 0:o.caption}),r=c=>{c.stopPropagation()},u=c=>{n==null||n.onChange(c),l({...n,value:c})},d=C.useCallback(()=>{var _;const c=(_=e==null?void 0:e.current)==null?void 0:_.getElementsByTagName("input")[0];c==null||c.select()},[e]);return C.useEffect(()=>{s?(l({...n,value:o==null?void 0:o.caption}),d()):n==null||n.onChange("")},[s,n,o==null?void 0:o.caption,d]),C.useEffect(()=>{s&&a.value!==(n==null?void 0:n.value)&&d()},[a.value,s,n==null?void 0:n.value,d]),{handlers:{handleOnSearchInputClick:r,handleOnSearchInputChange:u},inputProps:a}},sn=({items:s=[],selectedShowIcon:o=!0,placeholder:n="",disabled:e,selectedItemId:a,width:l,inlineVariant:r,classNameDropdown:u,classNameButton:d,classNameSearch:D,searchInputProps:c,isOpen:_=!1})=>{const w=s.find(m=>m.id===a),f=C.useRef(null),{inputProps:g,handlers:{handleOnSearchInputClick:h,handleOnSearchInputChange:v}}=ln(_,w,c,f),B=S(d,p.dropdownButton,{[p.disabled]:e,[p.open]:_,[p.inlineVariant]:r},u);return t.jsx(t.Fragment,{children:c&&_&&!e?t.jsx(tn,{ref:f,width:l,onClick:h,inputProps:{...g,onChange:v},className:D}):t.jsx(P,{selectedItem:w,width:l,placeholder:n,selectedShowIcon:o,dropDownButtonClasses:B})})},cn=(s,o,n)=>{const[e,a]=C.useState(o),l=()=>{n||a(!e)};return{handlers:{handleOnSelectItem:d=>{s(d),l()},handleDropdownClick:l},isOpen:e}},an=()=>{},rn=C.forwardRef(({bubblePopoverMouseEvents:s=!1,items:o=[],onSelectItem:n=an,popoverOverlayLevel:e=0,selectedShowIcon:a=!0,mask:l=!0,placeholder:r="",placement:u="bottomLeft",disabled:d=!1,selectedItemId:D,width:c,scrollbarProps:_,classNameMenu:w,inlineVariant:f,classNameDropdown:g,classNameButton:h,classNameSearch:v,classNameTooltip:B,zIndex:m,searchInputProps:N,open:b=!1,isLoading:T=!1},R)=>{const q=f?12:0,A=o.map(i=>({id:i.id,caption:i.caption||i.id,type:j.itemTypes.ITEM,iconName:i.iconName,iconClass:i.iconClass,selected:i.id===D,tooltip:i.tooltip,disabled:i.disabled})),{isOpen:k,handlers:{handleOnSelectItem:H,handleDropdownClick:E}}=cn(n,b,d),W=()=>{const i=S($.menu,M.styleguideConstants.SISENSE_NAMESPACE,w);return t.jsx(j.Menu,{items:A,onItemSelected:H,className:i,width:c,scrollbarProps:_,isLoading:T,classNameTooltip:B})};return t.jsx("div",{ref:R,"data-testid":"popover_container",children:t.jsx(O.Popover,{zIndex:m,bubbleMouseEvents:s,trigger:["click"],visible:k,placement:u,overlay:W,level:e,onVisibleChange:E,onRequestClose:E,align:{offset:[0,q]},mask:l,children:t.jsx("div",{children:t.jsx(sn,{isOpen:k,items:o,selectedShowIcon:a,placeholder:r,width:c,disabled:d,classNameButton:h,classNameDropdown:g,classNameSearch:v,inlineVariant:f,searchInputProps:N,selectedItemId:D})})})})});exports.Dropdown=rn;
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { jsxs as x, jsx as c, Fragment as j } from "react/jsx-runtime";
|
|
2
|
+
import v from "classnames";
|
|
3
|
+
import { forwardRef as E, useState as T, useCallback as F, useEffect as y, useRef as $ } from "react";
|
|
4
|
+
import { s as q } from "./styleguideConstants-D4Yls16w.js";
|
|
5
|
+
import { i as z, a as L } from "./Menu-DeHgR0JO.js";
|
|
6
|
+
import { P as U } from "./Popover-BAehEo3a.js";
|
|
7
|
+
import { I as G } from "./Input-CNvYE0Er.js";
|
|
8
|
+
import { D as N } from "./DEPRECATED_Icon-Bgufd-9Q.js";
|
|
9
|
+
const J = "Dropdown-module__menu___u8qzp", K = {
|
|
10
|
+
menu: J
|
|
11
|
+
}, Q = "#2c3342", X = "#f4f4f8", Y = "#dee1e7", Z = "#fff", I = "DropdownButton-module__dropdownButton___oc3-H", P = "DropdownButton-module__inlineVariant___WSkxA", oo = "DropdownButton-module__open___bh-yG", no = "DropdownButton-module__disabled___I9nuu", to = "DropdownButton-module__selectedIcon___hIp5j", eo = "DropdownButton-module__chosenTitle___AgQJR", lo = "DropdownButton-module__clickIcon___U2low", p = {
|
|
12
|
+
loginDarkColor: Q,
|
|
13
|
+
darkBtnHoverColor: X,
|
|
14
|
+
greyHoverColor: Y,
|
|
15
|
+
defaultBackgroundColor: Z,
|
|
16
|
+
dropdownButton: I,
|
|
17
|
+
inlineVariant: P,
|
|
18
|
+
open: oo,
|
|
19
|
+
disabled: no,
|
|
20
|
+
selectedIcon: to,
|
|
21
|
+
chosenTitle: eo,
|
|
22
|
+
clickIcon: lo
|
|
23
|
+
}, ao = ({
|
|
24
|
+
selectedItem: l,
|
|
25
|
+
width: n,
|
|
26
|
+
dropDownButtonClasses: o,
|
|
27
|
+
selectedShowIcon: t = !0,
|
|
28
|
+
placeholder: s = ""
|
|
29
|
+
}) => {
|
|
30
|
+
const { caption: e, iconName: d } = l || {};
|
|
31
|
+
return /* @__PURE__ */ x("div", { className: o, title: e, style: n ? { width: n, minWidth: "inherit" } : {}, children: [
|
|
32
|
+
t && d && /* @__PURE__ */ c(N, { className: p.selectedIcon, name: d }),
|
|
33
|
+
/* @__PURE__ */ c("div", { className: p.chosenTitle, children: e || s }),
|
|
34
|
+
/* @__PURE__ */ c("div", { className: p.clickIcon, children: /* @__PURE__ */ c(N, { name: "general-arrow-down" }) })
|
|
35
|
+
] });
|
|
36
|
+
}, co = 136, so = "DropdownButtonSearch-module__searchInputWrapper___zKFuM", ro = {
|
|
37
|
+
searchInputWrapper: so
|
|
38
|
+
}, b = () => {
|
|
39
|
+
}, io = E(
|
|
40
|
+
({
|
|
41
|
+
width: l = co,
|
|
42
|
+
onClick: n = b,
|
|
43
|
+
inputProps: o = { onChange: b },
|
|
44
|
+
className: t = ""
|
|
45
|
+
}, s) => {
|
|
46
|
+
const e = v(t || ro.searchInputWrapper);
|
|
47
|
+
return /* @__PURE__ */ c(
|
|
48
|
+
"div",
|
|
49
|
+
{
|
|
50
|
+
ref: s,
|
|
51
|
+
style: { width: l },
|
|
52
|
+
className: e,
|
|
53
|
+
"data-testid": "search_input_container",
|
|
54
|
+
children: /* @__PURE__ */ c(G, { onClicked: n, ...o })
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
), uo = (l, n, o, t) => {
|
|
59
|
+
const [s, e] = T({
|
|
60
|
+
...o,
|
|
61
|
+
value: n == null ? void 0 : n.caption
|
|
62
|
+
}), d = (a) => {
|
|
63
|
+
a.stopPropagation();
|
|
64
|
+
}, _ = (a) => {
|
|
65
|
+
o == null || o.onChange(a), e({ ...o, value: a });
|
|
66
|
+
}, r = F(() => {
|
|
67
|
+
var u;
|
|
68
|
+
const a = (u = t == null ? void 0 : t.current) == null ? void 0 : u.getElementsByTagName("input")[0];
|
|
69
|
+
a == null || a.select();
|
|
70
|
+
}, [t]);
|
|
71
|
+
return y(() => {
|
|
72
|
+
l ? (e({ ...o, value: n == null ? void 0 : n.caption }), r()) : o == null || o.onChange("");
|
|
73
|
+
}, [l, o, n == null ? void 0 : n.caption, r]), y(() => {
|
|
74
|
+
l && s.value !== (o == null ? void 0 : o.value) && r();
|
|
75
|
+
}, [s.value, l, o == null ? void 0 : o.value, r]), { handlers: {
|
|
76
|
+
handleOnSearchInputClick: d,
|
|
77
|
+
handleOnSearchInputChange: _
|
|
78
|
+
}, inputProps: s };
|
|
79
|
+
}, _o = ({
|
|
80
|
+
items: l = [],
|
|
81
|
+
selectedShowIcon: n = !0,
|
|
82
|
+
placeholder: o = "",
|
|
83
|
+
disabled: t,
|
|
84
|
+
selectedItemId: s,
|
|
85
|
+
width: e,
|
|
86
|
+
inlineVariant: d,
|
|
87
|
+
classNameDropdown: _,
|
|
88
|
+
classNameButton: r,
|
|
89
|
+
classNameSearch: m,
|
|
90
|
+
searchInputProps: a,
|
|
91
|
+
isOpen: u = !1
|
|
92
|
+
}) => {
|
|
93
|
+
const f = l.find((B) => B.id === s), C = $(null), {
|
|
94
|
+
inputProps: D,
|
|
95
|
+
handlers: { handleOnSearchInputClick: w, handleOnSearchInputChange: h }
|
|
96
|
+
} = uo(u, f, a, C), g = v(
|
|
97
|
+
r,
|
|
98
|
+
p.dropdownButton,
|
|
99
|
+
{
|
|
100
|
+
[p.disabled]: t,
|
|
101
|
+
[p.open]: u,
|
|
102
|
+
[p.inlineVariant]: d
|
|
103
|
+
},
|
|
104
|
+
_
|
|
105
|
+
);
|
|
106
|
+
return /* @__PURE__ */ c(j, { children: a && u && !t ? /* @__PURE__ */ c(
|
|
107
|
+
io,
|
|
108
|
+
{
|
|
109
|
+
ref: C,
|
|
110
|
+
width: e,
|
|
111
|
+
onClick: w,
|
|
112
|
+
inputProps: { ...D, onChange: h },
|
|
113
|
+
className: m
|
|
114
|
+
}
|
|
115
|
+
) : /* @__PURE__ */ c(
|
|
116
|
+
ao,
|
|
117
|
+
{
|
|
118
|
+
selectedItem: f,
|
|
119
|
+
width: e,
|
|
120
|
+
placeholder: o,
|
|
121
|
+
selectedShowIcon: n,
|
|
122
|
+
dropDownButtonClasses: g
|
|
123
|
+
}
|
|
124
|
+
) });
|
|
125
|
+
}, po = (l, n, o) => {
|
|
126
|
+
const [t, s] = T(n), e = () => {
|
|
127
|
+
o || s(!t);
|
|
128
|
+
};
|
|
129
|
+
return { handlers: {
|
|
130
|
+
handleOnSelectItem: (r) => {
|
|
131
|
+
l(r), e();
|
|
132
|
+
},
|
|
133
|
+
handleDropdownClick: e
|
|
134
|
+
}, isOpen: t };
|
|
135
|
+
}, mo = () => {
|
|
136
|
+
}, So = E(
|
|
137
|
+
({
|
|
138
|
+
bubblePopoverMouseEvents: l = !1,
|
|
139
|
+
items: n = [],
|
|
140
|
+
onSelectItem: o = mo,
|
|
141
|
+
popoverOverlayLevel: t = 0,
|
|
142
|
+
selectedShowIcon: s = !0,
|
|
143
|
+
mask: e = !0,
|
|
144
|
+
placeholder: d = "",
|
|
145
|
+
placement: _ = "bottomLeft",
|
|
146
|
+
disabled: r = !1,
|
|
147
|
+
selectedItemId: m,
|
|
148
|
+
width: a,
|
|
149
|
+
scrollbarProps: u,
|
|
150
|
+
classNameMenu: f,
|
|
151
|
+
inlineVariant: C,
|
|
152
|
+
classNameDropdown: D,
|
|
153
|
+
classNameButton: w,
|
|
154
|
+
classNameSearch: h,
|
|
155
|
+
classNameTooltip: g,
|
|
156
|
+
zIndex: B,
|
|
157
|
+
searchInputProps: A,
|
|
158
|
+
open: H = !1,
|
|
159
|
+
isLoading: W = !1
|
|
160
|
+
}, O) => {
|
|
161
|
+
const R = C ? 12 : 0, V = n.map((i) => ({
|
|
162
|
+
id: i.id,
|
|
163
|
+
caption: i.caption || i.id,
|
|
164
|
+
type: z.ITEM,
|
|
165
|
+
iconName: i.iconName,
|
|
166
|
+
iconClass: i.iconClass,
|
|
167
|
+
selected: i.id === m,
|
|
168
|
+
tooltip: i.tooltip,
|
|
169
|
+
disabled: i.disabled
|
|
170
|
+
})), {
|
|
171
|
+
isOpen: k,
|
|
172
|
+
handlers: { handleOnSelectItem: M, handleDropdownClick: S }
|
|
173
|
+
} = po(o, H, r);
|
|
174
|
+
return /* @__PURE__ */ c("div", { ref: O, "data-testid": "popover_container", children: /* @__PURE__ */ c(
|
|
175
|
+
U,
|
|
176
|
+
{
|
|
177
|
+
zIndex: B,
|
|
178
|
+
bubbleMouseEvents: l,
|
|
179
|
+
trigger: ["click"],
|
|
180
|
+
visible: k,
|
|
181
|
+
placement: _,
|
|
182
|
+
overlay: () => {
|
|
183
|
+
const i = v(
|
|
184
|
+
K.menu,
|
|
185
|
+
// SLF.BACK,
|
|
186
|
+
// SLF.TEXT_PRIMARY,
|
|
187
|
+
q.SISENSE_NAMESPACE,
|
|
188
|
+
f
|
|
189
|
+
);
|
|
190
|
+
return /* @__PURE__ */ c(
|
|
191
|
+
L,
|
|
192
|
+
{
|
|
193
|
+
items: V,
|
|
194
|
+
onItemSelected: M,
|
|
195
|
+
className: i,
|
|
196
|
+
width: a,
|
|
197
|
+
scrollbarProps: u,
|
|
198
|
+
isLoading: W,
|
|
199
|
+
classNameTooltip: g
|
|
200
|
+
}
|
|
201
|
+
);
|
|
202
|
+
},
|
|
203
|
+
level: t,
|
|
204
|
+
onVisibleChange: S,
|
|
205
|
+
onRequestClose: S,
|
|
206
|
+
align: { offset: [0, R] },
|
|
207
|
+
mask: e,
|
|
208
|
+
children: /* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(
|
|
209
|
+
_o,
|
|
210
|
+
{
|
|
211
|
+
isOpen: k,
|
|
212
|
+
items: n,
|
|
213
|
+
selectedShowIcon: s,
|
|
214
|
+
placeholder: d,
|
|
215
|
+
width: a,
|
|
216
|
+
disabled: r,
|
|
217
|
+
classNameButton: w,
|
|
218
|
+
classNameDropdown: D,
|
|
219
|
+
classNameSearch: h,
|
|
220
|
+
inlineVariant: C,
|
|
221
|
+
searchInputProps: A,
|
|
222
|
+
selectedItemId: m
|
|
223
|
+
}
|
|
224
|
+
) })
|
|
225
|
+
}
|
|
226
|
+
) });
|
|
227
|
+
}
|
|
228
|
+
);
|
|
229
|
+
export {
|
|
230
|
+
So as D
|
|
231
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const l=require("react/jsx-runtime"),c=require("@mui/material/styles/ThemeProvider"),d=require("@mui/material/SvgIcon"),s=require("classnames"),x=require("react"),h=require("./emotion-cache-provider-BsnmG_09.cjs"),m=require("@mui/material/styles/createTheme"),j=require("./lib/themes/themes.cjs"),u=m({components:{MuiIcon:{styleOverrides:{root:{color:`${j.siColors.StPrimaryColors.primary}`,top:0}}},MuiSvgIcon:{}}}),v=e=>{const{name:r,sx:a}=e,o=s("app-icon__svg");return l.jsxs(d,{classes:{root:o},sx:a,inheritViewBox:!0,children:[l.jsx("use",{xlinkHref:`#${r}`}),l.jsx("symbol",{id:"general-arrow-big-down",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",d:"M7.589 10L7 10.777 11.99 15 17 10.777 16.413 10l-4.422 3.727z"})}),l.jsx("symbol",{id:"general-arrow-left",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",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"})}),l.jsx("symbol",{id:"general-arrow-long-right",viewBox:"0 0 29 8",children:l.jsx("path",{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",fill:"#3A4356"})}),l.jsx("symbol",{id:"general-arrow-right",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",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"})}),l.jsx("symbol",{id:"general-arrow-up",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",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"})}),l.jsx("symbol",{id:"general-arrow-up-down",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",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"})}),l.jsx("symbol",{id:"general-double-arrow-back",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",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"})}),l.jsx("symbol",{id:"general-double-arrow-front",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",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"})}),l.jsx("symbol",{id:"general-double-big-arrow-back",viewBox:"0 0 31 31",children:l.jsxs("g",{fill:"currentColor",children:[l.jsx("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"}),l.jsx("path",{d:"M10 11.5a.5.5 0 0 1 1 0v9a.5.5 0 0 1-1 0v-9z"})]})}),l.jsx("symbol",{id:"general-double-big-arrow-front",viewBox:"0 0 31 31",children:l.jsxs("g",{fill:"currentColor",children:[l.jsx("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"}),l.jsx("path",{d:"M21 20.5a.5.5 0 0 1-1 0v-9a.5.5 0 0 1 1 0v9z"})]})}),l.jsx("symbol",{id:"general-x",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",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"})}),l.jsx("symbol",{id:"header-doc",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",d:"M14 5.562V10h3.698L14 5.562zM18 11h-5V5H7a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-8zm1-1v9a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h7l5 6zm-7 5.84l3.174-2.719a.5.5 0 0 1 .65.76l-3.5 2.998a.5.5 0 0 1-.65 0l-3.5-2.998a.5.5 0 1 1 .65-.76L12 15.841z"})}),l.jsx("symbol",{id:"general-arrow-down",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",d:"M12 13.84l3.174-2.719a.5.5 0 0 1 .65.76l-3.5 2.998a.5.5 0 0 1-.65 0l-3.5-2.998a.5.5 0 1 1 .65-.76L12 13.841z"})}),l.jsx("symbol",{id:"general-plus",viewBox:"0 0 24 24",children:l.jsx("path",{fill:"currentColor",d:"M12 12V7.5a.5.5 0 1 0-1 0V12H6.5a.5.5 0 1 0 0 1H11v4.5a.5.5 0 1 0 1 0V13h4.5a.5.5 0 1 0 0-1H12z"})})]})},w=x.forwardRef((e,r)=>{const{dataTestId:a,name:o,className:i}=e,n=l.jsx(v,{...e}),t=s("app-icon",`app-icon--${o}`,i);return l.jsx(h.EmotionCacheProvider,{children:l.jsx(c,{theme:u,children:l.jsx("span",{"data-testid":a,...e,ref:r,className:t,children:n})})})});exports.Icon=w;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { jsx as l, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import s from "@mui/material/styles/ThemeProvider";
|
|
3
|
+
import m from "@mui/material/SvgIcon";
|
|
4
|
+
import n from "classnames";
|
|
5
|
+
import { forwardRef as h } from "react";
|
|
6
|
+
import { E as p } from "./emotion-cache-provider-CE1QZs6M.js";
|
|
7
|
+
import v from "@mui/material/styles/createTheme";
|
|
8
|
+
import { siColors as w } from "./lib/themes/themes.js";
|
|
9
|
+
const f = v({
|
|
10
|
+
components: {
|
|
11
|
+
MuiIcon: {
|
|
12
|
+
styleOverrides: {
|
|
13
|
+
root: {
|
|
14
|
+
color: `${w.StPrimaryColors.primary}`,
|
|
15
|
+
top: 0
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
MuiSvgIcon: {
|
|
20
|
+
// styleOverrides: {
|
|
21
|
+
// root: {
|
|
22
|
+
// fill: utils.makeASlightlyDifferentColor(
|
|
23
|
+
// themeService.getDesignSettings().typography.primaryTextColor,
|
|
24
|
+
// 0.9,
|
|
25
|
+
// ),
|
|
26
|
+
// },
|
|
27
|
+
// },
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}), u = (r) => {
|
|
31
|
+
const { name: a, sx: o } = r, e = n("app-icon__svg");
|
|
32
|
+
return /* @__PURE__ */ i(m, { classes: { root: e }, sx: o, inheritViewBox: !0, children: [
|
|
33
|
+
/* @__PURE__ */ l("use", { xlinkHref: `#${a}` }),
|
|
34
|
+
/* @__PURE__ */ l("symbol", { id: "general-arrow-big-down", viewBox: "0 0 24 24", children: /* @__PURE__ */ l(
|
|
35
|
+
"path",
|
|
36
|
+
{
|
|
37
|
+
fill: "currentColor",
|
|
38
|
+
d: "M7.589 10L7 10.777 11.99 15 17 10.777 16.413 10l-4.422 3.727z"
|
|
39
|
+
}
|
|
40
|
+
) }),
|
|
41
|
+
/* @__PURE__ */ l("symbol", { id: "general-arrow-left", viewBox: "0 0 24 24", children: /* @__PURE__ */ l(
|
|
42
|
+
"path",
|
|
43
|
+
{
|
|
44
|
+
fill: "currentColor",
|
|
45
|
+
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"
|
|
46
|
+
}
|
|
47
|
+
) }),
|
|
48
|
+
/* @__PURE__ */ l("symbol", { id: "general-arrow-long-right", viewBox: "0 0 29 8", children: /* @__PURE__ */ l(
|
|
49
|
+
"path",
|
|
50
|
+
{
|
|
51
|
+
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",
|
|
52
|
+
fill: "#3A4356"
|
|
53
|
+
}
|
|
54
|
+
) }),
|
|
55
|
+
/* @__PURE__ */ l("symbol", { id: "general-arrow-right", viewBox: "0 0 24 24", children: /* @__PURE__ */ l(
|
|
56
|
+
"path",
|
|
57
|
+
{
|
|
58
|
+
fill: "currentColor",
|
|
59
|
+
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"
|
|
60
|
+
}
|
|
61
|
+
) }),
|
|
62
|
+
/* @__PURE__ */ l("symbol", { id: "general-arrow-up", viewBox: "0 0 24 24", children: /* @__PURE__ */ l(
|
|
63
|
+
"path",
|
|
64
|
+
{
|
|
65
|
+
fill: "currentColor",
|
|
66
|
+
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"
|
|
67
|
+
}
|
|
68
|
+
) }),
|
|
69
|
+
/* @__PURE__ */ l("symbol", { id: "general-arrow-up-down", viewBox: "0 0 24 24", children: /* @__PURE__ */ l(
|
|
70
|
+
"path",
|
|
71
|
+
{
|
|
72
|
+
fill: "currentColor",
|
|
73
|
+
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"
|
|
74
|
+
}
|
|
75
|
+
) }),
|
|
76
|
+
/* @__PURE__ */ l("symbol", { id: "general-double-arrow-back", viewBox: "0 0 24 24", children: /* @__PURE__ */ l(
|
|
77
|
+
"path",
|
|
78
|
+
{
|
|
79
|
+
fill: "currentColor",
|
|
80
|
+
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"
|
|
81
|
+
}
|
|
82
|
+
) }),
|
|
83
|
+
/* @__PURE__ */ l("symbol", { id: "general-double-arrow-front", viewBox: "0 0 24 24", children: /* @__PURE__ */ l(
|
|
84
|
+
"path",
|
|
85
|
+
{
|
|
86
|
+
fill: "currentColor",
|
|
87
|
+
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"
|
|
88
|
+
}
|
|
89
|
+
) }),
|
|
90
|
+
/* @__PURE__ */ l("symbol", { id: "general-double-big-arrow-back", viewBox: "0 0 31 31", children: /* @__PURE__ */ i("g", { fill: "currentColor", children: [
|
|
91
|
+
/* @__PURE__ */ l("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" }),
|
|
92
|
+
/* @__PURE__ */ l("path", { d: "M10 11.5a.5.5 0 0 1 1 0v9a.5.5 0 0 1-1 0v-9z" })
|
|
93
|
+
] }) }),
|
|
94
|
+
/* @__PURE__ */ l("symbol", { id: "general-double-big-arrow-front", viewBox: "0 0 31 31", children: /* @__PURE__ */ i("g", { fill: "currentColor", children: [
|
|
95
|
+
/* @__PURE__ */ l("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" }),
|
|
96
|
+
/* @__PURE__ */ l("path", { d: "M21 20.5a.5.5 0 0 1-1 0v-9a.5.5 0 0 1 1 0v9z" })
|
|
97
|
+
] }) }),
|
|
98
|
+
/* @__PURE__ */ l("symbol", { id: "general-x", viewBox: "0 0 24 24", children: /* @__PURE__ */ l(
|
|
99
|
+
"path",
|
|
100
|
+
{
|
|
101
|
+
fill: "currentColor",
|
|
102
|
+
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"
|
|
103
|
+
}
|
|
104
|
+
) }),
|
|
105
|
+
/* @__PURE__ */ l("symbol", { id: "header-doc", viewBox: "0 0 24 24", children: /* @__PURE__ */ l(
|
|
106
|
+
"path",
|
|
107
|
+
{
|
|
108
|
+
fill: "currentColor",
|
|
109
|
+
d: "M14 5.562V10h3.698L14 5.562zM18 11h-5V5H7a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-8zm1-1v9a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h7l5 6zm-7 5.84l3.174-2.719a.5.5 0 0 1 .65.76l-3.5 2.998a.5.5 0 0 1-.65 0l-3.5-2.998a.5.5 0 1 1 .65-.76L12 15.841z"
|
|
110
|
+
}
|
|
111
|
+
) }),
|
|
112
|
+
/* @__PURE__ */ l("symbol", { id: "general-arrow-down", viewBox: "0 0 24 24", children: /* @__PURE__ */ l(
|
|
113
|
+
"path",
|
|
114
|
+
{
|
|
115
|
+
fill: "currentColor",
|
|
116
|
+
d: "M12 13.84l3.174-2.719a.5.5 0 0 1 .65.76l-3.5 2.998a.5.5 0 0 1-.65 0l-3.5-2.998a.5.5 0 1 1 .65-.76L12 13.841z"
|
|
117
|
+
}
|
|
118
|
+
) }),
|
|
119
|
+
/* @__PURE__ */ l("symbol", { id: "general-plus", viewBox: "0 0 24 24", children: /* @__PURE__ */ l(
|
|
120
|
+
"path",
|
|
121
|
+
{
|
|
122
|
+
fill: "currentColor",
|
|
123
|
+
d: "M12 12V7.5a.5.5 0 1 0-1 0V12H6.5a.5.5 0 1 0 0 1H11v4.5a.5.5 0 1 0 1 0V13h4.5a.5.5 0 1 0 0-1H12z"
|
|
124
|
+
}
|
|
125
|
+
) })
|
|
126
|
+
] });
|
|
127
|
+
}, B = h((r, a) => {
|
|
128
|
+
const { dataTestId: o, name: e, className: t } = r, d = /* @__PURE__ */ l(u, { ...r }), c = n("app-icon", `app-icon--${e}`, t);
|
|
129
|
+
return /* @__PURE__ */ l(p, { children: /* @__PURE__ */ l(s, { theme: f, children: /* @__PURE__ */ l("span", { "data-testid": o, ...r, ref: a, className: c, children: d }) }) });
|
|
130
|
+
});
|
|
131
|
+
export {
|
|
132
|
+
B as I
|
|
133
|
+
};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { jsxs as E, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import n from "classnames";
|
|
3
|
+
import { useState as g, useRef as j, useEffect as R } from "react";
|
|
4
|
+
import { D as r } from "./DEPRECATED_Icon-Bgufd-9Q.js";
|
|
5
|
+
const K = "#2c3342", M = "#f4f4f8", S = "#dee1e7", T = "#fff", q = "Input-module__component___4OcHW", z = "Input-module__searchIcon___aQP42", A = "Input-module__large___BPwgK", F = "Input-module__clearIcon___ihSot", O = "Input-module__clearIconHidden___gPP7c", Q = "Input-module__passwordVisibilityIcon___mrN83", U = "Input-module__customIcon___5KikU", W = "Input-module__isLeft___uqdwf", G = "Input-module__input___js3cI", J = "Input-module__withLeftIcon___BgCVf", e = {
|
|
6
|
+
loginDarkColor: K,
|
|
7
|
+
darkBtnHoverColor: M,
|
|
8
|
+
greyHoverColor: S,
|
|
9
|
+
defaultBackgroundColor: T,
|
|
10
|
+
component: q,
|
|
11
|
+
searchIcon: z,
|
|
12
|
+
large: A,
|
|
13
|
+
clearIcon: F,
|
|
14
|
+
clearIconHidden: O,
|
|
15
|
+
passwordVisibilityIcon: Q,
|
|
16
|
+
customIcon: U,
|
|
17
|
+
isLeft: W,
|
|
18
|
+
input: G,
|
|
19
|
+
withLeftIcon: J
|
|
20
|
+
}, ee = (h) => {
|
|
21
|
+
const {
|
|
22
|
+
className: w,
|
|
23
|
+
inputClassName: C,
|
|
24
|
+
onChange: _,
|
|
25
|
+
onClicked: v,
|
|
26
|
+
onBlur: k = () => {
|
|
27
|
+
},
|
|
28
|
+
placeholder: N,
|
|
29
|
+
search: m,
|
|
30
|
+
dataTestId: b,
|
|
31
|
+
defaultValue: d,
|
|
32
|
+
value: s,
|
|
33
|
+
autoFocus: V,
|
|
34
|
+
clearable: p,
|
|
35
|
+
password: l,
|
|
36
|
+
disabled: D = !1,
|
|
37
|
+
size: a,
|
|
38
|
+
icon: c,
|
|
39
|
+
trimInput: H,
|
|
40
|
+
ariaLabel: L = "input"
|
|
41
|
+
} = h, [I, i] = g(d || s || ""), [u, y] = g(!1), B = j(null), { name: P = "", placement: f } = c || {};
|
|
42
|
+
return R(() => {
|
|
43
|
+
i(s || "");
|
|
44
|
+
}, [s]), /* @__PURE__ */ E("div", { className: n(e.component, w), children: [
|
|
45
|
+
m && /* @__PURE__ */ t(
|
|
46
|
+
r,
|
|
47
|
+
{
|
|
48
|
+
className: n(e.searchIcon, {
|
|
49
|
+
[e.large]: a === "large"
|
|
50
|
+
}),
|
|
51
|
+
name: "general-search-small"
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
/* @__PURE__ */ t(
|
|
55
|
+
"input",
|
|
56
|
+
{
|
|
57
|
+
className: n(e.input, C, {
|
|
58
|
+
[e.withLeftIcon]: m || c && f === "left",
|
|
59
|
+
[e.large]: a === "large"
|
|
60
|
+
}),
|
|
61
|
+
placeholder: N,
|
|
62
|
+
disabled: D,
|
|
63
|
+
onChange: (o) => {
|
|
64
|
+
const x = H ? o.target.value.trim() : o.target.value;
|
|
65
|
+
_(x), i(o.target.value);
|
|
66
|
+
},
|
|
67
|
+
onClick: v,
|
|
68
|
+
onBlur: k,
|
|
69
|
+
"data-testid": b,
|
|
70
|
+
defaultValue: d,
|
|
71
|
+
value: s ?? I,
|
|
72
|
+
autoFocus: V,
|
|
73
|
+
type: l && !u ? "password" : "text",
|
|
74
|
+
ref: B,
|
|
75
|
+
"aria-label": L
|
|
76
|
+
}
|
|
77
|
+
),
|
|
78
|
+
p && !l && !c && /* @__PURE__ */ t(
|
|
79
|
+
r,
|
|
80
|
+
{
|
|
81
|
+
className: n(e.clearIcon, {
|
|
82
|
+
[e.clearIconHidden]: I === "",
|
|
83
|
+
[e.large]: a === "large"
|
|
84
|
+
}),
|
|
85
|
+
name: "general-x",
|
|
86
|
+
onClick: () => {
|
|
87
|
+
i(""), _("");
|
|
88
|
+
},
|
|
89
|
+
onMouseDown: (o) => o.preventDefault()
|
|
90
|
+
}
|
|
91
|
+
),
|
|
92
|
+
l && /* @__PURE__ */ t(
|
|
93
|
+
r,
|
|
94
|
+
{
|
|
95
|
+
className: n(e.passwordVisibilityIcon, {
|
|
96
|
+
[e.large]: a === "large"
|
|
97
|
+
}),
|
|
98
|
+
name: u ? "general-unhide" : "general-show",
|
|
99
|
+
onClick: () => {
|
|
100
|
+
y(!u);
|
|
101
|
+
},
|
|
102
|
+
onMouseDown: (o) => o.preventDefault()
|
|
103
|
+
}
|
|
104
|
+
),
|
|
105
|
+
c && !p && !l && /* @__PURE__ */ t(
|
|
106
|
+
r,
|
|
107
|
+
{
|
|
108
|
+
className: n(e.customIcon, {
|
|
109
|
+
[e.large]: a === "large",
|
|
110
|
+
[e.isLeft]: f === "left"
|
|
111
|
+
}),
|
|
112
|
+
name: P
|
|
113
|
+
}
|
|
114
|
+
)
|
|
115
|
+
] });
|
|
116
|
+
};
|
|
117
|
+
export {
|
|
118
|
+
ee as I
|
|
119
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),t=require("classnames"),r=require("react"),u=require("./DEPRECATED_Icon-DC1Hc9iB.cjs"),j="#2c3342",y="#f4f4f8",B="#dee1e7",T="#fff",q="Input-module__component___4OcHW",A="Input-module__searchIcon___aQP42",S="Input-module__large___BPwgK",K="Input-module__clearIcon___ihSot",M="Input-module__clearIconHidden___gPP7c",z="Input-module__passwordVisibilityIcon___mrN83",F="Input-module__customIcon___5KikU",O="Input-module__isLeft___uqdwf",Q="Input-module__input___js3cI",U="Input-module__withLeftIcon___BgCVf",e={loginDarkColor:j,darkBtnHoverColor:y,greyHoverColor:B,defaultBackgroundColor:T,component:q,searchIcon:A,large:S,clearIcon:K,clearIconHidden:M,passwordVisibilityIcon:z,customIcon:F,isLeft:O,input:Q,withLeftIcon:U},W=C=>{const{className:h,inputClassName:w,onChange:I,onClicked:D,onBlur:E=()=>{},placeholder:v,search:d,dataTestId:k,defaultValue:m,value:a,autoFocus:N,clearable:p,password:c,disabled:P=!1,size:s,icon:l,trimInput:b,ariaLabel:V="input"}=C,[g,i]=r.useState(m||a||""),[_,x]=r.useState(!1),H=r.useRef(null),{name:L="",placement:f}=l||{};return r.useEffect(()=>{i(a||"")},[a]),o.jsxs("div",{className:t(e.component,h),children:[d&&o.jsx(u.DEPRECATED_Icon,{className:t(e.searchIcon,{[e.large]:s==="large"}),name:"general-search-small"}),o.jsx("input",{className:t(e.input,w,{[e.withLeftIcon]:d||l&&f==="left",[e.large]:s==="large"}),placeholder:v,disabled:P,onChange:n=>{const R=b?n.target.value.trim():n.target.value;I(R),i(n.target.value)},onClick:D,onBlur:E,"data-testid":k,defaultValue:m,value:a??g,autoFocus:N,type:c&&!_?"password":"text",ref:H,"aria-label":V}),p&&!c&&!l&&o.jsx(u.DEPRECATED_Icon,{className:t(e.clearIcon,{[e.clearIconHidden]:g==="",[e.large]:s==="large"}),name:"general-x",onClick:()=>{i(""),I("")},onMouseDown:n=>n.preventDefault()}),c&&o.jsx(u.DEPRECATED_Icon,{className:t(e.passwordVisibilityIcon,{[e.large]:s==="large"}),name:_?"general-unhide":"general-show",onClick:()=>{x(!_)},onMouseDown:n=>n.preventDefault()}),l&&!p&&!c&&o.jsx(u.DEPRECATED_Icon,{className:t(e.customIcon,{[e.large]:s==="large",[e.isLeft]:f==="left"}),name:L})]})};exports.Input=W;
|