@carbon/ibm-products 1.24.0 → 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 +24551 -24314
- 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 +5771 -2810
- 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 +10412 -4465
- 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 -14916
- 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 +3 -2
- 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 +20 -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 +40 -19
- package/es/components/WebTerminal/WebTerminalContentWrapper.js +8 -10
- package/es/components/WebTerminal/hooks/index.js +45 -0
- package/es/components/WebTerminal/index.js +2 -1
- package/es/components/WebTerminal/preview-components/Navigation.js +17 -15
- package/es/components/_Canary/Canary.js +1 -1
- package/es/components/index.js +1 -1
- package/es/global/js/hooks/index.js +1 -1
- package/es/global/js/package-settings.js +1 -0
- 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 +8 -7
- 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 +29 -15
- 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 +45 -23
- package/lib/components/WebTerminal/WebTerminalContentWrapper.js +9 -9
- package/lib/components/WebTerminal/hooks/index.js +69 -0
- package/lib/components/WebTerminal/index.js +15 -1
- package/lib/components/WebTerminal/preview-components/Navigation.js +19 -17
- package/lib/components/_Canary/Canary.js +2 -2
- package/lib/components/index.js +12 -0
- package/lib/global/js/package-settings.js +1 -0
- package/lib/global/js/utils/test-helper.js +2 -1
- package/lib/settings.js +2 -11
- package/package.json +18 -19
- 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 +289 -262
- 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 → _datagrid.scss} +62 -59
- package/scss/components/Datagrid/styles/{draggableElement.scss → _draggableElement.scss} +15 -13
- package/scss/components/Datagrid/styles/_index.scss +20 -0
- package/scss/components/Datagrid/styles/{useActionsColumn.scss → _useActionsColumn.scss} +5 -4
- package/scss/components/Datagrid/styles/{useColumnCenterAlign.scss → _useColumnCenterAlign.scss} +2 -1
- package/scss/components/Datagrid/styles/{useColumnRightAlign.scss → _useColumnRightAlign.scss} +5 -5
- package/scss/components/Datagrid/styles/_useExpandedRow.scss +14 -0
- package/scss/components/Datagrid/styles/{useNestedRows.scss → _useNestedRows.scss} +6 -3
- package/scss/components/Datagrid/styles/_useNestedTable.scss +34 -0
- package/scss/components/Datagrid/styles/{useSelectAllToggle.scss → _useSelectAllToggle.scss} +6 -5
- package/scss/components/Datagrid/styles/{useSortableColumns.scss → _useSortableColumns.scss} +14 -12
- package/scss/components/Datagrid/styles/{useStickyColumn.scss → _useStickyColumn.scss} +10 -9
- package/scss/components/Datagrid/styles/_variables.scss +3 -2
- package/scss/components/Datagrid/styles/addons/{CustomizeColumnsModal.scss → _CustomizeColumnsModal.scss} +15 -11
- package/scss/components/Datagrid/styles/addons/_RowSizeDropdown.scss +25 -0
- 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 +41 -44
- 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/css/components/Datagrid/styles/addons/CustomizeColumnsModal.css +0 -47
- package/css/components/Datagrid/styles/addons/CustomizeColumnsModal.css.map +0 -1
- package/css/components/Datagrid/styles/addons/RowSizeDropdown.css +0 -20
- package/css/components/Datagrid/styles/addons/RowSizeDropdown.css.map +0 -1
- package/css/components/Datagrid/styles/datagrid.css +0 -383
- package/css/components/Datagrid/styles/datagrid.css.map +0 -1
- package/css/components/Datagrid/styles/draggableElement.css +0 -57
- package/css/components/Datagrid/styles/draggableElement.css.map +0 -1
- package/css/components/Datagrid/styles/index.css +0 -732
- package/css/components/Datagrid/styles/index.css.map +0 -1
- package/css/components/Datagrid/styles/useActionsColumn.css +0 -23
- package/css/components/Datagrid/styles/useActionsColumn.css.map +0 -1
- package/css/components/Datagrid/styles/useColumnCenterAlign.css +0 -18
- package/css/components/Datagrid/styles/useColumnCenterAlign.css.map +0 -1
- package/css/components/Datagrid/styles/useColumnRightAlign.css +0 -28
- package/css/components/Datagrid/styles/useColumnRightAlign.css.map +0 -1
- package/css/components/Datagrid/styles/useExpandedRow.css +0 -9
- package/css/components/Datagrid/styles/useExpandedRow.css.map +0 -1
- package/css/components/Datagrid/styles/useNestedRows.css +0 -15
- package/css/components/Datagrid/styles/useNestedRows.css.map +0 -1
- package/css/components/Datagrid/styles/useNestedTable.css +0 -25
- package/css/components/Datagrid/styles/useNestedTable.css.map +0 -1
- package/css/components/Datagrid/styles/useSelectAllToggle.css +0 -28
- package/css/components/Datagrid/styles/useSelectAllToggle.css.map +0 -1
- package/css/components/Datagrid/styles/useSortableColumns.css +0 -50
- package/css/components/Datagrid/styles/useSortableColumns.css.map +0 -1
- package/css/components/Datagrid/styles/useStickyColumn.css +0 -35
- package/css/components/Datagrid/styles/useStickyColumn.css.map +0 -1
- package/scss/components/Datagrid/styles/addons/RowSizeDropdown.scss +0 -23
- package/scss/components/Datagrid/styles/index.scss +0 -20
- package/scss/components/Datagrid/styles/useExpandedRow.scss +0 -7
- package/scss/components/Datagrid/styles/useNestedTable.scss +0 -28
- package/scss/global/styles/_generate-carbon-modules.scss +0 -14
@@ -1,6 +1,6 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
3
|
-
var _excluded = ["children", "className", "iconDescription", "kind", "label", "menuOptionsClass", "renderIcon", "size"];
|
3
|
+
var _excluded = ["children", "className", "iconDescription", "kind", "label", "menuAriaLabel", "menuOptionsClass", "renderIcon", "size"];
|
4
4
|
|
5
5
|
/**
|
6
6
|
* Copyright IBM Corp. 2021, 2021
|
@@ -13,16 +13,16 @@ import React from 'react'; // Other standard imports.
|
|
13
13
|
|
14
14
|
import PropTypes from 'prop-types';
|
15
15
|
import cx from 'classnames';
|
16
|
-
import { pkg
|
16
|
+
import { pkg } from '../../settings'; // Carbon and package components we use.
|
17
17
|
|
18
|
-
import { Button, OverflowMenu } from 'carbon
|
18
|
+
import { Button, OverflowMenu, usePrefix } from '@carbon/react'; // The block part of our conventional BEM class names (blockClass__E--M).
|
19
19
|
|
20
20
|
var blockClass = "".concat(pkg.prefix, "--button-menu");
|
21
21
|
var componentName = 'ButtonMenu'; // NOTE: the component SCSS is not imported here: it is rolled up separately.
|
22
22
|
// Default values for props
|
23
23
|
|
24
24
|
var defaults = {
|
25
|
-
size: '
|
25
|
+
size: 'lg',
|
26
26
|
kind: 'primary'
|
27
27
|
};
|
28
28
|
/**
|
@@ -40,24 +40,27 @@ export var ButtonMenu = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
40
40
|
_ref$kind = _ref.kind,
|
41
41
|
kind = _ref$kind === void 0 ? defaults.kind : _ref$kind,
|
42
42
|
label = _ref.label,
|
43
|
+
menuAriaLabel = _ref.menuAriaLabel,
|
43
44
|
menuOptionsClass = _ref.menuOptionsClass,
|
44
45
|
Icon = _ref.renderIcon,
|
45
46
|
_ref$size = _ref.size,
|
46
47
|
size = _ref$size === void 0 ? defaults.size : _ref$size,
|
47
48
|
rest = _objectWithoutProperties(_ref, _excluded);
|
48
49
|
|
50
|
+
var carbonPrefix = usePrefix();
|
49
51
|
return /*#__PURE__*/React.createElement(OverflowMenu, _extends({}, rest, {
|
50
52
|
className: cx(blockClass, // Apply the block class to the main HTML element
|
51
53
|
className // Apply any supplied class names to the main HTML element.
|
52
54
|
),
|
55
|
+
ariaLabel: menuAriaLabel,
|
53
56
|
menuOptionsClass: cx("".concat(blockClass, "__options"), menuOptionsClass),
|
54
57
|
renderIcon: function renderIcon() {
|
55
58
|
return /*#__PURE__*/React.createElement("div", {
|
56
|
-
className: cx(["".concat(blockClass, "__trigger"), "".concat(
|
59
|
+
className: cx(["".concat(blockClass, "__trigger"), "".concat(carbonPrefix, "--btn"), "".concat(carbonPrefix, "--btn--").concat(kind), "".concat(carbonPrefix, "--btn--").concat(size)])
|
57
60
|
}, label, Icon && /*#__PURE__*/React.createElement(Icon, {
|
58
61
|
"aria-hidden": "true",
|
59
62
|
"aria-label": iconDescription,
|
60
|
-
className: "".concat(
|
63
|
+
className: "".concat(carbonPrefix, "--btn__icon")
|
61
64
|
}));
|
62
65
|
},
|
63
66
|
innerRef: ref
|
@@ -99,6 +102,12 @@ ButtonMenu.propTypes = {
|
|
99
102
|
*/
|
100
103
|
label: PropTypes.node,
|
101
104
|
|
105
|
+
/**
|
106
|
+
* Provide the ariaLabel prop to be passed to the OverflowMenu. This is distinctly
|
107
|
+
* separate from `label` to support icon only ButtonMenus
|
108
|
+
*/
|
109
|
+
menuAriaLabel: PropTypes.string.isRequired,
|
110
|
+
|
102
111
|
/**
|
103
112
|
* class name applied to the overflow options
|
104
113
|
*/
|
@@ -11,7 +11,7 @@ import React from 'react'; // Other standard imports.
|
|
11
11
|
|
12
12
|
import { pkg } from '../../settings'; // Carbon and package components we use.
|
13
13
|
|
14
|
-
import { OverflowMenuItem } from 'carbon
|
14
|
+
import { OverflowMenuItem } from '@carbon/react';
|
15
15
|
var componentName = 'ButtonMenuItem'; // NOTE: the component SCSS is not imported here: it is rolled up separately.
|
16
16
|
|
17
17
|
/**
|
@@ -27,13 +27,13 @@ import React, { useEffect, useState, useRef } from 'react';
|
|
27
27
|
import PropTypes from 'prop-types';
|
28
28
|
import cx from 'classnames';
|
29
29
|
import { useResizeDetector } from 'react-resize-detector';
|
30
|
-
import { ButtonSet, Button } from 'carbon
|
30
|
+
import { ButtonSet, Button, usePrefix } from '@carbon/react';
|
31
31
|
import { ButtonMenu, ButtonMenuItem } from '../ButtonMenu';
|
32
|
-
import { pkg
|
32
|
+
import { pkg } from '../../settings';
|
33
33
|
import { prepareProps } from '../../global/js/utils/props-helper';
|
34
34
|
var blockClass = "".concat(pkg.prefix, "--button-set-with-overflow");
|
35
35
|
var componentName = 'ButtonSetWithOverflow';
|
36
|
-
var buttonSize = '
|
36
|
+
var buttonSize = 'md';
|
37
37
|
export var ButtonSetWithOverflow = function ButtonSetWithOverflow(_ref) {
|
38
38
|
var buttons = _ref.buttons,
|
39
39
|
className = _ref.className,
|
@@ -41,6 +41,7 @@ export var ButtonSetWithOverflow = function ButtonSetWithOverflow(_ref) {
|
|
41
41
|
buttonSetOverflowLabel = _ref.buttonSetOverflowLabel,
|
42
42
|
menuOptionsClass = _ref.menuOptionsClass,
|
43
43
|
rightAlign = _ref.rightAlign;
|
44
|
+
var carbonPrefix = usePrefix();
|
44
45
|
|
45
46
|
var _useState = useState(false),
|
46
47
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -66,7 +67,7 @@ export var ButtonSetWithOverflow = function ButtonSetWithOverflow(_ref) {
|
|
66
67
|
var spaceAvailable = (_spaceAvailableRef$cu = spaceAvailableRef.current) === null || _spaceAvailableRef$cu === void 0 ? void 0 : _spaceAvailableRef$cu.offsetWidth;
|
67
68
|
var newShowAsOverflow = true; // get all of the hidden sizing buttons
|
68
69
|
|
69
|
-
var sizingSet = (_sizingContainerRefSe = sizingContainerRefSet.current) === null || _sizingContainerRefSe === void 0 ? void 0 : _sizingContainerRefSe.querySelectorAll(".".concat(
|
70
|
+
var sizingSet = (_sizingContainerRefSe = sizingContainerRefSet.current) === null || _sizingContainerRefSe === void 0 ? void 0 : _sizingContainerRefSe.querySelectorAll(".".concat(carbonPrefix, "--btn")); // calculate total width of button set
|
70
71
|
|
71
72
|
var sizingSetTotalSize = 0;
|
72
73
|
|
@@ -134,7 +135,8 @@ export var ButtonSetWithOverflow = function ButtonSetWithOverflow(_ref) {
|
|
134
135
|
|
135
136
|
return /*#__PURE__*/React.createElement(ButtonMenu, _extends({}, rest, {
|
136
137
|
ref: ref,
|
137
|
-
label: buttonSetOverflowLabel
|
138
|
+
label: buttonSetOverflowLabel,
|
139
|
+
menuAriaLabel: buttonSetOverflowLabel
|
138
140
|
}), buttons.map(function (_ref5) {
|
139
141
|
var label = _ref5.label,
|
140
142
|
key = _ref5.key,
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
4
|
-
var _excluded = ["actionIcons", "actionsPlacement", "children", "className", "clickZone", "description", "label", "media", "mediaPosition", "onClick", "onKeyDown", "onPrimaryButtonClick", "overflowActions", "onSecondaryButtonClick", "pictogram", "primaryButtonHref", "primaryButtonIcon", "primaryButtonKind", "primaryButtonText", "productive", "secondaryButtonHref", "secondaryButtonIcon", "secondaryButtonKind", "secondaryButtonText", "title", "titleSize"],
|
4
|
+
var _excluded = ["actionIcons", "actionsPlacement", "children", "className", "clickZone", "description", "label", "media", "mediaPosition", "onClick", "onKeyDown", "onPrimaryButtonClick", "overflowActions", "overflowAriaLabel", "onSecondaryButtonClick", "pictogram", "primaryButtonHref", "primaryButtonIcon", "primaryButtonKind", "primaryButtonText", "productive", "secondaryButtonHref", "secondaryButtonIcon", "secondaryButtonKind", "secondaryButtonText", "title", "titleSize"],
|
5
5
|
_excluded2 = ["id"],
|
6
|
-
_excluded3 = ["id", "icon", "onClick", "iconDescription", "
|
6
|
+
_excluded3 = ["id", "icon", "onClick", "iconDescription", "href"];
|
7
7
|
|
8
8
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
9
9
|
|
@@ -17,7 +17,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
17
17
|
//
|
18
18
|
import React, { forwardRef } from 'react';
|
19
19
|
import cx from 'classnames';
|
20
|
-
import { Button, OverflowMenu, OverflowMenuItem } from 'carbon
|
20
|
+
import { Button, IconButton, OverflowMenu, OverflowMenuItem } from '@carbon/react';
|
21
21
|
import PropTypes from 'prop-types';
|
22
22
|
import { CardHeader } from './CardHeader';
|
23
23
|
import { CardFooter } from './CardFooter';
|
@@ -54,6 +54,7 @@ export var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
54
54
|
onPrimaryButtonClick = _ref.onPrimaryButtonClick,
|
55
55
|
_ref$overflowActions = _ref.overflowActions,
|
56
56
|
overflowActions = _ref$overflowActions === void 0 ? defaults.overflowActions : _ref$overflowActions,
|
57
|
+
overflowAriaLabel = _ref.overflowAriaLabel,
|
57
58
|
onSecondaryButtonClick = _ref.onSecondaryButtonClick,
|
58
59
|
Pictogram = _ref.pictogram,
|
59
60
|
primaryButtonHref = _ref.primaryButtonHref,
|
@@ -93,7 +94,8 @@ export var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
93
94
|
return /*#__PURE__*/React.createElement(OverflowMenu, {
|
94
95
|
size: size,
|
95
96
|
direction: pos,
|
96
|
-
flipped: true
|
97
|
+
flipped: true,
|
98
|
+
ariaLabel: overflowAriaLabel
|
97
99
|
}, overflowActions.map(function (_ref2) {
|
98
100
|
var id = _ref2.id,
|
99
101
|
rest = _objectWithoutProperties(_ref2, _excluded2);
|
@@ -109,7 +111,6 @@ export var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
109
111
|
Icon = _ref3.icon,
|
110
112
|
onClick = _ref3.onClick,
|
111
113
|
iconDescription = _ref3.iconDescription,
|
112
|
-
onKeyDown = _ref3.onKeyDown,
|
113
114
|
href = _ref3.href,
|
114
115
|
rest = _objectWithoutProperties(_ref3, _excluded3);
|
115
116
|
|
@@ -119,7 +120,7 @@ export var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
119
120
|
renderIcon: Icon,
|
120
121
|
hasIconOnly: true,
|
121
122
|
onClick: onClick,
|
122
|
-
size: actionsPlacement === 'top' ? 'sm' : '
|
123
|
+
size: actionsPlacement === 'top' ? 'sm' : 'md',
|
123
124
|
iconDescription: iconDescription,
|
124
125
|
kind: "ghost",
|
125
126
|
href: href
|
@@ -137,13 +138,13 @@ export var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
137
138
|
}));
|
138
139
|
}
|
139
140
|
|
140
|
-
return /*#__PURE__*/React.createElement(
|
141
|
+
return /*#__PURE__*/React.createElement(IconButton, {
|
141
142
|
key: id,
|
143
|
+
label: iconDescription,
|
142
144
|
className: "".concat(blockClass, "__icon"),
|
143
145
|
onClick: onClick,
|
144
|
-
|
145
|
-
|
146
|
-
tabIndex: "0"
|
146
|
+
kind: "ghost",
|
147
|
+
size: "sm"
|
147
148
|
}, /*#__PURE__*/React.createElement(Icon, {
|
148
149
|
"aria-label": iconDescription
|
149
150
|
}));
|
@@ -252,6 +253,7 @@ Card.propTypes = {
|
|
252
253
|
onClick: PropTypes.func,
|
253
254
|
onKeyDown: PropTypes.func
|
254
255
|
})),
|
256
|
+
overflowAriaLabel: PropTypes.string,
|
255
257
|
pictogram: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
256
258
|
primaryButtonHref: PropTypes.string,
|
257
259
|
primaryButtonIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
@@ -7,7 +7,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
7
7
|
//
|
8
8
|
import React from 'react';
|
9
9
|
import cx from 'classnames';
|
10
|
-
import { Button } from 'carbon
|
10
|
+
import { Button } from '@carbon/react';
|
11
11
|
import PropTypes from 'prop-types';
|
12
12
|
import { pkg } from '../../settings';
|
13
13
|
var componentName = 'CardFooter';
|
@@ -44,13 +44,13 @@ export var CardFooter = function CardFooter(_ref) {
|
|
44
44
|
}, secondaryButtonText && /*#__PURE__*/React.createElement(Button, {
|
45
45
|
kind: secondaryButtonKind,
|
46
46
|
onClick: onSecondaryButtonClick,
|
47
|
-
size: "
|
47
|
+
size: "md",
|
48
48
|
renderIcon: secondaryButtonIcon,
|
49
49
|
href: secondaryButtonHref
|
50
50
|
}, secondaryButtonText), primaryButtonText && /*#__PURE__*/React.createElement(Button, {
|
51
51
|
kind: productive ? 'ghost' : primaryButtonKind,
|
52
52
|
onClick: onPrimaryButtonClick,
|
53
|
-
size: "
|
53
|
+
size: "md",
|
54
54
|
renderIcon: primaryButtonIcon,
|
55
55
|
href: primaryButtonHref
|
56
56
|
}, primaryButtonText), hasActions && /*#__PURE__*/React.createElement("div", {
|
@@ -13,7 +13,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
13
13
|
// LICENSE file in the root directory of this source tree.
|
14
14
|
//
|
15
15
|
import React, { forwardRef } from 'react';
|
16
|
-
import { Grid } from 'carbon
|
16
|
+
import { Grid } from '@carbon/react';
|
17
17
|
import cx from 'classnames';
|
18
18
|
import PropTypes from 'prop-types';
|
19
19
|
import { pkg } from '../../settings';
|
@@ -17,8 +17,8 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
17
17
|
* This source code is licensed under the Apache-2.0 license found in the
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
19
19
|
*/
|
20
|
-
import {
|
21
|
-
import { Button, OverflowMenuItem, OverflowMenu } from 'carbon
|
20
|
+
import { ChevronDown, ChevronUp } from '@carbon/icons-react';
|
21
|
+
import { Button, OverflowMenuItem, OverflowMenu } from '@carbon/react';
|
22
22
|
import classnames from 'classnames';
|
23
23
|
import { node, shape, string } from 'prop-types';
|
24
24
|
import uuidv4 from '../../global/js/utils/uuidv4';
|
@@ -71,7 +71,15 @@ var ComboButton = function ComboButton(_ref) {
|
|
71
71
|
return setIsOpen(false);
|
72
72
|
},
|
73
73
|
renderIcon: function renderIcon() {
|
74
|
-
return /*#__PURE__*/createElement(isOpen ?
|
74
|
+
return /*#__PURE__*/createElement(isOpen ? function (props) {
|
75
|
+
return /*#__PURE__*/React.createElement(ChevronUp, _extends({
|
76
|
+
size: 16
|
77
|
+
}, props));
|
78
|
+
} : function (props) {
|
79
|
+
return /*#__PURE__*/React.createElement(ChevronDown, _extends({
|
80
|
+
size: 16
|
81
|
+
}, props));
|
82
|
+
}, {
|
75
83
|
className: "".concat(blockClass, "__overflow-menu__icon")
|
76
84
|
});
|
77
85
|
},
|
@@ -17,7 +17,7 @@ import cx from 'classnames';
|
|
17
17
|
import { getDevtoolsProps } from '../../global/js/utils/devtools';
|
18
18
|
import { pkg } from '../../settings'; // Carbon and package components we use.
|
19
19
|
|
20
|
-
import {
|
20
|
+
import { ModalFooter, ComposedModal, ModalHeader, ModalBody, Button, Form } from '@carbon/react';
|
21
21
|
import { CreateInfluencer } from '../CreateInfluencer';
|
22
22
|
import { ActionSet } from '../ActionSet';
|
23
23
|
import { usePreviousValue, useValidCreateStepCount, useCreateComponentFocus, useCreateComponentStepChange } from '../../global/js/hooks';
|
@@ -167,7 +167,7 @@ export var CreateFullPage = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
167
167
|
className: "".concat(blockClass, "__main")
|
168
168
|
}, /*#__PURE__*/React.createElement("div", {
|
169
169
|
className: "".concat(blockClass, "__content")
|
170
|
-
}, /*#__PURE__*/React.createElement(
|
170
|
+
}, /*#__PURE__*/React.createElement(Form, {
|
171
171
|
className: "".concat(blockClass, "__form")
|
172
172
|
}, /*#__PURE__*/React.createElement(StepsContext.Provider, {
|
173
173
|
value: {
|
@@ -190,10 +190,10 @@ export var CreateFullPage = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
190
190
|
return /*#__PURE__*/React.createElement(StepNumberContext.Provider, {
|
191
191
|
value: index + 1
|
192
192
|
}, child);
|
193
|
-
}))))
|
193
|
+
})))), /*#__PURE__*/React.createElement(ActionSet, {
|
194
194
|
className: "".concat(blockClass, "__buttons"),
|
195
195
|
actions: createFullPageActions,
|
196
|
-
size: "
|
196
|
+
size: "2xl"
|
197
197
|
}))), /*#__PURE__*/React.createElement(ComposedModal, {
|
198
198
|
className: "".concat(blockClass, "__modal"),
|
199
199
|
size: "sm",
|
@@ -14,7 +14,7 @@ import React, { forwardRef, useContext, useEffect, useState } from 'react';
|
|
14
14
|
import PropTypes from 'prop-types';
|
15
15
|
import cx from 'classnames';
|
16
16
|
import { pkg } from '../../settings';
|
17
|
-
import { FormGroup } from 'carbon
|
17
|
+
import { FormGroup } from '@carbon/react';
|
18
18
|
import { StepsContext, StepNumberContext } from './CreateFullPage';
|
19
19
|
import { usePreviousValue, useRetrieveStepData } from '../../global/js/hooks';
|
20
20
|
import pconsole from '../../global/js/utils/pconsole';
|
@@ -8,7 +8,7 @@
|
|
8
8
|
import React from 'react';
|
9
9
|
import PropTypes from 'prop-types';
|
10
10
|
import cx from 'classnames';
|
11
|
-
import { ProgressIndicator, ProgressStep } from 'carbon
|
11
|
+
import { ProgressIndicator, ProgressStep } from '@carbon/react';
|
12
12
|
import '../../global/js/utils/props-helper';
|
13
13
|
import { pkg } from '../../settings'; // The block part of our conventional BEM class names (blockClass__E--M).
|
14
14
|
|
@@ -11,7 +11,7 @@ var _excluded = ["className", "children", "onRequestClose", "onRequestSubmit", "
|
|
11
11
|
// Import portions of React that are needed.
|
12
12
|
import React from 'react'; // Carbon and package components we use.
|
13
13
|
|
14
|
-
import { ComposedModal, ModalHeader, ModalFooter, ModalBody, Form, Button } from 'carbon
|
14
|
+
import { ComposedModal, ModalHeader, ModalFooter, ModalBody, Form, Button } from '@carbon/react';
|
15
15
|
import PropTypes from 'prop-types';
|
16
16
|
import cx from 'classnames';
|
17
17
|
import { getDevtoolsProps } from '../../global/js/utils/devtools';
|
@@ -21,7 +21,7 @@ import cx from 'classnames';
|
|
21
21
|
import { pkg } from '../../settings';
|
22
22
|
import { getDevtoolsProps } from '../../global/js/utils/devtools'; // Carbon and package components we use.
|
23
23
|
|
24
|
-
import { Form } from 'carbon
|
24
|
+
import { Form } from '@carbon/react';
|
25
25
|
import { SidePanel } from '../SidePanel'; // The block part of our conventional BEM class names (blockClass__E--M).
|
26
26
|
|
27
27
|
var blockClass = "".concat(pkg.prefix, "--create-side-panel");
|
@@ -12,7 +12,7 @@ var _excluded = ["backButtonText", "cancelButtonText", "children", "className",
|
|
12
12
|
import React, { forwardRef, useState, useRef, createContext, useEffect } from 'react';
|
13
13
|
import PropTypes from 'prop-types';
|
14
14
|
import cx from 'classnames';
|
15
|
-
import {
|
15
|
+
import { Form } from '@carbon/react';
|
16
16
|
import wrapFocus from '../../global/js/utils/wrapFocus';
|
17
17
|
import { TearsheetShell } from '../Tearsheet/TearsheetShell';
|
18
18
|
import { CreateInfluencer } from '../CreateInfluencer';
|
@@ -200,7 +200,7 @@ export var CreateTearsheet = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
200
200
|
className: "".concat(blockClass, "__content"),
|
201
201
|
onBlur: handleBlur,
|
202
202
|
ref: contentRef
|
203
|
-
}, /*#__PURE__*/React.createElement(
|
203
|
+
}, /*#__PURE__*/React.createElement(Form, null, /*#__PURE__*/React.createElement(StepsContext.Provider, {
|
204
204
|
value: {
|
205
205
|
currentStep: currentStep,
|
206
206
|
setIsDisabled: setIsDisabled,
|
@@ -221,7 +221,7 @@ export var CreateTearsheet = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
221
221
|
return /*#__PURE__*/React.createElement(StepNumberContext.Provider, {
|
222
222
|
value: index + 1
|
223
223
|
}, child);
|
224
|
-
})))))
|
224
|
+
})))));
|
225
225
|
}); // Return a placeholder if not released and not enabled by feature flag
|
226
226
|
|
227
227
|
CreateTearsheet = pkg.checkComponentEnabled(CreateTearsheet, componentName); // The display name of the component, used by React. Note that displayName
|
@@ -13,7 +13,7 @@ var _excluded = ["children", "className", "description", "disableSubmit", "field
|
|
13
13
|
import React, { forwardRef, useContext, useEffect, useState } from 'react';
|
14
14
|
import PropTypes from 'prop-types';
|
15
15
|
import cx from 'classnames';
|
16
|
-
import { Column, FormGroup,
|
16
|
+
import { Column, FormGroup, Grid } from '@carbon/react';
|
17
17
|
import { StepsContext, StepNumberContext } from './CreateTearsheet';
|
18
18
|
import { pkg } from '../../settings';
|
19
19
|
import pconsole from '../../global/js/utils/pconsole';
|
@@ -86,7 +86,9 @@ export var CreateTearsheetStep = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
86
86
|
return stepsContext ? /*#__PURE__*/React.createElement("div", _extends({}, rest, {
|
87
87
|
className: cx(blockClass, className, (_cx = {}, _defineProperty(_cx, "".concat(blockClass, "__step--hidden-step"), stepNumber !== (stepsContext === null || stepsContext === void 0 ? void 0 : stepsContext.currentStep)), _defineProperty(_cx, "".concat(blockClass, "__step--visible-step"), stepNumber === (stepsContext === null || stepsContext === void 0 ? void 0 : stepsContext.currentStep)), _cx)),
|
88
88
|
ref: ref
|
89
|
-
}), /*#__PURE__*/React.createElement(
|
89
|
+
}), /*#__PURE__*/React.createElement(Grid, {
|
90
|
+
narrow: true
|
91
|
+
}, /*#__PURE__*/React.createElement(Column, {
|
90
92
|
xlg: 12,
|
91
93
|
lg: 12,
|
92
94
|
md: 8,
|
@@ -12,7 +12,7 @@ var _excluded = ["value1", "setValue1"];
|
|
12
12
|
* LICENSE file in the root directory of this source tree.
|
13
13
|
*/
|
14
14
|
import React, { useState } from 'react';
|
15
|
-
import { Button, Column, InlineNotification, RadioButtonGroup, RadioButton,
|
15
|
+
import { Button, Column, Grid, InlineNotification, RadioButtonGroup, RadioButton, TextInput, Toggle, NumberInput, Checkbox } from '@carbon/react';
|
16
16
|
import cx from 'classnames';
|
17
17
|
import { pkg } from '../../../settings';
|
18
18
|
import { CreateTearsheet } from '../CreateTearsheet';
|
@@ -26,7 +26,9 @@ var CustomStep = function CustomStep(_ref) {
|
|
26
26
|
|
27
27
|
return /*#__PURE__*/React.createElement(CreateTearsheetStep, _extends({}, rest, {
|
28
28
|
disableSubmit: !value1
|
29
|
-
}), /*#__PURE__*/React.createElement(
|
29
|
+
}), /*#__PURE__*/React.createElement(Grid, {
|
30
|
+
narrow: true
|
31
|
+
}, /*#__PURE__*/React.createElement(Column, {
|
30
32
|
xlg: 8,
|
31
33
|
lg: 8,
|
32
34
|
md: 8,
|
@@ -170,7 +172,9 @@ export var MultiStepTearsheet = function MultiStepTearsheet(_ref2) {
|
|
170
172
|
disableSubmit: !stepOneTextInputValue,
|
171
173
|
subtitle: "This is the unique name used to recognize your topic",
|
172
174
|
description: "It will also be used by your producers and consumers as part of the connection information, so make it something easy to recognize."
|
173
|
-
}, /*#__PURE__*/React.createElement(
|
175
|
+
}, /*#__PURE__*/React.createElement(Grid, {
|
176
|
+
narrow: true
|
177
|
+
}, /*#__PURE__*/React.createElement(Column, {
|
174
178
|
xlg: 8,
|
175
179
|
lg: 8,
|
176
180
|
md: 8,
|
@@ -247,10 +251,13 @@ export var MultiStepTearsheet = function MultiStepTearsheet(_ref2) {
|
|
247
251
|
subtitle: "One or more partitions make up a topic. A partition is an ordered list of messages.",
|
248
252
|
description: "Partitions are distributed across the brokers in order to increase the scalability of your topic. You can also use them to distribute messages across the members of a consumer group.",
|
249
253
|
fieldsetLegendText: "Partition information"
|
250
|
-
}, /*#__PURE__*/React.createElement(
|
254
|
+
}, /*#__PURE__*/React.createElement(Grid, {
|
255
|
+
narrow: true
|
256
|
+
}, /*#__PURE__*/React.createElement(Column, {
|
251
257
|
xlg: 3,
|
252
258
|
lg: 3
|
253
259
|
}, /*#__PURE__*/React.createElement(NumberInput, {
|
260
|
+
iconDescription: "Choose a number",
|
254
261
|
id: "carbon-number",
|
255
262
|
min: 1,
|
256
263
|
max: 100,
|
@@ -270,7 +277,9 @@ export var MultiStepTearsheet = function MultiStepTearsheet(_ref2) {
|
|
270
277
|
subtitle: "This is how long messages are retained before they are deleted.",
|
271
278
|
description: "If your messages are not read by a consumer within this time, they will be missed.",
|
272
279
|
fieldsetLegendText: "Message retention scheduling"
|
273
|
-
}, /*#__PURE__*/React.createElement(
|
280
|
+
}, /*#__PURE__*/React.createElement(Grid, {
|
281
|
+
narrow: true
|
282
|
+
}, /*#__PURE__*/React.createElement(Column, {
|
274
283
|
xlg: 8,
|
275
284
|
lg: 8,
|
276
285
|
md: 8,
|
@@ -9,7 +9,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
10
10
|
*/
|
11
11
|
import React, { useState } from 'react';
|
12
|
-
import { Button, Column, InlineNotification, RadioButtonGroup, RadioButton, RadioTile,
|
12
|
+
import { Button, Column, Grid, InlineNotification, RadioButtonGroup, RadioButton, RadioTile, TextInput, TileGroup, Toggle, NumberInput } from '@carbon/react';
|
13
13
|
import cx from 'classnames';
|
14
14
|
import { pkg } from '../../../settings';
|
15
15
|
import { CreateTearsheet } from '../CreateTearsheet';
|
@@ -184,7 +184,9 @@ export var MultiStepWithIntro = function MultiStepWithIntro(_ref) {
|
|
184
184
|
disableSubmit: !stepOneTextInputValue,
|
185
185
|
subtitle: "This is the unique name used to recognize your topic",
|
186
186
|
description: "It will also be used by your producers and consumers as part of the connection information, so make it something easy to recognize."
|
187
|
-
}, /*#__PURE__*/React.createElement(
|
187
|
+
}, /*#__PURE__*/React.createElement(Grid, {
|
188
|
+
narrow: true
|
189
|
+
}, /*#__PURE__*/React.createElement(Column, {
|
188
190
|
xlg: 8,
|
189
191
|
lg: 8,
|
190
192
|
md: 8,
|
@@ -241,10 +243,13 @@ export var MultiStepWithIntro = function MultiStepWithIntro(_ref) {
|
|
241
243
|
subtitle: "One or more partitions make up a topic. A partition is an ordered list of messages.",
|
242
244
|
description: "Partitions are distributed across the brokers in order to increase the scalability of your topic. You can also use them to distribute messages across the members of a consumer group.",
|
243
245
|
fieldsetLegendText: "Partition information"
|
244
|
-
}, /*#__PURE__*/React.createElement(
|
246
|
+
}, /*#__PURE__*/React.createElement(Grid, {
|
247
|
+
narrow: true
|
248
|
+
}, /*#__PURE__*/React.createElement(Column, {
|
245
249
|
xlg: 3,
|
246
250
|
lg: 3
|
247
251
|
}, /*#__PURE__*/React.createElement(NumberInput, {
|
252
|
+
iconDescription: "Choose a number",
|
248
253
|
id: "carbon-number",
|
249
254
|
min: 1,
|
250
255
|
max: 100,
|
@@ -264,7 +269,9 @@ export var MultiStepWithIntro = function MultiStepWithIntro(_ref) {
|
|
264
269
|
subtitle: "This is how long messages are retained before they are deleted.",
|
265
270
|
description: "If your messages are not read by a consumer within this time, they will be missed.",
|
266
271
|
fieldsetLegendText: "Message retention scheduling"
|
267
|
-
}, /*#__PURE__*/React.createElement(
|
272
|
+
}, /*#__PURE__*/React.createElement(Grid, {
|
273
|
+
narrow: true
|
274
|
+
}, /*#__PURE__*/React.createElement(Column, {
|
268
275
|
xlg: 8,
|
269
276
|
lg: 8,
|
270
277
|
md: 8,
|
@@ -13,7 +13,7 @@ import React from 'react'; // Other standard imports.
|
|
13
13
|
|
14
14
|
import PropTypes from 'prop-types';
|
15
15
|
import cx from 'classnames';
|
16
|
-
import { Form } from 'carbon
|
16
|
+
import { Form } from '@carbon/react';
|
17
17
|
import { getDevtoolsProps } from '../../global/js/utils/devtools';
|
18
18
|
import { pkg } from '../../settings';
|
19
19
|
import { TearsheetNarrow } from '../Tearsheet/TearsheetNarrow'; // The block part of our conventional BEM class names (blockClass__E--M).
|
@@ -21,7 +21,6 @@ import { useBlockLayout, useTable, useColumnOrder } from 'react-table'; // Other
|
|
21
21
|
|
22
22
|
import PropTypes from 'prop-types';
|
23
23
|
import cx from 'classnames';
|
24
|
-
import { TextArea } from 'carbon-components-react';
|
25
24
|
import { pkg } from '../../settings';
|
26
25
|
import { DataSpreadsheetBody } from './DataSpreadsheetBody';
|
27
26
|
import { DataSpreadsheetHeader } from './DataSpreadsheetHeader';
|
@@ -825,7 +824,7 @@ export var DataSpreadsheet = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
825
824
|
ref: activeCellRef,
|
826
825
|
className: cx("".concat(blockClass, "--interactive-cell-element"), "".concat(blockClass, "__active-cell--highlight"), _defineProperty({}, "".concat(blockClass, "__active-cell--with-selection"), activeCellInsideSelectionArea)),
|
827
826
|
type: "button"
|
828
|
-
}, activeCellContent), /*#__PURE__*/React.createElement(
|
827
|
+
}, activeCellContent), /*#__PURE__*/React.createElement("textarea", {
|
829
828
|
value: cellEditorValue,
|
830
829
|
onKeyDown: handleEditSubmit({
|
831
830
|
activeCellCoordinates: activeCellCoordinates,
|
@@ -845,7 +844,6 @@ export var DataSpreadsheet = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
845
844
|
cellEditorRulerRef.current.textContent = event.target.value;
|
846
845
|
},
|
847
846
|
ref: cellEditorRef,
|
848
|
-
labelText: "",
|
849
847
|
"aria-labelledby": activeCellCoordinates ? "#".concat(blockClass, "__cell--").concat(activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row, "--").concat(activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column) : null,
|
850
848
|
className: cx("".concat(blockClass, "__cell-editor"), "".concat(blockClass, "--interactive-cell-element"), "".concat(blockClass, "__cell-editor--").concat(cellSize), _defineProperty({}, "".concat(blockClass, "__cell-editor--active"), isEditing))
|
851
849
|
}), /*#__PURE__*/React.createElement("pre", {
|
@@ -11,7 +11,7 @@ var _excluded = ["datagridState"];
|
|
11
11
|
*/
|
12
12
|
import React from 'react';
|
13
13
|
import PropTypes from 'prop-types';
|
14
|
-
import { DataTable } from 'carbon
|
14
|
+
import { DataTable } from '@carbon/react';
|
15
15
|
import cx from 'classnames';
|
16
16
|
import DatagridHead from './DatagridHead';
|
17
17
|
import DatagridBody from './DatagridBody';
|
@@ -9,7 +9,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
9
9
|
*/
|
10
10
|
import React from 'react';
|
11
11
|
import { pkg } from '../../../settings';
|
12
|
-
import { DataTable } from 'carbon
|
12
|
+
import { DataTable } from '@carbon/react';
|
13
13
|
import { NoDataEmptyState } from '../../EmptyStates/NoDataEmptyState';
|
14
14
|
var blockClass = "".concat(pkg.prefix, "--datagrid");
|
15
15
|
var TableBody = DataTable.TableBody,
|
@@ -5,7 +5,7 @@
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
7
|
import React from 'react';
|
8
|
-
import { DataTable } from 'carbon
|
8
|
+
import { DataTable } from '@carbon/react';
|
9
9
|
var TableHead = DataTable.TableHead;
|
10
10
|
|
11
11
|
var DatagridHead = function DatagridHead(datagridState) {
|
@@ -10,7 +10,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
10
10
|
// @flow
|
11
11
|
import React from 'react';
|
12
12
|
import cx from 'classnames';
|
13
|
-
import { DataTable } from 'carbon
|
13
|
+
import { DataTable } from '@carbon/react';
|
14
14
|
import { selectionColumnId } from '../common-column-ids';
|
15
15
|
import { pkg } from '../../../settings';
|
16
16
|
var blockClass = "".concat(pkg.prefix, "--datagrid");
|
@@ -12,7 +12,7 @@ var _excluded = ["children"];
|
|
12
12
|
*/
|
13
13
|
// @flow
|
14
14
|
import React from 'react';
|
15
|
-
import { DataTable, SkeletonText } from 'carbon
|
15
|
+
import { DataTable, SkeletonText } from '@carbon/react';
|
16
16
|
import { selectionColumnId } from '../common-column-ids';
|
17
17
|
import cx from 'classnames';
|
18
18
|
import { pkg, carbon } from '../../../settings';
|
@@ -11,7 +11,7 @@ var _excluded = ["onChange"];
|
|
11
11
|
*/
|
12
12
|
// @flow
|
13
13
|
import React from 'react';
|
14
|
-
import { DataTable } from 'carbon
|
14
|
+
import { DataTable } from '@carbon/react';
|
15
15
|
import { pkg } from '../../../settings';
|
16
16
|
var blockClass = "".concat(pkg.prefix, "--datagrid");
|
17
17
|
|
@@ -13,8 +13,8 @@ var _excluded = ["onChange"];
|
|
13
13
|
// @flow
|
14
14
|
import React, { useEffect, useState } from 'react';
|
15
15
|
import PropTypes from 'prop-types';
|
16
|
-
import { OverflowMenu, OverflowMenuItem
|
17
|
-
import {
|
16
|
+
import { Checkbox, OverflowMenu, OverflowMenuItem } from '@carbon/react';
|
17
|
+
import { CaretDown } from '@carbon/icons-react';
|
18
18
|
import { pkg } from '../../../settings'; // cspell:words columnheader
|
19
19
|
|
20
20
|
var blockClass = "".concat(pkg.prefix, "--datagrid");
|
@@ -70,10 +70,17 @@ var SelectAllWithToggle = function SelectAllWithToggle(_ref) {
|
|
70
70
|
onChange(e);
|
71
71
|
},
|
72
72
|
disabled: disabled,
|
73
|
-
id: "".concat(tableId, "-select-all-checkbox-id")
|
73
|
+
id: "".concat(tableId, "-select-all-checkbox-id"),
|
74
|
+
labelText: allRowsLabel,
|
75
|
+
hideLabel: true
|
74
76
|
}))), /*#__PURE__*/React.createElement(OverflowMenu, {
|
75
|
-
renderIcon:
|
76
|
-
|
77
|
+
renderIcon: function renderIcon(props) {
|
78
|
+
return /*#__PURE__*/React.createElement(CaretDown, _extends({
|
79
|
+
size: 16
|
80
|
+
}, props));
|
81
|
+
},
|
82
|
+
size: "sm",
|
83
|
+
ariaLabel: allRowsLabel
|
77
84
|
}, /*#__PURE__*/React.createElement(OverflowMenuItem, {
|
78
85
|
itemText: allPageRowsLabel,
|
79
86
|
requireTitle: true,
|