@astral/ui 4.13.0 → 4.14.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/components/CardGridInfinite/Card/Card.d.ts +3 -0
- package/components/CardGridInfinite/Card/Card.js +12 -0
- package/components/CardGridInfinite/Card/CardActionContext/CardActionContext.d.ts +10 -0
- package/components/CardGridInfinite/Card/CardActionContext/CardActionContext.js +8 -0
- package/components/CardGridInfinite/Card/CardActionContext/CardActionContextProvider/CardActionContextProvider.d.ts +9 -0
- package/components/CardGridInfinite/Card/CardActionContext/CardActionContextProvider/CardActionContextProvider.js +26 -0
- package/components/CardGridInfinite/Card/CardActionContext/CardActionContextProvider/index.d.ts +1 -0
- package/components/CardGridInfinite/Card/CardActionContext/CardActionContextProvider/index.js +1 -0
- package/components/CardGridInfinite/Card/CardActionContext/index.d.ts +2 -0
- package/components/CardGridInfinite/Card/CardActionContext/index.js +2 -0
- package/components/CardGridInfinite/Card/SecondaryActionButton/SecondaryActionButton.d.ts +7 -0
- package/components/CardGridInfinite/Card/SecondaryActionButton/SecondaryActionButton.js +21 -0
- package/components/CardGridInfinite/Card/SecondaryActionButton/index.d.ts +1 -0
- package/components/CardGridInfinite/Card/SecondaryActionButton/index.js +1 -0
- package/components/CardGridInfinite/Card/SecondaryActionButton/styles.d.ts +12 -0
- package/components/CardGridInfinite/Card/SecondaryActionButton/styles.js +5 -0
- package/components/CardGridInfinite/Card/index.d.ts +3 -0
- package/components/CardGridInfinite/Card/index.js +2 -0
- package/components/CardGridInfinite/Card/styles.d.ts +16 -0
- package/components/CardGridInfinite/Card/styles.js +22 -0
- package/components/CardGridInfinite/Card/types.d.ts +32 -0
- package/components/CardGridInfinite/Card/types.js +1 -0
- package/components/CardGridInfinite/Card/useLogic/index.d.ts +1 -0
- package/components/CardGridInfinite/Card/useLogic/index.js +1 -0
- package/components/CardGridInfinite/Card/useLogic/useLogic.d.ts +7 -0
- package/components/CardGridInfinite/Card/useLogic/useLogic.js +7 -0
- package/components/CardGridInfinite/CardGridInfinite.d.ts +3 -0
- package/components/CardGridInfinite/CardGridInfinite.js +21 -0
- package/components/CardGridInfinite/CardGridMainActions/Action/Action.d.ts +3 -0
- package/components/CardGridInfinite/CardGridMainActions/Action/Action.js +16 -0
- package/components/CardGridInfinite/CardGridMainActions/Action/index.d.ts +1 -0
- package/components/CardGridInfinite/CardGridMainActions/Action/index.js +1 -0
- package/components/CardGridInfinite/CardGridMainActions/Action/types.d.ts +13 -0
- package/components/CardGridInfinite/CardGridMainActions/Action/types.js +1 -0
- package/components/CardGridInfinite/CardGridMainActions/Action/useLogic/index.d.ts +1 -0
- package/components/CardGridInfinite/CardGridMainActions/Action/useLogic/index.js +1 -0
- package/components/CardGridInfinite/CardGridMainActions/Action/useLogic/useLogic.d.ts +11 -0
- package/components/CardGridInfinite/CardGridMainActions/Action/useLogic/useLogic.js +16 -0
- package/components/CardGridInfinite/CardGridMainActions/CardGridMainActions.d.ts +30 -0
- package/components/CardGridInfinite/CardGridMainActions/CardGridMainActions.js +29 -0
- package/components/CardGridInfinite/CardGridMainActions/index.d.ts +4 -0
- package/components/CardGridInfinite/CardGridMainActions/index.js +4 -0
- package/components/CardGridInfinite/CardGridMainActions/styles.d.ts +5 -0
- package/components/CardGridInfinite/CardGridMainActions/styles.js +9 -0
- package/components/CardGridInfinite/CardGridMainActions/types.d.ts +44 -0
- package/components/CardGridInfinite/CardGridMainActions/types.js +1 -0
- package/components/CardGridInfinite/CardGridMainActions/utils/index.d.ts +1 -0
- package/components/CardGridInfinite/CardGridMainActions/utils/index.js +1 -0
- package/components/CardGridInfinite/CardGridMainActions/utils/replaceActionComponent/index.d.ts +1 -0
- package/components/CardGridInfinite/CardGridMainActions/utils/replaceActionComponent/index.js +1 -0
- package/components/CardGridInfinite/CardGridMainActions/utils/replaceActionComponent/replaceActionComponent.d.ts +8 -0
- package/components/CardGridInfinite/CardGridMainActions/utils/replaceActionComponent/replaceActionComponent.js +11 -0
- package/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActions.d.ts +18 -0
- package/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActions.js +34 -0
- package/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActionsSkeleton/CardGridSecondaryActionsSkeleton.d.ts +2 -0
- package/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActionsSkeleton/CardGridSecondaryActionsSkeleton.js +4 -0
- package/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActionsSkeleton/index.d.ts +1 -0
- package/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActionsSkeleton/index.js +1 -0
- package/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActionsSkeleton/styles.d.ts +9 -0
- package/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActionsSkeleton/styles.js +31 -0
- package/components/CardGridInfinite/CardGridSecondaryAction/SecondaryActionsMenuContext/SecondaryActionsMenuContext.d.ts +12 -0
- package/components/CardGridInfinite/CardGridSecondaryAction/SecondaryActionsMenuContext/SecondaryActionsMenuContext.js +5 -0
- package/components/CardGridInfinite/CardGridSecondaryAction/SecondaryActionsMenuContext/SecondaryActionsMenuProvider/SecondaryActionsMenuProvider.d.ts +8 -0
- package/components/CardGridInfinite/CardGridSecondaryAction/SecondaryActionsMenuContext/SecondaryActionsMenuProvider/SecondaryActionsMenuProvider.js +5 -0
- package/components/CardGridInfinite/CardGridSecondaryAction/SecondaryActionsMenuContext/SecondaryActionsMenuProvider/index.d.ts +1 -0
- package/components/CardGridInfinite/CardGridSecondaryAction/SecondaryActionsMenuContext/SecondaryActionsMenuProvider/index.js +1 -0
- package/components/CardGridInfinite/CardGridSecondaryAction/SecondaryActionsMenuContext/index.d.ts +2 -0
- package/components/CardGridInfinite/CardGridSecondaryAction/SecondaryActionsMenuContext/index.js +2 -0
- package/components/CardGridInfinite/CardGridSecondaryAction/index.d.ts +4 -0
- package/components/CardGridInfinite/CardGridSecondaryAction/index.js +3 -0
- package/components/CardGridInfinite/CardGridSecondaryAction/types.d.ts +59 -0
- package/components/CardGridInfinite/CardGridSecondaryAction/types.js +1 -0
- package/components/CardGridInfinite/EndData/EndData.d.ts +6 -0
- package/components/CardGridInfinite/EndData/EndData.js +4 -0
- package/components/CardGridInfinite/EndData/constants.d.ts +1 -0
- package/components/CardGridInfinite/EndData/constants.js +1 -0
- package/components/CardGridInfinite/EndData/index.d.ts +1 -0
- package/components/CardGridInfinite/EndData/index.js +1 -0
- package/components/CardGridInfinite/ErrorMessage/ErrorMessage.d.ts +6 -0
- package/components/CardGridInfinite/ErrorMessage/ErrorMessage.js +6 -0
- package/components/CardGridInfinite/ErrorMessage/constants.d.ts +1 -0
- package/components/CardGridInfinite/ErrorMessage/constants.js +1 -0
- package/components/CardGridInfinite/ErrorMessage/index.d.ts +1 -0
- package/components/CardGridInfinite/ErrorMessage/index.js +1 -0
- package/components/CardGridInfinite/ErrorMessage/styles.d.ts +5 -0
- package/components/CardGridInfinite/ErrorMessage/styles.js +17 -0
- package/components/CardGridInfinite/Footer/Footer.d.ts +10 -0
- package/components/CardGridInfinite/Footer/Footer.js +12 -0
- package/components/CardGridInfinite/Footer/index.d.ts +1 -0
- package/components/CardGridInfinite/Footer/index.js +1 -0
- package/components/CardGridInfinite/Footer/styles.d.ts +9 -0
- package/components/CardGridInfinite/Footer/styles.js +16 -0
- package/components/CardGridInfinite/List/List.d.ts +8 -0
- package/components/CardGridInfinite/List/List.js +4 -0
- package/components/CardGridInfinite/List/index.d.ts +1 -0
- package/components/CardGridInfinite/List/index.js +1 -0
- package/components/CardGridInfinite/List/styles.d.ts +10 -0
- package/components/CardGridInfinite/List/styles.js +10 -0
- package/components/CardGridInfinite/NoDataPlaceholder/NoDataPlaceholder.d.ts +6 -0
- package/components/CardGridInfinite/NoDataPlaceholder/NoDataPlaceholder.js +10 -0
- package/components/CardGridInfinite/NoDataPlaceholder/constants.d.ts +1 -0
- package/components/CardGridInfinite/NoDataPlaceholder/constants.js +1 -0
- package/components/CardGridInfinite/NoDataPlaceholder/index.d.ts +1 -0
- package/components/CardGridInfinite/NoDataPlaceholder/index.js +1 -0
- package/components/CardGridInfinite/OnTopButton/OnTopButton.d.ts +8 -0
- package/components/CardGridInfinite/OnTopButton/OnTopButton.js +10 -0
- package/components/CardGridInfinite/OnTopButton/index.d.ts +1 -0
- package/components/CardGridInfinite/OnTopButton/index.js +1 -0
- package/components/CardGridInfinite/OnTopButton/styles.d.ts +3 -0
- package/components/CardGridInfinite/OnTopButton/styles.js +9 -0
- package/components/CardGridInfinite/SkeletonGrid/SkeletonGrid.d.ts +11 -0
- package/components/CardGridInfinite/SkeletonGrid/SkeletonGrid.js +5 -0
- package/components/CardGridInfinite/SkeletonGrid/index.d.ts +1 -0
- package/components/CardGridInfinite/SkeletonGrid/index.js +1 -0
- package/components/CardGridInfinite/SkeletonGrid/styles.d.ts +12 -0
- package/components/CardGridInfinite/SkeletonGrid/styles.js +5 -0
- package/components/CardGridInfinite/constants.d.ts +7 -0
- package/components/CardGridInfinite/constants.js +8 -0
- package/components/CardGridInfinite/hooks/index.d.ts +1 -0
- package/components/CardGridInfinite/hooks/index.js +1 -0
- package/components/CardGridInfinite/hooks/useBlockingActions/index.d.ts +1 -0
- package/components/CardGridInfinite/hooks/useBlockingActions/index.js +1 -0
- package/components/CardGridInfinite/hooks/useBlockingActions/useBlockingActions.d.ts +9 -0
- package/components/CardGridInfinite/hooks/useBlockingActions/useBlockingActions.js +23 -0
- package/components/CardGridInfinite/index.d.ts +8 -0
- package/components/CardGridInfinite/index.js +4 -0
- package/components/CardGridInfinite/styles.d.ts +13 -0
- package/components/CardGridInfinite/styles.js +26 -0
- package/components/CardGridInfinite/types.d.ts +98 -0
- package/components/CardGridInfinite/types.js +1 -0
- package/components/CardGridInfinite/useLogic/index.d.ts +1 -0
- package/components/CardGridInfinite/useLogic/index.js +1 -0
- package/components/CardGridInfinite/useLogic/useLogic.d.ts +41 -0
- package/components/CardGridInfinite/useLogic/useLogic.js +73 -0
- package/components/DashboardLayout/Sidebar/styles.d.ts +1 -4
- package/components/DatePicker/styles.d.ts +1 -4
- package/components/DateRangePicker/styles.d.ts +1 -4
- package/components/Description/styles.js +1 -1
- package/components/InfiniteTreeList/useLogic/useLogic.js +2 -2
- package/components/PageLayout/PageContent/styles.js +5 -2
- package/components/PageLayout/PageLayoutContainer/index.d.ts +1 -0
- package/components/PageLayout/PageLayoutContainer/index.js +1 -0
- package/components/PageLayout/PageLayoutContainer/styles.d.ts +1 -4
- package/components/Paper/Paper.d.ts +1 -1
- package/components/Paper/Paper.js +4 -3
- package/components/Tag/styles.js +2 -0
- package/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/useScrollManagement/useScrollManagement.d.ts +2 -1
- package/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/useScrollManagement/useScrollManagement.js +13 -3
- package/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/useStickyButton/useStickyButton.js +2 -2
- package/components/hooks/index.d.ts +1 -0
- package/components/hooks/index.js +1 -0
- package/components/placeholders/LoadingPlaceholder/LoadingPlaceholder.js +4 -3
- package/components/placeholders/LoadingPlaceholder/constants.d.ts +3 -0
- package/components/placeholders/LoadingPlaceholder/constants.js +4 -0
- package/components/placeholders/LoadingPlaceholder/index.d.ts +1 -0
- package/components/placeholders/LoadingPlaceholder/index.js +1 -0
- package/node/components/CardGridInfinite/Card/Card.d.ts +3 -0
- package/node/components/CardGridInfinite/Card/Card.js +16 -0
- package/node/components/CardGridInfinite/Card/CardActionContext/CardActionContext.d.ts +10 -0
- package/node/components/CardGridInfinite/Card/CardActionContext/CardActionContext.js +11 -0
- package/node/components/CardGridInfinite/Card/CardActionContext/CardActionContextProvider/CardActionContextProvider.d.ts +9 -0
- package/node/components/CardGridInfinite/Card/CardActionContext/CardActionContextProvider/CardActionContextProvider.js +30 -0
- package/node/components/CardGridInfinite/Card/CardActionContext/CardActionContextProvider/index.d.ts +1 -0
- package/node/components/CardGridInfinite/Card/CardActionContext/CardActionContextProvider/index.js +17 -0
- package/node/components/CardGridInfinite/Card/CardActionContext/index.d.ts +2 -0
- package/node/components/CardGridInfinite/Card/CardActionContext/index.js +18 -0
- package/node/components/CardGridInfinite/Card/SecondaryActionButton/SecondaryActionButton.d.ts +7 -0
- package/node/components/CardGridInfinite/Card/SecondaryActionButton/SecondaryActionButton.js +25 -0
- package/node/components/CardGridInfinite/Card/SecondaryActionButton/index.d.ts +1 -0
- package/node/components/CardGridInfinite/Card/SecondaryActionButton/index.js +17 -0
- package/node/components/CardGridInfinite/Card/SecondaryActionButton/styles.d.ts +12 -0
- package/node/components/CardGridInfinite/Card/SecondaryActionButton/styles.js +8 -0
- package/node/components/CardGridInfinite/Card/index.d.ts +3 -0
- package/node/components/CardGridInfinite/Card/index.js +18 -0
- package/node/components/CardGridInfinite/Card/styles.d.ts +16 -0
- package/node/components/CardGridInfinite/Card/styles.js +25 -0
- package/node/components/CardGridInfinite/Card/types.d.ts +32 -0
- package/node/components/CardGridInfinite/Card/types.js +2 -0
- package/node/components/CardGridInfinite/Card/useLogic/index.d.ts +1 -0
- package/node/components/CardGridInfinite/Card/useLogic/index.js +17 -0
- package/node/components/CardGridInfinite/Card/useLogic/useLogic.d.ts +7 -0
- package/node/components/CardGridInfinite/Card/useLogic/useLogic.js +11 -0
- package/node/components/CardGridInfinite/CardGridInfinite.d.ts +3 -0
- package/node/components/CardGridInfinite/CardGridInfinite.js +25 -0
- package/node/components/CardGridInfinite/CardGridMainActions/Action/Action.d.ts +3 -0
- package/node/components/CardGridInfinite/CardGridMainActions/Action/Action.js +20 -0
- package/node/components/CardGridInfinite/CardGridMainActions/Action/index.d.ts +1 -0
- package/node/components/CardGridInfinite/CardGridMainActions/Action/index.js +17 -0
- package/node/components/CardGridInfinite/CardGridMainActions/Action/types.d.ts +13 -0
- package/node/components/CardGridInfinite/CardGridMainActions/Action/types.js +2 -0
- package/node/components/CardGridInfinite/CardGridMainActions/Action/useLogic/index.d.ts +1 -0
- package/node/components/CardGridInfinite/CardGridMainActions/Action/useLogic/index.js +17 -0
- package/node/components/CardGridInfinite/CardGridMainActions/Action/useLogic/useLogic.d.ts +11 -0
- package/node/components/CardGridInfinite/CardGridMainActions/Action/useLogic/useLogic.js +20 -0
- package/node/components/CardGridInfinite/CardGridMainActions/CardGridMainActions.d.ts +30 -0
- package/node/components/CardGridInfinite/CardGridMainActions/CardGridMainActions.js +33 -0
- package/node/components/CardGridInfinite/CardGridMainActions/index.d.ts +4 -0
- package/node/components/CardGridInfinite/CardGridMainActions/index.js +22 -0
- package/node/components/CardGridInfinite/CardGridMainActions/styles.d.ts +5 -0
- package/node/components/CardGridInfinite/CardGridMainActions/styles.js +12 -0
- package/node/components/CardGridInfinite/CardGridMainActions/types.d.ts +44 -0
- package/node/components/CardGridInfinite/CardGridMainActions/types.js +2 -0
- package/node/components/CardGridInfinite/CardGridMainActions/utils/index.d.ts +1 -0
- package/node/components/CardGridInfinite/CardGridMainActions/utils/index.js +17 -0
- package/node/components/CardGridInfinite/CardGridMainActions/utils/replaceActionComponent/index.d.ts +1 -0
- package/node/components/CardGridInfinite/CardGridMainActions/utils/replaceActionComponent/index.js +17 -0
- package/node/components/CardGridInfinite/CardGridMainActions/utils/replaceActionComponent/replaceActionComponent.d.ts +8 -0
- package/node/components/CardGridInfinite/CardGridMainActions/utils/replaceActionComponent/replaceActionComponent.js +15 -0
- package/node/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActions.d.ts +18 -0
- package/node/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActions.js +38 -0
- package/node/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActionsSkeleton/CardGridSecondaryActionsSkeleton.d.ts +2 -0
- package/node/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActionsSkeleton/CardGridSecondaryActionsSkeleton.js +8 -0
- package/node/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActionsSkeleton/index.d.ts +1 -0
- package/node/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActionsSkeleton/index.js +17 -0
- package/node/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActionsSkeleton/styles.d.ts +9 -0
- package/node/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActionsSkeleton/styles.js +34 -0
- package/node/components/CardGridInfinite/CardGridSecondaryAction/SecondaryActionsMenuContext/SecondaryActionsMenuContext.d.ts +12 -0
- package/node/components/CardGridInfinite/CardGridSecondaryAction/SecondaryActionsMenuContext/SecondaryActionsMenuContext.js +8 -0
- package/node/components/CardGridInfinite/CardGridSecondaryAction/SecondaryActionsMenuContext/SecondaryActionsMenuProvider/SecondaryActionsMenuProvider.d.ts +8 -0
- package/node/components/CardGridInfinite/CardGridSecondaryAction/SecondaryActionsMenuContext/SecondaryActionsMenuProvider/SecondaryActionsMenuProvider.js +9 -0
- package/node/components/CardGridInfinite/CardGridSecondaryAction/SecondaryActionsMenuContext/SecondaryActionsMenuProvider/index.d.ts +1 -0
- package/node/components/CardGridInfinite/CardGridSecondaryAction/SecondaryActionsMenuContext/SecondaryActionsMenuProvider/index.js +5 -0
- package/node/components/CardGridInfinite/CardGridSecondaryAction/SecondaryActionsMenuContext/index.d.ts +2 -0
- package/node/components/CardGridInfinite/CardGridSecondaryAction/SecondaryActionsMenuContext/index.js +18 -0
- package/node/components/CardGridInfinite/CardGridSecondaryAction/index.d.ts +4 -0
- package/node/components/CardGridInfinite/CardGridSecondaryAction/index.js +22 -0
- package/node/components/CardGridInfinite/CardGridSecondaryAction/types.d.ts +59 -0
- package/node/components/CardGridInfinite/CardGridSecondaryAction/types.js +2 -0
- package/node/components/CardGridInfinite/EndData/EndData.d.ts +6 -0
- package/node/components/CardGridInfinite/EndData/EndData.js +8 -0
- package/node/components/CardGridInfinite/EndData/constants.d.ts +1 -0
- package/node/components/CardGridInfinite/EndData/constants.js +4 -0
- package/node/components/CardGridInfinite/EndData/index.d.ts +1 -0
- package/node/components/CardGridInfinite/EndData/index.js +17 -0
- package/node/components/CardGridInfinite/ErrorMessage/ErrorMessage.d.ts +6 -0
- package/node/components/CardGridInfinite/ErrorMessage/ErrorMessage.js +10 -0
- package/node/components/CardGridInfinite/ErrorMessage/constants.d.ts +1 -0
- package/node/components/CardGridInfinite/ErrorMessage/constants.js +4 -0
- package/node/components/CardGridInfinite/ErrorMessage/index.d.ts +1 -0
- package/node/components/CardGridInfinite/ErrorMessage/index.js +17 -0
- package/node/components/CardGridInfinite/ErrorMessage/styles.d.ts +5 -0
- package/node/components/CardGridInfinite/ErrorMessage/styles.js +20 -0
- package/node/components/CardGridInfinite/Footer/Footer.d.ts +10 -0
- package/node/components/CardGridInfinite/Footer/Footer.js +16 -0
- package/node/components/CardGridInfinite/Footer/index.d.ts +1 -0
- package/node/components/CardGridInfinite/Footer/index.js +17 -0
- package/node/components/CardGridInfinite/Footer/styles.d.ts +9 -0
- package/node/components/CardGridInfinite/Footer/styles.js +19 -0
- package/node/components/CardGridInfinite/List/List.d.ts +8 -0
- package/node/components/CardGridInfinite/List/List.js +7 -0
- package/node/components/CardGridInfinite/List/index.d.ts +1 -0
- package/node/components/CardGridInfinite/List/index.js +17 -0
- package/node/components/CardGridInfinite/List/styles.d.ts +10 -0
- package/node/components/CardGridInfinite/List/styles.js +13 -0
- package/node/components/CardGridInfinite/NoDataPlaceholder/NoDataPlaceholder.d.ts +6 -0
- package/node/components/CardGridInfinite/NoDataPlaceholder/NoDataPlaceholder.js +14 -0
- package/node/components/CardGridInfinite/NoDataPlaceholder/constants.d.ts +1 -0
- package/node/components/CardGridInfinite/NoDataPlaceholder/constants.js +4 -0
- package/node/components/CardGridInfinite/NoDataPlaceholder/index.d.ts +1 -0
- package/node/components/CardGridInfinite/NoDataPlaceholder/index.js +17 -0
- package/node/components/CardGridInfinite/OnTopButton/OnTopButton.d.ts +8 -0
- package/node/components/CardGridInfinite/OnTopButton/OnTopButton.js +14 -0
- package/node/components/CardGridInfinite/OnTopButton/index.d.ts +1 -0
- package/node/components/CardGridInfinite/OnTopButton/index.js +17 -0
- package/node/components/CardGridInfinite/OnTopButton/styles.d.ts +3 -0
- package/node/components/CardGridInfinite/OnTopButton/styles.js +12 -0
- package/node/components/CardGridInfinite/SkeletonGrid/SkeletonGrid.d.ts +11 -0
- package/node/components/CardGridInfinite/SkeletonGrid/SkeletonGrid.js +9 -0
- package/node/components/CardGridInfinite/SkeletonGrid/index.d.ts +1 -0
- package/node/components/CardGridInfinite/SkeletonGrid/index.js +5 -0
- package/node/components/CardGridInfinite/SkeletonGrid/styles.d.ts +12 -0
- package/node/components/CardGridInfinite/SkeletonGrid/styles.js +8 -0
- package/node/components/CardGridInfinite/constants.d.ts +7 -0
- package/node/components/CardGridInfinite/constants.js +11 -0
- package/node/components/CardGridInfinite/hooks/index.d.ts +1 -0
- package/node/components/CardGridInfinite/hooks/index.js +17 -0
- package/node/components/CardGridInfinite/hooks/useBlockingActions/index.d.ts +1 -0
- package/node/components/CardGridInfinite/hooks/useBlockingActions/index.js +17 -0
- package/node/components/CardGridInfinite/hooks/useBlockingActions/useBlockingActions.d.ts +9 -0
- package/node/components/CardGridInfinite/hooks/useBlockingActions/useBlockingActions.js +27 -0
- package/node/components/CardGridInfinite/index.d.ts +8 -0
- package/node/components/CardGridInfinite/index.js +13 -0
- package/node/components/CardGridInfinite/styles.d.ts +13 -0
- package/node/components/CardGridInfinite/styles.js +29 -0
- package/node/components/CardGridInfinite/types.d.ts +98 -0
- package/node/components/CardGridInfinite/types.js +2 -0
- package/node/components/CardGridInfinite/useLogic/index.d.ts +1 -0
- package/node/components/CardGridInfinite/useLogic/index.js +17 -0
- package/node/components/CardGridInfinite/useLogic/useLogic.d.ts +41 -0
- package/node/components/CardGridInfinite/useLogic/useLogic.js +77 -0
- package/node/components/DashboardLayout/Sidebar/styles.d.ts +1 -4
- package/node/components/DatePicker/styles.d.ts +1 -4
- package/node/components/DateRangePicker/styles.d.ts +1 -4
- package/node/components/Description/styles.js +1 -1
- package/node/components/InfiniteTreeList/useLogic/useLogic.js +3 -3
- package/node/components/PageLayout/PageContent/styles.js +5 -2
- package/node/components/PageLayout/PageLayoutContainer/index.d.ts +1 -0
- package/node/components/PageLayout/PageLayoutContainer/index.js +3 -0
- package/node/components/PageLayout/PageLayoutContainer/styles.d.ts +1 -4
- package/node/components/Paper/Paper.d.ts +1 -1
- package/node/components/Paper/Paper.js +4 -4
- package/node/components/Tag/styles.js +2 -0
- package/node/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/useScrollManagement/useScrollManagement.d.ts +2 -1
- package/node/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/useScrollManagement/useScrollManagement.js +13 -3
- package/node/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/useStickyButton/useStickyButton.js +3 -3
- package/node/components/hooks/index.d.ts +1 -0
- package/node/components/hooks/index.js +4 -1
- package/node/components/placeholders/LoadingPlaceholder/LoadingPlaceholder.js +4 -3
- package/node/components/placeholders/LoadingPlaceholder/constants.d.ts +3 -0
- package/node/components/placeholders/LoadingPlaceholder/constants.js +7 -0
- package/node/components/placeholders/LoadingPlaceholder/index.d.ts +1 -0
- package/node/components/placeholders/LoadingPlaceholder/index.js +3 -0
- package/package.json +8 -1
- /package/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/index.d.ts +0 -0
- /package/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/index.js +0 -0
- /package/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/useScrollManagement/index.d.ts +0 -0
- /package/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/useScrollManagement/index.js +0 -0
- /package/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/useStickyButton/index.d.ts +0 -0
- /package/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/useStickyButton/index.js +0 -0
- /package/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/useStickyButton/useStickyButton.d.ts +0 -0
- /package/node/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/index.d.ts +0 -0
- /package/node/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/index.js +0 -0
- /package/node/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/useScrollManagement/index.d.ts +0 -0
- /package/node/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/useScrollManagement/index.js +0 -0
- /package/node/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/useStickyButton/index.d.ts +0 -0
- /package/node/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/useStickyButton/index.js +0 -0
- /package/node/components/{InfiniteTreeList/useLogic/hooks → hooks/Infinite}/useStickyButton/useStickyButton.d.ts +0 -0
package/node/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActions.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { CardGridSecondaryActionsProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Компонент для отображения дополнительных действий в выпадающем меню.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* <CardGridSecondaryActions
|
|
9
|
+
* actions={[
|
|
10
|
+
* { name: 'Дублировать', onClick: handleDuplicate },
|
|
11
|
+
* { name: 'Архивировать', onClick: handleArchive, disabled: !canArchive },
|
|
12
|
+
* { name: 'Экспортировать', onClick: handleExport }
|
|
13
|
+
* ]}
|
|
14
|
+
* isLoading={isActionsLoading}
|
|
15
|
+
* />
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare const CardGridSecondaryActions: <TAction>({ actions, isLoading, mobileTitle, }: CardGridSecondaryActionsProps<TAction>) => JSX.Element;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CardGridSecondaryActions = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const react_2 = require("react");
|
|
7
|
+
const Menu_1 = require("../../Menu");
|
|
8
|
+
const MenuItem_1 = require("../../MenuItem");
|
|
9
|
+
const hooks_1 = require("../hooks");
|
|
10
|
+
const CardGridSecondaryActionsSkeleton_1 = require("./CardGridSecondaryActionsSkeleton");
|
|
11
|
+
const SecondaryActionsMenuContext_1 = require("./SecondaryActionsMenuContext");
|
|
12
|
+
/**
|
|
13
|
+
* Компонент для отображения дополнительных действий в выпадающем меню.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* <CardGridSecondaryActions
|
|
18
|
+
* actions={[
|
|
19
|
+
* { name: 'Дублировать', onClick: handleDuplicate },
|
|
20
|
+
* { name: 'Архивировать', onClick: handleArchive, disabled: !canArchive },
|
|
21
|
+
* { name: 'Экспортировать', onClick: handleExport }
|
|
22
|
+
* ]}
|
|
23
|
+
* isLoading={isActionsLoading}
|
|
24
|
+
* />
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
const CardGridSecondaryActions = ({ actions, isLoading, mobileTitle, }) => {
|
|
28
|
+
const { onActionClick } = (0, hooks_1.useBlockingActions)(actions);
|
|
29
|
+
const { anchorEl, open } = (0, react_2.useContext)(SecondaryActionsMenuContext_1.SecondaryActionsMenuContext);
|
|
30
|
+
const renderActions = () => {
|
|
31
|
+
return actions?.map((action) => {
|
|
32
|
+
const { onClick, name, loading, isBlockingOperation, ...restProps } = action;
|
|
33
|
+
return ((0, react_1.createElement)(MenuItem_1.MenuItem, { ...restProps, key: name, tooltipPlacement: "left", onClick: onActionClick(onClick) }, name));
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
return ((0, jsx_runtime_1.jsx)(Menu_1.Menu, { open: open, title: mobileTitle, anchorEl: anchorEl, anchorOrigin: { vertical: 'bottom', horizontal: 'right' }, transformOrigin: { vertical: 'top', horizontal: 'right' }, children: isLoading ? (0, jsx_runtime_1.jsx)(CardGridSecondaryActionsSkeleton_1.CardGridSecondaryActionsSkeleton, {}) : renderActions() }));
|
|
37
|
+
};
|
|
38
|
+
exports.CardGridSecondaryActions = CardGridSecondaryActions;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CardGridSecondaryActionsSkeleton = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const Skeleton_1 = require("../../../Skeleton");
|
|
6
|
+
const styles_1 = require("./styles");
|
|
7
|
+
const CardGridSecondaryActionsSkeleton = () => ((0, jsx_runtime_1.jsxs)(styles_1.SkeletonWrapper, { children: [(0, jsx_runtime_1.jsx)(styles_1.MenuItemWrapper, { children: (0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, { variant: "rounded", width: 110 }) }), (0, jsx_runtime_1.jsx)(styles_1.MenuItemWrapper, { children: (0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, { variant: "rounded", width: 60 }) }), (0, jsx_runtime_1.jsx)(styles_1.MenuItemWrapper, { children: (0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, { variant: "rounded", width: 90 }) })] }));
|
|
8
|
+
exports.CardGridSecondaryActionsSkeleton = CardGridSecondaryActionsSkeleton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CardGridSecondaryActionsSkeleton';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./CardGridSecondaryActionsSkeleton"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const SkeletonWrapper: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
+
export declare const MenuItemWrapper: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: import("react").ElementType<any> | undefined;
|
|
9
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MenuItemWrapper = exports.SkeletonWrapper = void 0;
|
|
4
|
+
const material_1 = require("@mui/material");
|
|
5
|
+
const styles_1 = require("../../../styles");
|
|
6
|
+
exports.SkeletonWrapper = styles_1.styled.div `
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
gap: ${({ theme }) => theme.spacing(5)};
|
|
10
|
+
|
|
11
|
+
min-width: 140px;
|
|
12
|
+
min-height: 96px;
|
|
13
|
+
padding: ${({ theme }) => theme.microSpacing(5, 6)};
|
|
14
|
+
|
|
15
|
+
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
16
|
+
gap: 0;
|
|
17
|
+
|
|
18
|
+
padding: 0;
|
|
19
|
+
}
|
|
20
|
+
`;
|
|
21
|
+
exports.MenuItemWrapper = styles_1.styled.div `
|
|
22
|
+
& .${material_1.skeletonClasses.root} {
|
|
23
|
+
height: 12px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
27
|
+
min-height: 48px;
|
|
28
|
+
padding: ${({ theme }) => theme.spacing(2, 3, 3)};
|
|
29
|
+
|
|
30
|
+
& .${material_1.skeletonClasses.root} {
|
|
31
|
+
height: 20px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
`;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type SecondaryActionsMenuContextProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Флаг состояния меню (открыто-закрыто)
|
|
5
|
+
*/
|
|
6
|
+
open: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Элемент, к которому привязано меню
|
|
9
|
+
*/
|
|
10
|
+
anchorEl: HTMLButtonElement | null;
|
|
11
|
+
};
|
|
12
|
+
export declare const SecondaryActionsMenuContext: import("react").Context<SecondaryActionsMenuContextProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SecondaryActionsMenuContext = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
exports.SecondaryActionsMenuContext = (0, react_1.createContext)({
|
|
6
|
+
open: false,
|
|
7
|
+
anchorEl: null,
|
|
8
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type SecondaryActionsMenuContextProps } from '../SecondaryActionsMenuContext';
|
|
3
|
+
type SecondaryActionsMenuProviderProps = {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
value: SecondaryActionsMenuContextProps;
|
|
6
|
+
};
|
|
7
|
+
export declare const SecondaryActionsMenuProvider: ({ children, value, }: SecondaryActionsMenuProviderProps) => JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SecondaryActionsMenuProvider = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const SecondaryActionsMenuContext_1 = require("../SecondaryActionsMenuContext");
|
|
6
|
+
const SecondaryActionsMenuProvider = ({ children, value, }) => {
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)(SecondaryActionsMenuContext_1.SecondaryActionsMenuContext.Provider, { value: value, children: children }));
|
|
8
|
+
};
|
|
9
|
+
exports.SecondaryActionsMenuProvider = SecondaryActionsMenuProvider;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SecondaryActionsMenuProvider } from './SecondaryActionsMenuProvider';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SecondaryActionsMenuProvider = void 0;
|
|
4
|
+
var SecondaryActionsMenuProvider_1 = require("./SecondaryActionsMenuProvider");
|
|
5
|
+
Object.defineProperty(exports, "SecondaryActionsMenuProvider", { enumerable: true, get: function () { return SecondaryActionsMenuProvider_1.SecondaryActionsMenuProvider; } });
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./SecondaryActionsMenuContext"), exports);
|
|
18
|
+
__exportStar(require("./SecondaryActionsMenuProvider"), exports);
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type { CardGridSecondaryActionsProps, SecondaryAction } from './types';
|
|
2
|
+
export { SecondaryActionsMenuProvider, SecondaryActionsMenuContext, } from './SecondaryActionsMenuContext';
|
|
3
|
+
export * from './CardGridSecondaryActions';
|
|
4
|
+
export * from './CardGridSecondaryActionsSkeleton';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.SecondaryActionsMenuContext = exports.SecondaryActionsMenuProvider = void 0;
|
|
18
|
+
var SecondaryActionsMenuContext_1 = require("./SecondaryActionsMenuContext");
|
|
19
|
+
Object.defineProperty(exports, "SecondaryActionsMenuProvider", { enumerable: true, get: function () { return SecondaryActionsMenuContext_1.SecondaryActionsMenuProvider; } });
|
|
20
|
+
Object.defineProperty(exports, "SecondaryActionsMenuContext", { enumerable: true, get: function () { return SecondaryActionsMenuContext_1.SecondaryActionsMenuContext; } });
|
|
21
|
+
__exportStar(require("./CardGridSecondaryActions"), exports);
|
|
22
|
+
__exportStar(require("./CardGridSecondaryActionsSkeleton"), exports);
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ConfirmActionProps } from '../../ConfirmAction';
|
|
3
|
+
import type { MenuItemProps } from '../../MenuItem';
|
|
4
|
+
export type SecondaryAction<TItem> = MenuItemProps & {
|
|
5
|
+
/**
|
|
6
|
+
* Название действия
|
|
7
|
+
*/
|
|
8
|
+
name: string;
|
|
9
|
+
/**
|
|
10
|
+
* Иконка действия
|
|
11
|
+
*/
|
|
12
|
+
icon?: ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Флаг показа выпадающего списка при клике
|
|
15
|
+
*/
|
|
16
|
+
nested?: false;
|
|
17
|
+
/**
|
|
18
|
+
* Если `true`, при клике на кнопку будет вызываться подтверждение действия
|
|
19
|
+
*/
|
|
20
|
+
needConfirm?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Поясняющий текст для подтверждения действия
|
|
23
|
+
*/
|
|
24
|
+
confirmText?: ConfirmActionProps['text'];
|
|
25
|
+
/**
|
|
26
|
+
* Параметры кнопки подтверждения действия
|
|
27
|
+
*/
|
|
28
|
+
confirmButtonProps?: ConfirmActionProps['confirmButtonProps'];
|
|
29
|
+
/**
|
|
30
|
+
* Если true, блокирует взаимодействие с actions
|
|
31
|
+
*/
|
|
32
|
+
isBlockingOperation?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Причина блокировки действия
|
|
35
|
+
*/
|
|
36
|
+
disabledReason?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Обработчик действия
|
|
39
|
+
*/
|
|
40
|
+
onClick?: (item: TItem) => void;
|
|
41
|
+
/**
|
|
42
|
+
* Если true, происходит загрузка
|
|
43
|
+
*/
|
|
44
|
+
loading?: boolean;
|
|
45
|
+
};
|
|
46
|
+
export type CardGridSecondaryActionsProps<TItem> = {
|
|
47
|
+
/**
|
|
48
|
+
* Доп. действия отображаются в виде списка элементов меню (`MenuItem`)
|
|
49
|
+
*/
|
|
50
|
+
actions?: SecondaryAction<TItem>[];
|
|
51
|
+
/**
|
|
52
|
+
* Флаг состояния загрузки, применяется когда actions подгружаются динамически
|
|
53
|
+
*/
|
|
54
|
+
isLoading?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Заголовок для мобильного drawer
|
|
57
|
+
*/
|
|
58
|
+
mobileTitle: string;
|
|
59
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EndData = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const Typography_1 = require("../../Typography");
|
|
6
|
+
const constants_1 = require("./constants");
|
|
7
|
+
const EndData = ({ endOfScrollMsg = constants_1.END_OF_SCROLL_MESSAGE }) => ((0, jsx_runtime_1.jsx)(Typography_1.Typography, { children: endOfScrollMsg }));
|
|
8
|
+
exports.EndData = EndData;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const END_OF_SCROLL_MESSAGE = "\u0412\u044B \u0434\u043E\u0441\u0442\u0438\u0433\u043B\u0438 \u043A\u043E\u043D\u0446\u0430 \u0441\u043F\u0438\u0441\u043A\u0430";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './EndData';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./EndData"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ErrorMessage = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const Button_1 = require("../../Button");
|
|
6
|
+
const Typography_1 = require("../../Typography");
|
|
7
|
+
const constants_1 = require("./constants");
|
|
8
|
+
const styles_1 = require("./styles");
|
|
9
|
+
const ErrorMessage = ({ onRetry }) => ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { children: [(0, jsx_runtime_1.jsx)(Typography_1.Typography, { align: "center", children: constants_1.ERROR_MESSAGE }), (0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: onRetry, children: "\u041F\u043E\u043F\u0440\u043E\u0431\u043E\u0432\u0430\u0442\u044C \u0441\u043D\u043E\u0432\u0430" })] }));
|
|
10
|
+
exports.ErrorMessage = ErrorMessage;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ERROR_MESSAGE = "\u041E\u0448\u0438\u0431\u043A\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0438";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ErrorMessage';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ErrorMessage"), exports);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Wrapper: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Wrapper = void 0;
|
|
4
|
+
const styles_1 = require("../../styles");
|
|
5
|
+
exports.Wrapper = styles_1.styled.div `
|
|
6
|
+
display: grid;
|
|
7
|
+
grid-template-columns: 100%;
|
|
8
|
+
grid-template-rows: max-content max-content;
|
|
9
|
+
gap: ${({ theme }) => theme.spacing(2)};
|
|
10
|
+
justify-items: center;
|
|
11
|
+
|
|
12
|
+
padding: ${({ theme }) => theme.spacing(2, 0)};
|
|
13
|
+
|
|
14
|
+
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
15
|
+
gap: ${({ theme }) => theme.spacing(4)};
|
|
16
|
+
justify-items: normal;
|
|
17
|
+
|
|
18
|
+
padding: ${({ theme }) => theme.spacing(4)};
|
|
19
|
+
}
|
|
20
|
+
`;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type FooterProps = {
|
|
3
|
+
isEndReached?: boolean;
|
|
4
|
+
isError?: boolean;
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
onRetry: () => void;
|
|
7
|
+
endOfScrollMsg?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const Footer: ({ isEndReached, isError, isLoading, onRetry, endOfScrollMsg, }: FooterProps) => JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Footer = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const Loader_1 = require("../../Loader");
|
|
6
|
+
const EndData_1 = require("../EndData");
|
|
7
|
+
const ErrorMessage_1 = require("../ErrorMessage");
|
|
8
|
+
const styles_1 = require("./styles");
|
|
9
|
+
const Footer = ({ isEndReached, isError, isLoading, onRetry, endOfScrollMsg, }) => {
|
|
10
|
+
if (!isLoading && !isError && !isEndReached) {
|
|
11
|
+
// Компонент нужен для того что бы избежать прилипания карточек к нижней границы контейнера virtuoso
|
|
12
|
+
return (0, jsx_runtime_1.jsx)(styles_1.FooterDummy, {});
|
|
13
|
+
}
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { children: [isLoading && (0, jsx_runtime_1.jsx)(Loader_1.Loader, {}), isError && (0, jsx_runtime_1.jsx)(ErrorMessage_1.ErrorMessage, { onRetry: onRetry }), isEndReached && (0, jsx_runtime_1.jsx)(EndData_1.EndData, { endOfScrollMsg: endOfScrollMsg })] }));
|
|
15
|
+
};
|
|
16
|
+
exports.Footer = Footer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Footer';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Footer"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Wrapper: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
6
|
+
export declare const FooterDummy: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: import("react").ElementType<any> | undefined;
|
|
9
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FooterDummy = exports.Wrapper = void 0;
|
|
4
|
+
const styles_1 = require("../../styles");
|
|
5
|
+
exports.Wrapper = styles_1.styled.footer `
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-shrink: 0;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
|
|
11
|
+
min-height: 64px;
|
|
12
|
+
max-height: 76px;
|
|
13
|
+
margin-top: ${({ theme }) => theme.spacing(4)};
|
|
14
|
+
|
|
15
|
+
border-top: 1px solid ${({ theme }) => theme.palette.grey[300]};
|
|
16
|
+
`;
|
|
17
|
+
exports.FooterDummy = styles_1.styled.div `
|
|
18
|
+
min-height: 20px;
|
|
19
|
+
`;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type ListProps as VirtuosoListProps } from 'react-virtuoso';
|
|
3
|
+
export declare const List: import("react").ForwardRefExoticComponent<Omit<VirtuosoListProps, "ref"> & {
|
|
4
|
+
desktopCardWidth: {
|
|
5
|
+
max: string;
|
|
6
|
+
min: string;
|
|
7
|
+
};
|
|
8
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.List = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const styles_1 = require("./styles");
|
|
7
|
+
exports.List = (0, react_1.forwardRef)(({ children, desktopCardWidth, ...restProps }, ref) => ((0, jsx_runtime_1.jsx)(styles_1.Wrapper, { ref: ref, "$gridTemplate": desktopCardWidth, ...restProps, children: children })));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './List';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./List"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Wrapper: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
} & {
|
|
6
|
+
$gridTemplate: {
|
|
7
|
+
max: string;
|
|
8
|
+
min: string;
|
|
9
|
+
};
|
|
10
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Wrapper = void 0;
|
|
4
|
+
const styles_1 = require("../../styles");
|
|
5
|
+
exports.Wrapper = styles_1.styled.div `
|
|
6
|
+
display: grid;
|
|
7
|
+
grid-template-columns: ${({ $gridTemplate }) => `repeat(auto-fill, minmax(${$gridTemplate.min}, ${$gridTemplate.max}))`};
|
|
8
|
+
gap: ${({ theme }) => theme.spacing(4)};
|
|
9
|
+
|
|
10
|
+
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
11
|
+
grid-template-columns: 100%;
|
|
12
|
+
}
|
|
13
|
+
`;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NoDataPlaceholder = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const ConfigProvider_1 = require("../../ConfigProvider");
|
|
7
|
+
const placeholders_1 = require("../../placeholders");
|
|
8
|
+
const constants_1 = require("./constants");
|
|
9
|
+
const NoDataPlaceholder = ({ noDataImgSrc }) => {
|
|
10
|
+
const { imagesMap } = (0, react_1.useContext)(ConfigProvider_1.ConfigContext);
|
|
11
|
+
const { noDataImgSrc: configProviderNoDataImgSrc } = imagesMap;
|
|
12
|
+
return ((0, jsx_runtime_1.jsx)(placeholders_1.Placeholder, { title: constants_1.NO_DATA_TEXT, imgSrc: noDataImgSrc ?? configProviderNoDataImgSrc, size: "medium" }));
|
|
13
|
+
};
|
|
14
|
+
exports.NoDataPlaceholder = NoDataPlaceholder;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const NO_DATA_TEXT = "\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445";
|