@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
@@ -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,cACAC,EAMqB3B,EANrB2B,aAAYC,EAMS5B,EALrB6B,iBAAAA,OAAmB,IAAHD,EAAG,GAAEA,EAAAE,EAKA9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,iBAAAA,GACAG,sBAAAA,GACA7I,mBAAAA,IACGG,IAGDlC,IACFkM,GAAa7H,SAAWA,GACxB6H,GAAaY,MAAQ,CAAEtK,aAAAA,IACvB0J,GAAarL,qBAAuB4B,IAGtC,IAAM0G,GAAQ4D,EAAkCb,IAEhD/C,GAAM0B,sBAAwBA,GAC9B1B,GAAMoC,gBAAkBA,GAExB,IAAQJ,GAAShC,GAAMgD,kBAAfhB,KAEF6B,IAD2B7D,GAAM0D,wBACfI,EAAUtG,OAAAC,OAAA,CAChCsG,UAAWtN,EACXsF,KAAMiG,GAAKhD,OACXgF,SAAU,IACPzM,KAUL,OAPAiE,GAAU,WACR,GAAI9D,GAAwBb,EAAmB,CAC7C,IAAMoN,EAAevN,EAAKqH,QAAO,SAAC3C,EAAKC,GAAK,OAAKhC,GAAa6B,GAASE,EAAKC,OAC5E3D,EAAqBuM,EACtB,CACH,GAAG,CAAC5K,GAAc3C,EAAMgB,EAAsBwD,GAAUrE,IAEjD2G,OAAAC,OAAAD,OAAAC,OAAAD,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EACFuC,IAAK,CACRkE,eAxOqB,SAAC9I,GAClB/D,IAEFC,SAAAA,EADwB8D,EAAI8H,YAuO9BxB,sBAAAA,GACAU,gBAAAA,KACInL,GAAuB,CACzBkN,YAAaN,GAAgBO,aAC7BC,UAAWR,GAAgBQ,UAC3BC,cAAeT,GAAgBS,cAC/BC,eAAgBV,GAAgBU,eAChCC,QAASX,GAAgBW,WAE3B3N,kBAAAA,EACAgD,kBAAAA,GACAC,qBAAAA,GACAa,iBAAAA,GACAjB,cAAAA,GACAW,UAAAA,GACAJ,WAAAA,GACAgB,mBAAAA,GACAvC,kBAAAA,GACA2J,aAAAA,IAEJ"}
|
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 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,EAhBrBa,kBAAAA,OAAoB,IAAHD,GAAQA,EACzBE,EAeqBd,EAfrBc,SACAC,EAcqBf,EAdrBe,mBAAkBC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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",baseStyles:"baseStyles"};!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 {\n overflow: auto;\n position: relative;\n}\n\n.baseStyles {\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",stickyLeft:"stickyLeft",stickyRight:"stickyRight",lastStickyLeft:"lastStickyLeft",firstStickyRight:"firstStickyRight",firstChildCell:"firstChildCell",cellTransitionContainer:"cellTransitionContainer",truncatedContent:"truncatedContent",disableAnimation:"disableAnimation",cellContentTransitionEntered:"cellContentTransitionEntered",cellContentTransitionEntering:"cellContentTransitionEntering",cellContentTransitionExiting:"cellContentTransitionExiting",cellContentTransitionExited:"cellContentTransitionExited",cellContentTransitionUnmounted:"cellContentTransitionUnmounted","align-left":"align-left","align-right":"align-right","align-center":"align-center"};!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 {\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:focus-visible {\n box-shadow: inset 0 0 0 1px black;\n}\n.baseCell:last-child {\n padding-right: 32px;\n}\n.baseCell.stickyLeft {\n position: sticky;\n left: 0;\n z-index: 1;\n background-color: var(--surface-primary);\n}\n.baseCell.stickyRight {\n position: sticky;\n right: 0;\n z-index: 1;\n background-color: var(--surface-primary);\n}\n.baseCell.lastStickyLeft {\n box-shadow: inset -10px 0 5px -5px var(--shadow-color);\n}\n.baseCell.firstStickyRight {\n box-shadow: inset 10px 0 5px -5px var(--shadow-color);\n}\n.firstChildCell {\n padding-left: 40px;\n}\n.cellTransitionContainer {\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 {\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n -webkit-box-align: start;\n}\n.disableAnimation {\n transition-duration: 0;\n transition: none;\n}\n.cellContentTransitionEntered {\n opacity: 1;\n min-height: 40px;\n max-height: unset;\n}\n.cellContentTransitionEntering,\n.cellContentTransitionExiting,\n.cellContentTransitionExited,\n.cellContentTransitionUnmounted {\n opacity: 0;\n min-height: 0;\n max-height: 0;\n overflow: hidden;\n}\n.align-left {\n justify-content: left;\n text-align: left;\n}\n.align-right {\n justify-content: right;\n text-align: right;\n}\n.align-center {\n justify-content: center;\n text-align: center;\n}");export{n as default};
|
2
|
+
//# sourceMappingURL=Cell.module.scss.js.map
|
package/dist/mocked_classnames_esm/src/components/Table/components/Cell/Cell.module.scss.js.map
ADDED
@@ -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"}
|
package/dist/mocked_classnames_esm/src/components/Table/components/Cell/HeaderCell/HeaderCell.js
ADDED
@@ -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
|
package/dist/mocked_classnames_esm/src/components/Table/components/Cell/HeaderCell/HeaderCell.js.map
ADDED
@@ -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",headerCell:"headerCell",sortIcon:"sortIcon",stickyLeft:"stickyLeft",stickyRight:"stickyRight",visible:"visible",resizableHeaderCell:"resizableHeaderCell",resizer:"resizer",isResizing:"isResizing",tableSort:"tableSort",tableSortsorted:"tableSortsorted"};!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 {\n height: 40px;\n}\n\n.headerCell {\n position: relative;\n}\n\n.headerCell:hover .sortIcon,\n.headerCell .sortIcon:hover {\n opacity: 1;\n}\n\n.headerCell.stickyLeft {\n position: sticky;\n left: 0;\n z-index: 1;\n background-color: var(--surface-primary);\n}\n\n.headerCell.stickyRight {\n position: sticky;\n right: 0;\n z-index: 1;\n background-color: var(--surface-primary);\n}\n\n.sortIcon {\n opacity: 0;\n transition: opacity 0.3s ease;\n}\n\n.sortIcon.visible {\n opacity: 1;\n}\n\n.resizableHeaderCell {\n position: relative;\n}\n\n.headerCellContent {\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 {\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:hover {\n background-color: var(--divider-secondary);\n}\n\n.isResizing {\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 {\n opacity: 1;\n color: var(--icon-secondary);\n}\n\n.tableSortsorted {\n background-color: var(--surface-primary-hover);\n}\n\n.tableSortsorted .tableSort {\n opacity: 1;\n --_iui-table-cell-icon-fill: var(--icon-primary);\n}");export{e as default};
|
2
|
+
//# sourceMappingURL=HeaderCell.module.scss.js.map
|
@@ -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"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
var e={baseStyles:"baseStyles",expandedContent:"expandedContent"};!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 {\n padding: 0;\n overflow: hidden;\n transition: 150ms ease;\n}\n\n.expandedContent {\n background-color: #333;\n}\n\n.expandedContent {\n background-color: #ccc;\n}");export{e as default};
|
2
|
+
//# sourceMappingURL=ExpandedContent.module.scss.js.map
|
@@ -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
|
package/dist/mocked_classnames_esm/src/components/Table/components/Row/HeaderRow/HeaderRow.js.map
ADDED
@@ -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
|
package/dist/mocked_classnames_esm/src/components/Table/components/Row/InternalRowWithRT.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"InternalRowWithRT.js","sources":["../../../../../../../src/components/Table/components/Row/InternalRowWithRT.tsx"],"sourcesContent":["//@ts-nocheck\nimport React, { Fragment, ReactElement, useMemo } from 'react';\nimport flattenChildren from 'react-keyed-flatten-children';\nimport { VirtualItem } from 'react-virtual';\n\nimport cx from 'classnames';\n\nimport { useTableContext } from '../TableContext';\nimport { LGRowData } from '../useLeafyGreenTable';\nimport InternalRowBase from './InternalRowBase';\nimport styles from './Row.module.scss';\nimport { InternalRowWithRTProps } from './Row.types';\nimport RowCellChildren from './RowCellChildren';\nimport { useRowContext } from './RowContext';\nimport { Polymorph } from '../newComponents/Polymorphic';\nimport { HTMLAttributes } from 'react';\n\n/**\n * Custom type checker based on React component displayName\n */\ntype ComponentWithDisplayName = {\n (props: any): ReactElement | null;\n displayName?: string;\n};\n\nfunction isComponentType(child: any, componentName: string): boolean {\n // Type assertion to treat the type as a ComponentWithDisplayName\n const component = child.type as ComponentWithDisplayName;\n \n return (\n React.isValidElement(child) &&\n typeof component === 'function' && // Ensure it's a function\n component.displayName === componentName // Check the displayName\n );\n}\n\nconst InternalRowWithRT = <T extends LGRowData>({\n children,\n className,\n row,\n virtualRow,\n ...rest\n}: InternalRowWithRTProps<T>) => {\n const { disabled } = useRowContext();\n const { table, getParentRow, shouldAlternateRowColor } = useTableContext();\n const parentRow = getParentRow?.(row.id);\n const rowRef = virtualRow?.measureRef;\n\n const isTableExpandable = table?.getCanSomeRowsExpand();\n const isNested = !!parentRow;\n const isParentExpanded = !!parentRow && parentRow.getIsExpanded();\n const isRowVisible = isParentExpanded || !isNested;\n const isOddVSRow = !!virtualRow && virtualRow.index % 2 !== 0;\n\n const isExpanded = row.getIsExpanded();\n const isSelected = row.getIsSelected();\n\n const flattenedChildren = flattenChildren(children);\n\n const CellChildren = flattenedChildren.filter(child =>\n isComponentType(child, 'Cell'),\n );\n\n const OtherChildren = flattenedChildren.filter(\n child => !isComponentType(child, 'Cell'),\n );\n\n const shouldRenderAsTBody = isTableExpandable && !isNested;\n const containerAs = useMemo(\n () => (shouldRenderAsTBody ? 'tbody' : Fragment),\n [shouldRenderAsTBody],\n );\n\n const tBodyProps: HTMLAttributes<HTMLTableSectionElement> &\n Pick<VirtualItem, 'measureRef'> = {\n className: cx({\n [styles.expandedContentParent]: isExpanded, // Ensure these are the correct class names\n }),\n 'data-expanded': isExpanded,\n ref: rowRef,\n };\n\n return (\n <Polymorph as={containerAs} {...(shouldRenderAsTBody && tBodyProps)}>\n <InternalRowBase\n className={cx(\n {\n [styles.grayZebraRow]: isOddVSRow && shouldAlternateRowColor && !isSelected,\n [styles.zebraRow]: !virtualRow && shouldAlternateRowColor && !isSelected,\n [styles.selectedRow]: isSelected && !disabled,\n },\n className,\n )}\n data-selected={isSelected}\n aria-hidden={!isRowVisible}\n id={`lg-table-row-${row.id}`}\n {...rest}\n >\n <RowCellChildren row={row}>{CellChildren}</RowCellChildren>\n </InternalRowBase>\n {OtherChildren}\n </Polymorph>\n );\n};\n\nexport default InternalRowWithRT;\n"],"names":["isComponentType","child","componentName","component","type","React","isValidElement","displayName","InternalRowWithRT","_a","children","className","row","virtualRow","rest","__rest","disabled","useRowContext","_useTableContext","useTableContext","table","getParentRow","shouldAlternateRowColor","parentRow","id","rowRef","measureRef","isTableExpandable","getCanSomeRowsExpand","isNested","isRowVisible","getIsExpanded","isOddVSRow","index","isExpanded","isSelected","getIsSelected","flattenedChildren","flattenChildren","CellChildren","filter","OtherChildren","shouldRenderAsTBody","containerAs","useMemo","Fragment","tBodyProps","cx","_defineProperty","styles","expandedContentParent","ref","_jsxs","Polymorph","Object","assign","as","_jsx","InternalRowBase","grayZebraRow","zebraRow","selectedRow","concat","RowCellChildren"],"mappings":"8lBAyBA,SAASA,EAAgBC,EAAYC,GAEnC,IAAMC,EAAYF,EAAMG,KAExB,OACEC,EAAMC,eAAeL,IACA,mBAAdE,GACPA,EAAUI,cAAgBL,CAE9B,CAEA,IAAMM,EAAoB,SAAsBC,GAAA,IAC9CC,EAGUD,EAHVC,SACAC,EAEUF,EAFVE,UACAC,EACUH,EADVG,IACAC,EAAUJ,EAAVI,WACGC,EAL2CC,EAAAN,EAAA,CAAA,WAAA,YAAA,MAAA,eAOtCO,EAAaC,IAAbD,SACRE,EAAyDC,IAAjDC,EAAKF,EAALE,MAAOC,EAAYH,EAAZG,aAAcC,EAAuBJ,EAAvBI,wBACvBC,EAAYF,aAAY,EAAZA,EAAeT,EAAIY,IAC/BC,EAASZ,aAAA,EAAAA,EAAYa,WAErBC,EAAoBP,eAAAA,EAAOQ,uBAC3BC,IAAaN,EAEbO,IADqBP,GAAaA,EAAUQ,kBACRF,EACpCG,IAAenB,GAAcA,EAAWoB,MAAQ,GAAM,EAEtDC,EAAatB,EAAImB,gBACjBI,EAAavB,EAAIwB,gBAEjBC,EAAoBC,EAAgB5B,GAEpC6B,EAAeF,EAAkBG,QAAO,SAAAvC,GAAK,OACjDD,EAAgBC,EAAO,WAGnBwC,EAAgBJ,EAAkBG,QACtC,SAAAvC,GAAK,OAAKD,EAAgBC,EAAO,WAG7ByC,EAAsBf,IAAsBE,EAC5Cc,EAAcC,GAClB,WAAA,OAAOF,EAAsB,QAAUG,CAAQ,GAC/C,CAACH,IAGGI,EAC8B,CAClCnC,UAAWoC,EAAEC,EAAA,CAAA,EACVC,EAAOC,sBAAwBhB,IAElC,gBAAiBA,EACjBiB,IAAK1B,GAGP,OACE2B,EAACC,EAASC,OAAAC,OAAA,CAACC,GAAIb,GAAkBD,GAAuBI,aACtDW,EAACC,iBACC/C,UAAWoC,EAAEC,EAAAA,EAAAA,EAAA,CAAA,EAERC,EAAOU,aAAe3B,GAAcV,IAA4Ba,GAChEc,EAAOW,UAAY/C,GAAcS,IAA4Ba,GAC7Dc,EAAOY,YAAc1B,IAAenB,GAEvCL,GAEa,gBAAAwB,iBACDL,EACdN,GAAEsC,gBAAAA,OAAkBlD,EAAIY,KACpBV,EAAI,CAAAJ,SAER+C,EAACM,EAAgBT,OAAAC,OAAA,CAAA3C,IAAKA,GAAG,CAAAF,SAAG6B,QAE7BE,KAGP"}
|
package/dist/mocked_classnames_esm/src/components/Table/components/Row/InternalRowWithoutRT.js
ADDED
@@ -0,0 +1,2 @@
|
|
1
|
+
import{__rest as r}from"../../../../../_virtual/_tslib.js";import{jsx as o}from"react/jsx-runtime";import e from"classnames";import{useTableContext as s}from"../TableContext/TableContext.js";import t from"./InternalRowBase.js";import a from"./Row.module.scss.js";var m=function(m){var l=m.children,i=m.className,n=r(m,["children","className"]),c=s();return o(t,Object.assign({className:e(c.shouldAlternateRowColor&&a.zebraRowLight,i)},n,{children:l}))};export{m as default};
|
2
|
+
//# sourceMappingURL=InternalRowWithoutRT.js.map
|
package/dist/mocked_classnames_esm/src/components/Table/components/Row/InternalRowWithoutRT.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"InternalRowWithoutRT.js","sources":["../../../../../../../src/components/Table/components/Row/InternalRowWithoutRT.tsx"],"sourcesContent":["import React from 'react';\nimport cx from 'classnames';\n// import { useDarkMode } from '@leafygreen-ui/leafygreen-provider';\n// import { consoleOnce, isComponentType } from '@leafygreen-ui/lib';\n\nimport { useTableContext } from '../TableContext';\nimport InternalRowBase from './InternalRowBase';\nimport styles from './Row.module.scss'; // Ensure this is the correct path to your SCSS module\nimport { InternalRowBaseProps } from './Row.types';\n\n/**\n * Renders basic array row data\n */\nconst InternalRowWithoutRT = ({\n children,\n className,\n ...rest\n}: InternalRowBaseProps) => {\n const { shouldAlternateRowColor } = useTableContext();\n // const { theme } = useDarkMode();\n\n // React.Children.forEach(children, child => {\n // if (!isComponentType(child, 'Cell'))\n // consoleOnce.warn(\n // 'LG Row is rendering a custom cell element. Utilize the `Cell` component for standardized styles, correct HTML properties and additional functionalities when using `useLeafyGreenTable`.',\n // );\n // });\n\n // Determine the theme-specific class for zebra styles based on context\n // const zebraClass = theme === 'dark' ? styles.zebraRowDark : styles.zebraRowLight;\n\n return (\n <InternalRowBase\n className={cx(\n shouldAlternateRowColor && styles.zebraRowLight,\n className,\n )}\n {...rest}\n >\n {children}\n </InternalRowBase>\n );\n};\n\nexport default InternalRowWithoutRT;\n"],"names":["InternalRowWithoutRT","_a","children","className","rest","__rest","_useTableContext","useTableContext","_jsx","InternalRowBase","Object","assign","cx","shouldAlternateRowColor","styles","zebraRowLight"],"mappings":"uQAaA,IAAMA,EAAuB,SAACC,OAC5BC,EACSD,EADTC,SACAC,EAASF,EAATE,UACGC,EAAIC,EAAAJ,EAHqB,0BAK5BK,EAAoCC,IAapC,OACEC,EAACC,EAAeC,OAAAC,OAAA,CACdR,UAAWS,EAfgBN,EAAvBO,yBAgByBC,EAAOC,cAClCZ,IAEEC,EAEH,CAAAF,SAAAA,IAGP"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{__rest as r}from"../../../../../_virtual/_tslib.js";import{jsx as o}from"react/jsx-runtime";import t from"prop-types";import i from"./InternalRowWithoutRT.js";import a from"./InternalRowWithRT.js";import{RowContextProvider as s}from"./RowContext.js";var e=function(t){var e=t.row,l=t.virtualRow,n=t.disabled,m=r(t,["row","virtualRow","disabled"]);return o(s,Object.assign({disabled:n},{children:e?o(a,Object.assign({row:e,virtualRow:l},m)):o(i,Object.assign({},m))}))};e.propTypes={virtualRow:t.any,row:t.any,disabled:t.bool},e.displayName="Row";export{e as default};
|
2
|
+
//# sourceMappingURL=Row.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Row.js","sources":["../../../../../../../src/components/Table/components/Row/Row.tsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { LGRowData } from '../useLeafyGreenTable';\n\nimport InternalRowWithoutRT from './InternalRowWithoutRT';\nimport InternalRowWithRT from './InternalRowWithRT';\nimport { RowProps } from './Row.types';\nimport { RowContextProvider } from './RowContext';\n\n/**\n * Renders the provided cells\n */\nconst Row = <T extends LGRowData>({\n row,\n virtualRow,\n disabled,\n ...rest\n}: RowProps<T>) => {\n return (\n <RowContextProvider disabled={disabled}>\n {row ? (\n <InternalRowWithRT row={row} virtualRow={virtualRow} {...rest} />\n ) : (\n <InternalRowWithoutRT {...rest} />\n )}\n </RowContextProvider>\n );\n};\n\nRow.propTypes = {\n virtualRow: PropTypes.any,\n row: PropTypes.any,\n disabled: PropTypes.bool,\n};\n\nRow.displayName = 'Row';\n\nexport default Row;\n"],"names":["Row","_a","row","virtualRow","disabled","rest","__rest","_jsx","RowContextProvider","Object","assign","children","InternalRowWithRT","InternalRowWithoutRT","propTypes","PropTypes","any","bool","displayName"],"mappings":"iQAaA,IAAMA,EAAM,SAAsBC,OAChCC,IAAAA,IACAC,IAAAA,WACAC,IAAAA,SACGC,EAJ6BC,EAAAL,EAAA,CAAA,MAAA,aAAA,aAMhC,OACEM,EAACC,EAAmBC,OAAAC,OAAA,CAAAN,SAAUA,GAAQ,CAAAO,SACnCT,EACCK,EAACK,EAAiBH,OAAAC,OAAA,CAACR,IAAKA,EAAKC,WAAYA,GAAgBE,IAEzDE,EAACM,EAAyBJ,OAAAC,OAAA,GAAAL,MAIlC,EAEAL,EAAIc,UAAY,CACdX,WAAYY,EAAUC,IACtBd,IAAKa,EAAUC,IACfZ,SAAUW,EAAUE,MAGtBjB,EAAIkB,YAAc"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
var e={expandedContentParent:"expandedContentParent",selectedRow:"selectedRow",grayZebraRow:"grayZebraRow",zebraRow:"zebraRow",clickableRow:"clickableRow",disabledRow:"disabledRow"};!function(e){if("undefined"==typeof document)return;const n=document.head||document.getElementsByTagName("head")[0],o="s_id-26e01f936e6f_0_0_82-table-tanstack";if(n.querySelector("#"+o))return;const a=document.createElement("style");a.id=o,n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.appendChild(document.createTextNode(e))}(".expandedContentParent {\n background-color: var(--surface-secondary);\n}\n\n.selectedRow {\n background-color: var(--surface-selected);\n}\n\n.grayZebraRow {\n background-color: var(--surface-secondary);\n}\n\n.zebraRow:nth-of-type(even) {\n background-color: var(--surface-selected);\n}\n\n.clickableRow {\n border-radius: 6px;\n cursor: pointer;\n}\n\n.clickableRow:hover:not(:focus) {\n outline: none;\n box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);\n}\n\n.clickableRow:focus, .clickableRow:focus-visible {\n outline: none;\n box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);\n}\n\n.disabledRow {\n pointer-events: none;\n background-color: var(--surface-secondary);\n color: var(--text-secondary);\n}");export{e as default};
|
2
|
+
//# sourceMappingURL=Row.module.scss.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Row.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{__rest as e}from"../../../../../_virtual/_tslib.js";import{jsx as r,Fragment as t}from"react/jsx-runtime";import i from"react";import l from"../Cell/InternalCell.js";import{useTableContext as n}from"../TableContext/TableContext.js";import{getAreAncestorsExpanded as o}from"../utils/areAncestorsExpanded.js";import{useRowContext as d}from"./RowContext.js";var a=function(a){var s=a.row,m=a.children,p=n().getParentRow,c=d().disabled,u=null==p?void 0:p(s.id),f=!!u,b=!!u&&u.getIsExpanded(),h=o(s.id,p)&&b||!f;return r(t,{children:i.Children.map(m,(function(t,i){var n=null==t?void 0:t.props,o=n.children,d=e(n,["children"]),a=s.getVisibleCells()[i];return r(l,Object.assign({},d,{cellIndex:i,isVisible:h,disabled:c,depth:s.depth,align:a.column.columnDef.align},{children:o}))}))})};export{a as default};
|
2
|
+
//# sourceMappingURL=RowCellChildren.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"RowCellChildren.js","sources":["../../../../../../../src/components/Table/components/Row/RowCellChildren.tsx"],"sourcesContent":["//@ts-nocheck\nimport React, { ReactElement, ReactNode } from 'react';\n\nimport InternalCell from '../Cell/InternalCell';\nimport { useTableContext } from '../TableContext';\nimport ToggleExpandedIcon from '../ToggleExpandedIcon';\nimport { LGRowData } from '../useLeafyGreenTable';\nimport { getAreAncestorsExpanded } from '../utils/areAncestorsExpanded';\n\nimport { useRowContext } from './RowContext';\nimport { RowProps } from '.';\n\ntype RowCellChildrenProps<T extends LGRowData> = Required<\n Pick<RowProps<T>, 'row'>\n> &\n Pick<RowProps<T>, 'disabled' | 'children'>;\n\n/**\n * Renders row cells provided by `useReactTable`\n */\nconst RowCellChildren = <T extends LGRowData>({\n row,\n children: CellChildren,\n}: RowCellChildrenProps<T>) => {\n const { getParentRow } = useTableContext();\n const { disabled } = useRowContext();\n const parentRow = getParentRow?.(row.id);\n const isNested = !!parentRow;\n const isParentExpanded = !!parentRow && parentRow.getIsExpanded();\n const areAncestorsExpanded = getAreAncestorsExpanded(row.id, getParentRow);\n const isRowVisible = (areAncestorsExpanded && isParentExpanded) || !isNested;\n\n return (\n <>\n {React.Children.map(\n CellChildren,\n (child: ReactNode, colIndex: number) => {\n const { children, ...props } = (child as ReactElement)?.props;\n const cell = row.getVisibleCells()[colIndex];\n\n return (\n <InternalCell\n {...props}\n cellIndex={colIndex}\n isVisible={isRowVisible}\n disabled={disabled}\n depth={row.depth}\n align={cell.column.columnDef.align}\n >\n {children}\n </InternalCell>\n );\n }\n )}\n </>\n );\n};\n\nexport default RowCellChildren;\n"],"names":["RowCellChildren","_ref","row","CellChildren","children","getParentRow","useTableContext","disabled","useRowContext","parentRow","id","isNested","isParentExpanded","getIsExpanded","isRowVisible","getAreAncestorsExpanded","_jsx","_Fragment","React","Children","map","child","colIndex","_a","props","__rest","cell","getVisibleCells","InternalCell","Object","assign","cellIndex","isVisible","depth","align","column","columnDef"],"mappings":"0WAoBA,IAAMA,EAAkB,SAAHC,GAGS,IAF5BC,EAAGD,EAAHC,IACUC,EAAYF,EAAtBG,SAEQC,EAAiBC,IAAjBD,aACAE,EAAaC,IAAbD,SACFE,EAAYJ,aAAY,EAAZA,EAAeH,EAAIQ,IAC/BC,IAAaF,EACbG,IAAqBH,GAAaA,EAAUI,gBAE5CC,EADuBC,EAAwBb,EAAIQ,GAAIL,IACfO,IAAsBD,EAEpE,OACEK,EAAAC,EAAA,CAAAb,SACGc,EAAMC,SAASC,IACdjB,GACA,SAACkB,EAAkBC,GACX,IAAAC,EAA0BF,aAAK,EAALA,EAAwBG,MAAhDpB,EAAqDmB,EAArDnB,SAAaoB,EAAfC,EAAAF,EAAA,CAAA,aACAG,EAAOxB,EAAIyB,kBAAkBL,GAEnC,OACEN,EAACY,EACKC,OAAAC,OAAA,CAAA,EAAAN,GACJO,UAAWT,EACXU,UAAWlB,EACXP,SAAUA,EACV0B,MAAO/B,EAAI+B,MACXC,MAAOR,EAAKS,OAAOC,UAAUF,iBAE5B9B,SAOf"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{createContext as e,useContext as i}from"react";var t=e({}),n=function(){return i(t)},o=function(e){return r(t.Provider,Object.assign({value:{disabled:e.disabled}},{children:e.children}))};export{o as RowContextProvider,n as useRowContext};
|
2
|
+
//# sourceMappingURL=RowContext.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"RowContext.js","sources":["../../../../../../../src/components/Table/components/Row/RowContext.tsx"],"sourcesContent":["import React, { createContext, PropsWithChildren, useContext } from 'react';\n\ntype RowContextProps = PropsWithChildren<{\n disabled?: boolean;\n}>;\n\nconst RowContext = createContext<RowContextProps>({});\n\nexport const useRowContext = () => useContext(RowContext);\n\nexport const RowContextProvider = ({ children, disabled }: RowContextProps) => {\n return (\n <RowContext.Provider\n value={{\n disabled,\n }}\n >\n {children}\n </RowContext.Provider>\n );\n};\n"],"names":["RowContext","createContext","useRowContext","useContext","RowContextProvider","_ref","_jsx","Provider","Object","assign","value","disabled","children"],"mappings":"8FAMA,IAAMA,EAAaC,EAA+B,CAAA,GAErCC,EAAgB,WAAH,OAASC,EAAWH,EAAW,EAE5CI,EAAqB,SAAHC,GAC7B,OACEC,EAACN,EAAWO,SAAQC,OAAAC,OAAA,CAClBC,MAAO,CACLC,SAJ+CN,EAARM,WAOxC,CAAAC,SAPsCP,EAARO,WAUrC"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{__rest as t}from"../../../../../_virtual/_tslib.js";import{jsxs as e,jsx as i}from"react/jsx-runtime";import{useMemo as o,Fragment as r}from"react";import{useTableContext as n}from"../TableContext/TableContext.js";import{Polymorph as l}from"../newComponents/Polymorphic/Polymorph.js";var a=function(a){var d,s,c=a.children,h=t(a,["children"]),m=0,u=0,p=n().table,v=null==p?void 0:p.getCanSomeRowsExpand(),b=o((function(){return v?r:"tbody"}),[v]);if(p&&p.virtualRows){var f=p.virtualRows;m=f.length>0&&(null===(d=null==f?void 0:f[0])||void 0===d?void 0:d.start)||0,u=f.length>0?p.totalSize-((null===(s=null==f?void 0:f[f.length-1])||void 0===s?void 0:s.end)||0):0}return e(l,Object.assign({as:b},h,{children:[m>0&&i("tr",Object.assign({"aria-hidden":!0},{children:i("td",{style:{height:"".concat(m,"px")}})})),c,u>0&&i("tr",Object.assign({"aria-hidden":!0},{children:i("td",{style:{height:"".concat(u,"px")}})}))]}))};a.displayName="TableBody";export{a as default};
|
2
|
+
//# sourceMappingURL=TableBody.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TableBody.js","sources":["../../../../../../../src/components/Table/components/TableBody/TableBody.tsx"],"sourcesContent":["import React, { Fragment, useMemo } from 'react';\nimport { useTableContext } from '../TableContext';\nimport { TableBodyProps } from './TableBody.types';\nimport { Polymorph } from '../newComponents/Polymorphic';\n\nconst TableBody = ({ children, ...rest }: TableBodyProps) => {\n let paddingTop = 0;\n let paddingBottom = 0;\n\n const { table } = useTableContext();\n const areSomeRowsExpandable = table?.getCanSomeRowsExpand();\n\n const bodyAs = useMemo(\n () => (areSomeRowsExpandable ? Fragment : 'tbody'),\n [areSomeRowsExpandable],\n );\n\n if (table && table.virtualRows) {\n const { virtualRows, totalSize } = table;\n paddingTop = virtualRows.length > 0 ? virtualRows?.[0]?.start || 0 : 0;\n paddingBottom =\n virtualRows.length > 0\n ? totalSize - (virtualRows?.[virtualRows.length - 1]?.end || 0)\n : 0;\n }\n\n return (\n <Polymorph as={bodyAs} {...rest}>\n {/* As the user scrolls down, the paddingTop grows bigger, creating the effect of virtual scrolling */}\n {paddingTop > 0 && (\n <tr aria-hidden>\n <td style={{ height: `${paddingTop}px` }} />\n </tr>\n )}\n {children}\n {/* As the user scrolls down, the paddingBottom gets smaller, creating the effect of virtual scrolling */}\n {paddingBottom > 0 && (\n <tr aria-hidden>\n <td style={{ height: `${paddingBottom}px` }} />\n </tr>\n )}\n </Polymorph>\n );\n};\n\nTableBody.displayName = 'TableBody';\n\nexport default TableBody;\n"],"names":["TableBody","_a","children","rest","__rest","paddingTop","paddingBottom","table","useTableContext","areSomeRowsExpandable","getCanSomeRowsExpand","bodyAs","useMemo","Fragment","virtualRows","length","_b","start","totalSize","_c","end","_jsxs","Polymorph","Object","assign","as","_jsx","style","height","concat","displayName"],"mappings":"mSAKA,IAAMA,EAAY,SAACC,WAAEC,EAAmCD,EAAnCC,SAAaC,EAAIC,EAAAH,EAAnB,cACbI,EAAa,EACbC,EAAgB,EAEZC,EAAUC,IAAVD,MACFE,EAAwBF,eAAAA,EAAOG,uBAE/BC,EAASC,GACb,WAAA,OAAOH,EAAwBI,EAAW,OAAO,GACjD,CAACJ,IAGH,GAAIF,GAASA,EAAMO,YAAa,CAC9B,IAAQA,EAA2BP,EAA3BO,YACRT,EAAaS,EAAYC,OAAS,IAAsB,QAAlBC,EAAAF,aAAW,EAAXA,EAAc,UAAI,IAAAE,OAAA,EAAAA,EAAAC,QAAa,EACrEX,EACEQ,EAAYC,OAAS,EAHYR,EAAdW,YAIqC,QAAvCC,EAAAL,aAAA,EAAAA,EAAcA,EAAYC,OAAS,UAAI,IAAAI,OAAA,EAAAA,EAAAC,MAAO,GAC3D,CACP,CAED,OACEC,EAACC,EAAUC,OAAAC,OAAA,CAAAC,GAAId,GAAYR,EAAI,CAAAD,SAAA,CAE5BG,EAAa,GACZqB,EACE,KAAAH,OAAAC,OAAA,CAAA,eAAA,GAAA,CAAAtB,SAAAwB,EAAA,KAAA,CAAIC,MAAO,CAAEC,OAAM,GAAAC,OAAKxB,EAAU,YAGrCH,EAEAI,EAAgB,GACfoB,EAAA,KAAAH,OAAAC,OAAA,CAAA,eAAA,GAAA,CAAAtB,SACEwB,EAAI,KAAA,CAAAC,MAAO,CAAEC,OAAM,GAAAC,OAAKvB,EAAa,eAK/C,EAEAN,EAAU8B,YAAc"}
|
package/dist/mocked_classnames_esm/src/components/Table/components/TableContext/TableContext.js
ADDED
@@ -0,0 +1,2 @@
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{useContext as r,createContext as t}from"react";import e from"../utils/getParentRowId.js";var n=t({}),i=function(){return r(n)},l=function(r){var t=r.table,i=function(o){var r;return o?null===(r=null==t?void 0:t.getRowModel().rowsById)||void 0===r?void 0:r[o]:void 0};return o(n.Provider,Object.assign({value:{table:t,getRowById:i,getParentRow:function(o){return i(e(o))},shouldAlternateRowColor:r.shouldAlternateRowColor,disableAnimations:r.disableAnimations}},{children:r.children}))};export{n as TableContext,l as default,i as useTableContext};
|
2
|
+
//# sourceMappingURL=TableContext.js.map
|
package/dist/mocked_classnames_esm/src/components/Table/components/TableContext/TableContext.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TableContext.js","sources":["../../../../../../../src/components/Table/components/TableContext/TableContext.tsx"],"sourcesContent":["import React, { createContext, PropsWithChildren, useContext } from 'react';\n\n// import LeafyGreenProvider from '@leafygreen-ui/leafygreen-provider';\n\nimport { LGRowData } from '../useLeafyGreenTable';\nimport getParentRowId from '../utils/getParentRowId';\n\nimport { type TableContextValues } from './TableContext.types';\n\nexport const TableContext = createContext<\n Partial<TableContextValues<LGRowData>>\n>({});\n\nexport const useTableContext = <T extends LGRowData>() =>\n useContext<TableContextValues<T>>(\n TableContext as React.Context<TableContextValues<T>>,\n );\n\nconst TableContextProvider = <T extends LGRowData>({\n children,\n darkMode,\n table,\n shouldAlternateRowColor,\n disableAnimations,\n}: PropsWithChildren<Partial<TableContextValues<T>>>) => {\n const getRowById = (id?: string) =>\n id ? table?.getRowModel().rowsById?.[id] : undefined;\n\n const getParentRow = (childId?: string) =>\n getRowById(getParentRowId(childId));\n\n /** The appropriately typed context provider */\n const TableProvider = (TableContext as React.Context<TableContextValues<T>>)\n .Provider;\n\n return (\n // <LeafyGreenProvider darkMode={darkMode}>\n <TableProvider\n value={{\n table,\n getRowById,\n getParentRow,\n shouldAlternateRowColor,\n disableAnimations,\n }}\n >\n {children}\n </TableProvider>\n // </LeafyGreenProvider>\n );\n};\n\nexport default TableContextProvider;\n"],"names":["TableContext","createContext","useTableContext","useContext","TableContextProvider","_ref","table","getRowById","id","_a","getRowModel","rowsById","undefined","_jsx","Provider","Object","assign","value","getParentRow","childId","getParentRowId","shouldAlternateRowColor","disableAnimations","children"],"mappings":"4IASaA,EAAeC,EAE1B,IAEWC,EAAkB,WAAH,OAC1BC,EACEH,EACD,EAEGI,EAAuB,SAAHC,GAM8B,IAHtDC,EAAKD,EAALC,MAIMC,EAAa,SAACC,GAClB,IAAAC,EAAA,OAAAD,EAAqC,UAAhCF,aAAK,EAALA,EAAOI,cAAcC,gBAAW,IAAAF,OAAA,EAAAA,EAAAD,QAAMI,GAS7C,OAEIC,EALmBb,EACpBc,SAKGC,OAAAC,OAAA,CAAAC,MAAO,CACLX,MAAAA,EACAC,WAAAA,EACAW,aAba,SAACC,GAAgB,OACpCZ,EAAWa,EAAeD,GAAS,EAa7BE,wBApBehB,EAAvBgB,wBAqBQC,kBApBSjB,EAAjBiB,oBAqBO,CAAAC,SAzBClB,EAARkB,WA+BF"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{defineProperty as e}from"../../../../../_virtual/_rollupPluginBabelHelpers.js";import{__rest as s}from"../../../../../_virtual/_tslib.js";import{jsx as r}from"react/jsx-runtime";import a from"classnames";import i from"./TableHead.module.scss.js";var t=function(t){var l=t.children,m=t.isSticky,o=t.className,c=s(t,["children","isSticky","className"]);return r("thead",Object.assign({className:a(e({},i.stickyStyles,m),i.themeLight,o)},c,{children:l}))};t.displayName="TableHead";export{t as default};
|
2
|
+
//# sourceMappingURL=TableHead.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TableHead.js","sources":["../../../../../../../src/components/Table/components/TableHead/TableHead.tsx"],"sourcesContent":["import React, { PropsWithChildren } from 'react';\nimport cx from 'classnames';\n// import { useDarkMode } from '@leafygreen-ui/leafygreen-provider';\n\nimport styles from './TableHead.module.scss'; // Import SCSS styles\nimport { TableHeadProps } from './TableHead.types';\n\nconst TableHead = ({\n children,\n isSticky,\n className,\n ...rest\n}: PropsWithChildren<TableHeadProps>) => {\n // const { theme } = useDarkMode();\n \n return (\n <thead\n className={cx(\n {\n [styles.stickyStyles]: isSticky, // Use sticky class from SCSS module\n },\n styles.themeLight, // Conditional theme styles\n className,\n )}\n {...rest}\n >\n {children}\n </thead>\n );\n};\n\nTableHead.displayName = 'TableHead';\n\nexport default TableHead;\n"],"names":["TableHead","_a","children","isSticky","className","rest","__rest","_jsx","Object","assign","cx","_defineProperty","styles","stickyStyles","themeLight","displayName"],"mappings":"6PAOA,IAAMA,EAAY,SAACC,OACjBC,IAAAA,SACAC,IAAAA,SACAC,IAAAA,UACGC,EAJcC,EAAAL,EAAA,CAAA,WAAA,WAAA,cAQjB,OACEM,EAAA,QAAAC,OAAAC,OAAA,CACEL,UAAWM,EAAEC,EAERC,CAAAA,EAAAA,EAAOC,aAAeV,GAEzBS,EAAOE,WACPV,IAEEC,YAEHH,IAGP,EAEAF,EAAUe,YAAc"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
var n={stickyStyles:"stickyStyles"};!function(n){if("undefined"==typeof document)return;const e=document.head||document.getElementsByTagName("head")[0],t="s_id-68793f406e7e_0_0_82-table-tanstack";if(e.querySelector("#"+t))return;const i=document.createElement("style");i.id=t,e.firstChild?e.insertBefore(i,e.firstChild):e.appendChild(i),i.appendChild(document.createTextNode(n))}(".stickyStyles {\n position: sticky;\n top: 0;\n z-index: 1;\n}\n\nthead {\n position: sticky;\n min-inline-size: 100%;\n flex-shrink: 0;\n font-weight: 900;\n font-size: 14px;\n inset-block-start: 0;\n z-index: 2;\n user-select: none;\n background-color: var(--surface-primary);\n min-inline-size: 100%;\n flex-shrink: 0;\n font-weight: 900;\n font-size: 14px;\n}\n\nthead tr {\n transition: background-color 0.3s ease-out;\n}");export{n as default};
|
2
|
+
//# sourceMappingURL=TableHead.module.scss.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TableHead.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{slicedToArray as e,typeof as n,defineProperty as o}from"../../../../../_virtual/_rollupPluginBabelHelpers.js";import{jsxs as t,jsx as r}from"react/jsx-runtime";import{useState as i,useEffect as a}from"react";import c from"../../../TextField/TextField.js";import l from"../../../Dropdown/Dropdown.js";import s from"lodash";import u from"../../../Flex/Flex.js";import m from"../../../IconButton/IconButton.js";import d from"./TableHeader.module.scss.js";import f from"../../../Search/Search.js";import p from"../../../Icon/Icons/components/Download.js";import v from"../../../Icon/Icons/components/Filter.js";import j from"../../../Icon/Icons/components/Close.js";var b=function(b){var h=b.data,g=b.onFilteredDataChange,y=b.globalSearch,C=void 0!==y&&y,L=b.dropdownFilters,O=void 0===L?[]:L,w=b.globalFilterColumns,k=void 0===w?[]:w,E=b.headerButtons,S=void 0===E?[]:E,F=b.isDownloadable,x=void 0===F||F,I=b.isFilterableable,N=void 0===I||I,T=i(!1),A=e(T,2),B=A[0],z=A[1],D=i(""),R=e(D,2),M=R[0],H=R[1],P=i(""),_=e(P,2),U=_[0],W=_[1],Y=i(null),q=e(Y,2),V=q[0],G=i(null),J=(e(G,2),i({})),K=e(J,2),Q=K[0],X=K[1],Z=i(h),$=e(Z,2),ee=$[0],ne=$[1];a((function(){var o=h;if(C&&M&&k){var t=M.toLowerCase();o=o.filter((function(e){return k.some((function(n){return(e[n]+"").toLowerCase().includes(t)}))}))}if(U){var r=U.toLowerCase();o=o.filter((function(e){return Object.values(e).some((function(e){return"object"===n(e)?Object.values(e).some((function(e){return(e+"").toLowerCase().includes(r)})):(e+"").toLowerCase().includes(r)}))}))}Object.entries(Q).forEach((function(t){var r=e(t,2),i=r[0],a=r[1];a&&(o=o.filter((function(e){var o=e[i];return"object"===n(o)?o.value===a.value:o===a.value})))})),s.isEqual(o,ee)||(g(o),ne(o))}),[h,M,U,V,Q,g,k]);return t(u,Object.assign({justify:S.length>0?u.justify.SPACE_BETWEEN:u.justify.END,className:d.tableHeader,wrap:!1},{children:[r(u,Object.assign({gap:u.gaps.SMALL},{children:S&&S.map((function(e,n){return e}))})),t(u,Object.assign({gap:u.gaps.SMALL},{children:[O.map((function(e){var t=new Set(h.map((function(o){var t=o[e.columnName];return"object"===n(t)?t.value:t}))),i=Array.from(t).map((function(e){return{label:"string"==typeof e?e:e+"",value:e}}));return r("div",Object.assign({style:{minWidth:"150px"}},{children:r(l,{options:i,size:l.sizes.SMALL,onOptionSelect:function(n){return X((function(t){return Object.assign(Object.assign({},t),o({},e.columnName,n))}))},placeholder:e.placeholder?e.placeholder:e.columnName,onClear:function(){return X((function(n){return Object.assign(Object.assign({},n),o({},e.columnName,null))}))}},e.columnName)}))})),C&&r(f,{placeholder:"Search...",value:M,onChange:H,size:f.sizes.SMALL}),x&&r(m,{icon:p,style:{color:"grey"},kind:"tertiary",size:"small",ariaLabel:"Export as CSV",active:!0,onClick:function(){var o=function(o){var t=[],r=Object.keys(o[0]);return t.push(r.join(",")),o.forEach((function(o){var i=r.map((function(t){var r=o[t];"object"===n(r)&&null!==r&&(r=Object.entries(r).map((function(n){var o=e(n,2),t=o[1];return"".concat(o[0],": ").concat(t)})).join("; "));var i="".concat(r).replace(/"/g,'""');return'"'.concat(i,'"')}));t.push(i.join(","))})),t.join("\n")}(h);!function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"table-data.csv",o=new Blob([e],{type:"text/csv;charset=utf-8;"}),t=document.createElement("a");t.href=URL.createObjectURL(o),t.download=n,t.style.visibility="hidden",document.body.appendChild(t),t.click(),document.body.removeChild(t)}(o)}}),N&&t("div",Object.assign({className:d.filterButtonContainer},{children:[r(m,o(o(o(o(o({icon:v,kind:m.kinds.TERTIARY,style:{color:"grey"}},"kind","tertiary"),"size","small"),"ariaLabel","Filter"),"active",!0),"onClick",(function(){z((function(e){return!e}))}))),B&&t("div",Object.assign({className:d.filterBox},{children:[r(c,{placeholder:"Type to filter...",value:U,onChange:W}),r(m,o(o(o(o(o({icon:j,kind:m.kinds.TERTIARY,style:{color:"grey"}},"kind","tertiary"),"size","small"),"ariaLabel","Close Filter"),"active",!0),"onClick",(function(){return z(!1)})))]}))]}))]}))]}))};export{b as default};
|
2
|
+
//# sourceMappingURL=TableHeader.js.map
|
package/dist/mocked_classnames_esm/src/components/Table/components/TableHeader/TableHeader.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TableHeader.js","sources":["../../../../../../../src/components/Table/components/TableHeader/TableHeader.tsx"],"sourcesContent":["// TableHeader.tsx\n// @ts-nocheck\nimport React, { useState, useEffect, useMemo } from \"react\";\nimport TextField from \"../../../TextField/TextField\";\nimport Dropdown from \"../../../Dropdown/Dropdown\";\nimport _ from \"lodash\";\nimport Flex from \"../../../Flex/Flex\";\nimport IconButton from \"../../../IconButton/IconButton\";\nimport { Close, Download, Filter } from \"../../../Icon/Icons\";\nimport styles from \"./TableHeader.module.scss\";\nimport Search from \"../../../Search/Search\";\n\ninterface AssigneeOption {\n value: string;\n label: string;\n leftAvatar: string;\n}\n\ninterface DropdownFilterOption {\n columnName: string;\n placeholder: string;\n}\n\ninterface TableHeaderProps {\n data: {}[];\n onFilteredDataChange: (filteredData: any[]) => void;\n globalSearch: boolean;\n headerButtons?: React.ReactNode[];\n isDownloadable?: boolean;\n isFilterableable?: boolean;\n dropdownFilters?: DropdownFilterOption[];\n globalFilterColumns?: string[];\n}\n\nconst TableHeader: React.FC<TableHeaderProps> = ({\n data,\n onFilteredDataChange,\n globalSearch = false,\n dropdownFilter = false,\n dropdownFilters = [],\n globalFilterColumns = [],\n headerButtons = [],\n isDownloadable = true,\n isFilterableable = true,\n}) => {\n const [isFilterInputVisible, setIsFilterInputVisible] = useState(false);\n const [globalFilter, setGlobalFilter] = useState(\"\");\n const [inputFilter, setInputFilter] = useState(\"\");\n const [statusFilter, setStatusFilter] = useState<string | null>(null);\n const [selectedAssignee, setSelectedAssignee] =\n useState<AssigneeOption | null>(null);\n const [selectedDropdownFilters, setSelectedDropdownFilters] = useState<{\n [columnName: string]: AssigneeOption | null;\n }>({});\n const [lastFiltered, setLastFiltered] = useState(data);\n\n const handleFilterIconClick = () => {\n setIsFilterInputVisible((prev) => !prev);\n };\n\n const arrayToCSV = (data) => {\n const csvRows = [];\n const headers = Object.keys(data[0]);\n csvRows.push(headers.join(\",\"));\n\n data.forEach((row) => {\n const values = headers.map((header) => {\n let cell = row[header];\n if (typeof cell === \"object\" && cell !== null) {\n cell = Object.entries(cell)\n .map(([key, value]) => `${key}: ${value}`)\n .join(\"; \");\n }\n const escaped = `${cell}`.replace(/\"/g, '\"\"');\n return `\"${escaped}\"`;\n });\n csvRows.push(values.join(\",\"));\n });\n\n return csvRows.join(\"\\n\");\n };\n\n const downloadCSV = (csvString, filename = \"table-data.csv\") => {\n const blob = new Blob([csvString], { type: \"text/csv;charset=utf-8;\" });\n const link = document.createElement(\"a\");\n link.href = URL.createObjectURL(blob);\n link.download = filename;\n link.style.visibility = \"hidden\";\n document.body.appendChild(link);\n link.click();\n document.body.removeChild(link);\n };\n\n const handleDownloadClick = () => {\n const csvString = arrayToCSV(data);\n downloadCSV(csvString);\n };\n\n useEffect(() => {\n let filtered = data;\n\n // Global search\n if (globalSearch && globalFilter && globalFilterColumns) {\n const searchLower = globalFilter.toLowerCase();\n filtered = filtered.filter((item) =>\n globalFilterColumns.some((column) =>\n String(item[column]).toLowerCase().includes(searchLower)\n )\n );\n }\n\n // Input filter\n if (inputFilter) {\n const lowerCaseFilter = inputFilter.toLowerCase();\n filtered = filtered.filter((item) =>\n Object.values(item).some((value) =>\n typeof value === \"object\"\n ? Object.values(value).some((innerValue) =>\n String(innerValue).toLowerCase().includes(lowerCaseFilter)\n )\n : String(value).toLowerCase().includes(lowerCaseFilter)\n )\n );\n }\n\n // Dropdown filters\n Object.entries(selectedDropdownFilters).forEach(\n ([columnName, selectedOption]) => {\n if (selectedOption) {\n filtered = filtered.filter((item) => {\n const itemValue = item[columnName];\n return typeof itemValue === \"object\"\n ? itemValue.value === selectedOption.value\n : itemValue === selectedOption.value;\n });\n }\n }\n );\n\n if (!_.isEqual(filtered, lastFiltered)) {\n onFilteredDataChange(filtered);\n setLastFiltered(filtered);\n }\n }, [\n data,\n globalFilter,\n inputFilter,\n statusFilter,\n selectedDropdownFilters,\n onFilteredDataChange,\n globalFilterColumns,\n ]);\n\n const renderDropdownFilters = () => {\n return dropdownFilters.map((filter) => {\n const columnValues = new Set(\n data.map((item) => {\n const itemValue = item[filter.columnName];\n return typeof itemValue === \"object\" ? itemValue.value : itemValue;\n })\n );\n\n const options = Array.from(columnValues).map((value) => ({\n label: typeof value === \"string\" ? value : String(value),\n value,\n }));\n\n return (\n <div style={{ minWidth: \"150px\" }}>\n <Dropdown\n key={filter.columnName}\n options={options}\n size={Dropdown.sizes.SMALL}\n onOptionSelect={(selectedOption) =>\n setSelectedDropdownFilters((prev) => ({\n ...prev,\n [filter.columnName]: selectedOption,\n }))\n }\n placeholder={\n filter.placeholder ? filter.placeholder : filter.columnName\n }\n onClear={() =>\n setSelectedDropdownFilters((prev) => ({\n ...prev,\n [filter.columnName]: null,\n }))\n }\n />\n </div>\n );\n });\n };\n\n return (\n <Flex\n justify={\n headerButtons.length > 0 ? Flex.justify.SPACE_BETWEEN : Flex.justify.END\n }\n className={styles.tableHeader}\n wrap={false}\n >\n <Flex gap={Flex.gaps.SMALL}>\n {headerButtons && headerButtons.map((button, index) => button)}\n </Flex>\n <Flex gap={Flex.gaps.SMALL}>\n {renderDropdownFilters()}\n {globalSearch && (\n <Search\n placeholder=\"Search...\"\n value={globalFilter}\n onChange={setGlobalFilter}\n size={Search.sizes.SMALL}\n />\n )}\n {isDownloadable && (\n <IconButton\n icon={Download}\n style={{ color: \"grey\" }}\n kind=\"tertiary\"\n size=\"small\"\n ariaLabel=\"Export as CSV\"\n active\n onClick={handleDownloadClick}\n />\n )}\n {isFilterableable && (\n <div className={styles.filterButtonContainer}>\n <IconButton\n icon={Filter}\n kind={IconButton.kinds.TERTIARY}\n style={{ color: \"grey\" }}\n kind=\"tertiary\"\n size=\"small\"\n ariaLabel=\"Filter\"\n active\n onClick={handleFilterIconClick}\n />\n {isFilterInputVisible && (\n <div className={styles.filterBox}>\n <TextField\n placeholder=\"Type to filter...\"\n value={inputFilter}\n onChange={setInputFilter}\n />\n <IconButton\n icon={Close}\n kind={IconButton.kinds.TERTIARY}\n style={{ color: \"grey\" }}\n kind=\"tertiary\"\n size=\"small\"\n ariaLabel=\"Close Filter\"\n active\n onClick={() => setIsFilterInputVisible(false)}\n />\n </div>\n )}\n </div>\n )}\n </Flex>\n </Flex>\n );\n};\n\nexport default TableHeader;\n"],"names":["TableHeader","_ref","data","onFilteredDataChange","_ref$globalSearch","globalSearch","_ref$dropdownFilters","dropdownFilters","_ref$globalFilterColu","globalFilterColumns","_ref$headerButtons","headerButtons","_ref$isDownloadable","isDownloadable","_ref$isFilterableable","isFilterableable","_useState","useState","_useState2","_slicedToArray","isFilterInputVisible","setIsFilterInputVisible","_useState3","_useState4","globalFilter","setGlobalFilter","_useState5","_useState6","inputFilter","setInputFilter","_useState7","_useState8","statusFilter","_useState9","_useState11","_useState12","selectedDropdownFilters","setSelectedDropdownFilters","_useState13","_useState14","lastFiltered","setLastFiltered","useEffect","filtered","searchLower","toLowerCase","filter","item","some","column","String","includes","lowerCaseFilter","Object","values","value","_typeof","innerValue","entries","forEach","_ref4","_ref5","columnName","selectedOption","itemValue","_","isEqual","_jsxs","Flex","assign","justify","length","SPACE_BETWEEN","END","className","styles","tableHeader","wrap","children","_jsx","gap","gaps","SMALL","map","button","index","columnValues","Set","options","Array","from","label","style","minWidth","Dropdown","size","sizes","onOptionSelect","prev","_defineProperty","placeholder","onClear","Search","onChange","IconButton","icon","Download","color","kind","ariaLabel","active","onClick","csvString","csvRows","headers","keys","push","join","row","header","cell","_ref2","_ref3","concat","escaped","replace","arrayToCSV","filename","arguments","undefined","blob","Blob","type","link","document","createElement","href","URL","createObjectURL","download","visibility","body","appendChild","click","removeChild","downloadCSV","filterButtonContainer","Filter","kinds","TERTIARY","filterBox","TextField","Close"],"mappings":"6pBAkCA,IAAMA,EAA0C,SAA/BC,GAUZ,IATHC,EAAID,EAAJC,KACAC,EAAoBF,EAApBE,qBAAoBC,EAAAH,EACpBI,aAAAA,OAAe,IAAHD,GAAQA,EACEE,EAAAL,EACtBM,gBAAAA,OAAkB,IAAHD,EAAG,GAAEA,EAAAE,EAAAP,EACpBQ,oBAAAA,OAAsB,IAAHD,EAAG,GAAEA,EAAAE,EAAAT,EACxBU,cAAAA,OAAgB,IAAHD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KAAK,MAeFS,CAAW5H,IAZX,SAAC8G,GAA0C,IAA/Be,EAAQC,UAAAzD,OAAA,QAAA0D,IAAAD,UAAA,GAAAA,UAAA,GAAG,iBACnCE,EAAO,IAAIC,KAAK,CAACnB,GAAY,CAAEoB,KAAM,4BACrCC,EAAOC,SAASC,cAAc,KACpCF,EAAKG,KAAOC,IAAIC,gBAAgBR,GAChCG,EAAKM,SAAWZ,EAChBM,EAAKzC,MAAMgD,WAAa,SACxBN,SAASO,KAAKC,YAAYT,GAC1BA,EAAKU,QACLT,SAASO,KAAKG,YAAYX,GAK1BY,CAAYjC,MAmIPjG,GACCoD,EAAK,MAAAd,OAAAgB,OAAA,CAAAK,UAAWC,EAAOuE,uBAAqB,CAAApE,SAAA,CAC1CC,EAACyB,EAAUL,EAAAA,EAAAA,EAAAA,EAAAA,EAAA,CACTM,KAAM0C,EACNvC,KAAMJ,EAAW4C,MAAMC,SACvBzD,MAAO,CAAEe,MAAO,SACX,OAAA,mBACA,SAAO,YACF,UACJ,UAAA,cAnLY,WAC5BtF,GAAwB,SAAC6E,GAAI,OAAMA,SAqL1B9E,GACC+C,EAAA,MAAAd,OAAAgB,OAAA,CAAKK,UAAWC,EAAO2E,WACrB,CAAAxE,SAAA,CAAAC,EAACwE,EAAS,CACRnD,YAAY,oBACZ7C,MAAO3B,EACP2E,SAAU1E,IAEZkD,EAACyB,EAAUL,EAAAA,EAAAA,EAAAA,EAAAA,EAAA,CACTM,KAAM+C,EACN5C,KAAMJ,EAAW4C,MAAMC,SACvBzD,MAAO,CAAEe,MAAO,SACX,OAAA,mBACA,SAAO,YACF,gBAEV,UAAA,GAAS,WAAA,WAAA,OAAMtF,GAAwB,EAAM,oBAS/D"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
var e={tableHeader:"tableHeader",filterButtonContainer:"filterButtonContainer",filterBox:"filterBox"};!function(e){if("undefined"==typeof document)return;const t=document.head||document.getElementsByTagName("head")[0],n="s_id-b72273b29a72_0_0_82-table-tanstack";if(t.querySelector("#"+n))return;const i=document.createElement("style");i.id=n,t.firstChild?t.insertBefore(i,t.firstChild):t.appendChild(i),i.appendChild(document.createTextNode(e))}(".tableHeader {\n margin-bottom: 10px;\n padding-top: 10px;\n}\n\n.filterButtonContainer {\n position: relative;\n}\n\n.filterBox {\n min-width: 250px;\n z-index: 2;\n position: absolute;\n margin: 6px 0px 0px -250px;\n display: flex;\n gap: 5px;\n}");export{e as default};
|
2
|
+
//# sourceMappingURL=TableHeader.module.scss.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TableHeader.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{__rest as o}from"../../../../../_virtual/_tslib.js";import{jsx as e}from"react/jsx-runtime";import t from"prop-types";import{useTableContext as n}from"../TableContext/TableContext.js";import s from"./ToggleExpandedIcon.module.scss.js";import a from"../../../IconButton/IconButton.js";import i from"../../../Icon/Icons/components/MoveArrowRight.js";var r=function(t){var r=t.isExpanded,d=t.toggleExpanded,l=t.disabled,p=o(t,["isExpanded","toggleExpanded","disabled"]),c=n().disableAnimations;return e(a,Object.assign({"aria-label":"".concat(r?"Collapse":"Expand"," row"),disabled:l,icon:i,onClick:d,size:"xs",className:"".concat(r?s.rotatedStyles:""," \n ").concat(c?"":s.iconButtonTransitionStyles)},p))};r.propTypes={disabled:t.bool,toggleExpanded:t.func.isRequired,isExpanded:t.bool.isRequired};export{r as default};
|
2
|
+
//# sourceMappingURL=ToggleExpandedIcon.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ToggleExpandedIcon.js","sources":["../../../../../../../src/components/Table/components/ToggleExpandedIcon/ToggleExpandedIcon.tsx"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nimport { useTableContext } from \"../TableContext\";\nimport styles from \"./ToggleExpandedIcon.module.scss\"; // Import SCSS styles\nimport { ToggleExpandedIconProps } from \"./ToggleExpandedIcon.types\";\nimport IconButton from \"../../../IconButton/IconButton\";\nimport MoveArrowRight from \"../../../Icon/Icons/components/MoveArrowRight\";\n\n/**\n * @internal\n */\nconst ToggleExpandedIcon = ({\n isExpanded,\n toggleExpanded,\n disabled,\n ...rest\n}: ToggleExpandedIconProps) => {\n const { disableAnimations } = useTableContext();\n\n return (\n <IconButton\n aria-label={`${isExpanded ? \"Collapse\" : \"Expand\"} row`}\n disabled={disabled}\n icon={MoveArrowRight}\n onClick={toggleExpanded}\n size=\"xs\"\n className={`${isExpanded ? styles.rotatedStyles : \"\"} \n ${\n !disableAnimations ? styles.iconButtonTransitionStyles : \"\"\n }`}\n {...rest}\n />\n );\n};\n\nToggleExpandedIcon.propTypes = {\n disabled: PropTypes.bool,\n toggleExpanded: PropTypes.func.isRequired,\n isExpanded: PropTypes.bool.isRequired,\n};\n\nexport default ToggleExpandedIcon;\n"],"names":["ToggleExpandedIcon","_a","isExpanded","toggleExpanded","disabled","rest","__rest","disableAnimations","useTableContext","_jsx","IconButton","Object","assign","concat","icon","MoveArrowRight","onClick","size","className","styles","rotatedStyles","iconButtonTransitionStyles","propTypes","PropTypes","bool","func","isRequired"],"mappings":"mWAYA,IAAMA,EAAqB,SAACC,OAC1BC,IAAAA,WACAC,IAAAA,eACAC,IAAAA,SACGC,EAJuBC,EAAAL,EAAA,CAAA,aAAA,iBAAA,aAMlBM,EAAsBC,IAAtBD,kBAER,OACEE,EAACC,EAAUC,OAAAC,OAAA,CAAA,aAAA,GAAAC,OACMX,EAAa,WAAa,SAAc,QACvDE,SAAUA,EACVU,KAAMC,EACNC,QAASb,EACTc,KAAK,KACLC,UAAS,GAAAL,OAAKX,EAAaiB,EAAOC,cAAgB,4BAAEP,OAErCN,EAAwD,GAApCY,EAAOE,6BAEtChB,GAGV,EAEAL,EAAmBsB,UAAY,CAC7BlB,SAAUmB,EAAUC,KACpBrB,eAAgBoB,EAAUE,KAAKC,WAC/BxB,WAAYqB,EAAUC,KAAKE"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
var t={iconButtonTransitionStyles:"iconButtonTransitionStyles",rotatedStyles:"rotatedStyles"};!function(t){if("undefined"==typeof document)return;const e=document.head||document.getElementsByTagName("head")[0],n="s_id-b5e517e36271_0_0_82-table-tanstack";if(e.querySelector("#"+n))return;const o=document.createElement("style");o.id=n,e.firstChild?e.insertBefore(o,e.firstChild):e.appendChild(o),o.appendChild(document.createTextNode(t))}(".iconButtonTransitionStyles {\n transition: transform 150ms ease-in-out;\n}\n\n.rotatedStyles {\n transform: rotate(90deg);\n}");export{t as default};
|
2
|
+
//# sourceMappingURL=ToggleExpandedIcon.module.scss.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ToggleExpandedIcon.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/mocked_classnames_esm/src/components/Table/components/ToggleExpandedIcon/index.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|