@astral/ui 4.105.0 → 4.106.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/ActionCellBase/ActionCellBase.js +10 -1
- package/components/ActionCellBase/MainAction/MainAction.js +6 -0
- package/components/ActionCellBase/MainAction/MainIconButton/MainIconButton.js +7 -4
- package/components/ActionCellBase/MainAction/MainIconButton/constants.d.ts +3 -0
- package/components/ActionCellBase/MainAction/MainIconButton/constants.js +4 -0
- package/components/ActionCellBase/MainAction/MainIconButton/styles.d.ts +11 -0
- package/components/ActionCellBase/MainAction/MainIconButton/styles.js +9 -0
- package/components/ActionCellBase/MainAction/MobileMainButton/MobileMainButton.d.ts +14 -0
- package/components/ActionCellBase/MainAction/MobileMainButton/MobileMainButton.js +17 -0
- package/components/ActionCellBase/MainAction/MobileMainButton/index.d.ts +1 -0
- package/components/ActionCellBase/MainAction/MobileMainButton/index.js +1 -0
- package/components/ActionCellBase/MainAction/MobileMainButton/styles.d.ts +11 -0
- package/components/ActionCellBase/MainAction/MobileMainButton/styles.js +7 -0
- package/components/ActionCellBase/SecondaryAction/SecondaryAction.js +2 -2
- package/components/ActionCellBase/SecondaryAction/styles.d.ts +4 -0
- package/components/ActionCellBase/SecondaryAction/styles.js +9 -0
- package/components/ActionCellBase/constants.d.ts +4 -0
- package/components/ActionCellBase/constants.js +5 -0
- package/components/ActionCellBase/styles.js +11 -0
- package/components/ActionCellBase/types.d.ts +25 -0
- package/components/InfiniteTreeList/InfiniteTreeList.js +16 -2
- package/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContext.d.ts +4 -0
- package/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContext.js +1 -0
- package/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContextProvider/InfiniteTreeListContextProvider.d.ts +2 -2
- package/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContextProvider/InfiniteTreeListContextProvider.js +3 -1
- package/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/styles.js +8 -0
- package/components/InfiniteTreeList/InfiniteTreeListItem/InfiniteTreeListItem.js +7 -4
- package/components/InfiniteTreeList/InfiniteTreeListItem/constants.d.ts +2 -0
- package/components/InfiniteTreeList/InfiniteTreeListItem/constants.js +2 -0
- package/components/InfiniteTreeList/InfiniteTreeListItem/index.d.ts +1 -0
- package/components/InfiniteTreeList/InfiniteTreeListItem/index.js +1 -0
- package/components/InfiniteTreeList/InfiniteTreeListItem/styles.d.ts +14 -0
- package/components/InfiniteTreeList/InfiniteTreeListItem/styles.js +66 -2
- package/components/InfiniteTreeList/LevelHeader/LevelHeader.d.ts +5 -0
- package/components/InfiniteTreeList/LevelHeader/LevelHeader.js +17 -0
- package/components/InfiniteTreeList/LevelHeader/constants.d.ts +3 -0
- package/components/InfiniteTreeList/LevelHeader/constants.js +3 -0
- package/components/InfiniteTreeList/LevelHeader/index.d.ts +2 -0
- package/components/InfiniteTreeList/LevelHeader/index.js +2 -0
- package/components/InfiniteTreeList/LevelHeader/styles.d.ts +365 -0
- package/components/InfiniteTreeList/LevelHeader/styles.js +51 -0
- package/components/InfiniteTreeList/LevelHeader/types.d.ts +14 -0
- package/components/InfiniteTreeList/LevelHeader/types.js +1 -0
- package/components/InfiniteTreeList/ListFooter/styles.js +8 -0
- package/components/InfiniteTreeList/OnTopButton/styles.js +7 -0
- package/components/InfiniteTreeList/ParentItems/Item/Item.js +10 -2
- package/components/InfiniteTreeList/ParentItems/Item/useLogic/useLogic.d.ts +1 -0
- package/components/InfiniteTreeList/ParentItems/Item/useLogic/useLogic.js +10 -2
- package/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/NoDataRow/NoDataRow.js +2 -2
- package/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/NoDataRow/styles.d.ts +3 -0
- package/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/NoDataRow/styles.js +11 -0
- package/components/InfiniteTreeList/TreeItem/TreeItem.js +6 -3
- package/components/InfiniteTreeList/TreeItem/styles.js +19 -0
- package/components/InfiniteTreeList/TreeItem/useLogic/useLogic.d.ts +2 -1
- package/components/InfiniteTreeList/TreeItem/useLogic/useLogic.js +5 -4
- package/components/InfiniteTreeList/constants.d.ts +21 -0
- package/components/InfiniteTreeList/constants.js +21 -0
- package/components/InfiniteTreeList/hooks/index.d.ts +2 -0
- package/components/InfiniteTreeList/hooks/index.js +2 -0
- package/components/InfiniteTreeList/hooks/useLevelNavigation/index.d.ts +2 -0
- package/components/InfiniteTreeList/hooks/useLevelNavigation/index.js +2 -0
- package/components/InfiniteTreeList/hooks/useLevelNavigation/types.d.ts +15 -0
- package/components/InfiniteTreeList/hooks/useLevelNavigation/types.js +1 -0
- package/components/InfiniteTreeList/hooks/useLevelNavigation/useLevelNavigation.d.ts +15 -0
- package/components/InfiniteTreeList/hooks/useLevelNavigation/useLevelNavigation.js +48 -0
- package/components/InfiniteTreeList/hooks/useListScroll/hooks/index.d.ts +3 -0
- package/components/InfiniteTreeList/hooks/useListScroll/hooks/index.js +3 -0
- package/components/InfiniteTreeList/hooks/useListScroll/hooks/useLevelSnapshots/index.d.ts +2 -0
- package/components/InfiniteTreeList/hooks/useListScroll/hooks/useLevelSnapshots/index.js +2 -0
- package/components/InfiniteTreeList/hooks/useListScroll/hooks/useLevelSnapshots/types.d.ts +16 -0
- package/components/InfiniteTreeList/hooks/useListScroll/hooks/useLevelSnapshots/types.js +1 -0
- package/components/InfiniteTreeList/hooks/useListScroll/hooks/useLevelSnapshots/useLevelSnapshots.d.ts +12 -0
- package/components/InfiniteTreeList/hooks/useListScroll/hooks/useLevelSnapshots/useLevelSnapshots.js +42 -0
- package/components/InfiniteTreeList/hooks/useListScroll/hooks/useScrollToTopButton/index.d.ts +2 -0
- package/components/InfiniteTreeList/hooks/useListScroll/hooks/useScrollToTopButton/index.js +2 -0
- package/components/InfiniteTreeList/hooks/useListScroll/hooks/useScrollToTopButton/types.d.ts +12 -0
- package/components/InfiniteTreeList/hooks/useListScroll/hooks/useScrollToTopButton/types.js +1 -0
- package/components/InfiniteTreeList/hooks/useListScroll/hooks/useScrollToTopButton/useScrollToTopButton.d.ts +15 -0
- package/components/InfiniteTreeList/hooks/useListScroll/hooks/useScrollToTopButton/useScrollToTopButton.js +27 -0
- package/components/InfiniteTreeList/hooks/useListScroll/hooks/useTailWatcher/index.d.ts +2 -0
- package/components/InfiniteTreeList/hooks/useListScroll/hooks/useTailWatcher/index.js +2 -0
- package/components/InfiniteTreeList/hooks/useListScroll/hooks/useTailWatcher/types.d.ts +11 -0
- package/components/InfiniteTreeList/hooks/useListScroll/hooks/useTailWatcher/types.js +1 -0
- package/components/InfiniteTreeList/hooks/useListScroll/hooks/useTailWatcher/useTailWatcher.d.ts +12 -0
- package/components/InfiniteTreeList/hooks/useListScroll/hooks/useTailWatcher/useTailWatcher.js +39 -0
- package/components/InfiniteTreeList/hooks/useListScroll/types.d.ts +14 -2
- package/components/InfiniteTreeList/hooks/useListScroll/useListScroll.d.ts +9 -6
- package/components/InfiniteTreeList/hooks/useListScroll/useListScroll.js +192 -28
- package/components/InfiniteTreeList/hooks/useListScroll/utils/getOffsetTop/getOffsetTop.d.ts +4 -0
- package/components/InfiniteTreeList/hooks/useListScroll/utils/getOffsetTop/getOffsetTop.js +6 -0
- package/components/InfiniteTreeList/hooks/useListScroll/utils/getOffsetTop/index.d.ts +1 -0
- package/components/InfiniteTreeList/hooks/useListScroll/utils/getOffsetTop/index.js +1 -0
- package/components/InfiniteTreeList/hooks/useListScroll/utils/index.d.ts +1 -0
- package/components/InfiniteTreeList/hooks/useListScroll/utils/index.js +1 -0
- package/components/InfiniteTreeList/hooks/useNodeTitleValidation/index.d.ts +2 -0
- package/components/InfiniteTreeList/hooks/useNodeTitleValidation/index.js +2 -0
- package/components/InfiniteTreeList/hooks/useNodeTitleValidation/types.d.ts +14 -0
- package/components/InfiniteTreeList/hooks/useNodeTitleValidation/types.js +1 -0
- package/components/InfiniteTreeList/hooks/useNodeTitleValidation/useNodeTitleValidation.d.ts +5 -0
- package/components/InfiniteTreeList/hooks/useNodeTitleValidation/useNodeTitleValidation.js +18 -0
- package/components/InfiniteTreeList/styles.d.ts +5 -0
- package/components/InfiniteTreeList/styles.js +41 -0
- package/components/InfiniteTreeList/types.d.ts +4 -0
- package/components/InfiniteTreeList/useLogic/useLogic.d.ts +13 -5
- package/components/InfiniteTreeList/useLogic/useLogic.js +165 -27
- package/components/InfiniteTreeList/utils/checkHasFooterContent/checkHasFooterContent.d.ts +5 -0
- package/components/InfiniteTreeList/utils/checkHasFooterContent/checkHasFooterContent.js +4 -0
- package/components/InfiniteTreeList/utils/checkHasFooterContent/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/checkHasFooterContent/index.js +1 -0
- package/components/InfiniteTreeList/utils/checkHasNested/checkHasNested.d.ts +6 -0
- package/components/InfiniteTreeList/utils/checkHasNested/checkHasNested.js +5 -0
- package/components/InfiniteTreeList/utils/checkHasNested/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/checkHasNested/index.js +1 -0
- package/components/InfiniteTreeList/utils/createTailRegistry/createTailRegistry.d.ts +8 -3
- package/components/InfiniteTreeList/utils/createTailRegistry/createTailRegistry.js +30 -12
- package/components/InfiniteTreeList/utils/flattenTree/flattenTree.js +2 -1
- package/components/InfiniteTreeList/utils/getLevelKey/getLevelKey.d.ts +4 -0
- package/components/InfiniteTreeList/utils/getLevelKey/getLevelKey.js +5 -0
- package/components/InfiniteTreeList/utils/getLevelKey/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/getLevelKey/index.js +1 -0
- package/components/InfiniteTreeList/utils/index.d.ts +3 -0
- package/components/InfiniteTreeList/utils/index.js +3 -0
- package/components/useScrollManagement/useScrollManagement.js +7 -6
- package/node/components/ActionCellBase/ActionCellBase.js +10 -1
- package/node/components/ActionCellBase/MainAction/MainAction.js +6 -0
- package/node/components/ActionCellBase/MainAction/MainIconButton/MainIconButton.js +7 -4
- package/node/components/ActionCellBase/MainAction/MainIconButton/constants.d.ts +3 -0
- package/node/components/ActionCellBase/MainAction/MainIconButton/constants.js +7 -0
- package/node/components/ActionCellBase/MainAction/MainIconButton/styles.d.ts +11 -0
- package/node/components/ActionCellBase/MainAction/MainIconButton/styles.js +12 -0
- package/node/components/ActionCellBase/MainAction/MobileMainButton/MobileMainButton.d.ts +14 -0
- package/node/components/ActionCellBase/MainAction/MobileMainButton/MobileMainButton.js +21 -0
- package/node/components/ActionCellBase/MainAction/MobileMainButton/index.d.ts +1 -0
- package/node/components/ActionCellBase/MainAction/MobileMainButton/index.js +17 -0
- package/node/components/ActionCellBase/MainAction/MobileMainButton/styles.d.ts +11 -0
- package/node/components/ActionCellBase/MainAction/MobileMainButton/styles.js +10 -0
- package/node/components/ActionCellBase/SecondaryAction/SecondaryAction.js +2 -2
- package/node/components/ActionCellBase/SecondaryAction/styles.d.ts +4 -0
- package/node/components/ActionCellBase/SecondaryAction/styles.js +12 -0
- package/node/components/ActionCellBase/constants.d.ts +4 -0
- package/node/components/ActionCellBase/constants.js +8 -0
- package/node/components/ActionCellBase/styles.js +11 -0
- package/node/components/ActionCellBase/types.d.ts +25 -0
- package/node/components/InfiniteTreeList/InfiniteTreeList.js +16 -2
- package/node/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContext.d.ts +4 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContext.js +1 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContextProvider/InfiniteTreeListContextProvider.d.ts +2 -2
- package/node/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContextProvider/InfiniteTreeListContextProvider.js +3 -1
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/styles.js +8 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/InfiniteTreeListItem.js +6 -3
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/constants.d.ts +2 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/constants.js +2 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/index.js +3 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/styles.d.ts +14 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/styles.js +67 -3
- package/node/components/InfiniteTreeList/LevelHeader/LevelHeader.d.ts +5 -0
- package/node/components/InfiniteTreeList/LevelHeader/LevelHeader.js +21 -0
- package/node/components/InfiniteTreeList/LevelHeader/constants.d.ts +3 -0
- package/node/components/InfiniteTreeList/LevelHeader/constants.js +6 -0
- package/node/components/InfiniteTreeList/LevelHeader/index.d.ts +2 -0
- package/node/components/InfiniteTreeList/LevelHeader/index.js +18 -0
- package/node/components/InfiniteTreeList/LevelHeader/styles.d.ts +365 -0
- package/node/components/InfiniteTreeList/LevelHeader/styles.js +54 -0
- package/node/components/InfiniteTreeList/LevelHeader/types.d.ts +14 -0
- package/node/components/InfiniteTreeList/LevelHeader/types.js +2 -0
- package/node/components/InfiniteTreeList/ListFooter/styles.js +8 -0
- package/node/components/InfiniteTreeList/OnTopButton/styles.js +7 -0
- package/node/components/InfiniteTreeList/ParentItems/Item/Item.js +10 -2
- package/node/components/InfiniteTreeList/ParentItems/Item/useLogic/useLogic.d.ts +1 -0
- package/node/components/InfiniteTreeList/ParentItems/Item/useLogic/useLogic.js +10 -2
- package/node/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/NoDataRow/NoDataRow.js +2 -2
- package/node/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/NoDataRow/styles.d.ts +3 -0
- package/node/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/NoDataRow/styles.js +14 -0
- package/node/components/InfiniteTreeList/TreeItem/TreeItem.js +6 -3
- package/node/components/InfiniteTreeList/TreeItem/styles.js +19 -0
- package/node/components/InfiniteTreeList/TreeItem/useLogic/useLogic.d.ts +2 -1
- package/node/components/InfiniteTreeList/TreeItem/useLogic/useLogic.js +4 -3
- package/node/components/InfiniteTreeList/constants.d.ts +21 -0
- package/node/components/InfiniteTreeList/constants.js +22 -1
- package/node/components/InfiniteTreeList/hooks/index.d.ts +2 -0
- package/node/components/InfiniteTreeList/hooks/index.js +2 -0
- package/node/components/InfiniteTreeList/hooks/useLevelNavigation/index.d.ts +2 -0
- package/node/components/InfiniteTreeList/hooks/useLevelNavigation/index.js +18 -0
- package/node/components/InfiniteTreeList/hooks/useLevelNavigation/types.d.ts +15 -0
- package/node/components/InfiniteTreeList/hooks/useLevelNavigation/types.js +2 -0
- package/node/components/InfiniteTreeList/hooks/useLevelNavigation/useLevelNavigation.d.ts +15 -0
- package/node/components/InfiniteTreeList/hooks/useLevelNavigation/useLevelNavigation.js +52 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/hooks/index.d.ts +3 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/hooks/index.js +19 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/hooks/useLevelSnapshots/index.d.ts +2 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/hooks/useLevelSnapshots/index.js +18 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/hooks/useLevelSnapshots/types.d.ts +16 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/hooks/useLevelSnapshots/types.js +2 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/hooks/useLevelSnapshots/useLevelSnapshots.d.ts +12 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/hooks/useLevelSnapshots/useLevelSnapshots.js +46 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/hooks/useScrollToTopButton/index.d.ts +2 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/hooks/useScrollToTopButton/index.js +18 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/hooks/useScrollToTopButton/types.d.ts +12 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/hooks/useScrollToTopButton/types.js +2 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/hooks/useScrollToTopButton/useScrollToTopButton.d.ts +15 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/hooks/useScrollToTopButton/useScrollToTopButton.js +31 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/hooks/useTailWatcher/index.d.ts +2 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/hooks/useTailWatcher/index.js +18 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/hooks/useTailWatcher/types.d.ts +11 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/hooks/useTailWatcher/types.js +2 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/hooks/useTailWatcher/useTailWatcher.d.ts +12 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/hooks/useTailWatcher/useTailWatcher.js +43 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/types.d.ts +14 -2
- package/node/components/InfiniteTreeList/hooks/useListScroll/useListScroll.d.ts +9 -6
- package/node/components/InfiniteTreeList/hooks/useListScroll/useListScroll.js +190 -26
- package/node/components/InfiniteTreeList/hooks/useListScroll/utils/getOffsetTop/getOffsetTop.d.ts +4 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/utils/getOffsetTop/getOffsetTop.js +10 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/utils/getOffsetTop/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/utils/getOffsetTop/index.js +17 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/utils/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/utils/index.js +17 -0
- package/node/components/InfiniteTreeList/hooks/useNodeTitleValidation/index.d.ts +2 -0
- package/node/components/InfiniteTreeList/hooks/useNodeTitleValidation/index.js +18 -0
- package/node/components/InfiniteTreeList/hooks/useNodeTitleValidation/types.d.ts +14 -0
- package/node/components/InfiniteTreeList/hooks/useNodeTitleValidation/types.js +2 -0
- package/node/components/InfiniteTreeList/hooks/useNodeTitleValidation/useNodeTitleValidation.d.ts +5 -0
- package/node/components/InfiniteTreeList/hooks/useNodeTitleValidation/useNodeTitleValidation.js +22 -0
- package/node/components/InfiniteTreeList/styles.d.ts +5 -0
- package/node/components/InfiniteTreeList/styles.js +44 -0
- package/node/components/InfiniteTreeList/types.d.ts +4 -0
- package/node/components/InfiniteTreeList/useLogic/useLogic.d.ts +13 -5
- package/node/components/InfiniteTreeList/useLogic/useLogic.js +162 -24
- package/node/components/InfiniteTreeList/utils/checkHasFooterContent/checkHasFooterContent.d.ts +5 -0
- package/node/components/InfiniteTreeList/utils/checkHasFooterContent/checkHasFooterContent.js +8 -0
- package/node/components/InfiniteTreeList/utils/checkHasFooterContent/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/checkHasFooterContent/index.js +17 -0
- package/node/components/InfiniteTreeList/utils/checkHasNested/checkHasNested.d.ts +6 -0
- package/node/components/InfiniteTreeList/utils/checkHasNested/checkHasNested.js +9 -0
- package/node/components/InfiniteTreeList/utils/checkHasNested/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/checkHasNested/index.js +17 -0
- package/node/components/InfiniteTreeList/utils/createTailRegistry/createTailRegistry.d.ts +8 -3
- package/node/components/InfiniteTreeList/utils/createTailRegistry/createTailRegistry.js +30 -12
- package/node/components/InfiniteTreeList/utils/flattenTree/flattenTree.js +2 -1
- package/node/components/InfiniteTreeList/utils/getLevelKey/getLevelKey.d.ts +4 -0
- package/node/components/InfiniteTreeList/utils/getLevelKey/getLevelKey.js +9 -0
- package/node/components/InfiniteTreeList/utils/getLevelKey/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/getLevelKey/index.js +17 -0
- package/node/components/InfiniteTreeList/utils/index.d.ts +3 -0
- package/node/components/InfiniteTreeList/utils/index.js +3 -0
- package/node/components/useScrollManagement/useScrollManagement.js +6 -5
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("../../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
3
|
+
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
4
|
+
loading?: boolean | undefined;
|
|
5
|
+
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
6
|
+
component?: import("react").ElementType | undefined;
|
|
7
|
+
selected?: boolean | undefined;
|
|
8
|
+
size?: "large" | "medium" | undefined;
|
|
9
|
+
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
10
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StyledButton = void 0;
|
|
4
|
+
const Button_1 = require("../../../Button");
|
|
5
|
+
const styled_1 = require("../../../styled");
|
|
6
|
+
exports.StyledButton = (0, styled_1.styled)(Button_1.Button) `
|
|
7
|
+
order: 1;
|
|
8
|
+
|
|
9
|
+
width: 100%;
|
|
10
|
+
`;
|
|
@@ -4,10 +4,10 @@ exports.SecondaryActions = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const DotsVOutlineMd_1 = require("../../../icons/DotsVOutlineMd");
|
|
7
|
-
const IconDropdownButton_1 = require("../../IconDropdownButton");
|
|
8
7
|
const MenuItem_1 = require("../../MenuItem");
|
|
8
|
+
const styles_1 = require("./styles");
|
|
9
9
|
const SecondaryActions = ({ actions, onActionClick, isDisabled, }) => {
|
|
10
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)(styles_1.StyledIconDropdownButton, { "aria-label": "\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F", title: "\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F", icon: (0, jsx_runtime_1.jsx)(DotsVOutlineMd_1.DotsVOutlineMd, {}), variant: "text", disabled: isDisabled, children: actions.map((action) => {
|
|
11
11
|
const { onClick, name } = action;
|
|
12
12
|
return ((0, react_1.createElement)(MenuItem_1.MenuItem, { ...action, key: name, tooltipPlacement: "left", onClick: onActionClick(onClick) }, name));
|
|
13
13
|
}) }));
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledIconDropdownButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("../../IconDropdownButton").IconDropdownButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StyledIconDropdownButton = void 0;
|
|
4
|
+
const IconDropdownButton_1 = require("../../IconDropdownButton");
|
|
5
|
+
const styled_1 = require("../../styled");
|
|
6
|
+
exports.StyledIconDropdownButton = (0, styled_1.styled)(IconDropdownButton_1.IconDropdownButton) `
|
|
7
|
+
${({ theme }) => theme.breakpoints.down('mobile')} {
|
|
8
|
+
order: 3;
|
|
9
|
+
|
|
10
|
+
background-color: ${({ theme }) => theme.palette.grey[100]};
|
|
11
|
+
}
|
|
12
|
+
`;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.actionCellBaseClassnames = void 0;
|
|
4
|
+
const createUIKitClassname_1 = require("../utils/createUIKitClassname");
|
|
5
|
+
exports.actionCellBaseClassnames = {
|
|
6
|
+
root: (0, createUIKitClassname_1.createUIKitClassname)('action-cell-base'),
|
|
7
|
+
hasMainActions: (0, createUIKitClassname_1.createUIKitClassname)('action-cell-base_has-main-actions'),
|
|
8
|
+
};
|
|
@@ -2,7 +2,18 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Wrapper = void 0;
|
|
4
4
|
const styled_1 = require("../styled");
|
|
5
|
+
const constants_1 = require("./constants");
|
|
5
6
|
exports.Wrapper = styled_1.styled.div `
|
|
6
7
|
display: inline-flex;
|
|
7
8
|
align-items: center;
|
|
9
|
+
|
|
10
|
+
${({ theme }) => theme.breakpoints.down('mobile')} {
|
|
11
|
+
gap: ${({ theme }) => theme.spacing(3)};
|
|
12
|
+
|
|
13
|
+
width: auto;
|
|
14
|
+
|
|
15
|
+
&.${constants_1.actionCellBaseClassnames.hasMainActions} {
|
|
16
|
+
width: 100%;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
8
19
|
`;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { MouseEventHandler, ReactNode } from 'react';
|
|
2
|
+
import { type ButtonColor } from '../Button';
|
|
2
3
|
import { type ConfirmActionProps } from '../ConfirmAction';
|
|
3
4
|
import { type IconButtonProps } from '../IconButton';
|
|
4
5
|
import { type MenuItemProps } from '../MenuItem';
|
|
@@ -33,6 +34,10 @@ export type SingleAction<TAction> = {
|
|
|
33
34
|
* Поясняющий текст для подтверждения действия
|
|
34
35
|
*/
|
|
35
36
|
confirmText?: ConfirmActionProps['text'];
|
|
37
|
+
/**
|
|
38
|
+
* Заголовок подтверждения действия на мобильной ширине
|
|
39
|
+
*/
|
|
40
|
+
confirmMobileTitle?: string;
|
|
36
41
|
/**
|
|
37
42
|
* Параметры кнопки подтверждения действия
|
|
38
43
|
*/
|
|
@@ -49,6 +54,26 @@ export type SingleAction<TAction> = {
|
|
|
49
54
|
* Причина блокировки строки во время загрузки
|
|
50
55
|
*/
|
|
51
56
|
loadingNote?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Если `true`, на мобильной ширине действие отображается кнопкой с текстом,
|
|
59
|
+
* а не иконкой
|
|
60
|
+
*/
|
|
61
|
+
isMobilePrimary?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Параметры кнопки действия на мобильной ширине
|
|
64
|
+
*/
|
|
65
|
+
mobileProps?: {
|
|
66
|
+
/**
|
|
67
|
+
* Текст кнопки
|
|
68
|
+
* @default name
|
|
69
|
+
*/
|
|
70
|
+
text?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Цвет кнопки
|
|
73
|
+
* @default 'primary'
|
|
74
|
+
*/
|
|
75
|
+
color?: ButtonColor;
|
|
76
|
+
};
|
|
52
77
|
/**
|
|
53
78
|
* Обработчик действия
|
|
54
79
|
*/
|
|
@@ -5,14 +5,28 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
// cspell:ignore Виртуализированное
|
|
6
6
|
const react_virtuoso_1 = require("react-virtuoso");
|
|
7
7
|
const ContentState_1 = require("../ContentState");
|
|
8
|
+
const constants_1 = require("../constants");
|
|
9
|
+
const cva_1 = require("../utils/cva");
|
|
10
|
+
const constants_2 = require("./constants");
|
|
8
11
|
const InfiniteTreeListContext_1 = require("./InfiniteTreeListContext");
|
|
12
|
+
const LevelHeader_1 = require("./LevelHeader");
|
|
9
13
|
const ListFooter_1 = require("./ListFooter");
|
|
10
14
|
const NoDataPlaceholder_1 = require("./NoDataPlaceholder");
|
|
11
15
|
const OnTopButton_1 = require("./OnTopButton");
|
|
12
16
|
const ParentItems_1 = require("./ParentItems");
|
|
17
|
+
const styles_1 = require("./styles");
|
|
13
18
|
const TreeItem_1 = require("./TreeItem");
|
|
14
19
|
const useLogic_1 = require("./useLogic");
|
|
15
20
|
const computeItemKey = (_, item) => item.id;
|
|
21
|
+
const rootCva = (0, cva_1.cva)([constants_1.selfContainedClassname, constants_2.infiniteTreeListClassnames.root], {
|
|
22
|
+
variants: {
|
|
23
|
+
state: {
|
|
24
|
+
loading: constants_2.infiniteTreeListClassnames.loading,
|
|
25
|
+
error: constants_2.infiniteTreeListClassnames.error,
|
|
26
|
+
noData: constants_2.infiniteTreeListClassnames.noData,
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
});
|
|
16
30
|
/**
|
|
17
31
|
* Виртуализированное дерево с бесконечной подгрузкой
|
|
18
32
|
*
|
|
@@ -32,7 +46,7 @@ const computeItemKey = (_, item) => item.id;
|
|
|
32
46
|
* />
|
|
33
47
|
*/
|
|
34
48
|
const InfiniteTreeList = (props) => {
|
|
35
|
-
const {
|
|
36
|
-
return ((0, jsx_runtime_1.jsxs)(InfiniteTreeListContext_1.InfiniteTreeListContextProvider, { itemSkeleton: itemSkeleton, nodePaginationMap: nodePaginationMap, registerChildren: registerChildren, notifyExpand: notifyExpand, onListRetry: onRetry, enterAnimation: enterAnimation, tailRegistry: tailRegistry, renderItem: renderItem, renderParent: renderParent, onToggle: onToggle, acquireParentSlot: acquireParentSlot, children: [(0, jsx_runtime_1.jsx)(ParentItems_1.ParentItems, { parents: parentItems }), (0, jsx_runtime_1.jsx)(ContentState_1.ContentState, { ...contentStateProps, children:
|
|
49
|
+
const { displayedList, levelKey, lastRowId, levelHeaderProps, onToggle, contentStateProps, isNoData, state, scrollParent, listRef, virtuosoProps, footerContext, onTopButtonProps, renderItem, renderParent, itemSkeleton, onRetry, noDataImgSrc, enterAnimation, tailRegistry, nodePaginationMap, registerChildren, notifyExpand, parentItems, acquireParentSlot, } = (0, useLogic_1.useLogic)(props);
|
|
50
|
+
return ((0, jsx_runtime_1.jsx)(styles_1.InfiniteTreeListWrapper, { ref: listRef, className: rootCva({ state }), children: (0, jsx_runtime_1.jsxs)(InfiniteTreeListContext_1.InfiniteTreeListContextProvider, { itemSkeleton: itemSkeleton, nodePaginationMap: nodePaginationMap, registerChildren: registerChildren, notifyExpand: notifyExpand, onListRetry: onRetry, enterAnimation: enterAnimation, tailRegistry: tailRegistry, renderItem: renderItem, renderParent: renderParent, onToggle: onToggle, acquireParentSlot: acquireParentSlot, lastRowId: lastRowId, children: [(0, jsx_runtime_1.jsx)(ParentItems_1.ParentItems, { parents: parentItems }), levelHeaderProps && (0, jsx_runtime_1.jsx)(LevelHeader_1.LevelHeader, { ...levelHeaderProps }), (0, jsx_runtime_1.jsxs)(ContentState_1.ContentState, { ...contentStateProps, children: [isNoData && (0, jsx_runtime_1.jsx)(NoDataPlaceholder_1.NoDataPlaceholder, { noDataImgSrc: noDataImgSrc }), !isNoData && scrollParent && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_virtuoso_1.Virtuoso, { ...virtuosoProps, data: displayedList, customScrollParent: scrollParent, computeItemKey: computeItemKey, context: footerContext, components: { Item: TreeItem_1.TreeItem, Footer: ListFooter_1.ListFooter } }, levelKey), (0, jsx_runtime_1.jsx)(OnTopButton_1.OnTopButton, { ...onTopButtonProps })] }))] })] }) }));
|
|
37
51
|
};
|
|
38
52
|
exports.InfiniteTreeList = InfiniteTreeList;
|
package/node/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContext.d.ts
CHANGED
|
@@ -84,5 +84,9 @@ export type InfiniteTreeListContextProps = {
|
|
|
84
84
|
* виртуализации, а её контейнер переносится в строку скролла
|
|
85
85
|
*/
|
|
86
86
|
acquireParentSlot: (itemId: string) => HTMLDivElement | null;
|
|
87
|
+
/**
|
|
88
|
+
* Id последней строки данных
|
|
89
|
+
*/
|
|
90
|
+
lastRowId?: string;
|
|
87
91
|
};
|
|
88
92
|
export declare const InfiniteTreeListContext: import("react").Context<InfiniteTreeListContextProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import { type InfiniteTreeListContextProps } from '../InfiniteTreeListContext';
|
|
3
|
-
type Props = Pick<InfiniteTreeListContextProps, 'itemSkeleton' | 'nodePaginationMap' | 'enterAnimation' | 'tailRegistry' | 'registerChildren' | 'notifyExpand' | 'renderItem' | 'renderParent' | 'onToggle' | 'acquireParentSlot'> & {
|
|
3
|
+
type Props = Pick<InfiniteTreeListContextProps, 'itemSkeleton' | 'nodePaginationMap' | 'enterAnimation' | 'tailRegistry' | 'registerChildren' | 'notifyExpand' | 'renderItem' | 'renderParent' | 'onToggle' | 'acquireParentSlot' | 'lastRowId'> & {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
onListRetry: () => void;
|
|
6
6
|
};
|
|
7
|
-
export declare const InfiniteTreeListContextProvider: ({ children, itemSkeleton, nodePaginationMap, onListRetry, registerChildren, notifyExpand, enterAnimation, tailRegistry, renderItem, renderParent, onToggle, acquireParentSlot, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const InfiniteTreeListContextProvider: ({ children, itemSkeleton, nodePaginationMap, onListRetry, registerChildren, notifyExpand, enterAnimation, tailRegistry, renderItem, renderParent, onToggle, acquireParentSlot, lastRowId, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -4,7 +4,7 @@ exports.InfiniteTreeListContextProvider = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const InfiniteTreeListContext_1 = require("../InfiniteTreeListContext");
|
|
7
|
-
const InfiniteTreeListContextProvider = ({ children, itemSkeleton, nodePaginationMap, onListRetry, registerChildren, notifyExpand, enterAnimation, tailRegistry, renderItem, renderParent, onToggle, acquireParentSlot, }) => {
|
|
7
|
+
const InfiniteTreeListContextProvider = ({ children, itemSkeleton, nodePaginationMap, onListRetry, registerChildren, notifyExpand, enterAnimation, tailRegistry, renderItem, renderParent, onToggle, acquireParentSlot, lastRowId, }) => {
|
|
8
8
|
const [disabledIdList, setDisabledIdList] = (0, react_1.useState)(new Set());
|
|
9
9
|
const childrenCallbacksRef = (0, react_1.useRef)({});
|
|
10
10
|
const setDisabled = (0, react_1.useCallback)((itemId, disabled) => {
|
|
@@ -54,6 +54,7 @@ const InfiniteTreeListContextProvider = ({ children, itemSkeleton, nodePaginatio
|
|
|
54
54
|
enterAnimation,
|
|
55
55
|
tailRegistry,
|
|
56
56
|
acquireParentSlot,
|
|
57
|
+
lastRowId,
|
|
57
58
|
}), [
|
|
58
59
|
renderItem,
|
|
59
60
|
renderParent,
|
|
@@ -70,6 +71,7 @@ const InfiniteTreeListContextProvider = ({ children, itemSkeleton, nodePaginatio
|
|
|
70
71
|
enterAnimation,
|
|
71
72
|
tailRegistry,
|
|
72
73
|
acquireParentSlot,
|
|
74
|
+
lastRowId,
|
|
73
75
|
]);
|
|
74
76
|
return ((0, jsx_runtime_1.jsx)(InfiniteTreeListContext_1.InfiniteTreeListContext.Provider, { value: value, children: children }));
|
|
75
77
|
};
|
|
@@ -8,4 +8,12 @@ exports.Wrapper = styled_1.styled.div `
|
|
|
8
8
|
align-items: center;
|
|
9
9
|
|
|
10
10
|
padding: ${({ theme }) => theme.spacing(0, 4)};
|
|
11
|
+
|
|
12
|
+
${({ theme }) => theme.breakpoints.down('mobile')} {
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
gap: ${({ theme }) => theme.microSpacing(9)};
|
|
15
|
+
|
|
16
|
+
width: 100%;
|
|
17
|
+
padding: ${({ theme }) => theme.microSpacing(11, 0, 10)};
|
|
18
|
+
}
|
|
11
19
|
`;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InfiniteTreeListItem = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const Chevron_1 = require("../../Chevron");
|
|
6
5
|
const ContentState_1 = require("../../ContentState");
|
|
7
6
|
const Loader_1 = require("../../Loader");
|
|
8
7
|
const Tooltip_1 = require("../../Tooltip");
|
|
@@ -24,6 +23,9 @@ const infiniteTreeListItemCva = (0, cva_1.cva)(constants_1.infiniteTreeListItemC
|
|
|
24
23
|
hasNested: {
|
|
25
24
|
true: constants_1.infiniteTreeListItemClassnames.hasNested,
|
|
26
25
|
},
|
|
26
|
+
hasActions: {
|
|
27
|
+
true: constants_1.infiniteTreeListItemClassnames.hasActions,
|
|
28
|
+
},
|
|
27
29
|
},
|
|
28
30
|
});
|
|
29
31
|
const InfiniteTreeListItem = (props) => {
|
|
@@ -32,10 +34,11 @@ const InfiniteTreeListItem = (props) => {
|
|
|
32
34
|
if (isRowError) {
|
|
33
35
|
return (0, jsx_runtime_1.jsx)(ErrorPlaceholder_1.ErrorPlaceholder, { onRetry: onRetry, errorMsg: errorMsg });
|
|
34
36
|
}
|
|
35
|
-
return ((0, jsx_runtime_1.jsx)(ContentState_1.ContentState, { isLoading: isRowLoading, isSmoothLoading: false, loadingContent: (0, jsx_runtime_1.jsx)(styles_1.Wrapper, { className: infiniteTreeListItemCva({ isLoading: true }), children: itemSkeleton || ((0, jsx_runtime_1.jsx)(styles_1.LoaderWrapper, { children: (0, jsx_runtime_1.jsx)(Loader_1.Loader, {}) })) }), children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { ...tooltipProps, children: (0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { onClick: handleClick, className: (0, cn_1.cn)(infiniteTreeListItemCva({
|
|
37
|
+
return ((0, jsx_runtime_1.jsx)(ContentState_1.ContentState, { isLoading: isRowLoading, isSmoothLoading: false, loadingContent: (0, jsx_runtime_1.jsx)(styles_1.Wrapper, { className: infiniteTreeListItemCva({ isLoading: true }), children: (0, jsx_runtime_1.jsx)(styles_1.Content, { children: itemSkeleton || ((0, jsx_runtime_1.jsx)(styles_1.LoaderWrapper, { children: (0, jsx_runtime_1.jsx)(Loader_1.Loader, {}) })) }) }), children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { ...tooltipProps, children: (0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { onClick: handleClick, className: (0, cn_1.cn)(infiniteTreeListItemCva({
|
|
36
38
|
isDisabled: Boolean(isDisabled || isDisabledByActions),
|
|
37
39
|
isLoading: isRowLoading,
|
|
38
40
|
hasNested: item.meta.hasNested,
|
|
39
|
-
|
|
41
|
+
hasActions: Boolean(actions),
|
|
42
|
+
}), className), ...(0, getInertProps_1.getInertProps)(isDisabled || isDisabledByActions), children: [item.meta.hasNested && ((0, jsx_runtime_1.jsx)(styles_1.NestedIndicator, { children: (0, jsx_runtime_1.jsx)(styles_1.StyledChevron, { isActive: isChevronActive }) })), (0, jsx_runtime_1.jsx)(styles_1.Content, { className: constants_1.infiniteTreeListItemClassnames.content, children: children }), actions && (0, jsx_runtime_1.jsx)(styles_1.ActionsWrapper, { children: actions })] }, `infinite-tree-list-item-${item.id}`) }) }));
|
|
40
43
|
};
|
|
41
44
|
exports.InfiniteTreeListItem = InfiniteTreeListItem;
|
|
@@ -4,7 +4,9 @@ exports.infiniteTreeListItemClassnames = void 0;
|
|
|
4
4
|
const createUIKitClassname_1 = require("../../utils/createUIKitClassname");
|
|
5
5
|
exports.infiniteTreeListItemClassnames = {
|
|
6
6
|
root: (0, createUIKitClassname_1.createUIKitClassname)('infinite-tree-list__item'),
|
|
7
|
+
content: (0, createUIKitClassname_1.createUIKitClassname)('infinite-tree-list__item-content'),
|
|
7
8
|
disabled: (0, createUIKitClassname_1.createUIKitClassname)('infinite-tree-list__item_disabled'),
|
|
8
9
|
loading: (0, createUIKitClassname_1.createUIKitClassname)('infinite-tree-list__item_loading'),
|
|
9
10
|
hasNested: (0, createUIKitClassname_1.createUIKitClassname)('infinite-tree-list__item_has-nested'),
|
|
11
|
+
hasActions: (0, createUIKitClassname_1.createUIKitClassname)('infinite-tree-list__item_has-actions'),
|
|
10
12
|
};
|
|
@@ -14,6 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.infiniteTreeListItemClassnames = void 0;
|
|
17
18
|
__exportStar(require("./InfiniteTreeListItem"), exports);
|
|
18
19
|
__exportStar(require("./types"), exports);
|
|
19
20
|
__exportStar(require("./TreeListItemContext"), exports);
|
|
21
|
+
var constants_1 = require("./constants");
|
|
22
|
+
Object.defineProperty(exports, "infiniteTreeListItemClassnames", { enumerable: true, get: function () { return constants_1.infiniteTreeListItemClassnames; } });
|
|
@@ -3,6 +3,20 @@ export declare const Wrapper: import("@emotion/styled/dist/declarations/src/type
|
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
4
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
+
export declare const Content: import("@emotion/styled/dist/declarations/src/types").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
9
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
|
+
export declare const NestedIndicator: import("@emotion/styled/dist/declarations/src/types").StyledComponent<{
|
|
11
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
13
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
14
|
+
export declare const StyledChevron: import("@emotion/styled/dist/declarations/src/types").StyledComponent<{
|
|
15
|
+
isActive?: boolean | undefined;
|
|
16
|
+
className?: string | undefined;
|
|
17
|
+
} & Omit<import("../..").WithoutEmotionSpecific<import("../..").SvgIconProps>, "classes" | "children" | "ref"> & {
|
|
18
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
19
|
+
}, {}, {}>;
|
|
6
20
|
export declare const ActionsWrapper: import("@emotion/styled/dist/declarations/src/types").StyledComponent<{
|
|
7
21
|
theme?: import("@emotion/react").Theme | undefined;
|
|
8
22
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LoaderWrapper = exports.ActionsWrapper = exports.Wrapper = void 0;
|
|
3
|
+
exports.LoaderWrapper = exports.ActionsWrapper = exports.StyledChevron = exports.NestedIndicator = exports.Content = exports.Wrapper = void 0;
|
|
4
|
+
const Chevron_1 = require("../../Chevron");
|
|
4
5
|
const constants_1 = require("../../constants");
|
|
5
6
|
const styled_1 = require("../../styled");
|
|
6
7
|
const constants_2 = require("./constants");
|
|
7
8
|
exports.Wrapper = styled_1.styled.div `
|
|
8
9
|
cursor: default;
|
|
9
10
|
|
|
10
|
-
display:
|
|
11
|
+
display: grid;
|
|
12
|
+
grid-template-columns: 1fr;
|
|
11
13
|
gap: ${({ theme }) => theme.spacing(3)};
|
|
12
14
|
align-items: center;
|
|
13
15
|
|
|
@@ -28,8 +30,18 @@ exports.Wrapper = styled_1.styled.div `
|
|
|
28
30
|
}
|
|
29
31
|
}
|
|
30
32
|
|
|
33
|
+
&.${constants_2.infiniteTreeListItemClassnames.hasActions} {
|
|
34
|
+
grid-template-columns: 1fr auto;
|
|
35
|
+
}
|
|
36
|
+
|
|
31
37
|
&.${constants_2.infiniteTreeListItemClassnames.hasNested} {
|
|
32
38
|
cursor: pointer;
|
|
39
|
+
|
|
40
|
+
grid-template-columns: auto 1fr;
|
|
41
|
+
|
|
42
|
+
&.${constants_2.infiniteTreeListItemClassnames.hasActions} {
|
|
43
|
+
grid-template-columns: auto 1fr auto;
|
|
44
|
+
}
|
|
33
45
|
}
|
|
34
46
|
|
|
35
47
|
&.${constants_2.infiniteTreeListItemClassnames.loading} {
|
|
@@ -46,11 +58,63 @@ exports.Wrapper = styled_1.styled.div `
|
|
|
46
58
|
&.${constants_2.infiniteTreeListItemClassnames.disabled}:hover {
|
|
47
59
|
background-color: ${({ theme }) => theme.palette.background.default};
|
|
48
60
|
}
|
|
61
|
+
|
|
62
|
+
${({ theme }) => theme.breakpoints.down('mobile')} {
|
|
63
|
+
grid-template-columns: 1fr;
|
|
64
|
+
row-gap: ${({ theme }) => theme.spacing(4)};
|
|
65
|
+
|
|
66
|
+
padding: ${({ theme }) => theme.spacing(5, 4)};
|
|
67
|
+
|
|
68
|
+
&.${constants_2.infiniteTreeListItemClassnames.hasNested} {
|
|
69
|
+
grid-template-columns: 1fr auto;
|
|
70
|
+
|
|
71
|
+
&.${constants_2.infiniteTreeListItemClassnames.hasActions} {
|
|
72
|
+
grid-template-columns: 1fr auto;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
`;
|
|
77
|
+
exports.Content = styled_1.styled.div `
|
|
78
|
+
display: flex;
|
|
79
|
+
gap: ${({ theme }) => theme.spacing(3)};
|
|
80
|
+
align-items: center;
|
|
81
|
+
|
|
82
|
+
min-width: 0;
|
|
83
|
+
|
|
84
|
+
${({ theme }) => theme.breakpoints.down('mobile')} {
|
|
85
|
+
grid-column: 1;
|
|
86
|
+
grid-row: 1;
|
|
87
|
+
}
|
|
88
|
+
`;
|
|
89
|
+
exports.NestedIndicator = styled_1.styled.div `
|
|
90
|
+
display: flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
|
|
93
|
+
min-height: ${({ theme }) => theme.typography.body1.lineHeight};
|
|
94
|
+
|
|
95
|
+
${({ theme }) => theme.breakpoints.down('mobile')} {
|
|
96
|
+
grid-column: 2;
|
|
97
|
+
grid-row: 1;
|
|
98
|
+
align-self: center;
|
|
99
|
+
}
|
|
100
|
+
`;
|
|
101
|
+
exports.StyledChevron = (0, styled_1.styled)(Chevron_1.Chevron) `
|
|
102
|
+
${({ theme }) => theme.breakpoints.down('mobile')} {
|
|
103
|
+
transform: rotateZ(270deg);
|
|
104
|
+
|
|
105
|
+
width: 24px;
|
|
106
|
+
height: 24px;
|
|
107
|
+
|
|
108
|
+
transition: none;
|
|
109
|
+
}
|
|
49
110
|
`;
|
|
50
111
|
exports.ActionsWrapper = styled_1.styled.div `
|
|
51
112
|
display: flex;
|
|
52
113
|
|
|
53
|
-
|
|
114
|
+
${({ theme }) => theme.breakpoints.down('mobile')} {
|
|
115
|
+
grid-column: 1 / -1;
|
|
116
|
+
grid-row: 2;
|
|
117
|
+
}
|
|
54
118
|
`;
|
|
55
119
|
exports.LoaderWrapper = styled_1.styled.div `
|
|
56
120
|
display: flex;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LevelHeader = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const ChevronLOutlineMd_1 = require("../../../icons/ChevronLOutlineMd");
|
|
6
|
+
const cva_1 = require("../../utils/cva");
|
|
7
|
+
const constants_1 = require("../constants");
|
|
8
|
+
const constants_2 = require("./constants");
|
|
9
|
+
const styles_1 = require("./styles");
|
|
10
|
+
const wrapperCva = (0, cva_1.cva)(constants_1.infiniteTreeListClassnames.levelHeader, {
|
|
11
|
+
variants: {
|
|
12
|
+
hasBackButton: {
|
|
13
|
+
true: constants_1.infiniteTreeListClassnames.levelHeaderWithBackButton,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
/**
|
|
18
|
+
* Шапка отображаемого уровня на мобильной ширине
|
|
19
|
+
*/
|
|
20
|
+
const LevelHeader = ({ title = constants_2.LEVEL_BACK_TITLE, hasBackButton, onBack, }) => ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { className: wrapperCva({ hasBackButton }), children: [hasBackButton && ((0, jsx_runtime_1.jsx)(styles_1.BackButton, { className: constants_1.infiniteTreeListClassnames.levelHeaderBackButton, variant: "text", "aria-label": constants_2.LEVEL_BACK_TITLE, onClick: onBack, children: (0, jsx_runtime_1.jsx)(ChevronLOutlineMd_1.ChevronLOutlineMd, {}) })), (0, jsx_runtime_1.jsx)(styles_1.Title, { rowsCount: 2, children: title })] }));
|
|
21
|
+
exports.LevelHeader = LevelHeader;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LEVEL_BACK_BUTTON_ICON_SIZE = exports.LEVEL_BACK_BUTTON_WIDTH = exports.LEVEL_BACK_TITLE = void 0;
|
|
4
|
+
exports.LEVEL_BACK_TITLE = 'Назад';
|
|
5
|
+
exports.LEVEL_BACK_BUTTON_WIDTH = '72px';
|
|
6
|
+
exports.LEVEL_BACK_BUTTON_ICON_SIZE = '24px';
|
|
@@ -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("./LevelHeader"), exports);
|
|
18
|
+
__exportStar(require("./types"), exports);
|