@heliux-org/design-system-core 0.0.306-Test → 0.0.306
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/NewTableHeader.css +30 -0
- package/dist/NewTableHeader.css.map +1 -0
- package/dist/NewTableHeader.js +3 -0
- package/dist/NewTableHeader.js.LICENSE.txt +48 -0
- package/dist/NewTableHeader.js.map +1 -0
- package/dist/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.js +6 -2
- package/dist/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.js.map +1 -1
- package/dist/components/Table/Table.types.js +3 -0
- package/dist/components/Table/Table.types.js.map +1 -0
- package/dist/components/Table/components/Cell/Cell.js +40 -0
- package/dist/components/Table/components/Cell/Cell.js.map +1 -0
- package/dist/components/Table/components/Cell/Cell.types.js +9 -0
- package/dist/components/Table/components/Cell/Cell.types.js.map +1 -0
- package/dist/components/Table/components/Cell/HeaderCell/HeaderCell.js +61 -0
- package/dist/components/Table/components/Cell/HeaderCell/HeaderCell.js.map +1 -0
- package/dist/components/Table/components/Cell/HeaderCell/HeaderCell.types.js +10 -0
- package/dist/components/Table/components/Cell/HeaderCell/HeaderCell.types.js.map +1 -0
- package/dist/components/Table/components/Cell/HeaderCell/SortIcon/SortIcon.js +40 -0
- package/dist/components/Table/components/Cell/HeaderCell/SortIcon/SortIcon.js.map +1 -0
- package/dist/components/Table/components/Cell/HeaderCell/SortIcon/SortIcon.types.js +3 -0
- package/dist/components/Table/components/Cell/HeaderCell/SortIcon/SortIcon.types.js.map +1 -0
- package/dist/components/Table/components/Cell/HeaderCell/index.js +8 -0
- package/dist/components/Table/components/Cell/HeaderCell/index.js.map +1 -0
- package/dist/components/Table/components/Cell/InternalCell.js +48 -0
- package/dist/components/Table/components/Cell/InternalCell.js.map +1 -0
- package/dist/components/Table/components/Cell/index.js +11 -0
- package/dist/components/Table/components/Cell/index.js.map +1 -0
- package/dist/components/Table/components/ExpandedContent/ExpandedContent.js +42 -0
- package/dist/components/Table/components/ExpandedContent/ExpandedContent.js.map +1 -0
- package/dist/components/Table/components/ExpandedContent/ExpandedContent.types.js +3 -0
- package/dist/components/Table/components/ExpandedContent/ExpandedContent.types.js.map +1 -0
- package/dist/components/Table/components/ExpandedContent/index.js +8 -0
- package/dist/components/Table/components/ExpandedContent/index.js.map +1 -0
- package/dist/components/Table/components/Row/HeaderRow/HeaderRow.js +28 -0
- package/dist/components/Table/components/Row/HeaderRow/HeaderRow.js.map +1 -0
- package/dist/components/Table/components/Row/HeaderRow/HeaderRow.types.js +3 -0
- package/dist/components/Table/components/Row/HeaderRow/HeaderRow.types.js.map +1 -0
- package/dist/components/Table/components/Row/HeaderRow/index.js +8 -0
- package/dist/components/Table/components/Row/HeaderRow/index.js.map +1 -0
- package/dist/components/Table/components/Row/InternalRowBase.js +31 -0
- package/dist/components/Table/components/Row/InternalRowBase.js.map +1 -0
- package/dist/components/Table/components/Row/InternalRowWithRT.js +91 -0
- package/dist/components/Table/components/Row/InternalRowWithRT.js.map +1 -0
- package/dist/components/Table/components/Row/InternalRowWithoutRT.js +42 -0
- package/dist/components/Table/components/Row/InternalRowWithoutRT.js.map +1 -0
- package/dist/components/Table/components/Row/Row.js +36 -0
- package/dist/components/Table/components/Row/Row.js.map +1 -0
- package/dist/components/Table/components/Row/Row.types.js +3 -0
- package/dist/components/Table/components/Row/Row.types.js.map +1 -0
- package/dist/components/Table/components/Row/RowCellChildren.js +42 -0
- package/dist/components/Table/components/Row/RowCellChildren.js.map +1 -0
- package/dist/components/Table/components/Row/RowContext.js +15 -0
- package/dist/components/Table/components/Row/RowContext.js.map +1 -0
- package/dist/components/Table/components/Row/index.js +11 -0
- package/dist/components/Table/components/Row/index.js.map +1 -0
- package/dist/components/Table/components/TableBody/TableBody.js +38 -0
- package/dist/components/Table/components/TableBody/TableBody.js.map +1 -0
- package/dist/components/Table/components/TableBody/TableBody.types.js +3 -0
- package/dist/components/Table/components/TableBody/TableBody.types.js.map +1 -0
- package/dist/components/Table/components/TableBody/index.js +8 -0
- package/dist/components/Table/components/TableBody/index.js.map +1 -0
- package/dist/components/Table/components/TableContext/TableContext.js +32 -0
- package/dist/components/Table/components/TableContext/TableContext.js.map +1 -0
- package/dist/components/Table/components/TableContext/TableContext.types.js +3 -0
- package/dist/components/Table/components/TableContext/TableContext.types.js.map +1 -0
- package/dist/components/Table/components/TableContext/index.js +30 -0
- package/dist/components/Table/components/TableContext/index.js.map +1 -0
- package/dist/components/Table/components/TableHead/TableHead.js +31 -0
- package/dist/components/Table/components/TableHead/TableHead.js.map +1 -0
- package/dist/components/Table/components/TableHead/TableHead.types.js +3 -0
- package/dist/components/Table/components/TableHead/TableHead.types.js.map +1 -0
- package/dist/components/Table/components/TableHead/index.js +8 -0
- package/dist/components/Table/components/TableHead/index.js.map +1 -0
- package/dist/components/Table/components/TableHeader/TableHeader.js +116 -0
- package/dist/components/Table/components/TableHeader/TableHeader.js.map +1 -0
- package/dist/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.js +38 -0
- package/dist/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.js.map +1 -0
- package/dist/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.types.js +3 -0
- package/dist/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.types.js.map +1 -0
- package/dist/components/Table/components/ToggleExpandedIcon/index.js +8 -0
- package/dist/components/Table/components/ToggleExpandedIcon/index.js.map +1 -0
- package/dist/components/Table/components/newComponents/Buttons/Button.js +63 -0
- package/dist/components/Table/components/newComponents/Buttons/Button.js.map +1 -0
- package/dist/components/Table/components/newComponents/Buttons/DropdownButton.js +83 -0
- package/dist/components/Table/components/newComponents/Buttons/DropdownButton.js.map +1 -0
- package/dist/components/Table/components/newComponents/Buttons/IconButton.js +66 -0
- package/dist/components/Table/components/newComponents/Buttons/IconButton.js.map +1 -0
- package/dist/components/Table/components/newComponents/Buttons/IdeasButton.js +54 -0
- package/dist/components/Table/components/newComponents/Buttons/IdeasButton.js.map +1 -0
- package/dist/components/Table/components/newComponents/Buttons/SplitButton.js +99 -0
- package/dist/components/Table/components/newComponents/Buttons/SplitButton.js.map +1 -0
- package/dist/components/Table/components/newComponents/Checkbox/Checkbox.js +87 -0
- package/dist/components/Table/components/newComponents/Checkbox/Checkbox.js.map +1 -0
- package/dist/components/Table/components/newComponents/DropdownMenu/DropdownMenu.js +99 -0
- package/dist/components/Table/components/newComponents/DropdownMenu/DropdownMenu.js.map +1 -0
- package/dist/components/Table/components/newComponents/Input/Input.js +62 -0
- package/dist/components/Table/components/newComponents/Input/Input.js.map +1 -0
- package/dist/components/Table/components/newComponents/Menu/Menu.js +103 -0
- package/dist/components/Table/components/newComponents/Menu/Menu.js.map +1 -0
- package/dist/components/Table/components/newComponents/Menu/MenuDivider.js +27 -0
- package/dist/components/Table/components/newComponents/Menu/MenuDivider.js.map +1 -0
- package/dist/components/Table/components/newComponents/Menu/MenuExtraContent.js +32 -0
- package/dist/components/Table/components/newComponents/Menu/MenuExtraContent.js.map +1 -0
- package/dist/components/Table/components/newComponents/Menu/MenuItem.js +139 -0
- package/dist/components/Table/components/newComponents/Menu/MenuItem.js.map +1 -0
- package/dist/components/Table/components/newComponents/Menu/MenuItemSkeleton.js +59 -0
- package/dist/components/Table/components/newComponents/Menu/MenuItemSkeleton.js.map +1 -0
- package/dist/components/Table/components/newComponents/Polymorphic/Polymorph.js +44 -0
- package/dist/components/Table/components/newComponents/Polymorphic/Polymorph.js.map +1 -0
- package/dist/components/Table/components/newComponents/Polymorphic/Polymorphic.hooks.js +41 -0
- package/dist/components/Table/components/newComponents/Polymorphic/Polymorphic.hooks.js.map +1 -0
- package/dist/components/Table/components/newComponents/Polymorphic/Polymorphic.js +30 -0
- package/dist/components/Table/components/newComponents/Polymorphic/Polymorphic.js.map +1 -0
- package/dist/components/Table/components/newComponents/Polymorphic/Polymorphic.types.js +10 -0
- package/dist/components/Table/components/newComponents/Polymorphic/Polymorphic.types.js.map +1 -0
- package/dist/components/Table/components/newComponents/Polymorphic/index.js +12 -0
- package/dist/components/Table/components/newComponents/Polymorphic/index.js.map +1 -0
- package/dist/components/Table/components/newComponents/Popover/Popover.js +147 -0
- package/dist/components/Table/components/newComponents/Popover/Popover.js.map +1 -0
- package/dist/components/Table/components/newComponents/ProgressIndicators/ProgressLinear.js +82 -0
- package/dist/components/Table/components/newComponents/ProgressIndicators/ProgressLinear.js.map +1 -0
- package/dist/components/Table/components/newComponents/ProgressIndicators/ProgressRadial.js +84 -0
- package/dist/components/Table/components/newComponents/ProgressIndicators/ProgressRadial.js.map +1 -0
- package/dist/components/Table/components/newComponents/ThemeProvider/ThemeContext.js +33 -0
- package/dist/components/Table/components/newComponents/ThemeProvider/ThemeContext.js.map +1 -0
- package/dist/components/Table/components/newComponents/ThemeProvider/ThemeProvider.js +204 -0
- package/dist/components/Table/components/newComponents/ThemeProvider/ThemeProvider.js.map +1 -0
- package/dist/components/Table/components/newComponents/Toast/Toast.js +141 -0
- package/dist/components/Table/components/newComponents/Toast/Toast.js.map +1 -0
- package/dist/components/Table/components/newComponents/Toast/Toaster.js +123 -0
- package/dist/components/Table/components/newComponents/Toast/Toaster.js.map +1 -0
- package/dist/components/Table/components/newComponents/VisuallyHidden/VisuallyHidden.js +77 -0
- package/dist/components/Table/components/newComponents/VisuallyHidden/VisuallyHidden.js.map +1 -0
- package/dist/components/Table/components/newComponents/pagination/Pagination.js +80 -0
- package/dist/components/Table/components/newComponents/pagination/Pagination.js.map +1 -0
- package/dist/components/Table/components/newComponents/pagination/Pagination.types.js +3 -0
- package/dist/components/Table/components/newComponents/pagination/Pagination.types.js.map +1 -0
- package/dist/components/Table/components/newComponents/pagination/index.js +8 -0
- package/dist/components/Table/components/newComponents/pagination/index.js.map +1 -0
- package/dist/components/Table/components/newComponents/pagination/useIdAllocator.js +19 -0
- package/dist/components/Table/components/newComponents/pagination/useIdAllocator.js.map +1 -0
- package/dist/components/Table/components/newComponents/pagination/utils.js +16 -0
- package/dist/components/Table/components/newComponents/pagination/utils.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/color/ColorValue.js +517 -0
- package/dist/components/Table/components/newComponents/utils/color/ColorValue.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/color/index.js +22 -0
- package/dist/components/Table/components/newComponents/utils/color/index.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/components/AutoclearingHiddenLiveRegion.js +54 -0
- package/dist/components/Table/components/newComponents/utils/components/AutoclearingHiddenLiveRegion.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/components/Box.js +15 -0
- package/dist/components/Table/components/newComponents/utils/components/Box.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/components/ButtonBase.js +66 -0
- package/dist/components/Table/components/newComponents/utils/components/ButtonBase.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/components/FocusTrap.js +71 -0
- package/dist/components/Table/components/newComponents/utils/components/FocusTrap.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/components/InputContainer.js +73 -0
- package/dist/components/Table/components/newComponents/utils/components/InputContainer.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/components/InputFlexContainer.js +58 -0
- package/dist/components/Table/components/newComponents/utils/components/InputFlexContainer.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/components/InputWithIcon.js +12 -0
- package/dist/components/Table/components/newComponents/utils/components/InputWithIcon.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/components/LineClamp.js +59 -0
- package/dist/components/Table/components/newComponents/utils/components/LineClamp.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/components/MiddleTextTruncation.js +77 -0
- package/dist/components/Table/components/newComponents/utils/components/MiddleTextTruncation.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/components/Portal.js +70 -0
- package/dist/components/Table/components/newComponents/utils/components/Portal.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/components/Resizer.js +222 -0
- package/dist/components/Table/components/newComponents/utils/components/Resizer.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/components/ShadowRoot.js +82 -0
- package/dist/components/Table/components/newComponents/utils/components/ShadowRoot.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/components/VirtualScroll.js +325 -0
- package/dist/components/Table/components/newComponents/utils/components/VirtualScroll.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/components/WithCSSTransition.js +73 -0
- package/dist/components/Table/components/newComponents/utils/components/WithCSSTransition.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/components/index.js +5 -0
- package/dist/components/Table/components/newComponents/utils/components/index.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/functions/colors.js +41 -0
- package/dist/components/Table/components/newComponents/utils/functions/colors.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/functions/date.js +22 -0
- package/dist/components/Table/components/newComponents/utils/functions/date.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/functions/dev.js +42 -0
- package/dist/components/Table/components/newComponents/utils/functions/dev.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/functions/dom.js +55 -0
- package/dist/components/Table/components/newComponents/utils/functions/dom.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/functions/focusable.js +35 -0
- package/dist/components/Table/components/newComponents/utils/functions/focusable.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/functions/import.js +46 -0
- package/dist/components/Table/components/newComponents/utils/functions/import.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/functions/index.js +31 -0
- package/dist/components/Table/components/newComponents/utils/functions/index.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/functions/numbers.js +38 -0
- package/dist/components/Table/components/newComponents/utils/functions/numbers.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/functions/polymorphic.js +115 -0
- package/dist/components/Table/components/newComponents/utils/functions/polymorphic.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/functions/react.js +59 -0
- package/dist/components/Table/components/newComponents/utils/functions/react.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/functions/supports.js +14 -0
- package/dist/components/Table/components/newComponents/utils/functions/supports.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/hooks/index.js +35 -0
- package/dist/components/Table/components/newComponents/utils/hooks/index.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/hooks/useContainerWidth.js +66 -0
- package/dist/components/Table/components/newComponents/utils/hooks/useContainerWidth.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/hooks/useControlledState.js +53 -0
- package/dist/components/Table/components/newComponents/utils/hooks/useControlledState.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/hooks/useDragAndDrop.js +130 -0
- package/dist/components/Table/components/newComponents/utils/hooks/useDragAndDrop.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/hooks/useEventListener.js +62 -0
- package/dist/components/Table/components/newComponents/utils/hooks/useEventListener.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/hooks/useGlobals.js +75 -0
- package/dist/components/Table/components/newComponents/utils/hooks/useGlobals.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/hooks/useId.js +47 -0
- package/dist/components/Table/components/newComponents/utils/hooks/useId.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/hooks/useIntersection.js +69 -0
- package/dist/components/Table/components/newComponents/utils/hooks/useIntersection.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/hooks/useIsClient.js +40 -0
- package/dist/components/Table/components/newComponents/utils/hooks/useIsClient.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/hooks/useIsomorphicLayoutEffect.js +41 -0
- package/dist/components/Table/components/newComponents/utils/hooks/useIsomorphicLayoutEffect.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/hooks/useLatestRef.js +47 -0
- package/dist/components/Table/components/newComponents/utils/hooks/useLatestRef.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/hooks/useMediaQuery.js +64 -0
- package/dist/components/Table/components/newComponents/utils/hooks/useMediaQuery.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/hooks/useMergedRefs.js +56 -0
- package/dist/components/Table/components/newComponents/utils/hooks/useMergedRefs.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/hooks/useOverflow.js +113 -0
- package/dist/components/Table/components/newComponents/utils/hooks/useOverflow.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/hooks/useResizeObserver.js +72 -0
- package/dist/components/Table/components/newComponents/utils/hooks/useResizeObserver.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/hooks/useSafeContext.js +44 -0
- package/dist/components/Table/components/newComponents/utils/hooks/useSafeContext.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/index.js +26 -0
- package/dist/components/Table/components/newComponents/utils/index.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/props.js +3 -0
- package/dist/components/Table/components/newComponents/utils/props.js.map +1 -0
- package/dist/components/Table/components/newComponents/utils/types.js +3 -0
- package/dist/components/Table/components/newComponents/utils/types.js.map +1 -0
- package/dist/components/Table/components/useLeafyGreenTable/ReactVirtual.types.js +3 -0
- package/dist/components/Table/components/useLeafyGreenTable/ReactVirtual.types.js.map +1 -0
- package/dist/components/Table/components/useLeafyGreenTable/TableHeaderCheckbox.js +22 -0
- package/dist/components/Table/components/useLeafyGreenTable/TableHeaderCheckbox.js.map +1 -0
- package/dist/components/Table/components/useLeafyGreenTable/TableRowCheckbox.js +22 -0
- package/dist/components/Table/components/useLeafyGreenTable/TableRowCheckbox.js.map +1 -0
- package/dist/components/Table/components/useLeafyGreenTable/index.js +23 -0
- package/dist/components/Table/components/useLeafyGreenTable/index.js.map +1 -0
- package/dist/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.js +134 -0
- package/dist/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.js.map +1 -0
- package/dist/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.types.js +3 -0
- package/dist/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.types.js.map +1 -0
- package/dist/components/Table/components/utils/areAncestorsExpanded.js +25 -0
- package/dist/components/Table/components/utils/areAncestorsExpanded.js.map +1 -0
- package/dist/components/Table/components/utils/getParentRowId.js +19 -0
- package/dist/components/Table/components/utils/getParentRowId.js.map +1 -0
- package/dist/components/Table/components/utils/types.js +3 -0
- package/dist/components/Table/components/utils/types.js.map +1 -0
- package/dist/esm/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.d.ts.map +1 -1
- package/dist/esm/components/Table/Table.types.d.ts +40 -0
- package/dist/esm/components/Table/Table.types.d.ts.map +1 -0
- package/dist/esm/components/Table/components/Cell/Cell.d.ts +7 -0
- package/dist/esm/components/Table/components/Cell/Cell.d.ts.map +1 -0
- package/dist/esm/components/Table/components/Cell/Cell.types.d.ts +68 -0
- package/dist/esm/components/Table/components/Cell/Cell.types.d.ts.map +1 -0
- package/dist/esm/components/Table/components/Cell/HeaderCell/HeaderCell.d.ts +5 -0
- package/dist/esm/components/Table/components/Cell/HeaderCell/HeaderCell.d.ts.map +1 -0
- package/dist/esm/components/Table/components/Cell/HeaderCell/HeaderCell.types.d.ts +23 -0
- package/dist/esm/components/Table/components/Cell/HeaderCell/HeaderCell.types.d.ts.map +1 -0
- package/dist/esm/components/Table/components/Cell/HeaderCell/SortIcon/SortIcon.d.ts +4 -0
- package/dist/esm/components/Table/components/Cell/HeaderCell/SortIcon/SortIcon.d.ts.map +1 -0
- package/dist/esm/components/Table/components/Cell/HeaderCell/SortIcon/SortIcon.types.d.ts +6 -0
- package/dist/esm/components/Table/components/Cell/HeaderCell/SortIcon/SortIcon.types.d.ts.map +1 -0
- package/dist/esm/components/Table/components/Cell/HeaderCell/index.d.ts +4 -0
- package/dist/esm/components/Table/components/Cell/HeaderCell/index.d.ts.map +1 -0
- package/dist/esm/components/Table/components/Cell/InternalCell.d.ts +14 -0
- package/dist/esm/components/Table/components/Cell/InternalCell.d.ts.map +1 -0
- package/dist/esm/components/Table/components/Cell/index.d.ts +5 -0
- package/dist/esm/components/Table/components/Cell/index.d.ts.map +1 -0
- package/dist/esm/components/Table/components/ExpandedContent/ExpandedContent.d.ts +7 -0
- package/dist/esm/components/Table/components/ExpandedContent/ExpandedContent.d.ts.map +1 -0
- package/dist/esm/components/Table/components/ExpandedContent/ExpandedContent.types.d.ts +6 -0
- package/dist/esm/components/Table/components/ExpandedContent/ExpandedContent.types.d.ts.map +1 -0
- package/dist/esm/components/Table/components/ExpandedContent/index.d.ts +4 -0
- package/dist/esm/components/Table/components/ExpandedContent/index.d.ts.map +1 -0
- package/dist/esm/components/Table/components/Row/HeaderRow/HeaderRow.d.ts +8 -0
- package/dist/esm/components/Table/components/Row/HeaderRow/HeaderRow.d.ts.map +1 -0
- package/dist/esm/components/Table/components/Row/HeaderRow/HeaderRow.types.d.ts +4 -0
- package/dist/esm/components/Table/components/Row/HeaderRow/HeaderRow.types.d.ts.map +1 -0
- package/dist/esm/components/Table/components/Row/HeaderRow/index.d.ts +4 -0
- package/dist/esm/components/Table/components/Row/HeaderRow/index.d.ts.map +1 -0
- package/dist/esm/components/Table/components/Row/InternalRowBase.d.ts +4 -0
- package/dist/esm/components/Table/components/Row/InternalRowBase.d.ts.map +1 -0
- package/dist/esm/components/Table/components/Row/InternalRowWithRT.d.ts +4 -0
- package/dist/esm/components/Table/components/Row/InternalRowWithRT.d.ts.map +1 -0
- package/dist/esm/components/Table/components/Row/InternalRowWithoutRT.d.ts +7 -0
- package/dist/esm/components/Table/components/Row/InternalRowWithoutRT.d.ts.map +1 -0
- package/dist/esm/components/Table/components/Row/Row.d.ts +16 -0
- package/dist/esm/components/Table/components/Row/Row.d.ts.map +1 -0
- package/dist/esm/components/Table/components/Row/Row.types.d.ts +23 -0
- package/dist/esm/components/Table/components/Row/Row.types.d.ts.map +1 -0
- package/dist/esm/components/Table/components/Row/RowCellChildren.d.ts +9 -0
- package/dist/esm/components/Table/components/Row/RowCellChildren.d.ts.map +1 -0
- package/dist/esm/components/Table/components/Row/RowContext.d.ts +8 -0
- package/dist/esm/components/Table/components/Row/RowContext.d.ts.map +1 -0
- package/dist/esm/components/Table/components/Row/index.d.ts +6 -0
- package/dist/esm/components/Table/components/Row/index.d.ts.map +1 -0
- package/dist/esm/components/Table/components/TableBody/TableBody.d.ts +7 -0
- package/dist/esm/components/Table/components/TableBody/TableBody.d.ts.map +1 -0
- package/dist/esm/components/Table/components/TableBody/TableBody.types.d.ts +4 -0
- package/dist/esm/components/Table/components/TableBody/TableBody.types.d.ts.map +1 -0
- package/dist/esm/components/Table/components/TableBody/index.d.ts +4 -0
- package/dist/esm/components/Table/components/TableBody/index.d.ts.map +1 -0
- package/dist/esm/components/Table/components/TableContext/TableContext.d.ts +7 -0
- package/dist/esm/components/Table/components/TableContext/TableContext.d.ts.map +1 -0
- package/dist/esm/components/Table/components/TableContext/TableContext.types.d.ts +14 -0
- package/dist/esm/components/Table/components/TableContext/TableContext.types.d.ts.map +1 -0
- package/dist/esm/components/Table/components/TableContext/index.d.ts +4 -0
- package/dist/esm/components/Table/components/TableContext/index.d.ts.map +1 -0
- package/dist/esm/components/Table/components/TableHead/TableHead.d.ts +8 -0
- package/dist/esm/components/Table/components/TableHead/TableHead.d.ts.map +1 -0
- package/dist/esm/components/Table/components/TableHead/TableHead.types.d.ts +8 -0
- package/dist/esm/components/Table/components/TableHead/TableHead.types.d.ts.map +1 -0
- package/dist/esm/components/Table/components/TableHead/index.d.ts +4 -0
- package/dist/esm/components/Table/components/TableHead/index.d.ts.map +1 -0
- package/dist/esm/components/Table/components/TableHeader/TableHeader.d.ts +18 -0
- package/dist/esm/components/Table/components/TableHeader/TableHeader.d.ts.map +1 -0
- package/dist/esm/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.d.ts +15 -0
- package/dist/esm/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.d.ts.map +1 -0
- package/dist/esm/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.types.d.ts +10 -0
- package/dist/esm/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.types.d.ts.map +1 -0
- package/dist/esm/components/Table/components/ToggleExpandedIcon/index.d.ts +4 -0
- package/dist/esm/components/Table/components/ToggleExpandedIcon/index.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/Buttons/Button.d.ts +46 -0
- package/dist/esm/components/Table/components/newComponents/Buttons/Button.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/Buttons/DropdownButton.d.ts +32 -0
- package/dist/esm/components/Table/components/newComponents/Buttons/DropdownButton.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/Buttons/IconButton.d.ts +33 -0
- package/dist/esm/components/Table/components/newComponents/Buttons/IconButton.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/Buttons/IdeasButton.d.ts +20 -0
- package/dist/esm/components/Table/components/newComponents/Buttons/IdeasButton.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/Buttons/SplitButton.d.ts +47 -0
- package/dist/esm/components/Table/components/newComponents/Buttons/SplitButton.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/Checkbox/Checkbox.d.ts +50 -0
- package/dist/esm/components/Table/components/newComponents/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/DropdownMenu/DropdownMenu.d.ts +40 -0
- package/dist/esm/components/Table/components/newComponents/DropdownMenu/DropdownMenu.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/Input/Input.d.ts +24 -0
- package/dist/esm/components/Table/components/newComponents/Input/Input.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/Menu/Menu.d.ts +22 -0
- package/dist/esm/components/Table/components/newComponents/Menu/Menu.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/Menu/MenuDivider.d.ts +17 -0
- package/dist/esm/components/Table/components/newComponents/Menu/MenuDivider.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/Menu/MenuExtraContent.d.ts +22 -0
- package/dist/esm/components/Table/components/newComponents/Menu/MenuExtraContent.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/Menu/MenuItem.d.ts +68 -0
- package/dist/esm/components/Table/components/newComponents/Menu/MenuItem.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/Menu/MenuItemSkeleton.d.ts +31 -0
- package/dist/esm/components/Table/components/newComponents/Menu/MenuItemSkeleton.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/Polymorphic/Polymorph.d.ts +19 -0
- package/dist/esm/components/Table/components/newComponents/Polymorphic/Polymorph.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/Polymorphic/Polymorphic.d.ts +14 -0
- package/dist/esm/components/Table/components/newComponents/Polymorphic/Polymorphic.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/Polymorphic/Polymorphic.hooks.d.ts +22 -0
- package/dist/esm/components/Table/components/newComponents/Polymorphic/Polymorphic.hooks.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/Polymorphic/Polymorphic.types.d.ts +82 -0
- package/dist/esm/components/Table/components/newComponents/Polymorphic/Polymorphic.types.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/Polymorphic/index.d.ts +5 -0
- package/dist/esm/components/Table/components/newComponents/Polymorphic/index.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/Popover/Popover.d.ts +153 -0
- package/dist/esm/components/Table/components/newComponents/Popover/Popover.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/ProgressIndicators/ProgressLinear.d.ts +57 -0
- package/dist/esm/components/Table/components/newComponents/ProgressIndicators/ProgressLinear.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/ProgressIndicators/ProgressRadial.d.ts +46 -0
- package/dist/esm/components/Table/components/newComponents/ProgressIndicators/ProgressRadial.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/ThemeProvider/ThemeContext.d.ts +8 -0
- package/dist/esm/components/Table/components/newComponents/ThemeProvider/ThemeContext.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/ThemeProvider/ThemeProvider.d.ts +108 -0
- package/dist/esm/components/Table/components/newComponents/ThemeProvider/ThemeProvider.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/Toast/Toast.d.ts +79 -0
- package/dist/esm/components/Table/components/newComponents/Toast/Toast.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/Toast/Toaster.d.ts +47 -0
- package/dist/esm/components/Table/components/newComponents/Toast/Toaster.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/VisuallyHidden/VisuallyHidden.d.ts +23 -0
- package/dist/esm/components/Table/components/newComponents/VisuallyHidden/VisuallyHidden.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/pagination/Pagination.d.ts +18 -0
- package/dist/esm/components/Table/components/newComponents/pagination/Pagination.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/pagination/Pagination.types.d.ts +58 -0
- package/dist/esm/components/Table/components/newComponents/pagination/Pagination.types.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/pagination/index.d.ts +4 -0
- package/dist/esm/components/Table/components/newComponents/pagination/index.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/pagination/useIdAllocator.d.ts +7 -0
- package/dist/esm/components/Table/components/newComponents/pagination/useIdAllocator.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/pagination/utils.d.ts +4 -0
- package/dist/esm/components/Table/components/newComponents/pagination/utils.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/color/ColorValue.d.ts +181 -0
- package/dist/esm/components/Table/components/newComponents/utils/color/ColorValue.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/color/index.d.ts +2 -0
- package/dist/esm/components/Table/components/newComponents/utils/color/index.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/components/AutoclearingHiddenLiveRegion.d.ts +12 -0
- package/dist/esm/components/Table/components/newComponents/utils/components/AutoclearingHiddenLiveRegion.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/components/Box.d.ts +7 -0
- package/dist/esm/components/Table/components/newComponents/utils/components/Box.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/components/ButtonBase.d.ts +15 -0
- package/dist/esm/components/Table/components/newComponents/utils/components/ButtonBase.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/components/FocusTrap.d.ts +12 -0
- package/dist/esm/components/Table/components/newComponents/utils/components/FocusTrap.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/components/InputContainer.d.ts +20 -0
- package/dist/esm/components/Table/components/newComponents/utils/components/InputContainer.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/components/InputFlexContainer.d.ts +31 -0
- package/dist/esm/components/Table/components/newComponents/utils/components/InputFlexContainer.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/components/InputWithIcon.d.ts +3 -0
- package/dist/esm/components/Table/components/newComponents/utils/components/InputWithIcon.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/components/LineClamp.d.ts +6 -0
- package/dist/esm/components/Table/components/newComponents/utils/components/LineClamp.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/components/MiddleTextTruncation.d.ts +35 -0
- package/dist/esm/components/Table/components/newComponents/utils/components/MiddleTextTruncation.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/components/Portal.d.ts +32 -0
- package/dist/esm/components/Table/components/newComponents/utils/components/Portal.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/components/Resizer.d.ts +38 -0
- package/dist/esm/components/Table/components/newComponents/utils/components/Resizer.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/components/ShadowRoot.d.ts +12 -0
- package/dist/esm/components/Table/components/newComponents/utils/components/ShadowRoot.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/components/VirtualScroll.d.ts +76 -0
- package/dist/esm/components/Table/components/newComponents/utils/components/VirtualScroll.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/components/WithCSSTransition.d.ts +7 -0
- package/dist/esm/components/Table/components/newComponents/utils/components/WithCSSTransition.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/components/index.d.ts +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/components/index.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/functions/colors.d.ts +21 -0
- package/dist/esm/components/Table/components/newComponents/utils/functions/colors.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/functions/date.d.ts +5 -0
- package/dist/esm/components/Table/components/newComponents/utils/functions/date.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/functions/dev.d.ts +12 -0
- package/dist/esm/components/Table/components/newComponents/utils/functions/dev.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/functions/dom.d.ts +24 -0
- package/dist/esm/components/Table/components/newComponents/utils/functions/dom.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/functions/focusable.d.ts +9 -0
- package/dist/esm/components/Table/components/newComponents/utils/functions/focusable.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/functions/import.d.ts +13 -0
- package/dist/esm/components/Table/components/newComponents/utils/functions/import.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/functions/index.d.ts +11 -0
- package/dist/esm/components/Table/components/newComponents/utils/functions/index.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/functions/numbers.d.ts +16 -0
- package/dist/esm/components/Table/components/newComponents/utils/functions/numbers.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/functions/polymorphic.d.ts +203 -0
- package/dist/esm/components/Table/components/newComponents/utils/functions/polymorphic.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/functions/react.d.ts +9 -0
- package/dist/esm/components/Table/components/newComponents/utils/functions/react.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/functions/supports.d.ts +5 -0
- package/dist/esm/components/Table/components/newComponents/utils/functions/supports.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/hooks/index.d.ts +15 -0
- package/dist/esm/components/Table/components/newComponents/utils/hooks/index.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/hooks/useContainerWidth.d.ts +17 -0
- package/dist/esm/components/Table/components/newComponents/utils/hooks/useContainerWidth.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/hooks/useControlledState.d.ts +14 -0
- package/dist/esm/components/Table/components/newComponents/utils/hooks/useControlledState.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/hooks/useDragAndDrop.d.ts +14 -0
- package/dist/esm/components/Table/components/newComponents/utils/hooks/useDragAndDrop.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/hooks/useEventListener.d.ts +11 -0
- package/dist/esm/components/Table/components/newComponents/utils/hooks/useEventListener.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/hooks/useGlobals.d.ts +21 -0
- package/dist/esm/components/Table/components/newComponents/utils/hooks/useGlobals.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/hooks/useId.d.ts +6 -0
- package/dist/esm/components/Table/components/newComponents/utils/hooks/useId.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/hooks/useIntersection.d.ts +14 -0
- package/dist/esm/components/Table/components/newComponents/utils/hooks/useIntersection.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/hooks/useIsClient.d.ts +2 -0
- package/dist/esm/components/Table/components/newComponents/utils/hooks/useIsClient.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/hooks/useIsomorphicLayoutEffect.d.ts +11 -0
- package/dist/esm/components/Table/components/newComponents/utils/hooks/useIsomorphicLayoutEffect.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/hooks/useLatestRef.d.ts +10 -0
- package/dist/esm/components/Table/components/newComponents/utils/hooks/useLatestRef.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/hooks/useMediaQuery.d.ts +2 -0
- package/dist/esm/components/Table/components/newComponents/utils/hooks/useMediaQuery.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/hooks/useMergedRefs.d.ts +10 -0
- package/dist/esm/components/Table/components/newComponents/utils/hooks/useMergedRefs.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/hooks/useOverflow.d.ts +25 -0
- package/dist/esm/components/Table/components/newComponents/utils/hooks/useOverflow.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/hooks/useResizeObserver.d.ts +14 -0
- package/dist/esm/components/Table/components/newComponents/utils/hooks/useResizeObserver.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/hooks/useSafeContext.d.ts +7 -0
- package/dist/esm/components/Table/components/newComponents/utils/hooks/useSafeContext.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/index.d.ts +6 -0
- package/dist/esm/components/Table/components/newComponents/utils/index.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/props.d.ts +29 -0
- package/dist/esm/components/Table/components/newComponents/utils/props.d.ts.map +1 -0
- package/dist/esm/components/Table/components/newComponents/utils/types.d.ts +6 -0
- package/dist/esm/components/Table/components/newComponents/utils/types.d.ts.map +1 -0
- package/dist/esm/components/Table/components/useLeafyGreenTable/ReactVirtual.types.d.ts +3 -0
- package/dist/esm/components/Table/components/useLeafyGreenTable/ReactVirtual.types.d.ts.map +1 -0
- package/dist/esm/components/Table/components/useLeafyGreenTable/TableHeaderCheckbox.d.ts +6 -0
- package/dist/esm/components/Table/components/useLeafyGreenTable/TableHeaderCheckbox.d.ts.map +1 -0
- package/dist/esm/components/Table/components/useLeafyGreenTable/TableRowCheckbox.d.ts +7 -0
- package/dist/esm/components/Table/components/useLeafyGreenTable/TableRowCheckbox.d.ts.map +1 -0
- package/dist/esm/components/Table/components/useLeafyGreenTable/index.d.ts +5 -0
- package/dist/esm/components/Table/components/useLeafyGreenTable/index.d.ts.map +1 -0
- package/dist/esm/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.d.ts +5 -0
- package/dist/esm/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.d.ts.map +1 -0
- package/dist/esm/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.types.d.ts +54 -0
- package/dist/esm/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.types.d.ts.map +1 -0
- package/dist/esm/components/Table/components/utils/areAncestorsExpanded.d.ts +11 -0
- package/dist/esm/components/Table/components/utils/areAncestorsExpanded.d.ts.map +1 -0
- package/dist/esm/components/Table/components/utils/getParentRowId.d.ts +11 -0
- package/dist/esm/components/Table/components/utils/getParentRowId.d.ts.map +1 -0
- package/dist/esm/components/Table/components/utils/types.d.ts +4 -0
- package/dist/esm/components/Table/components/utils/types.d.ts.map +1 -0
- package/dist/esm/src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.js +1 -1
- package/dist/esm/src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.js.map +1 -1
- package/dist/esm/src/components/Table/Table.module.scss.js +2 -0
- package/dist/esm/src/components/Table/Table.module.scss.js.map +1 -0
- package/dist/esm/src/components/Table/components/Cell/Cell.js +2 -0
- package/dist/esm/src/components/Table/components/Cell/Cell.js.map +1 -0
- package/dist/esm/src/components/Table/components/Cell/Cell.module.scss.js +2 -0
- package/dist/esm/src/components/Table/components/Cell/Cell.module.scss.js.map +1 -0
- package/dist/esm/src/components/Table/components/Cell/Cell.types.js +2 -0
- package/dist/esm/src/components/Table/components/Cell/Cell.types.js.map +1 -0
- package/dist/esm/src/components/Table/components/Cell/HeaderCell/HeaderCell.js +2 -0
- package/dist/esm/src/components/Table/components/Cell/HeaderCell/HeaderCell.js.map +1 -0
- package/dist/esm/src/components/Table/components/Cell/HeaderCell/HeaderCell.module.scss.js +2 -0
- package/dist/esm/src/components/Table/components/Cell/HeaderCell/HeaderCell.module.scss.js.map +1 -0
- package/dist/esm/src/components/Table/components/Cell/HeaderCell/HeaderCell.types.js +2 -0
- package/dist/esm/src/components/Table/components/Cell/HeaderCell/HeaderCell.types.js.map +1 -0
- package/dist/esm/src/components/Table/components/Cell/InternalCell.js +2 -0
- package/dist/esm/src/components/Table/components/Cell/InternalCell.js.map +1 -0
- package/dist/esm/src/components/Table/components/ExpandedContent/ExpandedContent.js +2 -0
- package/dist/esm/src/components/Table/components/ExpandedContent/ExpandedContent.js.map +1 -0
- package/dist/esm/src/components/Table/components/ExpandedContent/ExpandedContent.module.scss.js +2 -0
- package/dist/esm/src/components/Table/components/ExpandedContent/ExpandedContent.module.scss.js.map +1 -0
- package/dist/esm/src/components/Table/components/Row/HeaderRow/HeaderRow.js +2 -0
- package/dist/esm/src/components/Table/components/Row/HeaderRow/HeaderRow.js.map +1 -0
- package/dist/esm/src/components/Table/components/Row/InternalRowBase.js +2 -0
- package/dist/esm/src/components/Table/components/Row/InternalRowBase.js.map +1 -0
- package/dist/esm/src/components/Table/components/Row/InternalRowWithRT.js +2 -0
- package/dist/esm/src/components/Table/components/Row/InternalRowWithRT.js.map +1 -0
- package/dist/esm/src/components/Table/components/Row/InternalRowWithoutRT.js +2 -0
- package/dist/esm/src/components/Table/components/Row/InternalRowWithoutRT.js.map +1 -0
- package/dist/esm/src/components/Table/components/Row/Row.js +2 -0
- package/dist/esm/src/components/Table/components/Row/Row.js.map +1 -0
- package/dist/esm/src/components/Table/components/Row/Row.module.scss.js +2 -0
- package/dist/esm/src/components/Table/components/Row/Row.module.scss.js.map +1 -0
- package/dist/esm/src/components/Table/components/Row/RowCellChildren.js +2 -0
- package/dist/esm/src/components/Table/components/Row/RowCellChildren.js.map +1 -0
- package/dist/esm/src/components/Table/components/Row/RowContext.js +2 -0
- package/dist/esm/src/components/Table/components/Row/RowContext.js.map +1 -0
- package/dist/esm/src/components/Table/components/TableBody/TableBody.js +2 -0
- package/dist/esm/src/components/Table/components/TableBody/TableBody.js.map +1 -0
- package/dist/esm/src/components/Table/components/TableContext/TableContext.js +2 -0
- package/dist/esm/src/components/Table/components/TableContext/TableContext.js.map +1 -0
- package/dist/esm/src/components/Table/components/TableHead/TableHead.js +2 -0
- package/dist/esm/src/components/Table/components/TableHead/TableHead.js.map +1 -0
- package/dist/esm/src/components/Table/components/TableHead/TableHead.module.scss.js +2 -0
- package/dist/esm/src/components/Table/components/TableHead/TableHead.module.scss.js.map +1 -0
- package/dist/esm/src/components/Table/components/TableHeader/TableHeader.js +2 -0
- package/dist/esm/src/components/Table/components/TableHeader/TableHeader.js.map +1 -0
- package/dist/esm/src/components/Table/components/TableHeader/TableHeader.module.scss.js +2 -0
- package/dist/esm/src/components/Table/components/TableHeader/TableHeader.module.scss.js.map +1 -0
- package/dist/esm/src/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.js +2 -0
- package/dist/esm/src/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.js.map +1 -0
- package/dist/esm/src/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.module.scss.js +2 -0
- package/dist/esm/src/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.module.scss.js.map +1 -0
- package/dist/esm/src/components/Table/components/ToggleExpandedIcon/index.js +2 -0
- package/dist/esm/src/components/Table/components/ToggleExpandedIcon/index.js.map +1 -0
- package/dist/esm/src/components/Table/components/newComponents/DropdownMenu/DropdownMenu.js +2 -0
- package/dist/esm/src/components/Table/components/newComponents/DropdownMenu/DropdownMenu.js.map +1 -0
- package/dist/esm/src/components/Table/components/newComponents/Menu/Menu.js +2 -0
- package/dist/esm/src/components/Table/components/newComponents/Menu/Menu.js.map +1 -0
- package/dist/esm/src/components/Table/components/newComponents/Polymorphic/Polymorph.js +2 -0
- package/dist/esm/src/components/Table/components/newComponents/Polymorphic/Polymorph.js.map +1 -0
- package/dist/esm/src/components/Table/components/newComponents/Polymorphic/Polymorphic.hooks.js +2 -0
- package/dist/esm/src/components/Table/components/newComponents/Polymorphic/Polymorphic.hooks.js.map +1 -0
- package/dist/esm/src/components/Table/components/newComponents/Popover/Popover.js +2 -0
- package/dist/esm/src/components/Table/components/newComponents/Popover/Popover.js.map +1 -0
- package/dist/esm/src/components/Table/components/newComponents/ThemeProvider/ThemeContext.js +2 -0
- package/dist/esm/src/components/Table/components/newComponents/ThemeProvider/ThemeContext.js.map +1 -0
- package/dist/esm/src/components/Table/components/newComponents/Toast/Toaster.js +2 -0
- package/dist/esm/src/components/Table/components/newComponents/Toast/Toaster.js.map +1 -0
- package/dist/esm/src/components/Table/components/newComponents/pagination/Pagination.js +2 -0
- package/dist/esm/src/components/Table/components/newComponents/pagination/Pagination.js.map +1 -0
- package/dist/esm/src/components/Table/components/newComponents/pagination/Pagination.module.scss.js +2 -0
- package/dist/esm/src/components/Table/components/newComponents/pagination/Pagination.module.scss.js.map +1 -0
- package/dist/esm/src/components/Table/components/newComponents/pagination/index.js +2 -0
- package/dist/esm/src/components/Table/components/newComponents/pagination/index.js.map +1 -0
- package/dist/esm/src/components/Table/components/newComponents/pagination/useIdAllocator.js +2 -0
- package/dist/esm/src/components/Table/components/newComponents/pagination/useIdAllocator.js.map +1 -0
- package/dist/esm/src/components/Table/components/newComponents/pagination/utils.js +2 -0
- package/dist/esm/src/components/Table/components/newComponents/pagination/utils.js.map +1 -0
- package/dist/esm/src/components/Table/components/newComponents/utils/color/ColorValue.js +2 -0
- package/dist/esm/src/components/Table/components/newComponents/utils/color/ColorValue.js.map +1 -0
- package/dist/esm/src/components/Table/components/newComponents/utils/components/Box.js +2 -0
- package/dist/esm/src/components/Table/components/newComponents/utils/components/Box.js.map +1 -0
- package/dist/esm/src/components/Table/components/newComponents/utils/components/ButtonBase.js +2 -0
- package/dist/esm/src/components/Table/components/newComponents/utils/components/ButtonBase.js.map +1 -0
- package/dist/esm/src/components/Table/components/newComponents/utils/components/Portal.js +2 -0
- package/dist/esm/src/components/Table/components/newComponents/utils/components/Portal.js.map +1 -0
- package/dist/esm/src/components/Table/components/newComponents/utils/functions/colors.js +2 -0
- package/dist/esm/src/components/Table/components/newComponents/utils/functions/colors.js.map +1 -0
- package/dist/esm/src/components/Table/components/newComponents/utils/functions/dev.js +2 -0
- package/dist/esm/src/components/Table/components/newComponents/utils/functions/dev.js.map +1 -0
- package/dist/esm/src/components/Table/components/newComponents/utils/functions/dom.js +2 -0
- package/dist/esm/src/components/Table/components/newComponents/utils/functions/dom.js.map +1 -0
- package/dist/esm/src/components/Table/components/newComponents/utils/functions/focusable.js +2 -0
- package/dist/esm/src/components/Table/components/newComponents/utils/functions/focusable.js.map +1 -0
- package/dist/esm/src/components/Table/components/newComponents/utils/functions/polymorphic.js +2 -0
- package/dist/esm/src/components/Table/components/newComponents/utils/functions/polymorphic.js.map +1 -0
- package/dist/esm/src/components/Table/components/newComponents/utils/functions/react.js +2 -0
- package/dist/esm/src/components/Table/components/newComponents/utils/functions/react.js.map +1 -0
- package/dist/esm/src/components/Table/components/newComponents/utils/hooks/useControlledState.js +2 -0
- package/dist/esm/src/components/Table/components/newComponents/utils/hooks/useControlledState.js.map +1 -0
- package/dist/esm/src/components/Table/components/newComponents/utils/hooks/useGlobals.js +2 -0
- package/dist/esm/src/components/Table/components/newComponents/utils/hooks/useGlobals.js.map +1 -0
- package/dist/esm/src/components/Table/components/newComponents/utils/hooks/useIsClient.js +2 -0
- package/dist/esm/src/components/Table/components/newComponents/utils/hooks/useIsClient.js.map +1 -0
- package/dist/esm/src/components/Table/components/newComponents/utils/hooks/useMergedRefs.js +2 -0
- package/dist/esm/src/components/Table/components/newComponents/utils/hooks/useMergedRefs.js.map +1 -0
- package/dist/esm/src/components/Table/components/useLeafyGreenTable/TableHeaderCheckbox.js +2 -0
- package/dist/esm/src/components/Table/components/useLeafyGreenTable/TableHeaderCheckbox.js.map +1 -0
- package/dist/esm/src/components/Table/components/useLeafyGreenTable/TableRowCheckbox.js +2 -0
- package/dist/esm/src/components/Table/components/useLeafyGreenTable/TableRowCheckbox.js.map +1 -0
- package/dist/esm/src/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.js +2 -0
- package/dist/esm/src/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.js.map +1 -0
- package/dist/esm/src/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.module.scss.js +2 -0
- package/dist/esm/src/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.module.scss.js.map +1 -0
- package/dist/esm/src/components/Table/components/utils/areAncestorsExpanded.js +2 -0
- package/dist/esm/src/components/Table/components/utils/areAncestorsExpanded.js.map +1 -0
- package/dist/esm/src/components/Table/components/utils/getParentRowId.js +2 -0
- package/dist/esm/src/components/Table/components/utils/getParentRowId.js.map +1 -0
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/mocked_classnames_esm/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.d.ts.map +1 -1
- package/dist/mocked_classnames_esm/components/Table/Table.types.d.ts +40 -0
- package/dist/mocked_classnames_esm/components/Table/Table.types.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/Cell/Cell.d.ts +7 -0
- package/dist/mocked_classnames_esm/components/Table/components/Cell/Cell.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/Cell/Cell.types.d.ts +68 -0
- package/dist/mocked_classnames_esm/components/Table/components/Cell/Cell.types.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/Cell/HeaderCell/HeaderCell.d.ts +5 -0
- package/dist/mocked_classnames_esm/components/Table/components/Cell/HeaderCell/HeaderCell.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/Cell/HeaderCell/HeaderCell.types.d.ts +23 -0
- package/dist/mocked_classnames_esm/components/Table/components/Cell/HeaderCell/HeaderCell.types.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/Cell/HeaderCell/SortIcon/SortIcon.d.ts +4 -0
- package/dist/mocked_classnames_esm/components/Table/components/Cell/HeaderCell/SortIcon/SortIcon.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/Cell/HeaderCell/SortIcon/SortIcon.types.d.ts +6 -0
- package/dist/mocked_classnames_esm/components/Table/components/Cell/HeaderCell/SortIcon/SortIcon.types.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/Cell/HeaderCell/index.d.ts +4 -0
- package/dist/mocked_classnames_esm/components/Table/components/Cell/HeaderCell/index.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/Cell/InternalCell.d.ts +14 -0
- package/dist/mocked_classnames_esm/components/Table/components/Cell/InternalCell.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/Cell/index.d.ts +5 -0
- package/dist/mocked_classnames_esm/components/Table/components/Cell/index.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/ExpandedContent/ExpandedContent.d.ts +7 -0
- package/dist/mocked_classnames_esm/components/Table/components/ExpandedContent/ExpandedContent.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/ExpandedContent/ExpandedContent.types.d.ts +6 -0
- package/dist/mocked_classnames_esm/components/Table/components/ExpandedContent/ExpandedContent.types.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/ExpandedContent/index.d.ts +4 -0
- package/dist/mocked_classnames_esm/components/Table/components/ExpandedContent/index.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/Row/HeaderRow/HeaderRow.d.ts +8 -0
- package/dist/mocked_classnames_esm/components/Table/components/Row/HeaderRow/HeaderRow.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/Row/HeaderRow/HeaderRow.types.d.ts +4 -0
- package/dist/mocked_classnames_esm/components/Table/components/Row/HeaderRow/HeaderRow.types.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/Row/HeaderRow/index.d.ts +4 -0
- package/dist/mocked_classnames_esm/components/Table/components/Row/HeaderRow/index.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/Row/InternalRowBase.d.ts +4 -0
- package/dist/mocked_classnames_esm/components/Table/components/Row/InternalRowBase.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/Row/InternalRowWithRT.d.ts +4 -0
- package/dist/mocked_classnames_esm/components/Table/components/Row/InternalRowWithRT.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/Row/InternalRowWithoutRT.d.ts +7 -0
- package/dist/mocked_classnames_esm/components/Table/components/Row/InternalRowWithoutRT.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/Row/Row.d.ts +16 -0
- package/dist/mocked_classnames_esm/components/Table/components/Row/Row.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/Row/Row.types.d.ts +23 -0
- package/dist/mocked_classnames_esm/components/Table/components/Row/Row.types.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/Row/RowCellChildren.d.ts +9 -0
- package/dist/mocked_classnames_esm/components/Table/components/Row/RowCellChildren.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/Row/RowContext.d.ts +8 -0
- package/dist/mocked_classnames_esm/components/Table/components/Row/RowContext.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/Row/index.d.ts +6 -0
- package/dist/mocked_classnames_esm/components/Table/components/Row/index.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/TableBody/TableBody.d.ts +7 -0
- package/dist/mocked_classnames_esm/components/Table/components/TableBody/TableBody.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/TableBody/TableBody.types.d.ts +4 -0
- package/dist/mocked_classnames_esm/components/Table/components/TableBody/TableBody.types.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/TableBody/index.d.ts +4 -0
- package/dist/mocked_classnames_esm/components/Table/components/TableBody/index.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/TableContext/TableContext.d.ts +7 -0
- package/dist/mocked_classnames_esm/components/Table/components/TableContext/TableContext.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/TableContext/TableContext.types.d.ts +14 -0
- package/dist/mocked_classnames_esm/components/Table/components/TableContext/TableContext.types.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/TableContext/index.d.ts +4 -0
- package/dist/mocked_classnames_esm/components/Table/components/TableContext/index.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/TableHead/TableHead.d.ts +8 -0
- package/dist/mocked_classnames_esm/components/Table/components/TableHead/TableHead.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/TableHead/TableHead.types.d.ts +8 -0
- package/dist/mocked_classnames_esm/components/Table/components/TableHead/TableHead.types.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/TableHead/index.d.ts +4 -0
- package/dist/mocked_classnames_esm/components/Table/components/TableHead/index.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/TableHeader/TableHeader.d.ts +18 -0
- package/dist/mocked_classnames_esm/components/Table/components/TableHeader/TableHeader.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.d.ts +15 -0
- package/dist/mocked_classnames_esm/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.types.d.ts +10 -0
- package/dist/mocked_classnames_esm/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.types.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/ToggleExpandedIcon/index.d.ts +4 -0
- package/dist/mocked_classnames_esm/components/Table/components/ToggleExpandedIcon/index.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Buttons/Button.d.ts +46 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Buttons/Button.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Buttons/DropdownButton.d.ts +32 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Buttons/DropdownButton.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Buttons/IconButton.d.ts +33 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Buttons/IconButton.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Buttons/IdeasButton.d.ts +20 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Buttons/IdeasButton.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Buttons/SplitButton.d.ts +47 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Buttons/SplitButton.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Checkbox/Checkbox.d.ts +50 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/DropdownMenu/DropdownMenu.d.ts +40 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/DropdownMenu/DropdownMenu.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Input/Input.d.ts +24 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Input/Input.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Menu/Menu.d.ts +22 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Menu/Menu.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Menu/MenuDivider.d.ts +17 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Menu/MenuDivider.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Menu/MenuExtraContent.d.ts +22 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Menu/MenuExtraContent.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Menu/MenuItem.d.ts +68 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Menu/MenuItem.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Menu/MenuItemSkeleton.d.ts +31 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Menu/MenuItemSkeleton.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Polymorphic/Polymorph.d.ts +19 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Polymorphic/Polymorph.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Polymorphic/Polymorphic.d.ts +14 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Polymorphic/Polymorphic.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Polymorphic/Polymorphic.hooks.d.ts +22 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Polymorphic/Polymorphic.hooks.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Polymorphic/Polymorphic.types.d.ts +82 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Polymorphic/Polymorphic.types.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Polymorphic/index.d.ts +5 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Polymorphic/index.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Popover/Popover.d.ts +153 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Popover/Popover.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/ProgressIndicators/ProgressLinear.d.ts +57 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/ProgressIndicators/ProgressLinear.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/ProgressIndicators/ProgressRadial.d.ts +46 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/ProgressIndicators/ProgressRadial.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/ThemeProvider/ThemeContext.d.ts +8 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/ThemeProvider/ThemeContext.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/ThemeProvider/ThemeProvider.d.ts +108 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/ThemeProvider/ThemeProvider.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Toast/Toast.d.ts +79 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Toast/Toast.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Toast/Toaster.d.ts +47 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/Toast/Toaster.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/VisuallyHidden/VisuallyHidden.d.ts +23 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/VisuallyHidden/VisuallyHidden.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/pagination/Pagination.d.ts +18 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/pagination/Pagination.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/pagination/Pagination.types.d.ts +58 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/pagination/Pagination.types.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/pagination/index.d.ts +4 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/pagination/index.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/pagination/useIdAllocator.d.ts +7 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/pagination/useIdAllocator.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/pagination/utils.d.ts +4 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/pagination/utils.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/color/ColorValue.d.ts +181 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/color/ColorValue.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/color/index.d.ts +2 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/color/index.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/AutoclearingHiddenLiveRegion.d.ts +12 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/AutoclearingHiddenLiveRegion.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/Box.d.ts +7 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/Box.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/ButtonBase.d.ts +15 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/ButtonBase.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/FocusTrap.d.ts +12 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/FocusTrap.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/InputContainer.d.ts +20 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/InputContainer.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/InputFlexContainer.d.ts +31 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/InputFlexContainer.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/InputWithIcon.d.ts +3 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/InputWithIcon.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/LineClamp.d.ts +6 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/LineClamp.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/MiddleTextTruncation.d.ts +35 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/MiddleTextTruncation.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/Portal.d.ts +32 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/Portal.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/Resizer.d.ts +38 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/Resizer.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/ShadowRoot.d.ts +12 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/ShadowRoot.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/VirtualScroll.d.ts +76 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/VirtualScroll.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/WithCSSTransition.d.ts +7 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/WithCSSTransition.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/index.d.ts +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/components/index.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/colors.d.ts +21 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/colors.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/date.d.ts +5 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/date.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/dev.d.ts +12 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/dev.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/dom.d.ts +24 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/dom.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/focusable.d.ts +9 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/focusable.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/import.d.ts +13 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/import.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/index.d.ts +11 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/index.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/numbers.d.ts +16 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/numbers.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/polymorphic.d.ts +203 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/polymorphic.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/react.d.ts +9 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/react.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/supports.d.ts +5 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/functions/supports.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/index.d.ts +15 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/index.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useContainerWidth.d.ts +17 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useContainerWidth.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useControlledState.d.ts +14 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useControlledState.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useDragAndDrop.d.ts +14 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useDragAndDrop.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useEventListener.d.ts +11 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useEventListener.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useGlobals.d.ts +21 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useGlobals.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useId.d.ts +6 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useId.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useIntersection.d.ts +14 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useIntersection.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useIsClient.d.ts +2 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useIsClient.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useIsomorphicLayoutEffect.d.ts +11 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useIsomorphicLayoutEffect.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useLatestRef.d.ts +10 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useLatestRef.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useMediaQuery.d.ts +2 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useMediaQuery.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useMergedRefs.d.ts +10 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useMergedRefs.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useOverflow.d.ts +25 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useOverflow.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useResizeObserver.d.ts +14 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useResizeObserver.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useSafeContext.d.ts +7 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/hooks/useSafeContext.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/index.d.ts +6 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/index.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/props.d.ts +29 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/props.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/types.d.ts +6 -0
- package/dist/mocked_classnames_esm/components/Table/components/newComponents/utils/types.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/useLeafyGreenTable/ReactVirtual.types.d.ts +3 -0
- package/dist/mocked_classnames_esm/components/Table/components/useLeafyGreenTable/ReactVirtual.types.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/useLeafyGreenTable/TableHeaderCheckbox.d.ts +6 -0
- package/dist/mocked_classnames_esm/components/Table/components/useLeafyGreenTable/TableHeaderCheckbox.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/useLeafyGreenTable/TableRowCheckbox.d.ts +7 -0
- package/dist/mocked_classnames_esm/components/Table/components/useLeafyGreenTable/TableRowCheckbox.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/useLeafyGreenTable/index.d.ts +5 -0
- package/dist/mocked_classnames_esm/components/Table/components/useLeafyGreenTable/index.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.d.ts +5 -0
- package/dist/mocked_classnames_esm/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.types.d.ts +54 -0
- package/dist/mocked_classnames_esm/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.types.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/utils/areAncestorsExpanded.d.ts +11 -0
- package/dist/mocked_classnames_esm/components/Table/components/utils/areAncestorsExpanded.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/utils/getParentRowId.d.ts +11 -0
- package/dist/mocked_classnames_esm/components/Table/components/utils/getParentRowId.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/components/Table/components/utils/types.d.ts +4 -0
- package/dist/mocked_classnames_esm/components/Table/components/utils/types.d.ts.map +1 -0
- package/dist/mocked_classnames_esm/src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.js +1 -1
- package/dist/mocked_classnames_esm/src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.js.map +1 -1
- package/dist/mocked_classnames_esm/src/components/Table/Table.module.scss.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/Table.module.scss.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/Cell/Cell.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/Cell/Cell.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/Cell/Cell.module.scss.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/Cell/Cell.module.scss.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/Cell/Cell.types.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/Cell/Cell.types.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/Cell/HeaderCell/HeaderCell.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/Cell/HeaderCell/HeaderCell.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/Cell/HeaderCell/HeaderCell.module.scss.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/Cell/HeaderCell/HeaderCell.module.scss.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/Cell/HeaderCell/HeaderCell.types.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/Cell/HeaderCell/HeaderCell.types.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/Cell/InternalCell.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/Cell/InternalCell.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/ExpandedContent/ExpandedContent.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/ExpandedContent/ExpandedContent.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/ExpandedContent/ExpandedContent.module.scss.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/ExpandedContent/ExpandedContent.module.scss.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/Row/HeaderRow/HeaderRow.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/Row/HeaderRow/HeaderRow.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/Row/InternalRowBase.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/Row/InternalRowBase.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/Row/InternalRowWithRT.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/Row/InternalRowWithRT.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/Row/InternalRowWithoutRT.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/Row/InternalRowWithoutRT.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/Row/Row.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/Row/Row.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/Row/Row.module.scss.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/Row/Row.module.scss.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/Row/RowCellChildren.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/Row/RowCellChildren.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/Row/RowContext.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/Row/RowContext.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/TableBody/TableBody.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/TableBody/TableBody.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/TableContext/TableContext.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/TableContext/TableContext.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/TableHead/TableHead.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/TableHead/TableHead.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/TableHead/TableHead.module.scss.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/TableHead/TableHead.module.scss.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/TableHeader/TableHeader.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/TableHeader/TableHeader.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/TableHeader/TableHeader.module.scss.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/TableHeader/TableHeader.module.scss.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.module.scss.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.module.scss.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/ToggleExpandedIcon/index.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/ToggleExpandedIcon/index.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/DropdownMenu/DropdownMenu.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/DropdownMenu/DropdownMenu.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/Menu/Menu.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/Menu/Menu.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/Polymorphic/Polymorph.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/Polymorphic/Polymorph.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/Polymorphic/Polymorphic.hooks.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/Polymorphic/Polymorphic.hooks.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/Popover/Popover.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/Popover/Popover.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/ThemeProvider/ThemeContext.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/ThemeProvider/ThemeContext.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/Toast/Toaster.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/Toast/Toaster.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/pagination/Pagination.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/pagination/Pagination.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/pagination/Pagination.module.scss.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/pagination/Pagination.module.scss.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/pagination/index.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/pagination/index.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/pagination/useIdAllocator.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/pagination/useIdAllocator.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/pagination/utils.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/pagination/utils.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/color/ColorValue.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/color/ColorValue.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/components/Box.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/components/Box.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/components/ButtonBase.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/components/ButtonBase.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/components/Portal.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/components/Portal.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/functions/colors.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/functions/colors.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/functions/dev.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/functions/dev.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/functions/dom.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/functions/dom.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/functions/focusable.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/functions/focusable.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/functions/polymorphic.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/functions/polymorphic.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/functions/react.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/functions/react.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/hooks/useControlledState.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/hooks/useControlledState.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/hooks/useGlobals.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/hooks/useGlobals.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/hooks/useIsClient.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/hooks/useIsClient.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/hooks/useMergedRefs.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/newComponents/utils/hooks/useMergedRefs.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/useLeafyGreenTable/TableHeaderCheckbox.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/useLeafyGreenTable/TableHeaderCheckbox.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/useLeafyGreenTable/TableRowCheckbox.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/useLeafyGreenTable/TableRowCheckbox.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.module.scss.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.module.scss.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/utils/areAncestorsExpanded.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/utils/areAncestorsExpanded.js.map +1 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/utils/getParentRowId.js +2 -0
- package/dist/mocked_classnames_esm/src/components/Table/components/utils/getParentRowId.js.map +1 -0
- package/dist/types/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.d.ts.map +1 -1
- package/dist/types/components/Table/Table.types.d.ts +40 -0
- package/dist/types/components/Table/Table.types.d.ts.map +1 -0
- package/dist/types/components/Table/components/Cell/Cell.d.ts +7 -0
- package/dist/types/components/Table/components/Cell/Cell.d.ts.map +1 -0
- package/dist/types/components/Table/components/Cell/Cell.types.d.ts +68 -0
- package/dist/types/components/Table/components/Cell/Cell.types.d.ts.map +1 -0
- package/dist/types/components/Table/components/Cell/HeaderCell/HeaderCell.d.ts +5 -0
- package/dist/types/components/Table/components/Cell/HeaderCell/HeaderCell.d.ts.map +1 -0
- package/dist/types/components/Table/components/Cell/HeaderCell/HeaderCell.types.d.ts +23 -0
- package/dist/types/components/Table/components/Cell/HeaderCell/HeaderCell.types.d.ts.map +1 -0
- package/dist/types/components/Table/components/Cell/HeaderCell/SortIcon/SortIcon.d.ts +4 -0
- package/dist/types/components/Table/components/Cell/HeaderCell/SortIcon/SortIcon.d.ts.map +1 -0
- package/dist/types/components/Table/components/Cell/HeaderCell/SortIcon/SortIcon.types.d.ts +6 -0
- package/dist/types/components/Table/components/Cell/HeaderCell/SortIcon/SortIcon.types.d.ts.map +1 -0
- package/dist/types/components/Table/components/Cell/HeaderCell/index.d.ts +4 -0
- package/dist/types/components/Table/components/Cell/HeaderCell/index.d.ts.map +1 -0
- package/dist/types/components/Table/components/Cell/InternalCell.d.ts +14 -0
- package/dist/types/components/Table/components/Cell/InternalCell.d.ts.map +1 -0
- package/dist/types/components/Table/components/Cell/index.d.ts +5 -0
- package/dist/types/components/Table/components/Cell/index.d.ts.map +1 -0
- package/dist/types/components/Table/components/ExpandedContent/ExpandedContent.d.ts +7 -0
- package/dist/types/components/Table/components/ExpandedContent/ExpandedContent.d.ts.map +1 -0
- package/dist/types/components/Table/components/ExpandedContent/ExpandedContent.types.d.ts +6 -0
- package/dist/types/components/Table/components/ExpandedContent/ExpandedContent.types.d.ts.map +1 -0
- package/dist/types/components/Table/components/ExpandedContent/index.d.ts +4 -0
- package/dist/types/components/Table/components/ExpandedContent/index.d.ts.map +1 -0
- package/dist/types/components/Table/components/Row/HeaderRow/HeaderRow.d.ts +8 -0
- package/dist/types/components/Table/components/Row/HeaderRow/HeaderRow.d.ts.map +1 -0
- package/dist/types/components/Table/components/Row/HeaderRow/HeaderRow.types.d.ts +4 -0
- package/dist/types/components/Table/components/Row/HeaderRow/HeaderRow.types.d.ts.map +1 -0
- package/dist/types/components/Table/components/Row/HeaderRow/index.d.ts +4 -0
- package/dist/types/components/Table/components/Row/HeaderRow/index.d.ts.map +1 -0
- package/dist/types/components/Table/components/Row/InternalRowBase.d.ts +4 -0
- package/dist/types/components/Table/components/Row/InternalRowBase.d.ts.map +1 -0
- package/dist/types/components/Table/components/Row/InternalRowWithRT.d.ts +4 -0
- package/dist/types/components/Table/components/Row/InternalRowWithRT.d.ts.map +1 -0
- package/dist/types/components/Table/components/Row/InternalRowWithoutRT.d.ts +7 -0
- package/dist/types/components/Table/components/Row/InternalRowWithoutRT.d.ts.map +1 -0
- package/dist/types/components/Table/components/Row/Row.d.ts +16 -0
- package/dist/types/components/Table/components/Row/Row.d.ts.map +1 -0
- package/dist/types/components/Table/components/Row/Row.types.d.ts +23 -0
- package/dist/types/components/Table/components/Row/Row.types.d.ts.map +1 -0
- package/dist/types/components/Table/components/Row/RowCellChildren.d.ts +9 -0
- package/dist/types/components/Table/components/Row/RowCellChildren.d.ts.map +1 -0
- package/dist/types/components/Table/components/Row/RowContext.d.ts +8 -0
- package/dist/types/components/Table/components/Row/RowContext.d.ts.map +1 -0
- package/dist/types/components/Table/components/Row/index.d.ts +6 -0
- package/dist/types/components/Table/components/Row/index.d.ts.map +1 -0
- package/dist/types/components/Table/components/TableBody/TableBody.d.ts +7 -0
- package/dist/types/components/Table/components/TableBody/TableBody.d.ts.map +1 -0
- package/dist/types/components/Table/components/TableBody/TableBody.types.d.ts +4 -0
- package/dist/types/components/Table/components/TableBody/TableBody.types.d.ts.map +1 -0
- package/dist/types/components/Table/components/TableBody/index.d.ts +4 -0
- package/dist/types/components/Table/components/TableBody/index.d.ts.map +1 -0
- package/dist/types/components/Table/components/TableContext/TableContext.d.ts +7 -0
- package/dist/types/components/Table/components/TableContext/TableContext.d.ts.map +1 -0
- package/dist/types/components/Table/components/TableContext/TableContext.types.d.ts +14 -0
- package/dist/types/components/Table/components/TableContext/TableContext.types.d.ts.map +1 -0
- package/dist/types/components/Table/components/TableContext/index.d.ts +4 -0
- package/dist/types/components/Table/components/TableContext/index.d.ts.map +1 -0
- package/dist/types/components/Table/components/TableHead/TableHead.d.ts +8 -0
- package/dist/types/components/Table/components/TableHead/TableHead.d.ts.map +1 -0
- package/dist/types/components/Table/components/TableHead/TableHead.types.d.ts +8 -0
- package/dist/types/components/Table/components/TableHead/TableHead.types.d.ts.map +1 -0
- package/dist/types/components/Table/components/TableHead/index.d.ts +4 -0
- package/dist/types/components/Table/components/TableHead/index.d.ts.map +1 -0
- package/dist/types/components/Table/components/TableHeader/TableHeader.d.ts +18 -0
- package/dist/types/components/Table/components/TableHeader/TableHeader.d.ts.map +1 -0
- package/dist/types/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.d.ts +15 -0
- package/dist/types/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.d.ts.map +1 -0
- package/dist/types/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.types.d.ts +10 -0
- package/dist/types/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.types.d.ts.map +1 -0
- package/dist/types/components/Table/components/ToggleExpandedIcon/index.d.ts +4 -0
- package/dist/types/components/Table/components/ToggleExpandedIcon/index.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/Buttons/Button.d.ts +46 -0
- package/dist/types/components/Table/components/newComponents/Buttons/Button.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/Buttons/DropdownButton.d.ts +32 -0
- package/dist/types/components/Table/components/newComponents/Buttons/DropdownButton.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/Buttons/IconButton.d.ts +33 -0
- package/dist/types/components/Table/components/newComponents/Buttons/IconButton.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/Buttons/IdeasButton.d.ts +20 -0
- package/dist/types/components/Table/components/newComponents/Buttons/IdeasButton.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/Buttons/SplitButton.d.ts +47 -0
- package/dist/types/components/Table/components/newComponents/Buttons/SplitButton.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/Checkbox/Checkbox.d.ts +50 -0
- package/dist/types/components/Table/components/newComponents/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/DropdownMenu/DropdownMenu.d.ts +40 -0
- package/dist/types/components/Table/components/newComponents/DropdownMenu/DropdownMenu.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/Input/Input.d.ts +24 -0
- package/dist/types/components/Table/components/newComponents/Input/Input.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/Menu/Menu.d.ts +22 -0
- package/dist/types/components/Table/components/newComponents/Menu/Menu.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/Menu/MenuDivider.d.ts +17 -0
- package/dist/types/components/Table/components/newComponents/Menu/MenuDivider.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/Menu/MenuExtraContent.d.ts +22 -0
- package/dist/types/components/Table/components/newComponents/Menu/MenuExtraContent.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/Menu/MenuItem.d.ts +68 -0
- package/dist/types/components/Table/components/newComponents/Menu/MenuItem.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/Menu/MenuItemSkeleton.d.ts +31 -0
- package/dist/types/components/Table/components/newComponents/Menu/MenuItemSkeleton.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/Polymorphic/Polymorph.d.ts +19 -0
- package/dist/types/components/Table/components/newComponents/Polymorphic/Polymorph.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/Polymorphic/Polymorphic.d.ts +14 -0
- package/dist/types/components/Table/components/newComponents/Polymorphic/Polymorphic.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/Polymorphic/Polymorphic.hooks.d.ts +22 -0
- package/dist/types/components/Table/components/newComponents/Polymorphic/Polymorphic.hooks.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/Polymorphic/Polymorphic.types.d.ts +82 -0
- package/dist/types/components/Table/components/newComponents/Polymorphic/Polymorphic.types.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/Polymorphic/index.d.ts +5 -0
- package/dist/types/components/Table/components/newComponents/Polymorphic/index.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/Popover/Popover.d.ts +153 -0
- package/dist/types/components/Table/components/newComponents/Popover/Popover.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/ProgressIndicators/ProgressLinear.d.ts +57 -0
- package/dist/types/components/Table/components/newComponents/ProgressIndicators/ProgressLinear.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/ProgressIndicators/ProgressRadial.d.ts +46 -0
- package/dist/types/components/Table/components/newComponents/ProgressIndicators/ProgressRadial.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/ThemeProvider/ThemeContext.d.ts +8 -0
- package/dist/types/components/Table/components/newComponents/ThemeProvider/ThemeContext.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/ThemeProvider/ThemeProvider.d.ts +108 -0
- package/dist/types/components/Table/components/newComponents/ThemeProvider/ThemeProvider.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/Toast/Toast.d.ts +79 -0
- package/dist/types/components/Table/components/newComponents/Toast/Toast.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/Toast/Toaster.d.ts +47 -0
- package/dist/types/components/Table/components/newComponents/Toast/Toaster.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/VisuallyHidden/VisuallyHidden.d.ts +23 -0
- package/dist/types/components/Table/components/newComponents/VisuallyHidden/VisuallyHidden.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/pagination/Pagination.d.ts +18 -0
- package/dist/types/components/Table/components/newComponents/pagination/Pagination.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/pagination/Pagination.types.d.ts +58 -0
- package/dist/types/components/Table/components/newComponents/pagination/Pagination.types.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/pagination/index.d.ts +4 -0
- package/dist/types/components/Table/components/newComponents/pagination/index.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/pagination/useIdAllocator.d.ts +7 -0
- package/dist/types/components/Table/components/newComponents/pagination/useIdAllocator.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/pagination/utils.d.ts +4 -0
- package/dist/types/components/Table/components/newComponents/pagination/utils.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/color/ColorValue.d.ts +181 -0
- package/dist/types/components/Table/components/newComponents/utils/color/ColorValue.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/color/index.d.ts +2 -0
- package/dist/types/components/Table/components/newComponents/utils/color/index.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/components/AutoclearingHiddenLiveRegion.d.ts +12 -0
- package/dist/types/components/Table/components/newComponents/utils/components/AutoclearingHiddenLiveRegion.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/components/Box.d.ts +7 -0
- package/dist/types/components/Table/components/newComponents/utils/components/Box.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/components/ButtonBase.d.ts +15 -0
- package/dist/types/components/Table/components/newComponents/utils/components/ButtonBase.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/components/FocusTrap.d.ts +12 -0
- package/dist/types/components/Table/components/newComponents/utils/components/FocusTrap.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/components/InputContainer.d.ts +20 -0
- package/dist/types/components/Table/components/newComponents/utils/components/InputContainer.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/components/InputFlexContainer.d.ts +31 -0
- package/dist/types/components/Table/components/newComponents/utils/components/InputFlexContainer.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/components/InputWithIcon.d.ts +3 -0
- package/dist/types/components/Table/components/newComponents/utils/components/InputWithIcon.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/components/LineClamp.d.ts +6 -0
- package/dist/types/components/Table/components/newComponents/utils/components/LineClamp.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/components/MiddleTextTruncation.d.ts +35 -0
- package/dist/types/components/Table/components/newComponents/utils/components/MiddleTextTruncation.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/components/Portal.d.ts +32 -0
- package/dist/types/components/Table/components/newComponents/utils/components/Portal.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/components/Resizer.d.ts +38 -0
- package/dist/types/components/Table/components/newComponents/utils/components/Resizer.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/components/ShadowRoot.d.ts +12 -0
- package/dist/types/components/Table/components/newComponents/utils/components/ShadowRoot.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/components/VirtualScroll.d.ts +76 -0
- package/dist/types/components/Table/components/newComponents/utils/components/VirtualScroll.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/components/WithCSSTransition.d.ts +7 -0
- package/dist/types/components/Table/components/newComponents/utils/components/WithCSSTransition.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/components/index.d.ts +1 -0
- package/dist/types/components/Table/components/newComponents/utils/components/index.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/functions/colors.d.ts +21 -0
- package/dist/types/components/Table/components/newComponents/utils/functions/colors.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/functions/date.d.ts +5 -0
- package/dist/types/components/Table/components/newComponents/utils/functions/date.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/functions/dev.d.ts +12 -0
- package/dist/types/components/Table/components/newComponents/utils/functions/dev.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/functions/dom.d.ts +24 -0
- package/dist/types/components/Table/components/newComponents/utils/functions/dom.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/functions/focusable.d.ts +9 -0
- package/dist/types/components/Table/components/newComponents/utils/functions/focusable.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/functions/import.d.ts +13 -0
- package/dist/types/components/Table/components/newComponents/utils/functions/import.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/functions/index.d.ts +11 -0
- package/dist/types/components/Table/components/newComponents/utils/functions/index.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/functions/numbers.d.ts +16 -0
- package/dist/types/components/Table/components/newComponents/utils/functions/numbers.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/functions/polymorphic.d.ts +203 -0
- package/dist/types/components/Table/components/newComponents/utils/functions/polymorphic.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/functions/react.d.ts +9 -0
- package/dist/types/components/Table/components/newComponents/utils/functions/react.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/functions/supports.d.ts +5 -0
- package/dist/types/components/Table/components/newComponents/utils/functions/supports.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/hooks/index.d.ts +15 -0
- package/dist/types/components/Table/components/newComponents/utils/hooks/index.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/hooks/useContainerWidth.d.ts +17 -0
- package/dist/types/components/Table/components/newComponents/utils/hooks/useContainerWidth.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/hooks/useControlledState.d.ts +14 -0
- package/dist/types/components/Table/components/newComponents/utils/hooks/useControlledState.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/hooks/useDragAndDrop.d.ts +14 -0
- package/dist/types/components/Table/components/newComponents/utils/hooks/useDragAndDrop.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/hooks/useEventListener.d.ts +11 -0
- package/dist/types/components/Table/components/newComponents/utils/hooks/useEventListener.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/hooks/useGlobals.d.ts +21 -0
- package/dist/types/components/Table/components/newComponents/utils/hooks/useGlobals.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/hooks/useId.d.ts +6 -0
- package/dist/types/components/Table/components/newComponents/utils/hooks/useId.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/hooks/useIntersection.d.ts +14 -0
- package/dist/types/components/Table/components/newComponents/utils/hooks/useIntersection.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/hooks/useIsClient.d.ts +2 -0
- package/dist/types/components/Table/components/newComponents/utils/hooks/useIsClient.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/hooks/useIsomorphicLayoutEffect.d.ts +11 -0
- package/dist/types/components/Table/components/newComponents/utils/hooks/useIsomorphicLayoutEffect.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/hooks/useLatestRef.d.ts +10 -0
- package/dist/types/components/Table/components/newComponents/utils/hooks/useLatestRef.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/hooks/useMediaQuery.d.ts +2 -0
- package/dist/types/components/Table/components/newComponents/utils/hooks/useMediaQuery.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/hooks/useMergedRefs.d.ts +10 -0
- package/dist/types/components/Table/components/newComponents/utils/hooks/useMergedRefs.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/hooks/useOverflow.d.ts +25 -0
- package/dist/types/components/Table/components/newComponents/utils/hooks/useOverflow.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/hooks/useResizeObserver.d.ts +14 -0
- package/dist/types/components/Table/components/newComponents/utils/hooks/useResizeObserver.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/hooks/useSafeContext.d.ts +7 -0
- package/dist/types/components/Table/components/newComponents/utils/hooks/useSafeContext.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/index.d.ts +6 -0
- package/dist/types/components/Table/components/newComponents/utils/index.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/props.d.ts +29 -0
- package/dist/types/components/Table/components/newComponents/utils/props.d.ts.map +1 -0
- package/dist/types/components/Table/components/newComponents/utils/types.d.ts +6 -0
- package/dist/types/components/Table/components/newComponents/utils/types.d.ts.map +1 -0
- package/dist/types/components/Table/components/useLeafyGreenTable/ReactVirtual.types.d.ts +3 -0
- package/dist/types/components/Table/components/useLeafyGreenTable/ReactVirtual.types.d.ts.map +1 -0
- package/dist/types/components/Table/components/useLeafyGreenTable/TableHeaderCheckbox.d.ts +6 -0
- package/dist/types/components/Table/components/useLeafyGreenTable/TableHeaderCheckbox.d.ts.map +1 -0
- package/dist/types/components/Table/components/useLeafyGreenTable/TableRowCheckbox.d.ts +7 -0
- package/dist/types/components/Table/components/useLeafyGreenTable/TableRowCheckbox.d.ts.map +1 -0
- package/dist/types/components/Table/components/useLeafyGreenTable/index.d.ts +5 -0
- package/dist/types/components/Table/components/useLeafyGreenTable/index.d.ts.map +1 -0
- package/dist/types/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.d.ts +5 -0
- package/dist/types/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.d.ts.map +1 -0
- package/dist/types/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.types.d.ts +54 -0
- package/dist/types/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.types.d.ts.map +1 -0
- package/dist/types/components/Table/components/utils/areAncestorsExpanded.d.ts +11 -0
- package/dist/types/components/Table/components/utils/areAncestorsExpanded.d.ts.map +1 -0
- package/dist/types/components/Table/components/utils/getParentRowId.d.ts +11 -0
- package/dist/types/components/Table/components/utils/getParentRowId.d.ts.map +1 -0
- package/dist/types/components/Table/components/utils/types.d.ts +4 -0
- package/dist/types/components/Table/components/utils/types.d.ts.map +1 -0
- package/package.json +2 -2
- package/src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.tsx +7 -3
@@ -0,0 +1,29 @@
|
|
1
|
+
import type * as React from 'react';
|
2
|
+
export type CommonProps = {
|
3
|
+
id?: string;
|
4
|
+
className?: string;
|
5
|
+
style?: React.CSSProperties;
|
6
|
+
};
|
7
|
+
/**
|
8
|
+
* Makes `as` prop available and merges original OwnProps and the inferred props from `as` element.
|
9
|
+
* Extends ForwardRefExoticComponent so ref gets the correct type.
|
10
|
+
*
|
11
|
+
* `DefaultAs` should be the default element that is used for the `as` prop.
|
12
|
+
*
|
13
|
+
* @example
|
14
|
+
* const Button = React.forwardRef((props, forwardedRef) => {
|
15
|
+
* // ...
|
16
|
+
* }) as PolymorphicForwardRefComponent<'button', ButtonOwnProps>;
|
17
|
+
*/
|
18
|
+
export interface PolymorphicForwardRefComponent<DefaultAs, OwnProps = {}> extends React.ForwardRefExoticComponent<Merge<DefaultAs extends React.ElementType ? React.ComponentPropsWithRef<DefaultAs> : never, OwnProps & {
|
19
|
+
as?: DefaultAs;
|
20
|
+
}>> {
|
21
|
+
<As = DefaultAs>(props: As extends keyof JSX.IntrinsicElements ? Merge<JSX.IntrinsicElements[As], OwnProps & {
|
22
|
+
as: As;
|
23
|
+
}> : As extends React.ComponentType<infer P> ? Merge<P, OwnProps & {
|
24
|
+
as: As;
|
25
|
+
}> : never): React.ReactElement | null;
|
26
|
+
}
|
27
|
+
type Merge<P1, P2> = Omit<P1, keyof P2> & P2;
|
28
|
+
export {};
|
29
|
+
//# sourceMappingURL=props.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Table/components/newComponents/utils/props.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,WAAW,8BAA8B,CAC7C,SAAS,EACT,QAAQ,GAAG,EAAE,CACb,SAAQ,KAAK,CAAC,yBAAyB,CACrC,KAAK,CACH,SAAS,SAAS,KAAK,CAAC,WAAW,GAC/B,KAAK,CAAC,qBAAqB,CAAC,SAAS,CAAC,GACtC,KAAK,EACT,QAAQ,GAAG;IAAE,EAAE,CAAC,EAAE,SAAS,CAAA;CAAE,CAC9B,CACF;IACD,CAAC,EAAE,GAAG,SAAS,EACb,KAAK,EAAE,EAAE,SAAS,MAAM,GAAG,CAAC,iBAAiB,GACzC,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,EAAE,CAAC,EAAE,QAAQ,GAAG;QAAE,EAAE,EAAE,EAAE,CAAA;KAAE,CAAC,GACvD,EAAE,SAAS,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,GACrC,KAAK,CAAC,CAAC,EAAE,QAAQ,GAAG;QAAE,EAAE,EAAE,EAAE,CAAA;KAAE,CAAC,GAC/B,KAAK,GACV,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;CAC9B;AAED,KAAK,KAAK,CAAC,EAAE,EAAE,EAAE,IAAI,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Table/components/newComponents/utils/types.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,EAAE,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ReactVirtual.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Table/components/useLeafyGreenTable/ReactVirtual.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { Table } from '@tanstack/react-table';
|
2
|
+
import { LGTableDataType } from '.';
|
3
|
+
export declare const TableHeaderCheckbox: <T extends unknown>({ table, }: {
|
4
|
+
table: Table<LGTableDataType<T>>;
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
6
|
+
//# sourceMappingURL=TableHeaderCheckbox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TableHeaderCheckbox.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Table/components/useLeafyGreenTable/TableHeaderCheckbox.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAK9C,OAAO,EAAa,eAAe,EAAE,MAAM,GAAG,CAAC;AAG/C,eAAO,MAAM,mBAAmB;;6CAsB/B,CAAC"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { Row, Table } from '@tanstack/react-table';
|
2
|
+
import { LGTableDataType } from '.';
|
3
|
+
export declare const TableRowCheckbox: <T extends unknown>({ row, table, }: {
|
4
|
+
table: Table<LGTableDataType<T>>;
|
5
|
+
row: Row<LGTableDataType<T>>;
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
7
|
+
//# sourceMappingURL=TableRowCheckbox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TableRowCheckbox.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Table/components/useLeafyGreenTable/TableRowCheckbox.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAMnD,OAAO,EAAa,eAAe,EAAE,MAAM,GAAG,CAAC;AAE/C,eAAO,MAAM,gBAAgB;;;6CAyB5B,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Table/components/useLeafyGreenTable/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,cAAc,4BAA4B,CAAC;AAC3C,eAAe,kBAAkB,CAAC"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { LeafyGreenTableOptions } from "./useLeafyGreenTable.types";
|
2
|
+
import { LeafyGreenTable } from ".";
|
3
|
+
declare const useLeafyGreenTable: <T extends unknown, V extends unknown = unknown>({ containerRef, data, columns: columnsProp, hasSelectableRows, withPagination, useVirtualScrolling, allowSelectAll, allowSelectSingle, onSelect, virtualizerOptions, initiallySelectedRowIds, onRowSelectionChange, columnManager, isExpandable, ...rest }: LeafyGreenTableOptions<T, V>) => LeafyGreenTable<T>;
|
4
|
+
export default useLeafyGreenTable;
|
5
|
+
//# sourceMappingURL=useLeafyGreenTable.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useLeafyGreenTable.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,sBAAsB,EAAa,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAgC,MAAM,GAAG,CAAC;AAOlE,QAAA,MAAM,kBAAkB,kWAyLvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
import { RefObject, HTMLAttributes } from 'react';
|
2
|
+
import { VirtualItem, Options as VirtualizerOptions } from 'react-virtual';
|
3
|
+
import { Cell, ColumnDef, Row, RowData, Table, TableOptions } from '@tanstack/react-table';
|
4
|
+
import { VirtualizerValues } from './ReactVirtual.types';
|
5
|
+
/** LeafyGreen extension of `useReactTable` {@link RowData} */
|
6
|
+
export type LGRowData = RowData;
|
7
|
+
export type LGTableDataType<T extends LGRowData> = T & {
|
8
|
+
renderExpandedContent?: (row: LeafyGreenTableRow<T>) => JSX.Element;
|
9
|
+
subRows?: Array<LGTableDataType<T>>;
|
10
|
+
};
|
11
|
+
/** LeafyGreen extension of `useReactTable` {@link Cell} */
|
12
|
+
export type LeafyGreenTableCell<T extends LGRowData> = Cell<LGTableDataType<T>, unknown>;
|
13
|
+
/** LeafyGreen extension of `useReactTable` {@link Row} */
|
14
|
+
export interface LeafyGreenTableRow<T extends LGRowData> extends Row<LGTableDataType<T>> {
|
15
|
+
}
|
16
|
+
export interface CustomCellAttributes extends HTMLAttributes<HTMLTableCellElement> {
|
17
|
+
/** 'align' attribute is deprecated but included for compatibility */
|
18
|
+
align?: 'left' | 'center' | 'right' | 'justify' | 'char';
|
19
|
+
}
|
20
|
+
export type LGColumnDef<T extends LGRowData, V extends unknown = unknown> = ColumnDef<LGTableDataType<T>, V> & {
|
21
|
+
align?: CustomCellAttributes['align'];
|
22
|
+
isResizable?: boolean;
|
23
|
+
sticky?: 'left' | 'right';
|
24
|
+
};
|
25
|
+
/**
|
26
|
+
* Options argument for the LeafyGreen extension of `useReactTable`
|
27
|
+
*
|
28
|
+
* See: {@link TableOptions}
|
29
|
+
*/
|
30
|
+
export type LeafyGreenTableOptions<T extends LGRowData, V extends unknown = unknown> = Omit<TableOptions<LGTableDataType<T>>, 'getCoreRowModel' | 'columns'> & {
|
31
|
+
containerRef: RefObject<HTMLElement>;
|
32
|
+
hasSelectableRows?: boolean;
|
33
|
+
columns: Array<LGColumnDef<T, V>>;
|
34
|
+
withPagination?: boolean;
|
35
|
+
allowSelectAll?: boolean;
|
36
|
+
allowSelectSingle?: boolean;
|
37
|
+
onSelect?: (selectedRow: T) => void;
|
38
|
+
useVirtualScrolling?: boolean;
|
39
|
+
virtualizerOptions?: Partial<VirtualizerOptions<HTMLElement>>;
|
40
|
+
initiallySelectedRowIds?: Array<number | string>;
|
41
|
+
columnManager?: boolean;
|
42
|
+
isExpandable?: boolean;
|
43
|
+
};
|
44
|
+
/**
|
45
|
+
* LeafyGreen extension of `useReactTable` {@link Table}
|
46
|
+
*/
|
47
|
+
export interface LeafyGreenTable<T extends LGRowData> extends Table<LGTableDataType<T>>, Omit<VirtualizerValues, 'virtualItems'> {
|
48
|
+
virtualRows?: Array<VirtualItem>;
|
49
|
+
hasSelectableRows: boolean;
|
50
|
+
handleRowClick: (rowId: number) => void;
|
51
|
+
showColumnManager: boolean;
|
52
|
+
setShowColumnManager: React.Dispatch<React.SetStateAction<boolean>>;
|
53
|
+
}
|
54
|
+
//# sourceMappingURL=useLeafyGreenTable.types.d.ts.map
|
package/dist/esm/components/Table/components/useLeafyGreenTable/useLeafyGreenTable.types.d.ts.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useLeafyGreenTable.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Table/components/useLeafyGreenTable/useLeaf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,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,oBAAoB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CACrE"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { type TableContextValues } from '../TableContext';
|
2
|
+
import { LGRowData } from '../useLeafyGreenTable';
|
3
|
+
/**
|
4
|
+
* Returns whether a given row has _all_ ancestor rows expanded
|
5
|
+
*/
|
6
|
+
export declare function getAreAncestorsExpanded<T extends LGRowData>(
|
7
|
+
/** The starting id */
|
8
|
+
startId: string,
|
9
|
+
/** The parent getter function */
|
10
|
+
getParentRow: TableContextValues<T>['getParentRow']): boolean;
|
11
|
+
//# sourceMappingURL=areAncestorsExpanded.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"areAncestorsExpanded.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Table/components/utils/areAncestorsExpanded.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,SAAS;AACzD,sBAAsB;AACtB,OAAO,EAAE,MAAM;AACf,iCAAiC;AACjC,YAAY,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,WAepD"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/**
|
2
|
+
* `react-table`'s Row `id`s are configured so that the first nested row of Row with `id` '0' is: '0.0'.
|
3
|
+
*
|
4
|
+
* This function parses a Row's `id` to return its immediate parent Row's id if it exists, and returns `undefined` otherwise.
|
5
|
+
*
|
6
|
+
* @param childId `id` of the referenced row
|
7
|
+
* @returns the `id` of the parent row
|
8
|
+
*/
|
9
|
+
declare function getParentRowId(childId?: string): string;
|
10
|
+
export default getParentRowId;
|
11
|
+
//# sourceMappingURL=getParentRowId.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getParentRowId.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Table/components/utils/getParentRowId.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,iBAAS,cAAc,CAAC,OAAO,CAAC,EAAE,MAAM,UAMvC;AAED,eAAe,cAAc,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Table/components/utils/types.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,OAAO;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB"}
|
package/dist/esm/src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
import{slicedToArray as e,toConsumableArray as n}from"../../../../../_virtual/_rollupPluginBabelHelpers.js";import{__rest as t}from"../../../../../_virtual/_tslib.js";import{jsx as o}from"@emotion/react/jsx-runtime";import{useState as i,useRef as l,useCallback as r,useEffect as a,useMemo as c}from"react";import{useVirtual as s}from"react-virtual";import{getCoreRowModel as u,getSortedRowModel as d,getPaginationRowModel as g,useReactTable as f}from"@tanstack/react-table";import h from"lodash/omit";import{TableHeaderCheckbox as m}from"./TableHeaderCheckbox.js";import{TableRowCheckbox as v}from"./TableRowCheckbox.js";import w from"../../../Icon/Icons/components/Settings.js";import
|
1
|
+
import{slicedToArray as e,toConsumableArray as n}from"../../../../../_virtual/_rollupPluginBabelHelpers.js";import{__rest as t}from"../../../../../_virtual/_tslib.js";import{jsx as o}from"@emotion/react/jsx-runtime";import{useState as i,useRef as l,useCallback as r,useEffect as a,useMemo as c}from"react";import{useVirtual as s}from"react-virtual";import{getCoreRowModel as u,getSortedRowModel as d,getPaginationRowModel as g,useReactTable as f}from"@tanstack/react-table";import h from"lodash/omit";import{TableHeaderCheckbox as m}from"./TableHeaderCheckbox.js";import{TableRowCheckbox as v}from"./TableRowCheckbox.js";import w from"../../../Icon/Icons/components/Settings.js";import R from"../../../IconButton/IconButton.js";import b from"../ToggleExpandedIcon/ToggleExpandedIcon.js";import S from"../../../Dialog/Dialog.js";import p from"../../../DialogContentContainer/DialogContentContainer.js";import C from"../../../Checkbox/Checkbox.js";import I from"../../../ListItem/ListItem.js";var x=function(x){var j=x.containerRef,O=x.data,M=x.columns,y=x.hasSelectableRows,z=x.withPagination,T=void 0!==z&&z,k=x.useVirtualScrolling,E=void 0!==k&&k,A=x.allowSelectAll,L=void 0===A||A,P=x.allowSelectSingle,D=void 0!==P&&P,_=x.onSelect,B=x.virtualizerOptions,H=x.initiallySelectedRowIds,V=void 0===H?[]:H,F=x.onRowSelectionChange,U=x.columnManager,K=void 0!==U&&U,X=x.isExpandable,N=void 0!==X&&X,q=x.hoverIcon,G=x.selectCurrentPageOnly,J=void 0!==G&&G,Q=x.onUnselectAll,W=x.initialState,Y=x.initialLoadCount,Z=void 0===Y?20:Y,$=x.loadMoreCount,ee=void 0===$?10:$,ne=x.onLoadMore,te=x.infiniteScrolling,oe=void 0!==te&&te,ie=x.autoResetPageIndex,le=void 0===ie||ie,re=x.selectAllRows,ae=void 0!==re&&re,ce=t(x,["containerRef","data","columns","hasSelectableRows","withPagination","useVirtualScrolling","allowSelectAll","allowSelectSingle","onSelect","virtualizerOptions","initiallySelectedRowIds","onRowSelectionChange","columnManager","isExpandable","hoverIcon","selectCurrentPageOnly","onUnselectAll","initialState","initialLoadCount","loadMoreCount","onLoadMore","infiniteScrolling","autoResetPageIndex","selectAllRows"]),se=i({}),ue=e(se,2),de=ue[0],ge=ue[1],fe=i(null),he=e(fe,2),me=he[0],ve=he[1],we=i(!1),Re=e(we,2),be=Re[0],Se=Re[1],pe=i([]),Ce=e(pe,2),Ie=Ce[0],xe=Ce[1],je=i(!1),Oe=e(je,2),Me=Oe[0],ye=Oe[1],ze=i(!1),Te=e(ze,2),ke=Te[0],Ee=Te[1],Ae=l(null),Le=l(!1),Pe=l({}),De=l([]),_e=l(null),Be=l(null),He=r((function(e,n){var t,o;return y&&null!==(o=null===(t=e.id)||void 0===t?void 0:""+t)&&void 0!==o?o:""+n}),[y]);a((function(){!Le.current&&y&&(Pe.current=V.reduce((function(e,n){return e[""+n]=!0,e}),{}),Le.current=!0)}),[V,y]),a((function(){Le.current&&ge(Pe.current)}),[Le.current]),a((function(){xe(oe?O.slice(0,Z):O)}),[O,oe,Z]),a((function(){O!==De.current&&y&&(ge(de),De.current=O)}),[O,He,y]);var Ve={id:"select",size:14,header:m,cell:v};a((function(){if(ae&&y){var e=O.reduce((function(e,n,t){return e[He(n,t)]=!0,e}),{});ge(e)}}),[ae,y,O,He]);var Fe=c((function(){return M.some((function(e){return!!e.enableSorting}))}),[M]),Ue=L?Ve:h(Ve,"header"),Ke={id:"expander",size:30,header:function(){return null},cell:function(e){var n=e.row;return n.getCanExpand()?o(b,{isExpanded:n.getIsExpanded(),toggleExpanded:function(){return n.toggleExpanded()},disabled:!1}):null}},Xe={id:"hoverIcon",size:30,sticky:"right",header:function(){return null},cell:function(e){return o("span",Object.assign({style:{display:"block",height:"100%"}},{children:me===e.row.index&&q}))}},Ne=c((function(){var e=M.filter((function(e){return"left"===e.sticky})),t=M.filter((function(e){return"right"===e.sticky})),i=0,l=0;return[].concat(n(y?[Ue]:[]),n(N?[Ke]:[]),n(M.map((function(n,o){var r,a,c,s=Object.assign(Object.assign({},n),{align:null!==(r=n.align)&&void 0!==r?r:"left",enableSorting:null!==(a=n.enableSorting)&&void 0!==a&&a,isResizable:null!==(c=n.isResizable)&&void 0!==c&&c,cell:n.cell||function(e){return(0,e.getValue)()}});return"left"===n.sticky?(s.left=i,i+=n.size,s.isLastStickyLeft=o===e.length-1):"right"===n.sticky&&(s.right=(l+=n.size)-n.size,s.isFirstStickyRight=o===M.length-t.length),s})).map((function(e,n,o){return"right"===e.sticky&&(e.isFirstStickyRight=n===o.length-t.length),e}))),[q?Xe:null],n(K?[{id:"columnManager",size:20,header:function(){var e;return o(S,Object.assign({showTrigger:[S.hideShowTriggers.CLICK],hideTrigger:[S.hideShowTriggers.CLICK_OUTSIDE],position:S.positions.BOTTOM_END,open:ke,content:o(p,{children:tn.getAllLeafColumns().slice(0,-1).map((function(e,n){return o(I,{children:o(C,{checked:e.getIsVisible(),label:e.columnDef.header||e.id,onChange:e.getToggleVisibilityHandler(),"aria-labelledby":"iui-column-".concat(e.id)})},"".concat(e.id,"-").concat(n))}))},"small"),onDialogDidHide:function(){return Ee(!1)}},{children:o(R,{ariaLabel:"Customize",size:null===(e=null==R?void 0:R.sizes)||void 0===e?void 0:e.XXS,icon:w,ref:Ae,onClick:function(){return Ee(!0)}})}))},cell:function(){return null}}]:[])).filter(Boolean)}),[M,y,Ue,K,N,q,ke]),qe=i("onChange"),Ge=e(qe,2),Je=Ge[0],Qe=i("ltr"),We=e(Qe,2),Ye=We[0],Ze=function(e){if(y){var n=Object.assign({},Pe.current),t=J?tn.getPageRows():tn.getPreFilteredRowModel().rows,o=null!=e?e:!tn.getIsAllRowsSelected();t.forEach((function(e){n[e.id]=o})),ge(n)}},$e=function(){y&&(ge({}),Pe.current={},null==Q||Q())},en=r((function(){oe&&!Me&&O.length>Ie.length&&(ye(!0),setTimeout((function(){xe((function(e){var t=O.slice(e.length,e.length+ee);return e.length+t.length>=O.length&&_e.current&&_e.current.disconnect(),[].concat(n(e),n(t))})),ye(!1),ne&&ne()}),500))}),[oe,Me,O,ee,ne,Ie.length]);a((function(){return oe&&Be.current&&(_e.current=new IntersectionObserver((function(e){e[0].isIntersecting&&en()}),{threshold:.1}),_e.current.observe(Be.current)),function(){_e.current&&_e.current.disconnect()}}),[oe,en]);var nn=Object.assign({data:Ie,columns:Ne,getCoreRowModel:u(),getRowCanExpand:function(e){var n;return!!e.original.renderExpandedContent||!!(null===(n=e.subRows)||void 0===n?void 0:n.length)},enableExpanding:!0,enableSortingRemoval:!!Fe||void 0,getSubRows:function(e){return e.subRows},getSortedRowModel:d(),getPaginationRowModel:T?g():void 0,initialState:W||void 0,columnResizeMode:Je,columnResizeDirection:Ye,autoResetPageIndex:le},ce);y&&(nn.getRowId=He,nn.state={rowSelection:de},nn.onRowSelectionChange=ge);var tn=f(nn);tn.toggleAllRowsSelected=Ze,tn.unselectAllRows=$e;var on=tn.getCoreRowModel().rows,ln=(tn.getPaginationRowModel(),s(Object.assign({parentRef:j,size:on.length,overscan:30},B)));return a((function(){if(F&&y){var e=O.filter((function(e,n){return de[He(e,n)]}));F(e)}}),[de,O,F,He,y]),Object.assign(Object.assign(Object.assign(Object.assign({},tn),{handleRowClick:function(e){D&&(null==_||_(e.original))},toggleAllRowsSelected:Ze,unselectAllRows:$e}),E&&{virtualRows:ln.virtualItems,totalSize:ln.totalSize,scrollToIndex:ln.scrollToIndex,scrollToOffset:ln.scrollToOffset,measure:ln.measure}),{hasSelectableRows:y,showColumnManager:be,setShowColumnManager:Se,columnManagerRef:Ae,setHoveredRow:ve,isLoading:Me,loadedData:Ie,loadMoreTriggerRef:Be,infiniteScrolling:oe,loadMoreRows:en})};export{x as default};
|
2
2
|
//# sourceMappingURL=useLeafyGreenTable.js.map
|
package/dist/esm/src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useLeafyGreenTable.js","sources":["../../../../../../../src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.tsx"],"sourcesContent":["//@ts-nocheck\nimport { useEffect, useLayoutEffect, useMemo, useRef, useState, useCallback } from \"react\";\nimport { useVirtual } from \"react-virtual\";\nimport { useReactTable, ColumnResizeMode, ColumnResizeDirection } from \"@tanstack/react-table\";\nimport { getCoreRowModel, getPaginationRowModel, getSortedRowModel, Row } from \"@tanstack/react-table\";\nimport omit from \"lodash/omit\";\nimport { TableHeaderCheckbox } from \"./TableHeaderCheckbox\";\nimport { TableRowCheckbox } from \"./TableRowCheckbox\";\nimport { LeafyGreenTableOptions, LGRowData } from \"./useLeafyGreenTable.types\";\nimport { LeafyGreenTable, LGColumnDef, LGTableDataType } from \".\";\nimport Settings from \"../../../Icon/Icons/components/Settings\";\nimport IconButton from \"../../../IconButton/IconButton\";\nimport ToggleExpandedIcon from \"../ToggleExpandedIcon\";\nimport Dialog from \"../../../Dialog/Dialog\";\nimport List from \"../../../List/List\";\nimport DialogContentContainer from \"../../../DialogContentContainer/DialogContentContainer\";\nimport Checkbox from \"../../../Checkbox/Checkbox\";\nimport ListItem from \"../../../ListItem/ListItem\";\n\nconst CHECKBOX_WIDTH = 14;\n\nconst useLeafyGreenTable = <T extends LGRowData, V extends unknown = unknown>({\n containerRef,\n data,\n columns: columnsProp,\n hasSelectableRows,\n withPagination = false,\n useVirtualScrolling = false,\n allowSelectAll = true,\n allowSelectSingle = false,\n onSelect,\n virtualizerOptions,\n initiallySelectedRowIds = [],\n onRowSelectionChange,\n columnManager = false,\n isExpandable = false,\n hoverIcon,\n selectCurrentPageOnly = false,\n onUnselectAll,\n initialState,\n initialLoadCount = 20, \n loadMoreCount = 10, \n onLoadMore, \n infiniteScrolling = false,\n autoResetPageIndex = true,\n selectAllRows = false,\n ...rest\n}: LeafyGreenTableOptions<T, V>): LeafyGreenTable<T> => {\n const [rowSelection, setRowSelection] = useState<{ [key: string]: boolean }>({});\n const [hoveredRow, setHoveredRow] = useState<number | null>(null);\n const [showColumnManager, setShowColumnManager] = useState(false);\n const [loadedData, setLoadedData] = useState<T[]>([]);\n const [isLoading, setIsLoading] = useState(false);\n const [isDialogOpen, setIsDialogOpen] = useState(false);\n\n const columnManagerRef = useRef<HTMLButtonElement>(null);\n const isInitialSetupDone = useRef(false);\n const initialSelectionRef = useRef<{ [key: string]: boolean }>({});\n const previousDataRef = useRef<T[]>([]);\n const observerRef = useRef<IntersectionObserver | null>(null);\n const loadMoreTriggerRef = useRef<HTMLDivElement | null>(null);\n\n const getRowId = useCallback((row: T, index: number) => {\n if (hasSelectableRows) {\n return row.id?.toString() ?? index.toString();\n }\n return index.toString();\n }, [hasSelectableRows]);\n\n useEffect(() => {\n if (!isInitialSetupDone.current && hasSelectableRows) {\n initialSelectionRef.current = initiallySelectedRowIds.reduce((acc, id) => {\n acc[id.toString()] = true;\n return acc;\n }, {});\n isInitialSetupDone.current = true;\n }\n }, [initiallySelectedRowIds, hasSelectableRows]);\n\n useEffect(() => {\n setLoadedData(infiniteScrolling ? data.slice(0, initialLoadCount) : data);\n }, [data, infiniteScrolling, initialLoadCount]);\n\n useEffect(() => {\n if (data !== previousDataRef.current && hasSelectableRows) {\n const newRowSelection = { ...initialSelectionRef.current, ...rowSelection };\n \n setRowSelection(newRowSelection);\n previousDataRef.current = data;\n }\n }, [data, getRowId, hasSelectableRows]);\n\n const baseSelectColumnConfig: LGColumnDef<T, V> = {\n id: \"select\",\n size: CHECKBOX_WIDTH,\n header: TableHeaderCheckbox,\n cell: TableRowCheckbox,\n };\n\n useEffect(() => {\n if (selectAllRows && hasSelectableRows) {\n const allSelected = data.reduce((acc, row, index) => {\n acc[getRowId(row, index)] = true;\n return acc;\n }, {});\n setRowSelection(allSelected);\n }\n }, [selectAllRows, hasSelectableRows, data, getRowId]);\n\n const handleRowClick = (row: Row<T>) => {\n if (allowSelectSingle) {\n const selectedRowData = row.original;\n onSelect?.(selectedRowData);\n }\n };\n\n const hasSortableColumns = useMemo(() => columnsProp.some((propCol) => !!propCol.enableSorting), [columnsProp]);\n\n const selectColumnConfig = allowSelectAll ? baseSelectColumnConfig : omit(baseSelectColumnConfig, \"header\");\n\n const expandColumnConfig: LGColumnDef<T, V> = {\n id: \"expander\",\n size: 30,\n header: () => null,\n cell: ({ row }) => {\n const isExpandable = row.getCanExpand();\n return isExpandable ? (\n <ToggleExpandedIcon\n isExpanded={row.getIsExpanded()}\n toggleExpanded={() => row.toggleExpanded()}\n disabled={false}\n />\n ) : null;\n },\n };\n\n const hoverIconConfig: LGColumnDef<T, V> = {\n id: \"hoverIcon\",\n size: 30,\n sticky: \"right\",\n header: () => null,\n cell: ({ row }) => (\n <span style={{ display: \"block\", height: \"100%\" }}>\n {hoveredRow === row.index && hoverIcon}\n </span>\n ),\n };\n\n const columns = useMemo<Array<LGColumnDef<T, V>>>(() => {\n const stickyLeftColumns = columnsProp.filter((col) => col.sticky === \"left\");\n const stickyRightColumns = columnsProp.filter((col) => col.sticky === \"right\");\n\n let leftOffset = 0;\n let rightOffset = 0;\n\n return [\n ...(hasSelectableRows ? [selectColumnConfig as LGColumnDef<T, V>] : []),\n ...(isExpandable ? [expandColumnConfig] : []),\n ...columnsProp\n .map((propColumn, index) => {\n const newColumn = {\n ...propColumn,\n align: propColumn.align ?? \"left\",\n enableSorting: propColumn.enableSorting ?? false,\n isResizable: propColumn.isResizable ?? false,\n cell: propColumn.cell || (({ getValue }) => getValue()),\n };\n\n if (propColumn.sticky === \"left\") {\n newColumn.left = leftOffset;\n leftOffset += propColumn.size;\n newColumn.isLastStickyLeft = index === stickyLeftColumns.length - 1;\n } else if (propColumn.sticky === \"right\") {\n rightOffset += propColumn.size;\n newColumn.right = rightOffset - propColumn.size;\n newColumn.isFirstStickyRight = index === columnsProp.length - stickyRightColumns.length;\n }\n\n return newColumn;\n })\n .map((column, index, columns) => {\n if (column.sticky === \"right\") {\n column.isFirstStickyRight = index === columns.length - stickyRightColumns.length;\n }\n return column;\n }),\n hoverIcon ? hoverIconConfig : null,\n ...(columnManager\n ? [\n {\n id: \"columnManager\",\n size: 20,\n header: () => (\n <Dialog\n showTrigger={[Dialog.hideShowTriggers.CLICK]}\n hideTrigger={[Dialog.hideShowTriggers.CLICK_OUTSIDE]}\n position={Dialog.positions.BOTTOM_END}\n open={isDialogOpen}\n content={\n <DialogContentContainer key=\"small\">\n {table.getAllLeafColumns().slice(0, -1).map((column, index) => (\n <ListItem key={`${column.id}-${index}`}>\n <Checkbox\n checked={column.getIsVisible()}\n label={column.columnDef.header as string || column.id}\n onChange={column.getToggleVisibilityHandler()}\n aria-labelledby={`iui-column-${column.id}`}\n />\n </ListItem>\n ))}\n </DialogContentContainer> \n }\n onDialogDidHide={() => setIsDialogOpen(false)}\n >\n <IconButton\n ariaLabel=\"Customize\"\n size={IconButton?.sizes?.XXS}\n icon={Settings}\n ref={columnManagerRef}\n onClick={() => setIsDialogOpen(true)}\n />\n </Dialog>\n ),\n cell: () => null,\n },\n ]\n : []),\n ].filter(Boolean);\n }, [columnsProp, hasSelectableRows, selectColumnConfig, columnManager, isExpandable, hoverIcon, isDialogOpen]);\n\n const [columnResizeMode, setColumnResizeMode] = useState<ColumnResizeMode>(\"onChange\");\n const [columnResizeDirection, setColumnResizeDirection] = useState<ColumnResizeDirection>(\"ltr\");\n\n const toggleAllRowsSelected = (value?: boolean) => {\n if (!hasSelectableRows) return;\n\n const newSelection = { ...initialSelectionRef.current };\n const rowsToSelect = selectCurrentPageOnly ? table.getPageRows() : table.getPreFilteredRowModel().rows;\n\n const setTo = value ?? !table.getIsAllRowsSelected();\n rowsToSelect.forEach((row) => {\n newSelection[row.id] = setTo;\n });\n\n setRowSelection(newSelection);\n };\n\n const unselectAllRows = () => {\n if (!hasSelectableRows) return;\n\n setRowSelection({});\n initialSelectionRef.current = {};\n onUnselectAll?.();\n };\n\n const loadMoreRows = useCallback(() => {\n if (!infiniteScrolling || isLoading || loadedData.length >= data.length) return;\n setIsLoading(true);\n setTimeout(() => {\n setLoadedData((prevData) => {\n const nextData = data.slice(prevData.length, prevData.length + loadMoreCount);\n if (prevData.length + nextData.length >= data.length && observerRef.current) {\n observerRef.current.disconnect();\n }\n\n return [...prevData, ...nextData];\n });\n setIsLoading(false);\n if (onLoadMore) {\n onLoadMore();\n }\n }, 500);\n }, [infiniteScrolling, isLoading, data, loadMoreCount, onLoadMore, loadedData.length]);\n\n useEffect(() => {\n if (infiniteScrolling && loadMoreTriggerRef.current) {\n observerRef.current = new IntersectionObserver(\n (entries) => {\n if (entries[0].isIntersecting) {\n loadMoreRows();\n }\n },\n { threshold: 0.1 }\n );\n\n observerRef.current.observe(loadMoreTriggerRef.current);\n }\n\n return () => {\n if (observerRef.current) {\n observerRef.current.disconnect();\n }\n };\n }, [infiniteScrolling, loadMoreRows]);\n\n const tableOptions = {\n data: loadedData,\n columns,\n getCoreRowModel: getCoreRowModel(),\n getRowCanExpand: (row) => !!row.original.renderExpandedContent || !!row.subRows?.length,\n enableExpanding: true,\n enableSortingRemoval: hasSortableColumns ? true : undefined,\n getSubRows: (row) => row.subRows,\n getSortedRowModel: getSortedRowModel(),\n getPaginationRowModel: withPagination ? getPaginationRowModel() : undefined,\n initialState: initialState ? initialState : undefined,\n columnResizeMode,\n columnResizeDirection,\n autoResetPageIndex,\n ...rest,\n };\n\n if (hasSelectableRows) {\n tableOptions.getRowId = getRowId;\n tableOptions.state = { rowSelection };\n tableOptions.onRowSelectionChange = setRowSelection;\n }\n\n const table = useReactTable<LGTableDataType<T>>(tableOptions);\n\n table.toggleAllRowsSelected = toggleAllRowsSelected;\n table.unselectAllRows = unselectAllRows;\n\n const { rows } = table.getCoreRowModel();\n const { rows: paginationRows } = table.getPaginationRowModel();\n const _rowVirtualizer = useVirtual({\n parentRef: containerRef,\n size: rows.length,\n overscan: 30,\n ...virtualizerOptions,\n });\n\n useEffect(() => {\n if (onRowSelectionChange && hasSelectableRows) {\n const selectedRows = data.filter((row, index) => rowSelection[getRowId(row, index)]);\n onRowSelectionChange(selectedRows);\n }\n }, [rowSelection, data, onRowSelectionChange, getRowId, hasSelectableRows]);\n\n return {\n ...table,\n handleRowClick,\n toggleAllRowsSelected, \n unselectAllRows, \n ...(useVirtualScrolling && {\n virtualRows: _rowVirtualizer.virtualItems,\n totalSize: _rowVirtualizer.totalSize,\n scrollToIndex: _rowVirtualizer.scrollToIndex,\n scrollToOffset: _rowVirtualizer.scrollToOffset,\n measure: _rowVirtualizer.measure,\n }),\n hasSelectableRows,\n showColumnManager,\n setShowColumnManager,\n columnManagerRef,\n setHoveredRow,\n isLoading,\n loadedData,\n loadMoreTriggerRef,\n infiniteScrolling,\n loadMoreRows,\n } as LeafyGreenTable<T>;\n};\n\nexport default useLeafyGreenTable;\n"],"names":["useLeafyGreenTable","_a","containerRef","data","columnsProp","columns","hasSelectableRows","_a$withPagination","withPagination","_a$useVirtualScrollin","useVirtualScrolling","_a$allowSelectAll","allowSelectAll","_a$allowSelectSingle","allowSelectSingle","onSelect","virtualizerOptions","_a$initiallySelectedR","initiallySelectedRowIds","onRowSelectionChange","_a$columnManager","columnManager","_a$isExpandable","isExpandable","hoverIcon","_a$selectCurrentPageO","selectCurrentPageOnly","onUnselectAll","initialState","_a$initialLoadCount","initialLoadCount","_a$loadMoreCount","loadMoreCount","onLoadMore","_a$infiniteScrolling","infiniteScrolling","_a$autoResetPageIndex","autoResetPageIndex","_a$selectAllRows","selectAllRows","rest","__rest","_useState","useState","_useState2","_slicedToArray","rowSelection","setRowSelection","_useState3","_useState4","hoveredRow","setHoveredRow","_useState5","_useState6","showColumnManager","setShowColumnManager","_useState7","_useState8","loadedData","setLoadedData","_useState9","_useState10","isLoading","setIsLoading","_useState11","_useState12","isDialogOpen","setIsDialogOpen","columnManagerRef","useRef","isInitialSetupDone","initialSelectionRef","previousDataRef","observerRef","loadMoreTriggerRef","getRowId","useCallback","row","index","_b","id","useEffect","current","reduce","acc","slice","newRowSelection","baseSelectColumnConfig","size","header","TableHeaderCheckbox","cell","TableRowCheckbox","allSelected","hasSortableColumns","useMemo","some","propCol","enableSorting","selectColumnConfig","omit","expandColumnConfig","_ref","getCanExpand","_jsx","ToggleExpandedIcon","isExpanded","getIsExpanded","toggleExpanded","disabled","hoverIconConfig","sticky","_ref2","Object","assign","style","display","height","children","stickyLeftColumns","filter","col","stickyRightColumns","leftOffset","rightOffset","concat","_toConsumableArray","map","propColumn","newColumn","align","isResizable","_c","_ref3","getValue","left","isLastStickyLeft","length","right","isFirstStickyRight","column","Dialog","showTrigger","hideShowTriggers","CLICK","hideTrigger","CLICK_OUTSIDE","position","positions","BOTTOM_END","open","content","DialogContentContainer","table","getAllLeafColumns","ListItem","Checkbox","checked","getIsVisible","label","columnDef","onChange","getToggleVisibilityHandler","onDialogDidHide","IconButton","ariaLabel","sizes","XXS","icon","Settings","ref","onClick","Boolean","_useState13","_useState14","columnResizeMode","_useState15","_useState16","columnResizeDirection","toggleAllRowsSelected","value","newSelection","rowsToSelect","getPageRows","getPreFilteredRowModel","rows","setTo","getIsAllRowsSelected","forEach","unselectAllRows","loadMoreRows","setTimeout","prevData","nextData","disconnect","IntersectionObserver","entries","isIntersecting","threshold","observe","tableOptions","getCoreRowModel","getRowCanExpand","original","renderExpandedContent","subRows","enableExpanding","enableSortingRemoval","undefined","getSubRows","getSortedRowModel","getPaginationRowModel","state","useReactTable","_rowVirtualizer","useVirtual","parentRef","overscan","selectedRows","handleRowClick","virtualRows","virtualItems","totalSize","scrollToIndex","scrollToOffset","measure"],"mappings":"+9BAmBA,IAEMA,EAAqB,SAAmDC,GAAA,IAC5EC,EAuBqBD,EAvBrBC,aACAC,EAsBqBF,EAtBrBE,KACSC,EAqBYH,EArBrBI,QACAC,EAoBqBL,EApBrBK,kBAAiBC,EAoBIN,EAnBrBO,eAAAA,OAAiB,IAAHD,GAAQA,EAAAE,EAmBDR,EAlBrBS,oBAAAA,OAAsB,IAAHD,GAAQA,EAAAE,EAkBNV,EAjBrBW,eAAAA,OAAiB,IAAHD,GAAOA,EAAAE,EAiBAZ,EAhBrBa,kBAAAA,OAAoB,IAAHD,GAAQA,EACzBE,EAeqBd,EAfrBc,SACAC,EAcqBf,EAdrBe,mBAAkBC,EAcGhB,EAbrBiB,wBAAAA,OAA0B,IAAHD,EAAG,GAAEA,EAC5BE,EAYqBlB,EAZrBkB,qBAAoBC,EAYCnB,EAXrBoB,cAAAA,OAAgB,IAAHD,GAAQA,EAAAE,EAWArB,EAVrBsB,aAAAA,OAAe,IAAHD,GAAQA,EACpBE,EASqBvB,EATrBuB,UAASC,EASYxB,EARrByB,sBAAAA,OAAwB,IAAHD,GAAQA,EAC7BE,EAOqB1B,EAPrB0B,cAC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NewTable/components/useLeafyGreenTable/useLeafyGreenTable.tsx"],"sourcesContent":["//@ts-nocheck\nimport { useEffect, useLayoutEffect, useMemo, useRef, useState, useCallback } from \"react\";\nimport { useVirtual } from \"react-virtual\";\nimport { useReactTable, ColumnResizeMode, ColumnResizeDirection } from \"@tanstack/react-table\";\nimport { getCoreRowModel, getPaginationRowModel, getSortedRowModel, Row } from \"@tanstack/react-table\";\nimport omit from \"lodash/omit\";\nimport { TableHeaderCheckbox } from \"./TableHeaderCheckbox\";\nimport { TableRowCheckbox } from \"./TableRowCheckbox\";\nimport { LeafyGreenTableOptions, LGRowData } from \"./useLeafyGreenTable.types\";\nimport { LeafyGreenTable, LGColumnDef, LGTableDataType } from \".\";\nimport Settings from \"../../../Icon/Icons/components/Settings\";\nimport IconButton from \"../../../IconButton/IconButton\";\nimport ToggleExpandedIcon from \"../ToggleExpandedIcon\";\nimport Dialog from \"../../../Dialog/Dialog\";\nimport List from \"../../../List/List\";\nimport DialogContentContainer from \"../../../DialogContentContainer/DialogContentContainer\";\nimport Checkbox from \"../../../Checkbox/Checkbox\";\nimport ListItem from \"../../../ListItem/ListItem\";\n\nconst CHECKBOX_WIDTH = 14;\n\nconst useLeafyGreenTable = <T extends LGRowData, V extends unknown = unknown>({\n containerRef,\n data,\n columns: columnsProp,\n hasSelectableRows,\n withPagination = false,\n useVirtualScrolling = false,\n allowSelectAll = true,\n allowSelectSingle = false,\n onSelect,\n virtualizerOptions,\n initiallySelectedRowIds = [],\n onRowSelectionChange,\n columnManager = false,\n isExpandable = false,\n hoverIcon,\n selectCurrentPageOnly = false,\n onUnselectAll,\n initialState,\n initialLoadCount = 20, \n loadMoreCount = 10, \n onLoadMore, \n infiniteScrolling = false,\n autoResetPageIndex = true,\n selectAllRows = false,\n ...rest\n}: LeafyGreenTableOptions<T, V>): LeafyGreenTable<T> => {\n const [rowSelection, setRowSelection] = useState<{ [key: string]: boolean }>({});\n const [hoveredRow, setHoveredRow] = useState<number | null>(null);\n const [showColumnManager, setShowColumnManager] = useState(false);\n const [loadedData, setLoadedData] = useState<T[]>([]);\n const [isLoading, setIsLoading] = useState(false);\n const [isDialogOpen, setIsDialogOpen] = useState(false);\n\n const columnManagerRef = useRef<HTMLButtonElement>(null);\n const isInitialSetupDone = useRef(false);\n const initialSelectionRef = useRef<{ [key: string]: boolean }>({});\n const previousDataRef = useRef<T[]>([]);\n const observerRef = useRef<IntersectionObserver | null>(null);\n const loadMoreTriggerRef = useRef<HTMLDivElement | null>(null);\n\n const getRowId = useCallback((row: T, index: number) => {\n if (hasSelectableRows) {\n return row.id?.toString() ?? index.toString();\n }\n return index.toString();\n }, [hasSelectableRows]);\n\n useEffect(() => {\n if (!isInitialSetupDone.current && hasSelectableRows) {\n initialSelectionRef.current = initiallySelectedRowIds.reduce((acc, id) => {\n acc[id.toString()] = true;\n return acc;\n }, {});\n isInitialSetupDone.current = true;\n }\n }, [initiallySelectedRowIds, hasSelectableRows]);\n\n useEffect(()=>{\n if (isInitialSetupDone.current) {\n setRowSelection(initialSelectionRef.current);\n }\n },[isInitialSetupDone.current]);\n\n useEffect(() => {\n setLoadedData(infiniteScrolling ? data.slice(0, initialLoadCount) : data);\n }, [data, infiniteScrolling, initialLoadCount]);\n\n useEffect(() => {\n if (data !== previousDataRef.current && hasSelectableRows) {\n setRowSelection(rowSelection);\n previousDataRef.current = data;\n }\n }, [data, getRowId, hasSelectableRows]);\n\n const baseSelectColumnConfig: LGColumnDef<T, V> = {\n id: \"select\",\n size: CHECKBOX_WIDTH,\n header: TableHeaderCheckbox,\n cell: TableRowCheckbox,\n };\n\n useEffect(() => {\n if (selectAllRows && hasSelectableRows) {\n const allSelected = data.reduce((acc, row, index) => {\n acc[getRowId(row, index)] = true;\n return acc;\n }, {});\n setRowSelection(allSelected);\n }\n }, [selectAllRows, hasSelectableRows, data, getRowId]);\n\n const handleRowClick = (row: Row<T>) => {\n if (allowSelectSingle) {\n const selectedRowData = row.original;\n onSelect?.(selectedRowData);\n }\n };\n\n const hasSortableColumns = useMemo(() => columnsProp.some((propCol) => !!propCol.enableSorting), [columnsProp]);\n\n const selectColumnConfig = allowSelectAll ? baseSelectColumnConfig : omit(baseSelectColumnConfig, \"header\");\n\n const expandColumnConfig: LGColumnDef<T, V> = {\n id: \"expander\",\n size: 30,\n header: () => null,\n cell: ({ row }) => {\n const isExpandable = row.getCanExpand();\n return isExpandable ? (\n <ToggleExpandedIcon\n isExpanded={row.getIsExpanded()}\n toggleExpanded={() => row.toggleExpanded()}\n disabled={false}\n />\n ) : null;\n },\n };\n\n const hoverIconConfig: LGColumnDef<T, V> = {\n id: \"hoverIcon\",\n size: 30,\n sticky: \"right\",\n header: () => null,\n cell: ({ row }) => (\n <span style={{ display: \"block\", height: \"100%\" }}>\n {hoveredRow === row.index && hoverIcon}\n </span>\n ),\n };\n\n const columns = useMemo<Array<LGColumnDef<T, V>>>(() => {\n const stickyLeftColumns = columnsProp.filter((col) => col.sticky === \"left\");\n const stickyRightColumns = columnsProp.filter((col) => col.sticky === \"right\");\n\n let leftOffset = 0;\n let rightOffset = 0;\n\n return [\n ...(hasSelectableRows ? [selectColumnConfig as LGColumnDef<T, V>] : []),\n ...(isExpandable ? [expandColumnConfig] : []),\n ...columnsProp\n .map((propColumn, index) => {\n const newColumn = {\n ...propColumn,\n align: propColumn.align ?? \"left\",\n enableSorting: propColumn.enableSorting ?? false,\n isResizable: propColumn.isResizable ?? false,\n cell: propColumn.cell || (({ getValue }) => getValue()),\n };\n\n if (propColumn.sticky === \"left\") {\n newColumn.left = leftOffset;\n leftOffset += propColumn.size;\n newColumn.isLastStickyLeft = index === stickyLeftColumns.length - 1;\n } else if (propColumn.sticky === \"right\") {\n rightOffset += propColumn.size;\n newColumn.right = rightOffset - propColumn.size;\n newColumn.isFirstStickyRight = index === columnsProp.length - stickyRightColumns.length;\n }\n\n return newColumn;\n })\n .map((column, index, columns) => {\n if (column.sticky === \"right\") {\n column.isFirstStickyRight = index === columns.length - stickyRightColumns.length;\n }\n return column;\n }),\n hoverIcon ? hoverIconConfig : null,\n ...(columnManager\n ? [\n {\n id: \"columnManager\",\n size: 20,\n header: () => (\n <Dialog\n showTrigger={[Dialog.hideShowTriggers.CLICK]}\n hideTrigger={[Dialog.hideShowTriggers.CLICK_OUTSIDE]}\n position={Dialog.positions.BOTTOM_END}\n open={isDialogOpen}\n content={\n <DialogContentContainer key=\"small\">\n {table.getAllLeafColumns().slice(0, -1).map((column, index) => (\n <ListItem key={`${column.id}-${index}`}>\n <Checkbox\n checked={column.getIsVisible()}\n label={column.columnDef.header as string || column.id}\n onChange={column.getToggleVisibilityHandler()}\n aria-labelledby={`iui-column-${column.id}`}\n />\n </ListItem>\n ))}\n </DialogContentContainer> \n }\n onDialogDidHide={() => setIsDialogOpen(false)}\n >\n <IconButton\n ariaLabel=\"Customize\"\n size={IconButton?.sizes?.XXS}\n icon={Settings}\n ref={columnManagerRef}\n onClick={() => setIsDialogOpen(true)}\n />\n </Dialog>\n ),\n cell: () => null,\n },\n ]\n : []),\n ].filter(Boolean);\n }, [columnsProp, hasSelectableRows, selectColumnConfig, columnManager, isExpandable, hoverIcon, isDialogOpen]);\n\n const [columnResizeMode, setColumnResizeMode] = useState<ColumnResizeMode>(\"onChange\");\n const [columnResizeDirection, setColumnResizeDirection] = useState<ColumnResizeDirection>(\"ltr\");\n\n const toggleAllRowsSelected = (value?: boolean) => {\n if (!hasSelectableRows) return;\n\n const newSelection = { ...initialSelectionRef.current };\n const rowsToSelect = selectCurrentPageOnly ? table.getPageRows() : table.getPreFilteredRowModel().rows;\n\n const setTo = value ?? !table.getIsAllRowsSelected();\n rowsToSelect.forEach((row) => {\n newSelection[row.id] = setTo;\n });\n\n setRowSelection(newSelection);\n };\n\n const unselectAllRows = () => {\n if (!hasSelectableRows) return;\n\n setRowSelection({});\n initialSelectionRef.current = {};\n onUnselectAll?.();\n };\n\n const loadMoreRows = useCallback(() => {\n if (!infiniteScrolling || isLoading || loadedData.length >= data.length) return;\n setIsLoading(true);\n setTimeout(() => {\n setLoadedData((prevData) => {\n const nextData = data.slice(prevData.length, prevData.length + loadMoreCount);\n if (prevData.length + nextData.length >= data.length && observerRef.current) {\n observerRef.current.disconnect();\n }\n\n return [...prevData, ...nextData];\n });\n setIsLoading(false);\n if (onLoadMore) {\n onLoadMore();\n }\n }, 500);\n }, [infiniteScrolling, isLoading, data, loadMoreCount, onLoadMore, loadedData.length]);\n\n useEffect(() => {\n if (infiniteScrolling && loadMoreTriggerRef.current) {\n observerRef.current = new IntersectionObserver(\n (entries) => {\n if (entries[0].isIntersecting) {\n loadMoreRows();\n }\n },\n { threshold: 0.1 }\n );\n\n observerRef.current.observe(loadMoreTriggerRef.current);\n }\n\n return () => {\n if (observerRef.current) {\n observerRef.current.disconnect();\n }\n };\n }, [infiniteScrolling, loadMoreRows]);\n\n const tableOptions = {\n data: loadedData,\n columns,\n getCoreRowModel: getCoreRowModel(),\n getRowCanExpand: (row) => !!row.original.renderExpandedContent || !!row.subRows?.length,\n enableExpanding: true,\n enableSortingRemoval: hasSortableColumns ? true : undefined,\n getSubRows: (row) => row.subRows,\n getSortedRowModel: getSortedRowModel(),\n getPaginationRowModel: withPagination ? getPaginationRowModel() : undefined,\n initialState: initialState ? initialState : undefined,\n columnResizeMode,\n columnResizeDirection,\n autoResetPageIndex,\n ...rest,\n };\n\n if (hasSelectableRows) {\n tableOptions.getRowId = getRowId;\n tableOptions.state = { rowSelection };\n tableOptions.onRowSelectionChange = setRowSelection;\n }\n\n const table = useReactTable<LGTableDataType<T>>(tableOptions);\n\n table.toggleAllRowsSelected = toggleAllRowsSelected;\n table.unselectAllRows = unselectAllRows;\n\n const { rows } = table.getCoreRowModel();\n const { rows: paginationRows } = table.getPaginationRowModel();\n const _rowVirtualizer = useVirtual({\n parentRef: containerRef,\n size: rows.length,\n overscan: 30,\n ...virtualizerOptions,\n });\n\n useEffect(() => {\n if (onRowSelectionChange && hasSelectableRows) {\n const selectedRows = data.filter((row, index) => rowSelection[getRowId(row, index)]);\n onRowSelectionChange(selectedRows);\n }\n }, [rowSelection, data, onRowSelectionChange, getRowId, hasSelectableRows]);\n\n return {\n ...table,\n handleRowClick,\n toggleAllRowsSelected, \n unselectAllRows, \n ...(useVirtualScrolling && {\n virtualRows: _rowVirtualizer.virtualItems,\n totalSize: _rowVirtualizer.totalSize,\n scrollToIndex: _rowVirtualizer.scrollToIndex,\n scrollToOffset: _rowVirtualizer.scrollToOffset,\n measure: _rowVirtualizer.measure,\n }),\n hasSelectableRows,\n showColumnManager,\n setShowColumnManager,\n columnManagerRef,\n setHoveredRow,\n isLoading,\n loadedData,\n loadMoreTriggerRef,\n infiniteScrolling,\n loadMoreRows,\n } as LeafyGreenTable<T>;\n};\n\nexport default useLeafyGreenTable;\n"],"names":["useLeafyGreenTable","_a","containerRef","data","columnsProp","columns","hasSelectableRows","_a$withPagination","withPagination","_a$useVirtualScrollin","useVirtualScrolling","_a$allowSelectAll","allowSelectAll","_a$allowSelectSingle","allowSelectSingle","onSelect","virtualizerOptions","_a$initiallySelectedR","initiallySelectedRowIds","onRowSelectionChange","_a$columnManager","columnManager","_a$isExpandable","isExpandable","hoverIcon","_a$selectCurrentPageO","selectCurrentPageOnly","onUnselectAll","initialState","_a$initialLoadCount","initialLoadCount","_a$loadMoreCount","loadMoreCount","onLoadMore","_a$infiniteScrolling","infiniteScrolling","_a$autoResetPageIndex","autoResetPageIndex","_a$selectAllRows","selectAllRows","rest","__rest","_useState","useState","_useState2","_slicedToArray","rowSelection","setRowSelection","_useState3","_useState4","hoveredRow","setHoveredRow","_useState5","_useState6","showColumnManager","setShowColumnManager","_useState7","_useState8","loadedData","setLoadedData","_useState9","_useState10","isLoading","setIsLoading","_useState11","_useState12","isDialogOpen","setIsDialogOpen","columnManagerRef","useRef","isInitialSetupDone","initialSelectionRef","previousDataRef","observerRef","loadMoreTriggerRef","getRowId","useCallback","row","index","_b","id","useEffect","current","reduce","acc","slice","baseSelectColumnConfig","size","header","TableHeaderCheckbox","cell","TableRowCheckbox","allSelected","hasSortableColumns","useMemo","some","propCol","enableSorting","selectColumnConfig","omit","expandColumnConfig","_ref","getCanExpand","_jsx","ToggleExpandedIcon","isExpanded","getIsExpanded","toggleExpanded","disabled","hoverIconConfig","sticky","_ref2","Object","assign","style","display","height","children","stickyLeftColumns","filter","col","stickyRightColumns","leftOffset","rightOffset","concat","_toConsumableArray","map","propColumn","newColumn","align","isResizable","_c","_ref3","getValue","left","isLastStickyLeft","length","right","isFirstStickyRight","column","Dialog","showTrigger","hideShowTriggers","CLICK","hideTrigger","CLICK_OUTSIDE","position","positions","BOTTOM_END","open","content","DialogContentContainer","table","getAllLeafColumns","ListItem","Checkbox","checked","getIsVisible","label","columnDef","onChange","getToggleVisibilityHandler","onDialogDidHide","IconButton","ariaLabel","sizes","XXS","icon","Settings","ref","onClick","Boolean","_useState13","_useState14","columnResizeMode","_useState15","_useState16","columnResizeDirection","toggleAllRowsSelected","value","newSelection","rowsToSelect","getPageRows","getPreFilteredRowModel","rows","setTo","getIsAllRowsSelected","forEach","unselectAllRows","loadMoreRows","setTimeout","prevData","nextData","disconnect","IntersectionObserver","entries","isIntersecting","threshold","observe","tableOptions","getCoreRowModel","getRowCanExpand","original","renderExpandedContent","subRows","enableExpanding","enableSortingRemoval","undefined","getSubRows","getSortedRowModel","getPaginationRowModel","state","useReactTable","_rowVirtualizer","useVirtual","parentRef","overscan","selectedRows","handleRowClick","virtualRows","virtualItems","totalSize","scrollToIndex","scrollToOffset","measure"],"mappings":"+9BAmBA,IAEMA,EAAqB,SAAmDC,GAAA,IAC5EC,EAuBqBD,EAvBrBC,aACAC,EAsBqBF,EAtBrBE,KACSC,EAqBYH,EArBrBI,QACAC,EAoBqBL,EApBrBK,kBAAiBC,EAoBIN,EAnBrBO,eAAAA,OAAiB,IAAHD,GAAQA,EAAAE,EAmBDR,EAlBrBS,oBAAAA,OAAsB,IAAHD,GAAQA,EAAAE,EAkBNV,EAjBrBW,eAAAA,OAAiB,IAAHD,GAAOA,EAAAE,EAiBAZ,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IAEFC,SAAAA,EADwB8D,EAAI6H,YAuO9BxB,sBAAAA,GACAU,gBAAAA,KACIlL,GAAuB,CACzBiN,YAAaN,GAAgBO,aAC7BC,UAAWR,GAAgBQ,UAC3BC,cAAeT,GAAgBS,cAC/BC,eAAgBV,GAAgBU,eAChCC,QAASX,GAAgBW,WAE3B1N,kBAAAA,EACAgD,kBAAAA,GACAC,qBAAAA,GACAa,iBAAAA,GACAjB,cAAAA,GACAW,UAAAA,GACAJ,WAAAA,GACAgB,mBAAAA,GACAvC,kBAAAA,GACA0J,aAAAA,IAEJ"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
var e={tableContainerStyles:"tableContainerStyles_8dfdd3adfa",baseStyles:"baseStyles_3ce009b3c1"};!function(e){if("undefined"==typeof document)return;const n=document.head||document.getElementsByTagName("head")[0],t="s_id-89f65d6dfe25_0_0_82-table-tanstack";if(n.querySelector("#"+t))return;const a=document.createElement("style");a.id=t,n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.appendChild(document.createTextNode(e))}(".tableContainerStyles_8dfdd3adfa {\n overflow: auto;\n position: relative;\n}\n\n.baseStyles_3ce009b3c1 {\n border-spacing: 0;\n border-collapse: collapse;\n margin: 0;\n padding: 0;\n border: none;\n vertical-align: baseline;\n flex-direction: column;\n isolation: isolate;\n overflow: auto;\n scrollbar-gutter: stable;\n background-color: var(--surface-primary);\n font-size: 14px;\n}");export{e as default};
|
2
|
+
//# sourceMappingURL=Table.module.scss.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Table.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{defineProperty as l}from"../../../../../_virtual/_rollupPluginBabelHelpers.js";import{__rest as i}from"../../../../../_virtual/_tslib.js";import{jsx as e}from"react/jsx-runtime";import t from"classnames";import{useTableContext as s}from"../TableContext/TableContext.js";import r from"./Cell.module.scss.js";var n=function(n){var o,a,c,m=n.className,u=n.contentClassName,f=n.align,d=n.children,p=n.cell,g=i(n,["className","contentClassName","align","children","cell"]),v=s().disableAnimations;if(!p)return console.error("Cell prop is missing"),null;if(!p.column)return console.error("Cell prop structure is incorrect. Missing 'column' property.",p),null;var y=null===(o=p.column.columnDef)||void 0===o?void 0:o.sticky,C=null===(a=p.column.columnDef)||void 0===a?void 0:a.isLastStickyLeft,b=null===(c=p.column.columnDef)||void 0===c?void 0:c.isFirstStickyRight;return e("td",Object.assign({className:t(r.baseCell,m,"left"===y&&r.stickyLeft,"right"===y&&r.stickyRight,C&&r.lastStickyLeft,b&&r.firstStickyRight)},g,{children:e("div",Object.assign({className:t(r.cellTransitionContainer,r["align-".concat(f)],l({},r.disableAnimation,v),u)},{children:d}))}))};n.displayName="Cell";export{n as default};
|
2
|
+
//# sourceMappingURL=Cell.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Cell.js","sources":["../../../../../../../src/components/Table/components/Cell/Cell.tsx"],"sourcesContent":["//@ts-nocheck\nimport React from \"react\";\nimport cx from \"classnames\";\nimport { useTableContext } from \"../TableContext\";\nimport styles from \"./Cell.module.scss\"; // Import SCSS module\nimport { CellProps as BaseCellProps } from \"./Cell.types\";\nimport { LGRowData } from \"../useLeafyGreenTable\";\n\nconst Cell = <T extends LGRowData>({\n className,\n contentClassName,\n align,\n children,\n cell,\n ...rest\n}: BaseCellProps<T>) => {\n const { disableAnimations } = useTableContext();\n\n if (!cell) {\n console.error(\"Cell prop is missing\");\n return null;\n }\n\n if (!cell.column) {\n console.error(\"Cell prop structure is incorrect. Missing 'column' property.\", cell);\n return null;\n }\n\n const sticky = cell.column.columnDef?.sticky;\n const isLastStickyLeft = cell.column.columnDef?.isLastStickyLeft;\n const isFirstStickyRight = cell.column.columnDef?.isFirstStickyRight;\n\n return (\n <td\n className={cx(\n styles.baseCell,\n className,\n sticky === \"left\" && styles.stickyLeft,\n sticky === \"right\" && styles.stickyRight,\n isLastStickyLeft && styles.lastStickyLeft,\n isFirstStickyRight && styles.firstStickyRight\n )}\n {...rest}\n >\n <div\n className={cx(\n styles.cellTransitionContainer,\n styles[`align-${align}`],\n { [styles.disableAnimation]: disableAnimations },\n contentClassName\n )}\n >\n {children}\n </div>\n </td>\n );\n};\n\nCell.displayName = \"Cell\";\n\nexport default Cell;\n"],"names":["Cell","_a","className","contentClassName","align","children","cell","rest","__rest","disableAnimations","useTableContext","console","error","column","sticky","_b","columnDef","isLastStickyLeft","_c","isFirstStickyRight","_d","_jsx","Object","assign","cx","styles","baseCell","stickyLeft","stickyRight","lastStickyLeft","firstStickyRight","cellTransitionContainer","concat","_defineProperty","disableAnimation","displayName"],"mappings":"0TAQA,IAAMA,EAAO,SAAsBC,aACjCC,EAMiBD,EANjBC,UACAC,EAKiBF,EALjBE,iBACAC,EAIiBH,EAJjBG,MACAC,EAGiBJ,EAHjBI,SACAC,EAEiBL,EAFjBK,KACGC,EAAIC,EAAAP,EAN0B,4DAQzBQ,EAAsBC,IAAtBD,kBAER,IAAKH,EAEH,OADAK,QAAQC,MAAM,wBACP,KAGT,IAAKN,EAAKO,OAER,OADAF,QAAQC,MAAM,+DAAgEN,GACvE,KAGT,IAAMQ,EAAgC,QAAvBC,EAAAT,EAAKO,OAAOG,iBAAW,IAAAD,OAAA,EAAAA,EAAAD,OAChCG,EAA0C,QAAvBC,EAAAZ,EAAKO,OAAOG,iBAAW,IAAAE,OAAA,EAAAA,EAAAD,iBAC1CE,EAA4C,QAAvBC,EAAAd,EAAKO,OAAOG,iBAAW,IAAAI,OAAA,EAAAA,EAAAD,mBAElD,OACEE,EACE,KAAAC,OAAAC,OAAA,CAAArB,UAAWsB,EACTC,EAAOC,SACPxB,EACW,SAAXY,GAAqBW,EAAOE,WACjB,UAAXb,GAAsBW,EAAOG,YAC7BX,GAAoBQ,EAAOI,eAC3BV,GAAsBM,EAAOK,mBAE3BvB,EAAI,CAAAF,SAERgB,EACE,MAAAC,OAAAC,OAAA,CAAArB,UAAWsB,EACTC,EAAOM,wBACPN,EAAM,SAAAO,OAAU5B,IAAQ6B,EACrBR,CAAAA,EAAAA,EAAOS,iBAAmBzB,GAC7BN,IAGD,CAAAE,SAAAA,OAIT,EAEAL,EAAKmC,YAAc"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
var n={baseCell:"baseCell_76a8099e21",stickyLeft:"stickyLeft_9434a8fe57",stickyRight:"stickyRight_4b5080f83d",lastStickyLeft:"lastStickyLeft_b4f73face0",firstStickyRight:"firstStickyRight_ddb5e507d9",firstChildCell:"firstChildCell_296a9846a6",cellTransitionContainer:"cellTransitionContainer_d7bfb30c48",truncatedContent:"truncatedContent_aed3aa9dda",disableAnimation:"disableAnimation_f34ccde3cb",cellContentTransitionEntered:"cellContentTransitionEntered_8d8252357f",cellContentTransitionEntering:"cellContentTransitionEntering_0708d0cf7f",cellContentTransitionExiting:"cellContentTransitionExiting_f52e10d606",cellContentTransitionExited:"cellContentTransitionExited_beb747e7de",cellContentTransitionUnmounted:"cellContentTransitionUnmounted_897f5c322a","align-left":"align-left_c4d9111d0b","align-right":"align-right_99cd62daab","align-center":"align-center_a5a7f5a536"};!function(n){if("undefined"==typeof document)return;const t=document.head||document.getElementsByTagName("head")[0],e="s_id-adcf278e278b_0_0_82-table-tanstack";if(t.querySelector("#"+e))return;const i=document.createElement("style");i.id=e,t.firstChild?t.insertBefore(i,t.firstChild):t.appendChild(i),i.appendChild(document.createTextNode(n))}(".baseCell_76a8099e21 {\n overflow: hidden;\n border-block-start: solid 1px transparent;\n border-block-end: solid 1px transparent;\n border-block-end-color: var(--divider-primary);\n transition: all 0.3s ease-out;\n}\n.baseCell_76a8099e21:focus-visible {\n box-shadow: inset 0 0 0 1px black;\n}\n.baseCell_76a8099e21:last-child {\n padding-right: 32px;\n}\n.baseCell_76a8099e21.stickyLeft_9434a8fe57 {\n position: sticky;\n left: 0;\n z-index: 1;\n background-color: var(--surface-primary);\n}\n.baseCell_76a8099e21.stickyRight_4b5080f83d {\n position: sticky;\n right: 0;\n z-index: 1;\n background-color: var(--surface-primary);\n}\n.baseCell_76a8099e21.lastStickyLeft_b4f73face0 {\n box-shadow: inset -10px 0 5px -5px var(--shadow-color);\n}\n.baseCell_76a8099e21.firstStickyRight_ddb5e507d9 {\n box-shadow: inset 10px 0 5px -5px var(--shadow-color);\n}\n.firstChildCell_296a9846a6 {\n padding-left: 40px;\n}\n.cellTransitionContainer_d7bfb30c48 {\n display: flex;\n align-items: center;\n min-height: 40px;\n transition-property: min-height, max-height, opacity, padding, transform;\n transition-duration: 250ms;\n transition-timing-function: ease;\n}\n.truncatedContent_aed3aa9dda {\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n -webkit-box-align: start;\n}\n.disableAnimation_f34ccde3cb {\n transition-duration: 0;\n transition: none;\n}\n.cellContentTransitionEntered_8d8252357f {\n opacity: 1;\n min-height: 40px;\n max-height: unset;\n}\n.cellContentTransitionEntering_0708d0cf7f,\n.cellContentTransitionExiting_f52e10d606,\n.cellContentTransitionExited_beb747e7de,\n.cellContentTransitionUnmounted_897f5c322a {\n opacity: 0;\n min-height: 0;\n max-height: 0;\n overflow: hidden;\n}\n.align-left_c4d9111d0b {\n justify-content: left;\n text-align: left;\n}\n.align-right_99cd62daab {\n justify-content: right;\n text-align: right;\n}\n.align-center_a5a7f5a536 {\n justify-content: center;\n text-align: center;\n}");export{n as default};
|
2
|
+
//# sourceMappingURL=Cell.module.scss.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Cell.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Cell.types.js","sources":["../../../../../../../src/components/Table/components/Cell/Cell.types.ts"],"sourcesContent":["import { CSSProperties, ReactNode } from 'react';\nimport { Cell as ReactTableCell } from '@tanstack/react-table';\nimport { LGRowData, LGTableDataType } from '../useLeafyGreenTable';\n\nexport type Align = 'left' | 'right' | 'center';\n\nexport const CellOverflowBehavior = {\n Default: 'default',\n Truncate: 'truncate',\n // Expand: 'expand', // Uncomment this when you implement the expand functionality\n} as const;\n\nexport type CellOverflowBehavior = (typeof CellOverflowBehavior)[keyof typeof CellOverflowBehavior];\n\ninterface BaseHTMLAttributes {\n className?: string;\n style?: CSSProperties;\n id?: string;\n // Add other HTML attributes as necessary\n}\n\ninterface BaseCellProps extends BaseHTMLAttributes {\n /**\n * Alignment of the cell's contents\n *\n * Overrides `<td>`'s deprecated `align` prop\n */\n align?: Align;\n\n children?: ReactNode;\n\n /** A `className` applied to the inner `div` of the Cell */\n contentClassName?: string;\n\n /**\n * Defines how a cell should behave when its content is larger than the standard cell height.\n *\n * `Default`: The cell height will be fixed to the standard cell height (40px by default).\n * Any overflowing content will be clipped.\n *\n * `Truncate`: The cell height will be fixed to the standard cell height (40px by default),\n * and include an ellipsis before the content is clipped.\n *\n * Note: It's recommended to provide the same value for all cells in a given row.\n *\n * @default CellOverflowBehavior.Default\n */\n overflow?: CellOverflowBehavior;\n}\n\nexport type LeafyGreenTableCell<T extends LGRowData> = ReactTableCell<LGTableDataType<T>, unknown>;\n\nexport interface CellProps<T extends LGRowData> extends BaseCellProps {\n cell: LeafyGreenTableCell<T>;\n}\n\nexport interface InternalCellProps extends BaseCellProps {\n /**\n * Index of the cell in its parent row.\n */\n cellIndex: number;\n children?: ReactNode;\n\n /**\n * Depth of nesting its parent row has.\n */\n depth: number;\n\n /**\n * Defines whether the cell's row is visible (i.e. expanded)\n *\n * @default true\n */\n isVisible?: boolean;\n\n /**\n * Defines whether the cell's row is expandable\n *\n * @default false\n */\n isExpandable?: boolean;\n}\n"],"names":["CellOverflowBehavior","Default","Truncate"],"mappings":"AAMO,IAAMA,EAAuB,CAClCC,QAAS,UACTC,SAAU"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{defineProperty as e}from"../../../../../../_virtual/_rollupPluginBabelHelpers.js";import{__rest as o}from"../../../../../../_virtual/_tslib.js";import{jsx as s,jsxs as l}from"react/jsx-runtime";import n from"classnames";import{useTableContext as t}from"../../TableContext/TableContext.js";import i from"./HeaderCell.module.scss.js";import{SortState as r}from"./HeaderCell.types.js";import c from"../../../../Icon/Icons/components/MoveArrowUp.js";import a from"../../../../Icon/Icons/components/MoveArrowDown.js";import m from"../../../../IconButton/IconButton.js";var d={false:r.Off,asc:r.Asc,desc:r.Desc},u=function(u){var f,g,v,p,h,b,j=u.children,z=u.className,C=u.header,I=o(u,["children","className","cellIndex","header"]);t();if(C&&C.column.getCanSort()){var S=""+C.column.getIsSorted();h=d[S],b=C.column.getToggleSortingHandler()}var x=null==C?void 0:C.getSize(),y=null===(f=null==C?void 0:C.column.columnDef)||void 0===f?void 0:f.isResizable,D=null===(g=null==C?void 0:C.column.columnDef)||void 0===g?void 0:g.sticky;return s("th",Object.assign({className:n(z,i.headerCell,y&&i.resizableHeaderCell,"left"===D&&i.stickyLeft,"right"===D&&i.stickyRight),scope:"col"},I,{children:l("div",Object.assign({className:n(i.headerCellContent),style:{minWidth:x?"".concat(x,"px"):void 0}},{children:[j,b&&s(m,{ariaLabel:"asc"===h?"Sort Descending":"Sort Ascending",size:null===(v=null==m?void 0:m.sizes)||void 0===v?void 0:v.XXS,className:n(i.sortIcon,e({},i.visible,h!==r.Off)),icon:"asc"===h?a:c,onClick:b}),y&&s("div",Object.assign({},{onDoubleClick:function(){return C.column.resetSize()},onMouseDown:C.getResizeHandler(),onTouchStart:C.getResizeHandler(),className:n(i.resizer,C.column.getIsResizing()&&i.isResizing),style:{transform:C.column.getIsResizing()?"translateX(".concat(null!==(p=C.getStart())&&void 0!==p?p:0,"px)"):""}}))]}))}))};export{u as default};
|
2
|
+
//# sourceMappingURL=HeaderCell.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"HeaderCell.js","sources":["../../../../../../../../src/components/Table/components/Cell/HeaderCell/HeaderCell.tsx"],"sourcesContent":["//@ts-nocheck\nimport React, { PropsWithChildren } from \"react\";\nimport cx from \"classnames\";\nimport { useTableContext } from \"../../TableContext\";\nimport { LGRowData } from \"../../useLeafyGreenTable\";\nimport styles from \"./HeaderCell.module.scss\";\nimport { HeaderCellProps, SortState, SortStates } from \"./HeaderCell.types\";\nimport MoveArrowUp from \"../../../../Icon/Icons/components/MoveArrowUp\";\nimport MoveArrowDown from \"../../../../Icon/Icons/components/MoveArrowDown\";\nimport IconButton from \"../../../../IconButton/IconButton\";\n\nconst HeaderSortState: SortStates = {\n false: SortState.Off,\n asc: SortState.Asc,\n desc: SortState.Desc,\n};\n\nconst HeaderCell = <T extends LGRowData>({\n children,\n className,\n cellIndex,\n header,\n ...rest\n}: PropsWithChildren<HeaderCellProps<T>>) => {\n const { table } = useTableContext();\n\n const isFirstCell = cellIndex === 0;\n const isSelectable = !!table && !!table.hasSelectableRows;\n\n let columnName, sortState, onSortIconClick;\n\n if (header && header.column.getCanSort()) {\n columnName = header.column.columnDef.header as string;\n const headerSortDirection = header.column.getIsSorted().toString();\n sortState = HeaderSortState[headerSortDirection];\n onSortIconClick = header.column.getToggleSortingHandler();\n }\n\n const headerSize = header?.getSize();\n const isResizable = header?.column.columnDef?.isResizable;\n const sticky = header?.column.columnDef?.sticky;\n\n return (\n <th\n className={cx(\n className,\n styles.headerCell,\n isResizable && styles.resizableHeaderCell,\n sticky === 'left' && styles.stickyLeft,\n sticky === 'right' && styles.stickyRight\n )}\n scope=\"col\"\n {...rest}\n >\n <div\n className={cx(styles.headerCellContent)}\n style={{ minWidth: headerSize ? `${headerSize}px` : undefined }}\n >\n {children}\n {onSortIconClick && (\n <IconButton\n ariaLabel={\n sortState === \"asc\" ? \"Sort Descending\" : \"Sort Ascending\"\n }\n size={IconButton?.sizes?.XXS}\n className={cx(styles.sortIcon, {\n [styles.visible]: sortState !== SortState.Off,\n })}\n icon={sortState === \"asc\" ? MoveArrowDown : MoveArrowUp}\n onClick={onSortIconClick}\n />\n )}\n {isResizable && (\n <div\n {...{\n onDoubleClick: () => header.column.resetSize(),\n onMouseDown: header.getResizeHandler(),\n onTouchStart: header.getResizeHandler(),\n className: cx(\n styles.resizer,\n header.column.getIsResizing() && styles.isResizing\n ),\n style: {\n transform: header.column.getIsResizing()\n ? `translateX(${header.getStart() ?? 0}px)`\n : \"\",\n },\n }}\n />\n )}\n </div>\n </th>\n );\n};\n\nexport default HeaderCell;\n"],"names":["HeaderSortState","false","SortState","Off","asc","Asc","desc","Desc","HeaderCell","_a","sortState","onSortIconClick","children","className","header","rest","__rest","useTableContext","column","getCanSort","headerSortDirection","getIsSorted","getToggleSortingHandler","headerSize","getSize","isResizable","_b","columnDef","sticky","_c","_jsx","Object","assign","cx","styles","headerCell","resizableHeaderCell","stickyLeft","stickyRight","scope","_jsxs","headerCellContent","style","minWidth","concat","undefined","IconButton","ariaLabel","size","_d","sizes","XXS","sortIcon","_defineProperty","visible","icon","MoveArrowDown","MoveArrowUp","onClick","onDoubleClick","resetSize","onMouseDown","getResizeHandler","onTouchStart","resizer","getIsResizing","isResizing","transform","_e","getStart"],"mappings":"2jBAWA,IAAMA,EAA8B,CAClCC,MAAOC,EAAUC,IACjBC,IAAKF,EAAUG,IACfC,KAAMJ,EAAUK,MAGZC,EAAa,SAAsBC,eAYvBC,EAAWC,EAX3BC,EAGMH,EAHNG,SACAC,EAEMJ,EAFNI,UAEAC,EAAML,EAANK,OACGC,EALoCC,EAAAP,EAAA,CAAA,WAAA,YAAA,YAAA,WAOrBQ,IAOlB,GAAIH,GAAUA,EAAOI,OAAOC,aAAc,CAExC,IAAMC,EAAsBN,KAAOI,OAAOG,cAC1CX,EAAYV,EAAgBoB,GAC5BT,EAAkBG,EAAOI,OAAOI,yBACjC,CAED,IAAMC,EAAaT,eAAAA,EAAQU,UACrBC,EAAsC,QAAxBC,EAAAZ,aAAM,EAANA,EAAQI,OAAOS,iBAAS,IAAAD,OAAA,EAAAA,EAAED,YACxCG,EAAiC,QAAxBC,EAAAf,aAAM,EAANA,EAAQI,OAAOS,iBAAS,IAAAE,OAAA,EAAAA,EAAED,OAEzC,OACEE,EACE,KAAAC,OAAAC,OAAA,CAAAnB,UAAWoB,EACTpB,EACAqB,EAAOC,WACPV,GAAeS,EAAOE,oBACX,SAAXR,GAAqBM,EAAOG,WACjB,UAAXT,GAAsBM,EAAOI,aAE/BC,MAAM,OACFxB,YAEJyB,EACE,MAAAT,OAAAC,OAAA,CAAAnB,UAAWoB,EAAGC,EAAOO,mBACrBC,MAAO,CAAEC,SAAUpB,EAAU,GAAAqB,OAAMrB,EAAiBsB,WAAAA,IAAW,CAAAjC,SAAA,CAE9DA,EACAD,GACCmB,EAACgB,EACC,CAAAC,UACgB,QAAdrC,EAAsB,kBAAoB,iBAE5CsC,KAAyB,QAAnBC,EAAAH,aAAU,EAAVA,EAAYI,aAAO,IAAAD,OAAA,EAAAA,EAAAE,IACzBtC,UAAWoB,EAAGC,EAAOkB,SAAQC,EAAA,CAAA,EAC1BnB,EAAOoB,QAAU5C,IAAcR,EAAUC,MAE5CoD,KAAoB,QAAd7C,EAAsB8C,EAAgBC,EAC5CC,QAAS/C,IAGZc,GACCK,EACM,MAAAC,OAAAC,OAAA,GAAA,CACF2B,cAAe,WAAA,OAAM7C,EAAOI,OAAO0C,WAAW,EAC9CC,YAAa/C,EAAOgD,mBACpBC,aAAcjD,EAAOgD,mBACrBjD,UAAWoB,EACTC,EAAO8B,QACPlD,EAAOI,OAAO+C,iBAAmB/B,EAAOgC,YAE1CxB,MAAO,CACLyB,UAAWrD,EAAOI,OAAO+C,gBAAerB,cAAAA,OACD,QAArBwB,EAAAtD,EAAOuD,kBAAc,IAAAD,EAAAA,EAAA,EACnC,OAAA,aAQpB"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
var e={headerCellContent:"headerCellContent_d5501df9b1",headerCell:"headerCell_6ca2e23db0",sortIcon:"sortIcon_8f6229b84b",stickyLeft:"stickyLeft_9434a8fe57",stickyRight:"stickyRight_4b5080f83d",visible:"visible_5e3897b5b1",resizableHeaderCell:"resizableHeaderCell_6ca2e23db0",resizer:"resizer_2806e514d4",isResizing:"isResizing_5451406b80",tableSort:"tableSort_9a89627cc1",tableSortsorted:"tableSortsorted_4697712c34"};!function(e){if("undefined"==typeof document)return;const n=document.head||document.getElementsByTagName("head")[0],r="s_id-176eea49fa0f_0_0_82-table-tanstack";if(n.querySelector("#"+r))return;const t=document.createElement("style");t.id=r,n.firstChild?n.insertBefore(t,n.firstChild):n.appendChild(t),t.appendChild(document.createTextNode(e))}(".headerCellContent_d5501df9b1 {\n height: 40px;\n}\n\n.headerCell_6ca2e23db0 {\n position: relative;\n}\n\n.headerCell_6ca2e23db0:hover .sortIcon_8f6229b84b,\n.headerCell_6ca2e23db0 .sortIcon_8f6229b84b:hover {\n opacity: 1;\n}\n\n.headerCell_6ca2e23db0.stickyLeft_9434a8fe57 {\n position: sticky;\n left: 0;\n z-index: 1;\n background-color: var(--surface-primary);\n}\n\n.headerCell_6ca2e23db0.stickyRight_4b5080f83d {\n position: sticky;\n right: 0;\n z-index: 1;\n background-color: var(--surface-primary);\n}\n\n.sortIcon_8f6229b84b {\n opacity: 0;\n transition: opacity 0.3s ease;\n}\n\n.sortIcon_8f6229b84b.visible_5e3897b5b1 {\n opacity: 1;\n}\n\n.resizableHeaderCell_6ca2e23db0 {\n position: relative;\n}\n\n.headerCellContent_d5501df9b1 {\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-block-start: solid 1px transparent;\n border-block-end: solid 1px transparent;\n border-block-end-color: var(--divider-primary);\n}\n\n.resizer_2806e514d4 {\n position: absolute;\n inline-size: 6px;\n width: 5px;\n height: 100%;\n block-size: 100%;\n margin-inline: auto;\n cursor: col-resize;\n right: 0;\n top: 0;\n background-color: transparent;\n transition: background-color 0.3s ease-out, width 0.3s ease-out;\n}\n\n.resizer_2806e514d4:hover {\n background-color: var(--divider-secondary);\n}\n\n.isResizing_5451406b80 {\n background-color: rgba(173, 216, 230, 0.5);\n user-select: none;\n inline-size: var(--spacing-small);\n background-color: var(--divider-selected);\n}\n\n.tableSort_9a89627cc1 {\n opacity: 1;\n color: var(--icon-secondary);\n}\n\n.tableSortsorted_4697712c34 {\n background-color: var(--surface-primary-hover);\n}\n\n.tableSortsorted_4697712c34 .tableSort_9a89627cc1 {\n opacity: 1;\n --_iui-table-cell-icon-fill: var(--icon-primary);\n}");export{e as default};
|
2
|
+
//# sourceMappingURL=HeaderCell.module.scss.js.map
|
package/dist/esm/src/components/Table/components/Cell/HeaderCell/HeaderCell.module.scss.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"HeaderCell.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"HeaderCell.types.js","sources":["../../../../../../../../src/components/Table/components/Cell/HeaderCell/HeaderCell.types.ts"],"sourcesContent":["import { Header } from \"@tanstack/react-table\";\nimport { CSSProperties } from 'react';\n\nimport { LGRowData } from \"../../useLeafyGreenTable\";\n\nexport const SortState = {\n Asc: \"asc\",\n Desc: \"desc\",\n Off: \"off\",\n None: \"none\",\n} as const;\n\nexport type SortState = (typeof SortState)[keyof typeof SortState];\n\nexport interface SortStates {\n [key: string]: SortState;\n}\n\nexport interface HeaderCellProps<T extends LGRowData> {\n align?: \"left\" | \"center\" | \"right\";\n sortState?: SortState;\n header?: Header<T, unknown>;\n cellIndex?: number;\n className?: string;\n style?: CSSProperties;\n id?: string;\n}\n"],"names":["SortState","Asc","Desc","Off","None"],"mappings":"AAKO,IAAMA,EAAY,CACvBC,IAAK,MACLC,KAAM,OACNC,IAAK,MACLC,KAAM"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{__rest as e}from"../../../../../_virtual/_tslib.js";import{jsx as t}from"react/jsx-runtime";import{useRef as n,useMemo as l}from"react";import{Transition as i}from"react-transition-group";import r from"prop-types";import a from"classnames";import{useTableContext as s}from"../TableContext/TableContext.js";import o from"./Cell.module.scss.js";import{CellOverflowBehavior as c}from"./Cell.types.js";var m=function(r){var m=r.children,d=r.className,p=r.contentClassName,u=r.cellIndex,f=r.depth,b=void 0===f?0:f,C=r.isVisible,h=void 0===C||C,g=r.overflow,x=r.align,v=e(r,["children","className","contentClassName","cellIndex","depth","isVisible","isExpandable","overflow","align"]),j=0===u,N=s(),y=N.disableAnimations,T=n(null),I=n(null),O=parseInt(o.standardCellHeight,10),V=I.current?I.current.scrollHeight:0,w=l((function(){return g===c.Truncate&&V>O}),[O,g,V]);return t("td",Object.assign({className:a(o.baseCell,j&&o.firstChildCell,d),style:j?{paddingLeft:"".concat(20*b,"px")}:void 0},v,{children:t(i,Object.assign({in:h,timeout:0,nodeRef:T},{children:function(e){return t("div",Object.assign({"data-state":e,ref:I,className:a(o.cellTransitionContainer,o["cell-content-transition-".concat(e)],o["align-".concat(x)],y&&o.disableAnimation,w&&o.truncatedContent,p)},{children:m}))}}))}))};m.displayName="Cell",m.propTypes={cellIndex:r.number,depth:r.number,isVisible:r.bool,isExpandable:r.bool};export{m as default};
|
2
|
+
//# sourceMappingURL=InternalCell.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"InternalCell.js","sources":["../../../../../../../src/components/Table/components/Cell/InternalCell.tsx"],"sourcesContent":["import React, { useMemo, useRef } from 'react';\nimport { Transition } from 'react-transition-group';\nimport PropTypes from 'prop-types';\nimport cx from 'classnames';\nimport { useTableContext } from '../TableContext';\nimport styles from './Cell.module.scss';\nimport { CellOverflowBehavior, InternalCellProps } from './Cell.types';\n\nconst InternalCell = ({\n children,\n className,\n contentClassName,\n cellIndex,\n depth = 0,\n isVisible = true,\n isExpandable = false,\n overflow,\n align,\n ...rest\n}: InternalCellProps) => {\n const isFirstCell = cellIndex === 0;\n const { table, disableAnimations } = useTableContext();\n const isSelectable = !!table && !!table.hasSelectableRows;\n const transitionRef = useRef<HTMLElement | null>(null);\n const contentRef = useRef<HTMLDivElement>(null);\n\n const contentHeight = parseInt(styles.standardCellHeight, 10);\n const scrollHeight = contentRef.current ? contentRef.current.scrollHeight : 0;\n const shouldTruncate = useMemo(() => (\n overflow === CellOverflowBehavior.Truncate && scrollHeight > contentHeight\n ), [contentHeight, overflow, scrollHeight]);\n\n return (\n <td\n className={cx(\n styles.baseCell,\n isFirstCell && styles.firstChildCell, // Conditionally apply padding for the first cell\n className,\n )}\n style={isFirstCell ? { paddingLeft: `${depth * 20}px` } : undefined} // Apply dynamic padding based on depth\n {...rest}\n >\n <Transition in={isVisible} timeout={0} nodeRef={transitionRef}>\n {state => (\n <div\n data-state={state}\n ref={contentRef}\n className={cx(\n styles.cellTransitionContainer,\n styles[`cell-content-transition-${state}`], // Apply transition styles based on state\n styles[`align-${align}`], // Dynamic alignment based on the `align` prop\n disableAnimations && styles.disableAnimation,\n shouldTruncate && styles.truncatedContent,\n contentClassName,\n )}\n >\n {children}\n </div>\n )}\n </Transition>\n </td>\n );\n};\n\nInternalCell.displayName = 'Cell';\nInternalCell.propTypes = {\n cellIndex: PropTypes.number,\n depth: PropTypes.number,\n isVisible: PropTypes.bool,\n isExpandable: PropTypes.bool,\n};\n\nexport default InternalCell;\n"],"names":["InternalCell","_a","children","className","contentClassName","cellIndex","_a$depth","depth","_a$isVisible","isVisible","overflow","align","rest","__rest","isFirstCell","_useTableContext","useTableContext","disableAnimations","transitionRef","useRef","contentRef","contentHeight","parseInt","styles","standardCellHeight","scrollHeight","current","shouldTruncate","useMemo","CellOverflowBehavior","Truncate","_jsx","Object","assign","cx","baseCell","firstChildCell","style","paddingLeft","concat","undefined","Transition","in","timeout","nodeRef","state","ref","cellTransitionContainer","disableAnimation","truncatedContent","displayName","propTypes","PropTypes","number","bool","isExpandable"],"mappings":"qZAQA,IAAMA,EAAe,SAACC,GAAA,IACpBC,EAQKD,EARLC,SACAC,EAOKF,EAPLE,UACAC,EAMKH,EANLG,iBACAC,EAKKJ,EALLI,UAASC,EAKJL,EAJLM,MAAAA,OAAQ,IAAHD,EAAG,EAACA,EAAAE,EAIJP,EAHLQ,UAAAA,OAAY,IAAHD,GAAOA,EAEhBE,EACKT,EADLS,SACAC,EAAKV,EAALU,MACGC,EAViBC,EAAAZ,EAAA,CAAA,WAAA,YAAA,mBAAA,YAAA,QAAA,YAAA,eAAA,WAAA,UAYda,EAA4B,IAAdT,EACpBU,EAAqCC,IAAtBC,EAAiBF,EAAjBE,kBAETC,EAAgBC,EAA2B,MAC3CC,EAAaD,EAAuB,MAEpCE,EAAgBC,SAASC,EAAOC,mBAAoB,IACpDC,EAAeL,EAAWM,QAAUN,EAAWM,QAAQD,aAAe,EACtEE,EAAiBC,GAAQ,WAAA,OAC7BlB,IAAamB,EAAqBC,UAAYL,EAAeJ,CAC9D,GAAE,CAACA,EAAeX,EAAUe,IAE7B,OACEM,EACE,KAAAC,OAAAC,OAAA,CAAA9B,UAAW+B,EACTX,EAAOY,SACPrB,GAAeS,EAAOa,eACtBjC,GAEFkC,MAAOvB,EAAc,CAAEwB,YAAWC,GAAAA,OAAa,GAARhC,EAAU,YAASiC,GACtD5B,EAAI,CAAAV,SAER6B,EAACU,EAAWT,OAAAC,OAAA,CAAAS,GAAIjC,EAAWkC,QAAS,EAAGC,QAAS1B,GAAa,CAAAhB,SAC1D,SAAA2C,GAAK,OACJd,EAAA,MAAAC,OAAAC,OAAA,CAAA,aACcY,EACZC,IAAK1B,EACLjB,UAAW+B,EACTX,EAAOwB,wBACPxB,EAAMgB,2BAAAA,OAA4BM,IAClCtB,EAAMgB,SAAAA,OAAU5B,IAChBM,GAAqBM,EAAOyB,iBAC5BrB,GAAkBJ,EAAO0B,iBACzB7C,cAGDF,IACG,OAKhB,EAEAF,EAAakD,YAAc,OAC3BlD,EAAamD,UAAY,CACvB9C,UAAW+C,EAAUC,OACrB9C,MAAO6C,EAAUC,OACjB5C,UAAW2C,EAAUE,KACrBC,aAAcH,EAAUE"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{defineProperty as e}from"../../../../../_virtual/_rollupPluginBabelHelpers.js";import{__rest as n}from"../../../../../_virtual/_tslib.js";import{jsx as t}from"react/jsx-runtime";import{useRef as r,useMemo as i}from"react";import{Transition as o}from"react-transition-group";import a from"classnames";import s from"../Row/InternalRowBase.js";import{useTableContext as l}from"../TableContext/TableContext.js";import{getAreAncestorsExpanded as d}from"../utils/areAncestorsExpanded.js";import c from"./ExpandedContent.module.scss.js";var m=function(m){var p=m.row,u=n(m,["row"]),f=l(),g=f.disableAnimations,b=f.getParentRow,j=r(null),x=r(null),C=d(p.id,b),h=!!(null==b?void 0:b(p.id)),v=p.getIsExpanded()&&(!h||C),E=p.original.renderExpandedContent&&p.original.renderExpandedContent(p);return i((function(){return j.current?j.current.clientHeight:0}),[E]),t(s,Object.assign({},u,{children:t("td",Object.assign({colSpan:p.getVisibleCells().length,className:a(c.baseStyles)},{children:t(o,Object.assign({in:v,timeout:0,nodeRef:x},{children:function(n){return t("div",Object.assign({"data-state":n,className:a(c.cellTransitionContainer,e({},c.disableAnimation,g),c["cell-content-transition-".concat(n)],v?c.expandedContent:"")},{children:t("div",Object.assign({ref:j},{children:E}))}))}}))}))}))};m.displayName="ExpandedContent";export{m as default};
|
2
|
+
//# sourceMappingURL=ExpandedContent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ExpandedContent.js","sources":["../../../../../../../src/components/Table/components/ExpandedContent/ExpandedContent.tsx"],"sourcesContent":["import React, { useMemo, useRef } from 'react';\nimport { Transition } from 'react-transition-group';\nimport { RowData } from '@tanstack/react-table';\n\nimport cx from 'classnames';\nimport InternalRowBase from '../Row/InternalRowBase';\nimport { useTableContext } from '../TableContext';\nimport { getAreAncestorsExpanded } from '../utils/areAncestorsExpanded';\n\nimport styles from './ExpandedContent.module.scss'; // Updated import to SCSS module\nimport { ExpandedContentProps } from './ExpandedContent.types';\n\nconst ExpandedContent = <T extends RowData>({\n row,\n ...rest\n}: ExpandedContentProps<T>) => {\n const { disableAnimations, getParentRow } = useTableContext();\n const contentRef = useRef<HTMLDivElement>(null);\n const transitionRef = useRef<HTMLElement | null>(null);\n const areAncestorsExpanded = getAreAncestorsExpanded(row.id, getParentRow);\n const isNestedRow = !!getParentRow?.(row.id);\n const isExpanded =\n row.getIsExpanded() && (!isNestedRow || areAncestorsExpanded);\n const content =\n row.original.renderExpandedContent &&\n row.original.renderExpandedContent(row);\n\n const contentHeight = useMemo(\n () => (contentRef.current ? contentRef.current.clientHeight : 0),\n [content],\n );\n\n return (\n <InternalRowBase {...rest}>\n <td colSpan={row.getVisibleCells().length} className={cx(styles.baseStyles)}>\n <Transition in={isExpanded} timeout={0} nodeRef={transitionRef}>\n {state => (\n <div\n data-state={state}\n className={cx(\n styles.cellTransitionContainer,\n { [styles.disableAnimation]: disableAnimations },\n styles[`cell-content-transition-${state}`],\n // Use a global theme className applied at a higher level in the app, or manage theme switch with context or state\n isExpanded ? styles.expandedContent : '',\n )}\n >\n <div ref={contentRef}>{content}</div>\n </div>\n )}\n </Transition>\n </td>\n </InternalRowBase>\n );\n};\n\nExpandedContent.displayName = 'ExpandedContent';\n\nexport default ExpandedContent;\n"],"names":["ExpandedContent","_a","row","rest","__rest","_useTableContext","useTableContext","disableAnimations","getParentRow","contentRef","useRef","transitionRef","areAncestorsExpanded","getAreAncestorsExpanded","id","isNestedRow","isExpanded","getIsExpanded","content","original","renderExpandedContent","useMemo","current","clientHeight","_jsx","InternalRowBase","Object","assign","children","colSpan","getVisibleCells","length","className","cx","styles","baseStyles","Transition","in","timeout","nodeRef","state","cellTransitionContainer","_defineProperty","disableAnimation","concat","expandedContent","ref","displayName"],"mappings":"yhBAYA,IAAMA,EAAkB,SAAoBC,GAAA,IAC1CC,EAEwBD,EAFxBC,IACGC,EAAIC,EAAAH,EAFmC,SAI1CI,EAA4CC,IAApCC,EAAiBF,EAAjBE,kBAAmBC,EAAYH,EAAZG,aACrBC,EAAaC,EAAuB,MACpCC,EAAgBD,EAA2B,MAC3CE,EAAuBC,EAAwBX,EAAIY,GAAIN,GACvDO,KAAgBP,aAAA,EAAAA,EAAeN,EAAIY,KACnCE,EACJd,EAAIe,mBAAqBF,GAAeH,GACpCM,EACJhB,EAAIiB,SAASC,uBACblB,EAAIiB,SAASC,sBAAsBlB,GAOrC,OALsBmB,GACpB,WAAA,OAAOZ,EAAWa,QAAUb,EAAWa,QAAQC,aAAe,CAAC,GAC/D,CAACL,IAIDM,EAACC,EAAeC,OAAAC,OAAA,CAAA,EAAKxB,EACnB,CAAAyB,SAAAJ,EAAA,KAAAE,OAAAC,OAAA,CAAIE,QAAS3B,EAAI4B,kBAAkBC,OAAQC,UAAWC,EAAGC,EAAOC,aAAW,CAAAP,SACzEJ,EAACY,iBAAWC,GAAIrB,EAAYsB,QAAS,EAAGC,QAAS5B,GAC9C,CAAAiB,SAAA,SAAAY,GAAK,OACJhB,EAAA,MAAAE,OAAAC,OAAA,CAAA,aACca,EACZR,UAAWC,EACTC,EAAOO,wBAAuBC,EAC3BR,CAAAA,EAAAA,EAAOS,iBAAmBpC,GAC7B2B,6BAAMU,OAA4BJ,IAElCxB,EAAakB,EAAOW,gBAAkB,KACvC,CAAAjB,SAEDJ,uBAAKsB,IAAKrC,GAAU,CAAAmB,SAAGV,OACnB,UAMlB,EAEAlB,EAAgB+C,YAAc"}
|
package/dist/esm/src/components/Table/components/ExpandedContent/ExpandedContent.module.scss.js
ADDED
@@ -0,0 +1,2 @@
|
|
1
|
+
var e={baseStyles:"baseStyles_c717455862",expandedContent:"expandedContent_2be4e96049"};!function(e){if("undefined"==typeof document)return;const n=document.head||document.getElementsByTagName("head")[0],t="s_id-4db27d6a765d_0_0_82-table-tanstack";if(n.querySelector("#"+t))return;const d=document.createElement("style");d.id=t,n.firstChild?n.insertBefore(d,n.firstChild):n.appendChild(d),d.appendChild(document.createTextNode(e))}(".baseStyles_c717455862 {\n padding: 0;\n overflow: hidden;\n transition: 150ms ease;\n}\n\n.expandedContent_2be4e96049 {\n background-color: #333;\n}\n\n.expandedContent_2be4e96049 {\n background-color: #ccc;\n}");export{e as default};
|
2
|
+
//# sourceMappingURL=ExpandedContent.module.scss.js.map
|
package/dist/esm/src/components/Table/components/ExpandedContent/ExpandedContent.module.scss.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ExpandedContent.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{__rest as r}from"../../../../../../_virtual/_tslib.js";import{jsx as e}from"react/jsx-runtime";import l from"react";import"../../Cell/Cell.js";import t from"../../Cell/HeaderCell/HeaderCell.js";var i=function(i){var a=i.children,n=r(i,["children"]);return e("tr",Object.assign({},n,{children:l.Children.map(a,(function(r,l){return e(t,Object.assign({},r.props,{cellIndex:l}))}))}))};i.displayName="HeaderRow";export{i as default};
|
2
|
+
//# sourceMappingURL=HeaderRow.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"HeaderRow.js","sources":["../../../../../../../../src/components/Table/components/Row/HeaderRow/HeaderRow.tsx"],"sourcesContent":["import React, { PropsWithChildren, ReactElement, ReactNode } from 'react';\n\nimport { HeaderCell } from '../../Cell';\n\nimport { HeaderRowProps } from './HeaderRow.types';\n\nconst HeaderRow = ({\n children,\n ...rest\n}: PropsWithChildren<HeaderRowProps>) => {\n return (\n <tr {...rest}>\n {React.Children.map(children, (child: ReactNode, index: number) => {\n return (\n <HeaderCell {...(child as ReactElement).props} cellIndex={index} />\n );\n })}\n </tr>\n );\n};\n\nHeaderRow.displayName = 'HeaderRow';\n\nexport default HeaderRow;\n"],"names":["HeaderRow","_a","children","rest","__rest","_jsx","Object","assign","React","Children","map","child","index","HeaderCell","props","cellIndex","displayName"],"mappings":"yMAMA,IAAMA,EAAY,SAACC,GAAA,IACjBC,EAEkCD,EAFlCC,SACGC,EAAIC,EAAAH,EAFU,cAIjB,OACEI,EAAQ,KAAAC,OAAAC,OAAA,CAAA,EAAAJ,EACL,CAAAD,SAAAM,EAAMC,SAASC,IAAIR,GAAU,SAACS,EAAkBC,GAC/C,OACEP,EAACQ,EAAUP,OAAAC,OAAA,CAAA,EAAMI,EAAuBG,MAAK,CAAEC,UAAWH,UAKpE,EAEAZ,EAAUgB,YAAc"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{defineProperty as r}from"../../../../../_virtual/_rollupPluginBabelHelpers.js";import{__rest as o}from"../../../../../_virtual/_tslib.js";import{jsx as s}from"react/jsx-runtime";import a from"classnames";import e from"./Row.module.scss.js";import{useRowContext as i}from"./RowContext.js";var l=function(l){var t=l.className,m=l.onClick,c=o(l,["className","onClick"]),n=i().disabled;return s("tr",Object.assign({onClick:m,"aria-disabled":n,tabIndex:m?0:void 0,className:a(r(r({},e.disabledRow,n),e.clickableRow,!!m),t)},c))};export{l as default};
|
2
|
+
//# sourceMappingURL=InternalRowBase.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"InternalRowBase.js","sources":["../../../../../../../src/components/Table/components/Row/InternalRowBase.tsx"],"sourcesContent":["import React from 'react';\nimport cx from 'classnames';\n\nimport styles from './Row.module.scss'; // Ensure this path is correct\nimport { InternalRowBaseProps } from './Row.types';\nimport { useRowContext } from './RowContext';\n\nconst InternalRowBase = ({\n className,\n onClick,\n ...rest\n}: InternalRowBaseProps) => {\n const { disabled } = useRowContext();\n \n // Assume that `theme` class (e.g., `theme-dark`, `theme-light`) is set on a higher-level component, like `<body>` or `<div id=\"root\">`\n return (\n <tr\n onClick={onClick}\n aria-disabled={disabled}\n tabIndex={onClick ? 0 : undefined}\n className={cx(\n {\n [styles.disabledRow]: disabled,\n [styles.clickableRow]: !!onClick,\n },\n className,\n )}\n {...rest}\n />\n );\n};\n\nexport default InternalRowBase;\n"],"names":["InternalRowBase","_a","className","onClick","rest","__rest","disabled","useRowContext","_jsx","tabIndex","undefined","cx","_defineProperty","styles","disabledRow","clickableRow"],"mappings":"uSAOA,IAAMA,EAAkB,SAACC,OACvBC,EACOD,EADPC,UACAC,EAAOF,EAAPE,QACGC,EAAIC,EAAAJ,EAHgB,yBAKfK,EAAaC,IAAbD,SAGR,OACEE,sBACEL,QAASA,EACM,gBAAAG,EACfG,SAAUN,EAAU,OAAIO,EACxBR,UAAWS,EAAEC,EAAAA,EAAA,CAAA,EAERC,EAAOC,YAAcR,GACrBO,EAAOE,eAAiBZ,GAE3BD,IAEEE,GAGV"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{defineProperty as e}from"../../../../../_virtual/_rollupPluginBabelHelpers.js";import{__rest as r}from"../../../../../_virtual/_tslib.js";import{jsxs as t,jsx as o}from"react/jsx-runtime";import a,{useMemo as n,Fragment as l}from"react";import i from"react-keyed-flatten-children";import s from"classnames";import{useTableContext as d}from"../TableContext/TableContext.js";import m from"./InternalRowBase.js";import c from"./Row.module.scss.js";import p from"./RowCellChildren.js";import{useRowContext as f}from"./RowContext.js";import{Polymorph as u}from"../newComponents/Polymorphic/Polymorph.js";function w(e,r){var t=e.type;return a.isValidElement(e)&&"function"==typeof t&&t.displayName===r}var b=function(a){var b=a.children,R=a.className,j=a.row,g=a.virtualRow,h=r(a,["children","className","row","virtualRow"]),x=f().disabled,C=d(),v=C.table,y=C.getParentRow,P=C.shouldAlternateRowColor,N=null==y?void 0:y(j.id),E=null==g?void 0:g.measureRef,I=null==v?void 0:v.getCanSomeRowsExpand(),_=!!N,O=!!N&&N.getIsExpanded()||!_,B=!!g&&g.index%2!=0,S=j.getIsExpanded(),T=j.getIsSelected(),k=i(b),z=k.filter((function(e){return w(e,"Cell")})),A=k.filter((function(e){return!w(e,"Cell")})),H=I&&!_,V=n((function(){return H?"tbody":l}),[H]),Z={className:s(e({},c.expandedContentParent,S)),"data-expanded":S,ref:E};return t(u,Object.assign({as:V},H&&Z,{children:[o(m,Object.assign({className:s(e(e(e({},c.grayZebraRow,B&&P&&!T),c.zebraRow,!g&&P&&!T),c.selectedRow,T&&!x),R),"data-selected":T,"aria-hidden":!O,id:"lg-table-row-".concat(j.id)},h,{children:o(p,Object.assign({row:j},{children:z}))})),A]}))};export{b as default};
|
2
|
+
//# sourceMappingURL=InternalRowWithRT.js.map
|