@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
@@ -17,10 +17,11 @@ import { usePortalTarget } from '../../global/js/hooks/usePortalTarget.js';
|
|
17
17
|
import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
|
18
18
|
import { isRequiredIf } from '../../global/js/utils/props-helper.js';
|
19
19
|
import uuidv4 from '../../global/js/utils/uuidv4.js';
|
20
|
-
import { useFocus,
|
20
|
+
import { useFocus, claimFocus } from '../../global/js/hooks/useFocus.js';
|
21
|
+
import { usePreviousValue } from '../../global/js/hooks/usePreviousValue.js';
|
21
22
|
|
22
23
|
var _ErrorFilled, _InformationFilled;
|
23
|
-
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"];
|
24
|
+
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"];
|
24
25
|
var componentName = 'APIKeyModal';
|
25
26
|
|
26
27
|
// Default values for props
|
@@ -61,6 +62,7 @@ var APIKeyModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
61
62
|
hasAPIKeyVisibilityToggle = _ref.hasAPIKeyVisibilityToggle,
|
62
63
|
hasDownloadLink = _ref.hasDownloadLink,
|
63
64
|
hideAPIKeyLabel = _ref.hideAPIKeyLabel,
|
65
|
+
launcherButtonRef = _ref.launcherButtonRef,
|
64
66
|
loading = _ref.loading,
|
65
67
|
loadingText = _ref.loadingText,
|
66
68
|
modalLabel = _ref.modalLabel,
|
@@ -118,6 +120,7 @@ var APIKeyModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
118
120
|
var _useFocus = useFocus(modalRef, selectorPrimaryFocus),
|
119
121
|
firstElement = _useFocus.firstElement,
|
120
122
|
keyDownListener = _useFocus.keyDownListener;
|
123
|
+
var prevOpen = usePreviousValue(open);
|
121
124
|
useEffect(function () {
|
122
125
|
if (copyRef.current && open && apiKeyLoaded) {
|
123
126
|
copyRef.current.focus();
|
@@ -126,21 +129,16 @@ var APIKeyModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
126
129
|
useEffect(function () {
|
127
130
|
if (open) {
|
128
131
|
// Focusing the first element or selectorPrimaryFocus element
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
return specifiedEl.focus();
|
135
|
-
}, 0);
|
136
|
-
return;
|
137
|
-
}
|
138
|
-
}
|
132
|
+
claimFocus(firstElement, modalRef, selectorPrimaryFocus);
|
133
|
+
}
|
134
|
+
}, [firstElement, modalRef, open, selectorPrimaryFocus]);
|
135
|
+
useEffect(function () {
|
136
|
+
if (prevOpen && !open && launcherButtonRef) {
|
139
137
|
setTimeout(function () {
|
140
|
-
|
138
|
+
launcherButtonRef.current.focus();
|
141
139
|
}, 0);
|
142
140
|
}
|
143
|
-
}, [
|
141
|
+
}, [launcherButtonRef, open, prevOpen]);
|
144
142
|
var isPrimaryButtonDisabled = function isPrimaryButtonDisabled() {
|
145
143
|
if (loading) {
|
146
144
|
return true;
|
@@ -486,6 +484,11 @@ APIKeyModal.propTypes = {
|
|
486
484
|
* label text that's displayed when hovering over visibility toggler to hide key
|
487
485
|
*/
|
488
486
|
hideAPIKeyLabel: PropTypes.string,
|
487
|
+
/**
|
488
|
+
* Provide a ref to return focus to once the tearsheet is closed.
|
489
|
+
*/
|
490
|
+
/**@ts-ignore */
|
491
|
+
launcherButtonRef: PropTypes.any,
|
489
492
|
/**
|
490
493
|
* designates if the modal is in a loading state via a request or some other in progress operation
|
491
494
|
*/
|
@@ -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
|
*/
|
@@ -11,7 +11,7 @@ import React__default, { useRef, useEffect } from 'react';
|
|
11
11
|
import PropTypes from '../../_virtual/index.js';
|
12
12
|
import cx from 'classnames';
|
13
13
|
import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
|
14
|
-
import { useFocus } from '../../global/js/hooks/useFocus.js';
|
14
|
+
import { useFocus, claimFocus } from '../../global/js/hooks/useFocus.js';
|
15
15
|
import { pkg } from '../../settings.js';
|
16
16
|
import { usePortalTarget } from '../../global/js/hooks/usePortalTarget.js';
|
17
17
|
import uuidv4 from '../../global/js/utils/uuidv4.js';
|
@@ -62,12 +62,9 @@ var AboutModal = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
62
62
|
}, [bodyRef]);
|
63
63
|
useEffect(function () {
|
64
64
|
if (open) {
|
65
|
-
|
66
|
-
return firstElement === null || firstElement === void 0 ? void 0 : firstElement.focus();
|
67
|
-
}, 0);
|
65
|
+
claimFocus(firstElement, modalRef);
|
68
66
|
}
|
69
|
-
|
70
|
-
}, [open]);
|
67
|
+
}, [firstElement, modalRef, open]);
|
71
68
|
return renderPortalUse( /*#__PURE__*/React__default.createElement(unstable_FeatureFlags, {
|
72
69
|
enableExperimentalFocusWrapWithoutSentinels: true
|
73
70
|
}, /*#__PURE__*/React__default.createElement(ComposedModal, _extends({}, rest, {
|
@@ -10,7 +10,7 @@ import React__default, { useState, useRef, useEffect } from 'react';
|
|
10
10
|
import PropTypes from '../../_virtual/index.js';
|
11
11
|
import cx from 'classnames';
|
12
12
|
import { useResizeObserver } from '../../global/js/hooks/useResizeObserver.js';
|
13
|
-
import { usePrefix, Breadcrumb, BreadcrumbItem, OverflowMenu, Link, Tooltip,
|
13
|
+
import { usePrefix, Breadcrumb, BreadcrumbItem, OverflowMenu, Link, Tooltip, unstable_FeatureFlags, MenuItem } from '@carbon/react';
|
14
14
|
import { pkg } from '../../settings.js';
|
15
15
|
import { OverflowMenuHorizontal, ArrowLeft } from '@carbon/react/icons';
|
16
16
|
import uuidv4 from '../../global/js/utils/uuidv4.js';
|
@@ -61,12 +61,20 @@ var BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
|
|
61
61
|
// eslint-disable-next-line react/prop-types
|
62
62
|
var BreadcrumbOverflowMenu = function BreadcrumbOverflowMenu(_ref2) {
|
63
63
|
var overflowItems = _ref2.overflowItems;
|
64
|
+
var handleClick = function handleClick(evt, item) {
|
65
|
+
var _item$props, _item$props2, _item$props2$onClick;
|
66
|
+
if (item !== null && item !== void 0 && (_item$props = item.props) !== null && _item$props !== void 0 && _item$props.href) {
|
67
|
+
window.location.href = item.props.href;
|
68
|
+
}
|
69
|
+
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);
|
70
|
+
};
|
64
71
|
return /*#__PURE__*/React__default.createElement(BreadcrumbItem, {
|
65
72
|
key: "breadcrumb-overflow-".concat(internalId.current)
|
73
|
+
}, /*#__PURE__*/React__default.createElement(unstable_FeatureFlags, {
|
74
|
+
enableV12Overflowmenu: true
|
66
75
|
}, /*#__PURE__*/React__default.createElement(OverflowMenu, {
|
67
|
-
align: overflowTooltipAlign,
|
68
76
|
"aria-label": overflowAriaLabel,
|
69
|
-
|
77
|
+
label: overflowAriaLabel // also needs setting to avoid a11y "Accessible name does not match or contain the visible label text"
|
70
78
|
,
|
71
79
|
renderIcon: function renderIcon(props) {
|
72
80
|
return /*#__PURE__*/React__default.createElement(OverflowMenuHorizontal, _extends({
|
@@ -74,17 +82,18 @@ var BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
|
|
74
82
|
}, props));
|
75
83
|
},
|
76
84
|
className: "".concat(blockClass, "__overflow-menu"),
|
77
|
-
|
85
|
+
tooltipAlignment: overflowTooltipAlign
|
78
86
|
},
|
79
87
|
// eslint-disable-next-line react/prop-types
|
80
88
|
overflowItems.map(function (item, index) {
|
81
|
-
return /*#__PURE__*/React__default.createElement(
|
89
|
+
return /*#__PURE__*/React__default.createElement(MenuItem, {
|
82
90
|
key: "breadcrumb-overflow-menu-item-".concat(internalId.current, "-").concat(index),
|
83
|
-
|
84
|
-
|
85
|
-
|
91
|
+
onClick: function onClick(evt) {
|
92
|
+
return handleClick(evt, item);
|
93
|
+
},
|
94
|
+
label: item.props.children
|
86
95
|
});
|
87
|
-
})));
|
96
|
+
}))));
|
88
97
|
};
|
89
98
|
|
90
99
|
// create hidden sizing items
|
@@ -8,7 +8,7 @@
|
|
8
8
|
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends, objectSpread2 as _objectSpread2, defineProperty as _defineProperty } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
9
9
|
import React__default, { forwardRef } from 'react';
|
10
10
|
import cx from 'classnames';
|
11
|
-
import { Layer, OverflowMenu,
|
11
|
+
import { Layer, unstable_FeatureFlags, OverflowMenu, MenuItem, Button, IconButton } from '@carbon/react';
|
12
12
|
import { Incomplete, CheckmarkOutline } from '@carbon/react/icons';
|
13
13
|
import PropTypes from '../../_virtual/index.js';
|
14
14
|
import { CardHeader } from './CardHeader.js';
|
@@ -17,7 +17,7 @@ import { pkg } from '../../settings.js';
|
|
17
17
|
|
18
18
|
var _Incomplete, _CheckmarkOutline;
|
19
19
|
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"],
|
20
|
-
_excluded2 = ["id"],
|
20
|
+
_excluded2 = ["id", "itemText"],
|
21
21
|
_excluded3 = ["id", "icon", "onClick", "iconDescription", "href"];
|
22
22
|
var componentName = 'Card';
|
23
23
|
var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
@@ -95,23 +95,27 @@ var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
95
95
|
// actions can either be an overflow menu or series of icons
|
96
96
|
var getActions = function getActions() {
|
97
97
|
if (overflowActions.length > 0) {
|
98
|
-
var pos = actionsPlacement === 'top' ? 'bottom' : 'top';
|
98
|
+
var pos = actionsPlacement === 'top' ? 'bottom-end' : 'top-end';
|
99
99
|
var size = actionsPlacement === 'top' ? 'sm' : 'md';
|
100
100
|
return /*#__PURE__*/React__default.createElement(Layer, {
|
101
101
|
level: 2
|
102
|
+
}, /*#__PURE__*/React__default.createElement(unstable_FeatureFlags, {
|
103
|
+
enableV12Overflowmenu: true
|
102
104
|
}, /*#__PURE__*/React__default.createElement(OverflowMenu, {
|
105
|
+
autoAlign: true,
|
106
|
+
menuAlignment: pos,
|
103
107
|
size: size,
|
104
|
-
direction: pos,
|
105
|
-
flipped: true,
|
106
108
|
"aria-label": overflowAriaLabel,
|
107
|
-
|
109
|
+
label: iconDescription
|
108
110
|
}, overflowActions.map(function (_ref2) {
|
109
111
|
var id = _ref2.id,
|
112
|
+
itemText = _ref2.itemText,
|
110
113
|
rest = _objectWithoutProperties(_ref2, _excluded2);
|
111
|
-
return /*#__PURE__*/React__default.createElement(
|
112
|
-
key: id
|
114
|
+
return /*#__PURE__*/React__default.createElement(MenuItem, _extends({
|
115
|
+
key: id,
|
116
|
+
label: itemText
|
113
117
|
}, rest));
|
114
|
-
})));
|
118
|
+
}))));
|
115
119
|
}
|
116
120
|
var icons = getIcons().map(function (_ref3) {
|
117
121
|
var id = _ref3.id,
|
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends, defineProperty as _defineProperty } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
9
9
|
import { IconButton, Button } from '@carbon/react';
|
10
|
-
import {
|
10
|
+
import { Kinds, Themes } from './Checklist.types.js';
|
11
11
|
import React__default, { useState, useRef, useEffect } from 'react';
|
12
12
|
import { ChecklistChart } from './ChecklistChart.js';
|
13
13
|
import { ChecklistIcon } from './ChecklistIcon.js';
|
@@ -12,7 +12,7 @@ import cx from 'classnames';
|
|
12
12
|
import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
|
13
13
|
import { pkg } from '../../settings.js';
|
14
14
|
import { CircleDash, CheckmarkOutline, Incomplete, Warning } from '@carbon/react/icons';
|
15
|
-
import {
|
15
|
+
import { Kinds, Themes } from './Checklist.types.js';
|
16
16
|
|
17
17
|
var _excluded = ["className", "kind", "theme"];
|
18
18
|
|
package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js
CHANGED
@@ -63,9 +63,6 @@ var ItemOption = function ItemOption(_ref) {
|
|
63
63
|
className: "".concat(blockClass, "__statement_wrapper")
|
64
64
|
}, /*#__PURE__*/React__default.createElement("div", null, option.text1, " (", option.connector, ")"), /*#__PURE__*/React__default.createElement("div", null, option.text2));
|
65
65
|
};
|
66
|
-
var preventDefault = function preventDefault(evt) {
|
67
|
-
return evt.preventDefault();
|
68
|
-
};
|
69
66
|
if (!allOptions) {
|
70
67
|
return;
|
71
68
|
}
|
@@ -78,8 +75,7 @@ var ItemOption = function ItemOption(_ref) {
|
|
78
75
|
size: "sm",
|
79
76
|
labelText: clearSearchText,
|
80
77
|
closeButtonLabelText: clearSearchText,
|
81
|
-
onChange: onSearchChangeHandler
|
82
|
-
onKeyDown: preventDefault
|
78
|
+
onChange: onSearchChangeHandler
|
83
79
|
})), /*#__PURE__*/React__default.createElement("ul", {
|
84
80
|
"aria-label": getAriaLabel(),
|
85
81
|
role: "listbox"
|
@@ -129,13 +129,14 @@ var ItemOptionForValueField = function ItemOptionForValueField(_ref) {
|
|
129
129
|
} else {
|
130
130
|
onChange(option, evt);
|
131
131
|
}
|
132
|
+
if (evt.target instanceof SVGElement) {
|
133
|
+
evt.stopPropagation();
|
134
|
+
//stop propagate event , since this closes the popover when clicked on checkboxes which are SVGs.
|
135
|
+
}
|
132
136
|
};
|
133
137
|
var getAriaLabel = function getAriaLabel() {
|
134
138
|
return conditionState.label ? conditionState.label : conditionState.property ? conditionState.property : propertyText;
|
135
139
|
};
|
136
|
-
var preventDefault = function preventDefault(evt) {
|
137
|
-
return evt.preventDefault();
|
138
|
-
};
|
139
140
|
if (!allOptions) {
|
140
141
|
return _SelectSkeleton || (_SelectSkeleton = /*#__PURE__*/React__default.createElement(SelectSkeleton, null));
|
141
142
|
}
|
@@ -148,8 +149,7 @@ var ItemOptionForValueField = function ItemOptionForValueField(_ref) {
|
|
148
149
|
size: "sm",
|
149
150
|
labelText: clearSearchText,
|
150
151
|
closeButtonLabelText: clearSearchText,
|
151
|
-
onChange: onSearchChangeHandler
|
152
|
-
onKeyDown: preventDefault
|
152
|
+
onChange: onSearchChangeHandler
|
153
153
|
})), multiSelectable && /*#__PURE__*/React__default.createElement("div", {
|
154
154
|
className: "".concat(blockClass, "__multiselectSelectionStatusContainer")
|
155
155
|
}, /*#__PURE__*/React__default.createElement("h4", null, /*#__PURE__*/React__default.createElement("label", null, selection.length, "/", allOptions.length, " Selected")), /*#__PURE__*/React__default.createElement(Button, {
|
@@ -48,10 +48,6 @@ var traverseReverse = function traverseReverse(eachElem, index, allElements, rot
|
|
48
48
|
}
|
49
49
|
};
|
50
50
|
var checkForHoldingKey = function checkForHoldingKey(evt, key) {
|
51
|
-
// possible key inputs: altKey,ctrlKey,metaKey,shiftKey
|
52
|
-
if (key === 'cmd') {
|
53
|
-
return evt.metaKey || evt.ctrlKey;
|
54
|
-
}
|
55
51
|
return evt[key];
|
56
52
|
};
|
57
53
|
var checkIsValid = function checkIsValid(item) {
|
@@ -8,7 +8,7 @@ import React, { Dispatch, PropsWithChildren, ReactNode, SetStateAction } from 'r
|
|
8
8
|
import { ExperimentalSecondarySubmit } from './CreateTearsheetStep';
|
9
9
|
export interface StepsContextType {
|
10
10
|
currentStep: number;
|
11
|
-
setExperimentalSecondarySubmit: Dispatch<SetStateAction<ExperimentalSecondarySubmit>>;
|
11
|
+
setExperimentalSecondarySubmit: Dispatch<SetStateAction<ExperimentalSecondarySubmit | undefined>>;
|
12
12
|
setIsDisabled: Dispatch<SetStateAction<boolean>>;
|
13
13
|
setOnPrevious: (fn: any) => void;
|
14
14
|
setOnNext: (fn: any) => void;
|
@@ -105,7 +105,7 @@ var CreateTearsheet = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
105
105
|
_useState24 = _slicedToArray(_useState23, 2),
|
106
106
|
lastIncludedStep = _useState24[0],
|
107
107
|
setLastIncludedStep = _useState24[1];
|
108
|
-
var _useState25 = useState(
|
108
|
+
var _useState25 = useState(),
|
109
109
|
_useState26 = _slicedToArray(_useState25, 2),
|
110
110
|
experimentalSecondarySubmit = _useState26[0],
|
111
111
|
setExperimentalSecondarySubmit = _useState26[1];
|
@@ -176,7 +176,7 @@ var CreateTearsheet = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
176
176
|
isSubmitting: isSubmitting,
|
177
177
|
componentBlockClass: blockClass,
|
178
178
|
experimentalSecondarySubmit: experimentalSecondarySubmit,
|
179
|
-
experimentalSecondarySubmitText: experimentalSecondarySubmit.labelText ? experimentalSecondarySubmit.labelText : experimentalSecondarySubmitText,
|
179
|
+
experimentalSecondarySubmitText: experimentalSecondarySubmit !== null && experimentalSecondarySubmit !== void 0 && experimentalSecondarySubmit.labelText ? experimentalSecondarySubmit.labelText : experimentalSecondarySubmitText,
|
180
180
|
setCreateComponentActions: setCreateTearsheetActions
|
181
181
|
});
|
182
182
|
return /*#__PURE__*/React__default.createElement(TearsheetShell, _extends({}, getDevtoolsProps(componentName), rest, {
|
@@ -5,7 +5,7 @@
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
7
|
|
8
|
-
import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray,
|
8
|
+
import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends, defineProperty as _defineProperty } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
9
9
|
import React__default, { forwardRef, useRef, useContext, useState, useEffect, isValidElement } from 'react';
|
10
10
|
import PropTypes from '../../_virtual/index.js';
|
11
11
|
import cx from 'classnames';
|
@@ -82,7 +82,7 @@ var CreateTearsheetStep = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
82
82
|
useEffect(function () {
|
83
83
|
if (stepNumber === (stepsContext === null || stepsContext === void 0 ? void 0 : stepsContext.currentStep) && (previousState === null || previousState === void 0 ? void 0 : previousState.currentStep) !== (stepsContext === null || stepsContext === void 0 ? void 0 : stepsContext.currentStep)) {
|
84
84
|
stepsContext === null || stepsContext === void 0 || stepsContext.setOnMount(onMount);
|
85
|
-
stepsContext === null || stepsContext === void 0 || stepsContext.setExperimentalSecondarySubmit(
|
85
|
+
stepsContext === null || stepsContext === void 0 || stepsContext.setExperimentalSecondarySubmit(experimentalSecondarySubmit);
|
86
86
|
}
|
87
87
|
}, [onMount, experimentalSecondarySubmit, stepsContext, stepNumber, previousState === null || previousState === void 0 ? void 0 : previousState.currentStep]);
|
88
88
|
|
@@ -118,8 +118,11 @@ var CreateTearsheetStep = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
118
118
|
stepsContext.setIsDisabled(!!disableSubmit);
|
119
119
|
stepsContext === null || stepsContext === void 0 || stepsContext.setOnNext(onNext); // needs to be updated here otherwise there could be stale state values from only initially setting onNext
|
120
120
|
stepsContext === null || stepsContext === void 0 || stepsContext.setOnPrevious(onPrevious);
|
121
|
+
|
122
|
+
//Handle props for experimentalSecondarySubmit button, depending on state change
|
123
|
+
stepsContext === null || stepsContext === void 0 || stepsContext.setExperimentalSecondarySubmit(experimentalSecondarySubmit);
|
121
124
|
}
|
122
|
-
}, [stepsContext, stepNumber, disableSubmit, onNext, onPrevious, stepRef, stepRefValue]);
|
125
|
+
}, [stepsContext, stepNumber, disableSubmit, onNext, onPrevious, stepRef, stepRefValue, experimentalSecondarySubmit]);
|
123
126
|
var renderDescription = function renderDescription() {
|
124
127
|
if (description) {
|
125
128
|
if (typeof description === 'string') {
|
@@ -19,5 +19,6 @@ export interface DatagridProps {
|
|
19
19
|
}
|
20
20
|
/**
|
21
21
|
* The `Datagrid` component is an extension of Carbon's DataTable component. At the most basic level, the `Datagrid` component takes in columns and rows and renders a data table. There is a set of data table extensions which this component provides support for, these can be found [here](https://pages.github.ibm.com/carbon/ibm-products/components/datagrid/overview/). This component is data driven and allows you to choose what pieces will be included based on the hooks/plugins that are provided.
|
22
|
+
* @deprecated
|
22
23
|
*/
|
23
24
|
export declare let Datagrid: React.ForwardRefExoticComponent<DatagridProps & React.RefAttributes<HTMLDivElement>>;
|
@@ -21,6 +21,7 @@ var blockClass = "".concat(pkg.prefix, "--datagrid");
|
|
21
21
|
var componentName = 'Datagrid';
|
22
22
|
/**
|
23
23
|
* The `Datagrid` component is an extension of Carbon's DataTable component. At the most basic level, the `Datagrid` component takes in columns and rows and renders a data table. There is a set of data table extensions which this component provides support for, these can be found [here](https://pages.github.ibm.com/carbon/ibm-products/components/datagrid/overview/). This component is data driven and allows you to choose what pieces will be included based on the hooks/plugins that are provided.
|
24
|
+
* @deprecated
|
24
25
|
*/
|
25
26
|
var Datagrid = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
26
27
|
var datagridState = _ref.datagridState,
|
@@ -55,6 +56,12 @@ var Datagrid = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
55
56
|
}, /*#__PURE__*/React__default.createElement(DatagridContent, props)) : /*#__PURE__*/React__default.createElement(DatagridContent, props))));
|
56
57
|
});
|
57
58
|
|
59
|
+
/**@ts-ignore*/
|
60
|
+
Datagrid.deprecated = {
|
61
|
+
level: 'warn',
|
62
|
+
details: "For more information, please refer to the migration docs https://github.com/carbon-design-system/tanstack-carbon"
|
63
|
+
};
|
64
|
+
|
58
65
|
// Return a placeholder if not released and not enabled by feature flag
|
59
66
|
Datagrid = pkg.checkComponentEnabled(Datagrid, componentName);
|
60
67
|
|
@@ -57,12 +57,12 @@ var ResizeHeader = function ResizeHeader(_ref) {
|
|
57
57
|
if (key === 'ArrowLeft') {
|
58
58
|
if (currentColumnWidth - incrementAmount > Math.max(Number(minWidth), 50)) {
|
59
59
|
var newWidth = currentColumnWidth - incrementAmount;
|
60
|
-
handleColumnResizingEvent(dispatch, header, newWidth
|
60
|
+
handleColumnResizingEvent(dispatch, header, newWidth);
|
61
61
|
}
|
62
62
|
}
|
63
63
|
if (key === 'ArrowRight') {
|
64
64
|
var _newWidth = currentColumnWidth + incrementAmount;
|
65
|
-
handleColumnResizingEvent(dispatch, header, _newWidth
|
65
|
+
handleColumnResizingEvent(dispatch, header, _newWidth);
|
66
66
|
}
|
67
67
|
}
|
68
68
|
};
|
package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js
CHANGED
@@ -187,6 +187,5 @@ CustomizeColumnsTearsheet.propTypes = {
|
|
187
187
|
selectAllLabel: PropTypes.string,
|
188
188
|
setIsTearsheetOpen: PropTypes.func.isRequired
|
189
189
|
};
|
190
|
-
var CustomizeColumnsTearsheet$1 = CustomizeColumnsTearsheet;
|
191
190
|
|
192
|
-
export { CustomizeColumnsTearsheet
|
191
|
+
export { CustomizeColumnsTearsheet as default };
|
@@ -61,6 +61,5 @@ var TearsheetWrapper = function TearsheetWrapper(_ref) {
|
|
61
61
|
TearsheetWrapper.propTypes = {
|
62
62
|
instance: PropTypes.object.isRequired
|
63
63
|
};
|
64
|
-
var CustomizeColumnsTearsheetWrapper = TearsheetWrapper;
|
65
64
|
|
66
|
-
export {
|
65
|
+
export { TearsheetWrapper as default };
|
@@ -6,7 +6,7 @@
|
|
6
6
|
*/
|
7
7
|
|
8
8
|
import { slicedToArray as _slicedToArray, defineProperty as _defineProperty } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
9
|
-
import { BATCH, INSTANT,
|
9
|
+
import { BATCH, INSTANT, CLEAR_FILTERS, FLYOUT, SAVED_FILTERS } from './constants.js';
|
10
10
|
import { usePrefix, IconButton } from '@carbon/react';
|
11
11
|
import React__default, { useState, useRef, useContext, useEffect } from 'react';
|
12
12
|
import { breakpoints, px } from '@carbon/layout';
|
@@ -327,6 +327,5 @@ FilterFlyout.propTypes = {
|
|
327
327
|
*/
|
328
328
|
updateMethod: PropTypes.oneOf([BATCH, INSTANT]).isRequired
|
329
329
|
};
|
330
|
-
var FilterFlyout$1 = FilterFlyout;
|
331
330
|
|
332
|
-
export { FilterFlyout
|
331
|
+
export { FilterFlyout as default };
|
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
import { slicedToArray as _slicedToArray, defineProperty as _defineProperty, extends as _extends } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
9
9
|
import { Button, Layer, Search, Accordion, AccordionItem } from '@carbon/react';
|
10
|
-
import {
|
10
|
+
import { BATCH, CLEAR_FILTERS, INSTANT, PANEL, SAVED_FILTERS } from './constants.js';
|
11
11
|
import React__default, { useState, useContext, useRef, useMemo, useEffect, useCallback } from 'react';
|
12
12
|
import { panelVariants, innerContainerVariants, actionSetVariants } from './motion/variants.js';
|
13
13
|
import { motion, useReducedMotion } from 'framer-motion';
|
@@ -312,6 +312,5 @@ FilterPanel.propTypes = {
|
|
312
312
|
title: PropTypes.string,
|
313
313
|
updateMethod: PropTypes.oneOf([BATCH, INSTANT])
|
314
314
|
};
|
315
|
-
var FilterPanel$1 = FilterPanel;
|
316
315
|
|
317
|
-
export { componentClass, FilterPanel
|
316
|
+
export { componentClass, FilterPanel as default };
|
@@ -29,6 +29,5 @@ var useShouldDisableButtons = function useShouldDisableButtons(_ref) {
|
|
29
29
|
}, [filtersState, prevFiltersRef]);
|
30
30
|
return [shouldDisableButtons, setShouldDisableButtons];
|
31
31
|
};
|
32
|
-
var useShouldDisableButtons$1 = useShouldDisableButtons;
|
33
32
|
|
34
|
-
export { useShouldDisableButtons
|
33
|
+
export { useShouldDisableButtons as default };
|
package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useSubscribeToEventEmitter.js
CHANGED
@@ -21,6 +21,5 @@ var useSubscribeToEventEmitter = function useSubscribeToEventEmitter(type, callb
|
|
21
21
|
EventEmitter.subscribe(type, callback);
|
22
22
|
});
|
23
23
|
};
|
24
|
-
var useSubscribeToEventEmitter$1 = useSubscribeToEventEmitter;
|
25
24
|
|
26
|
-
export { useSubscribeToEventEmitter
|
25
|
+
export { useSubscribeToEventEmitter as default };
|
@@ -85,6 +85,5 @@ RowSizeRadioGroup.propTypes = {
|
|
85
85
|
selectedOption: PropTypes.string.isRequired,
|
86
86
|
tableId: PropTypes.string.isRequired
|
87
87
|
};
|
88
|
-
var RowSizeRadioGroup$1 = RowSizeRadioGroup;
|
89
88
|
|
90
|
-
export { RowSizeRadioGroup
|
89
|
+
export { RowSizeRadioGroup as default };
|
@@ -28,7 +28,7 @@ var handleColumnResizeEndEvent = function handleColumnResizeEndEvent(dispatch, o
|
|
28
28
|
});
|
29
29
|
};
|
30
30
|
var handleColumnResizingEvent = function handleColumnResizingEvent(dispatch, header, newWidth, isKeyEvent) {
|
31
|
-
|
31
|
+
{
|
32
32
|
dispatch({
|
33
33
|
type: COLUMN_RESIZE_START,
|
34
34
|
payload: {
|