@carbon/ibm-products 2.27.0 → 2.28.0-alpha.4
Sign up to get free protection for your applications and to get access to all the features.
- package/css/index-full-carbon.css +192 -116
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -1
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +56 -11
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +192 -116
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -1
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +180 -112
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/_virtual/index.js +2 -2
- package/es/components/APIKeyModal/APIKeyModal.js +1 -1
- package/es/components/AboutModal/AboutModal.js +1 -1
- package/es/components/ActionBar/ActionBar.js +1 -1
- package/es/components/ActionBar/ActionBarItem.js +1 -1
- package/es/components/ActionBar/ActionBarOverflowItems.js +1 -1
- package/es/components/ActionSet/ActionSet.js +1 -1
- package/es/components/AddSelect/AddSelectBody.js +1 -1
- package/es/components/AddSelect/AddSelectBreadcrumbs.js +1 -1
- package/es/components/AddSelect/AddSelectFilter.js +1 -1
- package/es/components/AddSelect/AddSelectList.js +1 -1
- package/es/components/AddSelect/AddSelectRow.js +1 -1
- package/es/components/BigNumbers/BigNumbers.js +1 -1
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +1 -1
- package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +1 -1
- package/es/components/Card/Card.js +1 -1
- package/es/components/Card/CardFooter.js +1 -1
- package/es/components/Card/CardHeader.js +1 -1
- package/es/components/Carousel/Carousel.js +1 -1
- package/es/components/Carousel/CarouselItem.js +1 -1
- package/es/components/Cascade/Cascade.js +1 -1
- package/es/components/Checklist/Checklist.js +1 -1
- package/es/components/Checklist/ChecklistChart.js +1 -1
- package/es/components/Checklist/ChecklistIcon.js +1 -1
- package/es/components/Coachmark/Coachmark.js +1 -1
- package/es/components/Coachmark/CoachmarkDragbar.js +1 -1
- package/es/components/Coachmark/CoachmarkHeader.js +1 -1
- package/es/components/Coachmark/CoachmarkOverlay.js +1 -1
- package/es/components/Coachmark/CoachmarkTagline.js +1 -1
- package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -1
- package/es/components/CoachmarkButton/CoachmarkButton.js +1 -1
- package/es/components/CoachmarkFixed/CoachmarkFixed.js +1 -1
- package/es/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +1 -1
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +1 -1
- package/es/components/CoachmarkStack/CoachmarkStack.js +1 -1
- package/es/components/CoachmarkStack/CoachmarkStackHome.js +1 -1
- package/es/components/ComboButton/ComboButton.js +1 -1
- package/es/components/CreateFullPage/CreateFullPage.js +1 -1
- package/es/components/CreateFullPage/CreateFullPageStep.js +1 -1
- package/es/components/CreateInfluencer/CreateInfluencer.js +1 -1
- package/es/components/CreateModal/CreateModal.js +1 -1
- package/es/components/CreateSidePanel/CreateSidePanel.js +1 -1
- package/es/components/CreateTearsheet/CreateTearsheet.js +8 -2
- package/es/components/CreateTearsheet/CreateTearsheetDivider.js +1 -1
- package/es/components/CreateTearsheet/CreateTearsheetStep.js +1 -1
- package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +1 -1
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +1 -1
- package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +1 -1
- package/es/components/Datagrid/Datagrid/Datagrid.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridContent.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +8 -4
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridRefBody.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridRow.js +19 -15
- package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridToolbar.js +1 -1
- package/es/components/Datagrid/Datagrid/DraggableElement.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +8 -8
- package/es/components/Datagrid/Datagrid/addons/Filtering/constants.d.ts +1 -0
- package/es/components/Datagrid/Datagrid/addons/Filtering/constants.js +2 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +68 -4
- package/es/components/Datagrid/Datagrid/addons/Filtering/utils.js +12 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -1
- package/es/components/Datagrid/useActionsColumn.js +1 -1
- package/es/components/Datagrid/useColumnCenterAlign.js +1 -1
- package/es/components/Datagrid/useColumnRightAlign.js +1 -1
- package/es/components/Datagrid/useDefaultStringRenderer.js +1 -1
- package/es/components/Datagrid/useFiltering.js +48 -47
- package/es/components/Datagrid/useFloatingScroll.js +1 -1
- package/es/components/Datagrid/useInlineEdit.js +1 -1
- package/es/components/Datagrid/useNestedRowExpander.js +1 -1
- package/es/components/Datagrid/useNestedRows.js +1 -1
- package/es/components/Datagrid/useRowExpander.js +1 -1
- package/es/components/Datagrid/useSelectAllToggle.js +1 -1
- package/es/components/Datagrid/useSelectRows.js +2 -2
- package/es/components/Datagrid/useSortableColumns.js +1 -1
- package/es/components/Datagrid/useStickyColumn.js +1 -1
- package/es/components/DelimitedList/DelimitedList.js +1 -1
- package/es/components/EditFullPage/EditFullPage.js +1 -1
- package/es/components/EditInPlace/EditInPlace.js +1 -1
- package/es/components/EditSidePanel/EditSidePanel.js +1 -1
- package/es/components/EditTearsheet/EditTearsheet.js +1 -1
- package/es/components/EditTearsheet/EditTearsheetForm.js +1 -1
- package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.js +1 -1
- package/es/components/EditUpdateCards/EditUpdateCards.js +1 -1
- package/es/components/EmptyStates/EmptyState.js +1 -1
- package/es/components/EmptyStates/EmptyStateContent.js +1 -1
- package/es/components/EmptyStates/EmptyStateV2.js +1 -1
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
- package/es/components/EmptyStates/assets/ErrorIllustration.js +1 -1
- package/es/components/EmptyStates/assets/NoDataIllustration.js +1 -1
- package/es/components/EmptyStates/assets/NoTagsIllustration.js +1 -1
- package/es/components/EmptyStates/assets/NotFoundIllustration.js +1 -1
- package/es/components/EmptyStates/assets/NotificationsIllustration.js +1 -1
- package/es/components/EmptyStates/assets/UnauthorizedIllustration.js +1 -1
- package/es/components/ExportModal/ExportModal.js +1 -1
- package/es/components/FilterSummary/FilterSummary.js +1 -1
- package/es/components/FullPageError/FullPageError.js +1 -1
- package/es/components/Guidebanner/Guidebanner.js +1 -1
- package/es/components/Guidebanner/GuidebannerElement.js +1 -1
- package/es/components/Guidebanner/GuidebannerElementButton.js +1 -1
- package/es/components/Guidebanner/GuidebannerElementLink.js +1 -1
- package/es/components/HTTPErrors/HTTPError403/HTTPError403.js +1 -1
- package/es/components/HTTPErrors/HTTPError404/HTTPError404.js +1 -1
- package/es/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +1 -1
- package/es/components/ImportModal/ImportModal.js +1 -1
- package/es/components/InlineTip/InlineTip.js +1 -1
- package/es/components/InlineTip/InlineTipButton.js +1 -1
- package/es/components/InlineTip/InlineTipLink.js +1 -1
- package/es/components/InterstitialScreen/InterstitialScreen.js +1 -1
- package/es/components/InterstitialScreenView/InterstitialScreenView.js +1 -1
- package/es/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +1 -1
- package/es/components/NonLinearReading/NonLinearReading.js +1 -1
- package/es/components/NotificationsPanel/NotificationsPanel.js +1 -1
- package/es/components/OptionsTile/OptionsTile.js +1 -1
- package/es/components/PageHeader/PageHeader.js +1 -1
- package/es/components/PageHeader/PageHeaderTitle.js +1 -1
- package/es/components/PageHeader/PageHeaderUtils.js +1 -1
- package/es/components/RemoveModal/RemoveModal.js +1 -1
- package/es/components/Saving/Saving.js +1 -1
- package/es/components/SearchBar/SearchBar.js +1 -1
- package/es/components/SidePanel/SidePanel.js +1 -1
- package/es/components/SimpleHeader/SimpleHeader.js +1 -1
- package/es/components/StatusIcon/StatusIcon.js +1 -1
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +1 -1
- package/es/components/StringFormatter/StringFormatter.js +1 -1
- package/es/components/TagSet/TagSet.js +1 -1
- package/es/components/TagSet/TagSetModal.js +1 -1
- package/es/components/TagSet/TagSetOverflow.js +1 -1
- package/es/components/Tearsheet/TearsheetShell.js +4 -5
- package/es/components/Toolbar/Toolbar.js +1 -1
- package/es/components/Toolbar/ToolbarButton.js +1 -1
- package/es/components/Toolbar/ToolbarGroup.js +1 -1
- package/es/components/TooltipTrigger/TooltipTrigger.js +1 -1
- package/es/components/TruncatedList/TruncatedList.js +1 -1
- package/es/components/UserAvatar/UserAvatar.js +1 -1
- package/es/components/UserProfileImage/UserProfileImage.js +1 -1
- package/es/components/WebTerminal/WebTerminal.js +1 -1
- package/es/components/WebTerminal/WebTerminalContentWrapper.js +1 -1
- package/es/components/_Canary/Canary.js +1 -1
- package/es/node_modules/prop-types/index.js +1 -1
- package/lib/_virtual/index.js +2 -2
- package/lib/components/APIKeyModal/APIKeyModal.js +50 -49
- package/lib/components/AboutModal/AboutModal.js +17 -16
- package/lib/components/ActionBar/ActionBar.js +16 -15
- package/lib/components/ActionBar/ActionBarItem.js +8 -7
- package/lib/components/ActionBar/ActionBarOverflowItems.js +9 -8
- package/lib/components/ActionSet/ActionSet.js +4 -3
- package/lib/components/AddSelect/AddSelectBody.js +67 -66
- package/lib/components/AddSelect/AddSelectBreadcrumbs.js +7 -6
- package/lib/components/AddSelect/AddSelectFilter.js +19 -18
- package/lib/components/AddSelect/AddSelectList.js +7 -6
- package/lib/components/AddSelect/AddSelectRow.js +33 -32
- package/lib/components/BigNumbers/BigNumbers.js +23 -22
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +20 -19
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +3 -2
- package/lib/components/Card/Card.js +5 -4
- package/lib/components/Card/CardFooter.js +22 -21
- package/lib/components/Card/CardHeader.js +27 -26
- package/lib/components/Carousel/Carousel.js +13 -12
- package/lib/components/Carousel/CarouselItem.js +6 -5
- package/lib/components/Cascade/Cascade.js +9 -8
- package/lib/components/Checklist/Checklist.js +33 -32
- package/lib/components/Checklist/ChecklistChart.js +7 -6
- package/lib/components/Checklist/ChecklistIcon.js +7 -6
- package/lib/components/Coachmark/Coachmark.js +21 -20
- package/lib/components/Coachmark/CoachmarkDragbar.js +10 -9
- package/lib/components/Coachmark/CoachmarkHeader.js +8 -7
- package/lib/components/Coachmark/CoachmarkOverlay.js +10 -9
- package/lib/components/Coachmark/CoachmarkTagline.js +8 -7
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +7 -6
- package/lib/components/CoachmarkButton/CoachmarkButton.js +6 -5
- package/lib/components/CoachmarkFixed/CoachmarkFixed.js +11 -10
- package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +8 -7
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +16 -15
- package/lib/components/CoachmarkStack/CoachmarkStack.js +20 -19
- package/lib/components/CoachmarkStack/CoachmarkStackHome.js +17 -16
- package/lib/components/ComboButton/ComboButton.js +7 -6
- package/lib/components/CreateFullPage/CreateFullPage.js +29 -28
- package/lib/components/CreateFullPage/CreateFullPageStep.js +18 -17
- package/lib/components/CreateInfluencer/CreateInfluencer.js +13 -12
- package/lib/components/CreateModal/CreateModal.js +16 -15
- package/lib/components/CreateSidePanel/CreateSidePanel.js +21 -20
- package/lib/components/CreateTearsheet/CreateTearsheet.js +27 -20
- package/lib/components/CreateTearsheet/CreateTearsheetDivider.js +5 -4
- package/lib/components/CreateTearsheet/CreateTearsheetStep.js +19 -18
- package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +21 -20
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +22 -21
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +56 -55
- package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +39 -38
- package/lib/components/Datagrid/Datagrid/Datagrid.js +7 -6
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +32 -31
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +8 -3
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +6 -5
- package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +3 -2
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +20 -15
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +4 -3
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +14 -13
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +3 -2
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +6 -5
- package/lib/components/Datagrid/Datagrid/DraggableElement.js +13 -12
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +15 -14
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +25 -24
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +27 -26
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +7 -7
- package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.d.ts +1 -0
- package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.js +2 -0
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +65 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +11 -0
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +15 -14
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +20 -19
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +9 -8
- package/lib/components/Datagrid/useActionsColumn.js +7 -6
- package/lib/components/Datagrid/useColumnCenterAlign.js +3 -2
- package/lib/components/Datagrid/useColumnRightAlign.js +3 -2
- package/lib/components/Datagrid/useDefaultStringRenderer.js +4 -3
- package/lib/components/Datagrid/useFiltering.js +46 -45
- package/lib/components/Datagrid/useFloatingScroll.js +6 -2
- package/lib/components/Datagrid/useInlineEdit.js +4 -3
- package/lib/components/Datagrid/useNestedRowExpander.js +4 -3
- package/lib/components/Datagrid/useNestedRows.js +6 -2
- package/lib/components/Datagrid/useRowExpander.js +3 -2
- package/lib/components/Datagrid/useSelectAllToggle.js +3 -2
- package/lib/components/Datagrid/useSelectRows.js +5 -4
- package/lib/components/Datagrid/useSortableColumns.js +3 -2
- package/lib/components/Datagrid/useStickyColumn.js +4 -3
- package/lib/components/DelimitedList/DelimitedList.js +8 -7
- package/lib/components/EditFullPage/EditFullPage.js +6 -5
- package/lib/components/EditInPlace/EditInPlace.js +23 -22
- package/lib/components/EditSidePanel/EditSidePanel.js +23 -22
- package/lib/components/EditTearsheet/EditTearsheet.js +18 -17
- package/lib/components/EditTearsheet/EditTearsheetForm.js +11 -10
- package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.js +6 -5
- package/lib/components/EditUpdateCards/EditUpdateCards.js +31 -30
- package/lib/components/EmptyStates/EmptyState.js +20 -19
- package/lib/components/EmptyStates/EmptyStateContent.js +16 -15
- package/lib/components/EmptyStates/EmptyStateV2.js +20 -19
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +18 -17
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +18 -17
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +18 -17
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +18 -17
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +18 -17
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +18 -17
- package/lib/components/EmptyStates/assets/ErrorIllustration.js +7 -6
- package/lib/components/EmptyStates/assets/NoDataIllustration.js +7 -6
- package/lib/components/EmptyStates/assets/NoTagsIllustration.js +7 -6
- package/lib/components/EmptyStates/assets/NotFoundIllustration.js +7 -6
- package/lib/components/EmptyStates/assets/NotificationsIllustration.js +7 -6
- package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +7 -6
- package/lib/components/ExportModal/ExportModal.js +30 -29
- package/lib/components/FilterSummary/FilterSummary.js +13 -12
- package/lib/components/FullPageError/FullPageError.js +13 -12
- package/lib/components/Guidebanner/Guidebanner.js +20 -19
- package/lib/components/Guidebanner/GuidebannerElement.js +8 -7
- package/lib/components/Guidebanner/GuidebannerElementButton.js +8 -7
- package/lib/components/Guidebanner/GuidebannerElementLink.js +6 -5
- package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +11 -10
- package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +11 -10
- package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +11 -10
- package/lib/components/ImportModal/ImportModal.js +32 -31
- package/lib/components/InlineTip/InlineTip.js +21 -20
- package/lib/components/InlineTip/InlineTipButton.js +6 -5
- package/lib/components/InlineTip/InlineTipLink.js +6 -5
- package/lib/components/InterstitialScreen/InterstitialScreen.js +13 -12
- package/lib/components/InterstitialScreenView/InterstitialScreenView.js +7 -6
- package/lib/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +7 -6
- package/lib/components/NonLinearReading/NonLinearReading.js +9 -8
- package/lib/components/NotificationsPanel/NotificationsPanel.js +59 -58
- package/lib/components/OptionsTile/OptionsTile.js +21 -20
- package/lib/components/PageHeader/PageHeader.js +74 -73
- package/lib/components/PageHeader/PageHeaderTitle.js +21 -20
- package/lib/components/PageHeader/PageHeaderUtils.js +3 -2
- package/lib/components/RemoveModal/RemoveModal.js +22 -21
- package/lib/components/Saving/Saving.js +18 -17
- package/lib/components/SearchBar/SearchBar.js +20 -19
- package/lib/components/SidePanel/SidePanel.js +47 -46
- package/lib/components/SimpleHeader/SimpleHeader.js +17 -16
- package/lib/components/StatusIcon/StatusIcon.js +9 -8
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +7 -6
- package/lib/components/StringFormatter/StringFormatter.js +11 -10
- package/lib/components/TagSet/TagSet.js +21 -20
- package/lib/components/TagSet/TagSetModal.js +13 -12
- package/lib/components/TagSet/TagSetOverflow.js +18 -17
- package/lib/components/Tearsheet/TearsheetShell.js +35 -35
- package/lib/components/Toolbar/Toolbar.js +7 -6
- package/lib/components/Toolbar/ToolbarButton.js +9 -8
- package/lib/components/Toolbar/ToolbarGroup.js +6 -5
- package/lib/components/TooltipTrigger/TooltipTrigger.js +6 -5
- package/lib/components/TruncatedList/TruncatedList.js +14 -13
- package/lib/components/UserAvatar/UserAvatar.js +3 -2
- package/lib/components/UserProfileImage/UserProfileImage.js +3 -2
- package/lib/components/WebTerminal/WebTerminal.js +14 -13
- package/lib/components/WebTerminal/WebTerminalContentWrapper.js +5 -4
- package/lib/components/_Canary/Canary.js +6 -5
- package/lib/node_modules/prop-types/index.js +1 -1
- package/package.json +6 -5
- package/scss/components/BreadcrumbWithOverflow/_breadcrumb-with-overflow.scss +0 -1
- package/scss/components/Datagrid/styles/_datagrid.scss +61 -4
- package/scss/components/SidePanel/_side-panel.scss +8 -1
- package/scss/components/Tearsheet/_tearsheet.scss +4 -5
- package/es/_virtual/index2.js +0 -10
- package/es/node_modules/classnames/index.js +0 -70
- package/lib/_virtual/index2.js +0 -14
- package/lib/node_modules/classnames/index.js +0 -74
@@ -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 devtools = require('../../global/js/utils/devtools.js');
|
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 _excluded = ["children", "className"];
|
24
25
|
|
@@ -54,7 +55,7 @@ exports.EditFullPage = /*#__PURE__*/React__default["default"].forwardRef(functio
|
|
54
55
|
className = _ref.className,
|
55
56
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
56
57
|
return /*#__PURE__*/React__default["default"].createElement("div", _rollupPluginBabelHelpers["extends"]({}, rest, {
|
57
|
-
className:
|
58
|
+
className: cx__default["default"](blockClass,
|
58
59
|
// Apply the block class to the main HTML element
|
59
60
|
className,
|
60
61
|
// Apply any supplied class names to the main HTML element.
|
@@ -82,11 +83,11 @@ exports.EditFullPage.propTypes = {
|
|
82
83
|
/**
|
83
84
|
* Provide the contents of the EditFullPage.
|
84
85
|
*/
|
85
|
-
children: index
|
86
|
+
children: index["default"].node.isRequired,
|
86
87
|
/**
|
87
88
|
* Provide an optional class to be applied to the containing node.
|
88
89
|
*/
|
89
|
-
className: index
|
90
|
+
className: index["default"].string
|
90
91
|
|
91
92
|
/* TODO: add types and DocGen for all props. */
|
92
93
|
};
|
@@ -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 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
|
var devtools = require('../../global/js/utils/devtools.js');
|
@@ -21,6 +21,7 @@ var devtools = require('../../global/js/utils/devtools.js');
|
|
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 _Close, _Checkmark, _Edit;
|
26
27
|
var _excluded = ["cancelLabel", "editAlwaysVisible", "editLabel", "id", "inheritTypography", "invalid", "invalidLabel", "invalidText", "labelText", "onCancel", "onChange", "onSave", "saveLabel", "size", "tooltipAlignment", "value"];
|
@@ -147,7 +148,7 @@ exports.EditInPlace = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
147
148
|
return /*#__PURE__*/React__default["default"].createElement("div", _rollupPluginBabelHelpers["extends"]({}, rest, {
|
148
149
|
ref: ref
|
149
150
|
}, devtools.getDevtoolsProps(componentName)), /*#__PURE__*/React__default["default"].createElement("div", {
|
150
|
-
className:
|
151
|
+
className: cx__default["default"](blockClass, "".concat(blockClass, "--").concat(size), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "--focused"), focused), "".concat(blockClass, "--invalid"), invalid), "".concat(blockClass, "--inherit-type"), inheritTypography), "".concat(blockClass, "--overflows"), inputRef.current && inputRef.current.scrollWidth > inputRef.current.offsetWidth)),
|
151
152
|
onFocus: onFocusHandler,
|
152
153
|
onBlur: onBlurHandler
|
153
154
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
@@ -155,7 +156,7 @@ exports.EditInPlace = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
155
156
|
htmlFor: id
|
156
157
|
}, labelText), /*#__PURE__*/React__default["default"].createElement("input", {
|
157
158
|
id: id,
|
158
|
-
className:
|
159
|
+
className: cx__default["default"]("".concat(blockClass, "__text-input"), "".concat(settings.carbon.prefix, "--text-input"), "".concat(settings.carbon.prefix, "--text-input--").concat(size)),
|
159
160
|
type: "text",
|
160
161
|
value: value,
|
161
162
|
onChange: onChangeHandler,
|
@@ -196,7 +197,7 @@ exports.EditInPlace = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
196
197
|
size: 16
|
197
198
|
})))) : /*#__PURE__*/React__default["default"].createElement(react.IconButton, {
|
198
199
|
align: tipAlignments.edit,
|
199
|
-
className:
|
200
|
+
className: cx__default["default"]("".concat(blockClass, "__btn"), "".concat(blockClass, "__btn-edit"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__btn-edit--always-visible"), editAlwaysVisible)),
|
200
201
|
size: size,
|
201
202
|
label: editLabel,
|
202
203
|
onClick: onFocusHandler,
|
@@ -216,27 +217,27 @@ var deprecatedProps = {
|
|
216
217
|
* **Deprecated**
|
217
218
|
* invalidLabel was misnamed, using invalidText to match Carbon
|
218
219
|
*/
|
219
|
-
invalidText: index
|
220
|
+
invalidText: index["default"].string
|
220
221
|
};
|
221
|
-
var alignPropType = index
|
222
|
+
var alignPropType = index["default"].oneOf(['top', 'top-left', 'top-right', 'bottom', 'bottom-left', 'bottom-right', 'left', 'right']);
|
222
223
|
exports.EditInPlace.propTypes = _rollupPluginBabelHelpers.objectSpread2({
|
223
224
|
/**
|
224
225
|
* label for cancel button
|
225
226
|
*/
|
226
|
-
cancelLabel: index
|
227
|
+
cancelLabel: index["default"].string.isRequired,
|
227
228
|
/**
|
228
229
|
* By default the edit icon is shown on hover only.
|
229
230
|
*/
|
230
|
-
editAlwaysVisible: index
|
231
|
+
editAlwaysVisible: index["default"].bool,
|
231
232
|
/**
|
232
233
|
/**
|
233
234
|
* label for edit button
|
234
235
|
*/
|
235
|
-
editLabel: index
|
236
|
+
editLabel: index["default"].string.isRequired,
|
236
237
|
/**
|
237
238
|
* Specify a custom id for the input
|
238
239
|
*/
|
239
|
-
id: index
|
240
|
+
id: index["default"].string.isRequired,
|
240
241
|
/**
|
241
242
|
* inheritTypography - causes the text entry field to inherit typography settings
|
242
243
|
* assigned to the container. This is useful when editing titles for instance.
|
@@ -244,31 +245,31 @@ exports.EditInPlace.propTypes = _rollupPluginBabelHelpers.objectSpread2({
|
|
244
245
|
* NOTE: The size property limits the vertical size of the input element.
|
245
246
|
* Inherited font's should be selected to fit within the size selected.
|
246
247
|
*/
|
247
|
-
inheritTypography: index
|
248
|
+
inheritTypography: index["default"].bool,
|
248
249
|
/**
|
249
250
|
* determines if the input is invalid
|
250
251
|
*/
|
251
|
-
invalid: index
|
252
|
+
invalid: index["default"].bool,
|
252
253
|
/**
|
253
254
|
* text that is displayed if the input is invalid
|
254
255
|
*/
|
255
|
-
invalidText: index
|
256
|
+
invalidText: index["default"].string,
|
256
257
|
/**
|
257
258
|
* Provide the text that will be read by a screen reader when visiting this control
|
258
259
|
*/
|
259
|
-
labelText: index
|
260
|
+
labelText: index["default"].string.isRequired,
|
260
261
|
/**
|
261
262
|
* handler that is called when the cancel button is pressed or when the user removes focus from the input and there is no new value
|
262
263
|
*/
|
263
|
-
onCancel: index
|
264
|
+
onCancel: index["default"].func.isRequired,
|
264
265
|
/**
|
265
266
|
* handler that is called when the input is updated
|
266
267
|
*/
|
267
|
-
onChange: index
|
268
|
+
onChange: index["default"].func.isRequired,
|
268
269
|
/**
|
269
270
|
* handler that is called when the save button is pressed or when the user removes focus from the input if it has a new value
|
270
271
|
*/
|
271
|
-
onSave: index
|
272
|
+
onSave: index["default"].func.isRequired,
|
272
273
|
/**
|
273
274
|
* determines if the input is in readOnly mode
|
274
275
|
*/
|
@@ -280,17 +281,17 @@ exports.EditInPlace.propTypes = _rollupPluginBabelHelpers.objectSpread2({
|
|
280
281
|
/**
|
281
282
|
* label for save button
|
282
283
|
*/
|
283
|
-
saveLabel: index
|
284
|
+
saveLabel: index["default"].string.isRequired,
|
284
285
|
/**
|
285
286
|
* vertical size of control
|
286
287
|
*/
|
287
|
-
size: index
|
288
|
+
size: index["default"].oneOf(['sm', 'md', 'lg']),
|
288
289
|
/**
|
289
290
|
* tooltipAlignment from the standard tooltip. Default center.
|
290
291
|
*
|
291
292
|
* Can be passed either as one of tooltip options or as an object specifying cancel, edit and save separately
|
292
293
|
*/
|
293
|
-
tooltipAlignment: index
|
294
|
+
tooltipAlignment: index["default"].oneOfType([alignPropType, index["default"].shape({
|
294
295
|
cancel: alignPropType,
|
295
296
|
edit: alignPropType,
|
296
297
|
save: alignPropType
|
@@ -298,7 +299,7 @@ exports.EditInPlace.propTypes = _rollupPluginBabelHelpers.objectSpread2({
|
|
298
299
|
/**
|
299
300
|
* current value of the input
|
300
301
|
*/
|
301
|
-
value: index
|
302
|
+
value: index["default"].string.isRequired
|
302
303
|
}, deprecatedProps);
|
303
304
|
|
304
305
|
exports.deprecatedProps = deprecatedProps;
|
@@ -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 devtools = require('../../global/js/utils/devtools.js');
|
17
17
|
var settings = require('../../settings.js');
|
18
18
|
var react = require('@carbon/react');
|
@@ -23,6 +23,7 @@ var SidePanel = require('../SidePanel/SidePanel.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 = ["children", "className", "disableSubmit", "id", "formTitle", "formDescription", "onRequestClose", "onRequestSubmit", "open", "placement", "primaryButtonText", "secondaryButtonText", "selectorPrimaryFocus", "selectorPageContent", "size", "slideIn", "subtitle", "title"];
|
28
29
|
|
@@ -91,7 +92,7 @@ exports.EditSidePanel = /*#__PURE__*/React__default["default"].forwardRef(functi
|
|
91
92
|
placement: placement,
|
92
93
|
slideIn: slideIn,
|
93
94
|
animateTitle: false,
|
94
|
-
className:
|
95
|
+
className: cx__default["default"](blockClass, className),
|
95
96
|
size: size,
|
96
97
|
preventCloseOnClickOutside: true,
|
97
98
|
actions: actions
|
@@ -120,84 +121,84 @@ exports.EditSidePanel.propTypes = {
|
|
120
121
|
/**
|
121
122
|
* Sets the body content of the create side panel
|
122
123
|
*/
|
123
|
-
children: index
|
124
|
+
children: index["default"].oneOfType([index["default"].arrayOf(index["default"].node), index["default"].node]).isRequired,
|
124
125
|
/**
|
125
126
|
* Provide an optional class to be applied to the containing node.
|
126
127
|
*/
|
127
|
-
className: index
|
128
|
+
className: index["default"].string,
|
128
129
|
/**
|
129
130
|
* Specifies a boolean for disabling or enabling the primary button. This is important for form validation
|
130
131
|
* Returning `true` prevents the primary button from being clicked until required fields are completed.
|
131
132
|
*/
|
132
|
-
disableSubmit: index
|
133
|
+
disableSubmit: index["default"].bool,
|
133
134
|
/**
|
134
135
|
* Specifies an optional field that provides a additional context for a form
|
135
136
|
*/
|
136
|
-
formDescription: index
|
137
|
+
formDescription: index["default"].node,
|
137
138
|
/**
|
138
139
|
* Specifies a required field that provides a title for a form
|
139
140
|
*/
|
140
|
-
formTitle: index
|
141
|
+
formTitle: index["default"].node.isRequired,
|
141
142
|
/**
|
142
143
|
* Unique identifier
|
143
144
|
*/
|
144
|
-
id: index
|
145
|
+
id: index["default"].string,
|
145
146
|
/**
|
146
147
|
* Specifies an optional handler which is called when the CreateSidePanel
|
147
148
|
* is closed.
|
148
149
|
*/
|
149
|
-
onRequestClose: index
|
150
|
+
onRequestClose: index["default"].func,
|
150
151
|
/**
|
151
152
|
* Specifies an optional handler which is called when the CreateSidePanel
|
152
153
|
* primary button is pressed.
|
153
154
|
*/
|
154
|
-
onRequestSubmit: index
|
155
|
+
onRequestSubmit: index["default"].func,
|
155
156
|
/**
|
156
157
|
* Specifies whether the CreateSidePanel is open or not.
|
157
158
|
*/
|
158
|
-
open: index
|
159
|
+
open: index["default"].bool,
|
159
160
|
/**
|
160
161
|
* Determines if the side panel is on the right or left
|
161
162
|
*/
|
162
|
-
placement: index
|
163
|
+
placement: index["default"].oneOf(['left', 'right']),
|
163
164
|
/**
|
164
165
|
* Specifies the primary button's text in the modal.
|
165
166
|
*/
|
166
|
-
primaryButtonText: index
|
167
|
+
primaryButtonText: index["default"].string.isRequired,
|
167
168
|
/**
|
168
169
|
* Specifies the secondary button's text in the modal.
|
169
170
|
*/
|
170
|
-
secondaryButtonText: index
|
171
|
+
secondaryButtonText: index["default"].string.isRequired,
|
171
172
|
/**
|
172
173
|
* This is the selector to the element that contains all of the page content that will shrink if the panel is a slide in.
|
173
174
|
* This prop is required when using the `slideIn` variant of the side panel.
|
174
175
|
*/
|
175
|
-
selectorPageContent: index
|
176
|
+
selectorPageContent: index["default"].string.isRequired.if(function (_ref2) {
|
176
177
|
var slideIn = _ref2.slideIn;
|
177
178
|
return slideIn;
|
178
179
|
}),
|
179
180
|
/**
|
180
181
|
* Specifies which DOM element in the form should be focused.
|
181
182
|
*/
|
182
|
-
selectorPrimaryFocus: index
|
183
|
+
selectorPrimaryFocus: index["default"].node.isRequired,
|
183
184
|
/**
|
184
185
|
* Sets the size of the side panel
|
185
186
|
*/
|
186
|
-
size: index
|
187
|
+
size: index["default"].oneOf(['xs', 'sm', 'md', 'lg', '2xl']),
|
187
188
|
/**
|
188
189
|
* Specifies which DOM element in the form should be focused.
|
189
190
|
*/
|
190
|
-
slideIn: index
|
191
|
+
slideIn: index["default"].bool,
|
191
192
|
/**
|
192
193
|
* **Experimental:** Provide a `Slug` component to be rendered inside the `SidePanel` component
|
193
194
|
*/
|
194
|
-
slug: index
|
195
|
+
slug: index["default"].node,
|
195
196
|
/**
|
196
197
|
* The subtitle of the CreateSidePanel is optional and serves to provide more information about the modal.
|
197
198
|
*/
|
198
|
-
subtitle: index
|
199
|
+
subtitle: index["default"].node,
|
199
200
|
/**
|
200
201
|
* The title of the CreateSidePanel is usually the product or service name.
|
201
202
|
*/
|
202
|
-
title: index
|
203
|
+
title: index["default"].node.isRequired
|
203
204
|
};
|
@@ -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 settings = require('../../settings.js');
|
18
18
|
var devtools = require('../../global/js/utils/devtools.js');
|
@@ -21,6 +21,7 @@ var TearsheetShell = require('../Tearsheet/TearsheetShell.js');
|
|
21
21
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
22
22
|
|
23
23
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
24
|
+
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
24
25
|
|
25
26
|
var _excluded = ["cancelButtonText", "children", "className", "description", "influencerWidth", "label", "onClose", "open", "submitButtonText", "title", "verticalPosition", "onRequestSubmit", "onFormChange", "sideNavAriaLabel"];
|
26
27
|
var componentName = 'EditTearsheet';
|
@@ -109,7 +110,7 @@ exports.EditTearsheet = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
109
110
|
onClick: onClose,
|
110
111
|
kind: 'ghost'
|
111
112
|
}],
|
112
|
-
className:
|
113
|
+
className: cx__default["default"](blockClass, className),
|
113
114
|
description: description,
|
114
115
|
hasCloseIcon: false,
|
115
116
|
influencer: defaultInfluencer(),
|
@@ -151,61 +152,61 @@ exports.EditTearsheet.propTypes = {
|
|
151
152
|
/**
|
152
153
|
* The cancel button text
|
153
154
|
*/
|
154
|
-
cancelButtonText: index
|
155
|
+
cancelButtonText: index["default"].string,
|
155
156
|
/**
|
156
157
|
* The main content of the tearsheet
|
157
158
|
*/
|
158
|
-
children: index
|
159
|
+
children: index["default"].node,
|
159
160
|
/**
|
160
161
|
* An optional class or classes to be added to the outermost element.
|
161
162
|
*/
|
162
|
-
className: index
|
163
|
+
className: index["default"].string,
|
163
164
|
/**
|
164
165
|
* A description of the flow, displayed in the header area of the tearsheet.
|
165
166
|
*/
|
166
|
-
description: index
|
167
|
+
description: index["default"].node,
|
167
168
|
/**
|
168
169
|
* Used to set the size of the influencer
|
169
170
|
*/
|
170
|
-
influencerWidth: index
|
171
|
+
influencerWidth: index["default"].oneOf(['narrow', 'wide']),
|
171
172
|
/**
|
172
173
|
* A label for the tearsheet, displayed in the header area of the tearsheet
|
173
174
|
* to maintain context for the tearsheet (e.g. as the title changes from page
|
174
175
|
* to page of a multi-page task).
|
175
176
|
*/
|
176
|
-
label: index
|
177
|
+
label: index["default"].node,
|
177
178
|
/**
|
178
179
|
* An optional handler that is called when the user closes the tearsheet (by
|
179
180
|
* clicking the close button, if enabled, or clicking outside, if enabled).
|
180
181
|
* Returning `false` here prevents the modal from closing.
|
181
182
|
*/
|
182
|
-
onClose: index
|
183
|
+
onClose: index["default"].func,
|
183
184
|
/**
|
184
185
|
* An optional handler that is called when a user changes forms via clicking
|
185
186
|
* an influencer nav item.
|
186
187
|
* Returns the index of the selected form.
|
187
188
|
*/
|
188
|
-
onFormChange: index
|
189
|
+
onFormChange: index["default"].func,
|
189
190
|
/**
|
190
191
|
* Specify a handler for submitting the tearsheet.
|
191
192
|
*/
|
192
|
-
onRequestSubmit: index
|
193
|
+
onRequestSubmit: index["default"].func.isRequired,
|
193
194
|
/**
|
194
195
|
* Specifies whether the tearsheet is currently open.
|
195
196
|
*/
|
196
|
-
open: index
|
197
|
+
open: index["default"].bool,
|
197
198
|
/**
|
198
199
|
* Specifies the aria label for the SideNav from Carbon UIShell
|
199
200
|
*/
|
200
|
-
sideNavAriaLabel: index
|
201
|
+
sideNavAriaLabel: index["default"].string,
|
201
202
|
/**
|
202
203
|
* The submit button text
|
203
204
|
*/
|
204
|
-
submitButtonText: index
|
205
|
+
submitButtonText: index["default"].string,
|
205
206
|
/**
|
206
207
|
* The main title of the tearsheet, displayed in the header area.
|
207
208
|
*/
|
208
|
-
title: index
|
209
|
+
title: index["default"].node,
|
209
210
|
/**
|
210
211
|
* The position of the top of tearsheet in the viewport. The 'normal'
|
211
212
|
* position (the default) is a short distance down from the top of the
|
@@ -213,7 +214,7 @@ exports.EditTearsheet.propTypes = {
|
|
213
214
|
* from below. The 'lower' position provides a little extra room at the top
|
214
215
|
* to allow an action bar navigation or breadcrumbs to also show through.
|
215
216
|
*/
|
216
|
-
verticalPosition: index
|
217
|
+
verticalPosition: index["default"].oneOf(['normal', 'lower'])
|
217
218
|
};
|
218
219
|
|
219
220
|
exports.FormContext = FormContext;
|
@@ -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 EditTearsheet = require('./EditTearsheet.js');
|
18
18
|
var settings = require('../../settings.js');
|
@@ -22,6 +22,7 @@ var useRetrieveFormTitles = require('../../global/js/hooks/useRetrieveFormTitles
|
|
22
22
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
23
23
|
|
24
24
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
25
|
+
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
25
26
|
|
26
27
|
var _excluded = ["children", "className", "description", "fieldsetLegendText", "hasFieldset", "subtitle", "title"];
|
27
28
|
var componentName = 'EditTearsheetForm';
|
@@ -49,7 +50,7 @@ exports.EditTearsheetForm = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
49
50
|
title: title
|
50
51
|
});
|
51
52
|
return formContext ? /*#__PURE__*/React__default["default"].createElement("div", _rollupPluginBabelHelpers["extends"]({}, rest, {
|
52
|
-
className:
|
53
|
+
className: cx__default["default"](blockClass, className, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__form--hidden-form"), formNumber !== (formContext === null || formContext === void 0 ? void 0 : formContext.currentForm)), "".concat(blockClass, "__form--visible-form"), formNumber === (formContext === null || formContext === void 0 ? void 0 : formContext.currentForm))),
|
53
54
|
ref: ref
|
54
55
|
}), /*#__PURE__*/React__default["default"].createElement(react.Grid, null, /*#__PURE__*/React__default["default"].createElement(react.Column, {
|
55
56
|
xlg: 12,
|
@@ -76,21 +77,21 @@ exports.EditTearsheetForm.propTypes = {
|
|
76
77
|
/**
|
77
78
|
* Content that shows in the tearsheet form
|
78
79
|
*/
|
79
|
-
children: index
|
80
|
+
children: index["default"].node,
|
80
81
|
/**
|
81
82
|
* Sets an optional className to be added to the tearsheet form
|
82
83
|
*/
|
83
|
-
className: index
|
84
|
+
className: index["default"].string,
|
84
85
|
/**
|
85
86
|
* Sets an optional description on the form component
|
86
87
|
*/
|
87
|
-
description: index
|
88
|
+
description: index["default"].string,
|
88
89
|
/**
|
89
90
|
* This is the required legend text that appears above a fieldset html element for accessibility purposes.
|
90
91
|
* You can set the `hasFieldset` prop to false if you have multiple fieldset elements or want to control the children of your Full Page's form content.
|
91
92
|
* Otherwise, use CSS to hide/remove this label text.
|
92
93
|
*/
|
93
|
-
fieldsetLegendText: index
|
94
|
+
fieldsetLegendText: index["default"].string.isRequired.if(function (_ref2) {
|
94
95
|
var hasFieldset = _ref2.hasFieldset;
|
95
96
|
return !!hasFieldset;
|
96
97
|
}),
|
@@ -99,13 +100,13 @@ exports.EditTearsheetForm.propTypes = {
|
|
99
100
|
* and is defaulted to true.
|
100
101
|
* You can set this prop to `false` if you have multiple fieldset elements or want to control the children of your Full Page's form content.
|
101
102
|
*/
|
102
|
-
hasFieldset: index
|
103
|
+
hasFieldset: index["default"].bool,
|
103
104
|
/**
|
104
105
|
* Sets an optional subtitle on the form component
|
105
106
|
*/
|
106
|
-
subtitle: index
|
107
|
+
subtitle: index["default"].string,
|
107
108
|
/**
|
108
109
|
* Sets the title text for a tearsheet form
|
109
110
|
*/
|
110
|
-
title: index
|
111
|
+
title: index["default"].node.isRequired
|
111
112
|
};
|
@@ -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 devtools = require('../../global/js/utils/devtools.js');
|
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 _excluded = ["children", "className"];
|
24
25
|
|
@@ -53,7 +54,7 @@ exports.EditTearsheetNarrow = /*#__PURE__*/React__default["default"].forwardRef(
|
|
53
54
|
className = _ref.className,
|
54
55
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
55
56
|
return /*#__PURE__*/React__default["default"].createElement("div", _rollupPluginBabelHelpers["extends"]({}, rest, {
|
56
|
-
className:
|
57
|
+
className: cx__default["default"](blockClass,
|
57
58
|
// Apply the block class to the main HTML element
|
58
59
|
className,
|
59
60
|
// Apply any supplied class names to the main HTML element.
|
@@ -81,11 +82,11 @@ exports.EditTearsheetNarrow.propTypes = {
|
|
81
82
|
/**
|
82
83
|
* Provide the contents of the EditTearsheetNarrow.
|
83
84
|
*/
|
84
|
-
children: index
|
85
|
+
children: index["default"].node.isRequired,
|
85
86
|
/**
|
86
87
|
* Provide an optional class to be applied to the containing node.
|
87
88
|
*/
|
88
|
-
className: index
|
89
|
+
className: index["default"].string
|
89
90
|
|
90
91
|
/* TODO: add types and DocGen for all props. */
|
91
92
|
};
|