@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
@@ -12,8 +12,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
12
12
|
var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
|
13
13
|
var React = require('react');
|
14
14
|
var useResizeObserver = require('../../global/js/hooks/useResizeObserver.js');
|
15
|
-
var index
|
16
|
-
var
|
15
|
+
var index = require('../../node_modules/prop-types/index.js');
|
16
|
+
var cx = require('classnames');
|
17
17
|
var settings = require('../../settings.js');
|
18
18
|
var uuidv4 = require('../../global/js/utils/uuidv4.js');
|
19
19
|
var devtools = require('../../global/js/utils/devtools.js');
|
@@ -23,6 +23,7 @@ var usePortalTarget = require('../../global/js/hooks/usePortalTarget.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 _excluded = ["additionalInfo", "className", "closeIconDescription", "copyrightText", "content", "links", "logo", "modalAriaLabel", "onClose", "open", "portalTarget", "title", "version"];
|
28
29
|
|
@@ -79,7 +80,7 @@ exports.AboutModal = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
79
80
|
// Detect resize of the ModalBody to recalculate whether scrolling is enabled
|
80
81
|
useResizeObserver.useResizeObserver(bodyRef, handleResize);
|
81
82
|
return renderPortalUse( /*#__PURE__*/React__default["default"].createElement(react.ComposedModal, _rollupPluginBabelHelpers["extends"]({}, rest, {
|
82
|
-
className:
|
83
|
+
className: cx__default["default"](blockClass,
|
83
84
|
// Apply the block class to the main HTML element
|
84
85
|
className // Apply any supplied class names to the main HTML element.
|
85
86
|
),
|
@@ -137,61 +138,61 @@ exports.AboutModal.propTypes = {
|
|
137
138
|
* to build your product you can provide this in the additionalInfo.
|
138
139
|
* Additional information will be displayed in the footer.
|
139
140
|
*/
|
140
|
-
additionalInfo: index
|
141
|
+
additionalInfo: index["default"].node,
|
141
142
|
/**
|
142
143
|
* Provide an optional class to be applied to the modal root node.
|
143
144
|
*/
|
144
|
-
className: index
|
145
|
+
className: index["default"].string,
|
145
146
|
/**
|
146
147
|
* The accessibility title for the close icon.
|
147
148
|
*/
|
148
|
-
closeIconDescription: index
|
149
|
+
closeIconDescription: index["default"].string.isRequired,
|
149
150
|
/**
|
150
151
|
* Subhead text providing any relevant product disclaimers including
|
151
152
|
* legal information (optional)
|
152
153
|
*/
|
153
|
-
content: index
|
154
|
+
content: index["default"].node,
|
154
155
|
/**
|
155
156
|
* Trademark and copyright information. Displays first year of
|
156
157
|
* product release to current year.
|
157
158
|
*/
|
158
|
-
copyrightText: index
|
159
|
+
copyrightText: index["default"].string.isRequired,
|
159
160
|
/**
|
160
161
|
* An array of Carbon `Link` component if there are additional information
|
161
162
|
* to call out within the card. The about modal should be used to display
|
162
163
|
* the product information and not where users go to find help (optional)
|
163
164
|
*/
|
164
|
-
links: index
|
165
|
+
links: index["default"].arrayOf(index["default"].element),
|
165
166
|
/**
|
166
167
|
* A visual symbol used to represent the product.
|
167
168
|
*/
|
168
|
-
logo: index
|
169
|
+
logo: index["default"].node.isRequired,
|
169
170
|
/**
|
170
171
|
* Specifies aria label for AboutModal
|
171
172
|
*/
|
172
|
-
modalAriaLabel: index
|
173
|
+
modalAriaLabel: index["default"].string,
|
173
174
|
/**
|
174
175
|
* Specifies an optional handler which is called when the AboutModal
|
175
176
|
* is closed. Returning `false` prevents the AboutModal from closing.
|
176
177
|
*/
|
177
|
-
onClose: index
|
178
|
+
onClose: index["default"].func,
|
178
179
|
/**
|
179
180
|
* Specifies whether the AboutModal is open or not.
|
180
181
|
*/
|
181
|
-
open: index
|
182
|
+
open: index["default"].bool,
|
182
183
|
/**
|
183
184
|
* The DOM node the tearsheet should be rendered within. Defaults to document.body.
|
184
185
|
*/
|
185
|
-
portalTarget: index
|
186
|
+
portalTarget: index["default"].node,
|
186
187
|
/**
|
187
188
|
* Header text that provides the product name. The IBM Services logo
|
188
189
|
* consists of two discrete, but required, elements: the iconic
|
189
190
|
* IBM 8-bar logo represented alongside the IBM Services logotype.
|
190
191
|
* Please follow these guidelines to ensure proper execution.
|
191
192
|
*/
|
192
|
-
title: index
|
193
|
+
title: index["default"].node.isRequired,
|
193
194
|
/**
|
194
195
|
* Text that provides information on the version number of your product.
|
195
196
|
*/
|
196
|
-
version: index
|
197
|
+
version: index["default"].string.isRequired
|
197
198
|
};
|
@@ -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 settings = require('../../settings.js');
|
17
17
|
var useResizeObserver = require('../../global/js/hooks/useResizeObserver.js');
|
18
18
|
var react = require('@carbon/react');
|
@@ -24,6 +24,7 @@ var ActionBarOverflowItems = require('./ActionBarOverflowItems.js');
|
|
24
24
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
25
25
|
|
26
26
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
27
|
+
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
27
28
|
|
28
29
|
var _excluded = ["actions", "className", "maxVisible", "menuOptionsClass", "onWidthChange", "overflowAriaLabel", "rightAlign"],
|
29
30
|
_excluded2 = ["key", "id"],
|
@@ -189,11 +190,11 @@ var ActionBar = /*#__PURE__*/React__default["default"].forwardRef(function (_ref
|
|
189
190
|
useResizeObserver.useResizeObserver(sizingRef, handleResize);
|
190
191
|
useResizeObserver.useResizeObserver(localRef, handleResize);
|
191
192
|
return /*#__PURE__*/React__default["default"].createElement("div", _rollupPluginBabelHelpers["extends"]({}, rest, {
|
192
|
-
className:
|
193
|
+
className: cx__default["default"]([blockClass, className]),
|
193
194
|
ref: localRef
|
194
195
|
}), hiddenSizingItems, /*#__PURE__*/React__default["default"].createElement("div", {
|
195
196
|
ref: refDisplayedItems,
|
196
|
-
className:
|
197
|
+
className: cx__default["default"](["".concat(blockClass, "__displayed-items"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__displayed-items--right"), rightAlign)])
|
197
198
|
}, displayedItems));
|
198
199
|
});
|
199
200
|
ActionBar.displayName = componentName;
|
@@ -213,43 +214,43 @@ ActionBar.propTypes = {
|
|
213
214
|
*
|
214
215
|
* Carbon Button API https://react.carbondesignsystem.com/?path=/docs/components-button--default#component-api
|
215
216
|
*/
|
216
|
-
actions: index
|
217
|
+
actions: index["default"].arrayOf(index["default"].shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, propsHelper.prepareProps(react.Button.propTypes, [
|
217
218
|
// props not desired from Button.propTypes
|
218
219
|
'kind', 'size', 'tooltipPosition', 'tooltipAlignment'])), {}, {
|
219
220
|
// Additional props
|
220
|
-
key: index
|
221
|
+
key: index["default"].string.isRequired,
|
221
222
|
// Redefine as form different to Button and a key prop used by ActionBarItems
|
222
|
-
iconDescription: index
|
223
|
-
label: index
|
223
|
+
iconDescription: index["default"].string.isRequired,
|
224
|
+
label: index["default"].string.isRequired,
|
224
225
|
renderIcon: react.Button.propTypes.renderIcon.isRequired,
|
225
226
|
// We duplicate onClick here to improve DocGen in Storybook
|
226
|
-
onClick: index
|
227
|
+
onClick: index["default"].func
|
227
228
|
}))),
|
228
229
|
// expects action bar item as array or in fragment,
|
229
230
|
/**
|
230
231
|
* className
|
231
232
|
*/
|
232
|
-
className: index
|
233
|
+
className: index["default"].string,
|
233
234
|
/**
|
234
235
|
* maxVisible : Maximum action bar items visible before going into the overflow menu
|
235
236
|
*/
|
236
|
-
maxVisible: index
|
237
|
+
maxVisible: index["default"].number,
|
237
238
|
/**
|
238
239
|
* class name applied to the overflow options
|
239
240
|
*/
|
240
|
-
menuOptionsClass: index
|
241
|
+
menuOptionsClass: index["default"].string,
|
241
242
|
/**
|
242
243
|
* onItemCountChange - event reporting maxWidth
|
243
244
|
*/
|
244
|
-
onWidthChange: index
|
245
|
+
onWidthChange: index["default"].func,
|
245
246
|
/**
|
246
247
|
* overflowAriaLabel label for open close button overflow used for action bar items that do nto fit.
|
247
248
|
*/
|
248
|
-
overflowAriaLabel: index
|
249
|
+
overflowAriaLabel: index["default"].string.isRequired,
|
249
250
|
/**
|
250
251
|
* align tags to right of available space
|
251
252
|
*/
|
252
|
-
rightAlign: index
|
253
|
+
rightAlign: index["default"].bool
|
253
254
|
};
|
254
255
|
|
255
256
|
exports.ActionBar = ActionBar;
|
@@ -11,14 +11,15 @@ 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 settings = require('../../settings.js');
|
17
17
|
var react = require('@carbon/react');
|
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 = ["label", "className", "renderIcon"];
|
24
25
|
|
@@ -39,7 +40,7 @@ exports.ActionBarItem = /*#__PURE__*/React__default["default"].forwardRef(functi
|
|
39
40
|
var Icon = renderIcon;
|
40
41
|
return /*#__PURE__*/React__default["default"].createElement(react.IconButton, _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, rest), {}, {
|
41
42
|
ref: ref,
|
42
|
-
className:
|
43
|
+
className: cx__default["default"](blockClass, className),
|
43
44
|
kind: 'ghost',
|
44
45
|
size: 'md',
|
45
46
|
align: 'bottom-right',
|
@@ -73,25 +74,25 @@ exports.ActionBarItem.propTypes = _rollupPluginBabelHelpers.objectSpread2(_rollu
|
|
73
74
|
*
|
74
75
|
* (inherited from Carbon Button)
|
75
76
|
*/
|
76
|
-
className: index
|
77
|
+
className: index["default"].string,
|
77
78
|
/**
|
78
79
|
* If specifying the `renderIcon` prop, provide a description for that icon that can
|
79
80
|
* be read by screen readers
|
80
81
|
*
|
81
82
|
* (inherited from Carbon Button)
|
82
83
|
*/
|
83
|
-
label: index
|
84
|
+
label: index["default"].string,
|
84
85
|
/**
|
85
86
|
* Optional click handler
|
86
87
|
*
|
87
88
|
* (inherited from Carbon Button)
|
88
89
|
*/
|
89
|
-
onClick: index
|
90
|
+
onClick: index["default"].func,
|
90
91
|
/**
|
91
92
|
* Optional prop to allow overriding the icon rendering.
|
92
93
|
* Can be a React component class
|
93
94
|
*
|
94
95
|
* (inherited from Carbon Button)
|
95
96
|
*/
|
96
|
-
renderIcon: index
|
97
|
+
renderIcon: index["default"].oneOfType([index["default"].func, index["default"].object])
|
97
98
|
});
|
@@ -10,8 +10,8 @@
|
|
10
10
|
Object.defineProperty(exports, '__esModule', { value: true });
|
11
11
|
|
12
12
|
var React = require('react');
|
13
|
-
var index
|
14
|
-
var
|
13
|
+
var index = require('../../node_modules/prop-types/index.js');
|
14
|
+
var cx = require('classnames');
|
15
15
|
var react = require('@carbon/react');
|
16
16
|
var uuidv4 = require('../../global/js/utils/uuidv4.js');
|
17
17
|
var settings = require('../../settings.js');
|
@@ -19,6 +19,7 @@ var settings = require('../../settings.js');
|
|
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
|
// Copyright IBM Corp. 2020, 2023
|
24
25
|
var blockClass = "".concat(settings.pkg.prefix, "--action-bar-overflow-items");
|
@@ -31,12 +32,12 @@ var ActionBarOverflowItems = function ActionBarOverflowItems(_ref) {
|
|
31
32
|
var internalId = React.useRef(uuidv4["default"]());
|
32
33
|
return /*#__PURE__*/React__default["default"].createElement(react.OverflowMenu, {
|
33
34
|
"aria-label": overflowAriaLabel,
|
34
|
-
className:
|
35
|
+
className: cx__default["default"](blockClass, className),
|
35
36
|
direction: "bottom",
|
36
37
|
flipped: true,
|
37
38
|
iconDescription: overflowAriaLabel // also needs setting to avoid a11y "Accessible name does not match or contain the visible label text"
|
38
39
|
,
|
39
|
-
menuOptionsClass:
|
40
|
+
menuOptionsClass: cx__default["default"]("".concat(blockClass, "__options"), menuOptionsClass)
|
40
41
|
}, React__default["default"].Children.map(overflowItems, function (item, index) {
|
41
42
|
// This uses a copy of a menu item option
|
42
43
|
// NOTE: Cannot use a real Tooltip icon below as it uses a <button /> the
|
@@ -61,19 +62,19 @@ ActionBarOverflowItems.propTypes = {
|
|
61
62
|
/**
|
62
63
|
* className
|
63
64
|
*/
|
64
|
-
className: index
|
65
|
+
className: index["default"].string,
|
65
66
|
/**
|
66
67
|
* class name applied to the overflow options
|
67
68
|
*/
|
68
|
-
menuOptionsClass: index
|
69
|
+
menuOptionsClass: index["default"].string,
|
69
70
|
/**
|
70
71
|
* overflowAriaLabel label for open close button overflow used for action bar items that do nto fit.
|
71
72
|
*/
|
72
|
-
overflowAriaLabel: index
|
73
|
+
overflowAriaLabel: index["default"].string,
|
73
74
|
/**
|
74
75
|
* overflowItems: items to bre shown in the ActionBar overflow menu
|
75
76
|
*/
|
76
|
-
overflowItems: index
|
77
|
+
overflowItems: index["default"].arrayOf(index["default"].element)
|
77
78
|
};
|
78
79
|
|
79
80
|
exports.ActionBarOverflowItems = ActionBarOverflowItems;
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
12
12
|
var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
|
13
13
|
var React = require('react');
|
14
14
|
var index = require('../../node_modules/prop-types/index.js');
|
15
|
-
var
|
15
|
+
var cx = require('classnames');
|
16
16
|
var settings = require('../../settings.js');
|
17
17
|
var propsHelper = require('../../global/js/utils/props-helper.js');
|
18
18
|
var react = require('@carbon/react');
|
@@ -20,6 +20,7 @@ var react = require('@carbon/react');
|
|
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 _InlineLoading;
|
25
26
|
var _excluded = ["className", "disabled", "kind", "label", "loading", "isExpressive"],
|
@@ -40,7 +41,7 @@ var ActionSetButton = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
40
41
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
41
42
|
return /*#__PURE__*/React__default["default"].createElement(react.Button, _rollupPluginBabelHelpers["extends"]({}, rest, {
|
42
43
|
isExpressive: isExpressive,
|
43
|
-
className:
|
44
|
+
className: cx__default["default"](className, ["".concat(blockClass, "__action-button"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__action-button--ghost"), kind === 'ghost' || kind === 'danger--ghost'), "".concat(blockClass, "__action-button--expressive"), isExpressive)]),
|
44
45
|
disabled: disabled || loading || false,
|
45
46
|
kind: kind,
|
46
47
|
ref: ref
|
@@ -105,7 +106,7 @@ var ActionSet = /*#__PURE__*/React__default["default"].forwardRef(function (_ref
|
|
105
106
|
return (buttonOrder(action1.kind || defaultKind) - buttonOrder(action2.kind || defaultKind)) * (stacking ? -1 : 1);
|
106
107
|
});
|
107
108
|
return /*#__PURE__*/React__default["default"].createElement(react.ButtonSet, _rollupPluginBabelHelpers["extends"]({}, rest, {
|
108
|
-
className:
|
109
|
+
className: cx__default["default"](blockClass, className, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "--row-single"), !stacking && buttons.length === 1), "".concat(blockClass, "--row-double"), !stacking && buttons.length === 2), "".concat(blockClass, "--row-triple"), !stacking && buttons.length === 3), "".concat(blockClass, "--row-quadruple"), !stacking && buttons.length >= 4), "".concat(blockClass, "--stacking"), stacking), "".concat(blockClass, "--").concat(size)),
|
109
110
|
ref: ref,
|
110
111
|
role: "presentation",
|
111
112
|
stacked: stacking
|
@@ -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 AddSelectSidebar = require('./AddSelectSidebar.js');
|
18
18
|
var AddSelectBreadcrumbs = require('./AddSelectBreadcrumbs.js');
|
@@ -32,6 +32,7 @@ var TearsheetNarrow = require('../Tearsheet/TearsheetNarrow.js');
|
|
32
32
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
33
33
|
|
34
34
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
35
|
+
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
35
36
|
|
36
37
|
var _excluded = ["className", "clearFiltersText", "closeIconDescription", "columnInputPlaceholder", "defaultModifiers", "description", "filterByLabel", "globalFilterOpts", "globalFiltersLabel", "globalFiltersIconDescription", "globalFiltersPlaceholderText", "globalFiltersPrimaryButtonText", "globalFiltersSecondaryButtonText", "globalSearchLabel", "globalSearchPlaceholder", "globalSortBy", "illustrationTheme", "influencerTitle", "items", "itemsLabel", "metaIconDescription", "metaPanelTitle", "multi", "navIconDescription", "noResultsDescription", "noResultsTitle", "noSelectionDescription", "noSelectionTitle", "normalizedItems", "onClose", "onCloseButtonText", "onSubmit", "onSubmitButtonText", "open", "portalTarget", "searchResultsTitle", "sortByLabel", "title", "useNormalizedItems"];
|
37
38
|
var blockClass = "".concat(settings.pkg.prefix, "--add-select");
|
@@ -132,7 +133,7 @@ var AddSelectBody = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
132
133
|
resetState();
|
133
134
|
onClose();
|
134
135
|
};
|
135
|
-
var tearsheetClassnames =
|
136
|
+
var tearsheetClassnames = cx__default["default"](className, blockClass, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__single"), !multi), "".concat(blockClass, "__multi"), multi));
|
136
137
|
var globalFilterKeys = Object.keys(appliedGlobalFilters);
|
137
138
|
var globalFiltersApplied = globalFilterKeys.length > 0;
|
138
139
|
|
@@ -252,7 +253,7 @@ var AddSelectBody = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
252
253
|
hasFiltersApplied: globalFiltersApplied,
|
253
254
|
clearFiltersText: clearFiltersText
|
254
255
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
255
|
-
className:
|
256
|
+
className: cx__default["default"]("".concat(blockClass, "__sub-header"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__sub-header-multi"), multi))
|
256
257
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
257
258
|
className: "".concat(blockClass, "__tags")
|
258
259
|
}, showBreadsCrumbs ? /*#__PURE__*/React__default["default"].createElement(AddSelectBreadcrumbs.AddSelectBreadcrumbs, {
|
@@ -303,72 +304,72 @@ var AddSelectBody = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
303
304
|
return /*#__PURE__*/React__default["default"].createElement(TearsheetNarrow.TearsheetNarrow, commonTearsheetProps, body);
|
304
305
|
});
|
305
306
|
AddSelectBody.propTypes = {
|
306
|
-
className: index
|
307
|
-
clearFiltersText: index
|
308
|
-
closeIconDescription: index
|
309
|
-
columnInputPlaceholder: index
|
310
|
-
defaultModifiers: index
|
311
|
-
description: index
|
312
|
-
filterByLabel: index
|
313
|
-
globalFilterOpts: index
|
314
|
-
globalFiltersIconDescription: index
|
315
|
-
globalFiltersLabel: index
|
316
|
-
globalFiltersPlaceholderText: index
|
317
|
-
globalFiltersPrimaryButtonText: index
|
318
|
-
globalFiltersSecondaryButtonText: index
|
319
|
-
globalSearchLabel: index
|
320
|
-
globalSearchPlaceholder: index
|
321
|
-
globalSortBy: index
|
322
|
-
illustrationTheme: index
|
323
|
-
influencerTitle: index
|
324
|
-
items: index
|
325
|
-
modifiers: index
|
326
|
-
id: index
|
327
|
-
label: index
|
328
|
-
options: index
|
307
|
+
className: index["default"].string,
|
308
|
+
clearFiltersText: index["default"].string,
|
309
|
+
closeIconDescription: index["default"].string,
|
310
|
+
columnInputPlaceholder: index["default"].string,
|
311
|
+
defaultModifiers: index["default"].array,
|
312
|
+
description: index["default"].string,
|
313
|
+
filterByLabel: index["default"].string,
|
314
|
+
globalFilterOpts: index["default"].array,
|
315
|
+
globalFiltersIconDescription: index["default"].string,
|
316
|
+
globalFiltersLabel: index["default"].string,
|
317
|
+
globalFiltersPlaceholderText: index["default"].string,
|
318
|
+
globalFiltersPrimaryButtonText: index["default"].string,
|
319
|
+
globalFiltersSecondaryButtonText: index["default"].string,
|
320
|
+
globalSearchLabel: index["default"].string.isRequired,
|
321
|
+
globalSearchPlaceholder: index["default"].string,
|
322
|
+
globalSortBy: index["default"].array,
|
323
|
+
illustrationTheme: index["default"].oneOf(['light', 'dark']),
|
324
|
+
influencerTitle: index["default"].string,
|
325
|
+
items: index["default"].shape({
|
326
|
+
modifiers: index["default"].shape({
|
327
|
+
id: index["default"].string,
|
328
|
+
label: index["default"].string,
|
329
|
+
options: index["default"].array
|
329
330
|
}),
|
330
|
-
sortBy: index
|
331
|
-
filterBy: index
|
332
|
-
entries: index
|
333
|
-
avatar: index
|
334
|
-
alt: index
|
335
|
-
icon: index
|
336
|
-
src: index
|
337
|
-
theme: index
|
331
|
+
sortBy: index["default"].array,
|
332
|
+
filterBy: index["default"].array,
|
333
|
+
entries: index["default"].arrayOf(index["default"].shape({
|
334
|
+
avatar: index["default"].shape({
|
335
|
+
alt: index["default"].string,
|
336
|
+
icon: index["default"].oneOfType([index["default"].func, index["default"].object]),
|
337
|
+
src: index["default"].string,
|
338
|
+
theme: index["default"].oneOf(['light', 'dark'])
|
338
339
|
}),
|
339
|
-
children: index
|
340
|
-
icon: index
|
341
|
-
id: index
|
342
|
-
meta: index
|
343
|
-
id: index
|
344
|
-
title: index
|
345
|
-
value: index
|
346
|
-
})), index
|
347
|
-
subtitle: index
|
348
|
-
title: index
|
349
|
-
value: index
|
340
|
+
children: index["default"].object,
|
341
|
+
icon: index["default"].oneOfType([index["default"].func, index["default"].object]),
|
342
|
+
id: index["default"].string.isRequired,
|
343
|
+
meta: index["default"].oneOfType([index["default"].arrayOf(index["default"].shape({
|
344
|
+
id: index["default"].string,
|
345
|
+
title: index["default"].string,
|
346
|
+
value: index["default"].string
|
347
|
+
})), index["default"].node]),
|
348
|
+
subtitle: index["default"].string,
|
349
|
+
title: index["default"].string.isRequired,
|
350
|
+
value: index["default"].string.isRequired
|
350
351
|
}))
|
351
352
|
}),
|
352
|
-
itemsLabel: index
|
353
|
-
metaIconDescription: index
|
354
|
-
metaPanelTitle: index
|
355
|
-
multi: index
|
356
|
-
navIconDescription: index
|
357
|
-
noResultsDescription: index
|
358
|
-
noResultsTitle: index
|
359
|
-
noSelectionDescription: index
|
360
|
-
noSelectionTitle: index
|
361
|
-
normalizedItems: index
|
362
|
-
onClose: index
|
363
|
-
onCloseButtonText: index
|
364
|
-
onSubmit: index
|
365
|
-
onSubmitButtonText: index
|
366
|
-
open: index
|
367
|
-
portalTarget: index
|
368
|
-
searchResultsTitle: index
|
369
|
-
sortByLabel: index
|
370
|
-
title: index
|
371
|
-
useNormalizedItems: index
|
353
|
+
itemsLabel: index["default"].string,
|
354
|
+
metaIconDescription: index["default"].string,
|
355
|
+
metaPanelTitle: index["default"].string,
|
356
|
+
multi: index["default"].bool,
|
357
|
+
navIconDescription: index["default"].string,
|
358
|
+
noResultsDescription: index["default"].string,
|
359
|
+
noResultsTitle: index["default"].string,
|
360
|
+
noSelectionDescription: index["default"].string,
|
361
|
+
noSelectionTitle: index["default"].string,
|
362
|
+
normalizedItems: index["default"].object,
|
363
|
+
onClose: index["default"].func,
|
364
|
+
onCloseButtonText: index["default"].string,
|
365
|
+
onSubmit: index["default"].func,
|
366
|
+
onSubmitButtonText: index["default"].string,
|
367
|
+
open: index["default"].bool,
|
368
|
+
portalTarget: index["default"].node,
|
369
|
+
searchResultsTitle: index["default"].string,
|
370
|
+
sortByLabel: index["default"].string,
|
371
|
+
title: index["default"].string,
|
372
|
+
useNormalizedItems: index["default"].bool
|
372
373
|
};
|
373
374
|
AddSelectBreadcrumbs.AddSelectBreadcrumbs.displayName = componentName;
|
374
375
|
|
@@ -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 index
|
16
|
-
var
|
15
|
+
var index = require('../../node_modules/prop-types/index.js');
|
16
|
+
var cx = require('classnames');
|
17
17
|
var settings = require('../../settings.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 blockClass = "".concat(settings.pkg.prefix, "--add-select__breadcrumbs");
|
24
25
|
var componentName = 'AddSelectBreadcrumbs';
|
@@ -30,7 +31,7 @@ var AddSelectBreadcrumbs = function AddSelectBreadcrumbs(_ref) {
|
|
30
31
|
e.preventDefault();
|
31
32
|
onClick(idx);
|
32
33
|
};
|
33
|
-
var classNames =
|
34
|
+
var classNames = cx__default["default"](blockClass, _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "-multi"), multi));
|
34
35
|
return /*#__PURE__*/React__default["default"].createElement(react.Breadcrumb, {
|
35
36
|
noTrailingSlash: true,
|
36
37
|
className: classNames
|
@@ -47,9 +48,9 @@ var AddSelectBreadcrumbs = function AddSelectBreadcrumbs(_ref) {
|
|
47
48
|
}));
|
48
49
|
};
|
49
50
|
AddSelectBreadcrumbs.propTypes = {
|
50
|
-
multi: index
|
51
|
-
onClick: index
|
52
|
-
path: index
|
51
|
+
multi: index["default"].bool,
|
52
|
+
onClick: index["default"].func,
|
53
|
+
path: index["default"].array
|
53
54
|
};
|
54
55
|
AddSelectBreadcrumbs.displayName = componentName;
|
55
56
|
|
@@ -12,14 +12,15 @@ 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
|
16
|
-
var index
|
15
|
+
var cx = require('classnames');
|
16
|
+
var index = require('../../node_modules/prop-types/index.js');
|
17
17
|
var icons = require('@carbon/react/icons');
|
18
18
|
var settings = require('../../settings.js');
|
19
19
|
|
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 blockClass = "".concat(settings.pkg.prefix, "--add-select__global-filter");
|
25
26
|
var componentName = 'AddSelectFilter';
|
@@ -83,7 +84,7 @@ var AddSelectFilter = function AddSelectFilter(_ref) {
|
|
83
84
|
return filters[id] || '';
|
84
85
|
};
|
85
86
|
var showFilter = multi && (filterOpts === null || filterOpts === void 0 ? void 0 : filterOpts.length) > 0;
|
86
|
-
var filterBtnClassnames =
|
87
|
+
var filterBtnClassnames = cx__default["default"]("".concat(blockClass, "-toggle"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "-toggle--open"), open));
|
87
88
|
var dirtyInput = Object.keys(filters).length > 0;
|
88
89
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
89
90
|
className: "".concat(blockClass, "-search")
|
@@ -158,21 +159,21 @@ var AddSelectFilter = function AddSelectFilter(_ref) {
|
|
158
159
|
}, clearFiltersText)));
|
159
160
|
};
|
160
161
|
AddSelectFilter.propTypes = {
|
161
|
-
appliedFilters: index
|
162
|
-
clearFiltersText: index
|
163
|
-
filterOpts: index
|
164
|
-
filtersLabel: index
|
165
|
-
handleFilter: index
|
166
|
-
handleSearch: index
|
167
|
-
hasFiltersApplied: index
|
168
|
-
iconDescription: index
|
169
|
-
inputLabel: index
|
170
|
-
inputPlaceholder: index
|
171
|
-
multi: index
|
172
|
-
placeholder: index
|
173
|
-
primaryButtonText: index
|
174
|
-
searchTerm: index
|
175
|
-
secondaryButtonText: index
|
162
|
+
appliedFilters: index["default"].object,
|
163
|
+
clearFiltersText: index["default"].string,
|
164
|
+
filterOpts: index["default"].array,
|
165
|
+
filtersLabel: index["default"].string,
|
166
|
+
handleFilter: index["default"].func,
|
167
|
+
handleSearch: index["default"].func,
|
168
|
+
hasFiltersApplied: index["default"].bool,
|
169
|
+
iconDescription: index["default"].string,
|
170
|
+
inputLabel: index["default"].string.isRequired,
|
171
|
+
inputPlaceholder: index["default"].string,
|
172
|
+
multi: index["default"].bool,
|
173
|
+
placeholder: index["default"].string,
|
174
|
+
primaryButtonText: index["default"].string,
|
175
|
+
searchTerm: index["default"].string,
|
176
|
+
secondaryButtonText: index["default"].string
|
176
177
|
};
|
177
178
|
AddSelectFilter.displayName = componentName;
|
178
179
|
|