@carbon/ibm-products 2.26.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 +700 -163
- 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 +85 -22
- 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 +700 -163
- 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 +660 -152
- 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.d.ts +11 -0
- package/es/components/BigNumbers/BigNumbers.js +238 -0
- package/es/components/BigNumbers/constants.d.ts +13 -0
- package/es/components/BigNumbers/constants.js +67 -0
- package/es/components/BigNumbers/index.d.ts +1 -0
- 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 +5 -4
- package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +4 -3
- package/es/components/DataSpreadsheet/utils/checkForHoldingKey.d.ts +1 -0
- package/es/components/DataSpreadsheet/utils/checkForHoldingKey.js +17 -0
- package/es/components/Datagrid/Datagrid/Datagrid.js +10 -3
- package/es/components/Datagrid/Datagrid/DatagridContent.d.ts +3 -1
- package/es/components/Datagrid/Datagrid/DatagridContent.js +7 -3
- package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +8 -4
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +9 -5
- 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.d.ts +10 -1
- package/es/components/Datagrid/Datagrid/DatagridToolbar.js +22 -5
- 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 +39 -16
- package/es/components/Datagrid/Datagrid/addons/Filtering/constants.d.ts +4 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/constants.js +5 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +102 -6
- 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/Datagrid/addons/stateReducer.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 +6 -4
- 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 +14 -7
- package/es/components/SidePanel/motion/variants.d.ts +39 -12
- package/es/components/SidePanel/motion/variants.js +42 -11
- 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.d.ts +6 -0
- package/es/components/StringFormatter/StringFormatter.js +79 -0
- package/es/components/StringFormatter/index.d.ts +1 -0
- package/es/components/StringFormatter/utils/enums.d.ts +14 -0
- package/es/components/StringFormatter/utils/enums.js +23 -0
- 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 +13 -8
- 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 +59 -43
- 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/components/index.d.ts +2 -0
- package/es/global/js/hooks/index.d.ts +1 -0
- package/es/global/js/hooks/useIsomorphicEffect.d.ts +2 -0
- package/es/global/js/hooks/useIsomorphicEffect.js +14 -0
- package/es/global/js/package-settings.d.ts +2 -0
- package/es/global/js/package-settings.js +2 -0
- package/es/index.js +2 -0
- package/es/node_modules/prop-types/index.js +1 -1
- package/es/settings.d.ts +2 -0
- 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.d.ts +11 -0
- package/lib/components/BigNumbers/BigNumbers.js +245 -0
- package/lib/components/BigNumbers/constants.d.ts +13 -0
- package/lib/components/BigNumbers/constants.js +76 -0
- package/lib/components/BigNumbers/index.d.ts +1 -0
- 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 +60 -58
- package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +42 -40
- package/lib/components/DataSpreadsheet/utils/checkForHoldingKey.d.ts +1 -0
- package/lib/components/DataSpreadsheet/utils/checkForHoldingKey.js +21 -0
- package/lib/components/Datagrid/Datagrid/Datagrid.js +15 -7
- package/lib/components/Datagrid/Datagrid/DatagridContent.d.ts +3 -1
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +37 -32
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +8 -3
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +14 -9
- 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.d.ts +10 -1
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +24 -6
- 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 +37 -14
- package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.d.ts +4 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.js +6 -0
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +98 -2
- 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/Datagrid/addons/stateReducer.js +1 -1
- 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 +7 -4
- 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 +58 -50
- package/lib/components/SidePanel/motion/variants.d.ts +39 -12
- package/lib/components/SidePanel/motion/variants.js +42 -10
- 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.d.ts +6 -0
- package/lib/components/StringFormatter/StringFormatter.js +86 -0
- package/lib/components/StringFormatter/index.d.ts +1 -0
- package/lib/components/StringFormatter/utils/enums.d.ts +14 -0
- package/lib/components/StringFormatter/utils/enums.js +27 -0
- 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 +42 -36
- 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 +61 -44
- 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/components/index.d.ts +2 -0
- package/lib/global/js/hooks/index.d.ts +1 -0
- package/lib/global/js/hooks/useIsomorphicEffect.d.ts +2 -0
- package/lib/global/js/hooks/useIsomorphicEffect.js +18 -0
- package/lib/global/js/package-settings.d.ts +2 -0
- package/lib/global/js/package-settings.js +2 -0
- package/lib/index.js +10 -0
- package/lib/node_modules/prop-types/index.js +1 -1
- package/lib/settings.d.ts +2 -0
- package/package.json +8 -7
- package/scss/components/BigNumbers/_big-numbers.scss +151 -0
- package/scss/components/BigNumbers/_carbon-imports.scss +11 -0
- package/scss/components/BigNumbers/_index-with-carbon.scss +9 -0
- package/scss/components/BigNumbers/_index.scss +8 -0
- package/scss/components/BreadcrumbWithOverflow/_breadcrumb-with-overflow.scss +0 -1
- package/scss/components/Datagrid/styles/_datagrid.scss +61 -4
- package/scss/components/FullPageError/_full-page-error.scss +2 -2
- package/scss/components/SidePanel/_side-panel.scss +9 -2
- package/scss/components/StringFormatter/_carbon-imports.scss +10 -0
- package/scss/components/StringFormatter/_index-with-carbon.scss +9 -0
- package/scss/components/StringFormatter/_index.scss +8 -0
- package/scss/components/StringFormatter/_string-formatter.scss +97 -0
- package/scss/components/Tearsheet/_tearsheet.scss +38 -7
- package/scss/components/UserAvatar/_user-avatar.scss +40 -0
- package/scss/components/_index-with-carbon.scss +2 -0
- package/scss/components/_index.scss +2 -0
- 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
@@ -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(),
|
@@ -1,2 +1,11 @@
|
|
1
1
|
export default DatagridToolbar;
|
2
|
-
declare function DatagridToolbar(datagridState
|
2
|
+
declare function DatagridToolbar({ ariaToolbarLabel, ...datagridState }: {
|
3
|
+
[x: string]: any;
|
4
|
+
ariaToolbarLabel: any;
|
5
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
6
|
+
declare namespace DatagridToolbar {
|
7
|
+
namespace propTypes {
|
8
|
+
let ariaToolbarLabel: PropTypes.Requireable<string>;
|
9
|
+
}
|
10
|
+
}
|
11
|
+
import PropTypes from 'prop-types';
|
@@ -11,16 +11,19 @@ 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 = require('../../../node_modules/prop-types/index.js');
|
14
15
|
var react = require('@carbon/react');
|
15
16
|
var useResizeObserver = require('../../../global/js/hooks/useResizeObserver.js');
|
16
17
|
var settings = require('../../../settings.js');
|
17
|
-
var
|
18
|
+
var cx = require('classnames');
|
18
19
|
var stateReducer = require('./addons/stateReducer.js');
|
19
20
|
|
20
21
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
21
22
|
|
22
23
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
24
|
+
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
23
25
|
|
26
|
+
var _excluded = ["ariaToolbarLabel"];
|
24
27
|
var blockClass = "".concat(settings.pkg.prefix, "--datagrid__table-toolbar");
|
25
28
|
var DatagridBatchActionsToolbar = function DatagridBatchActionsToolbar(datagridState, width, ref) {
|
26
29
|
var _useState = React.useState(false),
|
@@ -99,7 +102,7 @@ var DatagridBatchActionsToolbar = function DatagridBatchActionsToolbar(datagridS
|
|
99
102
|
};
|
100
103
|
return /*#__PURE__*/React__default["default"].createElement(react.MenuButton, {
|
101
104
|
label: batchActionMenuButtonLabelText,
|
102
|
-
className:
|
105
|
+
className: cx__default["default"]([menuClass, _rollupPluginBabelHelpers.defineProperty({}, "".concat(menuClass, "-icon-only"), width <= minWidthBeforeOverflowIcon)]),
|
103
106
|
tabIndex: totalSelected > 0 ? 0 : -1
|
104
107
|
}, toolbarBatchActions === null || toolbarBatchActions === void 0 ? void 0 : toolbarBatchActions.map(function (batchAction, index) {
|
105
108
|
var hidden = index < 2 && !displayAllInMenu;
|
@@ -115,6 +118,12 @@ var DatagridBatchActionsToolbar = function DatagridBatchActionsToolbar(datagridS
|
|
115
118
|
}
|
116
119
|
};
|
117
120
|
var onCancelHandler = function onCancelHandler() {
|
121
|
+
stateReducer.handleSelectAllRowData({
|
122
|
+
dispatch: dispatch,
|
123
|
+
rows: [],
|
124
|
+
getRowId: getRowId,
|
125
|
+
isChecked: false
|
126
|
+
});
|
118
127
|
toggleAllRowsSelected(false);
|
119
128
|
setGlobalFilter(null);
|
120
129
|
};
|
@@ -152,7 +161,9 @@ var DatagridBatchActionsToolbar = function DatagridBatchActionsToolbar(datagridS
|
|
152
161
|
}
|
153
162
|
})), renderBatchActionOverflow());
|
154
163
|
};
|
155
|
-
var DatagridToolbar = function DatagridToolbar(
|
164
|
+
var DatagridToolbar = function DatagridToolbar(_ref2) {
|
165
|
+
var ariaToolbarLabel = _ref2.ariaToolbarLabel,
|
166
|
+
datagridState = _rollupPluginBabelHelpers.objectWithoutProperties(_ref2, _excluded);
|
156
167
|
var ref = React.useRef(null);
|
157
168
|
var _useResizeObserver = useResizeObserver.useResizeObserver(ref),
|
158
169
|
width = _useResizeObserver.width;
|
@@ -163,10 +174,17 @@ var DatagridToolbar = function DatagridToolbar(datagridState) {
|
|
163
174
|
var getRowHeight = rowSize || 'lg';
|
164
175
|
return batchActions && DatagridActions ? /*#__PURE__*/React__default["default"].createElement("div", {
|
165
176
|
ref: ref,
|
166
|
-
className:
|
167
|
-
}, /*#__PURE__*/React__default["default"].createElement(react.TableToolbar,
|
177
|
+
className: cx__default["default"]([blockClass, "".concat(blockClass, "--").concat(getRowHeight)])
|
178
|
+
}, /*#__PURE__*/React__default["default"].createElement(react.TableToolbar, {
|
179
|
+
"aria-label": ariaToolbarLabel
|
180
|
+
}, DatagridActions && /*#__PURE__*/React__default["default"].createElement(DatagridActions, datagridState), DatagridBatchActionsToolbar && DatagridBatchActionsToolbar(datagridState, width, ref))) : DatagridActions ? /*#__PURE__*/React__default["default"].createElement("div", {
|
168
181
|
className: blockClass
|
169
|
-
}, /*#__PURE__*/React__default["default"].createElement(react.TableToolbar,
|
182
|
+
}, /*#__PURE__*/React__default["default"].createElement(react.TableToolbar, {
|
183
|
+
"aria-label": ariaToolbarLabel
|
184
|
+
}, DatagridActions && /*#__PURE__*/React__default["default"].createElement(DatagridActions, datagridState), DatagridBatchActions && DatagridBatchActions(datagridState))) : null;
|
185
|
+
};
|
186
|
+
DatagridToolbar.propTypes = {
|
187
|
+
ariaToolbarLabel: index["default"].string
|
170
188
|
};
|
171
189
|
var DatagridToolbar$1 = DatagridToolbar;
|
172
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
|
|
@@ -11,11 +11,11 @@ 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 update = require('immutability-helper');
|
17
17
|
var settings = require('../../../../../settings.js');
|
18
|
-
var
|
18
|
+
var cx = require('classnames');
|
19
19
|
var DraggableItemsList = require('./DraggableItemsList.js');
|
20
20
|
var uuidv4 = require('../../../../../global/js/utils/uuidv4.js');
|
21
21
|
|
@@ -23,6 +23,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
23
23
|
|
24
24
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
25
25
|
var update__default = /*#__PURE__*/_interopDefaultLegacy(update);
|
26
|
+
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
26
27
|
|
27
28
|
var blockClass = "".concat(settings.pkg.prefix, "--datagrid");
|
28
29
|
var Columns = function Columns(_ref) {
|
@@ -66,7 +67,7 @@ var Columns = function Columns(_ref) {
|
|
66
67
|
className: "".concat(blockClass, "__shared-ui--assistive-text")
|
67
68
|
}, filterString.length === 0 ? assistiveTextInstructionsLabel : assistiveTextDisabledInstructionsLabel), /*#__PURE__*/React__default["default"].createElement("div", {
|
68
69
|
id: "".concat(blockClass, "__customize-columns-select-all"),
|
69
|
-
className:
|
70
|
+
className: cx__default["default"]("".concat(blockClass, "__customize-columns-select-all"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__customize-columns-select-all--selected"), getVisibleColumnsCount() > 0)),
|
70
71
|
selected: getVisibleColumnsCount() > 0
|
71
72
|
}, /*#__PURE__*/React__default["default"].createElement(react.Checkbox, {
|
72
73
|
className: "".concat(blockClass, "__customize-columns-checkbox-wrapper"),
|
@@ -87,17 +88,17 @@ var Columns = function Columns(_ref) {
|
|
87
88
|
})));
|
88
89
|
};
|
89
90
|
Columns.propTypes = {
|
90
|
-
assistiveTextDisabledInstructionsLabel: index
|
91
|
-
assistiveTextInstructionsLabel: index
|
92
|
-
columns: index
|
93
|
-
disabledInstructionsLabel: index
|
94
|
-
filterString: index
|
95
|
-
getVisibleColumnsCount: index
|
96
|
-
instructionsLabel: index
|
97
|
-
onSelectColumn: index
|
98
|
-
selectAllLabel: index
|
99
|
-
setColumnStatus: index
|
100
|
-
setColumnsObject: index
|
91
|
+
assistiveTextDisabledInstructionsLabel: index["default"].string,
|
92
|
+
assistiveTextInstructionsLabel: index["default"].string,
|
93
|
+
columns: index["default"].array.isRequired,
|
94
|
+
disabledInstructionsLabel: index["default"].string,
|
95
|
+
filterString: index["default"].string.isRequired,
|
96
|
+
getVisibleColumnsCount: index["default"].func.isRequired,
|
97
|
+
instructionsLabel: index["default"].string,
|
98
|
+
onSelectColumn: index["default"].func.isRequired,
|
99
|
+
selectAllLabel: index["default"].string,
|
100
|
+
setColumnStatus: index["default"].func,
|
101
|
+
setColumnsObject: index["default"].func.isRequired
|
101
102
|
};
|
102
103
|
var Columns$1 = Columns;
|
103
104
|
|
@@ -12,8 +12,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
12
12
|
var _rollupPluginBabelHelpers = require('../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
13
13
|
var icons = require('@carbon/react/icons');
|
14
14
|
var react = require('@carbon/react');
|
15
|
-
var
|
16
|
-
var index
|
15
|
+
var cx = require('classnames');
|
16
|
+
var index = require('../../../../../node_modules/prop-types/index.js');
|
17
17
|
var React = require('react');
|
18
18
|
var settings = require('../../../../../settings.js');
|
19
19
|
var constants = require('./constants.js');
|
@@ -27,6 +27,7 @@ var ActionSet = require('../../../../ActionSet/ActionSet.js');
|
|
27
27
|
|
28
28
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
29
29
|
|
30
|
+
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
30
31
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
31
32
|
|
32
33
|
var _Filter;
|
@@ -225,17 +226,17 @@ var FilterFlyout = function FilterFlyout(_ref) {
|
|
225
226
|
kind: "ghost",
|
226
227
|
align: "bottom",
|
227
228
|
onClick: open ? closeFlyout : openFlyout,
|
228
|
-
className:
|
229
|
+
className: cx__default["default"]("".concat(componentClass, "__trigger"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(componentClass, "__trigger--open"), open)),
|
229
230
|
disabled: data.length === 0
|
230
231
|
}, _Filter || (_Filter = /*#__PURE__*/React__default["default"].createElement(icons.Filter, null))), /*#__PURE__*/React__default["default"].createElement("div", {
|
231
|
-
className:
|
232
|
+
className: cx__default["default"](componentClass, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(componentClass, "--open"), open), "".concat(componentClass, "--batch"), showActionSet), "".concat(componentClass, "--instant"), !showActionSet)),
|
232
233
|
ref: flyoutInnerRef
|
233
234
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
234
235
|
className: "".concat(componentClass, "__inner-container")
|
235
236
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
236
237
|
className: "".concat(componentClass, "__title")
|
237
238
|
}, title), /*#__PURE__*/React__default["default"].createElement("div", {
|
238
|
-
className:
|
239
|
+
className: cx__default["default"]("".concat(componentClass, "__filters"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(componentClass, "__stacked"), stackedLayout)),
|
239
240
|
ref: flyoutFiltersContainerRef
|
240
241
|
}, renderFilters())), renderActionSet()));
|
241
242
|
};
|
@@ -243,63 +244,63 @@ FilterFlyout.propTypes = {
|
|
243
244
|
/**
|
244
245
|
* All data rows in the table
|
245
246
|
*/
|
246
|
-
data: index
|
247
|
+
data: index["default"].array.isRequired,
|
247
248
|
/**
|
248
249
|
* Array of filters to render
|
249
250
|
*/
|
250
|
-
filters: index
|
251
|
-
type: index
|
252
|
-
column: index
|
253
|
-
props: index
|
251
|
+
filters: index["default"].arrayOf(index["default"].shape({
|
252
|
+
type: index["default"].string.isRequired,
|
253
|
+
column: index["default"].string.isRequired,
|
254
|
+
props: index["default"].object.isRequired
|
254
255
|
})).isRequired,
|
255
256
|
/**
|
256
257
|
* Icon description for the filter flyout button
|
257
258
|
*/
|
258
|
-
flyoutIconDescription: index
|
259
|
+
flyoutIconDescription: index["default"].string,
|
259
260
|
/**
|
260
261
|
* Callback when the apply button is clicked
|
261
262
|
*/
|
262
|
-
onApply: index
|
263
|
+
onApply: index["default"].func,
|
263
264
|
/**
|
264
265
|
* Callback when the cancel button is clicked
|
265
266
|
*/
|
266
|
-
onCancel: index
|
267
|
+
onCancel: index["default"].func,
|
267
268
|
/**
|
268
269
|
* Callback when the flyout closes
|
269
270
|
*/
|
270
|
-
onFlyoutClose: index
|
271
|
+
onFlyoutClose: index["default"].func,
|
271
272
|
/**
|
272
273
|
* Callback when the flyout opens
|
273
274
|
*/
|
274
|
-
onFlyoutOpen: index
|
275
|
+
onFlyoutOpen: index["default"].func,
|
275
276
|
/**
|
276
277
|
* Label text of the primary action in the flyout
|
277
278
|
*/
|
278
|
-
primaryActionLabel: index
|
279
|
+
primaryActionLabel: index["default"].string,
|
279
280
|
/**
|
280
281
|
* Filters from react table's state
|
281
282
|
*/
|
282
|
-
reactTableFiltersState: index
|
283
|
-
id: index
|
284
|
-
type: index
|
285
|
-
value: index
|
283
|
+
reactTableFiltersState: index["default"].arrayOf(index["default"].shape({
|
284
|
+
id: index["default"].string.isRequired,
|
285
|
+
type: index["default"].string.isRequired,
|
286
|
+
value: index["default"].any.isRequired
|
286
287
|
})),
|
287
288
|
/**
|
288
289
|
* Label text of the secondary action in the flyout
|
289
290
|
*/
|
290
|
-
secondaryActionLabel: index
|
291
|
+
secondaryActionLabel: index["default"].string,
|
291
292
|
/**
|
292
293
|
* Function that sets all the filters, this comes from the datagridState
|
293
294
|
*/
|
294
|
-
setAllFilters: index
|
295
|
+
setAllFilters: index["default"].func.isRequired,
|
295
296
|
/**
|
296
297
|
* Title of the filter flyout
|
297
298
|
*/
|
298
|
-
title: index
|
299
|
+
title: index["default"].string,
|
299
300
|
/**
|
300
301
|
* The update method used to apply the filters
|
301
302
|
*/
|
302
|
-
updateMethod: index
|
303
|
+
updateMethod: index["default"].oneOf([constants.BATCH, constants.INSTANT]).isRequired
|
303
304
|
};
|
304
305
|
var FilterFlyout$1 = FilterFlyout;
|
305
306
|
|