@carbon/ibm-products 2.27.0 → 2.28.0-alpha.4
Sign up to get free protection for your applications and to get access to all the features.
- package/css/index-full-carbon.css +192 -116
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -1
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +56 -11
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +192 -116
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -1
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +180 -112
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/_virtual/index.js +2 -2
- package/es/components/APIKeyModal/APIKeyModal.js +1 -1
- package/es/components/AboutModal/AboutModal.js +1 -1
- package/es/components/ActionBar/ActionBar.js +1 -1
- package/es/components/ActionBar/ActionBarItem.js +1 -1
- package/es/components/ActionBar/ActionBarOverflowItems.js +1 -1
- package/es/components/ActionSet/ActionSet.js +1 -1
- package/es/components/AddSelect/AddSelectBody.js +1 -1
- package/es/components/AddSelect/AddSelectBreadcrumbs.js +1 -1
- package/es/components/AddSelect/AddSelectFilter.js +1 -1
- package/es/components/AddSelect/AddSelectList.js +1 -1
- package/es/components/AddSelect/AddSelectRow.js +1 -1
- package/es/components/BigNumbers/BigNumbers.js +1 -1
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +1 -1
- package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +1 -1
- package/es/components/Card/Card.js +1 -1
- package/es/components/Card/CardFooter.js +1 -1
- package/es/components/Card/CardHeader.js +1 -1
- package/es/components/Carousel/Carousel.js +1 -1
- package/es/components/Carousel/CarouselItem.js +1 -1
- package/es/components/Cascade/Cascade.js +1 -1
- package/es/components/Checklist/Checklist.js +1 -1
- package/es/components/Checklist/ChecklistChart.js +1 -1
- package/es/components/Checklist/ChecklistIcon.js +1 -1
- package/es/components/Coachmark/Coachmark.js +1 -1
- package/es/components/Coachmark/CoachmarkDragbar.js +1 -1
- package/es/components/Coachmark/CoachmarkHeader.js +1 -1
- package/es/components/Coachmark/CoachmarkOverlay.js +1 -1
- package/es/components/Coachmark/CoachmarkTagline.js +1 -1
- package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -1
- package/es/components/CoachmarkButton/CoachmarkButton.js +1 -1
- package/es/components/CoachmarkFixed/CoachmarkFixed.js +1 -1
- package/es/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +1 -1
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +1 -1
- package/es/components/CoachmarkStack/CoachmarkStack.js +1 -1
- package/es/components/CoachmarkStack/CoachmarkStackHome.js +1 -1
- package/es/components/ComboButton/ComboButton.js +1 -1
- package/es/components/CreateFullPage/CreateFullPage.js +1 -1
- package/es/components/CreateFullPage/CreateFullPageStep.js +1 -1
- package/es/components/CreateInfluencer/CreateInfluencer.js +1 -1
- package/es/components/CreateModal/CreateModal.js +1 -1
- package/es/components/CreateSidePanel/CreateSidePanel.js +1 -1
- package/es/components/CreateTearsheet/CreateTearsheet.js +8 -2
- package/es/components/CreateTearsheet/CreateTearsheetDivider.js +1 -1
- package/es/components/CreateTearsheet/CreateTearsheetStep.js +1 -1
- package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +1 -1
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +1 -1
- package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +1 -1
- package/es/components/Datagrid/Datagrid/Datagrid.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridContent.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +8 -4
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridRefBody.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridRow.js +19 -15
- package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridToolbar.js +1 -1
- package/es/components/Datagrid/Datagrid/DraggableElement.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +8 -8
- package/es/components/Datagrid/Datagrid/addons/Filtering/constants.d.ts +1 -0
- package/es/components/Datagrid/Datagrid/addons/Filtering/constants.js +2 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +68 -4
- package/es/components/Datagrid/Datagrid/addons/Filtering/utils.js +12 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -1
- package/es/components/Datagrid/useActionsColumn.js +1 -1
- package/es/components/Datagrid/useColumnCenterAlign.js +1 -1
- package/es/components/Datagrid/useColumnRightAlign.js +1 -1
- package/es/components/Datagrid/useDefaultStringRenderer.js +1 -1
- package/es/components/Datagrid/useFiltering.js +48 -47
- package/es/components/Datagrid/useFloatingScroll.js +1 -1
- package/es/components/Datagrid/useInlineEdit.js +1 -1
- package/es/components/Datagrid/useNestedRowExpander.js +1 -1
- package/es/components/Datagrid/useNestedRows.js +1 -1
- package/es/components/Datagrid/useRowExpander.js +1 -1
- package/es/components/Datagrid/useSelectAllToggle.js +1 -1
- package/es/components/Datagrid/useSelectRows.js +2 -2
- package/es/components/Datagrid/useSortableColumns.js +1 -1
- package/es/components/Datagrid/useStickyColumn.js +1 -1
- package/es/components/DelimitedList/DelimitedList.js +1 -1
- package/es/components/EditFullPage/EditFullPage.js +1 -1
- package/es/components/EditInPlace/EditInPlace.js +1 -1
- package/es/components/EditSidePanel/EditSidePanel.js +1 -1
- package/es/components/EditTearsheet/EditTearsheet.js +1 -1
- package/es/components/EditTearsheet/EditTearsheetForm.js +1 -1
- package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.js +1 -1
- package/es/components/EditUpdateCards/EditUpdateCards.js +1 -1
- package/es/components/EmptyStates/EmptyState.js +1 -1
- package/es/components/EmptyStates/EmptyStateContent.js +1 -1
- package/es/components/EmptyStates/EmptyStateV2.js +1 -1
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
- package/es/components/EmptyStates/assets/ErrorIllustration.js +1 -1
- package/es/components/EmptyStates/assets/NoDataIllustration.js +1 -1
- package/es/components/EmptyStates/assets/NoTagsIllustration.js +1 -1
- package/es/components/EmptyStates/assets/NotFoundIllustration.js +1 -1
- package/es/components/EmptyStates/assets/NotificationsIllustration.js +1 -1
- package/es/components/EmptyStates/assets/UnauthorizedIllustration.js +1 -1
- package/es/components/ExportModal/ExportModal.js +1 -1
- package/es/components/FilterSummary/FilterSummary.js +1 -1
- package/es/components/FullPageError/FullPageError.js +1 -1
- package/es/components/Guidebanner/Guidebanner.js +1 -1
- package/es/components/Guidebanner/GuidebannerElement.js +1 -1
- package/es/components/Guidebanner/GuidebannerElementButton.js +1 -1
- package/es/components/Guidebanner/GuidebannerElementLink.js +1 -1
- package/es/components/HTTPErrors/HTTPError403/HTTPError403.js +1 -1
- package/es/components/HTTPErrors/HTTPError404/HTTPError404.js +1 -1
- package/es/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +1 -1
- package/es/components/ImportModal/ImportModal.js +1 -1
- package/es/components/InlineTip/InlineTip.js +1 -1
- package/es/components/InlineTip/InlineTipButton.js +1 -1
- package/es/components/InlineTip/InlineTipLink.js +1 -1
- package/es/components/InterstitialScreen/InterstitialScreen.js +1 -1
- package/es/components/InterstitialScreenView/InterstitialScreenView.js +1 -1
- package/es/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +1 -1
- package/es/components/NonLinearReading/NonLinearReading.js +1 -1
- package/es/components/NotificationsPanel/NotificationsPanel.js +1 -1
- package/es/components/OptionsTile/OptionsTile.js +1 -1
- package/es/components/PageHeader/PageHeader.js +1 -1
- package/es/components/PageHeader/PageHeaderTitle.js +1 -1
- package/es/components/PageHeader/PageHeaderUtils.js +1 -1
- package/es/components/RemoveModal/RemoveModal.js +1 -1
- package/es/components/Saving/Saving.js +1 -1
- package/es/components/SearchBar/SearchBar.js +1 -1
- package/es/components/SidePanel/SidePanel.js +1 -1
- package/es/components/SimpleHeader/SimpleHeader.js +1 -1
- package/es/components/StatusIcon/StatusIcon.js +1 -1
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +1 -1
- package/es/components/StringFormatter/StringFormatter.js +1 -1
- package/es/components/TagSet/TagSet.js +1 -1
- package/es/components/TagSet/TagSetModal.js +1 -1
- package/es/components/TagSet/TagSetOverflow.js +1 -1
- package/es/components/Tearsheet/TearsheetShell.js +4 -5
- package/es/components/Toolbar/Toolbar.js +1 -1
- package/es/components/Toolbar/ToolbarButton.js +1 -1
- package/es/components/Toolbar/ToolbarGroup.js +1 -1
- package/es/components/TooltipTrigger/TooltipTrigger.js +1 -1
- package/es/components/TruncatedList/TruncatedList.js +1 -1
- package/es/components/UserAvatar/UserAvatar.js +1 -1
- package/es/components/UserProfileImage/UserProfileImage.js +1 -1
- package/es/components/WebTerminal/WebTerminal.js +1 -1
- package/es/components/WebTerminal/WebTerminalContentWrapper.js +1 -1
- package/es/components/_Canary/Canary.js +1 -1
- package/es/node_modules/prop-types/index.js +1 -1
- package/lib/_virtual/index.js +2 -2
- package/lib/components/APIKeyModal/APIKeyModal.js +50 -49
- package/lib/components/AboutModal/AboutModal.js +17 -16
- package/lib/components/ActionBar/ActionBar.js +16 -15
- package/lib/components/ActionBar/ActionBarItem.js +8 -7
- package/lib/components/ActionBar/ActionBarOverflowItems.js +9 -8
- package/lib/components/ActionSet/ActionSet.js +4 -3
- package/lib/components/AddSelect/AddSelectBody.js +67 -66
- package/lib/components/AddSelect/AddSelectBreadcrumbs.js +7 -6
- package/lib/components/AddSelect/AddSelectFilter.js +19 -18
- package/lib/components/AddSelect/AddSelectList.js +7 -6
- package/lib/components/AddSelect/AddSelectRow.js +33 -32
- package/lib/components/BigNumbers/BigNumbers.js +23 -22
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +20 -19
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +3 -2
- package/lib/components/Card/Card.js +5 -4
- package/lib/components/Card/CardFooter.js +22 -21
- package/lib/components/Card/CardHeader.js +27 -26
- package/lib/components/Carousel/Carousel.js +13 -12
- package/lib/components/Carousel/CarouselItem.js +6 -5
- package/lib/components/Cascade/Cascade.js +9 -8
- package/lib/components/Checklist/Checklist.js +33 -32
- package/lib/components/Checklist/ChecklistChart.js +7 -6
- package/lib/components/Checklist/ChecklistIcon.js +7 -6
- package/lib/components/Coachmark/Coachmark.js +21 -20
- package/lib/components/Coachmark/CoachmarkDragbar.js +10 -9
- package/lib/components/Coachmark/CoachmarkHeader.js +8 -7
- package/lib/components/Coachmark/CoachmarkOverlay.js +10 -9
- package/lib/components/Coachmark/CoachmarkTagline.js +8 -7
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +7 -6
- package/lib/components/CoachmarkButton/CoachmarkButton.js +6 -5
- package/lib/components/CoachmarkFixed/CoachmarkFixed.js +11 -10
- package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +8 -7
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +16 -15
- package/lib/components/CoachmarkStack/CoachmarkStack.js +20 -19
- package/lib/components/CoachmarkStack/CoachmarkStackHome.js +17 -16
- package/lib/components/ComboButton/ComboButton.js +7 -6
- package/lib/components/CreateFullPage/CreateFullPage.js +29 -28
- package/lib/components/CreateFullPage/CreateFullPageStep.js +18 -17
- package/lib/components/CreateInfluencer/CreateInfluencer.js +13 -12
- package/lib/components/CreateModal/CreateModal.js +16 -15
- package/lib/components/CreateSidePanel/CreateSidePanel.js +21 -20
- package/lib/components/CreateTearsheet/CreateTearsheet.js +27 -20
- package/lib/components/CreateTearsheet/CreateTearsheetDivider.js +5 -4
- package/lib/components/CreateTearsheet/CreateTearsheetStep.js +19 -18
- package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +21 -20
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +22 -21
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +56 -55
- package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +39 -38
- package/lib/components/Datagrid/Datagrid/Datagrid.js +7 -6
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +32 -31
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +8 -3
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +6 -5
- package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +3 -2
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +20 -15
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +4 -3
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +14 -13
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +3 -2
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +6 -5
- package/lib/components/Datagrid/Datagrid/DraggableElement.js +13 -12
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +15 -14
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +25 -24
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +27 -26
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +7 -7
- package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.d.ts +1 -0
- package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.js +2 -0
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +65 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +11 -0
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +15 -14
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +20 -19
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +9 -8
- package/lib/components/Datagrid/useActionsColumn.js +7 -6
- package/lib/components/Datagrid/useColumnCenterAlign.js +3 -2
- package/lib/components/Datagrid/useColumnRightAlign.js +3 -2
- package/lib/components/Datagrid/useDefaultStringRenderer.js +4 -3
- package/lib/components/Datagrid/useFiltering.js +46 -45
- package/lib/components/Datagrid/useFloatingScroll.js +6 -2
- package/lib/components/Datagrid/useInlineEdit.js +4 -3
- package/lib/components/Datagrid/useNestedRowExpander.js +4 -3
- package/lib/components/Datagrid/useNestedRows.js +6 -2
- package/lib/components/Datagrid/useRowExpander.js +3 -2
- package/lib/components/Datagrid/useSelectAllToggle.js +3 -2
- package/lib/components/Datagrid/useSelectRows.js +5 -4
- package/lib/components/Datagrid/useSortableColumns.js +3 -2
- package/lib/components/Datagrid/useStickyColumn.js +4 -3
- package/lib/components/DelimitedList/DelimitedList.js +8 -7
- package/lib/components/EditFullPage/EditFullPage.js +6 -5
- package/lib/components/EditInPlace/EditInPlace.js +23 -22
- package/lib/components/EditSidePanel/EditSidePanel.js +23 -22
- package/lib/components/EditTearsheet/EditTearsheet.js +18 -17
- package/lib/components/EditTearsheet/EditTearsheetForm.js +11 -10
- package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.js +6 -5
- package/lib/components/EditUpdateCards/EditUpdateCards.js +31 -30
- package/lib/components/EmptyStates/EmptyState.js +20 -19
- package/lib/components/EmptyStates/EmptyStateContent.js +16 -15
- package/lib/components/EmptyStates/EmptyStateV2.js +20 -19
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +18 -17
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +18 -17
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +18 -17
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +18 -17
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +18 -17
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +18 -17
- package/lib/components/EmptyStates/assets/ErrorIllustration.js +7 -6
- package/lib/components/EmptyStates/assets/NoDataIllustration.js +7 -6
- package/lib/components/EmptyStates/assets/NoTagsIllustration.js +7 -6
- package/lib/components/EmptyStates/assets/NotFoundIllustration.js +7 -6
- package/lib/components/EmptyStates/assets/NotificationsIllustration.js +7 -6
- package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +7 -6
- package/lib/components/ExportModal/ExportModal.js +30 -29
- package/lib/components/FilterSummary/FilterSummary.js +13 -12
- package/lib/components/FullPageError/FullPageError.js +13 -12
- package/lib/components/Guidebanner/Guidebanner.js +20 -19
- package/lib/components/Guidebanner/GuidebannerElement.js +8 -7
- package/lib/components/Guidebanner/GuidebannerElementButton.js +8 -7
- package/lib/components/Guidebanner/GuidebannerElementLink.js +6 -5
- package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +11 -10
- package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +11 -10
- package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +11 -10
- package/lib/components/ImportModal/ImportModal.js +32 -31
- package/lib/components/InlineTip/InlineTip.js +21 -20
- package/lib/components/InlineTip/InlineTipButton.js +6 -5
- package/lib/components/InlineTip/InlineTipLink.js +6 -5
- package/lib/components/InterstitialScreen/InterstitialScreen.js +13 -12
- package/lib/components/InterstitialScreenView/InterstitialScreenView.js +7 -6
- package/lib/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +7 -6
- package/lib/components/NonLinearReading/NonLinearReading.js +9 -8
- package/lib/components/NotificationsPanel/NotificationsPanel.js +59 -58
- package/lib/components/OptionsTile/OptionsTile.js +21 -20
- package/lib/components/PageHeader/PageHeader.js +74 -73
- package/lib/components/PageHeader/PageHeaderTitle.js +21 -20
- package/lib/components/PageHeader/PageHeaderUtils.js +3 -2
- package/lib/components/RemoveModal/RemoveModal.js +22 -21
- package/lib/components/Saving/Saving.js +18 -17
- package/lib/components/SearchBar/SearchBar.js +20 -19
- package/lib/components/SidePanel/SidePanel.js +47 -46
- package/lib/components/SimpleHeader/SimpleHeader.js +17 -16
- package/lib/components/StatusIcon/StatusIcon.js +9 -8
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +7 -6
- package/lib/components/StringFormatter/StringFormatter.js +11 -10
- package/lib/components/TagSet/TagSet.js +21 -20
- package/lib/components/TagSet/TagSetModal.js +13 -12
- package/lib/components/TagSet/TagSetOverflow.js +18 -17
- package/lib/components/Tearsheet/TearsheetShell.js +35 -35
- package/lib/components/Toolbar/Toolbar.js +7 -6
- package/lib/components/Toolbar/ToolbarButton.js +9 -8
- package/lib/components/Toolbar/ToolbarGroup.js +6 -5
- package/lib/components/TooltipTrigger/TooltipTrigger.js +6 -5
- package/lib/components/TruncatedList/TruncatedList.js +14 -13
- package/lib/components/UserAvatar/UserAvatar.js +3 -2
- package/lib/components/UserProfileImage/UserProfileImage.js +3 -2
- package/lib/components/WebTerminal/WebTerminal.js +14 -13
- package/lib/components/WebTerminal/WebTerminalContentWrapper.js +5 -4
- package/lib/components/_Canary/Canary.js +6 -5
- package/lib/node_modules/prop-types/index.js +1 -1
- package/package.json +6 -5
- package/scss/components/BreadcrumbWithOverflow/_breadcrumb-with-overflow.scss +0 -1
- package/scss/components/Datagrid/styles/_datagrid.scss +61 -4
- package/scss/components/SidePanel/_side-panel.scss +8 -1
- package/scss/components/Tearsheet/_tearsheet.scss +4 -5
- package/es/_virtual/index2.js +0 -10
- package/es/node_modules/classnames/index.js +0 -70
- package/lib/_virtual/index2.js +0 -14
- package/lib/node_modules/classnames/index.js +0 -74
@@ -17,8 +17,8 @@ var constants = require('./addons/Filtering/constants.js');
|
|
17
17
|
var DatagridBody = require('./DatagridBody.js');
|
18
18
|
var DatagridHead = require('./DatagridHead.js');
|
19
19
|
var DatagridToolbar = require('./DatagridToolbar.js');
|
20
|
-
var index
|
21
|
-
var
|
20
|
+
var index = require('../../../node_modules/prop-types/index.js');
|
21
|
+
var cx = require('classnames');
|
22
22
|
var handleGridFocus = require('./addons/InlineEdit/handleGridFocus.js');
|
23
23
|
var handleGridKeyPress = require('./addons/InlineEdit/handleGridKeyPress.js');
|
24
24
|
var layout = require('@carbon/layout');
|
@@ -33,6 +33,7 @@ var FilterSummary = require('../../FilterSummary/FilterSummary.js');
|
|
33
33
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
34
34
|
|
35
35
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
36
|
+
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
36
37
|
|
37
38
|
var blockClass = "".concat(settings.pkg.prefix, "--datagrid");
|
38
39
|
var gcClass = "".concat(blockClass, "__grid-container");
|
@@ -95,7 +96,7 @@ var DatagridContent = function DatagridContent(_ref) {
|
|
95
96
|
var renderTable = function renderTable() {
|
96
97
|
var _getTableProps;
|
97
98
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(react.Table, _rollupPluginBabelHelpers["extends"]({}, getTableProps(), {
|
98
|
-
className:
|
99
|
+
className: cx__default["default"](withVirtualScroll ? '' : "".concat(blockClass, "__table-simple"), "".concat(blockClass, "__vertical-align-").concat(verticalAlign), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__variable-row-height"), variableRowHeight), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__table-with-inline-edit"), withInlineEdit), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__table-grid-active"), gridActive), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__table-is-resizing"), typeof columnResizing.isResizingColumn === 'string'), (_getTableProps = getTableProps()) === null || _getTableProps === void 0 ? void 0 : _getTableProps.className),
|
99
100
|
role: withInlineEdit ? 'grid' : undefined,
|
100
101
|
tabIndex: withInlineEdit ? 0 : -1,
|
101
102
|
onKeyDown: /* istanbul ignore next */
|
@@ -157,13 +158,13 @@ var DatagridContent = function DatagridContent(_ref) {
|
|
157
158
|
}
|
158
159
|
};
|
159
160
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(react.TableContainer, {
|
160
|
-
className:
|
161
|
+
className: cx__default["default"]("".concat(gcClass), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(gcClass, "-active"), gridActive), "".concat(gcClass, "-active--without-toolbar"), withInlineEdit && !DatagridActions), "".concat(gcClass, "-inline-edit"), withInlineEdit), "".concat(blockClass, "__full-height"), withVirtualScroll || fullHeightDatagrid), "".concat(blockClass, "__with-pagination"), DatagridPagination), "".concat(blockClass, "__dense-header"), useDenseHeader)),
|
161
162
|
title: gridTitle,
|
162
163
|
description: gridDescription
|
163
164
|
}, /*#__PURE__*/React__default["default"].createElement(DatagridToolbar["default"], _rollupPluginBabelHelpers["extends"]({}, datagridState, {
|
164
165
|
ariaToolbarLabel: ariaToolbarLabel
|
165
166
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
166
|
-
className:
|
167
|
+
className: cx__default["default"]("".concat(blockClass, "__table-container"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__table-container--filter-open"), panelOpen)),
|
167
168
|
ref: gridAreaRef
|
168
169
|
}, (filterProps === null || filterProps === void 0 ? void 0 : filterProps.variation) === 'panel' && /*#__PURE__*/React__default["default"].createElement(FilterPanel["default"], _rollupPluginBabelHelpers["extends"]({}, getFilterFlyoutProps(), {
|
169
170
|
title: filterProps.panelTitle,
|
@@ -182,33 +183,33 @@ var DatagridContent = function DatagridContent(_ref) {
|
|
182
183
|
}));
|
183
184
|
};
|
184
185
|
DatagridContent.propTypes = {
|
185
|
-
ariaToolbarLabel: index
|
186
|
-
datagridState: index
|
187
|
-
getTableProps: index
|
188
|
-
getFilterFlyoutProps: index
|
189
|
-
withVirtualScroll: index
|
190
|
-
DatagridActions: index
|
191
|
-
DatagridPagination: index
|
192
|
-
CustomizeColumnsTearsheet: index
|
193
|
-
isFetching: index
|
194
|
-
fullHeightDatagrid: index
|
195
|
-
filterProps: index
|
196
|
-
variableRowHeight: index
|
197
|
-
useDenseHeader: index
|
198
|
-
withInlineEdit: index
|
199
|
-
verticalAlign: index
|
200
|
-
gridTitle: index
|
201
|
-
gridDescription: index
|
202
|
-
page: index
|
203
|
-
rows: index
|
204
|
-
tableId: index
|
205
|
-
totalColumnsWidth: index
|
206
|
-
gridRef: index
|
207
|
-
setAllFilters: index
|
208
|
-
getFilterProps: index
|
209
|
-
state: index
|
186
|
+
ariaToolbarLabel: index["default"].string,
|
187
|
+
datagridState: index["default"].shape({
|
188
|
+
getTableProps: index["default"].func,
|
189
|
+
getFilterFlyoutProps: index["default"].func,
|
190
|
+
withVirtualScroll: index["default"].bool,
|
191
|
+
DatagridActions: index["default"].oneOfType([index["default"].element, index["default"].func]),
|
192
|
+
DatagridPagination: index["default"].oneOfType([index["default"].element, index["default"].func]),
|
193
|
+
CustomizeColumnsTearsheet: index["default"].oneOfType([index["default"].element, index["default"].func]),
|
194
|
+
isFetching: index["default"].bool,
|
195
|
+
fullHeightDatagrid: index["default"].bool,
|
196
|
+
filterProps: index["default"].object,
|
197
|
+
variableRowHeight: index["default"].bool,
|
198
|
+
useDenseHeader: index["default"].bool,
|
199
|
+
withInlineEdit: index["default"].bool,
|
200
|
+
verticalAlign: index["default"].string,
|
201
|
+
gridTitle: index["default"].node,
|
202
|
+
gridDescription: index["default"].node,
|
203
|
+
page: index["default"].arrayOf(index["default"].object),
|
204
|
+
rows: index["default"].arrayOf(index["default"].object),
|
205
|
+
tableId: index["default"].string,
|
206
|
+
totalColumnsWidth: index["default"].number,
|
207
|
+
gridRef: index["default"].object,
|
208
|
+
setAllFilters: index["default"].func,
|
209
|
+
getFilterProps: index["default"].func,
|
210
|
+
state: index["default"].object
|
210
211
|
}),
|
211
|
-
title: index
|
212
|
+
title: index["default"].string
|
212
213
|
};
|
213
214
|
|
214
215
|
exports.DatagridContent = DatagridContent;
|
@@ -9,25 +9,30 @@
|
|
9
9
|
|
10
10
|
Object.defineProperty(exports, '__esModule', { value: true });
|
11
11
|
|
12
|
+
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
12
13
|
var React = require('react');
|
13
14
|
var settings = require('../../../settings.js');
|
15
|
+
var cx = require('classnames');
|
14
16
|
|
15
17
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
16
18
|
|
17
19
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
20
|
+
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
18
21
|
|
19
22
|
var blockClass = "".concat(settings.pkg.prefix, "--datagrid");
|
20
23
|
|
21
24
|
// eslint-disable-next-line react/prop-types
|
22
25
|
var DatagridExpandedRow = function DatagridExpandedRow(ExpandedRowContentComponent) {
|
23
26
|
return function (datagridState) {
|
27
|
+
var _row$original;
|
24
28
|
var row = datagridState.row;
|
25
29
|
var expandedContentHeight = row.expandedContentHeight;
|
26
30
|
var toggleParentHoverClass = function toggleParentHoverClass(event, eventType) {
|
27
31
|
var _event$target;
|
28
32
|
/* istanbul ignore else */
|
29
|
-
if (event !== null && event !== void 0 && (_event$target = event.target) !== null && _event$target !== void 0 &&
|
30
|
-
var
|
33
|
+
if (event !== null && event !== void 0 && (_event$target = event.target) !== null && _event$target !== void 0 && _event$target.closest('tr').previousElementSibling) {
|
34
|
+
var _event$target2;
|
35
|
+
var parentNode = event === null || event === void 0 || (_event$target2 = event.target) === null || _event$target2 === void 0 ? void 0 : _event$target2.closest('tr').previousElementSibling;
|
31
36
|
if (eventType === 'enter') {
|
32
37
|
parentNode.classList.add("".concat(blockClass, "__expandable-row--hover"));
|
33
38
|
} else {
|
@@ -36,7 +41,7 @@ var DatagridExpandedRow = function DatagridExpandedRow(ExpandedRowContentCompone
|
|
36
41
|
}
|
37
42
|
};
|
38
43
|
return /*#__PURE__*/React__default["default"].createElement("tr", {
|
39
|
-
className: "".concat(blockClass, "__expanded-row"),
|
44
|
+
className: cx__default["default"]("".concat(blockClass, "__expanded-row"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__slug--row"), /*#__PURE__*/React.isValidElement(row === null || row === void 0 || (_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.slug))),
|
40
45
|
onMouseEnter: function onMouseEnter(event) {
|
41
46
|
return toggleParentHoverClass(event, 'enter');
|
42
47
|
},
|
@@ -11,7 +11,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
11
11
|
|
12
12
|
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
13
13
|
var React = require('react');
|
14
|
-
var
|
14
|
+
var cx = require('classnames');
|
15
15
|
var react = require('@carbon/react');
|
16
16
|
var layout = require('@carbon/layout');
|
17
17
|
var commonColumnIds = require('../common-column-ids.js');
|
@@ -23,6 +23,7 @@ var DatagridSlug = require('./addons/Slug/DatagridSlug.js');
|
|
23
23
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
24
24
|
|
25
25
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
26
|
+
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
26
27
|
|
27
28
|
var _th;
|
28
29
|
var _excluded = ["role"],
|
@@ -154,7 +155,7 @@ var HeaderRow = function HeaderRow(datagridState, headRef, headerGroup) {
|
|
154
155
|
return /*#__PURE__*/React.isValidElement(r === null || r === void 0 || (_r$original = r.original) === null || _r$original === void 0 ? void 0 : _r$original.slug);
|
155
156
|
});
|
156
157
|
return /*#__PURE__*/React__default["default"].createElement(react.TableRow, _rollupPluginBabelHelpers["extends"]({}, headerGroupProps, {
|
157
|
-
className:
|
158
|
+
className: cx__default["default"]("".concat(blockClass, "__head"), headerGroupClassName),
|
158
159
|
ref: headRef
|
159
160
|
}), foundAIRow ? _th || (_th = /*#__PURE__*/React__default["default"].createElement("th", {
|
160
161
|
scope: "col",
|
@@ -162,7 +163,7 @@ var HeaderRow = function HeaderRow(datagridState, headRef, headerGroup) {
|
|
162
163
|
})) : null, datagridState.headers.filter(function (_ref3) {
|
163
164
|
var isVisible = _ref3.isVisible;
|
164
165
|
return isVisible;
|
165
|
-
}).map(function (header, index
|
166
|
+
}).map(function (header, index) {
|
166
167
|
var _header$getResizerPro;
|
167
168
|
if (header.id === commonColumnIds.selectionColumnId) {
|
168
169
|
// render directly without the wrapper TableHeader
|
@@ -179,14 +180,14 @@ var HeaderRow = function HeaderRow(datagridState, headRef, headerGroup) {
|
|
179
180
|
var columnResizing = state.columnResizing;
|
180
181
|
var _ref5 = columnResizing || {},
|
181
182
|
columnWidths = _ref5.columnWidths;
|
182
|
-
var originalCol = visibleColumns[index
|
183
|
+
var originalCol = visibleColumns[index];
|
183
184
|
var _header$getHeaderProp = header.getHeaderProps();
|
184
185
|
_header$getHeaderProp.role;
|
185
186
|
var headerClassName = _header$getHeaderProp.className,
|
186
187
|
headerProps = _rollupPluginBabelHelpers.objectWithoutProperties(_header$getHeaderProp, _excluded3);
|
187
188
|
var resizerProps = header === null || header === void 0 || (_header$getResizerPro = header.getResizerProps) === null || _header$getResizerPro === void 0 ? void 0 : _header$getResizerPro.call(header);
|
188
189
|
return /*#__PURE__*/React__default["default"].createElement(react.TableHeader, _rollupPluginBabelHelpers["extends"]({}, headerProps, {
|
189
|
-
className:
|
190
|
+
className: cx__default["default"](headerClassName, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__resizableColumn"), resizerProps), "".concat(blockClass, "__isResizing"), header.isResizing), "".concat(blockClass, "__sortableColumn"), datagridState.isTableSortable && header.id !== 'spacer'), "".concat(blockClass, "__isSorted"), header.isSorted), "".concat(blockClass, "__header-actions-column"), header.isAction), "".concat(blockClass, "__with-slug"), header.slug && /*#__PURE__*/React__default["default"].isValidElement(header.slug))),
|
190
191
|
key: header.id,
|
191
192
|
"aria-hidden": header.id === 'spacer' && 'true'
|
192
193
|
}, getAccessibilityProps(header)), header.render('Header'), renderSlug(header.slug), resizerProps && !header.isAction && /*#__PURE__*/React__default["default"].createElement(ResizeHeader, {
|
@@ -11,12 +11,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
11
11
|
|
12
12
|
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
13
13
|
var React = require('react');
|
14
|
-
var
|
14
|
+
var cx = require('classnames');
|
15
15
|
var settings = require('../../../settings.js');
|
16
16
|
|
17
17
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
18
18
|
|
19
19
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
20
|
+
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
20
21
|
|
21
22
|
var blockClass = "".concat(settings.pkg.prefix, "--datagrid");
|
22
23
|
|
@@ -29,7 +30,7 @@ var DatagridRefBody = function DatagridRefBody(datagridState) {
|
|
29
30
|
rows = datagridState.rows,
|
30
31
|
prepareRow = datagridState.prepareRow;
|
31
32
|
return /*#__PURE__*/React__default["default"].createElement("tbody", _rollupPluginBabelHelpers["extends"]({}, getTableBodyProps(), {
|
32
|
-
className:
|
33
|
+
className: cx__default["default"]("".concat(blockClass, "__simple-body"), getTableBodyProps().className)
|
33
34
|
}), rows.map(function (row) {
|
34
35
|
prepareRow(row);
|
35
36
|
var _row$getRowProps = row.getRowProps(),
|
@@ -14,16 +14,17 @@ var React = require('react');
|
|
14
14
|
var react = require('@carbon/react');
|
15
15
|
var layout = require('@carbon/layout');
|
16
16
|
var commonColumnIds = require('../common-column-ids.js');
|
17
|
-
var
|
17
|
+
var cx = require('classnames');
|
18
18
|
var settings = require('../../../settings.js');
|
19
19
|
var DatagridSlug = require('./addons/Slug/DatagridSlug.js');
|
20
20
|
|
21
21
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
22
22
|
|
23
23
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
24
|
+
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
24
25
|
|
25
26
|
var _SkeletonText;
|
26
|
-
var _excluded = ["role"],
|
27
|
+
var _excluded = ["role", "className"],
|
27
28
|
_excluded2 = ["children", "role"];
|
28
29
|
var blockClass = "".concat(settings.pkg.prefix, "--datagrid");
|
29
30
|
var rowHeights = {
|
@@ -36,7 +37,7 @@ var rowHeights = {
|
|
36
37
|
|
37
38
|
// eslint-disable-next-line react/prop-types
|
38
39
|
var DatagridRow = function DatagridRow(datagridState) {
|
39
|
-
var _row$original, _row$original2;
|
40
|
+
var _row$original, _row$original2, _row$original3;
|
40
41
|
var row = datagridState.row,
|
41
42
|
rows = datagridState.rows,
|
42
43
|
rowSize = datagridState.rowSize,
|
@@ -46,7 +47,8 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
46
47
|
tableId = datagridState.tableId,
|
47
48
|
withExpandedRows = datagridState.withExpandedRows,
|
48
49
|
withMouseHover = datagridState.withMouseHover,
|
49
|
-
setMouseOverRowIndex = datagridState.setMouseOverRowIndex
|
50
|
+
setMouseOverRowIndex = datagridState.setMouseOverRowIndex,
|
51
|
+
headers = datagridState.headers;
|
50
52
|
var getVisibleNestedRowCount = function getVisibleNestedRowCount(_ref) {
|
51
53
|
var isExpanded = _ref.isExpanded,
|
52
54
|
subRows = _ref.subRows;
|
@@ -106,7 +108,6 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
106
108
|
hoverHandler(event);
|
107
109
|
}
|
108
110
|
};
|
109
|
-
var rowClassNames = index["default"]("".concat(blockClass, "__carbon-row"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__carbon-row-expanded"), row.isExpanded), "".concat(blockClass, "__carbon-row-expandable"), row.canExpand), "".concat(settings.carbon.prefix, "--data-table--selected"), row.isSelected));
|
110
111
|
var setAdditionalRowProps = function setAdditionalRowProps() {
|
111
112
|
if (withNestedRows || withExpandedRows) {
|
112
113
|
return {
|
@@ -119,30 +120,31 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
119
120
|
// eslint-disable-next-line no-unused-vars
|
120
121
|
var _row$getRowProps = row.getRowProps();
|
121
122
|
_row$getRowProps.role;
|
122
|
-
var
|
123
|
+
var className = _row$getRowProps.className,
|
124
|
+
rowProps = _rollupPluginBabelHelpers.objectWithoutProperties(_row$getRowProps, _excluded);
|
123
125
|
var foundAIRow = rows.some(function (r) {
|
124
126
|
var _r$original;
|
125
127
|
return /*#__PURE__*/React.isValidElement(r === null || r === void 0 || (_r$original = r.original) === null || _r$original === void 0 ? void 0 : _r$original.slug);
|
126
128
|
});
|
129
|
+
var rowClassNames = cx__default["default"]("".concat(blockClass, "__carbon-row"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__carbon-row-expanded"), row.isExpanded), "".concat(blockClass, "__carbon-row-expandable"), row.canExpand), "".concat(settings.carbon.prefix, "--data-table--selected"), row.isSelected), "".concat(blockClass, "__slug--row"), /*#__PURE__*/React.isValidElement(row === null || row === void 0 || (_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.slug)));
|
127
130
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
|
128
131
|
key: key
|
129
|
-
}, /*#__PURE__*/React__default["default"].createElement(react.TableRow, _rollupPluginBabelHelpers["extends"]({
|
130
|
-
className: rowClassNames
|
131
|
-
}, rowProps, {
|
132
|
+
}, /*#__PURE__*/React__default["default"].createElement(react.TableRow, _rollupPluginBabelHelpers["extends"]({}, rowProps, {
|
133
|
+
className: cx__default["default"](rowClassNames, className),
|
132
134
|
key: row.id,
|
133
135
|
onMouseEnter: hoverHandler,
|
134
136
|
onMouseLeave: handleMouseLeave,
|
135
137
|
onFocus: hoverHandler,
|
136
138
|
onBlur: focusRemover,
|
137
139
|
onKeyUp: handleOnKeyUp
|
138
|
-
}, setAdditionalRowProps()), foundAIRow ? row !== null && row !== void 0 && (_row$
|
139
|
-
className: "".concat(blockClass, "__table-row-ai-enabled")
|
140
|
+
}, setAdditionalRowProps()), foundAIRow ? row !== null && row !== void 0 && (_row$original2 = row.original) !== null && _row$original2 !== void 0 && _row$original2.slug ? /*#__PURE__*/React__default["default"].createElement("td", {
|
141
|
+
className: cx__default["default"]("".concat(blockClass, "__table-row-ai-enabled"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__slug--expanded"), row.isExpanded))
|
140
142
|
}, /*#__PURE__*/React__default["default"].createElement(DatagridSlug.DatagridSlug, {
|
141
|
-
slug: row === null || row === void 0 || (_row$
|
143
|
+
slug: row === null || row === void 0 || (_row$original3 = row.original) === null || _row$original3 === void 0 ? void 0 : _row$original3.slug
|
142
144
|
})) : /*#__PURE__*/React__default["default"].createElement("td", {
|
143
145
|
className: "".concat(blockClass, "__table-row-ai-spacer")
|
144
|
-
}) : null, row.cells.map(function (cell, index
|
145
|
-
var _cell$column, _content$props
|
146
|
+
}) : null, row.cells.map(function (cell, index) {
|
147
|
+
var _cell$column, _content$props, _associatedHeader$;
|
146
148
|
var cellProps = cell.getCellProps();
|
147
149
|
// eslint-disable-next-line no-unused-vars
|
148
150
|
var children = cellProps.children;
|
@@ -156,8 +158,11 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
156
158
|
});
|
157
159
|
}
|
158
160
|
var title = content === null || content === void 0 || (_content$props = content.props) === null || _content$props === void 0 || (_content$props = _content$props.children[0]) === null || _content$props === void 0 || (_content$props = _content$props.props) === null || _content$props === void 0 ? void 0 : _content$props.value;
|
161
|
+
var associatedHeader = headers.filter(function (h) {
|
162
|
+
return h.id === cell.column.id;
|
163
|
+
});
|
159
164
|
return /*#__PURE__*/React__default["default"].createElement(react.TableCell, _rollupPluginBabelHelpers["extends"]({
|
160
|
-
className:
|
165
|
+
className: cx__default["default"]("".concat(blockClass, "__cell"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__expandable-row-cell"), row.canExpand && index === 0), "".concat(blockClass, "__slug--cell"), associatedHeader && associatedHeader.length && /*#__PURE__*/React.isValidElement((_associatedHeader$ = associatedHeader[0]) === null || _associatedHeader$ === void 0 ? void 0 : _associatedHeader$.slug)))
|
161
166
|
}, restProps, {
|
162
167
|
key: cell.column.id,
|
163
168
|
title: title
|
@@ -12,13 +12,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
12
12
|
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
13
13
|
var React = require('react');
|
14
14
|
var react = require('@carbon/react');
|
15
|
-
var
|
15
|
+
var cx = require('classnames');
|
16
16
|
var settings = require('../../../settings.js');
|
17
17
|
var stateReducer = require('./addons/stateReducer.js');
|
18
18
|
|
19
19
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
20
20
|
|
21
21
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
22
|
+
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
22
23
|
|
23
24
|
var _excluded = ["onChange"];
|
24
25
|
var blockClass = "".concat(settings.pkg.prefix, "--datagrid");
|
@@ -57,7 +58,7 @@ var SelectAll = function SelectAll(datagridState) {
|
|
57
58
|
var isFirstColumnStickyLeft = ((_columns$ = columns[0]) === null || _columns$ === void 0 ? void 0 : _columns$.sticky) === 'left' && withStickyColumn;
|
58
59
|
if (hideSelectAll || radio) {
|
59
60
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
60
|
-
className:
|
61
|
+
className: cx__default["default"]("".concat(blockClass, "__head-hidden-select-all"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__select-all-sticky-left"), /* istanbul ignore next */
|
61
62
|
isFirstColumnStickyLeft && windowSize > 671))
|
62
63
|
});
|
63
64
|
}
|
@@ -92,7 +93,7 @@ var SelectAll = function SelectAll(datagridState) {
|
|
92
93
|
return onChange === null || onChange === void 0 ? void 0 : onChange(event);
|
93
94
|
};
|
94
95
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
95
|
-
className:
|
96
|
+
className: cx__default["default"]("".concat(blockClass, "__head-select-all"), "".concat(blockClass, "__checkbox-cell"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__checkbox-cell-sticky-left"), /* istanbul ignore next */
|
96
97
|
isFirstColumnStickyLeft && windowSize > 671))
|
97
98
|
}, /*#__PURE__*/React__default["default"].createElement(react.TableSelectAll, _rollupPluginBabelHelpers["extends"]({}, selectProps, {
|
98
99
|
name: "".concat(tableId, "-select-all-checkbox-name"),
|
@@ -11,8 +11,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
11
11
|
|
12
12
|
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
13
13
|
var React = require('react');
|
14
|
-
var index
|
15
|
-
var
|
14
|
+
var index = require('../../../node_modules/prop-types/index.js');
|
15
|
+
var cx = require('classnames');
|
16
16
|
var react = require('@carbon/react');
|
17
17
|
var icons = require('@carbon/react/icons');
|
18
18
|
var settings = require('../../../settings.js');
|
@@ -20,6 +20,7 @@ var settings = require('../../../settings.js');
|
|
20
20
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
21
21
|
|
22
22
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
23
|
+
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
23
24
|
|
24
25
|
var _excluded = ["onChange"];
|
25
26
|
var blockClass = "".concat(settings.pkg.prefix, "--datagrid");
|
@@ -76,7 +77,7 @@ var SelectAllWithToggle = function SelectAllWithToggle(_ref) {
|
|
76
77
|
var isFirstColumnStickyLeft = ((_columns$ = columns[0]) === null || _columns$ === void 0 ? void 0 : _columns$.sticky) === 'left' && withStickyColumn;
|
77
78
|
return /*#__PURE__*/React__default["default"].createElement("th", {
|
78
79
|
scope: "col",
|
79
|
-
className:
|
80
|
+
className: cx__default["default"]("".concat(blockClass, "__select-all-toggle-on"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__select-all-sticky-left"), isFirstColumnStickyLeft && windowSize > 671))
|
80
81
|
}, /*#__PURE__*/React__default["default"].createElement("span", null, /*#__PURE__*/React__default["default"].createElement(react.Checkbox, _rollupPluginBabelHelpers["extends"]({}, selectProps, {
|
81
82
|
name: "".concat(tableId, "-select-all-checkbox-name"),
|
82
83
|
onClick: function onClick(e) {
|
@@ -129,16 +130,16 @@ var SelectAllWithToggle = function SelectAllWithToggle(_ref) {
|
|
129
130
|
})));
|
130
131
|
};
|
131
132
|
SelectAllWithToggle.propTypes = {
|
132
|
-
allPageRowsLabel: index
|
133
|
-
allRowsLabel: index
|
134
|
-
columns: index
|
135
|
-
getToggleAllPageRowsSelectedProps: index
|
136
|
-
getToggleAllRowsSelectedProps: index
|
137
|
-
isAllRowsSelected: index
|
138
|
-
isFetching: index
|
139
|
-
selectAllToggle: index
|
140
|
-
tableId: index
|
141
|
-
withStickyColumn: index
|
133
|
+
allPageRowsLabel: index["default"].string,
|
134
|
+
allRowsLabel: index["default"].string,
|
135
|
+
columns: index["default"].arrayOf(index["default"].object),
|
136
|
+
getToggleAllPageRowsSelectedProps: index["default"].func.isRequired,
|
137
|
+
getToggleAllRowsSelectedProps: index["default"].func.isRequired,
|
138
|
+
isAllRowsSelected: index["default"].bool.isRequired,
|
139
|
+
isFetching: index["default"].bool,
|
140
|
+
selectAllToggle: index["default"].object,
|
141
|
+
tableId: index["default"].string.isRequired,
|
142
|
+
withStickyColumn: index["default"].bool
|
142
143
|
};
|
143
144
|
var SelectAllWithToggle$1 = SelectAllWithToggle;
|
144
145
|
|
@@ -12,12 +12,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
12
12
|
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
13
13
|
var React = require('react');
|
14
14
|
var react = require('@carbon/react');
|
15
|
-
var
|
15
|
+
var cx = require('classnames');
|
16
16
|
var settings = require('../../../settings.js');
|
17
17
|
|
18
18
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
19
19
|
|
20
20
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
21
|
+
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
21
22
|
|
22
23
|
var blockClass = "".concat(settings.pkg.prefix, "--datagrid");
|
23
24
|
var DatagridSimpleBody = function DatagridSimpleBody(datagridState) {
|
@@ -25,7 +26,7 @@ var DatagridSimpleBody = function DatagridSimpleBody(datagridState) {
|
|
25
26
|
rows = datagridState.rows,
|
26
27
|
prepareRow = datagridState.prepareRow;
|
27
28
|
return /*#__PURE__*/React__default["default"].createElement(react.TableBody, _rollupPluginBabelHelpers["extends"]({}, getTableBodyProps(), {
|
28
|
-
className:
|
29
|
+
className: cx__default["default"]("".concat(blockClass, "__simple-body"), getTableBodyProps().className)
|
29
30
|
}), rows.map(function (row) {
|
30
31
|
prepareRow(row);
|
31
32
|
var _row$getRowProps = row.getRowProps(),
|
@@ -11,16 +11,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
11
11
|
|
12
12
|
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
13
13
|
var React = require('react');
|
14
|
-
var index
|
14
|
+
var index = require('../../../node_modules/prop-types/index.js');
|
15
15
|
var react = require('@carbon/react');
|
16
16
|
var useResizeObserver = require('../../../global/js/hooks/useResizeObserver.js');
|
17
17
|
var settings = require('../../../settings.js');
|
18
|
-
var
|
18
|
+
var cx = require('classnames');
|
19
19
|
var stateReducer = require('./addons/stateReducer.js');
|
20
20
|
|
21
21
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
22
22
|
|
23
23
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
24
|
+
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
24
25
|
|
25
26
|
var _excluded = ["ariaToolbarLabel"];
|
26
27
|
var blockClass = "".concat(settings.pkg.prefix, "--datagrid__table-toolbar");
|
@@ -101,7 +102,7 @@ var DatagridBatchActionsToolbar = function DatagridBatchActionsToolbar(datagridS
|
|
101
102
|
};
|
102
103
|
return /*#__PURE__*/React__default["default"].createElement(react.MenuButton, {
|
103
104
|
label: batchActionMenuButtonLabelText,
|
104
|
-
className:
|
105
|
+
className: cx__default["default"]([menuClass, _rollupPluginBabelHelpers.defineProperty({}, "".concat(menuClass, "-icon-only"), width <= minWidthBeforeOverflowIcon)]),
|
105
106
|
tabIndex: totalSelected > 0 ? 0 : -1
|
106
107
|
}, toolbarBatchActions === null || toolbarBatchActions === void 0 ? void 0 : toolbarBatchActions.map(function (batchAction, index) {
|
107
108
|
var hidden = index < 2 && !displayAllInMenu;
|
@@ -173,7 +174,7 @@ var DatagridToolbar = function DatagridToolbar(_ref2) {
|
|
173
174
|
var getRowHeight = rowSize || 'lg';
|
174
175
|
return batchActions && DatagridActions ? /*#__PURE__*/React__default["default"].createElement("div", {
|
175
176
|
ref: ref,
|
176
|
-
className:
|
177
|
+
className: cx__default["default"]([blockClass, "".concat(blockClass, "--").concat(getRowHeight)])
|
177
178
|
}, /*#__PURE__*/React__default["default"].createElement(react.TableToolbar, {
|
178
179
|
"aria-label": ariaToolbarLabel
|
179
180
|
}, DatagridActions && /*#__PURE__*/React__default["default"].createElement(DatagridActions, datagridState), DatagridBatchActionsToolbar && DatagridBatchActionsToolbar(datagridState, width, ref))) : DatagridActions ? /*#__PURE__*/React__default["default"].createElement("div", {
|
@@ -183,7 +184,7 @@ var DatagridToolbar = function DatagridToolbar(_ref2) {
|
|
183
184
|
}, DatagridActions && /*#__PURE__*/React__default["default"].createElement(DatagridActions, datagridState), DatagridBatchActions && DatagridBatchActions(datagridState))) : null;
|
184
185
|
};
|
185
186
|
DatagridToolbar.propTypes = {
|
186
|
-
ariaToolbarLabel: index
|
187
|
+
ariaToolbarLabel: index["default"].string
|
187
188
|
};
|
188
189
|
var DatagridToolbar$1 = DatagridToolbar;
|
189
190
|
|
@@ -11,9 +11,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
11
11
|
|
12
12
|
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
13
13
|
var React = require('react');
|
14
|
-
var index
|
14
|
+
var index = require('../../../node_modules/prop-types/index.js');
|
15
15
|
var icons = require('@carbon/react/icons');
|
16
|
-
var
|
16
|
+
var cx = require('classnames');
|
17
17
|
var settings = require('../../../settings.js');
|
18
18
|
var utilities = require('@dnd-kit/utilities');
|
19
19
|
var sortable = require('@dnd-kit/sortable');
|
@@ -21,6 +21,7 @@ var sortable = require('@dnd-kit/sortable');
|
|
21
21
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
22
22
|
|
23
23
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
24
|
+
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
24
25
|
|
25
26
|
var _Locked, _DraggableIcon;
|
26
27
|
var blockClass = "".concat(settings.pkg.prefix, "--datagrid");
|
@@ -43,7 +44,7 @@ var DraggableElement = function DraggableElement(_ref) {
|
|
43
44
|
transform = _useSortable.transform,
|
44
45
|
transition = _useSortable.transition;
|
45
46
|
var content = /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
46
|
-
className:
|
47
|
+
className: cx__default["default"]({
|
47
48
|
disabled: disabled
|
48
49
|
}, "".concat(blockClass, "__draggable-handleStyle"))
|
49
50
|
}, isSticky ? _Locked || (_Locked = /*#__PURE__*/React__default["default"].createElement(icons.Locked, {
|
@@ -56,7 +57,7 @@ var DraggableElement = function DraggableElement(_ref) {
|
|
56
57
|
transition: transition
|
57
58
|
};
|
58
59
|
return /*#__PURE__*/React__default["default"].createElement("li", _rollupPluginBabelHelpers["extends"]({
|
59
|
-
className:
|
60
|
+
className: cx__default["default"](classList, "".concat(blockClass, "__draggable-handleHolder"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__draggable-handleHolder--selected"), selected), "".concat(blockClass, "__draggable-handleHolder--sticky"), isSticky), "".concat(blockClass, "__draggable-handleHolder--dragging"), isDragging)),
|
60
61
|
id: id,
|
61
62
|
ref: setNodeRef,
|
62
63
|
style: style
|
@@ -67,17 +68,17 @@ var DraggableElement = function DraggableElement(_ref) {
|
|
67
68
|
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
68
69
|
className: "".concat(blockClass, "__shared-ui--assistive-text")
|
69
70
|
}, ariaLabel), /*#__PURE__*/React__default["default"].createElement("div", {
|
70
|
-
className:
|
71
|
+
className: cx__default["default"](_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__draggable-handleStyle"), !disabled), ["".concat(blockClass, "__draggable-handleHolder-droppable")])
|
71
72
|
}, content));
|
72
73
|
};
|
73
74
|
DraggableElement.propTypes = {
|
74
|
-
ariaLabel: index
|
75
|
-
children: index
|
76
|
-
classList: index
|
77
|
-
disabled: index
|
78
|
-
id: index
|
79
|
-
isSticky: index
|
80
|
-
selected: index
|
75
|
+
ariaLabel: index["default"].string.isRequired,
|
76
|
+
children: index["default"].element.isRequired,
|
77
|
+
classList: index["default"].string,
|
78
|
+
disabled: index["default"].bool,
|
79
|
+
id: index["default"].string.isRequired,
|
80
|
+
isSticky: index["default"].bool,
|
81
|
+
selected: index["default"].bool
|
81
82
|
};
|
82
83
|
var DraggableElement$1 = DraggableElement;
|
83
84
|
|