@astral/ui 4.100.0 → 4.102.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/Alert/styles.js +12 -2
- package/components/Autocomplete/styles.js +5 -2
- package/components/Breadcrumbs/styles.js +18 -13
- package/components/CheckableTag/styles.js +6 -3
- package/components/Checkbox/styles.js +10 -7
- package/components/Chip/styles.js +11 -6
- package/components/CodeField/styles.js +5 -2
- package/components/CopyTypography/styles.js +19 -5
- package/components/DashboardLayout/Header/styles.js +5 -2
- package/components/DashboardSidebarPopover/SidebarPopoverItem/styles.js +5 -2
- package/components/DataGrid/Row/styles.js +14 -19
- package/components/DataGrid/RowBase/styles.js +10 -17
- package/components/DataGridCollapsibleRow/styles.js +5 -2
- package/components/Description/Value/styles.js +5 -2
- package/components/ExpansionPanel/Summary/styles.js +5 -2
- package/components/Fab/styles.js +12 -3
- package/components/InfiniteDataList/styles.js +5 -2
- package/components/InfiniteTreeList/InfiniteTreeList.d.ts +18 -0
- package/components/InfiniteTreeList/InfiniteTreeList.js +26 -19
- package/components/InfiniteTreeList/InfiniteTreeListActions/InfiniteTreeListActions.d.ts +9 -0
- package/components/InfiniteTreeList/InfiniteTreeListActions/InfiniteTreeListActions.js +9 -0
- package/components/InfiniteTreeList/InfiniteTreeListActions/types.d.ts +5 -0
- package/components/InfiniteTreeList/InfiniteTreeListActions/useLogic/useLogic.js +5 -6
- package/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContext.d.ts +81 -0
- package/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContext.js +21 -0
- package/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContextProvider/InfiniteTreeListContextProvider.d.ts +3 -2
- package/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContextProvider/InfiniteTreeListContextProvider.js +69 -13
- package/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/ErrorPlaceholder.d.ts +6 -0
- package/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/ErrorPlaceholder.js +8 -0
- package/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/constants.d.ts +1 -0
- package/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/constants.js +1 -0
- package/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/index.d.ts +1 -0
- package/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/index.js +1 -0
- package/components/InfiniteTreeList/{ErrorMessage → InfiniteTreeListItem/ErrorPlaceholder}/styles.d.ts +1 -1
- package/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/styles.js +8 -0
- package/components/InfiniteTreeList/InfiniteTreeListItem/InfiniteTreeListItem.js +29 -7
- package/components/InfiniteTreeList/InfiniteTreeListItem/TreeListItemContext/TreeListItemContext.d.ts +19 -0
- package/components/InfiniteTreeList/InfiniteTreeListItem/TreeListItemContext/TreeListItemContext.js +4 -0
- package/components/InfiniteTreeList/InfiniteTreeListItem/TreeListItemContext/TreeListItemContextProvider/TreeListItemContextProvider.d.ts +4 -0
- package/components/InfiniteTreeList/InfiniteTreeListItem/TreeListItemContext/TreeListItemContextProvider/TreeListItemContextProvider.js +13 -8
- package/components/InfiniteTreeList/InfiniteTreeListItem/constants.d.ts +6 -0
- package/components/InfiniteTreeList/InfiniteTreeListItem/constants.js +7 -0
- package/components/InfiniteTreeList/InfiniteTreeListItem/styles.d.ts +4 -4
- package/components/InfiniteTreeList/InfiniteTreeListItem/styles.js +32 -6
- package/components/InfiniteTreeList/InfiniteTreeListItem/types.d.ts +20 -3
- package/components/InfiniteTreeList/InfiniteTreeListItem/useLogic/useLogic.d.ts +7 -1
- package/components/InfiniteTreeList/InfiniteTreeListItem/useLogic/useLogic.js +57 -5
- package/components/InfiniteTreeList/{EndData → ListFooter/EndData}/EndData.js +1 -1
- package/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/ErrorMessage.js +2 -2
- package/components/InfiniteTreeList/ListFooter/ErrorMessage/styles.d.ts +5 -0
- package/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/styles.js +1 -1
- package/components/InfiniteTreeList/ListFooter/ListFooter.d.ts +10 -0
- package/components/InfiniteTreeList/ListFooter/ListFooter.js +25 -0
- package/components/InfiniteTreeList/ListFooter/index.d.ts +2 -0
- package/components/InfiniteTreeList/ListFooter/index.js +1 -0
- package/components/InfiniteTreeList/{styles.d.ts → ListFooter/styles.d.ts} +2 -2
- package/components/InfiniteTreeList/{styles.js → ListFooter/styles.js} +1 -1
- package/components/InfiniteTreeList/ListFooter/types.d.ts +22 -0
- package/components/InfiniteTreeList/ListFooter/types.js +1 -0
- package/components/InfiniteTreeList/OnTopButton/OnTopButton.d.ts +8 -2
- package/components/InfiniteTreeList/OnTopButton/OnTopButton.js +6 -5
- package/components/InfiniteTreeList/OnTopButton/styles.d.ts +4 -0
- package/components/InfiniteTreeList/OnTopButton/styles.js +10 -0
- package/components/InfiniteTreeList/ParentItems/Item/CustomParentWrapper/CustomParentWrapper.d.ts +23 -0
- package/components/InfiniteTreeList/ParentItems/Item/CustomParentWrapper/CustomParentWrapper.js +12 -0
- package/components/InfiniteTreeList/ParentItems/Item/CustomParentWrapper/index.d.ts +1 -0
- package/components/InfiniteTreeList/ParentItems/Item/CustomParentWrapper/index.js +1 -0
- package/components/InfiniteTreeList/ParentItems/Item/Item.d.ts +10 -0
- package/components/InfiniteTreeList/ParentItems/Item/Item.js +22 -0
- package/components/InfiniteTreeList/ParentItems/Item/index.d.ts +2 -0
- package/components/InfiniteTreeList/ParentItems/Item/index.js +2 -0
- package/components/InfiniteTreeList/ParentItems/Item/types.d.ts +8 -0
- package/components/InfiniteTreeList/ParentItems/Item/types.js +1 -0
- package/components/InfiniteTreeList/ParentItems/Item/useLogic/index.d.ts +1 -0
- package/components/InfiniteTreeList/ParentItems/Item/useLogic/index.js +1 -0
- package/components/InfiniteTreeList/ParentItems/Item/useLogic/useLogic.d.ts +12 -0
- package/components/InfiniteTreeList/ParentItems/Item/useLogic/useLogic.js +12 -0
- package/components/InfiniteTreeList/ParentItems/ParentItems.d.ts +11 -0
- package/components/InfiniteTreeList/ParentItems/ParentItems.js +11 -0
- package/components/InfiniteTreeList/ParentItems/index.d.ts +3 -0
- package/components/InfiniteTreeList/ParentItems/index.js +3 -0
- package/components/InfiniteTreeList/ParentItems/types.d.ts +8 -0
- package/components/InfiniteTreeList/ParentItems/types.js +1 -0
- package/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/ChildrenPlaceholder.d.ts +9 -0
- package/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/ChildrenPlaceholder.js +22 -0
- package/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/NoDataRow/NoDataRow.d.ts +1 -0
- package/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/NoDataRow/NoDataRow.js +5 -0
- package/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/NoDataRow/index.d.ts +1 -0
- package/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/NoDataRow/index.js +1 -0
- package/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/index.d.ts +1 -0
- package/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/index.js +1 -0
- package/components/InfiniteTreeList/TreeItem/CustomItemWrapper/CustomItemWrapper.d.ts +20 -0
- package/components/InfiniteTreeList/TreeItem/CustomItemWrapper/CustomItemWrapper.js +10 -0
- package/components/InfiniteTreeList/TreeItem/CustomItemWrapper/index.d.ts +1 -0
- package/components/InfiniteTreeList/TreeItem/CustomItemWrapper/index.js +1 -0
- package/components/InfiniteTreeList/TreeItem/ParentSlot/ParentSlot.d.ts +5 -0
- package/components/InfiniteTreeList/TreeItem/ParentSlot/ParentSlot.js +38 -0
- package/components/InfiniteTreeList/TreeItem/ParentSlot/index.d.ts +2 -0
- package/components/InfiniteTreeList/TreeItem/ParentSlot/index.js +2 -0
- package/components/InfiniteTreeList/TreeItem/ParentSlot/styles.d.ts +9 -0
- package/components/InfiniteTreeList/TreeItem/ParentSlot/styles.js +8 -0
- package/components/InfiniteTreeList/TreeItem/ParentSlot/types.d.ts +6 -0
- package/components/InfiniteTreeList/TreeItem/ParentSlot/types.js +1 -0
- package/components/InfiniteTreeList/TreeItem/TreeItem.d.ts +5 -2
- package/components/InfiniteTreeList/TreeItem/TreeItem.js +31 -4
- package/components/InfiniteTreeList/TreeItem/constants.d.ts +3 -0
- package/components/InfiniteTreeList/TreeItem/constants.js +3 -1
- package/components/InfiniteTreeList/TreeItem/styles.d.ts +0 -3
- package/components/InfiniteTreeList/TreeItem/styles.js +23 -8
- package/components/InfiniteTreeList/TreeItem/types.d.ts +4 -9
- package/components/InfiniteTreeList/TreeItem/useLogic/useLogic.d.ts +29 -9
- package/components/InfiniteTreeList/TreeItem/useLogic/useLogic.js +61 -19
- package/components/InfiniteTreeList/constants.d.ts +14 -2
- package/components/InfiniteTreeList/constants.js +14 -2
- package/components/InfiniteTreeList/hooks/index.d.ts +5 -0
- package/components/InfiniteTreeList/hooks/index.js +5 -0
- package/components/InfiniteTreeList/hooks/useChildrenState/index.d.ts +2 -0
- package/components/InfiniteTreeList/hooks/useChildrenState/index.js +2 -0
- package/components/InfiniteTreeList/hooks/useChildrenState/types.d.ts +43 -0
- package/components/InfiniteTreeList/hooks/useChildrenState/types.js +1 -0
- package/components/InfiniteTreeList/hooks/useChildrenState/useChildrenState.d.ts +20 -0
- package/components/InfiniteTreeList/hooks/useChildrenState/useChildrenState.js +115 -0
- package/components/InfiniteTreeList/hooks/useEnterAnimation/index.d.ts +2 -0
- package/components/InfiniteTreeList/hooks/useEnterAnimation/index.js +2 -0
- package/components/InfiniteTreeList/hooks/useEnterAnimation/types.d.ts +29 -0
- package/components/InfiniteTreeList/hooks/useEnterAnimation/types.js +1 -0
- package/components/InfiniteTreeList/hooks/useEnterAnimation/useEnterAnimation.d.ts +6 -0
- package/components/InfiniteTreeList/hooks/useEnterAnimation/useEnterAnimation.js +35 -0
- package/components/InfiniteTreeList/hooks/useExpandNotifier/index.d.ts +1 -0
- package/components/InfiniteTreeList/hooks/useExpandNotifier/index.js +1 -0
- package/components/InfiniteTreeList/hooks/useExpandNotifier/useExpandNotifier.d.ts +8 -0
- package/components/InfiniteTreeList/hooks/useExpandNotifier/useExpandNotifier.js +19 -0
- package/components/InfiniteTreeList/hooks/useFlatTree/index.d.ts +2 -0
- package/components/InfiniteTreeList/hooks/useFlatTree/index.js +2 -0
- package/components/InfiniteTreeList/hooks/useFlatTree/types.d.ts +20 -0
- package/components/InfiniteTreeList/hooks/useFlatTree/types.js +1 -0
- package/components/InfiniteTreeList/hooks/useFlatTree/useFlatTree.d.ts +15 -0
- package/components/InfiniteTreeList/hooks/useFlatTree/useFlatTree.js +88 -0
- package/components/InfiniteTreeList/hooks/useListScroll/index.d.ts +2 -0
- package/components/InfiniteTreeList/hooks/useListScroll/index.js +2 -0
- package/components/InfiniteTreeList/hooks/useListScroll/types.d.ts +25 -0
- package/components/InfiniteTreeList/hooks/useListScroll/types.js +1 -0
- package/components/InfiniteTreeList/hooks/useListScroll/useListScroll.d.ts +29 -0
- package/components/InfiniteTreeList/hooks/useListScroll/useListScroll.js +59 -0
- package/components/InfiniteTreeList/index.d.ts +1 -1
- package/components/InfiniteTreeList/public.d.ts +1 -1
- package/components/InfiniteTreeList/types.d.ts +83 -17
- package/components/InfiniteTreeList/useLogic/useLogic.d.ts +22 -12
- package/components/InfiniteTreeList/useLogic/useLogic.js +66 -71
- package/components/InfiniteTreeList/utils/checkHasSkeletonPlaceholders/checkHasSkeletonPlaceholders.d.ts +5 -0
- package/components/InfiniteTreeList/utils/checkHasSkeletonPlaceholders/checkHasSkeletonPlaceholders.js +6 -0
- package/components/InfiniteTreeList/utils/checkHasSkeletonPlaceholders/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/checkHasSkeletonPlaceholders/index.js +1 -0
- package/components/InfiniteTreeList/utils/checkIsChildrenPlaceholder/checkIsChildrenPlaceholder.d.ts +5 -0
- package/components/InfiniteTreeList/utils/checkIsChildrenPlaceholder/checkIsChildrenPlaceholder.js +4 -0
- package/components/InfiniteTreeList/utils/checkIsChildrenPlaceholder/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/checkIsChildrenPlaceholder/index.js +1 -0
- package/components/InfiniteTreeList/utils/checkIsChildrenPlaceholderOf/checkIsChildrenPlaceholderOf.d.ts +5 -0
- package/components/InfiniteTreeList/utils/checkIsChildrenPlaceholderOf/checkIsChildrenPlaceholderOf.js +5 -0
- package/components/InfiniteTreeList/utils/checkIsChildrenPlaceholderOf/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/checkIsChildrenPlaceholderOf/index.js +1 -0
- package/components/InfiniteTreeList/utils/checkIsDirectChild/checkIsDirectChild.d.ts +6 -0
- package/components/InfiniteTreeList/utils/checkIsDirectChild/checkIsDirectChild.js +6 -0
- package/components/InfiniteTreeList/utils/checkIsDirectChild/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/checkIsDirectChild/index.js +1 -0
- package/components/InfiniteTreeList/utils/checkIsNoDataChildren/checkIsNoDataChildren.d.ts +12 -0
- package/components/InfiniteTreeList/utils/checkIsNoDataChildren/checkIsNoDataChildren.js +14 -0
- package/components/InfiniteTreeList/utils/checkIsNoDataChildren/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/checkIsNoDataChildren/index.js +1 -0
- package/components/InfiniteTreeList/utils/checkIsSameChildren/checkIsSameChildren.d.ts +5 -0
- package/components/InfiniteTreeList/utils/checkIsSameChildren/checkIsSameChildren.js +16 -0
- package/components/InfiniteTreeList/utils/checkIsSameChildren/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/checkIsSameChildren/index.js +1 -0
- package/components/InfiniteTreeList/utils/countDirectChildren/countDirectChildren.d.ts +5 -0
- package/components/InfiniteTreeList/utils/countDirectChildren/countDirectChildren.js +5 -0
- package/components/InfiniteTreeList/utils/countDirectChildren/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/countDirectChildren/index.js +1 -0
- package/components/InfiniteTreeList/utils/createParentSlots/createParentSlots.d.ts +24 -0
- package/components/InfiniteTreeList/utils/createParentSlots/createParentSlots.js +35 -0
- package/components/InfiniteTreeList/utils/createParentSlots/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/createParentSlots/index.js +1 -0
- package/components/InfiniteTreeList/utils/createTailRegistry/createTailRegistry.d.ts +21 -0
- package/components/InfiniteTreeList/utils/createTailRegistry/createTailRegistry.js +40 -0
- package/components/InfiniteTreeList/utils/createTailRegistry/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/createTailRegistry/index.js +1 -0
- package/components/InfiniteTreeList/utils/flattenChildren/flattenChildren.d.ts +5 -0
- package/components/InfiniteTreeList/utils/flattenChildren/flattenChildren.js +5 -0
- package/components/InfiniteTreeList/utils/flattenChildren/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/flattenChildren/index.js +1 -0
- package/components/InfiniteTreeList/utils/flattenTree/flattenTree.d.ts +6 -0
- package/components/InfiniteTreeList/{useLogic/utils → utils}/flattenTree/flattenTree.js +9 -4
- package/components/InfiniteTreeList/utils/getEnteringChildren/getEnteringChildren.d.ts +17 -0
- package/components/InfiniteTreeList/utils/getEnteringChildren/getEnteringChildren.js +14 -0
- package/components/InfiniteTreeList/utils/getEnteringChildren/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/getEnteringChildren/index.js +1 -0
- package/components/InfiniteTreeList/utils/getIdsToKeep/getIdsToKeep.d.ts +10 -0
- package/components/InfiniteTreeList/utils/getIdsToKeep/getIdsToKeep.js +27 -0
- package/components/InfiniteTreeList/utils/getIdsToKeep/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/getIdsToKeep/index.js +1 -0
- package/components/InfiniteTreeList/{useLogic/utils → utils}/getInitialExpandedIds/getInitialExpandedIds.d.ts +4 -2
- package/components/InfiniteTreeList/{useLogic/utils → utils}/getInitialExpandedIds/getInitialExpandedIds.js +5 -4
- package/components/InfiniteTreeList/utils/getNestedItems/getNestedItems.d.ts +6 -0
- package/components/InfiniteTreeList/utils/getNestedItems/getNestedItems.js +18 -0
- package/components/InfiniteTreeList/utils/getNestedItems/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/getNestedItems/index.js +1 -0
- package/components/InfiniteTreeList/utils/index.d.ts +20 -0
- package/components/InfiniteTreeList/utils/index.js +20 -0
- package/components/InfiniteTreeList/utils/insertChildren/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/insertChildren/index.js +1 -0
- package/components/InfiniteTreeList/utils/insertChildren/insertChildren.d.ts +5 -0
- package/components/InfiniteTreeList/utils/insertChildren/insertChildren.js +41 -0
- package/components/InfiniteTreeList/utils/removeChildren/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/removeChildren/index.js +1 -0
- package/components/InfiniteTreeList/utils/removeChildren/removeChildren.d.ts +5 -0
- package/components/InfiniteTreeList/utils/removeChildren/removeChildren.js +12 -0
- package/components/InfiniteTreeList/utils/sortCollapsed/sortCollapsed.d.ts +5 -0
- package/components/InfiniteTreeList/{useLogic/utils → utils}/sortCollapsed/sortCollapsed.js +1 -6
- package/components/InfiniteTreeList/utils/startRemoveAnimation/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/startRemoveAnimation/index.js +1 -0
- package/components/InfiniteTreeList/utils/startRemoveAnimation/startRemoveAnimation.d.ts +1 -0
- package/components/InfiniteTreeList/utils/startRemoveAnimation/startRemoveAnimation.js +5 -0
- package/components/InfiniteTreeList/utils/syncChildrenPlaceholders/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/syncChildrenPlaceholders/index.js +1 -0
- package/components/InfiniteTreeList/utils/syncChildrenPlaceholders/syncChildrenPlaceholders.d.ts +11 -0
- package/components/InfiniteTreeList/utils/syncChildrenPlaceholders/syncChildrenPlaceholders.js +99 -0
- package/components/InputGroup/styles.js +8 -5
- package/components/JsonViewer/JsonNode/styles.js +5 -2
- package/components/Link/styles.js +11 -6
- package/components/ListItem/styles.js +5 -2
- package/components/MenuOrganization/OrganizationButton/styles.js +5 -6
- package/components/NavMenu/Item/ItemButton/styles.js +14 -7
- package/components/NewStepper/Step/styles.js +18 -15
- package/components/Notification/NotificationStackContainer/styles.js +5 -2
- package/components/PageAsideNavigation/PageAsideNavigationItem/styles.js +5 -6
- package/components/PageHeader/MobilePageActions/styles.js +0 -4
- package/components/Radio/styles.js +7 -4
- package/components/RadioCard/styles.js +5 -2
- package/components/StaticCalendar/StaticCalendarGridButton/styles.js +8 -5
- package/components/Tabs/Tab/styles.js +5 -2
- package/components/ToggleButton/styles.js +25 -10
- package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/styles.js +3 -3
- package/components/Tree/TreeItem/styles.js +23 -10
- package/components/constants/index.d.ts +1 -0
- package/components/constants/index.js +1 -0
- package/components/constants/media.d.ts +8 -0
- package/components/constants/media.js +8 -0
- package/components/theme/components/MuiButton.js +46 -23
- package/components/theme/components/MuiListItemButton.js +10 -2
- package/components/theme/components/MuiMenuItem.js +5 -2
- package/components/theme/components/MuiOutlinedInput.js +15 -12
- package/components/theme/components/MuiSwitch.js +14 -9
- package/components/theme/components/MuiTableRow.js +11 -3
- package/node/components/Alert/styles.js +24 -14
- package/node/components/Autocomplete/styles.js +8 -5
- package/node/components/Breadcrumbs/styles.js +18 -13
- package/node/components/CheckableTag/styles.js +6 -3
- package/node/components/Checkbox/styles.js +26 -23
- package/node/components/Chip/styles.js +36 -31
- package/node/components/CodeField/styles.js +5 -2
- package/node/components/CopyTypography/styles.js +22 -8
- package/node/components/DashboardLayout/Header/styles.js +35 -32
- package/node/components/DashboardSidebarPopover/SidebarPopoverItem/styles.js +7 -4
- package/node/components/DataGrid/Row/styles.js +41 -46
- package/node/components/DataGrid/RowBase/styles.js +16 -23
- package/node/components/DataGridCollapsibleRow/styles.js +11 -8
- package/node/components/Description/Value/styles.js +5 -2
- package/node/components/ExpansionPanel/Summary/styles.js +5 -2
- package/node/components/Fab/styles.js +12 -3
- package/node/components/InfiniteDataList/styles.js +7 -4
- package/node/components/InfiniteTreeList/InfiniteTreeList.d.ts +18 -0
- package/node/components/InfiniteTreeList/InfiniteTreeList.js +24 -17
- package/node/components/InfiniteTreeList/InfiniteTreeListActions/InfiniteTreeListActions.d.ts +9 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListActions/InfiniteTreeListActions.js +9 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListActions/types.d.ts +5 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListActions/useLogic/useLogic.js +5 -6
- package/node/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContext.d.ts +81 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContext.js +21 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContextProvider/InfiniteTreeListContextProvider.d.ts +3 -2
- package/node/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContextProvider/InfiniteTreeListContextProvider.js +69 -13
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/ErrorPlaceholder.d.ts +6 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/ErrorPlaceholder.js +12 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/constants.d.ts +1 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/constants.js +4 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/index.js +5 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/styles.js +11 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/InfiniteTreeListItem.js +28 -6
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/TreeListItemContext/TreeListItemContext.d.ts +19 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/TreeListItemContext/TreeListItemContext.js +4 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/TreeListItemContext/TreeListItemContextProvider/TreeListItemContextProvider.d.ts +4 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/TreeListItemContext/TreeListItemContextProvider/TreeListItemContextProvider.js +13 -8
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/constants.d.ts +6 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/constants.js +10 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/styles.d.ts +4 -4
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/styles.js +33 -7
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/types.d.ts +20 -3
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/useLogic/useLogic.d.ts +7 -1
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/useLogic/useLogic.js +56 -4
- package/node/components/InfiniteTreeList/{EndData → ListFooter/EndData}/EndData.js +1 -1
- package/node/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/ErrorMessage.js +2 -2
- package/node/components/InfiniteTreeList/ListFooter/ErrorMessage/styles.d.ts +5 -0
- package/node/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/styles.js +1 -1
- package/node/components/InfiniteTreeList/ListFooter/ListFooter.d.ts +10 -0
- package/node/components/InfiniteTreeList/ListFooter/ListFooter.js +29 -0
- package/node/components/InfiniteTreeList/ListFooter/index.d.ts +2 -0
- package/node/components/InfiniteTreeList/ListFooter/index.js +17 -0
- package/node/components/InfiniteTreeList/{styles.js → ListFooter/styles.js} +1 -1
- package/node/components/InfiniteTreeList/ListFooter/types.d.ts +22 -0
- package/node/components/InfiniteTreeList/ListFooter/types.js +2 -0
- package/node/components/InfiniteTreeList/OnTopButton/OnTopButton.d.ts +8 -2
- package/node/components/InfiniteTreeList/OnTopButton/OnTopButton.js +6 -5
- package/node/components/InfiniteTreeList/OnTopButton/styles.d.ts +4 -0
- package/node/components/InfiniteTreeList/OnTopButton/styles.js +13 -0
- package/node/components/InfiniteTreeList/ParentItems/Item/CustomParentWrapper/CustomParentWrapper.d.ts +23 -0
- package/node/components/InfiniteTreeList/ParentItems/Item/CustomParentWrapper/CustomParentWrapper.js +15 -0
- package/node/components/InfiniteTreeList/ParentItems/Item/CustomParentWrapper/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/ParentItems/Item/CustomParentWrapper/index.js +17 -0
- package/node/components/InfiniteTreeList/ParentItems/Item/Item.d.ts +10 -0
- package/node/components/InfiniteTreeList/ParentItems/Item/Item.js +25 -0
- package/node/components/InfiniteTreeList/ParentItems/Item/index.d.ts +2 -0
- package/node/components/InfiniteTreeList/ParentItems/Item/index.js +18 -0
- package/node/components/InfiniteTreeList/ParentItems/Item/types.d.ts +8 -0
- package/node/components/InfiniteTreeList/ParentItems/Item/types.js +2 -0
- package/node/components/InfiniteTreeList/ParentItems/Item/useLogic/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/ParentItems/Item/useLogic/index.js +17 -0
- package/node/components/InfiniteTreeList/ParentItems/Item/useLogic/useLogic.d.ts +12 -0
- package/node/components/InfiniteTreeList/ParentItems/Item/useLogic/useLogic.js +16 -0
- package/node/components/InfiniteTreeList/ParentItems/ParentItems.d.ts +11 -0
- package/node/components/InfiniteTreeList/ParentItems/ParentItems.js +15 -0
- package/node/components/InfiniteTreeList/ParentItems/index.d.ts +3 -0
- package/node/components/InfiniteTreeList/ParentItems/index.js +19 -0
- package/node/components/InfiniteTreeList/ParentItems/types.d.ts +8 -0
- package/node/components/InfiniteTreeList/ParentItems/types.js +2 -0
- package/node/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/ChildrenPlaceholder.d.ts +9 -0
- package/node/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/ChildrenPlaceholder.js +26 -0
- package/node/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/NoDataRow/NoDataRow.d.ts +1 -0
- package/node/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/NoDataRow/NoDataRow.js +9 -0
- package/node/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/NoDataRow/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/NoDataRow/index.js +17 -0
- package/node/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/index.js +17 -0
- package/node/components/InfiniteTreeList/TreeItem/CustomItemWrapper/CustomItemWrapper.d.ts +20 -0
- package/node/components/InfiniteTreeList/TreeItem/CustomItemWrapper/CustomItemWrapper.js +13 -0
- package/node/components/InfiniteTreeList/TreeItem/CustomItemWrapper/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/TreeItem/CustomItemWrapper/index.js +17 -0
- package/node/components/InfiniteTreeList/TreeItem/ParentSlot/ParentSlot.d.ts +5 -0
- package/node/components/InfiniteTreeList/TreeItem/ParentSlot/ParentSlot.js +42 -0
- package/node/components/InfiniteTreeList/TreeItem/ParentSlot/index.d.ts +2 -0
- package/node/components/InfiniteTreeList/TreeItem/ParentSlot/index.js +18 -0
- package/node/components/InfiniteTreeList/TreeItem/ParentSlot/styles.d.ts +9 -0
- package/node/components/InfiniteTreeList/TreeItem/ParentSlot/styles.js +11 -0
- package/node/components/InfiniteTreeList/TreeItem/ParentSlot/types.d.ts +6 -0
- package/node/components/InfiniteTreeList/TreeItem/ParentSlot/types.js +2 -0
- package/node/components/InfiniteTreeList/TreeItem/TreeItem.d.ts +5 -2
- package/node/components/InfiniteTreeList/TreeItem/TreeItem.js +31 -4
- package/node/components/InfiniteTreeList/TreeItem/constants.d.ts +3 -0
- package/node/components/InfiniteTreeList/TreeItem/constants.js +3 -1
- package/node/components/InfiniteTreeList/TreeItem/styles.d.ts +0 -3
- package/node/components/InfiniteTreeList/TreeItem/styles.js +23 -8
- package/node/components/InfiniteTreeList/TreeItem/types.d.ts +4 -9
- package/node/components/InfiniteTreeList/TreeItem/useLogic/useLogic.d.ts +29 -9
- package/node/components/InfiniteTreeList/TreeItem/useLogic/useLogic.js +60 -18
- package/node/components/InfiniteTreeList/constants.d.ts +14 -2
- package/node/components/InfiniteTreeList/constants.js +15 -3
- package/node/components/InfiniteTreeList/hooks/index.d.ts +5 -0
- package/node/components/InfiniteTreeList/hooks/index.js +21 -0
- package/node/components/InfiniteTreeList/hooks/useChildrenState/index.d.ts +2 -0
- package/node/components/InfiniteTreeList/hooks/useChildrenState/index.js +18 -0
- package/node/components/InfiniteTreeList/hooks/useChildrenState/types.d.ts +43 -0
- package/node/components/InfiniteTreeList/hooks/useChildrenState/types.js +2 -0
- package/node/components/InfiniteTreeList/hooks/useChildrenState/useChildrenState.d.ts +20 -0
- package/node/components/InfiniteTreeList/hooks/useChildrenState/useChildrenState.js +119 -0
- package/node/components/InfiniteTreeList/hooks/useEnterAnimation/index.d.ts +2 -0
- package/node/components/InfiniteTreeList/hooks/useEnterAnimation/index.js +18 -0
- package/node/components/InfiniteTreeList/hooks/useEnterAnimation/types.d.ts +29 -0
- package/node/components/InfiniteTreeList/hooks/useEnterAnimation/types.js +2 -0
- package/node/components/InfiniteTreeList/hooks/useEnterAnimation/useEnterAnimation.d.ts +6 -0
- package/node/components/InfiniteTreeList/hooks/useEnterAnimation/useEnterAnimation.js +39 -0
- package/node/components/InfiniteTreeList/hooks/useExpandNotifier/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/hooks/useExpandNotifier/index.js +17 -0
- package/node/components/InfiniteTreeList/hooks/useExpandNotifier/useExpandNotifier.d.ts +8 -0
- package/node/components/InfiniteTreeList/hooks/useExpandNotifier/useExpandNotifier.js +23 -0
- package/node/components/InfiniteTreeList/hooks/useFlatTree/index.d.ts +2 -0
- package/node/components/InfiniteTreeList/hooks/useFlatTree/index.js +18 -0
- package/node/components/InfiniteTreeList/hooks/useFlatTree/types.d.ts +20 -0
- package/node/components/InfiniteTreeList/hooks/useFlatTree/types.js +2 -0
- package/node/components/InfiniteTreeList/hooks/useFlatTree/useFlatTree.d.ts +15 -0
- package/node/components/InfiniteTreeList/hooks/useFlatTree/useFlatTree.js +92 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/index.d.ts +2 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/index.js +18 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/types.d.ts +25 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/types.js +2 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/useListScroll.d.ts +29 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/useListScroll.js +63 -0
- package/node/components/InfiniteTreeList/index.d.ts +1 -1
- package/node/components/InfiniteTreeList/public.d.ts +1 -1
- package/node/components/InfiniteTreeList/types.d.ts +83 -17
- package/node/components/InfiniteTreeList/useLogic/useLogic.d.ts +22 -12
- package/node/components/InfiniteTreeList/useLogic/useLogic.js +64 -69
- package/node/components/InfiniteTreeList/utils/checkHasSkeletonPlaceholders/checkHasSkeletonPlaceholders.d.ts +5 -0
- package/node/components/InfiniteTreeList/utils/checkHasSkeletonPlaceholders/checkHasSkeletonPlaceholders.js +10 -0
- package/node/components/InfiniteTreeList/utils/checkHasSkeletonPlaceholders/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/checkHasSkeletonPlaceholders/index.js +17 -0
- package/node/components/InfiniteTreeList/utils/checkIsChildrenPlaceholder/checkIsChildrenPlaceholder.d.ts +5 -0
- package/node/components/InfiniteTreeList/utils/checkIsChildrenPlaceholder/checkIsChildrenPlaceholder.js +8 -0
- package/node/components/InfiniteTreeList/utils/checkIsChildrenPlaceholder/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/checkIsChildrenPlaceholder/index.js +17 -0
- package/node/components/InfiniteTreeList/utils/checkIsChildrenPlaceholderOf/checkIsChildrenPlaceholderOf.d.ts +5 -0
- package/node/components/InfiniteTreeList/utils/checkIsChildrenPlaceholderOf/checkIsChildrenPlaceholderOf.js +9 -0
- package/node/components/InfiniteTreeList/utils/checkIsChildrenPlaceholderOf/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/checkIsChildrenPlaceholderOf/index.js +17 -0
- package/node/components/InfiniteTreeList/utils/checkIsDirectChild/checkIsDirectChild.d.ts +6 -0
- package/node/components/InfiniteTreeList/utils/checkIsDirectChild/checkIsDirectChild.js +10 -0
- package/node/components/InfiniteTreeList/utils/checkIsDirectChild/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/checkIsDirectChild/index.js +17 -0
- package/node/components/InfiniteTreeList/utils/checkIsNoDataChildren/checkIsNoDataChildren.d.ts +12 -0
- package/node/components/InfiniteTreeList/utils/checkIsNoDataChildren/checkIsNoDataChildren.js +18 -0
- package/node/components/InfiniteTreeList/utils/checkIsNoDataChildren/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/checkIsNoDataChildren/index.js +17 -0
- package/node/components/InfiniteTreeList/utils/checkIsSameChildren/checkIsSameChildren.d.ts +5 -0
- package/node/components/InfiniteTreeList/utils/checkIsSameChildren/checkIsSameChildren.js +20 -0
- package/node/components/InfiniteTreeList/utils/checkIsSameChildren/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/checkIsSameChildren/index.js +17 -0
- package/node/components/InfiniteTreeList/utils/countDirectChildren/countDirectChildren.d.ts +5 -0
- package/node/components/InfiniteTreeList/utils/countDirectChildren/countDirectChildren.js +9 -0
- package/node/components/InfiniteTreeList/utils/countDirectChildren/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/countDirectChildren/index.js +17 -0
- package/node/components/InfiniteTreeList/utils/createParentSlots/createParentSlots.d.ts +24 -0
- package/node/components/InfiniteTreeList/utils/createParentSlots/createParentSlots.js +39 -0
- package/node/components/InfiniteTreeList/utils/createParentSlots/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/createParentSlots/index.js +17 -0
- package/node/components/InfiniteTreeList/utils/createTailRegistry/createTailRegistry.d.ts +21 -0
- package/node/components/InfiniteTreeList/utils/createTailRegistry/createTailRegistry.js +44 -0
- package/node/components/InfiniteTreeList/utils/createTailRegistry/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/createTailRegistry/index.js +5 -0
- package/node/components/InfiniteTreeList/utils/flattenChildren/flattenChildren.d.ts +5 -0
- package/node/components/InfiniteTreeList/utils/flattenChildren/flattenChildren.js +9 -0
- package/node/components/InfiniteTreeList/utils/flattenChildren/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/flattenChildren/index.js +17 -0
- package/node/components/InfiniteTreeList/utils/flattenTree/flattenTree.d.ts +6 -0
- package/node/components/InfiniteTreeList/{useLogic/utils → utils}/flattenTree/flattenTree.js +9 -4
- package/node/components/InfiniteTreeList/utils/getEnteringChildren/getEnteringChildren.d.ts +17 -0
- package/node/components/InfiniteTreeList/utils/getEnteringChildren/getEnteringChildren.js +18 -0
- package/node/components/InfiniteTreeList/utils/getEnteringChildren/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/getEnteringChildren/index.js +17 -0
- package/node/components/InfiniteTreeList/utils/getIdsToKeep/getIdsToKeep.d.ts +10 -0
- package/node/components/InfiniteTreeList/utils/getIdsToKeep/getIdsToKeep.js +31 -0
- package/node/components/InfiniteTreeList/utils/getIdsToKeep/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/getIdsToKeep/index.js +17 -0
- package/node/components/InfiniteTreeList/{useLogic/utils → utils}/getInitialExpandedIds/getInitialExpandedIds.d.ts +4 -2
- package/node/components/InfiniteTreeList/{useLogic/utils → utils}/getInitialExpandedIds/getInitialExpandedIds.js +5 -4
- package/node/components/InfiniteTreeList/utils/getNestedItems/getNestedItems.d.ts +6 -0
- package/node/components/InfiniteTreeList/utils/getNestedItems/getNestedItems.js +22 -0
- package/node/components/InfiniteTreeList/utils/getNestedItems/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/{useLogic/utils/getDescendants → utils/getNestedItems}/index.js +1 -1
- package/node/components/InfiniteTreeList/utils/index.d.ts +20 -0
- package/node/components/InfiniteTreeList/utils/index.js +36 -0
- package/node/components/InfiniteTreeList/utils/insertChildren/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/insertChildren/index.js +17 -0
- package/node/components/InfiniteTreeList/utils/insertChildren/insertChildren.d.ts +5 -0
- package/node/components/InfiniteTreeList/utils/insertChildren/insertChildren.js +45 -0
- package/node/components/InfiniteTreeList/utils/removeChildren/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/removeChildren/index.js +17 -0
- package/node/components/InfiniteTreeList/utils/removeChildren/removeChildren.d.ts +5 -0
- package/node/components/InfiniteTreeList/utils/removeChildren/removeChildren.js +16 -0
- package/node/components/InfiniteTreeList/utils/sortCollapsed/sortCollapsed.d.ts +5 -0
- package/node/components/InfiniteTreeList/{useLogic/utils → utils}/sortCollapsed/sortCollapsed.js +1 -6
- package/node/components/InfiniteTreeList/utils/startRemoveAnimation/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/startRemoveAnimation/index.js +17 -0
- package/node/components/InfiniteTreeList/utils/startRemoveAnimation/startRemoveAnimation.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/startRemoveAnimation/startRemoveAnimation.js +9 -0
- package/node/components/InfiniteTreeList/utils/syncChildrenPlaceholders/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/syncChildrenPlaceholders/index.js +17 -0
- package/node/components/InfiniteTreeList/utils/syncChildrenPlaceholders/syncChildrenPlaceholders.d.ts +11 -0
- package/node/components/InfiniteTreeList/utils/syncChildrenPlaceholders/syncChildrenPlaceholders.js +104 -0
- package/node/components/InputGroup/styles.js +8 -5
- package/node/components/JsonViewer/JsonNode/styles.js +5 -2
- package/node/components/Link/styles.js +13 -8
- package/node/components/ListItem/styles.js +10 -7
- package/node/components/MenuOrganization/OrganizationButton/styles.js +5 -6
- package/node/components/NavMenu/Item/ItemButton/styles.js +16 -9
- package/node/components/NewStepper/Step/styles.js +68 -65
- package/node/components/Notification/NotificationStackContainer/styles.js +57 -54
- package/node/components/PageAsideNavigation/PageAsideNavigationItem/styles.js +12 -13
- package/node/components/PageHeader/MobilePageActions/styles.js +0 -4
- package/node/components/Radio/styles.js +20 -17
- package/node/components/RadioCard/styles.js +7 -4
- package/node/components/StaticCalendar/StaticCalendarGridButton/styles.js +8 -5
- package/node/components/Tabs/Tab/styles.js +5 -2
- package/node/components/ToggleButton/styles.js +27 -12
- package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/styles.js +3 -3
- package/node/components/Tree/TreeItem/styles.js +44 -31
- package/node/components/constants/index.d.ts +1 -0
- package/node/components/constants/index.js +1 -0
- package/node/components/constants/media.d.ts +8 -0
- package/node/components/constants/media.js +11 -0
- package/node/components/theme/components/MuiButton.js +46 -23
- package/node/components/theme/components/MuiListItemButton.js +10 -2
- package/node/components/theme/components/MuiMenuItem.js +5 -2
- package/node/components/theme/components/MuiOutlinedInput.js +15 -12
- package/node/components/theme/components/MuiSwitch.js +14 -9
- package/node/components/theme/components/MuiTableRow.js +11 -3
- package/package.json +1 -1
- package/components/InfiniteTreeList/useLogic/utils/flattenTree/flattenTree.d.ts +0 -5
- package/components/InfiniteTreeList/useLogic/utils/getDescendants/getDescendants.d.ts +0 -10
- package/components/InfiniteTreeList/useLogic/utils/getDescendants/getDescendants.js +0 -22
- package/components/InfiniteTreeList/useLogic/utils/getDescendants/index.d.ts +0 -1
- package/components/InfiniteTreeList/useLogic/utils/getDescendants/index.js +0 -1
- package/components/InfiniteTreeList/useLogic/utils/index.d.ts +0 -4
- package/components/InfiniteTreeList/useLogic/utils/index.js +0 -4
- package/components/InfiniteTreeList/useLogic/utils/sortCollapsed/sortCollapsed.d.ts +0 -10
- package/node/components/InfiniteTreeList/useLogic/utils/flattenTree/flattenTree.d.ts +0 -5
- package/node/components/InfiniteTreeList/useLogic/utils/getDescendants/getDescendants.d.ts +0 -10
- package/node/components/InfiniteTreeList/useLogic/utils/getDescendants/getDescendants.js +0 -26
- package/node/components/InfiniteTreeList/useLogic/utils/getDescendants/index.d.ts +0 -1
- package/node/components/InfiniteTreeList/useLogic/utils/index.d.ts +0 -4
- package/node/components/InfiniteTreeList/useLogic/utils/index.js +0 -20
- package/node/components/InfiniteTreeList/useLogic/utils/sortCollapsed/sortCollapsed.d.ts +0 -10
- /package/components/InfiniteTreeList/{EndData → ListFooter/EndData}/EndData.d.ts +0 -0
- /package/components/InfiniteTreeList/{EndData → ListFooter/EndData}/constants.d.ts +0 -0
- /package/components/InfiniteTreeList/{EndData → ListFooter/EndData}/constants.js +0 -0
- /package/components/InfiniteTreeList/{EndData → ListFooter/EndData}/index.d.ts +0 -0
- /package/components/InfiniteTreeList/{EndData → ListFooter/EndData}/index.js +0 -0
- /package/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/ErrorMessage.d.ts +0 -0
- /package/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/constants.d.ts +0 -0
- /package/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/constants.js +0 -0
- /package/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/index.d.ts +0 -0
- /package/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/index.js +0 -0
- /package/components/InfiniteTreeList/{useLogic/utils → utils}/flattenTree/index.d.ts +0 -0
- /package/components/InfiniteTreeList/{useLogic/utils → utils}/flattenTree/index.js +0 -0
- /package/components/InfiniteTreeList/{useLogic/utils → utils}/getInitialExpandedIds/index.d.ts +0 -0
- /package/components/InfiniteTreeList/{useLogic/utils → utils}/getInitialExpandedIds/index.js +0 -0
- /package/components/InfiniteTreeList/{useLogic/utils → utils}/sortCollapsed/index.d.ts +0 -0
- /package/components/InfiniteTreeList/{useLogic/utils → utils}/sortCollapsed/index.js +0 -0
- /package/node/components/InfiniteTreeList/{ErrorMessage → InfiniteTreeListItem/ErrorPlaceholder}/styles.d.ts +0 -0
- /package/node/components/InfiniteTreeList/{EndData → ListFooter/EndData}/EndData.d.ts +0 -0
- /package/node/components/InfiniteTreeList/{EndData → ListFooter/EndData}/constants.d.ts +0 -0
- /package/node/components/InfiniteTreeList/{EndData → ListFooter/EndData}/constants.js +0 -0
- /package/node/components/InfiniteTreeList/{EndData → ListFooter/EndData}/index.d.ts +0 -0
- /package/node/components/InfiniteTreeList/{EndData → ListFooter/EndData}/index.js +0 -0
- /package/node/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/ErrorMessage.d.ts +0 -0
- /package/node/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/constants.d.ts +0 -0
- /package/node/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/constants.js +0 -0
- /package/node/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/index.d.ts +0 -0
- /package/node/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/index.js +0 -0
- /package/node/components/InfiniteTreeList/{styles.d.ts → ListFooter/styles.d.ts} +0 -0
- /package/node/components/InfiniteTreeList/{useLogic/utils → utils}/flattenTree/index.d.ts +0 -0
- /package/node/components/InfiniteTreeList/{useLogic/utils → utils}/flattenTree/index.js +0 -0
- /package/node/components/InfiniteTreeList/{useLogic/utils → utils}/getInitialExpandedIds/index.d.ts +0 -0
- /package/node/components/InfiniteTreeList/{useLogic/utils → utils}/getInitialExpandedIds/index.js +0 -0
- /package/node/components/InfiniteTreeList/{useLogic/utils → utils}/sortCollapsed/index.d.ts +0 -0
- /package/node/components/InfiniteTreeList/{useLogic/utils → utils}/sortCollapsed/index.js +0 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ItemWrapper = exports.IconWrapper = exports.Wrapper = exports.Item = void 0;
|
|
4
|
+
const constants_1 = require("../../constants");
|
|
4
5
|
const styled_1 = require("../../styled");
|
|
5
|
-
const
|
|
6
|
+
const constants_2 = require("./constants");
|
|
6
7
|
exports.Item = styled_1.styled.div `
|
|
7
8
|
pointer-events: ${({ $isDisabled }) => ($isDisabled ? 'none' : 'auto')};
|
|
8
9
|
|
|
@@ -17,8 +18,10 @@ exports.Item = styled_1.styled.div `
|
|
|
17
18
|
});
|
|
18
19
|
}};
|
|
19
20
|
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
${constants_1.HOVER_MEDIA} {
|
|
22
|
+
&:hover {
|
|
23
|
+
background-color: ${({ theme }) => theme.palette.background.elementHover};
|
|
24
|
+
}
|
|
22
25
|
}
|
|
23
26
|
|
|
24
27
|
&:active {
|
|
@@ -27,7 +30,7 @@ exports.Item = styled_1.styled.div `
|
|
|
27
30
|
|
|
28
31
|
/* Причина игнора: Не критично для отображения */
|
|
29
32
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
30
|
-
&:has(.${
|
|
33
|
+
&:has(.${constants_2.sidebarPopoverItemClassnames.content}:focus-visible) {
|
|
31
34
|
border-radius: ${({ theme }) => theme.shape.small};
|
|
32
35
|
outline: 2px solid ${({ theme }) => theme.palette.components.focused};
|
|
33
36
|
outline-offset: -2px;
|
|
@@ -2,24 +2,25 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GroupedColumnLabel = exports.BottomDrawerContent = exports.ChevronIcon = exports.CollapseButton = exports.CollapseCell = exports.CheckboxCell = exports.CellStyled = exports.ContentWrapper = exports.Wrapper = void 0;
|
|
4
4
|
const ChevronROutlineMd_1 = require("../../../icons/ChevronROutlineMd");
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
5
6
|
const IconButton_1 = require("../../IconButton");
|
|
6
7
|
const styled_1 = require("../../styled");
|
|
7
8
|
const Typography_1 = require("../../Typography");
|
|
8
9
|
const Cell_1 = require("../Cell");
|
|
9
|
-
const
|
|
10
|
-
const
|
|
10
|
+
const constants_2 = require("../constants");
|
|
11
|
+
const constants_3 = require("./constants");
|
|
11
12
|
exports.Wrapper = styled_1.styled.li `
|
|
12
13
|
--level: 0;
|
|
13
14
|
position: relative;
|
|
14
15
|
|
|
15
16
|
&:not(:last-of-type)::before,
|
|
16
|
-
&.${
|
|
17
|
+
&.${constants_3.dataGridRowClassnames.hidden}::before {
|
|
17
18
|
content: '';
|
|
18
19
|
|
|
19
20
|
position: absolute;
|
|
20
21
|
z-index: 1;
|
|
21
22
|
top: 0;
|
|
22
|
-
transform: translateX(calc(${
|
|
23
|
+
transform: translateX(calc(${constants_2.ROOT_ACTION_CELL_WIDTH}px * var(--level) - ${constants_2.TREE_LINE_WIDTH}px));
|
|
23
24
|
|
|
24
25
|
display: none;
|
|
25
26
|
|
|
@@ -30,8 +31,8 @@ exports.Wrapper = styled_1.styled.li `
|
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
${({ theme }) => theme.breakpoints.up('mobile')} {
|
|
33
|
-
&.${
|
|
34
|
-
& .${
|
|
34
|
+
&.${constants_3.dataGridRowClassnames.showConnector}::before,
|
|
35
|
+
& .${constants_3.dataGridRowContentClassnames.root}::before {
|
|
35
36
|
display: block;
|
|
36
37
|
}
|
|
37
38
|
}
|
|
@@ -49,10 +50,10 @@ exports.Wrapper = styled_1.styled.li `
|
|
|
49
50
|
padding-top: ${({ theme }) => theme.spacing(1)};
|
|
50
51
|
}
|
|
51
52
|
|
|
52
|
-
&.${
|
|
53
|
+
&.${constants_3.dataGridRowClassnames.mobileVariantCards} {
|
|
53
54
|
border-bottom: none;
|
|
54
55
|
|
|
55
|
-
&:not(.${
|
|
56
|
+
&:not(.${constants_3.dataGridRowClassnames.nestedChildren}) {
|
|
56
57
|
padding: ${({ theme }) => theme.spacing(5, 4, 4)};
|
|
57
58
|
|
|
58
59
|
background-color: ${({ theme }) => theme.palette.background.default};
|
|
@@ -61,13 +62,13 @@ exports.Wrapper = styled_1.styled.li `
|
|
|
61
62
|
}
|
|
62
63
|
}
|
|
63
64
|
|
|
64
|
-
&.${
|
|
65
|
-
:not(.${
|
|
65
|
+
&.${constants_3.dataGridRowClassnames.hasNestedChildren} {
|
|
66
|
+
:not(.${constants_3.dataGridRowClassnames.nestedChildren}) .${Cell_1.dataGridCellClassnames.root}:last-of-type {
|
|
66
67
|
padding-bottom: ${({ theme }) => theme.spacing(3)};
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
/* Ко всем ячейкам кроме первой применяем декоративный элемент слева и добавляем отступы для выравнивания с NestedChildren */
|
|
70
|
-
&:not(.${
|
|
71
|
+
&:not(.${constants_3.dataGridRowClassnames.nestedChildren}) > .${constants_3.dataGridRowContentClassnames.root} .${Cell_1.dataGridCellClassnames.root}:not(.${constants_3.dataGridRowCellClassnames.firstCell}) {
|
|
71
72
|
position: relative;
|
|
72
73
|
|
|
73
74
|
margin-top: 0;
|
|
@@ -89,8 +90,8 @@ exports.Wrapper = styled_1.styled.li `
|
|
|
89
90
|
}
|
|
90
91
|
|
|
91
92
|
/* L-коннектор применяем ко 2 ячейки основной строки */
|
|
92
|
-
&:not(.${
|
|
93
|
-
> .${
|
|
93
|
+
&:not(.${constants_3.dataGridRowClassnames.nestedChildren})
|
|
94
|
+
> .${constants_3.dataGridRowContentClassnames.root} .${Cell_1.dataGridCellClassnames.root}.${constants_3.dataGridRowCellClassnames.firstCell}
|
|
94
95
|
+ .${Cell_1.dataGridCellClassnames.root} {
|
|
95
96
|
&::after {
|
|
96
97
|
content: '';
|
|
@@ -99,7 +100,7 @@ exports.Wrapper = styled_1.styled.li `
|
|
|
99
100
|
top: ${({ theme }) => theme.spacing(3)};
|
|
100
101
|
left: 0;
|
|
101
102
|
|
|
102
|
-
width: ${
|
|
103
|
+
width: ${constants_2.MOBILE_TREE_LINE_WIDTH}px;
|
|
103
104
|
height: ${({ theme }) => theme.spacing(2)};
|
|
104
105
|
|
|
105
106
|
border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
@@ -109,7 +110,7 @@ exports.Wrapper = styled_1.styled.li `
|
|
|
109
110
|
}
|
|
110
111
|
}
|
|
111
112
|
|
|
112
|
-
&.${
|
|
113
|
+
&.${constants_3.dataGridRowClassnames.nestedChildren} {
|
|
113
114
|
padding: ${({ theme }) => theme.spacing(3, 0, 3, 5)};
|
|
114
115
|
|
|
115
116
|
&::before {
|
|
@@ -147,9 +148,9 @@ exports.ContentWrapper = styled_1.styled.div `
|
|
|
147
148
|
|
|
148
149
|
position: absolute;
|
|
149
150
|
top: 0;
|
|
150
|
-
transform: translateX(calc(${
|
|
151
|
+
transform: translateX(calc(${constants_2.ROOT_ACTION_CELL_WIDTH}px * var(--level) - ${constants_2.TREE_LINE_WIDTH}px));
|
|
151
152
|
|
|
152
|
-
width: ${
|
|
153
|
+
width: ${constants_2.TREE_LINE_WIDTH}px;
|
|
153
154
|
height: 50%;
|
|
154
155
|
|
|
155
156
|
border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
@@ -162,41 +163,43 @@ exports.ContentWrapper = styled_1.styled.div `
|
|
|
162
163
|
}
|
|
163
164
|
|
|
164
165
|
/* L-коннектор для nestedChildren на мобильных устройствах */
|
|
165
|
-
.${
|
|
166
|
+
.${constants_3.dataGridRowClassnames.nestedChildren} &::before {
|
|
166
167
|
${({ theme }) => theme.breakpoints.down('mobile')} {
|
|
167
168
|
left: -20px;
|
|
168
169
|
transform: none;
|
|
169
170
|
|
|
170
171
|
display: block;
|
|
171
172
|
|
|
172
|
-
width: ${
|
|
173
|
+
width: ${constants_2.MOBILE_TREE_LINE_WIDTH}px;
|
|
173
174
|
|
|
174
175
|
/* Высота 8px для выравнивания с названием колонки первой ячейки */
|
|
175
176
|
height: ${({ theme }) => theme.spacing(2)};
|
|
176
177
|
}
|
|
177
178
|
}
|
|
178
179
|
|
|
179
|
-
&.${
|
|
180
|
+
&.${constants_3.dataGridRowContentClassnames.active} {
|
|
180
181
|
background-color: ${({ theme }) => theme.palette.primary[100]};
|
|
181
182
|
}
|
|
182
183
|
|
|
183
|
-
|
|
184
|
-
|
|
184
|
+
${constants_1.HOVER_MEDIA} {
|
|
185
|
+
&:hover {
|
|
186
|
+
background-color: ${({ theme }) => theme.palette.background.elementHover};
|
|
185
187
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
188
|
+
&.${constants_3.dataGridRowContentClassnames.active} {
|
|
189
|
+
background-color: ${({ theme }) => theme.palette.primary[100]};
|
|
190
|
+
}
|
|
189
191
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
+
&.${constants_3.dataGridRowContentClassnames.hovered} {
|
|
193
|
+
cursor: pointer;
|
|
194
|
+
}
|
|
192
195
|
}
|
|
193
196
|
}
|
|
194
197
|
|
|
195
198
|
|
|
196
|
-
&.${
|
|
199
|
+
&.${constants_3.dataGridRowClassnames.hover} {
|
|
197
200
|
background-color: ${({ theme }) => theme.palette.background.elementHover};
|
|
198
201
|
|
|
199
|
-
&.${
|
|
202
|
+
&.${constants_3.dataGridRowContentClassnames.hovered} {
|
|
200
203
|
cursor: pointer;
|
|
201
204
|
}
|
|
202
205
|
}
|
|
@@ -204,24 +207,14 @@ exports.ContentWrapper = styled_1.styled.div `
|
|
|
204
207
|
${({ theme }) => theme.breakpoints.down('mobile')} {
|
|
205
208
|
grid-template-columns: 1fr;
|
|
206
209
|
|
|
207
|
-
&.${
|
|
208
|
-
background-color: transparent;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
&:hover, &.${constants_2.dataGridRowClassnames.hover} {
|
|
212
|
-
cursor: initial;
|
|
213
|
-
|
|
210
|
+
&.${constants_3.dataGridRowContentClassnames.active} {
|
|
214
211
|
background-color: transparent;
|
|
215
|
-
|
|
216
|
-
&.${constants_2.dataGridRowContentClassnames.active} {
|
|
217
|
-
background-color: transparent;
|
|
218
|
-
}
|
|
219
212
|
}
|
|
220
213
|
}
|
|
221
214
|
`;
|
|
222
215
|
exports.CellStyled = (0, styled_1.styled)(Cell_1.Cell) `
|
|
223
216
|
&:first-of-type {
|
|
224
|
-
margin-left: calc(var(--level) * ${
|
|
217
|
+
margin-left: calc(var(--level) * ${constants_2.ROOT_ACTION_CELL_WIDTH}px);
|
|
225
218
|
}
|
|
226
219
|
`;
|
|
227
220
|
exports.CheckboxCell = styled_1.styled.div `
|
|
@@ -230,14 +223,14 @@ exports.CheckboxCell = styled_1.styled.div `
|
|
|
230
223
|
align-self: center;
|
|
231
224
|
justify-content: center;
|
|
232
225
|
|
|
233
|
-
width: ${
|
|
226
|
+
width: ${constants_2.ROOT_ACTION_CELL_WIDTH}px;
|
|
234
227
|
`;
|
|
235
228
|
exports.CollapseCell = styled_1.styled.div `
|
|
236
229
|
display: flex;
|
|
237
230
|
align-items: center;
|
|
238
231
|
justify-content: center;
|
|
239
232
|
|
|
240
|
-
width: ${
|
|
233
|
+
width: ${constants_2.ROOT_ACTION_CELL_WIDTH}px;
|
|
241
234
|
|
|
242
235
|
${({ theme }) => theme.breakpoints.down('mobile')} {
|
|
243
236
|
display: none;
|
|
@@ -249,8 +242,10 @@ exports.CollapseButton = (0, styled_1.styled)(IconButton_1.IconButton) `
|
|
|
249
242
|
|
|
250
243
|
color: inherit;
|
|
251
244
|
|
|
252
|
-
|
|
253
|
-
|
|
245
|
+
${constants_1.HOVER_MEDIA} {
|
|
246
|
+
&:hover {
|
|
247
|
+
background-color: ${({ theme }) => theme.palette.grey[300]};
|
|
248
|
+
}
|
|
254
249
|
}
|
|
255
250
|
`;
|
|
256
251
|
exports.ChevronIcon = (0, styled_1.styled)(ChevronROutlineMd_1.ChevronROutlineMd, {
|
|
@@ -276,7 +271,7 @@ exports.GroupedColumnLabel = (0, styled_1.styled)(Typography_1.Typography) `
|
|
|
276
271
|
|
|
277
272
|
margin-top: ${({ theme }) => theme.spacing(3)};
|
|
278
273
|
|
|
279
|
-
&.${
|
|
274
|
+
&.${constants_3.dataGridGroupedColumnLabelClassnames.hidden} {
|
|
280
275
|
display: none;
|
|
281
276
|
}
|
|
282
277
|
}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BottomDrawerContent = exports.ContentWrapper = exports.Wrapper = exports.CheckboxCell = void 0;
|
|
4
|
+
const constants_1 = require("../../constants");
|
|
4
5
|
const styled_1 = require("../../styled");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
6
|
+
const constants_2 = require("../constants");
|
|
7
|
+
const constants_3 = require("./constants");
|
|
7
8
|
exports.CheckboxCell = styled_1.styled.div `
|
|
8
9
|
display: flex;
|
|
9
10
|
align-items: center;
|
|
10
11
|
align-self: center;
|
|
11
12
|
justify-content: center;
|
|
12
13
|
|
|
13
|
-
width: ${
|
|
14
|
+
width: ${constants_2.ROOT_ACTION_CELL_WIDTH}px;
|
|
14
15
|
`;
|
|
15
16
|
exports.Wrapper = styled_1.styled.li `
|
|
16
17
|
--row-base-grid-columns: 1fr;
|
|
@@ -30,7 +31,7 @@ exports.Wrapper = styled_1.styled.li `
|
|
|
30
31
|
padding-top: ${({ theme }) => theme.spacing(1)};
|
|
31
32
|
}
|
|
32
33
|
|
|
33
|
-
&.${
|
|
34
|
+
&.${constants_3.dataGridRowBaseClassnames.mobileVariantCards} {
|
|
34
35
|
padding: ${({ theme }) => theme.spacing(5, 4, 4)};
|
|
35
36
|
|
|
36
37
|
background-color: ${({ theme }) => theme.palette.background.default};
|
|
@@ -49,38 +50,30 @@ exports.ContentWrapper = styled_1.styled.div `
|
|
|
49
50
|
|
|
50
51
|
background-color: transparent;
|
|
51
52
|
|
|
52
|
-
&.${
|
|
53
|
+
&.${constants_3.dataGridRowBaseClassnames.active} {
|
|
53
54
|
background-color: ${({ theme }) => theme.palette.primary[100]};
|
|
54
55
|
}
|
|
55
56
|
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
${constants_1.HOVER_MEDIA} {
|
|
58
|
+
&:hover {
|
|
59
|
+
background-color: ${({ theme }) => theme.palette.background.elementHover};
|
|
58
60
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
61
|
+
&.${constants_3.dataGridRowBaseClassnames.active} {
|
|
62
|
+
background-color: ${({ theme }) => theme.palette.primary[100]};
|
|
63
|
+
}
|
|
62
64
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
+
&.${constants_3.dataGridRowBaseClassnames.hovered} {
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
}
|
|
65
68
|
}
|
|
66
69
|
}
|
|
67
70
|
|
|
68
71
|
${({ theme }) => theme.breakpoints.down('mobile')} {
|
|
69
72
|
grid-template-columns: 1fr;
|
|
70
73
|
|
|
71
|
-
&.${
|
|
74
|
+
&.${constants_3.dataGridRowBaseClassnames.active} {
|
|
72
75
|
background-color: transparent;
|
|
73
76
|
}
|
|
74
|
-
|
|
75
|
-
&:hover, &.${constants_2.dataGridRowBaseClassnames.hovered} {
|
|
76
|
-
cursor: initial;
|
|
77
|
-
|
|
78
|
-
background-color: transparent;
|
|
79
|
-
|
|
80
|
-
&.${constants_2.dataGridRowBaseClassnames.active} {
|
|
81
|
-
background-color: transparent;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
77
|
}
|
|
85
78
|
`;
|
|
86
79
|
exports.BottomDrawerContent = styled_1.styled.div `
|
|
@@ -3,11 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.StyledRowBase = exports.ChevronIcon = exports.CollapseCell = exports.CollapseButton = exports.MobileExpandButtonWrapper = exports.ChildrenWrapper = exports.CollapseContent = exports.CollapseContainer = void 0;
|
|
4
4
|
const ChevronROutlineMd_1 = require("../../icons/ChevronROutlineMd");
|
|
5
5
|
const Button_1 = require("../Button");
|
|
6
|
-
const constants_1 = require("../
|
|
6
|
+
const constants_1 = require("../constants");
|
|
7
|
+
const constants_2 = require("../DataGrid/constants");
|
|
7
8
|
const RowBase_1 = require("../DataGrid/RowBase");
|
|
8
9
|
const IconButton_1 = require("../IconButton");
|
|
9
10
|
const styled_1 = require("../styled");
|
|
10
|
-
const
|
|
11
|
+
const constants_3 = require("./constants");
|
|
11
12
|
exports.CollapseContainer = styled_1.styled.div `
|
|
12
13
|
width: 100%;
|
|
13
14
|
margin-bottom: ${({ theme }) => theme.spacing(4)};
|
|
@@ -47,8 +48,10 @@ exports.CollapseButton = (0, styled_1.styled)(IconButton_1.IconButton) `
|
|
|
47
48
|
|
|
48
49
|
color: inherit;
|
|
49
50
|
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
${constants_1.HOVER_MEDIA} {
|
|
52
|
+
&:hover {
|
|
53
|
+
background-color: ${({ theme }) => theme.palette.grey[300]};
|
|
54
|
+
}
|
|
52
55
|
}
|
|
53
56
|
`;
|
|
54
57
|
exports.CollapseCell = styled_1.styled.div `
|
|
@@ -56,7 +59,7 @@ exports.CollapseCell = styled_1.styled.div `
|
|
|
56
59
|
align-items: center;
|
|
57
60
|
justify-content: center;
|
|
58
61
|
|
|
59
|
-
width: ${
|
|
62
|
+
width: ${constants_2.ROOT_ACTION_CELL_WIDTH}px;
|
|
60
63
|
|
|
61
64
|
${({ theme }) => theme.breakpoints.down('mobile')} {
|
|
62
65
|
display: none;
|
|
@@ -70,7 +73,7 @@ exports.ChevronIcon = (0, styled_1.styled)(ChevronROutlineMd_1.ChevronROutlineMd
|
|
|
70
73
|
duration: theme.transitions.duration.short,
|
|
71
74
|
})};
|
|
72
75
|
|
|
73
|
-
&.${
|
|
76
|
+
&.${constants_3.collapsibleRowClassnames.chevronIconActive} {
|
|
74
77
|
transform: rotateZ(90deg);
|
|
75
78
|
}
|
|
76
79
|
`;
|
|
@@ -90,11 +93,11 @@ exports.StyledRowBase = (0, styled_1.styled)(RowBase_1.RowBase) `
|
|
|
90
93
|
outline: 1px solid ${({ theme }) => theme.palette.grey[300]};
|
|
91
94
|
}
|
|
92
95
|
|
|
93
|
-
& .${
|
|
96
|
+
& .${constants_3.collapsibleRowClassnames.collapseButton} {
|
|
94
97
|
padding-left: ${({ theme }) => theme.spacing(4)};
|
|
95
98
|
}
|
|
96
99
|
|
|
97
|
-
& .${
|
|
100
|
+
& .${constants_3.collapsibleRowClassnames.collapsibleContent} {
|
|
98
101
|
background-color: transparent;
|
|
99
102
|
}
|
|
100
103
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Wrapper = exports.StyledCopyTypography = exports.StyledTypography = void 0;
|
|
4
4
|
const CopyTypography_1 = require("../../CopyTypography");
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
5
6
|
const styled_1 = require("../../styled");
|
|
6
7
|
const Typography_1 = require("../../Typography");
|
|
7
8
|
exports.StyledTypography = (0, styled_1.styled)(Typography_1.Typography, {
|
|
@@ -19,8 +20,10 @@ exports.StyledTypography = (0, styled_1.styled)(Typography_1.Typography, {
|
|
|
19
20
|
text-align: ${({ $direction }) => $direction !== 'row' ? 'left' : 'right'};
|
|
20
21
|
}
|
|
21
22
|
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
${constants_1.HOVER_MEDIA} {
|
|
24
|
+
&:hover {
|
|
25
|
+
text-decoration: ${({ $canCopy }) => ($canCopy ? 'underline' : 'none')};
|
|
26
|
+
}
|
|
24
27
|
}
|
|
25
28
|
`;
|
|
26
29
|
exports.StyledCopyTypography = (0, styled_1.styled)(CopyTypography_1.CopyTypography, {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StyledChevron = exports.Title = exports.Wrapper = void 0;
|
|
4
4
|
const Chevron_1 = require("../../Chevron");
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
5
6
|
const styled_1 = require("../../styled");
|
|
6
7
|
const getBackgroundColor = (theme, isDisabled, isSelected) => {
|
|
7
8
|
if (isDisabled) {
|
|
@@ -31,8 +32,10 @@ exports.Wrapper = (0, styled_1.styled)('summary', {
|
|
|
31
32
|
duration: theme.transitions.duration.standard,
|
|
32
33
|
})};
|
|
33
34
|
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
${constants_1.HOVER_MEDIA} {
|
|
36
|
+
&:hover {
|
|
37
|
+
background-color: ${({ theme }) => theme.palette.background.elementHover};
|
|
38
|
+
}
|
|
36
39
|
}
|
|
37
40
|
|
|
38
41
|
&:focus-visible {
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.StyledFab = void 0;
|
|
7
7
|
const ButtonBase_1 = require("@mui/material/ButtonBase");
|
|
8
8
|
const Fab_1 = __importDefault(require("@mui/material/Fab"));
|
|
9
|
+
const constants_1 = require("../constants");
|
|
9
10
|
const styled_1 = require("../styled");
|
|
10
11
|
const enums_1 = require("./enums");
|
|
11
12
|
const getBgColor = ({ theme, color, fabState, }) => {
|
|
@@ -76,10 +77,18 @@ exports.StyledFab = (0, styled_1.styled)(Fab_1.default, {
|
|
|
76
77
|
border-radius: ${({ theme, isSquare }) => isSquare ? theme.shape.medium : '50%'};
|
|
77
78
|
box-shadow: ${({ theme }) => theme.elevation[200]};
|
|
78
79
|
|
|
79
|
-
|
|
80
|
-
|
|
80
|
+
${constants_1.HOVER_MEDIA} {
|
|
81
|
+
:hover {
|
|
82
|
+
color: ${(props) => getColor({ ...props })};
|
|
81
83
|
|
|
82
|
-
|
|
84
|
+
background: ${(props) => getBgColor({ ...props, fabState: enums_1.FabStates.Hover })};
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
${constants_1.HOVER_NONE_MEDIA} {
|
|
89
|
+
&:hover {
|
|
90
|
+
background-color: ${(props) => getBgColor({ ...props, fabState: enums_1.FabStates.Default })};
|
|
91
|
+
}
|
|
83
92
|
}
|
|
84
93
|
|
|
85
94
|
:active {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Item = void 0;
|
|
4
|
+
const constants_1 = require("../constants");
|
|
4
5
|
const styled_1 = require("../styled");
|
|
5
|
-
const
|
|
6
|
+
const constants_2 = require("./constants");
|
|
6
7
|
exports.Item = styled_1.styled.li `
|
|
7
8
|
list-style-type: none;
|
|
8
9
|
|
|
9
|
-
${`.${
|
|
10
|
+
${`.${constants_2.infiniteDataListClassnames.item}`} {
|
|
10
11
|
cursor: pointer;
|
|
11
12
|
|
|
12
13
|
padding: ${({ theme }) => theme.spacing(3, 4)};
|
|
@@ -18,8 +19,10 @@ exports.Item = styled_1.styled.li `
|
|
|
18
19
|
duration: theme.transitions.duration.shortest,
|
|
19
20
|
})};
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
${constants_1.HOVER_MEDIA} {
|
|
23
|
+
&:hover {
|
|
24
|
+
background-color: ${({ theme }) => theme.palette.background.element};
|
|
25
|
+
}
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
${({ theme }) => theme.breakpoints.down('mobile')} {
|
|
@@ -1,2 +1,20 @@
|
|
|
1
1
|
import type { InfiniteTreeListData, InfiniteTreeListProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Виртуализированное дерево с бесконечной подгрузкой
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* <InfiniteTreeList
|
|
7
|
+
* items={items}
|
|
8
|
+
* scrollRef={scrollRef}
|
|
9
|
+
* onRetry={refetch}
|
|
10
|
+
* renderItem={(item) => (
|
|
11
|
+
* <InfiniteTreeListItem>{item.name}</InfiniteTreeListItem>
|
|
12
|
+
* )}
|
|
13
|
+
* renderParent={(item) => (
|
|
14
|
+
* <InfiniteTreeListItem childItems={childrenState[item.id]?.data}>
|
|
15
|
+
* {item.name}
|
|
16
|
+
* </InfiniteTreeListItem>
|
|
17
|
+
* )}
|
|
18
|
+
* />
|
|
19
|
+
*/
|
|
2
20
|
export declare const InfiniteTreeList: <TData extends InfiniteTreeListData<TData>>(props: InfiniteTreeListProps<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,30 +2,37 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InfiniteTreeList = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
// cspell:ignore Виртуализированное
|
|
5
6
|
const react_virtuoso_1 = require("react-virtuoso");
|
|
6
7
|
const ContentState_1 = require("../ContentState");
|
|
7
|
-
const Loader_1 = require("../Loader");
|
|
8
|
-
const constants_1 = require("./constants");
|
|
9
|
-
const EndData_1 = require("./EndData");
|
|
10
|
-
const ErrorMessage_1 = require("./ErrorMessage");
|
|
11
8
|
const InfiniteTreeListContext_1 = require("./InfiniteTreeListContext");
|
|
12
|
-
const
|
|
9
|
+
const ListFooter_1 = require("./ListFooter");
|
|
13
10
|
const NoDataPlaceholder_1 = require("./NoDataPlaceholder");
|
|
14
11
|
const OnTopButton_1 = require("./OnTopButton");
|
|
15
|
-
const
|
|
12
|
+
const ParentItems_1 = require("./ParentItems");
|
|
16
13
|
const TreeItem_1 = require("./TreeItem");
|
|
17
14
|
const useLogic_1 = require("./useLogic");
|
|
15
|
+
const computeItemKey = (_, item) => item.id;
|
|
16
|
+
/**
|
|
17
|
+
* Виртуализированное дерево с бесконечной подгрузкой
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* <InfiniteTreeList
|
|
21
|
+
* items={items}
|
|
22
|
+
* scrollRef={scrollRef}
|
|
23
|
+
* onRetry={refetch}
|
|
24
|
+
* renderItem={(item) => (
|
|
25
|
+
* <InfiniteTreeListItem>{item.name}</InfiniteTreeListItem>
|
|
26
|
+
* )}
|
|
27
|
+
* renderParent={(item) => (
|
|
28
|
+
* <InfiniteTreeListItem childItems={childrenState[item.id]?.data}>
|
|
29
|
+
* {item.name}
|
|
30
|
+
* </InfiniteTreeListItem>
|
|
31
|
+
* )}
|
|
32
|
+
* />
|
|
33
|
+
*/
|
|
18
34
|
const InfiniteTreeList = (props) => {
|
|
19
|
-
const { flatList, onToggle, contentStateProps, scrollParent, virtuosoProps,
|
|
20
|
-
|
|
21
|
-
return ((0, jsx_runtime_1.jsx)(InfiniteTreeListContext_1.InfiniteTreeListContextProvider, { itemSkeleton: itemSkeleton, children: (0, jsx_runtime_1.jsx)(ContentState_1.ContentState, { ...contentStateProps, children: items.length && scrollParent ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_virtuoso_1.Virtuoso, { ...virtuosoProps, data: flatList, customScrollParent: scrollParent, endReached: onLoadMore, itemContent: renderItemContent, computeItemKey: (_, item) => item.id, components: {
|
|
22
|
-
Footer: () => {
|
|
23
|
-
const { isLoading, isError, isEndReached } = footerProps;
|
|
24
|
-
if (!isLoading && !isError && !isEndReached) {
|
|
25
|
-
return (0, jsx_runtime_1.jsx)(styles_1.FooterDummy, {});
|
|
26
|
-
}
|
|
27
|
-
return ((0, jsx_runtime_1.jsxs)(styles_1.Footer, { 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 }))] }));
|
|
28
|
-
},
|
|
29
|
-
}, overscan: constants_1.OVERSCAN }), (0, jsx_runtime_1.jsx)(OnTopButton_1.OnTopButton, { ...onTopButtonProps })] })) : ((0, jsx_runtime_1.jsx)(NoDataPlaceholder_1.NoDataPlaceholder, { noDataImgSrc: noDataImgSrc })) }) }));
|
|
35
|
+
const { flatList, onToggle, contentStateProps, scrollParent, virtuosoProps, footerContext, onTopButtonProps, renderItem, renderParent, items, itemSkeleton, onRetry, noDataImgSrc, enterAnimation, tailRegistry, nodePaginationMap, registerChildren, notifyExpand, parentItems, acquireParentSlot, } = (0, useLogic_1.useLogic)(props);
|
|
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: items.length > 0 && scrollParent ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_virtuoso_1.Virtuoso, { ...virtuosoProps, data: flatList, customScrollParent: scrollParent, computeItemKey: computeItemKey, context: footerContext, components: { Item: TreeItem_1.TreeItem, Footer: ListFooter_1.ListFooter } }), (0, jsx_runtime_1.jsx)(OnTopButton_1.OnTopButton, { ...onTopButtonProps })] })) : ((0, jsx_runtime_1.jsx)(NoDataPlaceholder_1.NoDataPlaceholder, { noDataImgSrc: noDataImgSrc })) })] }));
|
|
30
37
|
};
|
|
31
38
|
exports.InfiniteTreeList = InfiniteTreeList;
|
package/node/components/InfiniteTreeList/InfiniteTreeListActions/InfiniteTreeListActions.d.ts
CHANGED
|
@@ -1,2 +1,11 @@
|
|
|
1
1
|
import type { InfiniteTreeListActionProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Действия строки дерева. Блокирующее действие в состоянии загрузки блокирует
|
|
4
|
+
* строку вместе со всей её веткой
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <InfiniteTreeListActions
|
|
8
|
+
* actions={{ main: [{ name: 'Изменить', onClick: handleEdit }] }}
|
|
9
|
+
* />
|
|
10
|
+
*/
|
|
2
11
|
export declare const InfiniteTreeListActions: <TItem>({ actions, }: InfiniteTreeListActionProps<TItem>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,6 +4,15 @@ exports.InfiniteTreeListActions = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const ActionCellBase_1 = require("../../ActionCellBase");
|
|
6
6
|
const useLogic_1 = require("./useLogic");
|
|
7
|
+
/**
|
|
8
|
+
* Действия строки дерева. Блокирующее действие в состоянии загрузки блокирует
|
|
9
|
+
* строку вместе со всей её веткой
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* <InfiniteTreeListActions
|
|
13
|
+
* actions={{ main: [{ name: 'Изменить', onClick: handleEdit }] }}
|
|
14
|
+
* />
|
|
15
|
+
*/
|
|
7
16
|
const InfiniteTreeListActions = ({ actions, }) => {
|
|
8
17
|
const { isDisabledAction, handleWrapperClick, handleActionClick } = (0, useLogic_1.useLogic)({
|
|
9
18
|
actions,
|
|
@@ -10,17 +10,16 @@ const useLogic = ({ actions }) => {
|
|
|
10
10
|
const { setDisabled } = (0, react_1.useContext)(InfiniteTreeListContext_1.InfiniteTreeListContext);
|
|
11
11
|
const blockingAction = (0, react_1.useMemo)(() => [...main, ...secondary].find((action) => action.isBlockingOperation && action.loading), [main, secondary]);
|
|
12
12
|
const isDisabledAction = Boolean(blockingAction);
|
|
13
|
+
const loadingNote = blockingAction?.loadingNote;
|
|
13
14
|
(0, react_1.useEffect)(() => {
|
|
14
|
-
if (
|
|
15
|
-
// Добавляем id элемента в Set disabled элементов
|
|
15
|
+
if (isDisabledAction) {
|
|
16
16
|
setDisabled(item.id, true);
|
|
17
|
-
setDisabledReason(
|
|
17
|
+
setDisabledReason(loadingNote);
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
|
-
// Удаляем id элемента из Set disabled элементов
|
|
21
20
|
setDisabled(item.id, false);
|
|
22
|
-
setDisabledReason(
|
|
23
|
-
}, [
|
|
21
|
+
setDisabledReason(undefined);
|
|
22
|
+
}, [isDisabledAction, loadingNote, item.id]);
|
|
24
23
|
const handleActionClick = (0, react_1.useCallback)((onClick) => () => {
|
|
25
24
|
onClick?.(item);
|
|
26
25
|
}, [item]);
|