@carbon/ibm-products 2.54.0-canary.4 → 2.54.0-canary.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/index-full-carbon.css +96 -23
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -1
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +20 -10
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +20 -10
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -1
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +33 -13
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/_virtual/_rollupPluginBabelHelpers.js +1 -1
- package/es/components/APIKeyModal/APIKeyModal.js +17 -14
- package/es/components/APIKeyModal/APIKeyModal.types.d.ts +5 -1
- package/es/components/AboutModal/AboutModal.js +3 -6
- package/es/components/AddSelect/hooks/useFocus.js +1 -2
- package/es/components/AddSelect/hooks/useParentSelect.js +1 -2
- package/es/components/AddSelect/hooks/usePath.js +1 -2
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +18 -9
- package/es/components/Card/Card.js +13 -9
- package/es/components/Checklist/Checklist.js +1 -1
- package/es/components/Checklist/ChecklistIcon.js +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +1 -2
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +1 -5
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +5 -5
- package/es/components/ConditionBuilder/utils/util.js +0 -4
- package/es/components/CreateTearsheet/CreateTearsheet.d.ts +1 -1
- package/es/components/CreateTearsheet/CreateTearsheet.js +2 -2
- package/es/components/CreateTearsheet/CreateTearsheetStep.js +6 -3
- package/es/components/Datagrid/Datagrid/Datagrid.d.ts +1 -0
- package/es/components/Datagrid/Datagrid/Datagrid.js +7 -0
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +2 -3
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +2 -3
- package/es/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useSubscribeToEventEmitter.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/stateReducer.js +1 -1
- package/es/components/Datagrid/useCustomizeColumns.js +4 -4
- package/es/components/Datagrid/useDatagrid.js +2 -2
- package/es/components/Datagrid/useDefaultStringRenderer.js +1 -2
- package/es/components/Datagrid/useEditableCell.js +1 -2
- package/es/components/Datagrid/useFlexResize.js +1 -2
- package/es/components/Datagrid/useFloatingScroll.js +1 -2
- package/es/components/Datagrid/useNestedRowExpander.js +1 -2
- package/es/components/Datagrid/useParentDimensions.js +1 -2
- package/es/components/Datagrid/useResizeTable.js +1 -2
- package/es/components/Datagrid/useRowExpander.js +1 -2
- package/es/components/Datagrid/useRowRenderer.js +1 -2
- package/es/components/Datagrid/useRowSize.js +1 -2
- package/es/components/Datagrid/useSkeletonRows.js +1 -2
- package/es/components/DecoratorDualButton/DecoratorDualButton.d.ts +1 -0
- package/es/components/DecoratorDualButton/DecoratorDualButton.js +5 -0
- package/es/components/DecoratorLink/DecoratorLink.d.ts +1 -0
- package/es/components/DecoratorLink/DecoratorLink.js +5 -0
- package/es/components/DecoratorSingleButton/DecoratorSingleButton.d.ts +1 -0
- package/es/components/DecoratorSingleButton/DecoratorSingleButton.js +5 -0
- package/es/components/DescriptionList/DescriptionList.d.ts +1 -0
- package/es/components/DescriptionList/DescriptionList.js +5 -0
- package/es/components/EditFullPage/EditFullPage.d.ts +2 -0
- package/es/components/EditFullPage/EditFullPage.js +8 -0
- package/es/components/EditSidePanel/EditSidePanel.d.ts +2 -0
- package/es/components/EditSidePanel/EditSidePanel.js +8 -0
- package/es/components/EditTearsheet/EditTearsheet.d.ts +2 -0
- package/es/components/EditTearsheet/EditTearsheet.js +8 -0
- package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.d.ts +2 -0
- package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.js +8 -0
- package/es/components/EditUpdateCards/EditUpdateCards.d.ts +2 -0
- package/es/components/EditUpdateCards/EditUpdateCards.js +8 -0
- package/es/components/EmptyStates/EmptyStateIllustration.js +1 -2
- package/es/components/EmptyStates/EmptyStateV2.d.ts +1 -0
- package/es/components/EmptyStates/EmptyStateV2.js +7 -0
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
- package/es/components/EmptyStates/assets/ErrorIllustration.js +1 -2
- package/es/components/EmptyStates/assets/NoDataIllustration.js +1 -2
- package/es/components/EmptyStates/assets/NoTagsIllustration.js +1 -2
- package/es/components/EmptyStates/assets/NotFoundIllustration.js +1 -2
- package/es/components/EmptyStates/assets/NotificationsIllustration.js +1 -2
- package/es/components/EmptyStates/assets/UnauthorizedIllustration.js +1 -2
- package/es/components/FilterPanel/FilterPanel.d.ts +1 -0
- package/es/components/FilterPanel/FilterPanel.js +6 -0
- package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.d.ts +1 -0
- package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +5 -0
- package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.d.ts +1 -0
- package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +5 -1
- package/es/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.d.ts +1 -0
- package/es/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +5 -0
- package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.d.ts +1 -0
- package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +5 -0
- package/es/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.d.ts +1 -0
- package/es/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +5 -0
- package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.d.ts +1 -0
- package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +5 -1
- package/es/components/Nav/Nav.d.ts +3 -0
- package/es/components/Nav/Nav.js +8 -0
- package/es/components/Nav/NavItemLink.js +1 -2
- package/es/components/StatusIndicator/StatusIndicator.d.ts +1 -0
- package/es/components/StatusIndicator/StatusIndicator.js +5 -0
- package/es/components/StatusIndicator/StatusIndicatorStep.d.ts +1 -0
- package/es/components/StatusIndicator/StatusIndicatorStep.js +5 -0
- package/es/components/Tearsheet/TearsheetShell.js +3 -24
- package/es/global/js/hooks/useFocus.d.ts +1 -0
- package/es/global/js/hooks/useFocus.js +21 -1
- package/es/global/js/hooks/usePrefersReducedMotion.js +1 -2
- package/es/index.js +1 -1
- package/lib/_virtual/_rollupPluginBabelHelpers.js +1 -1
- package/lib/components/APIKeyModal/APIKeyModal.js +16 -13
- package/lib/components/APIKeyModal/APIKeyModal.types.d.ts +5 -1
- package/lib/components/AboutModal/AboutModal.js +2 -5
- package/lib/components/AddSelect/hooks/useFocus.js +1 -2
- package/lib/components/AddSelect/hooks/useParentSelect.js +1 -2
- package/lib/components/AddSelect/hooks/usePath.js +1 -2
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +17 -8
- package/lib/components/Card/Card.js +12 -8
- package/lib/components/Checklist/ChecklistChart.js +7 -7
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +1 -2
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +1 -5
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +5 -5
- package/lib/components/ConditionBuilder/utils/util.js +0 -4
- package/lib/components/CreateTearsheet/CreateTearsheet.d.ts +1 -1
- package/lib/components/CreateTearsheet/CreateTearsheet.js +2 -2
- package/lib/components/CreateTearsheet/CreateTearsheetStep.js +5 -2
- package/lib/components/Datagrid/Datagrid/Datagrid.d.ts +1 -0
- package/lib/components/Datagrid/Datagrid/Datagrid.js +7 -0
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +2 -2
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useSubscribeToEventEmitter.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +1 -1
- package/lib/components/Datagrid/useColumnOrder.js +1 -1
- package/lib/components/Datagrid/useDefaultStringRenderer.js +1 -2
- package/lib/components/Datagrid/useEditableCell.js +1 -2
- package/lib/components/Datagrid/useFlexResize.js +1 -2
- package/lib/components/Datagrid/useFloatingScroll.js +1 -2
- package/lib/components/Datagrid/useNestedRowExpander.js +1 -2
- package/lib/components/Datagrid/useParentDimensions.js +1 -2
- package/lib/components/Datagrid/useResizeTable.js +1 -2
- package/lib/components/Datagrid/useRowExpander.js +1 -2
- package/lib/components/Datagrid/useRowRenderer.js +1 -2
- package/lib/components/Datagrid/useRowSize.js +1 -2
- package/lib/components/Datagrid/useSkeletonRows.js +1 -2
- package/lib/components/DecoratorDualButton/DecoratorDualButton.d.ts +1 -0
- package/lib/components/DecoratorDualButton/DecoratorDualButton.js +5 -0
- package/lib/components/DecoratorLink/DecoratorLink.d.ts +1 -0
- package/lib/components/DecoratorLink/DecoratorLink.js +5 -0
- package/lib/components/DecoratorSingleButton/DecoratorSingleButton.d.ts +1 -0
- package/lib/components/DecoratorSingleButton/DecoratorSingleButton.js +5 -0
- package/lib/components/DescriptionList/DescriptionList.d.ts +1 -0
- package/lib/components/DescriptionList/DescriptionList.js +5 -0
- package/lib/components/EditFullPage/EditFullPage.d.ts +2 -0
- package/lib/components/EditFullPage/EditFullPage.js +8 -0
- package/lib/components/EditSidePanel/EditSidePanel.d.ts +2 -0
- package/lib/components/EditSidePanel/EditSidePanel.js +8 -0
- package/lib/components/EditTearsheet/EditTearsheet.d.ts +2 -0
- package/lib/components/EditTearsheet/EditTearsheet.js +8 -0
- package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.d.ts +2 -0
- package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.js +8 -0
- package/lib/components/EditUpdateCards/EditUpdateCards.d.ts +2 -0
- package/lib/components/EditUpdateCards/EditUpdateCards.js +8 -0
- package/lib/components/EmptyStates/EmptyStateIllustration.js +1 -2
- package/lib/components/EmptyStates/EmptyStateV2.d.ts +1 -0
- package/lib/components/EmptyStates/EmptyStateV2.js +7 -0
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
- package/lib/components/EmptyStates/assets/ErrorIllustration.js +1 -2
- package/lib/components/EmptyStates/assets/NoDataIllustration.js +1 -2
- package/lib/components/EmptyStates/assets/NoTagsIllustration.js +1 -2
- package/lib/components/EmptyStates/assets/NotFoundIllustration.js +1 -2
- package/lib/components/EmptyStates/assets/NotificationsIllustration.js +1 -2
- package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +1 -2
- package/lib/components/FilterPanel/FilterPanel.d.ts +1 -0
- package/lib/components/FilterPanel/FilterPanel.js +6 -0
- package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.d.ts +1 -0
- package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +5 -0
- package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.d.ts +1 -0
- package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +5 -1
- package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.d.ts +1 -0
- package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +5 -0
- package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.d.ts +1 -0
- package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +5 -0
- package/lib/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.d.ts +1 -0
- package/lib/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +5 -0
- package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.d.ts +1 -0
- package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +5 -1
- package/lib/components/Nav/Nav.d.ts +3 -0
- package/lib/components/Nav/Nav.js +8 -0
- package/lib/components/Nav/NavItemLink.js +1 -2
- package/lib/components/StatusIndicator/StatusIndicator.d.ts +1 -0
- package/lib/components/StatusIndicator/StatusIndicator.js +5 -0
- package/lib/components/StatusIndicator/StatusIndicatorStep.d.ts +1 -0
- package/lib/components/StatusIndicator/StatusIndicatorStep.js +5 -0
- package/lib/components/Tearsheet/TearsheetShell.js +2 -23
- package/lib/global/js/hooks/useFocus.d.ts +1 -0
- package/lib/global/js/hooks/useFocus.js +21 -0
- package/lib/global/js/hooks/usePrefersReducedMotion.js +1 -2
- package/lib/index.js +109 -109
- package/package.json +11 -11
- package/scss/components/BreadcrumbWithOverflow/_breadcrumb-with-overflow.scss +2 -3
- package/scss/components/Datagrid/styles/_datagrid.scss +16 -6
- package/scss/components/Datagrid/styles/_useStickyColumn.scss +2 -2
- package/scss/components/PageHeader/_page-header.scss +5 -0
@@ -26,6 +26,7 @@ var defaults = {
|
|
26
26
|
|
27
27
|
/**
|
28
28
|
* A container with a label and optional count.
|
29
|
+
* @deprecated This component is deprecated
|
29
30
|
*/
|
30
31
|
var FilterPanelAccordion = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
31
32
|
var _ref$accordionProps = _ref.accordionProps,
|
@@ -49,6 +50,10 @@ var FilterPanelAccordion = /*#__PURE__*/React__default.forwardRef(function (_ref
|
|
49
50
|
className: "".concat(blockClass, "__list")
|
50
51
|
}), children));
|
51
52
|
});
|
53
|
+
FilterPanelAccordion.deprecated = {
|
54
|
+
level: 'warn',
|
55
|
+
details: "This component is deprecated"
|
56
|
+
};
|
52
57
|
|
53
58
|
// Return a placeholder if not released and not enabled by feature flag
|
54
59
|
FilterPanelAccordion = pkg.checkComponentEnabled(FilterPanelAccordion, componentName);
|
@@ -27,6 +27,7 @@ var defaults = {
|
|
27
27
|
|
28
28
|
/**
|
29
29
|
* A container with a label and optional count.
|
30
|
+
* @deprecated This component is deprecated
|
30
31
|
*/
|
31
32
|
var FilterPanelAccordionItem = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
32
33
|
var _ref$accordionItemPro = _ref.accordionItemProps,
|
@@ -56,7 +57,10 @@ var FilterPanelAccordionItem = /*#__PURE__*/React__default.forwardRef(function (
|
|
56
57
|
}, child);
|
57
58
|
})));
|
58
59
|
});
|
59
|
-
|
60
|
+
FilterPanelAccordionItem.deprecated = {
|
61
|
+
level: 'warn',
|
62
|
+
details: "This component is deprecated"
|
63
|
+
};
|
60
64
|
// Return a placeholder if not released and not enabled by feature flag
|
61
65
|
FilterPanelAccordionItem = pkg.checkComponentEnabled(FilterPanelAccordionItem, componentName);
|
62
66
|
FilterPanelAccordionItem.displayName = componentName;
|
@@ -5,6 +5,7 @@
|
|
5
5
|
*
|
6
6
|
* All of Carbon Checkbox's props are directly available
|
7
7
|
* through "...rest", including id, onClick, etc.
|
8
|
+
* @deprecated This component is deprecated
|
8
9
|
*/
|
9
10
|
export let FilterPanelCheckbox: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
10
11
|
import React from 'react';
|
@@ -27,6 +27,7 @@ var componentName = 'FilterPanelCheckbox';
|
|
27
27
|
*
|
28
28
|
* All of Carbon Checkbox's props are directly available
|
29
29
|
* through "...rest", including id, onClick, etc.
|
30
|
+
* @deprecated This component is deprecated
|
30
31
|
*/
|
31
32
|
var FilterPanelCheckbox = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
32
33
|
var className = _ref.className,
|
@@ -46,6 +47,10 @@ var FilterPanelCheckbox = /*#__PURE__*/React__default.forwardRef(function (_ref,
|
|
46
47
|
ref: ref
|
47
48
|
}, getDevtoolsProps(componentName)));
|
48
49
|
});
|
50
|
+
FilterPanelCheckbox.deprecated = {
|
51
|
+
level: 'warn',
|
52
|
+
details: "This component is deprecated"
|
53
|
+
};
|
49
54
|
|
50
55
|
// Return a placeholder if not released and not enabled by feature flag
|
51
56
|
FilterPanelCheckbox = pkg.checkComponentEnabled(FilterPanelCheckbox, componentName);
|
@@ -5,6 +5,7 @@
|
|
5
5
|
* just like FilterPanelCheckbox.
|
6
6
|
*
|
7
7
|
* Use `overflowMenuProps` for properties specific to the OverflowMenu.
|
8
|
+
* @deprecated This component is deprecated
|
8
9
|
*/
|
9
10
|
export let FilterPanelCheckboxWithOverflow: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
10
11
|
import React from 'react';
|
package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js
CHANGED
@@ -30,6 +30,7 @@ var defaults = {
|
|
30
30
|
* just like FilterPanelCheckbox.
|
31
31
|
*
|
32
32
|
* Use `overflowMenuProps` for properties specific to the OverflowMenu.
|
33
|
+
* @deprecated This component is deprecated
|
33
34
|
*/
|
34
35
|
var FilterPanelCheckboxWithOverflow = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
35
36
|
var children = _ref.children,
|
@@ -115,6 +116,10 @@ var FilterPanelCheckboxWithOverflow = /*#__PURE__*/React__default.forwardRef(fun
|
|
115
116
|
}, other), children))
|
116
117
|
);
|
117
118
|
});
|
119
|
+
FilterPanelCheckboxWithOverflow.deprecated = {
|
120
|
+
level: 'warn',
|
121
|
+
details: "This component is deprecated"
|
122
|
+
};
|
118
123
|
|
119
124
|
// Return a placeholder if not released and not enabled by feature flag
|
120
125
|
FilterPanelCheckboxWithOverflow = pkg.checkComponentEnabled(FilterPanelCheckboxWithOverflow, componentName);
|
@@ -21,6 +21,7 @@ var componentName = 'FilterPanelGroup';
|
|
21
21
|
|
22
22
|
/**
|
23
23
|
* A container with a label and optional count.
|
24
|
+
* @deprecated This component is deprecated
|
24
25
|
*/
|
25
26
|
var FilterPanelGroup = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
26
27
|
var children = _ref.children,
|
@@ -42,6 +43,10 @@ var FilterPanelGroup = /*#__PURE__*/React__default.forwardRef(function (_ref, re
|
|
42
43
|
className: "".concat(blockClass, "__content")
|
43
44
|
}, children));
|
44
45
|
});
|
46
|
+
FilterPanelGroup.deprecated = {
|
47
|
+
level: 'warn',
|
48
|
+
details: "This component is deprecated"
|
49
|
+
};
|
45
50
|
|
46
51
|
// Return a placeholder if not released and not enabled by feature flag
|
47
52
|
FilterPanelGroup = pkg.checkComponentEnabled(FilterPanelGroup, componentName);
|
@@ -24,6 +24,7 @@ var defaults = {
|
|
24
24
|
|
25
25
|
/**
|
26
26
|
* An input field and container to show search results.
|
27
|
+
* @deprecated This component is deprecated
|
27
28
|
*/
|
28
29
|
var FilterPanelSearch = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
29
30
|
var children = _ref.children,
|
@@ -67,7 +68,10 @@ var FilterPanelSearch = /*#__PURE__*/React__default.forwardRef(function (_ref, r
|
|
67
68
|
className: "".concat(blockClass, "__results")
|
68
69
|
}, children));
|
69
70
|
});
|
70
|
-
|
71
|
+
FilterPanelSearch.deprecated = {
|
72
|
+
level: 'warn',
|
73
|
+
details: "This component is deprecated"
|
74
|
+
};
|
71
75
|
// Return a placeholder if not released and not enabled by feature flag
|
72
76
|
FilterPanelSearch = pkg.checkComponentEnabled(FilterPanelSearch, componentName);
|
73
77
|
FilterPanelSearch.displayName = componentName;
|
package/es/components/Nav/Nav.js
CHANGED
@@ -17,6 +17,10 @@ import { pkg } from '../../settings.js';
|
|
17
17
|
var _excluded = ["activeHref", "className", "children", "heading", "label"];
|
18
18
|
var componentName = 'Nav';
|
19
19
|
var blockClass = "".concat(pkg.prefix, "--nav");
|
20
|
+
|
21
|
+
/**
|
22
|
+
* @deprecated This component is deprecated
|
23
|
+
*/
|
20
24
|
var Nav = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
21
25
|
var activeHref = _ref.activeHref,
|
22
26
|
className = _ref.className,
|
@@ -121,6 +125,10 @@ var Nav = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
121
125
|
return (child === null || child === void 0 || (_child$type = child.type) === null || _child$type === void 0 ? void 0 : _child$type.displayName) === NavList.displayName ? buildNewListChild(child, index) : buildNewItemChild(child, index);
|
122
126
|
})));
|
123
127
|
});
|
128
|
+
Nav.deprecated = {
|
129
|
+
level: 'warn',
|
130
|
+
details: "This component is deprecated"
|
131
|
+
};
|
124
132
|
Nav.propTypes = {
|
125
133
|
/**
|
126
134
|
* Hypertext reference for active page.
|
@@ -27,6 +27,7 @@ var defaults = {
|
|
27
27
|
|
28
28
|
/**
|
29
29
|
* A list of icon/description pairs used to show multiple states of progress.
|
30
|
+
* @deprecated This component is deprecated
|
30
31
|
*/
|
31
32
|
var StatusIndicator = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
32
33
|
var children = _ref.children,
|
@@ -57,6 +58,10 @@ var StatusIndicator = /*#__PURE__*/React__default.forwardRef(function (_ref, ref
|
|
57
58
|
}
|
58
59
|
}, retryLabel));
|
59
60
|
});
|
61
|
+
StatusIndicator.deprecated = {
|
62
|
+
level: 'warn',
|
63
|
+
details: "This component is deprecated"
|
64
|
+
};
|
60
65
|
|
61
66
|
// Return a placeholder if not released and not enabled by feature flag
|
62
67
|
StatusIndicator = pkg.checkComponentEnabled(StatusIndicator, componentName);
|
@@ -26,6 +26,7 @@ var defaults = {
|
|
26
26
|
|
27
27
|
/**
|
28
28
|
* An icon/description pair that describes one step of the `StatusIndicator`.
|
29
|
+
* @deprecated This component is deprecated
|
29
30
|
*/
|
30
31
|
var StatusIndicatorStep = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
31
32
|
var className = _ref.className,
|
@@ -54,6 +55,10 @@ var StatusIndicatorStep = /*#__PURE__*/React__default.forwardRef(function (_ref,
|
|
54
55
|
className: "".concat(blockClass, "__error-message")
|
55
56
|
}, errorMessage));
|
56
57
|
});
|
58
|
+
StatusIndicatorStep.deprecated = {
|
59
|
+
level: 'warn',
|
60
|
+
details: "This component is deprecated"
|
61
|
+
};
|
57
62
|
|
58
63
|
// Return a placeholder if not released and not enabled by feature flag
|
59
64
|
StatusIndicatorStep = pkg.checkComponentEnabled(StatusIndicatorStep, componentName);
|
@@ -18,7 +18,7 @@ import { Button, usePrefix, unstable_FeatureFlags, ComposedModal, ModalHeader, L
|
|
18
18
|
import { ActionSet } from '../ActionSet/ActionSet.js';
|
19
19
|
import { Wrap } from '../../global/js/utils/Wrap.js';
|
20
20
|
import { usePortalTarget } from '../../global/js/hooks/usePortalTarget.js';
|
21
|
-
import { useFocus,
|
21
|
+
import { useFocus, claimFocus } from '../../global/js/hooks/useFocus.js';
|
22
22
|
import { usePreviousValue } from '../../global/js/hooks/usePreviousValue.js';
|
23
23
|
|
24
24
|
var _excluded = ["actions", "aiLabel", "ariaLabel", "children", "className", "closeIconDescription", "description", "hasCloseIcon", "headerActions", "influencer", "influencerPosition", "influencerWidth", "label", "navigation", "onClose", "open", "portalTarget", "selectorPrimaryFocus", "selectorsFloatingMenus", "size", "slug", "title", "verticalPosition", "launcherButtonRef"];
|
@@ -146,33 +146,12 @@ var TearsheetShell = /*#__PURE__*/React__default.forwardRef(function (_ref, ref)
|
|
146
146
|
|
147
147
|
// Callback to give the tearsheet the opportunity to claim focus
|
148
148
|
handleStackChange.claimFocus = function () {
|
149
|
-
|
150
|
-
var _window;
|
151
|
-
var specifiedEl = getSpecificElement(modalRef === null || modalRef === void 0 ? void 0 : modalRef.current, selectorPrimaryFocus);
|
152
|
-
if (specifiedEl && ((_window = window) === null || _window === void 0 || (_window = _window.getComputedStyle(specifiedEl)) === null || _window === void 0 ? void 0 : _window.display) !== 'none') {
|
153
|
-
return specifiedEl.focus();
|
154
|
-
}
|
155
|
-
}
|
156
|
-
setTimeout(function () {
|
157
|
-
return firstElement === null || firstElement === void 0 ? void 0 : firstElement.focus();
|
158
|
-
}, 0);
|
149
|
+
claimFocus(firstElement, modalRef, selectorPrimaryFocus);
|
159
150
|
};
|
160
151
|
useEffect(function () {
|
161
152
|
if (open) {
|
162
153
|
// Focusing the first element or selectorPrimaryFocus element
|
163
|
-
|
164
|
-
var _window2;
|
165
|
-
var specifiedEl = getSpecificElement(modalRef === null || modalRef === void 0 ? void 0 : modalRef.current, selectorPrimaryFocus);
|
166
|
-
if (specifiedEl && ((_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.getComputedStyle(specifiedEl)) === null || _window2 === void 0 ? void 0 : _window2.display) !== 'none') {
|
167
|
-
setTimeout(function () {
|
168
|
-
return specifiedEl.focus();
|
169
|
-
}, 0);
|
170
|
-
return;
|
171
|
-
}
|
172
|
-
}
|
173
|
-
setTimeout(function () {
|
174
|
-
return firstElement === null || firstElement === void 0 ? void 0 : firstElement.focus();
|
175
|
-
}, 0);
|
154
|
+
claimFocus(firstElement, modalRef, selectorPrimaryFocus);
|
176
155
|
}
|
177
156
|
}, [firstElement, modalRef, open, selectorPrimaryFocus]);
|
178
157
|
useEffect(function () {
|
@@ -104,4 +104,24 @@ var useFocus = function useFocus(modalRef, selectorPrimaryFocus) {
|
|
104
104
|
};
|
105
105
|
};
|
106
106
|
|
107
|
-
|
107
|
+
/**
|
108
|
+
*
|
109
|
+
* @param {*} firstElement
|
110
|
+
* @param {*} modalRef
|
111
|
+
* @param {string | undefined} selectorPrimaryFocus
|
112
|
+
*/
|
113
|
+
var claimFocus = function claimFocus(firstElement, modalRef) {
|
114
|
+
var selectorPrimaryFocus = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
|
115
|
+
if (selectorPrimaryFocus && getSpecificElement(modalRef === null || modalRef === void 0 ? void 0 : modalRef.current, selectorPrimaryFocus)) {
|
116
|
+
var _window2;
|
117
|
+
var specifiedEl = getSpecificElement(modalRef === null || modalRef === void 0 ? void 0 : modalRef.current, selectorPrimaryFocus);
|
118
|
+
if (specifiedEl && ((_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.getComputedStyle(specifiedEl)) === null || _window2 === void 0 ? void 0 : _window2.display) !== 'none') {
|
119
|
+
return specifiedEl.focus();
|
120
|
+
}
|
121
|
+
}
|
122
|
+
setTimeout(function () {
|
123
|
+
return firstElement === null || firstElement === void 0 ? void 0 : firstElement.focus();
|
124
|
+
}, 0);
|
125
|
+
};
|
126
|
+
|
127
|
+
export { claimFocus, getSpecificElement, useFocus };
|
@@ -29,6 +29,5 @@ var usePrefersReducedMotion = function usePrefersReducedMotion() {
|
|
29
29
|
}, []);
|
30
30
|
return prefersReducedMotion;
|
31
31
|
};
|
32
|
-
var usePrefersReducedMotion$1 = usePrefersReducedMotion;
|
33
32
|
|
34
|
-
export { usePrefersReducedMotion
|
33
|
+
export { usePrefersReducedMotion as default };
|
package/es/index.js
CHANGED
@@ -103,12 +103,12 @@ export { SearchBar } from './components/SearchBar/SearchBar.js';
|
|
103
103
|
export { TagOverflow } from './components/TagOverflow/TagOverflow.js';
|
104
104
|
export { GetStartedCard } from './components/GetStartedCard/GetStartedCard.js';
|
105
105
|
export { FeatureFlags as unstable_FeatureFlags, useFeatureFlag as unstable_useFeatureFlag, useFeatureFlags as unstable_useFeatureFlags } from './components/FeatureFlags/index.js';
|
106
|
+
export { default as useFilterContext } from './components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js';
|
106
107
|
export { usePrefix } from './global/js/hooks/usePrefix.js';
|
107
108
|
export { ActionBar } from './components/ActionBar/ActionBar.js';
|
108
109
|
export { HTTPError403 } from './components/HTTPErrors/HTTPError403/HTTPError403.js';
|
109
110
|
export { HTTPError404 } from './components/HTTPErrors/HTTPError404/HTTPError404.js';
|
110
111
|
export { HTTPErrorOther } from './components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js';
|
111
|
-
export { default as useFilterContext } from './components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js';
|
112
112
|
export { EditTearsheet } from './components/EditTearsheet/EditTearsheet.js';
|
113
113
|
export { EditTearsheetForm } from './components/EditTearsheet/EditTearsheetForm.js';
|
114
114
|
export { CoachmarkStack } from './components/CoachmarkStack/CoachmarkStack.js';
|
@@ -506,7 +506,7 @@ function _nonIterableRest() {
|
|
506
506
|
function _createForOfIteratorHelper(o, allowArrayLike) {
|
507
507
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
508
508
|
if (!it) {
|
509
|
-
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike
|
509
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike) {
|
510
510
|
if (it) o = it;
|
511
511
|
var i = 0;
|
512
512
|
var F = function () {};
|
@@ -20,9 +20,10 @@ var devtools = require('../../global/js/utils/devtools.js');
|
|
20
20
|
var propsHelper = require('../../global/js/utils/props-helper.js');
|
21
21
|
var uuidv4 = require('../../global/js/utils/uuidv4.js');
|
22
22
|
var useFocus = require('../../global/js/hooks/useFocus.js');
|
23
|
+
var usePreviousValue = require('../../global/js/hooks/usePreviousValue.js');
|
23
24
|
|
24
25
|
var _ErrorFilled, _InformationFilled;
|
25
|
-
var _excluded = ["apiKey", "apiKeyLabel", "apiKeyName", "body", "className", "closeButtonText", "copyButtonText", "copyErrorText", "copyIconDescription", "customSteps", "downloadBodyText", "downloadFileName", "downloadFileType", "downloadLinkText", "downloadLinkLabel", "editButtonText", "editSuccess", "editSuccessTitle", "editing", "error", "errorText", "generateButtonText", "generateSuccessBody", "generateSuccessTitle", "generateTitle", "hasAPIKeyVisibilityToggle", "hasDownloadLink", "hideAPIKeyLabel", "loading", "loadingText", "modalLabel", "nameHelperText", "nameLabel", "namePlaceholder", "nameRequired", "nextStepButtonText", "onClose", "onCopy", "onRequestEdit", "onRequestGenerate", "open", "portalTarget", "previousStepButtonText", "selectorPrimaryFocus", "showAPIKeyLabel"];
|
26
|
+
var _excluded = ["apiKey", "apiKeyLabel", "apiKeyName", "body", "className", "closeButtonText", "copyButtonText", "copyErrorText", "copyIconDescription", "customSteps", "downloadBodyText", "downloadFileName", "downloadFileType", "downloadLinkText", "downloadLinkLabel", "editButtonText", "editSuccess", "editSuccessTitle", "editing", "error", "errorText", "generateButtonText", "generateSuccessBody", "generateSuccessTitle", "generateTitle", "hasAPIKeyVisibilityToggle", "hasDownloadLink", "hideAPIKeyLabel", "launcherButtonRef", "loading", "loadingText", "modalLabel", "nameHelperText", "nameLabel", "namePlaceholder", "nameRequired", "nextStepButtonText", "onClose", "onCopy", "onRequestEdit", "onRequestGenerate", "open", "portalTarget", "previousStepButtonText", "selectorPrimaryFocus", "showAPIKeyLabel"];
|
26
27
|
var componentName = 'APIKeyModal';
|
27
28
|
|
28
29
|
// Default values for props
|
@@ -63,6 +64,7 @@ exports.APIKeyModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
63
64
|
hasAPIKeyVisibilityToggle = _ref.hasAPIKeyVisibilityToggle,
|
64
65
|
hasDownloadLink = _ref.hasDownloadLink,
|
65
66
|
hideAPIKeyLabel = _ref.hideAPIKeyLabel,
|
67
|
+
launcherButtonRef = _ref.launcherButtonRef,
|
66
68
|
loading = _ref.loading,
|
67
69
|
loadingText = _ref.loadingText,
|
68
70
|
modalLabel = _ref.modalLabel,
|
@@ -120,6 +122,7 @@ exports.APIKeyModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
120
122
|
var _useFocus = useFocus.useFocus(modalRef, selectorPrimaryFocus),
|
121
123
|
firstElement = _useFocus.firstElement,
|
122
124
|
keyDownListener = _useFocus.keyDownListener;
|
125
|
+
var prevOpen = usePreviousValue.usePreviousValue(open);
|
123
126
|
React.useEffect(function () {
|
124
127
|
if (copyRef.current && open && apiKeyLoaded) {
|
125
128
|
copyRef.current.focus();
|
@@ -128,21 +131,16 @@ exports.APIKeyModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
128
131
|
React.useEffect(function () {
|
129
132
|
if (open) {
|
130
133
|
// Focusing the first element or selectorPrimaryFocus element
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
return specifiedEl.focus();
|
137
|
-
}, 0);
|
138
|
-
return;
|
139
|
-
}
|
140
|
-
}
|
134
|
+
useFocus.claimFocus(firstElement, modalRef, selectorPrimaryFocus);
|
135
|
+
}
|
136
|
+
}, [firstElement, modalRef, open, selectorPrimaryFocus]);
|
137
|
+
React.useEffect(function () {
|
138
|
+
if (prevOpen && !open && launcherButtonRef) {
|
141
139
|
setTimeout(function () {
|
142
|
-
|
140
|
+
launcherButtonRef.current.focus();
|
143
141
|
}, 0);
|
144
142
|
}
|
145
|
-
}, [
|
143
|
+
}, [launcherButtonRef, open, prevOpen]);
|
146
144
|
var isPrimaryButtonDisabled = function isPrimaryButtonDisabled() {
|
147
145
|
if (loading) {
|
148
146
|
return true;
|
@@ -488,6 +486,11 @@ exports.APIKeyModal.propTypes = {
|
|
488
486
|
* label text that's displayed when hovering over visibility toggler to hide key
|
489
487
|
*/
|
490
488
|
hideAPIKeyLabel: index.default.string,
|
489
|
+
/**
|
490
|
+
* Provide a ref to return focus to once the tearsheet is closed.
|
491
|
+
*/
|
492
|
+
/**@ts-ignore */
|
493
|
+
launcherButtonRef: index.default.any,
|
491
494
|
/**
|
492
495
|
* designates if the modal is in a loading state via a request or some other in progress operation
|
493
496
|
*/
|
@@ -4,7 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
-
import { ReactNode } from 'react';
|
7
|
+
import { ReactNode, RefObject } from 'react';
|
8
8
|
interface APIKeyModalCommonProps {
|
9
9
|
/**
|
10
10
|
* the api key that's displayed to the user when a request to create is fulfilled.
|
@@ -92,6 +92,10 @@ interface APIKeyModalCommonProps {
|
|
92
92
|
* label text that's displayed when hovering over visibility toggler to hide key
|
93
93
|
*/
|
94
94
|
hideAPIKeyLabel?: string;
|
95
|
+
/**
|
96
|
+
* Provide a ref to return focus to once the tearsheet is closed.
|
97
|
+
*/
|
98
|
+
launcherButtonRef?: RefObject<any>;
|
95
99
|
/**
|
96
100
|
* designates if the modal is in a loading state via a request or some other in progress operation
|
97
101
|
*/
|
@@ -64,12 +64,9 @@ exports.AboutModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
64
64
|
}, [bodyRef]);
|
65
65
|
React.useEffect(function () {
|
66
66
|
if (open) {
|
67
|
-
|
68
|
-
return firstElement === null || firstElement === void 0 ? void 0 : firstElement.focus();
|
69
|
-
}, 0);
|
67
|
+
useFocus.claimFocus(firstElement, modalRef);
|
70
68
|
}
|
71
|
-
|
72
|
-
}, [open]);
|
69
|
+
}, [firstElement, modalRef, open]);
|
73
70
|
return renderPortalUse( /*#__PURE__*/React.createElement(react.unstable_FeatureFlags, {
|
74
71
|
enableExperimentalFocusWrapWithoutSentinels: true
|
75
72
|
}, /*#__PURE__*/React.createElement(react.ComposedModal, _rollupPluginBabelHelpers.extends({}, rest, {
|
@@ -63,12 +63,20 @@ exports.BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
|
|
63
63
|
// eslint-disable-next-line react/prop-types
|
64
64
|
var BreadcrumbOverflowMenu = function BreadcrumbOverflowMenu(_ref2) {
|
65
65
|
var overflowItems = _ref2.overflowItems;
|
66
|
+
var handleClick = function handleClick(evt, item) {
|
67
|
+
var _item$props, _item$props2, _item$props2$onClick;
|
68
|
+
if (item !== null && item !== void 0 && (_item$props = item.props) !== null && _item$props !== void 0 && _item$props.href) {
|
69
|
+
window.location.href = item.props.href;
|
70
|
+
}
|
71
|
+
item === null || item === void 0 || (_item$props2 = item.props) === null || _item$props2 === void 0 || (_item$props2$onClick = _item$props2.onClick) === null || _item$props2$onClick === void 0 || _item$props2$onClick.call(_item$props2, evt);
|
72
|
+
};
|
66
73
|
return /*#__PURE__*/React.createElement(react.BreadcrumbItem, {
|
67
74
|
key: "breadcrumb-overflow-".concat(internalId.current)
|
75
|
+
}, /*#__PURE__*/React.createElement(react.unstable_FeatureFlags, {
|
76
|
+
enableV12Overflowmenu: true
|
68
77
|
}, /*#__PURE__*/React.createElement(react.OverflowMenu, {
|
69
|
-
align: overflowTooltipAlign,
|
70
78
|
"aria-label": overflowAriaLabel,
|
71
|
-
|
79
|
+
label: overflowAriaLabel // also needs setting to avoid a11y "Accessible name does not match or contain the visible label text"
|
72
80
|
,
|
73
81
|
renderIcon: function renderIcon(props) {
|
74
82
|
return /*#__PURE__*/React.createElement(icons.OverflowMenuHorizontal, _rollupPluginBabelHelpers.extends({
|
@@ -76,17 +84,18 @@ exports.BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
|
|
76
84
|
}, props));
|
77
85
|
},
|
78
86
|
className: "".concat(blockClass, "__overflow-menu"),
|
79
|
-
|
87
|
+
tooltipAlignment: overflowTooltipAlign
|
80
88
|
},
|
81
89
|
// eslint-disable-next-line react/prop-types
|
82
90
|
overflowItems.map(function (item, index) {
|
83
|
-
return /*#__PURE__*/React.createElement(react.
|
91
|
+
return /*#__PURE__*/React.createElement(react.MenuItem, {
|
84
92
|
key: "breadcrumb-overflow-menu-item-".concat(internalId.current, "-").concat(index),
|
85
|
-
|
86
|
-
|
87
|
-
|
93
|
+
onClick: function onClick(evt) {
|
94
|
+
return handleClick(evt, item);
|
95
|
+
},
|
96
|
+
label: item.props.children
|
88
97
|
});
|
89
|
-
})));
|
98
|
+
}))));
|
90
99
|
};
|
91
100
|
|
92
101
|
// create hidden sizing items
|
@@ -19,7 +19,7 @@ var settings = require('../../settings.js');
|
|
19
19
|
|
20
20
|
var _Incomplete, _CheckmarkOutline;
|
21
21
|
var _excluded = ["actionIcons", "actionsPlacement", "aiLabel", "metadata", "children", "className", "clickZone", "description", "disabled", "footerActionIcon", "getStarted", "label", "media", "mediaPosition", "onClick", "onKeyDown", "onPrimaryButtonClick", "overflowActions", "overflowAriaLabel", "onSecondaryButtonClick", "pictogram", "primaryButtonDisabled", "primaryButtonHref", "primaryButtonIcon", "primaryButtonKind", "primaryButtonPlacement", "primaryButtonText", "productive", "secondaryButtonDisabled", "secondaryButtonHref", "secondaryButtonIcon", "secondaryButtonKind", "secondaryButtonPlacement", "secondaryButtonText", "slug", "status", "sequence", "title", "titleSize", "iconDescription"],
|
22
|
-
_excluded2 = ["id"],
|
22
|
+
_excluded2 = ["id", "itemText"],
|
23
23
|
_excluded3 = ["id", "icon", "onClick", "iconDescription", "href"];
|
24
24
|
var componentName = 'Card';
|
25
25
|
var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
@@ -97,23 +97,27 @@ var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
97
97
|
// actions can either be an overflow menu or series of icons
|
98
98
|
var getActions = function getActions() {
|
99
99
|
if (overflowActions.length > 0) {
|
100
|
-
var pos = actionsPlacement === 'top' ? 'bottom' : 'top';
|
100
|
+
var pos = actionsPlacement === 'top' ? 'bottom-end' : 'top-end';
|
101
101
|
var size = actionsPlacement === 'top' ? 'sm' : 'md';
|
102
102
|
return /*#__PURE__*/React.createElement(react.Layer, {
|
103
103
|
level: 2
|
104
|
+
}, /*#__PURE__*/React.createElement(react.unstable_FeatureFlags, {
|
105
|
+
enableV12Overflowmenu: true
|
104
106
|
}, /*#__PURE__*/React.createElement(react.OverflowMenu, {
|
107
|
+
autoAlign: true,
|
108
|
+
menuAlignment: pos,
|
105
109
|
size: size,
|
106
|
-
direction: pos,
|
107
|
-
flipped: true,
|
108
110
|
"aria-label": overflowAriaLabel,
|
109
|
-
|
111
|
+
label: iconDescription
|
110
112
|
}, overflowActions.map(function (_ref2) {
|
111
113
|
var id = _ref2.id,
|
114
|
+
itemText = _ref2.itemText,
|
112
115
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref2, _excluded2);
|
113
|
-
return /*#__PURE__*/React.createElement(react.
|
114
|
-
key: id
|
116
|
+
return /*#__PURE__*/React.createElement(react.MenuItem, _rollupPluginBabelHelpers.extends({
|
117
|
+
key: id,
|
118
|
+
label: itemText
|
115
119
|
}, rest));
|
116
|
-
})));
|
120
|
+
}))));
|
117
121
|
}
|
118
122
|
var icons = getIcons().map(function (_ref3) {
|
119
123
|
var id = _ref3.id,
|