@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,56 @@
|
|
|
1
|
+
import { f as F } from "./emotion-cache-provider-B6yKtm_a.js";
|
|
2
|
+
import * as E from "react";
|
|
3
|
+
function v(c, m) {
|
|
4
|
+
if (!c)
|
|
5
|
+
return m;
|
|
6
|
+
if (typeof c == "function" || typeof m == "function")
|
|
7
|
+
return (N) => {
|
|
8
|
+
const s = typeof m == "function" ? m(N) : m, i = typeof c == "function" ? c({
|
|
9
|
+
...N,
|
|
10
|
+
...s
|
|
11
|
+
}) : c, C = F(N == null ? void 0 : N.className, s == null ? void 0 : s.className, i == null ? void 0 : i.className);
|
|
12
|
+
return {
|
|
13
|
+
...s,
|
|
14
|
+
...i,
|
|
15
|
+
...!!C && {
|
|
16
|
+
className: C
|
|
17
|
+
},
|
|
18
|
+
...(s == null ? void 0 : s.style) && (i == null ? void 0 : i.style) && {
|
|
19
|
+
style: {
|
|
20
|
+
...s.style,
|
|
21
|
+
...i.style
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
...(s == null ? void 0 : s.sx) && (i == null ? void 0 : i.sx) && {
|
|
25
|
+
sx: [...Array.isArray(s.sx) ? s.sx : [s.sx], ...Array.isArray(i.sx) ? i.sx : [i.sx]]
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
const y = m, A = F(y == null ? void 0 : y.className, c == null ? void 0 : c.className);
|
|
30
|
+
return {
|
|
31
|
+
...m,
|
|
32
|
+
...c,
|
|
33
|
+
...!!A && {
|
|
34
|
+
className: A
|
|
35
|
+
},
|
|
36
|
+
...(y == null ? void 0 : y.style) && (c == null ? void 0 : c.style) && {
|
|
37
|
+
style: {
|
|
38
|
+
...y.style,
|
|
39
|
+
...c.style
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
...(y == null ? void 0 : y.sx) && (c == null ? void 0 : c.sx) && {
|
|
43
|
+
sx: [...Array.isArray(y.sx) ? y.sx : [y.sx], ...Array.isArray(c.sx) ? c.sx : [c.sx]]
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
const f = /* @__PURE__ */ E.createContext(void 0);
|
|
48
|
+
process.env.NODE_ENV !== "production" && (f.displayName = "FormControlContext");
|
|
49
|
+
function O() {
|
|
50
|
+
return E.useContext(f);
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
f as F,
|
|
54
|
+
v as m,
|
|
55
|
+
O as u
|
|
56
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as u from "react";
|
|
2
|
+
let n = 0;
|
|
3
|
+
function o(t) {
|
|
4
|
+
const [e, a] = u.useState(t), c = t || e;
|
|
5
|
+
return u.useEffect(() => {
|
|
6
|
+
e == null && (n += 1, a(`mui-${n}`));
|
|
7
|
+
}, [e]), c;
|
|
8
|
+
}
|
|
9
|
+
const f = {
|
|
10
|
+
...u
|
|
11
|
+
}, s = f.useId;
|
|
12
|
+
function l(t) {
|
|
13
|
+
if (s !== void 0) {
|
|
14
|
+
const e = s();
|
|
15
|
+
return t ?? e;
|
|
16
|
+
}
|
|
17
|
+
return o(t);
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
l as u
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("react");function r(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const c=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,c.get?c:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const u=r(o);let s=0;function f(e){const[t,n]=u.useState(e),c=e||t;return u.useEffect(()=>{t==null&&(s+=1,n(`mui-${s}`))},[t]),c}const l={...u},a=l.useId;function d(e){if(a!==void 0){const t=a();return e??t}return f(e)}exports.useId=d;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";const O=require("react"),g=require("./resolveComponentProps-BjHOskdg.cjs"),$=require("./TransitionGroupContext-CJJeIdck.cjs");function j(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const l=j(O);function y({controlled:e,default:t,name:o,state:r="value"}){const{current:n}=l.useRef(e!==void 0),[d,c]=l.useState(t),i=n?e:d;if(process.env.NODE_ENV!=="production"){l.useEffect(()=>{n!==(e!==void 0)&&console.error([`MUI: A component is changing the ${n?"":"un"}controlled ${r} state of ${o} to be ${n?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${o} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
2
|
+
`))},[r,o,e]);const{current:s}=l.useRef(t);l.useEffect(()=>{!n&&!Object.is(s,t)&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${o} after being initialized. To suppress this warning opt to use a controlled ${o}.`].join(`
|
|
3
|
+
`))},[JSON.stringify(t)])}const a=l.useCallback(s=>{n||c(s)},[]);return[i,a]}function T(e,t){const{className:o,elementType:r,ownerState:n,externalForwardedProps:d,internalForwardedProps:c,shouldForwardComponentProp:i=!1,...a}=t,{component:s,slots:p={[e]:void 0},slotProps:b={[e]:void 0},...S}=d,h=p[e]||r,u=g.resolveComponentProps(b[e],n),{props:{component:m,...w},internalRef:C}=g.mergeSlotProps({className:o,...a,externalForwardedProps:e==="root"?S:void 0,externalSlotProps:u}),P=$.useForkRef(C,u==null?void 0:u.ref,t.ref),f=e==="root"?m||s:m,v=g.appendOwnerState(h,{...e==="root"&&!s&&!p[e]&&c,...e!=="root"&&!p[e]&&c,...w,...f&&!i&&{as:f},...f&&i&&{component:f},ref:P},n);return[h,v]}exports.useControlled=y;exports.useSlot=T;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import * as s from "react";
|
|
2
|
+
import { r as P, m as b, a as E } from "./resolveComponentProps-L5VTqIs8.js";
|
|
3
|
+
import { u as F } from "./TransitionGroupContext-BNiEy2cD.js";
|
|
4
|
+
function x({
|
|
5
|
+
controlled: e,
|
|
6
|
+
default: t,
|
|
7
|
+
name: n,
|
|
8
|
+
state: l = "value"
|
|
9
|
+
}) {
|
|
10
|
+
const {
|
|
11
|
+
current: o
|
|
12
|
+
} = s.useRef(e !== void 0), [d, i] = s.useState(t), c = o ? e : d;
|
|
13
|
+
if (process.env.NODE_ENV !== "production") {
|
|
14
|
+
s.useEffect(() => {
|
|
15
|
+
o !== (e !== void 0) && console.error([`MUI: A component is changing the ${o ? "" : "un"}controlled ${l} state of ${n} to be ${o ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
|
|
16
|
+
`));
|
|
17
|
+
}, [l, n, e]);
|
|
18
|
+
const {
|
|
19
|
+
current: r
|
|
20
|
+
} = s.useRef(t);
|
|
21
|
+
s.useEffect(() => {
|
|
22
|
+
!o && !Object.is(r, t) && console.error([`MUI: A component is changing the default ${l} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
|
|
23
|
+
`));
|
|
24
|
+
}, [JSON.stringify(t)]);
|
|
25
|
+
}
|
|
26
|
+
const a = s.useCallback((r) => {
|
|
27
|
+
o || i(r);
|
|
28
|
+
}, []);
|
|
29
|
+
return [c, a];
|
|
30
|
+
}
|
|
31
|
+
function y(e, t) {
|
|
32
|
+
const {
|
|
33
|
+
className: n,
|
|
34
|
+
elementType: l,
|
|
35
|
+
ownerState: o,
|
|
36
|
+
externalForwardedProps: d,
|
|
37
|
+
internalForwardedProps: i,
|
|
38
|
+
shouldForwardComponentProp: c = !1,
|
|
39
|
+
...a
|
|
40
|
+
} = t, {
|
|
41
|
+
component: r,
|
|
42
|
+
slots: p = {
|
|
43
|
+
[e]: void 0
|
|
44
|
+
},
|
|
45
|
+
slotProps: g = {
|
|
46
|
+
[e]: void 0
|
|
47
|
+
},
|
|
48
|
+
...w
|
|
49
|
+
} = d, m = p[e] || l, u = P(g[e], o), {
|
|
50
|
+
props: {
|
|
51
|
+
component: h,
|
|
52
|
+
...S
|
|
53
|
+
},
|
|
54
|
+
internalRef: $
|
|
55
|
+
} = b({
|
|
56
|
+
className: n,
|
|
57
|
+
...a,
|
|
58
|
+
externalForwardedProps: e === "root" ? w : void 0,
|
|
59
|
+
externalSlotProps: u
|
|
60
|
+
}), v = F($, u == null ? void 0 : u.ref, t.ref), f = e === "root" ? h || r : h, C = E(m, {
|
|
61
|
+
...e === "root" && !r && !p[e] && i,
|
|
62
|
+
...e !== "root" && !p[e] && i,
|
|
63
|
+
...S,
|
|
64
|
+
...f && !c && {
|
|
65
|
+
as: f
|
|
66
|
+
},
|
|
67
|
+
...f && c && {
|
|
68
|
+
component: f
|
|
69
|
+
},
|
|
70
|
+
ref: v
|
|
71
|
+
}, o);
|
|
72
|
+
return [m, C];
|
|
73
|
+
}
|
|
74
|
+
export {
|
|
75
|
+
y as a,
|
|
76
|
+
x as u
|
|
77
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { r as m, m as P, a as S } from "./resolveComponentProps-L5VTqIs8.js";
|
|
2
|
+
import { u as c } from "./TransitionGroupContext-BNiEy2cD.js";
|
|
3
|
+
function x(e) {
|
|
4
|
+
var t;
|
|
5
|
+
const {
|
|
6
|
+
elementType: s,
|
|
7
|
+
externalSlotProps: p,
|
|
8
|
+
ownerState: r,
|
|
9
|
+
skipResolvingSlotProps: n = !1,
|
|
10
|
+
...a
|
|
11
|
+
} = e, o = n ? {} : m(p, r), {
|
|
12
|
+
props: l,
|
|
13
|
+
internalRef: f
|
|
14
|
+
} = P({
|
|
15
|
+
...a,
|
|
16
|
+
externalSlotProps: o
|
|
17
|
+
}), i = c(f, o == null ? void 0 : o.ref, (t = e.additionalProps) == null ? void 0 : t.ref);
|
|
18
|
+
return S(s, {
|
|
19
|
+
...l,
|
|
20
|
+
ref: i
|
|
21
|
+
}, r);
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
x as u
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("./resolveComponentProps-BjHOskdg.cjs"),a=require("./TransitionGroupContext-CJJeIdck.cjs");function S(r){var s;const{elementType:n,externalSlotProps:p,ownerState:t,skipResolvingSlotProps:l=!1,...i}=r,e=l?{}:o.resolveComponentProps(p,t),{props:c,internalRef:u}=o.mergeSlotProps({...i,externalSlotProps:e}),P=a.useForkRef(u,e==null?void 0:e.ref,(s=r.additionalProps)==null?void 0:s.ref);return o.appendOwnerState(n,{...c,ref:P},t)}exports.useSlotProps=S;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./emotion-cache-provider-
|
|
1
|
+
"use strict";const e=require("./emotion-cache-provider-XZE1SDsY.cjs"),s=e.createTheme();function r(t=s){return e.useTheme(t)}exports.useTheme=r;
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"url": "https://github.com/sisense/compose-sdk-monorepo",
|
|
7
7
|
"directory": "packages/sdk-shared-ui"
|
|
8
8
|
},
|
|
9
|
-
"version": "2.
|
|
9
|
+
"version": "2.3.0",
|
|
10
10
|
"type": "module",
|
|
11
11
|
"sideEffects": false,
|
|
12
12
|
"main": "./dist/index.js",
|
|
@@ -172,8 +172,12 @@
|
|
|
172
172
|
"type-check": "tsc --noEmit",
|
|
173
173
|
"lint": "eslint src/ --quiet",
|
|
174
174
|
"lint:fix": "run lint --fix",
|
|
175
|
-
"build": "run type-check && vite build --mode development",
|
|
176
|
-
"build:prod": "run type-check && vite build",
|
|
175
|
+
"build": "run type-check && vite build --mode development && run build:umd && run build:lightweight",
|
|
176
|
+
"build:prod": "run type-check && vite build && run build:umd:prod && run build:lightweight:prod",
|
|
177
|
+
"build:lightweight": "BUILD_VARIANT=lightweight vite build --mode development",
|
|
178
|
+
"build:lightweight:prod": "BUILD_VARIANT=lightweight vite build",
|
|
179
|
+
"build:umd": "tsx ./scripts/vite/vite.umd.build.ts --mode development",
|
|
180
|
+
"build:umd:prod": "tsx ./scripts/vite/vite.umd.build.ts --mode production",
|
|
177
181
|
"clean": "rm -rf dist coverage tsconfig.build.tsbuildinfo tsconfig.prod.tsbuildinfo",
|
|
178
182
|
"format": "prettier --write .",
|
|
179
183
|
"format:check": "prettier --check .",
|
|
@@ -190,19 +194,20 @@
|
|
|
190
194
|
"@storybook/react-vite": "^8.4.7",
|
|
191
195
|
"@testing-library/jest-dom": "^6.6.3",
|
|
192
196
|
"@testing-library/react": "^16.0.1",
|
|
193
|
-
"@types/react": "
|
|
197
|
+
"@types/react": "18.3.1",
|
|
194
198
|
"@types/react-custom-scrollbars": "^4.0.13",
|
|
195
|
-
"@types/react-dom": "
|
|
199
|
+
"@types/react-dom": "18.3.1",
|
|
196
200
|
"@vitejs/plugin-react": "^4.3.3",
|
|
197
201
|
"@vitest/coverage-v8": "^2.1.9",
|
|
198
202
|
"classnames": "^2.3.1",
|
|
199
203
|
"eslint": "^8.40.0",
|
|
200
204
|
"prettier": "3.3.3",
|
|
201
|
-
"react": "
|
|
202
|
-
"react-dom": "
|
|
205
|
+
"react": "18.3.1",
|
|
206
|
+
"react-dom": "18.3.1",
|
|
203
207
|
"rollup-plugin-copy": "^3.5.0",
|
|
204
208
|
"sass": "^1.83.0",
|
|
205
209
|
"storybook": "^8.4.7",
|
|
210
|
+
"tsx": "^4.19.4",
|
|
206
211
|
"typescript": "4.8.4",
|
|
207
212
|
"vite": "^5.4.11",
|
|
208
213
|
"vite-plugin-css-injected-by-js": "^3.5.1",
|
|
@@ -211,17 +216,32 @@
|
|
|
211
216
|
},
|
|
212
217
|
"peerDependencies": {
|
|
213
218
|
"classnames": "^2.3.1",
|
|
214
|
-
"react": "^17.0.0 || ^18.
|
|
215
|
-
"react-dom": "^17.0.0 || ^18.
|
|
219
|
+
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
220
|
+
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
221
|
+
},
|
|
222
|
+
"dependenciesMeta": {
|
|
223
|
+
"@emotion/cache": {
|
|
224
|
+
"unplugged": false
|
|
225
|
+
},
|
|
226
|
+
"@emotion/react": {
|
|
227
|
+
"unplugged": false
|
|
228
|
+
},
|
|
229
|
+
"@mui/material": {
|
|
230
|
+
"unplugged": false
|
|
231
|
+
},
|
|
232
|
+
"@mui/utils": {
|
|
233
|
+
"unplugged": false
|
|
234
|
+
}
|
|
216
235
|
},
|
|
217
236
|
"dependencies": {
|
|
218
|
-
"@emotion/cache": "
|
|
219
|
-
"@emotion/react": "
|
|
220
|
-
"@
|
|
221
|
-
"@mui/
|
|
237
|
+
"@emotion/cache": "11.11.0",
|
|
238
|
+
"@emotion/react": "11.11.4",
|
|
239
|
+
"@emotion/styled": "11.11.0",
|
|
240
|
+
"@mui/material": "^6.4.11",
|
|
241
|
+
"@mui/utils": "^6.4.9",
|
|
242
|
+
"@rc-component/tooltip": "^1.2.0",
|
|
222
243
|
"classnames": "^2.5.1",
|
|
223
244
|
"prop-types": "^15.8.1",
|
|
224
|
-
"rc-tooltip": "^6.3.2",
|
|
225
245
|
"react-custom-scrollbars": "^4.2.1",
|
|
226
246
|
"react-use": "^17.6.0"
|
|
227
247
|
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),j=require("react"),s=require("./emotion-cache-provider-C66nBUtN.cjs"),k=require("./Icon-KwS2TWVq.cjs"),w=require("./Typography-BDMqUlbg.cjs"),z=require("./deepmerge-BuAjuQR6.cjs"),P=require("./integerPropType-BGlNA6vX.cjs"),r=require("./index-B-zZeebW.cjs"),D=require("./createSvgIcon-KaV60kcg.cjs"),U=require("./ButtonBase-CISYuRKV.cjs"),_=require("./useSlotProps-DS82uuM_.cjs");function A(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return o.default=e,Object.freeze(o)}const u=A(j),V=D.createSvgIcon(t.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),F=s.styled(U.ButtonBase)(s.memoTheme(({theme:e})=>({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,...e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],...e.palette.mode==="light"?{backgroundColor:s.emphasize(e.palette.grey[200],.12)}:{backgroundColor:s.emphasize(e.palette.grey[600],.12)}}}))),H=s.styled(V)({width:24,height:16});function R(e){const{slots:o={},slotProps:n={},...a}=e,p=e;return t.jsx("li",{children:t.jsx(F,{focusRipple:!0,...a,ownerState:p,children:t.jsx(H,{as:o.CollapsedIcon,ownerState:p,...n.collapsedIcon})})})}process.env.NODE_ENV!=="production"&&(R.propTypes={slotProps:r.PropTypes.shape({collapsedIcon:r.PropTypes.oneOfType([r.PropTypes.func,r.PropTypes.object])}),slots:r.PropTypes.shape({CollapsedIcon:r.PropTypes.elementType}),sx:r.PropTypes.object});function L(e){return s.generateUtilityClass("MuiBreadcrumbs",e)}const W=s.generateUtilityClasses("MuiBreadcrumbs",["root","ol","li","separator"]),Y=e=>{const{classes:o}=e,n={root:["root"],li:["li"],ol:["ol"],separator:["separator"]};return s.composeClasses(n,L,o)},G=s.styled(w.Typography$1,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,o)=>[{[`& .${W.li}`]:o.li},o.root]})({}),J=s.styled("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,o)=>o.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),K=s.styled("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,o)=>o.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function Q(e,o,n,a){return e.reduce((p,i,l)=>(l<e.length-1?p=p.concat(i,t.jsx(K,{"aria-hidden":!0,className:o,ownerState:a,children:n},`separator-${l}`)):p.push(i),p),[])}const N=u.forwardRef(function(o,n){const a=s.useDefaultProps({props:o,name:"MuiBreadcrumbs"}),{children:p,className:i,component:l="nav",slots:m={},slotProps:y={},expandText:f="Show path",itemsAfterCollapse:g=1,itemsBeforeCollapse:b=1,maxItems:T=8,separator:v="/",...M}=a,[S,E]=u.useState(!1),d={...a,component:l,expanded:S,expandText:f,itemsAfterCollapse:g,itemsBeforeCollapse:b,maxItems:T,separator:v},h=Y(d),$=_.useSlotProps({elementType:m.CollapsedIcon,externalSlotProps:y.collapsedIcon,ownerState:d}),I=u.useRef(null),q=c=>{const B=()=>{E(!0);const O=I.current.querySelector("a[href],button,[tabindex]");O&&O.focus()};return b+g>=c.length?(process.env.NODE_ENV!=="production"&&console.error(["MUI: You have provided an invalid combination of props to the Breadcrumbs.",`itemsAfterCollapse={${g}} + itemsBeforeCollapse={${b}} >= maxItems={${T}}`].join(`
|
|
2
|
-
`)),c):[...c.slice(0,b),t.jsx(R,{"aria-label":f,slots:{CollapsedIcon:m.CollapsedIcon},slotProps:{collapsedIcon:$},onClick:B},"ellipsis"),...c.slice(c.length-g,c.length)]},x=u.Children.toArray(p).filter(c=>(process.env.NODE_ENV!=="production"&&P.reactIsExports.isFragment(c)&&console.error(["MUI: The Breadcrumbs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
3
|
-
`)),u.isValidElement(c))).map((c,B)=>t.jsx("li",{className:h.li,children:c},`child-${B}`));return t.jsx(G,{ref:n,component:l,color:"textSecondary",className:s.clsx(h.root,i),ownerState:d,...M,children:t.jsx(J,{className:h.ol,ref:I,ownerState:d,children:Q(S||T&&x.length<=T?x:q(x),h.separator,v,d)})})});process.env.NODE_ENV!=="production"&&(N.propTypes={children:r.PropTypes.node,classes:r.PropTypes.object,className:r.PropTypes.string,component:r.PropTypes.elementType,expandText:r.PropTypes.string,itemsAfterCollapse:P.integerPropType,itemsBeforeCollapse:P.integerPropType,maxItems:P.integerPropType,separator:r.PropTypes.node,slotProps:r.PropTypes.shape({collapsedIcon:r.PropTypes.oneOfType([r.PropTypes.func,r.PropTypes.object])}),slots:r.PropTypes.shape({CollapsedIcon:r.PropTypes.elementType}),sx:r.PropTypes.oneOfType([r.PropTypes.arrayOf(r.PropTypes.oneOfType([r.PropTypes.func,r.PropTypes.object,r.PropTypes.bool])),r.PropTypes.func,r.PropTypes.object])});const C=s.createTheme$1({components:{MuiBreadcrumbs:{styleOverrides:{separator:{height:"24px"}}}}}),X=j.memo(()=>t.jsx(k.Icon,{name:"general-double-arrow-front"})),Z=j.forwardRef(({theme:e,breadcrumbItems:o,separator:n=t.jsx(X,{}),...a},p)=>{const i=e?z.deepmerge(C,{components:{MuiBreadcrumbs:e}}):C;return t.jsx(s.EmotionCacheProvider,{children:t.jsx(s.ThemeProvider,{theme:i,children:t.jsx(N,{"aria-label":"breadcrumb",ref:p,...a,separator:n,children:o.map(({label:l,isActive:m,onClick:y},f)=>t.jsx(w.Typography,{variant:m?"laccent":"bodyUI",onClick:y,sx:y?{cursor:"pointer"}:{},children:l},`${l}-${f}`))})})})});exports.Breadcrumbs=Z;exports.breadcrumbsTheme=C;
|
package/dist/Button-RoXZvXZf.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const v=require("react/jsx-runtime"),B=require("react"),a=require("./emotion-cache-provider-C66nBUtN.cjs"),V=require("./deepmerge-BuAjuQR6.cjs"),s=require("./lib/themes/themes.cjs"),e=require("./index-B-zZeebW.cjs"),L=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs"),D=require("./ButtonBase-CISYuRKV.cjs");function q(o){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const t in o)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>o[t]})}}return r.default=o,Object.freeze(r)}const g=q(B);function h(o,r){const t={...r};for(const n in o)if(Object.prototype.hasOwnProperty.call(o,n)){const i=n;if(i==="components"||i==="slots")t[i]={...o[i],...t[i]};else if(i==="componentsProps"||i==="slotProps"){const l=o[i],p=r[i];if(!p)t[i]=l||{};else if(!l)t[i]=p;else{t[i]={...p};for(const d in l)if(Object.prototype.hasOwnProperty.call(l,d)){const c=d;t[i][c]=h(l[c],p[c])}}}else t[i]===void 0&&(t[i]=o[i])}return t}function G(o){return a.generateUtilityClass("MuiButton",o)}const u=a.generateUtilityClasses("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),m=g.createContext({});process.env.NODE_ENV!=="production"&&(m.displayName="ButtonGroupContext");const w=g.createContext(void 0);process.env.NODE_ENV!=="production"&&(w.displayName="ButtonGroupButtonContext");const U=o=>{const{color:r,disableElevation:t,fullWidth:n,size:i,variant:l,classes:p}=o,d={root:["root",l,`${l}${a.capitalize(r)}`,`size${a.capitalize(i)}`,`${l}Size${a.capitalize(i)}`,`color${a.capitalize(r)}`,t&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${a.capitalize(i)}`],endIcon:["icon","endIcon",`iconSize${a.capitalize(i)}`]},c=a.composeClasses(d,G,p);return{...p,...c}},$=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],A=a.styled(D.ButtonBase,{shouldForwardProp:o=>a.rootShouldForwardProp(o)||o==="classes",name:"MuiButton",slot:"Root",overridesResolver:(o,r)=>{const{ownerState:t}=o;return[r.root,r[t.variant],r[`${t.variant}${a.capitalize(t.color)}`],r[`size${a.capitalize(t.size)}`],r[`${t.variant}Size${a.capitalize(t.size)}`],t.color==="inherit"&&r.colorInherit,t.disableElevation&&r.disableElevation,t.fullWidth&&r.fullWidth]}})(a.memoTheme(({theme:o})=>{const r=o.palette.mode==="light"?o.palette.grey[300]:o.palette.grey[800],t=o.palette.mode==="light"?o.palette.grey.A100:o.palette.grey[700];return{...o.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(o.vars||o).shape.borderRadius,transition:o.transitions.create(["background-color","box-shadow","border-color","color"],{duration:o.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${u.disabled}`]:{color:(o.vars||o).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(o.vars||o).shadows[2],"&:hover":{boxShadow:(o.vars||o).shadows[4],"@media (hover: none)":{boxShadow:(o.vars||o).shadows[2]}},"&:active":{boxShadow:(o.vars||o).shadows[8]},[`&.${u.focusVisible}`]:{boxShadow:(o.vars||o).shadows[6]},[`&.${u.disabled}`]:{color:(o.vars||o).palette.action.disabled,boxShadow:(o.vars||o).shadows[0],backgroundColor:(o.vars||o).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${u.disabled}`]:{border:`1px solid ${(o.vars||o).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(o.palette).filter(L.createSimplePaletteValueFilter()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(o.vars||o).palette[n].main,"--variant-outlinedColor":(o.vars||o).palette[n].main,"--variant-outlinedBorder":o.vars?`rgba(${o.vars.palette[n].mainChannel} / 0.5)`:a.alpha(o.palette[n].main,.5),"--variant-containedColor":(o.vars||o).palette[n].contrastText,"--variant-containedBg":(o.vars||o).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(o.vars||o).palette[n].dark,"--variant-textBg":o.vars?`rgba(${o.vars.palette[n].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:a.alpha(o.palette[n].main,o.palette.action.hoverOpacity),"--variant-outlinedBorder":(o.vars||o).palette[n].main,"--variant-outlinedBg":o.vars?`rgba(${o.vars.palette[n].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:a.alpha(o.palette[n].main,o.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":o.vars?o.vars.palette.Button.inheritContainedBg:r,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":o.vars?o.vars.palette.Button.inheritContainedHoverBg:t,"--variant-textBg":o.vars?`rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})`:a.alpha(o.palette.text.primary,o.palette.action.hoverOpacity),"--variant-outlinedBg":o.vars?`rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})`:a.alpha(o.palette.text.primary,o.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:o.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:o.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:o.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:o.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:o.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:o.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${u.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${u.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),F=a.styled("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(o,r)=>{const{ownerState:t}=o;return[r.startIcon,r[`iconSize${a.capitalize(t.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...$]}),K=a.styled("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(o,r)=>{const{ownerState:t}=o;return[r.endIcon,r[`iconSize${a.capitalize(t.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...$]}),I=g.forwardRef(function(r,t){const n=g.useContext(m),i=g.useContext(w),l=h(n,r),p=a.useDefaultProps({props:l,name:"MuiButton"}),{children:d,color:c="primary",component:C="button",className:k,disabled:f=!1,disableElevation:O=!1,disableFocusRipple:S=!1,endIcon:T,focusVisibleClassName:R,fullWidth:E=!1,size:N="medium",startIcon:z,type:P,variant:j="text",...M}=p,x={...p,color:c,component:C,disabled:f,disableElevation:O,disableFocusRipple:S,fullWidth:E,size:N,type:P,variant:j},y=U(x),_=z&&v.jsx(F,{className:y.startIcon,ownerState:x,children:z}),W=T&&v.jsx(K,{className:y.endIcon,ownerState:x,children:T}),H=i||"";return v.jsxs(A,{ownerState:x,className:a.clsx(n.className,y.root,k,H),component:C,disabled:f,focusRipple:!S,focusVisibleClassName:a.clsx(y.focusVisible,R),ref:t,type:P,...M,classes:y,children:[_,d,W]})});process.env.NODE_ENV!=="production"&&(I.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["inherit","primary","secondary","success","error","info","warning"]),e.PropTypes.string]),component:e.PropTypes.elementType,disabled:e.PropTypes.bool,disableElevation:e.PropTypes.bool,disableFocusRipple:e.PropTypes.bool,disableRipple:e.PropTypes.bool,endIcon:e.PropTypes.node,focusVisibleClassName:e.PropTypes.string,fullWidth:e.PropTypes.bool,href:e.PropTypes.string,size:e.PropTypes.oneOfType([e.PropTypes.oneOf(["small","medium","large"]),e.PropTypes.string]),startIcon:e.PropTypes.node,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),type:e.PropTypes.oneOfType([e.PropTypes.oneOf(["button","reset","submit"]),e.PropTypes.string]),variant:e.PropTypes.oneOfType([e.PropTypes.oneOf(["contained","outlined","text"]),e.PropTypes.string])});const b=a.createTheme$1({components:{MuiButton:{variants:[{props:{variant:"gray"},style:{backgroundColor:s.siColors.StUiColors.guiding,color:s.siColors.StInteractionColors.linkHovered,"&:hover":{backgroundColor:s.siColors.StInteractionColors.guidingHover},"&:disabled":{backgroundColor:s.siColors.StBackgroundColors.workspace}}},{props:{variant:"primary"},style:{"&:disabled":{backgroundColor:s.siColors.StPrimaryColors.primary}}},{props:{variant:"secondary"},style:{backgroundColor:s.siColors.StBackgroundColors.workspace,color:s.siColors.StInteractionColors.linkHovered,border:`1px solid ${s.sfColors.$SHUTTLE_GRAY_DARK}`,"&:hover":{backgroundColor:s.siColors.StBackgroundColors.workspace,border:`1px solid ${s.sfColors.$SHUTTLE_GRAY_DARK}`},"&:disabled":{backgroundColor:s.siColors.StBackgroundColors.workspace}}},{props:{variant:"text"},style:{color:s.siColors.StTextColors.link,"&:hover":{backgroundColor:s.siColors.StInteractionColors.guidingHover},"&:disabled":{backgroundColor:s.siColors.StBackgroundColors.workspace}}}],styleOverrides:{root:{borderRadius:"4px",height:"28px",lineHeight:"24px",minHeight:0,textTransform:"none",color:s.siColors.StTextColors.active,boxShadow:"none","&:hover":{backgroundColor:s.siColors.StInteractionColors.primaryHovered,boxShadow:"none"},"&:disabled":{color:s.sfColors.$SHUTTLE_GRAY_DARK,opacity:".3"}}}}}});b.shadows[1]="0px 0px 5px rgba(58, 67, 86, 0.2)";b.shadows[2]="0 1px 3px 1px rgba(58, 67, 86, 0.3)";const Y=B.forwardRef((o,r)=>{const{children:t,theme:n,...i}=o,l=n?V.deepmerge(b,{components:{MuiButton:n}}):b;return v.jsx(a.EmotionCacheProvider,{children:v.jsx(a.ThemeProvider,{theme:l,children:v.jsx(I,{...i,ref:r,children:t})})})});exports.Button=Y;exports.buttonsTheme=b;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";var xe=Object.defineProperty;var Ee=(n,e,t)=>e in n?xe(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var ne=(n,e,t)=>Ee(n,typeof e!="symbol"?e+"":e,t);const P=require("react"),o=require("./index-B-zZeebW.cjs"),h=require("./emotion-cache-provider-C66nBUtN.cjs"),F=require("react/jsx-runtime"),b=require("./useTimeout-DwkOFF8P.cjs"),Ce=require("./setPrototypeOf-BmHXYjK5.cjs"),Ve=require("./extends-q0Hkx4pQ.cjs"),De=require("./assertThisInitialized-BSnhOY1M.cjs");function ve(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const l=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,l.get?l:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const d=ve(P);function Ne(n){const{prototype:e={}}=n;return!!e.isReactComponent}function Se(n,e,t,l,s){const r=n[e],i=s||e;if(r==null||typeof window>"u")return null;let u;return typeof r=="function"&&!Ne(r)&&(u="Did you accidentally provide a plain function component instead?"),u!==void 0?new Error(`Invalid ${l} \`${i}\` supplied to \`${t}\`. Expected an element type that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const oe=b.chainPropTypes(o.PropTypes.elementType,Se);class G{constructor(){ne(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new G}static use(){const e=b.useLazyRef(G.create).current,[t,l]=d.useState(!1);return e.shouldMount=t,e.setShouldMount=l,d.useEffect(e.mountEffect,[t]),e}mount(){return this.mounted||(this.mounted=je(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...e){this.mount().then(()=>{var t;return(t=this.ref.current)==null?void 0:t.start(...e)})}stop(...e){this.mount().then(()=>{var t;return(t=this.ref.current)==null?void 0:t.stop(...e)})}pulsate(...e){this.mount().then(()=>{var t;return(t=this.ref.current)==null?void 0:t.pulsate(...e)})}}function we(){return G.use()}function je(){let n,e;const t=new Promise((l,s)=>{n=l,e=s});return t.resolve=n,t.reject=e,t}function Z(n,e){var t=function(r){return e&&P.isValidElement(r)?e(r):r},l=Object.create(null);return n&&P.Children.map(n,function(s){return s}).forEach(function(s){l[s.key]=t(s)}),l}function ke(n,e){n=n||{},e=e||{};function t(m){return m in e?e[m]:n[m]}var l=Object.create(null),s=[];for(var r in n)r in e?s.length&&(l[r]=s,s=[]):s.push(r);var i,u={};for(var p in e){if(l[p])for(i=0;i<l[p].length;i++){var f=l[p][i];u[l[p][i]]=t(f)}u[p]=t(p)}for(i=0;i<s.length;i++)u[s[i]]=t(s[i]);return u}function $(n,e,t){return t[e]!=null?t[e]:n.props[e]}function Be(n,e){return Z(n.children,function(t){return P.cloneElement(t,{onExited:e.bind(null,t),in:!0,appear:$(t,"appear",n),enter:$(t,"enter",n),exit:$(t,"exit",n)})})}function Oe(n,e,t){var l=Z(n.children),s=ke(e,l);return Object.keys(s).forEach(function(r){var i=s[r];if(P.isValidElement(i)){var u=r in e,p=r in l,f=e[r],m=P.isValidElement(f)&&!f.props.in;p&&(!u||m)?s[r]=P.cloneElement(i,{onExited:t.bind(null,i),in:!0,exit:$(i,"exit",n),enter:$(i,"enter",n)}):!p&&u&&!m?s[r]=P.cloneElement(i,{in:!1}):p&&u&&P.isValidElement(f)&&(s[r]=P.cloneElement(i,{onExited:t.bind(null,i),in:f.props.in,exit:$(i,"exit",n),enter:$(i,"enter",n)}))}}),s}var Le=Object.values||function(n){return Object.keys(n).map(function(e){return n[e]})},$e={component:"div",childFactory:function(e){return e}},ee=function(n){b._inheritsLoose(e,n);function e(l,s){var r;r=n.call(this,l,s)||this;var i=r.handleExited.bind(De._assertThisInitialized(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}var t=e.prototype;return t.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},t.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(s,r){var i=r.children,u=r.handleExited,p=r.firstRender;return{children:p?Be(s,u):Oe(s,i,u),firstRender:!1}},t.handleExited=function(s,r){var i=Z(this.props.children);s.key in i||(s.props.onExited&&s.props.onExited(r),this.mounted&&this.setState(function(u){var p=Ve._extends({},u.children);return delete p[s.key],{children:p}}))},t.render=function(){var s=this.props,r=s.component,i=s.childFactory,u=Ce._objectWithoutPropertiesLoose(s,["component","childFactory"]),p=this.state.contextValue,f=Le(this.state.children).map(i);return delete u.appear,delete u.enter,delete u.exit,r===null?P.createElement(b.TransitionGroupContext.Provider,{value:p},f):P.createElement(b.TransitionGroupContext.Provider,{value:p},P.createElement(r,u,f))},e}(P.Component);ee.propTypes=process.env.NODE_ENV!=="production"?{component:o.PropTypes.any,children:o.PropTypes.node,appear:o.PropTypes.bool,enter:o.PropTypes.bool,exit:o.PropTypes.bool,childFactory:o.PropTypes.func}:{};ee.defaultProps=$e;function se(n){const{className:e,classes:t,pulsate:l=!1,rippleX:s,rippleY:r,rippleSize:i,in:u,onExited:p,timeout:f}=n,[m,y]=d.useState(!1),M=h.clsx(e,t.ripple,t.rippleVisible,l&&t.ripplePulsate),N={width:i,height:i,top:-(i/2)+r,left:-(i/2)+s},g=h.clsx(t.child,m&&t.childLeaving,l&&t.childPulsate);return!u&&!m&&y(!0),d.useEffect(()=>{if(!u&&p!=null){const k=setTimeout(p,f);return()=>{clearTimeout(k)}}},[p,u,f]),F.jsx("span",{className:M,style:N,children:F.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(se.propTypes={classes:o.PropTypes.object.isRequired,className:o.PropTypes.string,in:o.PropTypes.bool,onExited:o.PropTypes.func,pulsate:o.PropTypes.bool,rippleSize:o.PropTypes.number,rippleX:o.PropTypes.number,rippleY:o.PropTypes.number,timeout:o.PropTypes.number.isRequired});const R=h.generateUtilityClasses("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Q=550,Fe=80,Ie=h.keyframes`
|
|
2
|
-
0% {
|
|
3
|
-
transform: scale(0);
|
|
4
|
-
opacity: 0.1;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
100% {
|
|
8
|
-
transform: scale(1);
|
|
9
|
-
opacity: 0.3;
|
|
10
|
-
}
|
|
11
|
-
`,Ue=h.keyframes`
|
|
12
|
-
0% {
|
|
13
|
-
opacity: 1;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
100% {
|
|
17
|
-
opacity: 0;
|
|
18
|
-
}
|
|
19
|
-
`,qe=h.keyframes`
|
|
20
|
-
0% {
|
|
21
|
-
transform: scale(1);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
50% {
|
|
25
|
-
transform: scale(0.92);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
100% {
|
|
29
|
-
transform: scale(1);
|
|
30
|
-
}
|
|
31
|
-
`,ze=h.styled("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),_e=h.styled(se,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
32
|
-
opacity: 0;
|
|
33
|
-
position: absolute;
|
|
34
|
-
|
|
35
|
-
&.${R.rippleVisible} {
|
|
36
|
-
opacity: 0.3;
|
|
37
|
-
transform: scale(1);
|
|
38
|
-
animation-name: ${Ie};
|
|
39
|
-
animation-duration: ${Q}ms;
|
|
40
|
-
animation-timing-function: ${({theme:n})=>n.transitions.easing.easeInOut};
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&.${R.ripplePulsate} {
|
|
44
|
-
animation-duration: ${({theme:n})=>n.transitions.duration.shorter}ms;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
& .${R.child} {
|
|
48
|
-
opacity: 1;
|
|
49
|
-
display: block;
|
|
50
|
-
width: 100%;
|
|
51
|
-
height: 100%;
|
|
52
|
-
border-radius: 50%;
|
|
53
|
-
background-color: currentColor;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
& .${R.childLeaving} {
|
|
57
|
-
opacity: 0;
|
|
58
|
-
animation-name: ${Ue};
|
|
59
|
-
animation-duration: ${Q}ms;
|
|
60
|
-
animation-timing-function: ${({theme:n})=>n.transitions.easing.easeInOut};
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
& .${R.childPulsate} {
|
|
64
|
-
position: absolute;
|
|
65
|
-
/* @noflip */
|
|
66
|
-
left: 0px;
|
|
67
|
-
top: 0;
|
|
68
|
-
animation-name: ${qe};
|
|
69
|
-
animation-duration: 2500ms;
|
|
70
|
-
animation-timing-function: ${({theme:n})=>n.transitions.easing.easeInOut};
|
|
71
|
-
animation-iteration-count: infinite;
|
|
72
|
-
animation-delay: 200ms;
|
|
73
|
-
}
|
|
74
|
-
`,re=d.forwardRef(function(e,t){const l=h.useDefaultProps({props:e,name:"MuiTouchRipple"}),{center:s=!1,classes:r={},className:i,...u}=l,[p,f]=d.useState([]),m=d.useRef(0),y=d.useRef(null);d.useEffect(()=>{y.current&&(y.current(),y.current=null)},[p]);const M=d.useRef(!1),N=b.useTimeout(),g=d.useRef(null),k=d.useRef(null),V=d.useCallback(c=>{const{pulsate:E,rippleX:x,rippleY:q,rippleSize:B,cb:z}=c;f(C=>[...C,F.jsx(_e,{classes:{ripple:h.clsx(r.ripple,R.ripple),rippleVisible:h.clsx(r.rippleVisible,R.rippleVisible),ripplePulsate:h.clsx(r.ripplePulsate,R.ripplePulsate),child:h.clsx(r.child,R.child),childLeaving:h.clsx(r.childLeaving,R.childLeaving),childPulsate:h.clsx(r.childPulsate,R.childPulsate)},timeout:Q,pulsate:E,rippleX:x,rippleY:q,rippleSize:B},m.current)]),m.current+=1,y.current=z},[r]),I=d.useCallback((c={},E={},x=()=>{})=>{const{pulsate:q=!1,center:B=s||E.pulsate,fakeElement:z=!1}=E;if((c==null?void 0:c.type)==="mousedown"&&M.current){M.current=!1;return}(c==null?void 0:c.type)==="touchstart"&&(M.current=!0);const C=z?null:k.current,S=C?C.getBoundingClientRect():{width:0,height:0,left:0,top:0};let w,D,j;if(B||c===void 0||c.clientX===0&&c.clientY===0||!c.clientX&&!c.touches)w=Math.round(S.width/2),D=Math.round(S.height/2);else{const{clientX:_,clientY:O}=c.touches&&c.touches.length>0?c.touches[0]:c;w=Math.round(_-S.left),D=Math.round(O-S.top)}if(B)j=Math.sqrt((2*S.width**2+S.height**2)/3),j%2===0&&(j+=1);else{const _=Math.max(Math.abs((C?C.clientWidth:0)-w),w)*2+2,O=Math.max(Math.abs((C?C.clientHeight:0)-D),D)*2+2;j=Math.sqrt(_**2+O**2)}c!=null&&c.touches?g.current===null&&(g.current=()=>{V({pulsate:q,rippleX:w,rippleY:D,rippleSize:j,cb:x})},N.start(Fe,()=>{g.current&&(g.current(),g.current=null)})):V({pulsate:q,rippleX:w,rippleY:D,rippleSize:j,cb:x})},[s,V,N]),K=d.useCallback(()=>{I({},{pulsate:!0})},[I]),U=d.useCallback((c,E)=>{if(N.clear(),(c==null?void 0:c.type)==="touchend"&&g.current){g.current(),g.current=null,N.start(0,()=>{U(c,E)});return}g.current=null,f(x=>x.length>0?x.slice(1):x),y.current=E},[N]);return d.useImperativeHandle(t,()=>({pulsate:K,start:I,stop:U}),[K,I,U]),F.jsx(ze,{className:h.clsx(R.root,r.root,i),ref:k,...u,children:F.jsx(ee,{component:null,exit:!0,children:p})})});process.env.NODE_ENV!=="production"&&(re.propTypes={center:o.PropTypes.bool,classes:o.PropTypes.object,className:o.PropTypes.string});function Ae(n){return h.generateUtilityClass("MuiButtonBase",n)}const Xe=h.generateUtilityClasses("MuiButtonBase",["root","disabled","focusVisible"]),Ye=n=>{const{disabled:e,focusVisible:t,focusVisibleClassName:l,classes:s}=n,r={root:["root",e&&"disabled",t&&"focusVisible"]},i=h.composeClasses(r,Ae,s);return t&&l&&(i.root+=` ${l}`),i},Ke=h.styled("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(n,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Xe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ie=d.forwardRef(function(e,t){const l=h.useDefaultProps({props:e,name:"MuiButtonBase"}),{action:s,centerRipple:r=!1,children:i,className:u,component:p="button",disabled:f=!1,disableRipple:m=!1,disableTouchRipple:y=!1,focusRipple:M=!1,focusVisibleClassName:N,LinkComponent:g="a",onBlur:k,onClick:V,onContextMenu:I,onDragLeave:K,onFocus:U,onFocusVisible:c,onKeyDown:E,onKeyUp:x,onMouseDown:q,onMouseLeave:B,onMouseUp:z,onTouchEnd:C,onTouchMove:S,onTouchStart:w,tabIndex:D=0,TouchRippleProps:j,touchRippleRef:_,type:O,...A}=l,X=d.useRef(null),T=we(),le=b.useForkRef(T.ref,_),[L,H]=d.useState(!1);f&&L&&H(!1),d.useImperativeHandle(s,()=>({focusVisible:()=>{H(!0),X.current.focus()}}),[]);const ae=T.shouldMount&&!m&&!f;d.useEffect(()=>{L&&M&&!m&&T.pulsate()},[m,M,L,T]);const ue=v(T,"start",q,y),pe=v(T,"stop",I,y),ce=v(T,"stop",K,y),fe=v(T,"stop",z,y),de=v(T,"stop",a=>{L&&a.preventDefault(),B&&B(a)},y),he=v(T,"start",w,y),me=v(T,"stop",C,y),ye=v(T,"stop",S,y),Te=v(T,"stop",a=>{b.isFocusVisible(a.target)||H(!1),k&&k(a)},!1),be=b.useEventCallback(a=>{X.current||(X.current=a.currentTarget),b.isFocusVisible(a.target)&&(H(!0),c&&c(a)),U&&U(a)}),J=()=>{const a=X.current;return p&&p!=="button"&&!(a.tagName==="A"&&a.href)},Pe=b.useEventCallback(a=>{M&&!a.repeat&&L&&a.key===" "&&T.stop(a,()=>{T.start(a)}),a.target===a.currentTarget&&J()&&a.key===" "&&a.preventDefault(),E&&E(a),a.target===a.currentTarget&&J()&&a.key==="Enter"&&!f&&(a.preventDefault(),V&&V(a))}),ge=b.useEventCallback(a=>{M&&a.key===" "&&L&&!a.defaultPrevented&&T.stop(a,()=>{T.pulsate(a)}),x&&x(a),V&&a.target===a.currentTarget&&J()&&a.key===" "&&!a.defaultPrevented&&V(a)});let W=p;W==="button"&&(A.href||A.to)&&(W=g);const Y={};W==="button"?(Y.type=O===void 0?"button":O,Y.disabled=f):(!A.href&&!A.to&&(Y.role="button"),f&&(Y["aria-disabled"]=f));const Re=b.useForkRef(t,X),te={...l,centerRipple:r,component:p,disabled:f,disableRipple:m,disableTouchRipple:y,focusRipple:M,tabIndex:D,focusVisible:L},Me=Ye(te);return F.jsxs(Ke,{as:W,className:h.clsx(Me.root,u),ownerState:te,onBlur:Te,onClick:V,onContextMenu:pe,onFocus:be,onKeyDown:Pe,onKeyUp:ge,onMouseDown:ue,onMouseLeave:de,onMouseUp:fe,onDragLeave:ce,onTouchEnd:me,onTouchMove:ye,onTouchStart:he,ref:Re,tabIndex:f?-1:D,type:O,...Y,...A,children:[i,ae?F.jsx(re,{ref:le,center:r,...j}):null]})});function v(n,e,t,l=!1){return b.useEventCallback(s=>(t&&t(s),l||n[e](s),!0))}process.env.NODE_ENV!=="production"&&(ie.propTypes={action:b.refType,centerRipple:o.PropTypes.bool,children:o.PropTypes.node,classes:o.PropTypes.object,className:o.PropTypes.string,component:oe,disabled:o.PropTypes.bool,disableRipple:o.PropTypes.bool,disableTouchRipple:o.PropTypes.bool,focusRipple:o.PropTypes.bool,focusVisibleClassName:o.PropTypes.string,href:o.PropTypes.any,LinkComponent:o.PropTypes.elementType,onBlur:o.PropTypes.func,onClick:o.PropTypes.func,onContextMenu:o.PropTypes.func,onDragLeave:o.PropTypes.func,onFocus:o.PropTypes.func,onFocusVisible:o.PropTypes.func,onKeyDown:o.PropTypes.func,onKeyUp:o.PropTypes.func,onMouseDown:o.PropTypes.func,onMouseLeave:o.PropTypes.func,onMouseUp:o.PropTypes.func,onTouchEnd:o.PropTypes.func,onTouchMove:o.PropTypes.func,onTouchStart:o.PropTypes.func,sx:o.PropTypes.oneOfType([o.PropTypes.arrayOf(o.PropTypes.oneOfType([o.PropTypes.func,o.PropTypes.object,o.PropTypes.bool])),o.PropTypes.func,o.PropTypes.object]),tabIndex:o.PropTypes.number,TouchRippleProps:o.PropTypes.object,touchRippleRef:o.PropTypes.oneOfType([o.PropTypes.func,o.PropTypes.shape({current:o.PropTypes.shape({pulsate:o.PropTypes.func.isRequired,start:o.PropTypes.func.isRequired,stop:o.PropTypes.func.isRequired})})]),type:o.PropTypes.oneOfType([o.PropTypes.oneOf(["button","reset","submit"]),o.PropTypes.string])});exports.ButtonBase=ie;exports.elementTypeAcceptingRef=oe;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const a=require("react/jsx-runtime"),s=require("./emotion-cache-provider-C66nBUtN.cjs"),M=require("react"),e=require("./index-B-zZeebW.cjs"),Q=require("./useFormControl-haP0iPhl.cjs"),W=require("./ButtonBase-CISYuRKV.cjs"),X=require("./useControlled-Ysk4KqoX.cjs"),N=require("./useTimeout-DwkOFF8P.cjs"),R=require("./createSvgIcon-KaV60kcg.cjs"),q=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs"),$=require("./lib/themes/themes.cjs");function Y(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const r in o)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(o,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>o[r]})}}return t.default=o,Object.freeze(t)}const v=Y(M);function Z(o){return s.generateUtilityClass("PrivateSwitchBase",o)}s.generateUtilityClasses("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const ee=o=>{const{classes:t,checked:r,disabled:n,edge:c}=o,l={root:["root",r&&"checked",n&&"disabled",c&&`edge${s.capitalize(c)}`],input:["input"]};return s.composeClasses(l,Z,t)},oe=s.styled(W.ButtonBase)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:o,ownerState:t})=>o==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:o,ownerState:t})=>o==="end"&&t.size!=="small",style:{marginRight:-12}}]}),te=s.styled("input",{shouldForwardProp:s.rootShouldForwardProp})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),E=v.forwardRef(function(t,r){const{autoFocus:n,checked:c,checkedIcon:l,className:u,defaultChecked:d,disabled:P,disableFocusRipple:m=!1,edge:y=!1,icon:T,id:x,inputProps:S,inputRef:C,name:g,onBlur:h,onChange:f,onFocus:O,readOnly:V,required:_=!1,tabIndex:H,type:k,value:B,...D}=t,[j,L]=X.useControlled({controlled:c,default:!!d,name:"SwitchBase",state:"checked"}),p=Q.useFormControl(),A=i=>{O&&O(i),p&&p.onFocus&&p.onFocus(i)},G=i=>{h&&h(i),p&&p.onBlur&&p.onBlur(i)},J=i=>{if(i.nativeEvent.defaultPrevented)return;const F=i.target.checked;L(F),f&&f(i,F)};let b=P;p&&typeof b>"u"&&(b=p.disabled);const K=k==="checkbox"||k==="radio",I={...t,checked:j,disabled:b,disableFocusRipple:m,edge:y},w=ee(I);return a.jsxs(oe,{component:"span",className:s.clsx(w.root,u),centerRipple:!0,focusRipple:!m,disabled:b,tabIndex:null,role:void 0,onFocus:A,onBlur:G,ownerState:I,ref:r,...D,children:[a.jsx(te,{autoFocus:n,checked:c,defaultChecked:d,className:w.input,disabled:b,id:K?x:void 0,name:g,onChange:J,readOnly:V,ref:C,required:_,ownerState:I,tabIndex:H,type:k,...k==="checkbox"&&B===void 0?{}:{value:B},...S}),j?l:T]})});process.env.NODE_ENV!=="production"&&(E.propTypes={autoFocus:e.PropTypes.bool,checked:e.PropTypes.bool,checkedIcon:e.PropTypes.node.isRequired,classes:e.PropTypes.object,className:e.PropTypes.string,defaultChecked:e.PropTypes.bool,disabled:e.PropTypes.bool,disableFocusRipple:e.PropTypes.bool,edge:e.PropTypes.oneOf(["end","start",!1]),icon:e.PropTypes.node.isRequired,id:e.PropTypes.string,inputProps:e.PropTypes.object,inputRef:N.refType,name:e.PropTypes.string,onBlur:e.PropTypes.func,onChange:e.PropTypes.func,onFocus:e.PropTypes.func,readOnly:e.PropTypes.bool,required:e.PropTypes.bool,sx:e.PropTypes.object,tabIndex:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),type:e.PropTypes.string.isRequired,value:e.PropTypes.any});const se=R.createSvgIcon(a.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),re=R.createSvgIcon(a.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),ne=R.createSvgIcon(a.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function ae(o){return s.generateUtilityClass("MuiCheckbox",o)}const z=s.generateUtilityClasses("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),ce=o=>{const{classes:t,indeterminate:r,color:n,size:c}=o,l={root:["root",r&&"indeterminate",`color${s.capitalize(n)}`,`size${s.capitalize(c)}`]},u=s.composeClasses(l,ae,t);return{...t,...u}},ie=s.styled(E,{shouldForwardProp:o=>s.rootShouldForwardProp(o)||o==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:r}=o;return[t.root,r.indeterminate&&t.indeterminate,t[`size${s.capitalize(r.size)}`],r.color!=="default"&&t[`color${s.capitalize(r.color)}`]]}})(s.memoTheme(({theme:o})=>({color:(o.vars||o).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:o.vars?`rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})`:s.alpha(o.palette.action.active,o.palette.action.hoverOpacity)}}},...Object.entries(o.palette).filter(q.createSimplePaletteValueFilter()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:o.vars?`rgba(${o.vars.palette[t].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:s.alpha(o.palette[t].main,o.palette.action.hoverOpacity)}}})),...Object.entries(o.palette).filter(q.createSimplePaletteValueFilter()).map(([t])=>({props:{color:t},style:{[`&.${z.checked}, &.${z.indeterminate}`]:{color:(o.vars||o).palette[t].main},[`&.${z.disabled}`]:{color:(o.vars||o).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),pe=a.jsx(re,{}),le=a.jsx(se,{}),de=a.jsx(ne,{}),U=v.forwardRef(function(t,r){const n=s.useDefaultProps({props:t,name:"MuiCheckbox"}),{checkedIcon:c=pe,color:l="primary",icon:u=le,indeterminate:d=!1,indeterminateIcon:P=de,inputProps:m,size:y="medium",disableRipple:T=!1,className:x,...S}=n,C=d?P:u,g=d?P:c,h={...n,disableRipple:T,color:l,indeterminate:d,size:y},f=ce(h);return a.jsx(ie,{type:"checkbox",inputProps:{"data-indeterminate":d,...m},icon:v.cloneElement(C,{fontSize:C.props.fontSize??y}),checkedIcon:v.cloneElement(g,{fontSize:g.props.fontSize??y}),ownerState:h,ref:r,className:s.clsx(f.root,x),disableRipple:T,...S,classes:f})});process.env.NODE_ENV!=="production"&&(U.propTypes={checked:e.PropTypes.bool,checkedIcon:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["default","primary","secondary","error","info","success","warning"]),e.PropTypes.string]),defaultChecked:e.PropTypes.bool,disabled:e.PropTypes.bool,disableRipple:e.PropTypes.bool,icon:e.PropTypes.node,id:e.PropTypes.string,indeterminate:e.PropTypes.bool,indeterminateIcon:e.PropTypes.node,inputProps:e.PropTypes.object,inputRef:N.refType,onChange:e.PropTypes.func,required:e.PropTypes.bool,size:e.PropTypes.oneOfType([e.PropTypes.oneOf(["medium","small"]),e.PropTypes.string]),sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),value:e.PropTypes.any});const ue=s.createTheme$1({components:{MuiCheckbox:{styleOverrides:{root:{width:"28px",height:"28px","&.Mui-disabled":{opacity:.5},"&:hover":{backgroundColor:$.siColors.StInteractionColors.defaultHover},"& .MuiSvgIcon-root":{fontSize:14,fill:$.siColors.StUiColors.default}}}}}}),ye=M.forwardRef(({theme:o=ue,dataTestId:t,...r},n)=>a.jsx(s.EmotionCacheProvider,{children:a.jsx(s.ThemeProvider,{theme:o,children:a.jsx(U,{"data-testid":t,ref:n,...r})})}));exports.Checkbox=ye;
|