@carbon/ibm-products 2.54.0-canary.6 → 2.54.0-canary.64
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 +1352 -681
- 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 +974 -59
- 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 +597 -557
- 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 +678 -562
- 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/APIKeyDownloader.d.ts +1 -1
- package/es/components/APIKeyModal/APIKeyDownloader.js +1 -1
- package/es/components/APIKeyModal/APIKeyModal.d.ts +13 -0
- package/es/components/APIKeyModal/APIKeyModal.js +85 -38
- package/es/components/APIKeyModal/APIKeyModal.types.d.ts +21 -3
- 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.d.ts +3 -3
- package/es/components/Card/Card.js +23 -18
- package/es/components/Card/CardHeader.d.ts +7 -7
- package/es/components/Card/CardHeader.js +14 -12
- package/es/components/Checklist/Checklist.js +1 -1
- package/es/components/Checklist/ChecklistIcon.js +1 -1
- package/es/components/Coachmark/Coachmark.d.ts +5 -0
- package/es/components/Coachmark/Coachmark.js +11 -3
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +5 -0
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +19 -5
- package/es/components/CoachmarkStack/CoachmarkStackHome.d.ts +4 -0
- package/es/components/CoachmarkStack/CoachmarkStackHome.js +18 -6
- 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 +3 -5
- package/es/components/EmptyStates/assets/NoDataIllustration.js +3 -5
- package/es/components/EmptyStates/assets/NoTagsIllustration.js +3 -5
- package/es/components/EmptyStates/assets/NotFoundIllustration.js +3 -5
- package/es/components/EmptyStates/assets/NotificationsIllustration.js +3 -5
- package/es/components/EmptyStates/assets/UnauthorizedIllustration.js +3 -5
- package/es/components/ExpressiveCard/ExpressiveCard.d.ts +5 -5
- package/es/components/ExpressiveCard/ExpressiveCard.js +5 -5
- 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/FullPageError/FullPageError.js +7 -7
- package/es/components/FullPageError/assets/Error403SVG.d.ts +1 -3
- package/es/components/FullPageError/assets/Error403SVG.js +4 -6
- package/es/components/FullPageError/assets/Error404SVG.d.ts +1 -3
- package/es/components/FullPageError/assets/Error404SVG.js +4 -6
- package/es/components/FullPageError/assets/ErrorGenericSVG.d.ts +1 -3
- package/es/components/FullPageError/assets/ErrorGenericSVG.js +4 -6
- package/es/components/InlineTip/InlineTip.d.ts +5 -0
- package/es/components/InlineTip/InlineTip.js +17 -8
- 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/ProductiveCard/ProductiveCard.d.ts +3 -3
- package/es/components/ProductiveCard/ProductiveCard.js +4 -4
- package/es/components/SidePanel/SidePanel.d.ts +6 -1
- package/es/components/SidePanel/SidePanel.js +27 -14
- 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/SteppedAnimatedMedia/SteppedAnimatedMedia.js +3 -1
- 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/global/js/package-settings.d.ts +1 -1
- package/es/global/js/package-settings.js +1 -1
- package/es/index.js +1 -1
- package/es/settings.d.ts +1 -1
- package/lib/_virtual/_rollupPluginBabelHelpers.js +1 -1
- package/lib/components/APIKeyModal/APIKeyDownloader.d.ts +1 -1
- package/lib/components/APIKeyModal/APIKeyDownloader.js +1 -1
- package/lib/components/APIKeyModal/APIKeyModal.d.ts +13 -0
- package/lib/components/APIKeyModal/APIKeyModal.js +83 -34
- package/lib/components/APIKeyModal/APIKeyModal.types.d.ts +21 -3
- 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.d.ts +3 -3
- package/lib/components/Card/Card.js +22 -17
- package/lib/components/Card/CardHeader.d.ts +7 -7
- package/lib/components/Card/CardHeader.js +14 -12
- package/lib/components/Checklist/ChecklistChart.js +7 -7
- package/lib/components/Coachmark/Coachmark.d.ts +5 -0
- package/lib/components/Coachmark/Coachmark.js +11 -3
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +5 -0
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +18 -4
- package/lib/components/CoachmarkStack/CoachmarkStackHome.d.ts +4 -0
- package/lib/components/CoachmarkStack/CoachmarkStackHome.js +18 -6
- 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 +2 -4
- package/lib/components/EmptyStates/assets/NoDataIllustration.js +2 -4
- package/lib/components/EmptyStates/assets/NoTagsIllustration.js +2 -4
- package/lib/components/EmptyStates/assets/NotFoundIllustration.js +2 -4
- package/lib/components/EmptyStates/assets/NotificationsIllustration.js +2 -4
- package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +2 -4
- package/lib/components/ExpressiveCard/ExpressiveCard.d.ts +5 -5
- package/lib/components/ExpressiveCard/ExpressiveCard.js +5 -5
- 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/FullPageError/FullPageError.js +7 -7
- package/lib/components/FullPageError/assets/Error403SVG.d.ts +1 -3
- package/lib/components/FullPageError/assets/Error403SVG.js +4 -6
- package/lib/components/FullPageError/assets/Error404SVG.d.ts +1 -3
- package/lib/components/FullPageError/assets/Error404SVG.js +4 -6
- package/lib/components/FullPageError/assets/ErrorGenericSVG.d.ts +1 -3
- package/lib/components/FullPageError/assets/ErrorGenericSVG.js +4 -6
- package/lib/components/InlineTip/InlineTip.d.ts +5 -0
- package/lib/components/InlineTip/InlineTip.js +17 -8
- 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/ProductiveCard/ProductiveCard.d.ts +3 -3
- package/lib/components/ProductiveCard/ProductiveCard.js +4 -4
- package/lib/components/SidePanel/SidePanel.d.ts +6 -1
- package/lib/components/SidePanel/SidePanel.js +27 -14
- 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/SteppedAnimatedMedia/SteppedAnimatedMedia.js +3 -1
- 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/global/js/package-settings.d.ts +1 -1
- package/lib/global/js/package-settings.js +1 -1
- package/lib/index.js +109 -109
- package/lib/settings.d.ts +1 -1
- package/package.json +10 -10
- package/scss/components/APIKeyModal/_api-key-modal.scss +4 -0
- package/scss/components/BreadcrumbWithOverflow/_breadcrumb-with-overflow.scss +3 -3
- package/scss/components/Card/_card.scss +19 -5
- package/scss/components/Coachmark/_coachmark-overlay.scss +2 -2
- package/scss/components/Coachmark/_coachmark-tagline.scss +1 -1
- package/scss/components/CoachmarkBeacon/_coachmark-beacon.scss +3 -3
- package/scss/components/CoachmarkStack/_coachmark-stack.scss +2 -2
- package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +7 -7
- package/scss/components/CreateInfluencer/_create-influencer.scss +2 -2
- package/scss/components/CreateTearsheet/_create-tearsheet.scss +1 -2
- package/scss/components/DataSpreadsheet/_data-spreadsheet.scss +4 -4
- package/scss/components/Datagrid/styles/_datagrid.scss +21 -14
- package/scss/components/Datagrid/styles/_draggableElement.scss +2 -2
- package/scss/components/Datagrid/styles/_useColumnRightAlign.scss +1 -1
- package/scss/components/Datagrid/styles/_useExpandedRow.scss +1 -1
- package/scss/components/Datagrid/styles/_useInlineEdit.scss +1 -1
- package/scss/components/Datagrid/styles/_useNestedRows.scss +2 -2
- package/scss/components/Datagrid/styles/_useStickyColumn.scss +2 -2
- package/scss/components/Datagrid/styles/addons/_CustomizeColumnsTearsheet.scss +1 -1
- package/scss/components/Datagrid/styles/addons/_FilterFlyout.scss +1 -1
- package/scss/components/Datagrid/styles/addons/_FilterPanel.scss +1 -1
- package/scss/components/Datagrid/styles/addons/_RowSizeDropdown.scss +1 -2
- package/scss/components/DecoratorBase/_decorator-base-mixins.scss +1 -1
- package/scss/components/DecoratorBase/_decorator-base.scss +3 -3
- package/scss/components/DecoratorDualButton/_decorator-dual-button.scss +1 -1
- package/scss/components/DecoratorSingleButton/_decorator-single-button.scss +1 -1
- package/scss/components/EditTearsheet/_edit-tearsheet.scss +1 -2
- package/scss/components/EditUpdateCards/_edit-update-cards.scss +7 -7
- package/scss/components/FullPageError/_full-page-error.scss +1 -1
- package/scss/components/GetStartedCard/_get-started-card.scss +1 -1
- package/scss/components/Guidebanner/_guidebanner.scss +4 -4
- package/scss/components/HTTPErrors/_http-errors.scss +1 -1
- package/scss/components/InlineTip/_inline-tip.scss +4 -4
- package/scss/components/InterstitialScreen/_interstitial-screen.scss +6 -6
- package/scss/components/NonLinearReading/_non-linear-reading.scss +2 -2
- package/scss/components/NotificationsPanel/_notifications-panel.scss +3 -3
- package/scss/components/OptionsTile/_options-tile.scss +6 -8
- package/scss/components/PageHeader/_page-header.scss +20 -13
- package/scss/components/ProductiveCard/_productive-card.scss +2 -2
- package/scss/components/SidePanel/_side-panel.scss +24 -17
- package/scss/components/StatusIcon/_status-icon.scss +9 -7
- package/scss/components/StatusIndicator/_status-indicator.scss +1 -1
- package/scss/components/Tearsheet/_tearsheet.scss +5 -5
- package/scss/components/UserAvatar/_user-avatar.scss +5 -3
- package/scss/components/UserProfileImage/_user-profile-image.scss +6 -4
- package/scss/components/WebTerminal/_web-terminal.scss +2 -2
- package/scss/components/_index-released-only.scss +1 -0
- package/telemetry.yml +3 -0
@@ -20,7 +20,7 @@ var defaults = {
|
|
20
20
|
};
|
21
21
|
var CardHeader = function CardHeader(_ref) {
|
22
22
|
var actions = _ref.actions,
|
23
|
-
|
23
|
+
decorator = _ref.decorator,
|
24
24
|
noActionIcons = _ref.noActionIcons,
|
25
25
|
onPrimaryButtonClick = _ref.onPrimaryButtonClick,
|
26
26
|
onSecondaryButtonClick = _ref.onSecondaryButtonClick,
|
@@ -65,13 +65,13 @@ var CardHeader = function CardHeader(_ref) {
|
|
65
65
|
d: "M13.2436 16H11.5996L10.9276 13.864H7.95164L7.29164 16H5.68364L8.49164 7.624H10.4596L13.2436 16ZM10.5436 12.508L9.46364 9.064H9.40364L8.33564 12.508H10.5436ZM17.9341 16H14.1301V14.728H15.2341V8.896H14.1301V7.624H17.9341V8.896H16.8181V14.728H17.9341V16Z",
|
66
66
|
fill: "#161616"
|
67
67
|
})));
|
68
|
-
var
|
69
|
-
if (
|
70
|
-
if (inClickableCard || typeof
|
71
|
-
|
68
|
+
var normalizedDecorator = null;
|
69
|
+
if (decorator || slug) {
|
70
|
+
if (inClickableCard || typeof decorator === 'boolean' || typeof slug === 'boolean') {
|
71
|
+
normalizedDecorator = hollowAiIcon;
|
72
72
|
} else {
|
73
|
-
var element =
|
74
|
-
|
73
|
+
var element = decorator || slug;
|
74
|
+
normalizedDecorator = /*#__PURE__*/React__default.cloneElement(element, {
|
75
75
|
size: label && title || title && titleSize === 'large' ? 'sm' : 'xs'
|
76
76
|
});
|
77
77
|
}
|
@@ -79,7 +79,7 @@ var CardHeader = function CardHeader(_ref) {
|
|
79
79
|
return /*#__PURE__*/React__default.createElement("div", {
|
80
80
|
className: headerClasses
|
81
81
|
}, /*#__PURE__*/React__default.createElement("div", {
|
82
|
-
className: cx(["".concat(headerClass, "-container"), _defineProperty({}, "".concat(headerClass, "-container--has-slug"), !!slug), _defineProperty({}, "".concat(headerClass, "-container--has-
|
82
|
+
className: cx(["".concat(headerClass, "-container"), _defineProperty({}, "".concat(headerClass, "-container--has-slug"), !!slug), _defineProperty({}, "".concat(headerClass, "-container--has-decorator"), !!decorator), _defineProperty({}, "".concat(headerClass, "-container--has-actions"), !!hasActions), _defineProperty({}, "".concat(headerClass, "-container--large-tile-or-label"), title && (label || titleSize === 'large'))])
|
83
83
|
}, /*#__PURE__*/React__default.createElement("div", {
|
84
84
|
className: "".concat(blockClass, "__title-container")
|
85
85
|
}, label && /*#__PURE__*/React__default.createElement("p", {
|
@@ -105,15 +105,17 @@ var CardHeader = function CardHeader(_ref) {
|
|
105
105
|
onClick: onPrimaryButtonClick,
|
106
106
|
className: actionGhostButtonClass,
|
107
107
|
disabled: primaryButtonDisabled
|
108
|
-
}, primaryButtonText)),
|
108
|
+
}, primaryButtonText)), slug ? normalizedDecorator : decorator ? /*#__PURE__*/React__default.createElement("div", {
|
109
|
+
className: "".concat(blockClass, "__header__inner-wrapper--decorator")
|
110
|
+
}, normalizedDecorator) : ''));
|
109
111
|
};
|
110
112
|
/**@ts-ignore */
|
111
113
|
CardHeader.propTypes = {
|
112
114
|
actions: PropTypes.oneOfType([PropTypes.array, PropTypes.node]),
|
113
115
|
/**
|
114
|
-
* Optional prop that
|
116
|
+
* Optional prop that allows you to pass any component.
|
115
117
|
*/
|
116
|
-
|
118
|
+
decorator: PropTypes.oneOfType([PropTypes.node, PropTypes.bool]),
|
117
119
|
description: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.node]),
|
118
120
|
hasActions: PropTypes.bool,
|
119
121
|
/**
|
@@ -137,7 +139,7 @@ CardHeader.propTypes = {
|
|
137
139
|
/**
|
138
140
|
* **Experimental:** For all cases a `Slug` component can be provided.
|
139
141
|
* Clickable tiles only accept a boolean value of true and display a hollow slug.
|
140
|
-
* @deprecated please use the `
|
142
|
+
* @deprecated please use the `decorator` prop
|
141
143
|
*/
|
142
144
|
slug: PropTypes.oneOfType([PropTypes.node, PropTypes.bool]),
|
143
145
|
title: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.node]),
|
@@ -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
|
|
@@ -65,6 +65,11 @@ export interface CoachmarkProps {
|
|
65
65
|
* Determines the theme of the component.
|
66
66
|
*/
|
67
67
|
theme?: 'light' | 'dark';
|
68
|
+
/**
|
69
|
+
* Determines if the coachmark is open by default.
|
70
|
+
* Does nothing if `overlayKind=stacked`.
|
71
|
+
*/
|
72
|
+
isOpenByDefault?: boolean;
|
68
73
|
}
|
69
74
|
/**
|
70
75
|
* Coachmarks are used to call out specific functionality or concepts
|
@@ -20,7 +20,7 @@ import { throttle } from 'lodash';
|
|
20
20
|
import { Popover, PopoverContent } from '@carbon/react';
|
21
21
|
import { useIsomorphicEffect } from '../../global/js/hooks/useIsomorphicEffect.js';
|
22
22
|
|
23
|
-
var _excluded = ["align", "autoAlign", "children", "className", "onClose", "overlayClassName", "overlayKind", "overlayRef", "positionTune", "portalTarget", "target", "theme"];
|
23
|
+
var _excluded = ["align", "autoAlign", "children", "className", "onClose", "overlayClassName", "overlayKind", "overlayRef", "positionTune", "portalTarget", "target", "theme", "isOpenByDefault"];
|
24
24
|
|
25
25
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
26
26
|
var blockClass = "".concat(pkg.prefix, "--coachmark");
|
@@ -30,7 +30,8 @@ var defaults = {
|
|
30
30
|
align: 'bottom',
|
31
31
|
onClose: function onClose() {},
|
32
32
|
overlayKind: 'tooltip',
|
33
|
-
theme: 'light'
|
33
|
+
theme: 'light',
|
34
|
+
isOpenByDefault: false
|
34
35
|
};
|
35
36
|
/**
|
36
37
|
* Coachmarks are used to call out specific functionality or concepts
|
@@ -55,10 +56,12 @@ var Coachmark = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
55
56
|
target = _ref.target,
|
56
57
|
_ref$theme = _ref.theme,
|
57
58
|
theme = _ref$theme === void 0 ? defaults.theme : _ref$theme,
|
59
|
+
_ref$isOpenByDefault = _ref.isOpenByDefault,
|
60
|
+
isOpenByDefault = _ref$isOpenByDefault === void 0 ? defaults.isOpenByDefault : _ref$isOpenByDefault,
|
58
61
|
rest = _objectWithoutProperties(_ref, _excluded);
|
59
62
|
var isBeacon = overlayKind === COACHMARK_OVERLAY_KIND.TOOLTIP;
|
60
63
|
var isStacked = overlayKind === COACHMARK_OVERLAY_KIND.STACKED;
|
61
|
-
var _useState = useState(isStacked),
|
64
|
+
var _useState = useState(isStacked || isOpenByDefault),
|
62
65
|
_useState2 = _slicedToArray(_useState, 2),
|
63
66
|
isOpen = _useState2[0],
|
64
67
|
setIsOpen = _useState2[1];
|
@@ -250,6 +253,11 @@ Coachmark.propTypes = {
|
|
250
253
|
* Optional class name for this component.
|
251
254
|
*/
|
252
255
|
className: PropTypes.string,
|
256
|
+
/**
|
257
|
+
* Determines if the coachmark is open by default.
|
258
|
+
* Does nothing if `overlayKind=stacked`.
|
259
|
+
*/
|
260
|
+
isOpenByDefault: PropTypes.bool,
|
253
261
|
/**
|
254
262
|
* Function to call when the Coachmark closes.
|
255
263
|
*/
|
@@ -24,11 +24,16 @@ export interface CoachmarkOverlayElementsProps {
|
|
24
24
|
* The object describing an image in one of two shapes.
|
25
25
|
* If a single media element is required, use `{render}`.
|
26
26
|
* If a stepped animation is required, use `{filePaths}`.
|
27
|
+
* * @deprecated please use the `renderMedia` prop
|
27
28
|
*/
|
28
29
|
media?: {
|
29
30
|
render?: () => ReactNode;
|
30
31
|
filePaths?: string[];
|
31
32
|
};
|
33
|
+
/**
|
34
|
+
* Optional prop to render any media like images or any animated media.
|
35
|
+
*/
|
36
|
+
renderMedia?: (params: any) => ReactNode;
|
32
37
|
/**
|
33
38
|
* The label for the Next button.
|
34
39
|
*/
|
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
9
9
|
import { Button } from '@carbon/react';
|
10
|
-
import React__default, { useRef, useState, Children, useEffect } from 'react';
|
10
|
+
import React__default, { useRef, useState, Children, useMemo, useEffect } from 'react';
|
11
11
|
import { Carousel } from '../Carousel/Carousel.js';
|
12
12
|
import '../Carousel/CarouselItem.js';
|
13
13
|
import PropTypes from '../../_virtual/index.js';
|
@@ -20,7 +20,7 @@ import { pkg } from '../../settings.js';
|
|
20
20
|
import '../Coachmark/Coachmark.js';
|
21
21
|
import { useCoachmark } from '../Coachmark/utils/context.js';
|
22
22
|
|
23
|
-
var _excluded = ["className", "children", "isVisible", "media", "nextButtonText", "previousButtonLabel", "closeButtonLabel"];
|
23
|
+
var _excluded = ["className", "children", "isVisible", "media", "renderMedia", "nextButtonText", "previousButtonLabel", "closeButtonLabel"];
|
24
24
|
|
25
25
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
26
26
|
var blockClass = "".concat(pkg.prefix, "--coachmark-overlay-elements");
|
@@ -53,6 +53,7 @@ var CoachmarkOverlayElements = /*#__PURE__*/React__default.forwardRef(function (
|
|
53
53
|
_ref$isVisible = _ref.isVisible,
|
54
54
|
isVisible = _ref$isVisible === void 0 ? defaults.isVisible : _ref$isVisible,
|
55
55
|
media = _ref.media,
|
56
|
+
renderMedia = _ref.renderMedia,
|
56
57
|
_ref$nextButtonText = _ref.nextButtonText,
|
57
58
|
nextButtonText = _ref$nextButtonText === void 0 ? defaults.nextButtonText : _ref$nextButtonText,
|
58
59
|
_ref$previousButtonLa = _ref.previousButtonLabel,
|
@@ -71,6 +72,7 @@ var CoachmarkOverlayElements = /*#__PURE__*/React__default.forwardRef(function (
|
|
71
72
|
currentProgStep = _useState4[0],
|
72
73
|
_setCurrentProgStep = _useState4[1];
|
73
74
|
var coachmark = useCoachmark();
|
75
|
+
var hasMedia = media || renderMedia;
|
74
76
|
var setCurrentProgStep = function setCurrentProgStep(value) {
|
75
77
|
if (currentProgStep > 0 && value === 0 && buttonFocusRef.current) {
|
76
78
|
setTimeout(function () {
|
@@ -83,6 +85,11 @@ var CoachmarkOverlayElements = /*#__PURE__*/React__default.forwardRef(function (
|
|
83
85
|
var numProgSteps = Children.count(children);
|
84
86
|
var progStepFloor = 0;
|
85
87
|
var progStepCeil = numProgSteps - 1;
|
88
|
+
var renderMediaContent = useMemo(function () {
|
89
|
+
return renderMedia === null || renderMedia === void 0 ? void 0 : renderMedia({
|
90
|
+
playStep: currentProgStep
|
91
|
+
});
|
92
|
+
}, [currentProgStep, renderMedia]);
|
86
93
|
useEffect(function () {
|
87
94
|
// On mount, one of the two primary buttons ("next" or "close")
|
88
95
|
// will be rendered and must have focus. (a11y)
|
@@ -111,11 +118,13 @@ var CoachmarkOverlayElements = /*#__PURE__*/React__default.forwardRef(function (
|
|
111
118
|
// example: [`${blockClass}__here-if-small`]: size === 'sm',
|
112
119
|
}),
|
113
120
|
ref: ref
|
114
|
-
}, getDevtoolsProps(componentName)),
|
121
|
+
}, getDevtoolsProps(componentName)), hasMedia && (media === null || media === void 0 ? void 0 : media.render) && media.render(), hasMedia && (media === null || media === void 0 ? void 0 : media.filePaths) && /*#__PURE__*/React__default.createElement(SteppedAnimatedMedia, {
|
115
122
|
className: "".concat(blockClass, "__element-stepped-media"),
|
116
123
|
filePaths: media.filePaths,
|
117
124
|
playStep: currentProgStep
|
118
|
-
})
|
125
|
+
}), hasMedia && renderMedia && /*#__PURE__*/React__default.createElement("div", {
|
126
|
+
className: "".concat(blockClass, "__element-stepped-media")
|
127
|
+
}, renderMediaContent), numProgSteps === 1 ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children, closeButtonLabel && /*#__PURE__*/React__default.createElement("div", {
|
119
128
|
className: cx("".concat(blockClass, "__footer"), 'coachmark-carousel-controls')
|
120
129
|
}, /*#__PURE__*/React__default.createElement(Button, _extends({
|
121
130
|
size: "sm"
|
@@ -194,6 +203,7 @@ CoachmarkOverlayElements.propTypes = {
|
|
194
203
|
* The object describing an image in one of two shapes.
|
195
204
|
* If a single media element is required, use `{render}`.
|
196
205
|
* If a stepped animation is required, use `{filePaths}`.
|
206
|
+
* @deprecated please use the `renderMedia` prop
|
197
207
|
*/
|
198
208
|
/**@ts-ignore*/
|
199
209
|
media: PropTypes.oneOfType([PropTypes.shape({
|
@@ -208,7 +218,11 @@ CoachmarkOverlayElements.propTypes = {
|
|
208
218
|
/**
|
209
219
|
* The label for the Previous button.
|
210
220
|
*/
|
211
|
-
previousButtonLabel: PropTypes.string
|
221
|
+
previousButtonLabel: PropTypes.string,
|
222
|
+
/**
|
223
|
+
* Optional prop to render any media like images or animated media.
|
224
|
+
*/
|
225
|
+
renderMedia: PropTypes.func
|
212
226
|
};
|
213
227
|
|
214
228
|
export { CoachmarkOverlayElements };
|
@@ -39,6 +39,10 @@ interface CoachmarkStackHomeProps {
|
|
39
39
|
* @see {@link MEDIA_PROP_TYPE}.
|
40
40
|
*/
|
41
41
|
media?: Media;
|
42
|
+
/**
|
43
|
+
* Optional prop to render any media like images or any animated media.
|
44
|
+
*/
|
45
|
+
renderMedia?: (params: any) => ReactNode;
|
42
46
|
/**
|
43
47
|
* The labels used to link to the stackable Coachmarks.
|
44
48
|
*/
|
@@ -17,9 +17,10 @@ import { pkg } from '../../settings.js';
|
|
17
17
|
import { createPortal } from 'react-dom';
|
18
18
|
import { CoachmarkHeader } from '../Coachmark/CoachmarkHeader.js';
|
19
19
|
import { SteppedAnimatedMedia } from '../SteppedAnimatedMedia/SteppedAnimatedMedia.js';
|
20
|
+
import { deprecateProp } from '../../global/js/utils/props-helper.js';
|
20
21
|
import { useIsomorphicEffect } from '../../global/js/hooks/useIsomorphicEffect.js';
|
21
22
|
|
22
|
-
var _excluded = ["className", "description", "isOpen", "media", "navLinkLabels", "onClickNavItem", "onClose", "portalTarget", "closeButtonLabel", "title"];
|
23
|
+
var _excluded = ["className", "description", "isOpen", "media", "renderMedia", "navLinkLabels", "onClickNavItem", "onClose", "portalTarget", "closeButtonLabel", "title"];
|
23
24
|
// Carbon and package components we use.
|
24
25
|
/* TODO: @import(s) of carbon components and other package components. */
|
25
26
|
|
@@ -37,6 +38,7 @@ var CoachmarkStackHome = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
37
38
|
description = _ref.description,
|
38
39
|
isOpen = _ref.isOpen,
|
39
40
|
media = _ref.media,
|
41
|
+
renderMedia = _ref.renderMedia,
|
40
42
|
navLinkLabels = _ref.navLinkLabels,
|
41
43
|
onClickNavItem = _ref.onClickNavItem,
|
42
44
|
_onClose = _ref.onClose,
|
@@ -49,6 +51,7 @@ var CoachmarkStackHome = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
49
51
|
_useState2 = _slicedToArray(_useState, 2),
|
50
52
|
linkFocusIndex = _useState2[0],
|
51
53
|
setLinkFocusIndex = _useState2[1];
|
54
|
+
var hasMedia = media || renderMedia;
|
52
55
|
useEffect(function () {
|
53
56
|
setTimeout(function () {
|
54
57
|
if (isOpen && buttonFocusRef.current) {
|
@@ -90,13 +93,17 @@ var CoachmarkStackHome = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
90
93
|
className: "".concat(overlayClass, "__body")
|
91
94
|
}, /*#__PURE__*/React__default.createElement("div", {
|
92
95
|
className: "".concat(overlayClass, "-element")
|
93
|
-
}, !
|
96
|
+
}, !hasMedia && /*#__PURE__*/React__default.createElement(Idea, {
|
94
97
|
size: 20,
|
95
98
|
className: "".concat(blockClass, "__icon-idea")
|
96
|
-
}),
|
97
|
-
className: "".concat(
|
99
|
+
}), hasMedia && (media === null || media === void 0 ? void 0 : media.render) && media.render(), hasMedia && (media === null || media === void 0 ? void 0 : media.filePaths) && /*#__PURE__*/React__default.createElement(SteppedAnimatedMedia, {
|
100
|
+
className: "".concat(blockClass, "__element-stepped-media"),
|
98
101
|
filePaths: media.filePaths,
|
99
102
|
playStep: 0
|
103
|
+
}), hasMedia && renderMedia && /*#__PURE__*/React__default.createElement("div", {
|
104
|
+
className: "".concat(blockClass, "__element-stepped-media")
|
105
|
+
}, renderMedia({
|
106
|
+
playStep: 0
|
100
107
|
})), /*#__PURE__*/React__default.createElement("div", {
|
101
108
|
className: "".concat(overlayClass, "-element__content")
|
102
109
|
}, title && /*#__PURE__*/React__default.createElement("h2", {
|
@@ -156,12 +163,13 @@ CoachmarkStackHome.propTypes = {
|
|
156
163
|
* If a stepped animation is required, use `{filePaths}`.
|
157
164
|
*
|
158
165
|
* @see {@link MEDIA_PROP_TYPE}.
|
166
|
+
* @deprecated please use the `renderMedia` prop
|
159
167
|
*/
|
160
|
-
media: PropTypes.oneOfType([PropTypes.shape({
|
168
|
+
media: deprecateProp(PropTypes.oneOfType([PropTypes.shape({
|
161
169
|
render: PropTypes.func
|
162
170
|
}), PropTypes.shape({
|
163
171
|
filePaths: PropTypes.arrayOf(PropTypes.string)
|
164
|
-
})]),
|
172
|
+
})]), ''),
|
165
173
|
/**
|
166
174
|
* The labels used to link to the stackable Coachmarks.
|
167
175
|
*/
|
@@ -185,6 +193,10 @@ CoachmarkStackHome.propTypes = {
|
|
185
193
|
* element is hidden or component is unmounted, the CoachmarkStackHome will disappear.
|
186
194
|
*/
|
187
195
|
portalTarget: PropTypes.string,
|
196
|
+
/**
|
197
|
+
* Optional prop to render any media like images or animated media.
|
198
|
+
*/
|
199
|
+
renderMedia: PropTypes.func,
|
188
200
|
/**
|
189
201
|
* The title of the Coachmark.
|
190
202
|
*/
|
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 };
|