@carbon/ibm-products 1.25.1 → 2.0.0-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/css/index-full-carbon.css +24586 -24335
- 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 +10452 -4491
- 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 +10809 -14925
- 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 +140 -12
- 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 +32 -7
- 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/Datagrid/useStickyColumn.js +3 -0
- 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 +151 -12
- 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 +34 -9
- 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/Datagrid/useStickyColumn.js +3 -0
- 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 +121 -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 +37 -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 +102 -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 +262 -238
- 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
@@ -9,7 +9,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
9
9
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
10
10
|
|
11
11
|
/**
|
12
|
-
* Copyright IBM Corp. 2020,
|
12
|
+
* Copyright IBM Corp. 2020, 2022
|
13
13
|
*
|
14
14
|
* This source code is licensed under the Apache-2.0 license found in the
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
@@ -21,15 +21,14 @@ import { useResizeDetector } from 'react-resize-detector'; // Other standard imp
|
|
21
21
|
|
22
22
|
import PropTypes from 'prop-types';
|
23
23
|
import cx from 'classnames';
|
24
|
-
import { pkg
|
24
|
+
import { pkg } from '../../settings';
|
25
25
|
import pconsole from '../../global/js/utils/pconsole'; // Carbon and package components we use.
|
26
26
|
|
27
|
-
import { Button, ComposedModal, ModalHeader, ModalBody } from 'carbon
|
27
|
+
import { Button, ComposedModal, ModalHeader, ModalBody, usePrefix } from '@carbon/react';
|
28
28
|
import { ActionSet } from '../ActionSet';
|
29
29
|
import { Wrap } from '../../global/js/utils/Wrap'; // The block part of our conventional BEM class names (bc__E--M).
|
30
30
|
|
31
31
|
var bc = "".concat(pkg.prefix, "--tearsheet");
|
32
|
-
var bcModalHeader = "".concat(carbon.prefix, "--modal-header");
|
33
32
|
var componentName = 'TearsheetShell';
|
34
33
|
var maxDepth = 3; // NOTE: the component SCSS is not imported here: it is rolled up separately.
|
35
34
|
// Global data structure to communicate the state of tearsheet stacking
|
@@ -74,7 +73,9 @@ export var TearsheetShell = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
74
73
|
verticalPosition = _ref.verticalPosition,
|
75
74
|
rest = _objectWithoutProperties(_ref, _excluded);
|
76
75
|
|
77
|
-
|
76
|
+
var carbonPrefix = usePrefix();
|
77
|
+
var bcModalHeader = "".concat(carbonPrefix, "--modal-header"); // node the modal tearsheet is hosted in
|
78
|
+
|
78
79
|
var _useState = useState(null),
|
79
80
|
_useState2 = _slicedToArray(_useState, 2),
|
80
81
|
portalTarget = _useState2[0],
|
@@ -126,14 +127,14 @@ export var TearsheetShell = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
126
127
|
|
127
128
|
handleStackChange.checkFocus = function () {
|
128
129
|
// if we are now the topmost tearsheet, ensure we have focus
|
129
|
-
if (position === depth && modalRef.current && !modalRef.current.
|
130
|
+
if (position === depth && modalRef.current && !modalRef.current.contains(document.activeElement)) {
|
130
131
|
handleStackChange.claimFocus();
|
131
132
|
}
|
132
133
|
}; // Callback to give the tearsheet the opportunity to claim focus
|
133
134
|
|
134
135
|
|
135
136
|
handleStackChange.claimFocus = function () {
|
136
|
-
var element = selectorPrimaryFocus ? modalRef.current.
|
137
|
+
var element = selectorPrimaryFocus ? modalRef.current.querySelector(selectorPrimaryFocus) : modalRef.current;
|
137
138
|
setTimeout(function () {
|
138
139
|
return element.focus();
|
139
140
|
}, 1);
|
@@ -207,11 +208,12 @@ export var TearsheetShell = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
207
208
|
onFocus: handleFocus,
|
208
209
|
preventCloseOnClickOutside: !isPassive,
|
209
210
|
ref: modalRef,
|
210
|
-
selectorsFloatingMenus: [".".concat(
|
211
|
+
selectorsFloatingMenus: [".".concat(carbonPrefix, "--overflow-menu-options"), ".".concat(carbonPrefix, "--tooltip"), '.flatpickr-calendar', ".".concat(bc, "__container")],
|
211
212
|
size: "sm"
|
212
213
|
}), includeHeader && /*#__PURE__*/React.createElement(ModalHeader, {
|
213
214
|
className: cx("".concat(bc, "__header"), (_cx3 = {}, _defineProperty(_cx3, "".concat(bc, "__header--with-close-icon"), effectiveHasCloseIcon), _defineProperty(_cx3, "".concat(bc, "__header--with-nav"), navigation), _cx3)),
|
214
215
|
closeClassName: cx(_defineProperty({}, "".concat(bc, "__header--no-close-icon"), !effectiveHasCloseIcon)),
|
216
|
+
closeModal: onClose,
|
215
217
|
iconDescription: closeIconDescription
|
216
218
|
}, /*#__PURE__*/React.createElement(Wrap, {
|
217
219
|
className: "".concat(bc, "__header-content")
|
@@ -252,7 +254,7 @@ export var TearsheetShell = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
252
254
|
actions: actions,
|
253
255
|
buttonSize: size === 'wide' ? 'xl' : null,
|
254
256
|
className: "".concat(bc, "__buttons"),
|
255
|
-
size: size === 'wide' ? '
|
257
|
+
size: size === 'wide' ? '2xl' : 'lg'
|
256
258
|
})))), /*#__PURE__*/React.createElement("div", {
|
257
259
|
className: "".concat(bc, "__resize-detector"),
|
258
260
|
ref: resizer
|
@@ -13,6 +13,7 @@ var _excluded = ["children", "className", "vertical"];
|
|
13
13
|
import cx from 'classnames';
|
14
14
|
import { bool, node, string } from 'prop-types';
|
15
15
|
import React, { createContext, forwardRef, useCallback, useEffect, useRef, useState } from 'react';
|
16
|
+
import { getDevtoolsProps } from '../../global/js/utils/devtools';
|
16
17
|
import { getFocusableElements as _getFocusableElements } from '../../global/js/utils/getFocusableElements';
|
17
18
|
import { pkg } from '../../settings';
|
18
19
|
var checkComponentEnabled = pkg.checkComponentEnabled,
|
@@ -91,7 +92,7 @@ var Toolbar = /*#__PURE__*/forwardRef(function (_ref2, r) {
|
|
91
92
|
onKeyDown: onKeyDown
|
92
93
|
}, vertical && {
|
93
94
|
'aria-orientation': 'vertical'
|
94
|
-
}, {
|
95
|
+
}, getDevtoolsProps(componentName), {
|
95
96
|
role: "toolbar"
|
96
97
|
}), /*#__PURE__*/React.createElement(ToolbarContext.Provider, {
|
97
98
|
value: {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
4
|
-
var _excluded = ["caret", "children", "className"];
|
4
|
+
var _excluded = ["caret", "children", "className", "renderIcon", "iconDescription"];
|
5
5
|
|
6
6
|
/**
|
7
7
|
* Copyright IBM Corp. 2021, 2021
|
@@ -9,32 +9,36 @@ var _excluded = ["caret", "children", "className"];
|
|
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 {
|
12
|
+
import { IconButton } from '@carbon/react';
|
13
13
|
import cx from 'classnames';
|
14
|
-
import { bool, node, string } from 'prop-types';
|
14
|
+
import { bool, func, node, string } from 'prop-types';
|
15
15
|
import React, { forwardRef, useContext } from 'react';
|
16
16
|
import { pkg } from '../../settings';
|
17
17
|
import { blockClass as toolbarClass, ToolbarContext } from './Toolbar';
|
18
|
-
var blockClass = "".concat(toolbarClass, "__button");
|
18
|
+
export var blockClass = "".concat(toolbarClass, "__button");
|
19
19
|
/** Toolbar buttons are common functions performed as part of a products interface or an open window. */
|
20
20
|
|
21
|
-
var ToolbarButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
21
|
+
export var ToolbarButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
22
22
|
var _useContext;
|
23
23
|
|
24
24
|
var caret = _ref.caret,
|
25
25
|
children = _ref.children,
|
26
26
|
className = _ref.className,
|
27
|
+
renderIcon = _ref.renderIcon,
|
28
|
+
_ref$iconDescription = _ref.iconDescription,
|
29
|
+
iconDescription = _ref$iconDescription === void 0 ? '' : _ref$iconDescription,
|
27
30
|
rest = _objectWithoutProperties(_ref, _excluded);
|
28
31
|
|
29
|
-
|
30
|
-
|
32
|
+
var Icon = renderIcon;
|
33
|
+
return /*#__PURE__*/React.createElement(IconButton, _extends({
|
34
|
+
align: ((_useContext = useContext(ToolbarContext)) === null || _useContext === void 0 ? void 0 : _useContext.vertical) && 'right'
|
31
35
|
}, rest, {
|
36
|
+
label: iconDescription,
|
32
37
|
ref: ref,
|
33
38
|
className: cx(className, _defineProperty({}, "".concat(blockClass, "--caret"), caret)),
|
34
39
|
kind: "ghost",
|
35
|
-
size: "md"
|
36
|
-
|
37
|
-
}), /*#__PURE__*/React.createElement(React.Fragment, null, children, caret && /*#__PURE__*/React.createElement("span", {
|
40
|
+
size: "md"
|
41
|
+
}), /*#__PURE__*/React.createElement(React.Fragment, null, Icon ? /*#__PURE__*/React.createElement(Icon, null) : null, children, caret && /*#__PURE__*/React.createElement("span", {
|
38
42
|
className: "".concat(blockClass, "__caret")
|
39
43
|
})));
|
40
44
|
});
|
@@ -48,7 +52,12 @@ ToolbarButton.propTypes = {
|
|
48
52
|
children: node,
|
49
53
|
|
50
54
|
/** Provide an optional class to be applied to the containing node */
|
51
|
-
className: string
|
55
|
+
className: string,
|
56
|
+
|
57
|
+
/** Specifies the label for the icon button */
|
58
|
+
iconDescription: string.isRequired,
|
59
|
+
|
60
|
+
/** Specifies the icon to be used by the ToolbarButton component */
|
61
|
+
renderIcon: func.isRequired
|
52
62
|
};
|
53
|
-
ToolbarButton = pkg.checkComponentEnabled(ToolbarButton, componentName);
|
54
|
-
export { blockClass, ToolbarButton };
|
63
|
+
ToolbarButton = pkg.checkComponentEnabled(ToolbarButton, componentName);
|
@@ -17,8 +17,8 @@ import { getDevtoolsProps } from '../../global/js/utils/devtools';
|
|
17
17
|
import '../../global/js/utils/props-helper';
|
18
18
|
import { pkg } from '../../settings'; // Carbon and package components we use.
|
19
19
|
|
20
|
-
import {
|
21
|
-
import {
|
20
|
+
import { User, Group } from '@carbon/icons-react';
|
21
|
+
import { IconButton } from '@carbon/react'; // The block part of our conventional BEM class names (blockClass__E--M).
|
22
22
|
|
23
23
|
var blockClass = "".concat(pkg.prefix, "--user-profile-image");
|
24
24
|
var componentName = 'UserProfileImage'; // NOTE: the component SCSS is not imported here: it is rolled up separately.
|
@@ -42,14 +42,38 @@ export var UserProfileImage = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
42
42
|
|
43
43
|
var icons = {
|
44
44
|
user: {
|
45
|
-
md:
|
46
|
-
|
47
|
-
|
45
|
+
md: function md(props) {
|
46
|
+
return /*#__PURE__*/React.createElement(User, _extends({
|
47
|
+
size: 20
|
48
|
+
}, props));
|
49
|
+
},
|
50
|
+
lg: function lg(props) {
|
51
|
+
return /*#__PURE__*/React.createElement(User, _extends({
|
52
|
+
size: 24
|
53
|
+
}, props));
|
54
|
+
},
|
55
|
+
xl: function xl(props) {
|
56
|
+
return /*#__PURE__*/React.createElement(User, _extends({
|
57
|
+
size: 32
|
58
|
+
}, props));
|
59
|
+
}
|
48
60
|
},
|
49
61
|
group: {
|
50
|
-
md:
|
51
|
-
|
52
|
-
|
62
|
+
md: function md(props) {
|
63
|
+
return /*#__PURE__*/React.createElement(Group, _extends({
|
64
|
+
size: 20
|
65
|
+
}, props));
|
66
|
+
},
|
67
|
+
lg: function lg(props) {
|
68
|
+
return /*#__PURE__*/React.createElement(Group, _extends({
|
69
|
+
size: 24
|
70
|
+
}, props));
|
71
|
+
},
|
72
|
+
xl: function xl(props) {
|
73
|
+
return /*#__PURE__*/React.createElement(Group, _extends({
|
74
|
+
size: 32
|
75
|
+
}, props));
|
76
|
+
}
|
53
77
|
}
|
54
78
|
};
|
55
79
|
|
@@ -100,9 +124,10 @@ export var UserProfileImage = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
100
124
|
}, getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(FillItem, null));
|
101
125
|
};
|
102
126
|
|
103
|
-
return FillItem && (tooltipText ? /*#__PURE__*/React.createElement(
|
104
|
-
|
105
|
-
className: "".concat(blockClass, "__tooltip")
|
127
|
+
return FillItem && (tooltipText ? /*#__PURE__*/React.createElement(IconButton, {
|
128
|
+
label: tooltipText,
|
129
|
+
className: "".concat(blockClass, "__tooltip"),
|
130
|
+
kind: "ghost"
|
106
131
|
}, renderUserProfileImage()) : renderUserProfileImage());
|
107
132
|
}); // Return a placeholder if not released and not enabled by feature flag
|
108
133
|
|
@@ -123,7 +148,7 @@ UserProfileImage.propTypes = {
|
|
123
148
|
/**
|
124
149
|
* Provide a custom icon to use if you need to use an icon other than the included ones
|
125
150
|
*/
|
126
|
-
icon: PropTypes.
|
151
|
+
icon: PropTypes.func,
|
127
152
|
|
128
153
|
/**
|
129
154
|
* When passing the image prop, supply a full path to the image to be displayed.
|
@@ -151,7 +176,7 @@ UserProfileImage.propTypes = {
|
|
151
176
|
/**
|
152
177
|
* Set the size of the avatar circle
|
153
178
|
*/
|
154
|
-
size: PropTypes.oneOf(['
|
179
|
+
size: PropTypes.oneOf(['xl', 'lg', 'md']).isRequired,
|
155
180
|
|
156
181
|
/**
|
157
182
|
* Set theme in which the component will be rendered
|
@@ -21,8 +21,8 @@ import PropTypes from 'prop-types';
|
|
21
21
|
import cx from 'classnames';
|
22
22
|
import { pkg } from '../../settings'; // Carbon and package components we use.
|
23
23
|
|
24
|
-
import {
|
25
|
-
import { Button, OverflowMenu, OverflowMenuItem } from 'carbon
|
24
|
+
import { Close, Help } from '@carbon/icons-react';
|
25
|
+
import { Button, OverflowMenu, OverflowMenuItem } from '@carbon/react';
|
26
26
|
import { moderate02 } from '@carbon/motion';
|
27
27
|
import { useWebTerminal } from './hooks';
|
28
28
|
import { getDevtoolsProps } from '../../global/js/utils/devtools'; // The block part of our conventional BEM class names (blockClass__E--M).
|
@@ -120,7 +120,11 @@ export var WebTerminal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
120
120
|
}, /*#__PURE__*/React.createElement("div", {
|
121
121
|
className: "".concat(blockClass, "__actions")
|
122
122
|
}, showDocumentationLinks && /*#__PURE__*/React.createElement(OverflowMenu, {
|
123
|
-
renderIcon:
|
123
|
+
renderIcon: function renderIcon(props) {
|
124
|
+
return /*#__PURE__*/React.createElement(Help, _extends({
|
125
|
+
size: 16
|
126
|
+
}, props));
|
127
|
+
},
|
124
128
|
iconDescription: documentationLinksIconDescription,
|
125
129
|
ariaLabel: documentationLinksIconDescription,
|
126
130
|
menuOptionsClass: "".concat(blockClass, "__documentation-overflow"),
|
@@ -141,11 +145,16 @@ export var WebTerminal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
141
145
|
renderIcon: renderIcon,
|
142
146
|
onClick: onClick,
|
143
147
|
iconDescription: iconDescription,
|
144
|
-
kind: "ghost"
|
148
|
+
kind: "ghost",
|
149
|
+
"aria-label": iconDescription
|
145
150
|
});
|
146
151
|
})), /*#__PURE__*/React.createElement(Button, {
|
147
152
|
hasIconOnly: true,
|
148
|
-
renderIcon:
|
153
|
+
renderIcon: function renderIcon(props) {
|
154
|
+
return /*#__PURE__*/React.createElement(Close, _extends({
|
155
|
+
size: 16
|
156
|
+
}, props));
|
157
|
+
},
|
149
158
|
kind: "ghost",
|
150
159
|
iconDescription: closeIconDescription,
|
151
160
|
onClick: handleCloseTerminal,
|
@@ -169,7 +178,7 @@ WebTerminal.propTypes = {
|
|
169
178
|
* An array of actions to be displayed in the web terminal header bar
|
170
179
|
*/
|
171
180
|
actions: PropTypes.arrayOf(PropTypes.shape({
|
172
|
-
renderIcon: PropTypes.
|
181
|
+
renderIcon: PropTypes.func.isRequired,
|
173
182
|
onClick: PropTypes.func.isRequired,
|
174
183
|
iconDescription: PropTypes.string.isRequired
|
175
184
|
})),
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { Header, HeaderName, HeaderGlobalAction, HeaderGlobalBar } from 'carbon
|
3
|
-
import {
|
2
|
+
import { Header, HeaderName, HeaderGlobalAction, HeaderGlobalBar } from '@carbon/react';
|
3
|
+
import { Terminal, Search, User } from '@carbon/icons-react';
|
4
4
|
import { useWebTerminal } from '../hooks';
|
5
5
|
|
6
6
|
var Navigation = function Navigation() {
|
@@ -15,13 +15,19 @@ var Navigation = function Navigation() {
|
|
15
15
|
}, "[Platform]"), /*#__PURE__*/React.createElement(HeaderGlobalBar, null, /*#__PURE__*/React.createElement(HeaderGlobalAction, {
|
16
16
|
"aria-label": "Web terminal",
|
17
17
|
onClick: openWebTerminal
|
18
|
-
}, /*#__PURE__*/React.createElement(Terminal,
|
18
|
+
}, /*#__PURE__*/React.createElement(Terminal, {
|
19
|
+
size: 20
|
20
|
+
})), /*#__PURE__*/React.createElement(HeaderGlobalAction, {
|
19
21
|
"aria-label": "Search",
|
20
22
|
onClick: function onClick() {}
|
21
|
-
}, /*#__PURE__*/React.createElement(Search,
|
23
|
+
}, /*#__PURE__*/React.createElement(Search, {
|
24
|
+
size: 20
|
25
|
+
})), /*#__PURE__*/React.createElement(HeaderGlobalAction, {
|
22
26
|
"aria-label": "User",
|
23
27
|
onClick: function onClick() {}
|
24
|
-
}, /*#__PURE__*/React.createElement(User,
|
28
|
+
}, /*#__PURE__*/React.createElement(User, {
|
29
|
+
size: 20
|
30
|
+
}))));
|
25
31
|
};
|
26
32
|
|
27
33
|
export default Navigation;
|
@@ -16,7 +16,7 @@ import cx from 'classnames'; // load the package settings direct, because Canary
|
|
16
16
|
|
17
17
|
import pkg from '../../global/js/package-settings'; // Carbon and package components we use.
|
18
18
|
|
19
|
-
import { CodeSnippet } from 'carbon
|
19
|
+
import { CodeSnippet } from '@carbon/react'; // The block part of our conventional BEM class names (blockClass__E--M).
|
20
20
|
|
21
21
|
var blockClass = "".concat(pkg.prefix, "--canary");
|
22
22
|
/**
|
@@ -50,7 +50,8 @@ export var scssCompile = function scssCompile(file) {
|
|
50
50
|
// When the sass API is revised it may be feasible to switch back to
|
51
51
|
// using the API for SCSS compilation and checking.
|
52
52
|
execFileSync('sass', [compressed ? '--style=compressed' : '--style=expanded', '--no-source-map', '--load-path', loadPath1, '--load-path', loadPath2, file], {
|
53
|
-
stdio: ['ignore', 'pipe', 'pipe']
|
53
|
+
stdio: ['ignore', 'pipe', 'pipe'],
|
54
|
+
maxBuffer: 1024 * 1024 * 1.5
|
54
55
|
}).toString()
|
55
56
|
);
|
56
57
|
};
|
package/es/settings.js
CHANGED
@@ -1,21 +1,13 @@
|
|
1
1
|
import { Canary } from './components/_Canary';
|
2
2
|
import pkgSettings from './global/js/package-settings';
|
3
|
-
import { settings as carbonSettings } from 'carbon-components';
|
4
3
|
import React from 'react';
|
5
4
|
import { themes } from '@carbon/themes';
|
6
5
|
export var carbon = {
|
7
|
-
get prefix() {
|
8
|
-
return carbonSettings.prefix;
|
9
|
-
},
|
10
|
-
|
11
|
-
set prefix(val) {
|
12
|
-
carbonSettings.prefix = val;
|
13
|
-
},
|
14
|
-
|
15
6
|
get themes() {
|
16
7
|
return themes;
|
17
|
-
}
|
8
|
+
},
|
18
9
|
|
10
|
+
prefix: 'cds'
|
19
11
|
}; // Check that a component is enabled. This function returns a stub which checks
|
20
12
|
// the component status on first use and then renders as the component or as
|
21
13
|
// a Canary placeholder initialized with the name of the replaced component.
|
@@ -11,12 +11,12 @@ exports.APIKeyModal = void 0;
|
|
11
11
|
|
12
12
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
13
13
|
|
14
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
15
|
-
|
16
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
17
15
|
|
18
16
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
19
17
|
|
18
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
19
|
+
|
20
20
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
21
21
|
|
22
22
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
@@ -27,7 +27,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
27
27
|
|
28
28
|
var _classnames = _interopRequireDefault(require("classnames"));
|
29
29
|
|
30
|
-
var
|
30
|
+
var _react2 = require("@carbon/react");
|
31
31
|
|
32
32
|
var _iconsReact = require("@carbon/icons-react");
|
33
33
|
|
@@ -127,7 +127,11 @@ var APIKeyModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
127
127
|
var hasNextStep = hasSteps && currentStep < customSteps.length - 1;
|
128
128
|
var hasPreviousStep = hasSteps && currentStep !== 0;
|
129
129
|
var copyButtonProps = {
|
130
|
-
renderIcon:
|
130
|
+
renderIcon: function renderIcon(props) {
|
131
|
+
return /*#__PURE__*/_react.default.createElement(_iconsReact.Copy, (0, _extends2.default)({
|
132
|
+
size: 16
|
133
|
+
}, props));
|
134
|
+
},
|
131
135
|
iconDescription: copyIconDescription,
|
132
136
|
ref: copyRef
|
133
137
|
};
|
@@ -283,7 +287,7 @@ var APIKeyModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
283
287
|
}
|
284
288
|
};
|
285
289
|
|
286
|
-
return /*#__PURE__*/_react.default.createElement(
|
290
|
+
return /*#__PURE__*/_react.default.createElement(_react2.ComposedModal, (0, _extends2.default)({}, rest, _objectSpread({
|
287
291
|
open: open,
|
288
292
|
ref: ref
|
289
293
|
}, (0, _devtools.getDevtoolsProps)(componentName)), {
|
@@ -292,28 +296,28 @@ var APIKeyModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
292
296
|
size: "sm",
|
293
297
|
"aria-label": modalLabel,
|
294
298
|
preventCloseOnClickOutside: true
|
295
|
-
}), /*#__PURE__*/_react.default.createElement(
|
299
|
+
}), /*#__PURE__*/_react.default.createElement(_react2.ModalHeader, {
|
296
300
|
className: "".concat(blockClass, "__header"),
|
297
301
|
title: getTitle(),
|
298
302
|
label: modalLabel
|
299
|
-
}), /*#__PURE__*/_react.default.createElement(
|
303
|
+
}), /*#__PURE__*/_react.default.createElement(_react2.ModalBody, {
|
300
304
|
className: "".concat(blockClass, "__body-container")
|
301
305
|
}, hasSteps && !apiKeyLoaded ? customSteps[currentStep].content : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, body && /*#__PURE__*/_react.default.createElement("p", {
|
302
306
|
className: "".concat(blockClass, "__body")
|
303
|
-
}, body), !editing && apiKey && hasAPIKeyVisibilityToggle && /*#__PURE__*/_react.default.createElement(
|
307
|
+
}, body), !editing && apiKey && hasAPIKeyVisibilityToggle && /*#__PURE__*/_react.default.createElement(_react2.PasswordInput, {
|
304
308
|
value: apiKey,
|
305
309
|
labelText: apiKeyLabel,
|
306
310
|
id: apiKeyInputId.current,
|
307
311
|
showPasswordLabel: showAPIKeyLabel,
|
308
312
|
hidePasswordLabel: hideAPIKeyLabel,
|
309
313
|
tooltipPosition: "left"
|
310
|
-
}), !editing && apiKey && !hasAPIKeyVisibilityToggle && /*#__PURE__*/_react.default.createElement(
|
314
|
+
}), !editing && apiKey && !hasAPIKeyVisibilityToggle && /*#__PURE__*/_react.default.createElement(_react2.TextInput, {
|
311
315
|
value: apiKey,
|
312
316
|
labelText: apiKeyLabel,
|
313
317
|
id: apiKeyInputId.current
|
314
|
-
}), (editing || !apiKeyLoaded && nameRequired) && /*#__PURE__*/_react.default.createElement(
|
318
|
+
}), (editing || !apiKeyLoaded && nameRequired) && /*#__PURE__*/_react.default.createElement(_react2.Form, {
|
315
319
|
onSubmit: submitHandler
|
316
|
-
}, /*#__PURE__*/_react.default.createElement(
|
320
|
+
}, /*#__PURE__*/_react.default.createElement(_react2.TextInput, {
|
317
321
|
helperText: nameHelperText,
|
318
322
|
placeholder: namePlaceholder,
|
319
323
|
labelText: nameLabel,
|
@@ -323,18 +327,22 @@ var APIKeyModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
323
327
|
disabled: loading,
|
324
328
|
required: nameRequired,
|
325
329
|
"data-modal-primary-focus": true
|
326
|
-
})), loading && /*#__PURE__*/_react.default.createElement(
|
330
|
+
})), loading && /*#__PURE__*/_react.default.createElement(_react2.InlineLoading, {
|
327
331
|
description: loadingText,
|
328
332
|
className: "".concat(blockClass, "__loader")
|
329
333
|
}), (copyError || error) && /*#__PURE__*/_react.default.createElement("div", {
|
330
334
|
className: "".concat(blockClass, "__messaging")
|
331
335
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
332
336
|
className: "".concat(blockClass, "__error-icon")
|
333
|
-
}, /*#__PURE__*/_react.default.createElement(_iconsReact.
|
337
|
+
}, /*#__PURE__*/_react.default.createElement(_iconsReact.ErrorFilled, {
|
338
|
+
size: 16
|
339
|
+
})), /*#__PURE__*/_react.default.createElement("p", {
|
334
340
|
className: "".concat(blockClass, "__messaging-text")
|
335
341
|
}, copyError ? copyErrorText : errorText)), apiKeyLoaded && /*#__PURE__*/_react.default.createElement("div", {
|
336
342
|
className: "".concat(blockClass, "__messaging")
|
337
|
-
}, /*#__PURE__*/_react.default.createElement(_iconsReact.
|
343
|
+
}, /*#__PURE__*/_react.default.createElement(_iconsReact.InformationFilled, {
|
344
|
+
size: 16
|
345
|
+
}), hasDownloadLink ? /*#__PURE__*/_react.default.createElement(_APIKeyDownloader.APIKeyDownloader, {
|
338
346
|
apiKey: apiKey,
|
339
347
|
body: downloadBodyText,
|
340
348
|
fileName: downloadFileName,
|
@@ -342,13 +350,13 @@ var APIKeyModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
342
350
|
fileType: downloadFileType
|
343
351
|
}) : /*#__PURE__*/_react.default.createElement("div", {
|
344
352
|
className: "".concat(blockClass, "__messaging-text")
|
345
|
-
}, generateSuccessBody)))), /*#__PURE__*/_react.default.createElement(
|
353
|
+
}, generateSuccessBody)))), /*#__PURE__*/_react.default.createElement(_react2.ModalFooter, {
|
346
354
|
className: "".concat(blockClass, "__footer")
|
347
|
-
}, /*#__PURE__*/_react.default.createElement(
|
355
|
+
}, /*#__PURE__*/_react.default.createElement(_react2.Button, {
|
348
356
|
type: "button",
|
349
357
|
kind: "secondary",
|
350
358
|
onClick: onBackHandler
|
351
|
-
}, getSecondaryButtonText()), /*#__PURE__*/_react.default.createElement(
|
359
|
+
}, getSecondaryButtonText()), /*#__PURE__*/_react.default.createElement(_react2.Button, (0, _extends2.default)({}, apiKeyLoaded ? copyButtonProps : {}, {
|
352
360
|
type: "submit",
|
353
361
|
kind: "primary",
|
354
362
|
onClick: submitHandler,
|
@@ -31,9 +31,11 @@ var _uuidv = _interopRequireDefault(require("../../global/js/utils/uuidv4"));
|
|
31
31
|
|
32
32
|
var _devtools = require("../../global/js/utils/devtools");
|
33
33
|
|
34
|
-
var
|
34
|
+
var _react2 = require("@carbon/react");
|
35
35
|
|
36
|
-
var
|
36
|
+
var _propsHelper = require("../../global/js/utils/props-helper");
|
37
|
+
|
38
|
+
var _excluded = ["additionalInfo", "className", "closeIconDescription", "content", "copyrightText", "legalText", "links", "logo", "modalAriaLabel", "onClose", "open", "tabListAriaLabel", "title"];
|
37
39
|
|
38
40
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
39
41
|
|
@@ -64,8 +66,10 @@ var AboutModal = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
64
66
|
legalText = _ref.legalText,
|
65
67
|
links = _ref.links,
|
66
68
|
logo = _ref.logo,
|
69
|
+
modalAriaLabel = _ref.modalAriaLabel,
|
67
70
|
onClose = _ref.onClose,
|
68
71
|
open = _ref.open,
|
72
|
+
tabListAriaLabel = _ref.tabListAriaLabel,
|
69
73
|
title = _ref.title,
|
70
74
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
71
75
|
|
@@ -94,22 +98,24 @@ var AboutModal = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
94
98
|
onResize: handleResize,
|
95
99
|
targetRef: bodyRef
|
96
100
|
});
|
97
|
-
return /*#__PURE__*/_react.default.createElement(
|
101
|
+
return /*#__PURE__*/_react.default.createElement(_react2.ComposedModal, (0, _extends2.default)({}, rest, {
|
98
102
|
className: (0, _classnames.default)(blockClass, // Apply the block class to the main HTML element
|
99
103
|
className, // Apply any supplied class names to the main HTML element.
|
100
|
-
(0, _defineProperty2.default)({}, "".concat(blockClass, "--with-tabs"), additionalInfo && additionalInfo.length > 1))
|
104
|
+
(0, _defineProperty2.default)({}, "".concat(blockClass, "--with-tabs"), additionalInfo && additionalInfo.length > 1)),
|
105
|
+
"aria-label": modalAriaLabel
|
101
106
|
}, _objectSpread({
|
102
107
|
onClose: onClose,
|
103
108
|
open: open,
|
104
109
|
ref: ref
|
105
110
|
}, (0, _devtools.getDevtoolsProps)(componentName))), /*#__PURE__*/_react.default.createElement("div", {
|
106
111
|
className: "".concat(blockClass, "__logo")
|
107
|
-
}, logo), /*#__PURE__*/_react.default.createElement(
|
112
|
+
}, logo), /*#__PURE__*/_react.default.createElement(_react2.ModalHeader, {
|
108
113
|
className: "".concat(blockClass, "__header"),
|
114
|
+
closeModal: onClose,
|
109
115
|
iconDescription: closeIconDescription,
|
110
116
|
label: title,
|
111
117
|
labelClassName: "".concat(blockClass, "__title")
|
112
|
-
}), /*#__PURE__*/_react.default.createElement(
|
118
|
+
}), /*#__PURE__*/_react.default.createElement(_react2.ModalBody, {
|
113
119
|
"aria-label": hasScrollingContent ? '' : null,
|
114
120
|
"aria-labelledby": hasScrollingContent ? contentId : null,
|
115
121
|
className: "".concat(blockClass, "__body"),
|
@@ -128,30 +134,42 @@ var AboutModal = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
128
134
|
className: "".concat(blockClass, "__legal-text")
|
129
135
|
}, legalText), copyrightText && /*#__PURE__*/_react.default.createElement("p", {
|
130
136
|
className: "".concat(blockClass, "__copyright-text")
|
131
|
-
}, copyrightText))), /*#__PURE__*/_react.default.createElement(
|
137
|
+
}, copyrightText))), /*#__PURE__*/_react.default.createElement(_react2.ModalFooter, {
|
132
138
|
className: "".concat(blockClass, "__footer")
|
133
139
|
}, additionalInfo && additionalInfo.length > 0 && (additionalInfo.length === 1 ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("p", {
|
134
140
|
className: "".concat(blockClass, "__version-label")
|
135
141
|
}, additionalInfo[0].label), /*#__PURE__*/_react.default.createElement("p", {
|
136
142
|
className: "".concat(blockClass, "__version-number")
|
137
|
-
}, additionalInfo[0].content)) : /*#__PURE__*/_react.default.createElement(
|
143
|
+
}, additionalInfo[0].content)) : /*#__PURE__*/_react.default.createElement("div", {
|
138
144
|
className: "".concat(blockClass, "__tab-container")
|
139
|
-
},
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
key:
|
145
|
+
}, /*#__PURE__*/_react.default.createElement(_react2.Tabs, null, /*#__PURE__*/_react.default.createElement(_react2.TabList, {
|
146
|
+
"aria-label": tabListAriaLabel
|
147
|
+
}, additionalInfo.map(function (tab, index) {
|
148
|
+
return /*#__PURE__*/_react.default.createElement(_react2.Tab, {
|
149
|
+
key: index
|
150
|
+
}, tab.label);
|
151
|
+
})), /*#__PURE__*/_react.default.createElement(_react2.TabPanels, null, additionalInfo.map(function (tab, index) {
|
152
|
+
return /*#__PURE__*/_react.default.createElement(_react2.TabPanel, {
|
153
|
+
key: index
|
144
154
|
}, tab.content);
|
145
|
-
})))));
|
155
|
+
})))))));
|
146
156
|
}); // Return a placeholder if not released and not enabled by feature flag
|
147
157
|
|
148
158
|
|
149
159
|
exports.AboutModal = AboutModal;
|
150
160
|
exports.AboutModal = AboutModal = _settings.pkg.checkComponentEnabled(AboutModal, componentName);
|
151
|
-
AboutModal.displayName = componentName;
|
161
|
+
AboutModal.displayName = componentName;
|
162
|
+
|
163
|
+
var tabListAriaLabelRequiredProps = function tabListAriaLabelRequiredProps(type) {
|
164
|
+
return (0, _propsHelper.isRequiredIf)(type, function (_ref2) {
|
165
|
+
var additionalInfo = _ref2.additionalInfo;
|
166
|
+
return additionalInfo === null || additionalInfo === void 0 ? void 0 : additionalInfo.length;
|
167
|
+
});
|
168
|
+
}; // The types and DocGen commentary for the component props,
|
152
169
|
// in alphabetical order (for consistency).
|
153
170
|
// See https://www.npmjs.com/package/prop-types#usage.
|
154
171
|
|
172
|
+
|
155
173
|
AboutModal.propTypes = {
|
156
174
|
/**
|
157
175
|
* Additional information to be displayed in the footer. Can be used for
|
@@ -204,6 +222,11 @@ AboutModal.propTypes = {
|
|
204
222
|
*/
|
205
223
|
logo: _propTypes.default.node.isRequired,
|
206
224
|
|
225
|
+
/**
|
226
|
+
* Specifies aria label for AboutModal
|
227
|
+
*/
|
228
|
+
modalAriaLabel: _propTypes.default.string,
|
229
|
+
|
207
230
|
/**
|
208
231
|
* Specifies an optional handler which is called when the AboutModal
|
209
232
|
* is closed. Returning `false` prevents the AboutModal from closing.
|
@@ -215,6 +238,11 @@ AboutModal.propTypes = {
|
|
215
238
|
*/
|
216
239
|
open: _propTypes.default.bool,
|
217
240
|
|
241
|
+
/**
|
242
|
+
* Specifies the tab list aria label
|
243
|
+
*/
|
244
|
+
tabListAriaLabel: tabListAriaLabelRequiredProps(_propTypes.default.string),
|
245
|
+
|
218
246
|
/**
|
219
247
|
* The title of the AboutModal is usually the product or service name.
|
220
248
|
*/
|