@carbon/ibm-products 1.25.1 → 2.0.0-rc.0
Sign up to get free protection for your applications and to get access to all the features.
- package/css/index-full-carbon.css +24548 -24333
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +10 -12
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +5770 -2820
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +10 -12
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +10407 -4482
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +10 -12
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +10786 -14938
- package/css/index.css.map +1 -1
- package/css/index.min.css +10 -12
- package/css/index.min.css.map +1 -1
- package/es/components/APIKeyModal/APIKeyModal.js +14 -6
- package/es/components/AboutModal/AboutModal.js +37 -10
- package/es/components/ActionBar/ActionBar.js +4 -3
- package/es/components/ActionBar/ActionBarItem.js +15 -13
- package/es/components/ActionBar/ActionBarOverflowItems.js +3 -2
- package/es/components/ActionSet/ActionSet.js +6 -6
- package/es/components/AddSelect/AddSelect.js +4 -2
- package/es/components/AddSelect/AddSelectBody.js +12 -6
- package/es/components/AddSelect/AddSelectBreadcrumbs.js +1 -1
- package/es/components/AddSelect/AddSelectColumn.js +21 -10
- package/es/components/AddSelect/AddSelectFilter.js +8 -3
- package/es/components/AddSelect/AddSelectList.js +17 -7
- package/es/components/AddSelect/AddSelectMetaPanel.js +8 -3
- package/es/components/AddSelect/AddSelectSidebar.js +1 -1
- package/es/components/AddSelect/AddSelectSort.js +20 -8
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +24 -13
- package/es/components/ButtonMenu/ButtonMenu.js +15 -6
- package/es/components/ButtonMenu/ButtonMenuItem.js +1 -1
- package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +7 -5
- package/es/components/Card/Card.js +12 -10
- package/es/components/Card/CardFooter.js +3 -3
- package/es/components/Cascade/Cascade.js +1 -1
- package/es/components/ComboButton/ComboButton.js +11 -3
- package/es/components/CreateFullPage/CreateFullPage.js +4 -4
- 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 +3 -3
- package/es/components/CreateTearsheet/CreateTearsheetStep.js +4 -2
- package/es/components/CreateTearsheet/preview-components/MultiStepTearsheet.js +14 -5
- package/es/components/CreateTearsheet/preview-components/MultiStepWithIntro.js +11 -4
- package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +1 -3
- package/es/components/Datagrid/Datagrid/Datagrid.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridHead.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridRow.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +12 -5
- package/es/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridToolbar.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +1 -1
- package/es/components/Datagrid/Datagrid/DraggableElement.js +4 -2
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +8 -3
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +7 -3
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsModal.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +10 -10
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +23 -26
- package/es/components/Datagrid/{Datagrid.stories → Datagrid.stories-helpers}/CustomizeColumnStory.js +0 -0
- package/es/components/Datagrid/{Datagrid.stories → Datagrid.stories-helpers}/LeftPanelStory.js +0 -0
- package/es/components/Datagrid/{Datagrid.stories → Datagrid.stories-helpers}/RowSizeDropdownStory.js +0 -0
- package/es/components/Datagrid/{Datagrid.stories → Datagrid.stories-helpers}/SelectAllWithToggleStory.js +0 -0
- package/es/components/Datagrid/{Datagrid.stories → Datagrid.stories-helpers}/StickyActionsColumnStory.js +0 -0
- package/es/components/Datagrid/{Datagrid.stories → Datagrid.stories-helpers}/common.js +0 -0
- package/es/components/Datagrid/{Datagrid.stories → Datagrid.stories-helpers}/index.js +2 -2
- package/es/components/Datagrid/useActionsColumn.js +1 -1
- package/es/components/Datagrid/useRowExpander.js +6 -2
- package/es/components/Datagrid/useSelectRows.js +4 -3
- package/es/components/Datagrid/useSortableColumns.js +19 -8
- package/es/components/EditSidePanel/EditSidePanel.js +2 -2
- package/es/components/EditTearsheet/EditTearsheet.js +1 -1
- package/es/components/EditTearsheet/EditTearsheetForm.js +4 -2
- package/es/components/EditTearsheet/preview-components/MultiFormEditTearsheet.js +9 -9
- package/es/components/EmptyStates/EmptyState.js +1 -1
- package/es/components/EmptyStates/EmptyStateContent.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/ExampleComponent/ExampleComponent.js +4 -4
- package/es/components/ExportModal/ExportModal.js +7 -4
- package/es/components/ExpressiveCard/ExpressiveCard.js +1 -1
- package/es/components/HTTPErrors/HTTPErrorContent.js +1 -1
- package/es/components/ImportModal/ImportModal.js +12 -6
- package/es/components/InlineEdit/InlineEdit.js +27 -15
- package/es/components/ModifiedTabs/ModifiedTabLabelNew.js +9 -5
- package/es/components/ModifiedTabs/ModifiedTabLabelWithClose.js +13 -15
- package/es/components/ModifiedTabs/ModifiedTabs.js +64 -42
- package/es/components/MultiAddSelect/MultiAddSelect.js +2 -2
- package/es/components/NotificationsPanel/NotificationsPanel.js +32 -18
- package/es/components/OptionsTile/OptionsTile.js +15 -9
- package/es/components/PageHeader/PageHeader.js +13 -9
- package/es/components/PageHeader/PageHeaderTitle.js +1 -1
- package/es/components/PageHeader/PageHeaderUtils.js +1 -1
- package/es/components/ProductiveCard/ProductiveCard.js +5 -0
- package/es/components/RemoveModal/RemoveModal.js +3 -2
- package/es/components/Saving/Saving.js +26 -8
- package/es/components/SidePanel/SidePanel.js +18 -10
- package/es/components/StatusIcon/StatusIcon.js +294 -74
- package/es/components/TagSet/TagSet.js +6 -15
- package/es/components/TagSet/TagSetModal.js +4 -3
- package/es/components/TagSet/TagSetOverflow.js +37 -34
- package/es/components/TagSet/constants.js +20 -0
- package/es/components/Tearsheet/Tearsheet.js +2 -2
- package/es/components/Tearsheet/TearsheetNarrow.js +1 -1
- package/es/components/Tearsheet/TearsheetShell.js +11 -9
- package/es/components/Toolbar/Toolbar.js +2 -1
- package/es/components/Toolbar/ToolbarButton.js +22 -13
- package/es/components/UserProfileImage/UserProfileImage.js +38 -13
- package/es/components/WebTerminal/WebTerminal.js +15 -6
- package/es/components/WebTerminal/preview-components/Navigation.js +11 -5
- package/es/components/_Canary/Canary.js +1 -1
- package/es/global/js/hooks/index.js +1 -1
- package/es/global/js/utils/test-helper.js +2 -1
- package/es/settings.js +2 -10
- package/lib/components/APIKeyModal/APIKeyModal.js +25 -17
- package/lib/components/AboutModal/AboutModal.js +43 -15
- package/lib/components/ActionBar/ActionBar.js +6 -5
- package/lib/components/ActionBar/ActionBarItem.js +15 -13
- package/lib/components/ActionBar/ActionBarOverflowItems.js +5 -4
- package/lib/components/ActionSet/ActionSet.js +13 -13
- package/lib/components/AddSelect/AddSelect.js +4 -2
- package/lib/components/AddSelect/AddSelectBody.js +13 -7
- package/lib/components/AddSelect/AddSelectBreadcrumbs.js +3 -3
- package/lib/components/AddSelect/AddSelectColumn.js +23 -13
- package/lib/components/AddSelect/AddSelectFilter.js +16 -10
- package/lib/components/AddSelect/AddSelectList.js +26 -15
- package/lib/components/AddSelect/AddSelectMetaPanel.js +9 -3
- package/lib/components/AddSelect/AddSelectSidebar.js +4 -4
- package/lib/components/AddSelect/AddSelectSort.js +22 -9
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +29 -19
- package/lib/components/ButtonMenu/ButtonMenu.js +18 -9
- package/lib/components/ButtonMenu/ButtonMenuItem.js +3 -3
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +10 -8
- package/lib/components/Card/Card.js +15 -13
- package/lib/components/Card/CardFooter.js +5 -5
- package/lib/components/Cascade/Cascade.js +2 -2
- package/lib/components/ComboButton/ComboButton.js +21 -13
- package/lib/components/CreateFullPage/CreateFullPage.js +8 -8
- package/lib/components/CreateFullPage/CreateFullPageStep.js +2 -2
- package/lib/components/CreateInfluencer/CreateInfluencer.js +3 -3
- package/lib/components/CreateModal/CreateModal.js +7 -7
- package/lib/components/CreateSidePanel/CreateSidePanel.js +2 -2
- package/lib/components/CreateTearsheet/CreateTearsheet.js +3 -3
- package/lib/components/CreateTearsheet/CreateTearsheetStep.js +5 -3
- package/lib/components/CreateTearsheet/preview-components/MultiStepTearsheet.js +27 -18
- package/lib/components/CreateTearsheet/preview-components/MultiStepWithIntro.js +26 -19
- package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +2 -2
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +1 -4
- package/lib/components/Datagrid/Datagrid/Datagrid.js +3 -3
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +4 -4
- package/lib/components/Datagrid/Datagrid/DatagridHead.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +3 -3
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +4 -4
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +15 -8
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +2 -2
- package/lib/components/Datagrid/Datagrid/DraggableElement.js +3 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +10 -4
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +7 -3
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +2 -2
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsModal.js +2 -2
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +9 -9
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +24 -27
- package/lib/components/Datagrid/{Datagrid.stories → Datagrid.stories-helpers}/CustomizeColumnStory.js +0 -0
- package/lib/components/Datagrid/{Datagrid.stories → Datagrid.stories-helpers}/LeftPanelStory.js +0 -0
- package/lib/components/Datagrid/{Datagrid.stories → Datagrid.stories-helpers}/RowSizeDropdownStory.js +0 -0
- package/lib/components/Datagrid/{Datagrid.stories → Datagrid.stories-helpers}/SelectAllWithToggleStory.js +0 -0
- package/lib/components/Datagrid/{Datagrid.stories → Datagrid.stories-helpers}/StickyActionsColumnStory.js +0 -0
- package/lib/components/Datagrid/{Datagrid.stories → Datagrid.stories-helpers}/common.js +0 -0
- package/lib/components/Datagrid/{Datagrid.stories → Datagrid.stories-helpers}/index.js +2 -2
- package/lib/components/Datagrid/useActionsColumn.js +4 -4
- package/lib/components/Datagrid/useRowExpander.js +5 -1
- package/lib/components/Datagrid/useSelectRows.js +4 -3
- package/lib/components/Datagrid/useSortableColumns.js +20 -8
- package/lib/components/EditSidePanel/EditSidePanel.js +3 -3
- package/lib/components/EditTearsheet/EditTearsheet.js +5 -5
- package/lib/components/EditTearsheet/EditTearsheetForm.js +5 -3
- package/lib/components/EditTearsheet/preview-components/MultiFormEditTearsheet.js +21 -21
- package/lib/components/EmptyStates/EmptyState.js +4 -4
- package/lib/components/EmptyStates/EmptyStateContent.js +6 -6
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +4 -4
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +4 -4
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +4 -4
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +4 -4
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +4 -4
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +4 -4
- package/lib/components/ExampleComponent/ExampleComponent.js +7 -7
- package/lib/components/ExportModal/ExportModal.js +17 -14
- package/lib/components/ExpressiveCard/ExpressiveCard.js +1 -1
- package/lib/components/HTTPErrors/HTTPErrorContent.js +3 -3
- package/lib/components/ImportModal/ImportModal.js +19 -14
- package/lib/components/InlineEdit/InlineEdit.js +26 -14
- package/lib/components/ModifiedTabs/ModifiedTabLabelNew.js +10 -4
- package/lib/components/ModifiedTabs/ModifiedTabLabelWithClose.js +14 -14
- package/lib/components/ModifiedTabs/ModifiedTabs.js +66 -45
- package/lib/components/MultiAddSelect/MultiAddSelect.js +2 -2
- package/lib/components/NotificationsPanel/NotificationsPanel.js +37 -23
- package/lib/components/OptionsTile/OptionsTile.js +15 -9
- package/lib/components/PageHeader/PageHeader.js +33 -29
- package/lib/components/PageHeader/PageHeaderTitle.js +2 -2
- package/lib/components/PageHeader/PageHeaderUtils.js +2 -2
- package/lib/components/ProductiveCard/ProductiveCard.js +5 -0
- package/lib/components/RemoveModal/RemoveModal.js +9 -8
- package/lib/components/Saving/Saving.js +28 -10
- package/lib/components/SidePanel/SidePanel.js +22 -14
- package/lib/components/StatusIcon/StatusIcon.js +300 -75
- package/lib/components/TagSet/TagSet.js +8 -17
- package/lib/components/TagSet/TagSetModal.js +10 -9
- package/lib/components/TagSet/TagSetOverflow.js +38 -35
- package/lib/components/TagSet/constants.js +27 -0
- package/lib/components/Tearsheet/Tearsheet.js +4 -4
- package/lib/components/Tearsheet/TearsheetNarrow.js +3 -3
- package/lib/components/Tearsheet/TearsheetShell.js +13 -12
- package/lib/components/Toolbar/Toolbar.js +3 -1
- package/lib/components/Toolbar/ToolbarButton.js +20 -10
- package/lib/components/UserProfileImage/UserProfileImage.js +37 -12
- package/lib/components/WebTerminal/WebTerminal.js +19 -10
- package/lib/components/WebTerminal/preview-components/Navigation.js +13 -7
- package/lib/components/_Canary/Canary.js +2 -2
- package/lib/global/js/utils/test-helper.js +2 -1
- package/lib/settings.js +2 -11
- package/package.json +11 -12
- package/scss/components/APIKeyModal/_api-key-modal.scss +44 -55
- package/scss/components/APIKeyModal/_carbon-imports.scss +15 -0
- package/scss/components/APIKeyModal/_index-with-carbon.scss +9 -0
- package/scss/components/APIKeyModal/_index.scss +1 -1
- package/scss/components/APIKeyModal/_storybook-styles.scss +10 -8
- package/scss/components/AboutModal/_about-modal.scss +120 -112
- package/scss/components/AboutModal/_carbon-imports.scss +11 -0
- package/scss/components/AboutModal/_index-with-carbon.scss +9 -0
- package/scss/components/AboutModal/_index.scss +1 -1
- package/scss/components/AboutModal/_storybook-styles.scss +2 -1
- package/scss/components/ActionBar/_action-bar.scss +35 -47
- package/scss/components/ActionBar/_carbon-imports.scss +11 -0
- package/scss/components/ActionBar/_index-with-carbon.scss +9 -0
- package/scss/components/ActionBar/_index.scss +1 -1
- package/scss/components/ActionBar/_storybook-styles.scss +1 -1
- package/scss/components/ActionSet/_action-set.scss +88 -96
- package/scss/components/ActionSet/_carbon-imports.scss +11 -0
- package/scss/components/ActionSet/_index-with-carbon.scss +9 -0
- package/scss/components/ActionSet/_index.scss +1 -1
- package/scss/components/ActionSet/_storybook-styles.scss +3 -3
- package/scss/components/AddSelect/_add-select.scss +288 -278
- package/scss/components/AddSelect/_carbon-imports.scss +19 -0
- package/scss/components/AddSelect/_index-with-carbon.scss +9 -0
- package/scss/components/AddSelect/_index.scss +1 -1
- package/scss/components/BreadcrumbWithOverflow/_breadcrumb-with-overflow.scss +58 -64
- package/scss/components/BreadcrumbWithOverflow/_carbon-imports.scss +12 -0
- package/scss/components/BreadcrumbWithOverflow/_index-with-carbon.scss +9 -0
- package/scss/components/BreadcrumbWithOverflow/_index.scss +1 -1
- package/scss/components/BreadcrumbWithOverflow/_storybook-styles.scss +1 -1
- package/scss/components/ButtonMenu/_button-menu.scss +12 -19
- package/scss/components/ButtonMenu/_carbon-imports.scss +9 -0
- package/scss/components/ButtonMenu/_index-with-carbon.scss +9 -0
- package/scss/components/ButtonMenu/_index.scss +1 -1
- package/scss/components/ButtonSetWithOverflow/_button-set-with-overflow.scss +24 -34
- package/scss/components/ButtonSetWithOverflow/_carbon-imports.scss +10 -0
- package/scss/components/ButtonSetWithOverflow/_index-with-carbon.scss +9 -0
- package/scss/components/ButtonSetWithOverflow/_index.scss +1 -1
- package/scss/components/ButtonSetWithOverflow/_storybook-styles.scss +1 -1
- package/scss/components/Card/_carbon-imports.scss +11 -0
- package/scss/components/Card/_card.scss +107 -114
- package/scss/components/Card/_index-with-carbon.scss +9 -0
- package/scss/components/Card/_index.scss +1 -3
- package/scss/components/Cascade/_carbon-imports.scss +6 -0
- package/scss/components/Cascade/_cascade.scss +30 -34
- package/scss/components/Cascade/_index-with-carbon.scss +9 -0
- package/scss/components/Cascade/_index.scss +1 -1
- package/scss/components/Cascade/_storybook-styles.scss +6 -5
- package/scss/components/ComboButton/_carbon-imports.scss +11 -0
- package/scss/components/ComboButton/_combo-button.scss +57 -46
- package/scss/components/ComboButton/_index-with-carbon.scss +9 -0
- package/scss/components/ComboButton/_index.scss +1 -1
- package/scss/components/CreateFullPage/_carbon-imports.scss +17 -0
- package/scss/components/CreateFullPage/_create-full-page.scss +134 -140
- package/scss/components/CreateFullPage/_index-with-carbon.scss +9 -0
- package/scss/components/CreateFullPage/_index.scss +1 -1
- package/scss/components/CreateFullPage/_storybook-styles.scss +26 -10
- package/scss/components/CreateInfluencer/_carbon-imports.scss +10 -0
- package/scss/components/CreateInfluencer/_create-influencer.scss +65 -70
- package/scss/components/CreateInfluencer/_index-with-carbon.scss +9 -0
- package/scss/components/CreateInfluencer/_index.scss +1 -1
- package/scss/components/CreateModal/_carbon-imports.scss +12 -0
- package/scss/components/CreateModal/_create-modal.scss +56 -59
- package/scss/components/CreateModal/_index-with-carbon.scss +9 -0
- package/scss/components/CreateModal/_index.scss +1 -1
- package/scss/components/CreateModal/_storybook-styles.scss +24 -21
- package/scss/components/CreateSidePanel/_carbon-imports.scss +10 -0
- package/scss/components/CreateSidePanel/_create-side-panel.scss +65 -71
- package/scss/components/CreateSidePanel/_index-with-carbon.scss +9 -0
- package/scss/components/CreateSidePanel/_index.scss +1 -1
- package/scss/components/CreateSidePanel/_storybook-styles.scss +8 -6
- package/scss/components/CreateTearsheet/_carbon-imports.scss +10 -0
- package/scss/components/CreateTearsheet/_create-tearsheet.scss +116 -98
- package/scss/components/CreateTearsheet/_index-with-carbon.scss +9 -0
- package/scss/components/CreateTearsheet/_index.scss +1 -1
- package/scss/components/CreateTearsheet/_storybook-styles.scss +14 -11
- package/scss/components/CreateTearsheetNarrow/_carbon-imports.scss +10 -0
- package/scss/components/CreateTearsheetNarrow/_create-tearsheet-narrow.scss +36 -44
- package/scss/components/CreateTearsheetNarrow/_index-with-carbon.scss +9 -0
- package/scss/components/CreateTearsheetNarrow/_index.scss +1 -1
- package/scss/components/CreateTearsheetNarrow/_storybook-styles.scss +7 -6
- package/scss/components/DataSpreadsheet/_carbon-imports.scss +6 -0
- package/scss/components/DataSpreadsheet/_data-spreadsheet.scss +217 -173
- package/scss/components/DataSpreadsheet/_index-with-carbon.scss +9 -0
- package/scss/components/DataSpreadsheet/_index.scss +1 -1
- package/scss/components/Datagrid/_carbon-imports.scss +6 -0
- package/scss/components/Datagrid/_datagrid.scss +29 -36
- package/scss/components/Datagrid/_index-with-carbon.scss +9 -0
- package/scss/components/Datagrid/_index.scss +1 -1
- package/scss/components/Datagrid/_storybook-styles.scss +15 -11
- package/scss/components/Datagrid/styles/_datagrid.scss +62 -59
- package/scss/components/Datagrid/styles/_draggableElement.scss +15 -13
- package/scss/components/Datagrid/styles/_index.scss +13 -13
- package/scss/components/Datagrid/styles/_useActionsColumn.scss +5 -4
- package/scss/components/Datagrid/styles/_useColumnCenterAlign.scss +2 -1
- package/scss/components/Datagrid/styles/_useColumnRightAlign.scss +5 -5
- package/scss/components/Datagrid/styles/_useExpandedRow.scss +14 -7
- package/scss/components/Datagrid/styles/_useNestedRows.scss +6 -3
- package/scss/components/Datagrid/styles/_useNestedTable.scss +15 -9
- package/scss/components/Datagrid/styles/_useSelectAllToggle.scss +6 -5
- package/scss/components/Datagrid/styles/_useSortableColumns.scss +14 -12
- package/scss/components/Datagrid/styles/_useStickyColumn.scss +10 -9
- package/scss/components/Datagrid/styles/_variables.scss +3 -2
- package/scss/components/Datagrid/styles/addons/_CustomizeColumnsModal.scss +15 -11
- package/scss/components/Datagrid/styles/addons/_RowSizeDropdown.scss +9 -7
- package/scss/components/EditFullPage/_edit-full-page.scss +9 -17
- package/scss/components/EditSidePanel/_carbon-imports.scss +9 -0
- package/scss/components/EditSidePanel/_edit-side-panel.scss +45 -54
- package/scss/components/EditSidePanel/_index-with-carbon.scss +9 -0
- package/scss/components/EditSidePanel/_index.scss +1 -1
- package/scss/components/EditSidePanel/_storybook-styles.scss +3 -1
- package/scss/components/EditTearsheet/_edit-tearsheet.scss +95 -93
- package/scss/components/EditTearsheet/_storybook-styles.scss +15 -11
- package/scss/components/EditTearsheetNarrow/_edit-tearsheet-narrow.scss +9 -17
- package/scss/components/EmptyStates/_carbon-imports.scss +11 -0
- package/scss/components/EmptyStates/_empty-state.scss +38 -48
- package/scss/components/EmptyStates/_index-with-carbon.scss +9 -0
- package/scss/components/EmptyStates/_index.scss +1 -1
- package/scss/components/ExampleComponent/_carbon-imports.scss +10 -0
- package/scss/components/ExampleComponent/_example-component.scss +15 -26
- package/scss/components/ExampleComponent/_index-with-carbon.scss +9 -0
- package/scss/components/ExampleComponent/_index.scss +1 -1
- package/scss/components/ExportModal/_carbon-imports.scss +16 -0
- package/scss/components/ExportModal/_export-modal.scss +41 -48
- package/scss/components/ExportModal/_index-with-carbon.scss +9 -0
- package/scss/components/ExportModal/_index.scss +1 -1
- package/scss/components/ExpressiveCard/_carbon-imports.scss +6 -0
- package/scss/components/ExpressiveCard/_expressive-card.scss +7 -14
- package/scss/components/ExpressiveCard/_index-with-carbon.scss +9 -0
- package/scss/components/ExpressiveCard/_index.scss +1 -1
- package/scss/components/ExpressiveCard/_storybook-styles.scss +6 -5
- package/scss/components/HTTPErrors/_carbon-imports.scss +10 -0
- package/scss/components/HTTPErrors/_http-errors.scss +48 -56
- package/scss/components/HTTPErrors/_index-with-carbon.scss +9 -0
- package/scss/components/HTTPErrors/_index.scss +1 -1
- package/scss/components/ImportModal/_carbon-imports.scss +14 -0
- package/scss/components/ImportModal/_import-modal.scss +72 -77
- package/scss/components/ImportModal/_index-with-carbon.scss +9 -0
- package/scss/components/ImportModal/_index.scss +1 -1
- package/scss/components/InlineEdit/_carbon-imports.scss +6 -0
- package/scss/components/InlineEdit/_index-with-carbon.scss +9 -0
- package/scss/components/InlineEdit/_index.scss +1 -1
- package/scss/components/InlineEdit/_inline-edit.scss +261 -237
- package/scss/components/InlineEdit/_storybook-styles.scss +7 -3
- package/scss/components/ModifiedTabs/_carbon-imports.scss +10 -0
- package/scss/components/ModifiedTabs/_index-with-carbon.scss +9 -0
- package/scss/components/ModifiedTabs/_index.scss +8 -1
- package/scss/components/ModifiedTabs/_modified-tabs.scss +38 -16
- package/scss/components/MultiAddSelect/_carbon-imports.scss +6 -0
- package/scss/components/MultiAddSelect/_index-with-carbon.scss +9 -0
- package/scss/components/MultiAddSelect/_index.scss +8 -1
- package/scss/components/MultiAddSelect/_multi-add-select.scss +1 -1
- package/scss/components/NotificationsPanel/_carbon-imports.scss +12 -0
- package/scss/components/NotificationsPanel/_index-with-carbon.scss +9 -0
- package/scss/components/NotificationsPanel/_index.scss +1 -1
- package/scss/components/NotificationsPanel/_notifications-panel.scss +241 -237
- package/scss/components/NotificationsPanel/_storybook-styles.scss +9 -0
- package/scss/components/OptionsTile/_carbon-imports.scss +10 -0
- package/scss/components/OptionsTile/_index-with-carbon.scss +9 -0
- package/scss/components/OptionsTile/_index.scss +1 -1
- package/scss/components/OptionsTile/_options-tile.scss +173 -171
- package/scss/components/OptionsTile/_storybook-styles.scss +7 -4
- package/scss/components/PageHeader/_carbon-imports.scss +13 -0
- package/scss/components/PageHeader/_index-with-carbon.scss +9 -0
- package/scss/components/PageHeader/_index.scss +1 -1
- package/scss/components/PageHeader/_page-header.scss +449 -461
- package/scss/components/PageHeader/_storybook-styles.scss +15 -11
- package/scss/components/ProductiveCard/_carbon-imports.scss +6 -0
- package/scss/components/ProductiveCard/_index-with-carbon.scss +9 -0
- package/scss/components/ProductiveCard/_index.scss +1 -1
- package/scss/components/ProductiveCard/_productive-card.scss +43 -48
- package/scss/components/ProductiveCard/_storybook-styles.scss +7 -6
- package/scss/components/RemoveModal/_carbon-imports.scss +12 -0
- package/scss/components/RemoveModal/_index-with-carbon.scss +9 -0
- package/scss/components/RemoveModal/_index.scss +1 -1
- package/scss/components/RemoveModal/_remove-modal.scss +17 -26
- package/scss/components/Saving/_carbon-imports.scss +11 -0
- package/scss/components/Saving/_index-with-carbon.scss +9 -0
- package/scss/components/Saving/_index.scss +1 -1
- package/scss/components/Saving/_saving.scss +19 -27
- package/scss/components/Saving/_storybook-styles.scss +1 -1
- package/scss/components/SidePanel/_carbon-imports.scss +10 -0
- package/scss/components/SidePanel/_index-with-carbon.scss +9 -0
- package/scss/components/SidePanel/_index.scss +1 -1
- package/scss/components/SidePanel/_side-panel-variables.scss +1 -1
- package/scss/components/SidePanel/_side-panel.scss +402 -392
- package/scss/components/SidePanel/_storybook-styles.scss +6 -4
- package/scss/components/SingleAddSelect/_carbon-imports.scss +6 -0
- package/scss/components/SingleAddSelect/_index-with-carbon.scss +9 -0
- package/scss/components/SingleAddSelect/_index.scss +1 -1
- package/scss/components/SingleAddSelect/_single-add-select.scss +1 -1
- package/scss/components/StatusIcon/_carbon-imports.scss +6 -0
- package/scss/components/StatusIcon/_index-with-carbon.scss +9 -0
- package/scss/components/StatusIcon/_index.scss +1 -1
- package/scss/components/StatusIcon/_status-icon.scss +30 -27
- package/scss/components/TagSet/_carbon-imports.scss +14 -0
- package/scss/components/TagSet/_index-with-carbon.scss +9 -0
- package/scss/components/TagSet/_index.scss +1 -1
- package/scss/components/TagSet/_storybook-styles.scss +1 -1
- package/scss/components/TagSet/_tag-set.scss +141 -129
- package/scss/components/Tearsheet/_carbon-imports.scss +10 -0
- package/scss/components/Tearsheet/_index-with-carbon.scss +9 -0
- package/scss/components/Tearsheet/_index.scss +1 -1
- package/scss/components/Tearsheet/_storybook-styles.scss +6 -5
- package/scss/components/Tearsheet/_tearsheet.scss +269 -263
- package/scss/components/Toolbar/_carbon-imports.scss +8 -0
- package/scss/components/Toolbar/_index-with-carbon.scss +9 -0
- package/scss/components/Toolbar/_index.scss +1 -1
- package/scss/components/Toolbar/_toolbar.scss +53 -56
- package/scss/components/UserProfileImage/_carbon-imports.scss +10 -0
- package/scss/components/UserProfileImage/_color-map.scss +30 -30
- package/scss/components/UserProfileImage/_index-with-carbon.scss +9 -0
- package/scss/components/UserProfileImage/_index.scss +1 -1
- package/scss/components/UserProfileImage/_user-profile-image.scss +83 -79
- package/scss/components/WebTerminal/_carbon-imports.scss +6 -0
- package/scss/components/WebTerminal/_index-with-carbon.scss +9 -0
- package/scss/components/WebTerminal/_index.scss +1 -1
- package/scss/components/WebTerminal/_storybook-styles.scss +12 -2
- package/scss/components/WebTerminal/_web-terminal.scss +16 -5
- package/scss/components/_Canary/_canary.scss +2 -4
- package/scss/components/_index-released-only-with-carbon.scss +35 -0
- package/scss/components/_index-released-only.scss +26 -26
- package/scss/components/_index-with-carbon.scss +47 -0
- package/scss/components/_index.scss +40 -40
- package/scss/global/styles/_display-box.scss +9 -5
- package/scss/global/styles/_project-settings.scss +2 -18
- package/scss/index-full-carbon.scss +4 -5
- package/scss/index-without-carbon-released-only.scss +5 -6
- package/scss/index-without-carbon.scss +5 -6
- package/scss/index.scss +4 -4
- package/scss/global/styles/_generate-carbon-modules.scss +0 -14
@@ -16,10 +16,10 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
16
16
|
//
|
17
17
|
import React, { useEffect, useRef, useState } from 'react';
|
18
18
|
import PropTypes from 'prop-types';
|
19
|
-
import {
|
19
|
+
import { spacing10, baseFontSize } from '@carbon/layout';
|
20
20
|
import cx from 'classnames';
|
21
21
|
import { useResizeDetector } from 'react-resize-detector';
|
22
|
-
import {
|
22
|
+
import { FlexGrid, Column, Row, Button, Tag } from '@carbon/react';
|
23
23
|
import { breakpoints } from '@carbon/layout';
|
24
24
|
import { useWindowResize, useNearestScroll } from '../../global/js/hooks';
|
25
25
|
import { getDevtoolsProps } from '../../global/js/utils/devtools';
|
@@ -29,7 +29,7 @@ import { ActionBar } from '../ActionBar/';
|
|
29
29
|
import { BreadcrumbWithOverflow } from '../BreadcrumbWithOverflow';
|
30
30
|
import { TagSet, string_required_if_more_than_10_tags } from '../TagSet/TagSet';
|
31
31
|
import { ButtonSetWithOverflow } from '../ButtonSetWithOverflow';
|
32
|
-
import {
|
32
|
+
import { ChevronUp } from '@carbon/icons-react';
|
33
33
|
var componentName = 'PageHeader';
|
34
34
|
import { blockClass, utilCheckUpdateVerticalSpace, utilGetBreadcrumbItemForTitle, utilSetCollapsed } from './PageHeaderUtils';
|
35
35
|
import { PageHeaderTitle } from './PageHeaderTitle'; // Default values for props
|
@@ -311,7 +311,7 @@ export var PageHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
311
311
|
var result = withoutBackground ? 0 : 1;
|
312
312
|
|
313
313
|
if (!result && metrics.headerHeight > 0 && (breadcrumbs || actionBarItems || tags || navigation)) {
|
314
|
-
var startAddingAt = parseFloat(
|
314
|
+
var startAddingAt = parseFloat(spacing10, 10) * parseInt(baseFontSize);
|
315
315
|
var scrollRemaining = metrics.headerHeight - scrollYValue;
|
316
316
|
/* don't know how to test resize */
|
317
317
|
|
@@ -367,7 +367,7 @@ export var PageHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
367
367
|
className: cx([blockClass, "".concat(blockClass, "--no-margins-below-row"), className, (_ref6 = {}, _defineProperty(_ref6, "".concat(blockClass, "--has-navigation"), navigation || tags), _defineProperty(_ref6, "".concat(blockClass, "--has-navigation-tags-only"), !navigation && tags), _ref6)]),
|
368
368
|
style: pageHeaderStyles,
|
369
369
|
ref: headerRef
|
370
|
-
}, getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(
|
370
|
+
}, getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(FlexGrid, {
|
371
371
|
fullWidth: fullWidthGrid === true || fullWidthGrid === 'xl',
|
372
372
|
narrow: narrowGrid,
|
373
373
|
className: cx(_defineProperty({}, "".concat(blockClass, "--width--xl"), fullWidthGrid === 'xl'))
|
@@ -424,7 +424,7 @@ export var PageHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
424
424
|
}, /*#__PURE__*/React.createElement(Column, {
|
425
425
|
className: cx("".concat(blockClass, "__navigation-tags"), _defineProperty({}, "".concat(blockClass, "__navigation-tags--tags-only"), !navigation))
|
426
426
|
}, /*#__PURE__*/React.createElement(TagSet, {
|
427
|
-
overflowAlign: "
|
427
|
+
overflowAlign: "bottom-right",
|
428
428
|
allTagsModalSearchLabel: allTagsModalSearchLabel,
|
429
429
|
allTagsModalSearchPlaceholderText: allTagsModalSearchPlaceholderText,
|
430
430
|
allTagsModalTitle: allTagsModalTitle,
|
@@ -439,7 +439,7 @@ export var PageHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
439
439
|
}, navigation), tags ? /*#__PURE__*/React.createElement(Column, {
|
440
440
|
className: cx("".concat(blockClass, "__navigation-tags"), _defineProperty({}, "".concat(blockClass, "__navigation-tags--tags-only"), !navigation))
|
441
441
|
}, /*#__PURE__*/React.createElement(TagSet, {
|
442
|
-
overflowAlign: "
|
442
|
+
overflowAlign: "bottom-right",
|
443
443
|
allTagsModalSearchLabel: allTagsModalSearchLabel,
|
444
444
|
allTagsModalSearchPlaceholderText: allTagsModalSearchPlaceholderText,
|
445
445
|
allTagsModalTitle: allTagsModalTitle,
|
@@ -454,8 +454,12 @@ export var PageHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
454
454
|
fullyCollapsed ? expandHeaderIconDescription : collapseHeaderIconDescription,
|
455
455
|
kind: "ghost",
|
456
456
|
onClick: handleCollapseToggle,
|
457
|
-
renderIcon:
|
458
|
-
|
457
|
+
renderIcon: function renderIcon(props) {
|
458
|
+
return /*#__PURE__*/React.createElement(ChevronUp, _extends({
|
459
|
+
size: 16
|
460
|
+
}, props));
|
461
|
+
},
|
462
|
+
size: "md",
|
459
463
|
tooltipPosition: "bottom",
|
460
464
|
tooltipAlignment: "end",
|
461
465
|
type: "button"
|
@@ -5,7 +5,7 @@ var _excluded = ["text", "content", "loading", "icon", "asText", "onChange", "on
|
|
5
5
|
import React from 'react';
|
6
6
|
import PropTypes from 'prop-types';
|
7
7
|
import cx from 'classnames';
|
8
|
-
import { SkeletonText } from 'carbon
|
8
|
+
import { SkeletonText } from '@carbon/react';
|
9
9
|
import { InlineEdit } from '../';
|
10
10
|
/**
|
11
11
|
*
|
@@ -14,7 +14,7 @@ import React from 'react';
|
|
14
14
|
import cx from 'classnames';
|
15
15
|
import { pkg } from '../../settings';
|
16
16
|
import { scrollableAncestor } from '../../global/js/utils/scrollableAncestor';
|
17
|
-
import { SkeletonText } from 'carbon
|
17
|
+
import { SkeletonText } from '@carbon/react';
|
18
18
|
export var blockClass = "".concat(pkg.prefix, "--page-header");
|
19
19
|
/**
|
20
20
|
* Assesses the vertical height of various elements and calls setMetrics with update
|
@@ -102,6 +102,11 @@ ProductiveCard.propTypes = {
|
|
102
102
|
onKeyDown: PropTypes.func
|
103
103
|
})),
|
104
104
|
|
105
|
+
/**
|
106
|
+
* Aria label prop required for OverflowMenu
|
107
|
+
*/
|
108
|
+
overflowAriaLabel: PropTypes.string,
|
109
|
+
|
105
110
|
/**
|
106
111
|
* Optionally specify an href for your Button to become an <a> element
|
107
112
|
*/
|
@@ -16,7 +16,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
16
16
|
//
|
17
17
|
import React, { useState, useRef, forwardRef, useEffect } from 'react';
|
18
18
|
import cx from 'classnames';
|
19
|
-
import { Button, ComposedModal, ModalHeader, ModalFooter, ModalBody, TextInput } from 'carbon
|
19
|
+
import { Button, ComposedModal, ModalHeader, ModalFooter, ModalBody, TextInput } from '@carbon/react';
|
20
20
|
import PropTypes from 'prop-types';
|
21
21
|
import { getDevtoolsProps } from '../../global/js/utils/devtools';
|
22
22
|
import uuidv4 from '../../global/js/utils/uuidv4';
|
@@ -69,7 +69,8 @@ export var RemoveModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
69
69
|
}, [open, previousState === null || previousState === void 0 ? void 0 : previousState.open]);
|
70
70
|
return /*#__PURE__*/React.createElement(ComposedModal, _extends({}, rest, {
|
71
71
|
className: cx(blockClass, className),
|
72
|
-
size: "sm"
|
72
|
+
size: "sm",
|
73
|
+
"aria-label": title
|
73
74
|
}, _objectSpread({
|
74
75
|
open: open,
|
75
76
|
ref: ref,
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
2
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
4
4
|
var _excluded = ["secondaryButtonText", "className", "defaultIconDescription", "defaultText", "failIconDescription", "failText", "inProgressIconDescription", "inProgressText", "onRequestCancel", "onRequestSave", "status", "successIconDescription", "successText", "type"];
|
5
5
|
|
@@ -11,8 +11,8 @@ var _excluded = ["secondaryButtonText", "className", "defaultIconDescription", "
|
|
11
11
|
*/
|
12
12
|
import React, { forwardRef } from 'react';
|
13
13
|
import cx from 'classnames';
|
14
|
-
import { Button, InlineLoading } from 'carbon
|
15
|
-
import {
|
14
|
+
import { Button, InlineLoading } from '@carbon/react';
|
15
|
+
import { Save, CheckmarkOutline, ErrorOutline, ErrorFilled } from '@carbon/icons-react';
|
16
16
|
import PropTypes from 'prop-types';
|
17
17
|
import { getDevtoolsProps } from '../../global/js/utils/devtools';
|
18
18
|
import { pkg } from '../../settings';
|
@@ -40,20 +40,36 @@ export var Saving = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
40
40
|
default: {
|
41
41
|
text: defaultText,
|
42
42
|
iconDescription: defaultIconDescription,
|
43
|
-
icon:
|
43
|
+
icon: function icon(props) {
|
44
|
+
return /*#__PURE__*/React.createElement(CheckmarkOutline, _extends({
|
45
|
+
size: 16
|
46
|
+
}, props));
|
47
|
+
}
|
44
48
|
}
|
45
49
|
}, _defineProperty(_statusObj, 'in-progress', {
|
46
50
|
text: inProgressText,
|
47
51
|
iconDescription: inProgressIconDescription,
|
48
|
-
icon:
|
52
|
+
icon: function icon(props) {
|
53
|
+
return /*#__PURE__*/React.createElement(InlineLoading, _extends({
|
54
|
+
size: 16
|
55
|
+
}, props));
|
56
|
+
}
|
49
57
|
}), _defineProperty(_statusObj, "success", {
|
50
58
|
text: successText,
|
51
59
|
iconDescription: successIconDescription,
|
52
|
-
icon:
|
60
|
+
icon: function icon(props) {
|
61
|
+
return /*#__PURE__*/React.createElement(Save, _extends({
|
62
|
+
size: 16
|
63
|
+
}, props));
|
64
|
+
}
|
53
65
|
}), _defineProperty(_statusObj, "fail", {
|
54
66
|
text: failText,
|
55
67
|
iconDescription: failIconDescription,
|
56
|
-
icon:
|
68
|
+
icon: function icon(props) {
|
69
|
+
return /*#__PURE__*/React.createElement(ErrorOutline, _extends({
|
70
|
+
size: 16
|
71
|
+
}, props));
|
72
|
+
}
|
57
73
|
}), _statusObj);
|
58
74
|
var blockClass = "".concat(pkg.prefix, "--saving");
|
59
75
|
return /*#__PURE__*/React.createElement("div", _extends({}, rest, {
|
@@ -63,7 +79,9 @@ export var Saving = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
63
79
|
className: "".concat(blockClass, "__message")
|
64
80
|
}, status === 'fail' && /*#__PURE__*/React.createElement("div", {
|
65
81
|
className: "".concat(blockClass, "__error-icon")
|
66
|
-
}, /*#__PURE__*/React.createElement(
|
82
|
+
}, /*#__PURE__*/React.createElement(ErrorFilled, {
|
83
|
+
size: 16
|
84
|
+
})), /*#__PURE__*/React.createElement("p", {
|
67
85
|
className: "".concat(blockClass, "__text")
|
68
86
|
}, (_statusObj$status = statusObj[status]) === null || _statusObj$status === void 0 ? void 0 : _statusObj$status.text)) : /*#__PURE__*/React.createElement("div", {
|
69
87
|
className: "".concat(blockClass, "__buttons")
|
@@ -29,8 +29,8 @@ import { pkg } from '../../settings';
|
|
29
29
|
import { SIDE_PANEL_SIZES } from './constants';
|
30
30
|
import { usePreviousValue } from '../../global/js/hooks'; // Carbon and package components we use.
|
31
31
|
|
32
|
-
import { Button } from 'carbon
|
33
|
-
import {
|
32
|
+
import { Button } from '@carbon/react';
|
33
|
+
import { Close, ArrowLeft } from '@carbon/icons-react';
|
34
34
|
import { ActionSet } from '../ActionSet';
|
35
35
|
var blockClass = "".concat(pkg.prefix, "--side-panel");
|
36
36
|
var componentName = 'SidePanel'; // NOTE: the component SCSS is not imported here: it is rolled up separately.
|
@@ -408,9 +408,13 @@ export var SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
408
408
|
}, currentStep > 0 && /*#__PURE__*/React.createElement(Button, {
|
409
409
|
"aria-label": navigationBackIconDescription,
|
410
410
|
kind: "ghost",
|
411
|
-
size: "
|
411
|
+
size: "sm",
|
412
412
|
disabled: false,
|
413
|
-
renderIcon:
|
413
|
+
renderIcon: function renderIcon(props) {
|
414
|
+
return /*#__PURE__*/React.createElement(ArrowLeft, _extends({
|
415
|
+
size: 20
|
416
|
+
}, props));
|
417
|
+
},
|
414
418
|
iconDescription: navigationBackIconDescription,
|
415
419
|
className: "".concat(blockClass, "__navigation-back-button"),
|
416
420
|
onClick: onNavigationBack
|
@@ -419,8 +423,12 @@ export var SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
419
423
|
}, labelText), title && title.length && renderTitle()), /*#__PURE__*/React.createElement(Button, {
|
420
424
|
"aria-label": closeIconDescription,
|
421
425
|
kind: "ghost",
|
422
|
-
size: "
|
423
|
-
renderIcon:
|
426
|
+
size: "sm",
|
427
|
+
renderIcon: function renderIcon(props) {
|
428
|
+
return /*#__PURE__*/React.createElement(Close, _extends({
|
429
|
+
size: 20
|
430
|
+
}, props));
|
431
|
+
},
|
424
432
|
iconDescription: closeIconDescription,
|
425
433
|
className: "".concat(blockClass, "__close-button"),
|
426
434
|
onClick: onRequestClose,
|
@@ -444,7 +452,7 @@ export var SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
444
452
|
return /*#__PURE__*/React.createElement(Button, _extends({}, rest, {
|
445
453
|
key: label,
|
446
454
|
kind: kind || 'ghost',
|
447
|
-
size: "
|
455
|
+
size: "sm",
|
448
456
|
renderIcon: icon,
|
449
457
|
iconDescription: label,
|
450
458
|
tooltipPosition: "bottom",
|
@@ -502,7 +510,7 @@ export var SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
502
510
|
}, children), /*#__PURE__*/React.createElement(ActionSet, {
|
503
511
|
actions: actions,
|
504
512
|
className: primaryActionContainerClassNames,
|
505
|
-
size: size
|
513
|
+
size: size === 'xs' ? 'sm' : size
|
506
514
|
})), /*#__PURE__*/React.createElement("span", {
|
507
515
|
ref: endTrapRef,
|
508
516
|
tabIndex: "0",
|
@@ -525,7 +533,7 @@ SidePanel.propTypes = {
|
|
525
533
|
actionToolbarButtons: PropTypes.arrayOf(PropTypes.shape({
|
526
534
|
label: PropTypes.string,
|
527
535
|
leading: PropTypes.bool,
|
528
|
-
icon: PropTypes.object,
|
536
|
+
icon: PropTypes.oneOfType([PropTypes.object, PropTypes.func]),
|
529
537
|
onClick: PropTypes.func,
|
530
538
|
kind: PropTypes.oneOf(['ghost', 'tertiary', 'secondary', 'primary'])
|
531
539
|
})),
|
@@ -646,7 +654,7 @@ SidePanel.propTypes = {
|
|
646
654
|
/**
|
647
655
|
* Sets the size of the side panel
|
648
656
|
*/
|
649
|
-
size: PropTypes.oneOf(['xs', 'sm', 'md', 'lg', '
|
657
|
+
size: PropTypes.oneOf(['xs', 'sm', 'md', 'lg', '2xl']),
|
650
658
|
|
651
659
|
/**
|
652
660
|
* Determines if this panel slides in
|
@@ -1,91 +1,23 @@
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
2
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
4
4
|
var _excluded = ["kind", "theme", "size", "className", "iconDescription"];
|
5
5
|
|
6
6
|
/**
|
7
|
-
* Copyright IBM Corp. 2021,
|
7
|
+
* Copyright IBM Corp. 2021, 2022
|
8
8
|
*
|
9
9
|
* This source code is licensed under the Apache-2.0 license found in the
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
11
11
|
*/
|
12
|
-
import React from 'react';
|
12
|
+
import React, { forwardRef } from 'react';
|
13
13
|
import PropTypes from 'prop-types';
|
14
14
|
import cx from 'classnames';
|
15
|
-
import {
|
15
|
+
import { Misuse, ErrorFilled, WarningAltInvertedFilled, WarningAltFilled, UndefinedFilled, UnknownFilled, CheckmarkFilled, InformationSquareFilled, Renew, Time } from '@carbon/icons-react';
|
16
16
|
import { getDevtoolsProps } from '../../global/js/utils/devtools';
|
17
17
|
import { pkg } from '../../settings';
|
18
|
-
var icons = {
|
19
|
-
fatal: {
|
20
|
-
sm: Misuse16,
|
21
|
-
md: Misuse20,
|
22
|
-
lg: Misuse24,
|
23
|
-
xlg: Misuse32
|
24
|
-
},
|
25
|
-
critical: {
|
26
|
-
sm: ErrorFilled16,
|
27
|
-
md: ErrorFilled20,
|
28
|
-
lg: ErrorFilled24,
|
29
|
-
xlg: ErrorFilled32
|
30
|
-
},
|
31
|
-
'major-warning': {
|
32
|
-
sm: WarningAltInvertedFilled16,
|
33
|
-
md: WarningAltInvertedFilled20,
|
34
|
-
lg: WarningAltInvertedFilled24,
|
35
|
-
xlg: WarningAltInvertedFilled32
|
36
|
-
},
|
37
|
-
'minor-warning': {
|
38
|
-
sm: WarningAltFilled16,
|
39
|
-
md: WarningAltFilled20,
|
40
|
-
lg: WarningAltFilled24,
|
41
|
-
xlg: WarningAltFilled32
|
42
|
-
},
|
43
|
-
undefined: {
|
44
|
-
sm: UndefinedFilled16,
|
45
|
-
md: UndefinedFilled20,
|
46
|
-
lg: UndefinedFilled24,
|
47
|
-
xlg: UndefinedFilled32
|
48
|
-
},
|
49
|
-
unknown: {
|
50
|
-
sm: UnknownFilled16,
|
51
|
-
md: UnknownFilled20,
|
52
|
-
lg: UnknownFilled24,
|
53
|
-
xlg: UnknownFilled32
|
54
|
-
},
|
55
|
-
normal: {
|
56
|
-
sm: CheckmarkFilled16,
|
57
|
-
md: CheckmarkFilled20,
|
58
|
-
lg: CheckmarkFilled24,
|
59
|
-
xlg: CheckmarkFilled32
|
60
|
-
},
|
61
|
-
info: {
|
62
|
-
sm: InformationSquareFilled16,
|
63
|
-
md: InformationSquareFilled20,
|
64
|
-
lg: InformationSquareFilled24,
|
65
|
-
xlg: InformationSquareFilled32
|
66
|
-
},
|
67
|
-
'in-progress': {
|
68
|
-
sm: Renew16,
|
69
|
-
md: Renew20,
|
70
|
-
lg: Renew24,
|
71
|
-
xlg: Renew32
|
72
|
-
},
|
73
|
-
running: {
|
74
|
-
sm: Renew16,
|
75
|
-
md: Renew20,
|
76
|
-
lg: Renew24,
|
77
|
-
xlg: Renew32
|
78
|
-
},
|
79
|
-
pending: {
|
80
|
-
sm: Time16,
|
81
|
-
md: Time20,
|
82
|
-
lg: Time24,
|
83
|
-
xlg: Time32
|
84
|
-
}
|
85
|
-
};
|
86
18
|
var blockClass = "".concat(pkg.prefix, "--status-icon");
|
87
19
|
var componentName = 'StatusIcon';
|
88
|
-
export var StatusIcon = /*#__PURE__*/
|
20
|
+
export var StatusIcon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
89
21
|
var _icons$kind;
|
90
22
|
|
91
23
|
var kind = _ref.kind,
|
@@ -95,6 +27,294 @@ export var StatusIcon = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
95
27
|
iconDescription = _ref.iconDescription,
|
96
28
|
rest = _objectWithoutProperties(_ref, _excluded);
|
97
29
|
|
30
|
+
var icons = {
|
31
|
+
fatal: {
|
32
|
+
sm: /*#__PURE__*/forwardRef(function (props, ref) {
|
33
|
+
return /*#__PURE__*/React.createElement(Misuse, _extends({
|
34
|
+
size: 16,
|
35
|
+
ref: ref
|
36
|
+
}, props));
|
37
|
+
}),
|
38
|
+
md: /*#__PURE__*/forwardRef(function (props, ref) {
|
39
|
+
return /*#__PURE__*/React.createElement(Misuse, _extends({
|
40
|
+
size: 20,
|
41
|
+
ref: ref
|
42
|
+
}, props));
|
43
|
+
}),
|
44
|
+
lg: /*#__PURE__*/forwardRef(function (props, ref) {
|
45
|
+
return /*#__PURE__*/React.createElement(Misuse, _extends({
|
46
|
+
size: 24,
|
47
|
+
ref: ref
|
48
|
+
}, props));
|
49
|
+
}),
|
50
|
+
xl: /*#__PURE__*/forwardRef(function (props, ref) {
|
51
|
+
return /*#__PURE__*/React.createElement(Misuse, _extends({
|
52
|
+
size: 32,
|
53
|
+
ref: ref
|
54
|
+
}, props));
|
55
|
+
})
|
56
|
+
},
|
57
|
+
critical: {
|
58
|
+
sm: /*#__PURE__*/forwardRef(function (props, ref) {
|
59
|
+
return /*#__PURE__*/React.createElement(ErrorFilled, _extends({
|
60
|
+
size: 16,
|
61
|
+
ref: ref
|
62
|
+
}, props));
|
63
|
+
}),
|
64
|
+
md: /*#__PURE__*/forwardRef(function (props, ref) {
|
65
|
+
return /*#__PURE__*/React.createElement(ErrorFilled, _extends({
|
66
|
+
size: 20,
|
67
|
+
ref: ref
|
68
|
+
}, props));
|
69
|
+
}),
|
70
|
+
lg: /*#__PURE__*/forwardRef(function (props, ref) {
|
71
|
+
return /*#__PURE__*/React.createElement(ErrorFilled, _extends({
|
72
|
+
size: 24,
|
73
|
+
ref: ref
|
74
|
+
}, props));
|
75
|
+
}),
|
76
|
+
xl: /*#__PURE__*/forwardRef(function (props, ref) {
|
77
|
+
return /*#__PURE__*/React.createElement(ErrorFilled, _extends({
|
78
|
+
size: 32,
|
79
|
+
ref: ref
|
80
|
+
}, props));
|
81
|
+
})
|
82
|
+
},
|
83
|
+
'major-warning': {
|
84
|
+
sm: /*#__PURE__*/forwardRef(function (props, ref) {
|
85
|
+
return /*#__PURE__*/React.createElement(WarningAltInvertedFilled, _extends({
|
86
|
+
size: 16,
|
87
|
+
ref: ref
|
88
|
+
}, props));
|
89
|
+
}),
|
90
|
+
md: /*#__PURE__*/forwardRef(function (props, ref) {
|
91
|
+
return /*#__PURE__*/React.createElement(WarningAltInvertedFilled, _extends({
|
92
|
+
size: 20,
|
93
|
+
ref: ref
|
94
|
+
}, props));
|
95
|
+
}),
|
96
|
+
lg: /*#__PURE__*/forwardRef(function (props, ref) {
|
97
|
+
return /*#__PURE__*/React.createElement(WarningAltInvertedFilled, _extends({
|
98
|
+
size: 24,
|
99
|
+
ref: ref
|
100
|
+
}, props));
|
101
|
+
}),
|
102
|
+
xl: /*#__PURE__*/forwardRef(function (props, ref) {
|
103
|
+
return /*#__PURE__*/React.createElement(WarningAltInvertedFilled, _extends({
|
104
|
+
size: 32,
|
105
|
+
ref: ref
|
106
|
+
}, props));
|
107
|
+
})
|
108
|
+
},
|
109
|
+
'minor-warning': {
|
110
|
+
sm: /*#__PURE__*/forwardRef(function (props, ref) {
|
111
|
+
return /*#__PURE__*/React.createElement(WarningAltFilled, _extends({
|
112
|
+
size: 16,
|
113
|
+
ref: ref
|
114
|
+
}, props));
|
115
|
+
}),
|
116
|
+
md: /*#__PURE__*/forwardRef(function (props, ref) {
|
117
|
+
return /*#__PURE__*/React.createElement(WarningAltFilled, _extends({
|
118
|
+
size: 20,
|
119
|
+
ref: ref
|
120
|
+
}, props));
|
121
|
+
}),
|
122
|
+
lg: /*#__PURE__*/forwardRef(function (props, ref) {
|
123
|
+
return /*#__PURE__*/React.createElement(WarningAltFilled, _extends({
|
124
|
+
size: 24,
|
125
|
+
ref: ref
|
126
|
+
}, props));
|
127
|
+
}),
|
128
|
+
xl: /*#__PURE__*/forwardRef(function (props, ref) {
|
129
|
+
return /*#__PURE__*/React.createElement(WarningAltFilled, _extends({
|
130
|
+
size: 32,
|
131
|
+
ref: ref
|
132
|
+
}, props));
|
133
|
+
})
|
134
|
+
},
|
135
|
+
undefined: {
|
136
|
+
sm: /*#__PURE__*/forwardRef(function (props, ref) {
|
137
|
+
return /*#__PURE__*/React.createElement(UndefinedFilled, _extends({
|
138
|
+
size: 16,
|
139
|
+
ref: ref
|
140
|
+
}, props));
|
141
|
+
}),
|
142
|
+
md: /*#__PURE__*/forwardRef(function (props, ref) {
|
143
|
+
return /*#__PURE__*/React.createElement(UndefinedFilled, _extends({
|
144
|
+
size: 20,
|
145
|
+
ref: ref
|
146
|
+
}, props));
|
147
|
+
}),
|
148
|
+
lg: /*#__PURE__*/forwardRef(function (props, ref) {
|
149
|
+
return /*#__PURE__*/React.createElement(UndefinedFilled, _extends({
|
150
|
+
size: 24,
|
151
|
+
ref: ref
|
152
|
+
}, props));
|
153
|
+
}),
|
154
|
+
xl: /*#__PURE__*/forwardRef(function (props, ref) {
|
155
|
+
return /*#__PURE__*/React.createElement(UndefinedFilled, _extends({
|
156
|
+
size: 32,
|
157
|
+
ref: ref
|
158
|
+
}, props));
|
159
|
+
})
|
160
|
+
},
|
161
|
+
unknown: {
|
162
|
+
sm: /*#__PURE__*/forwardRef(function (props, ref) {
|
163
|
+
return /*#__PURE__*/React.createElement(UnknownFilled, _extends({
|
164
|
+
size: 16,
|
165
|
+
ref: ref
|
166
|
+
}, props));
|
167
|
+
}),
|
168
|
+
md: /*#__PURE__*/forwardRef(function (props, ref) {
|
169
|
+
return /*#__PURE__*/React.createElement(UnknownFilled, _extends({
|
170
|
+
size: 20,
|
171
|
+
ref: ref
|
172
|
+
}, props));
|
173
|
+
}),
|
174
|
+
lg: /*#__PURE__*/forwardRef(function (props, ref) {
|
175
|
+
return /*#__PURE__*/React.createElement(UnknownFilled, _extends({
|
176
|
+
size: 24,
|
177
|
+
ref: ref
|
178
|
+
}, props));
|
179
|
+
}),
|
180
|
+
xl: /*#__PURE__*/forwardRef(function (props, ref) {
|
181
|
+
return /*#__PURE__*/React.createElement(UnknownFilled, _extends({
|
182
|
+
size: 32,
|
183
|
+
ref: ref
|
184
|
+
}, props));
|
185
|
+
})
|
186
|
+
},
|
187
|
+
normal: {
|
188
|
+
sm: /*#__PURE__*/forwardRef(function (props, ref) {
|
189
|
+
return /*#__PURE__*/React.createElement(CheckmarkFilled, _extends({
|
190
|
+
size: 16,
|
191
|
+
ref: ref
|
192
|
+
}, props));
|
193
|
+
}),
|
194
|
+
md: /*#__PURE__*/forwardRef(function (props, ref) {
|
195
|
+
return /*#__PURE__*/React.createElement(CheckmarkFilled, _extends({
|
196
|
+
size: 20,
|
197
|
+
ref: ref
|
198
|
+
}, props));
|
199
|
+
}),
|
200
|
+
lg: /*#__PURE__*/forwardRef(function (props, ref) {
|
201
|
+
return /*#__PURE__*/React.createElement(CheckmarkFilled, _extends({
|
202
|
+
size: 24,
|
203
|
+
ref: ref
|
204
|
+
}, props));
|
205
|
+
}),
|
206
|
+
xl: /*#__PURE__*/forwardRef(function (props, ref) {
|
207
|
+
return /*#__PURE__*/React.createElement(CheckmarkFilled, _extends({
|
208
|
+
size: 32,
|
209
|
+
ref: ref
|
210
|
+
}, props));
|
211
|
+
})
|
212
|
+
},
|
213
|
+
info: {
|
214
|
+
sm: /*#__PURE__*/forwardRef(function (props, ref) {
|
215
|
+
return /*#__PURE__*/React.createElement(InformationSquareFilled, _extends({
|
216
|
+
size: 16,
|
217
|
+
ref: ref
|
218
|
+
}, props));
|
219
|
+
}),
|
220
|
+
md: /*#__PURE__*/forwardRef(function (props, ref) {
|
221
|
+
return /*#__PURE__*/React.createElement(InformationSquareFilled, _extends({
|
222
|
+
size: 20,
|
223
|
+
ref: ref
|
224
|
+
}, props));
|
225
|
+
}),
|
226
|
+
lg: /*#__PURE__*/forwardRef(function (props, ref) {
|
227
|
+
return /*#__PURE__*/React.createElement(InformationSquareFilled, _extends({
|
228
|
+
size: 24,
|
229
|
+
ref: ref
|
230
|
+
}, props));
|
231
|
+
}),
|
232
|
+
xl: /*#__PURE__*/forwardRef(function (props, ref) {
|
233
|
+
return /*#__PURE__*/React.createElement(InformationSquareFilled, _extends({
|
234
|
+
size: 32,
|
235
|
+
ref: ref
|
236
|
+
}, props));
|
237
|
+
})
|
238
|
+
},
|
239
|
+
'in-progress': {
|
240
|
+
sm: /*#__PURE__*/forwardRef(function (props, ref) {
|
241
|
+
return /*#__PURE__*/React.createElement(Renew, _extends({
|
242
|
+
size: 16,
|
243
|
+
ref: ref
|
244
|
+
}, props));
|
245
|
+
}),
|
246
|
+
md: /*#__PURE__*/forwardRef(function (props, ref) {
|
247
|
+
return /*#__PURE__*/React.createElement(Renew, _extends({
|
248
|
+
size: 20,
|
249
|
+
ref: ref
|
250
|
+
}, props));
|
251
|
+
}),
|
252
|
+
lg: /*#__PURE__*/forwardRef(function (props, ref) {
|
253
|
+
return /*#__PURE__*/React.createElement(Renew, _extends({
|
254
|
+
size: 24,
|
255
|
+
ref: ref
|
256
|
+
}, props));
|
257
|
+
}),
|
258
|
+
xl: /*#__PURE__*/forwardRef(function (props, ref) {
|
259
|
+
return /*#__PURE__*/React.createElement(Renew, _extends({
|
260
|
+
size: 32,
|
261
|
+
ref: ref
|
262
|
+
}, props));
|
263
|
+
})
|
264
|
+
},
|
265
|
+
running: {
|
266
|
+
sm: /*#__PURE__*/forwardRef(function (props, ref) {
|
267
|
+
return /*#__PURE__*/React.createElement(Renew, _extends({
|
268
|
+
size: 16,
|
269
|
+
ref: ref
|
270
|
+
}, props));
|
271
|
+
}),
|
272
|
+
md: /*#__PURE__*/forwardRef(function (props, ref) {
|
273
|
+
return /*#__PURE__*/React.createElement(Renew, _extends({
|
274
|
+
size: 20,
|
275
|
+
ref: ref
|
276
|
+
}, props));
|
277
|
+
}),
|
278
|
+
lg: /*#__PURE__*/forwardRef(function (props, ref) {
|
279
|
+
return /*#__PURE__*/React.createElement(Renew, _extends({
|
280
|
+
size: 24,
|
281
|
+
ref: ref
|
282
|
+
}, props));
|
283
|
+
}),
|
284
|
+
xl: /*#__PURE__*/forwardRef(function (props, ref) {
|
285
|
+
return /*#__PURE__*/React.createElement(Renew, _extends({
|
286
|
+
size: 32,
|
287
|
+
ref: ref
|
288
|
+
}, props));
|
289
|
+
})
|
290
|
+
},
|
291
|
+
pending: {
|
292
|
+
sm: /*#__PURE__*/forwardRef(function (props, ref) {
|
293
|
+
return /*#__PURE__*/React.createElement(Time, _extends({
|
294
|
+
size: 16,
|
295
|
+
ref: ref
|
296
|
+
}, props));
|
297
|
+
}),
|
298
|
+
md: /*#__PURE__*/forwardRef(function (props, ref) {
|
299
|
+
return /*#__PURE__*/React.createElement(Time, _extends({
|
300
|
+
size: 20,
|
301
|
+
ref: ref
|
302
|
+
}, props));
|
303
|
+
}),
|
304
|
+
lg: /*#__PURE__*/forwardRef(function (props, ref) {
|
305
|
+
return /*#__PURE__*/React.createElement(Time, _extends({
|
306
|
+
size: 24,
|
307
|
+
ref: ref
|
308
|
+
}, props));
|
309
|
+
}),
|
310
|
+
xl: /*#__PURE__*/forwardRef(function (props, ref) {
|
311
|
+
return /*#__PURE__*/React.createElement(Time, _extends({
|
312
|
+
size: 32,
|
313
|
+
ref: ref
|
314
|
+
}, props));
|
315
|
+
})
|
316
|
+
}
|
317
|
+
};
|
98
318
|
var IconComponent = (_icons$kind = icons[kind]) === null || _icons$kind === void 0 ? void 0 : _icons$kind[size];
|
99
319
|
var classNames = cx(className, blockClass, "".concat(blockClass, "--").concat(theme), _defineProperty({}, "".concat(blockClass, "--").concat(theme, "-").concat(kind), kind));
|
100
320
|
return IconComponent && /*#__PURE__*/React.createElement(IconComponent, _extends({}, rest, {
|
@@ -123,7 +343,7 @@ StatusIcon.propTypes = {
|
|
123
343
|
/**
|
124
344
|
* A required prop that displays the size of the icon associate with the status
|
125
345
|
*/
|
126
|
-
size: PropTypes.oneOf(['sm', 'md', 'lg', '
|
346
|
+
size: PropTypes.oneOf(['sm', 'md', 'lg', 'xl']).isRequired,
|
127
347
|
|
128
348
|
/**
|
129
349
|
* A required prop that displays the theme of the icon associated with the status
|