@carbon/ibm-products 2.52.0 → 2.53.0-rc.0
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/README.md +3 -3
- package/css/index-full-carbon.css +306 -298
- 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 +94 -27
- 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 +110 -44
- 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 +179 -118
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/components/APIKeyModal/APIKeyDownloader.d.ts +2 -1
- package/es/components/APIKeyModal/APIKeyModal.js +1 -1
- package/es/components/AboutModal/AboutModal.js +2 -4
- package/es/components/ActionBar/ActionBarOverflowItems.d.ts +2 -2
- package/es/components/AddSelect/AddSelectBody.js +8 -1
- package/es/components/AddSelect/AddSelectBreadcrumbs.d.ts +2 -1
- package/es/components/AddSelect/AddSelectColumn.d.ts +2 -1
- package/es/components/AddSelect/AddSelectFilter.d.ts +2 -1
- package/es/components/AddSelect/AddSelectFilter.js +5 -5
- package/es/components/AddSelect/AddSelectFormControl.d.ts +2 -1
- package/es/components/AddSelect/AddSelectList.d.ts +2 -1
- package/es/components/AddSelect/AddSelectMetaPanel.d.ts +2 -1
- package/es/components/AddSelect/AddSelectRow.d.ts +2 -1
- package/es/components/AddSelect/AddSelectSidebar.d.ts +2 -1
- package/es/components/AddSelect/AddSelectSidebar.js +1 -1
- package/es/components/AddSelect/AddSelectSort.d.ts +2 -1
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.d.ts +2 -1
- package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.d.ts +2 -1
- package/es/components/Card/Card.d.ts +5 -1
- package/es/components/Card/Card.js +9 -2
- package/es/components/Card/CardFooter.d.ts +1 -1
- package/es/components/Card/CardHeader.d.ts +12 -2
- package/es/components/Card/CardHeader.js +17 -9
- package/es/components/Carousel/Carousel.js +17 -8
- package/es/components/Checklist/ChecklistChart.js +22 -6
- package/es/components/Coachmark/Coachmark.js +18 -11
- package/es/components/Coachmark/CoachmarkOverlay.js +30 -19
- package/es/components/Coachmark/utils/hooks.js +1 -1
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +2 -2
- package/es/components/CoachmarkStack/CoachmarkStack.js +1 -1
- package/es/components/ComboButton/ComboButtonItem/index.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +1 -1
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +3 -6
- package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +2 -8
- package/es/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +0 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +5 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +2 -1
- package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +65 -61
- package/es/components/ConditionBuilder/utils/util.js +0 -2
- package/es/components/CreateInfluencer/CreateInfluencer.d.ts +2 -2
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +4 -4
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridBody.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridContent.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridEmptyBody.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +5 -1
- package/es/components/Datagrid/Datagrid/DatagridExpandedRow.d.ts +2 -2
- package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +6 -4
- package/es/components/Datagrid/Datagrid/DatagridHead.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +13 -10
- package/es/components/Datagrid/Datagrid/DatagridRefBody.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridRow.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridRow.js +14 -10
- package/es/components/Datagrid/Datagrid/DatagridSelectAll.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridSimpleBody.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridToolbar.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridVirtualBody.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DraggableElement.d.ts +2 -2
- package/es/components/Datagrid/Datagrid/addons/{Slug/DatagridSlug.d.ts → AiLabel/DatagridAiLabel.d.ts} +3 -3
- package/es/components/Datagrid/Datagrid/addons/AiLabel/DatagridAiLabel.js +29 -0
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +5 -5
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +5 -5
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -1
- package/es/components/Datagrid/index.d.ts +29 -22
- package/es/components/Datagrid/types/index.d.ts +7 -7
- package/es/components/Datagrid/useActionsColumn.js +1 -2
- package/es/components/Datagrid/useColumnCenterAlign.js +1 -2
- package/es/components/Datagrid/useColumnRightAlign.js +1 -2
- package/es/components/Datagrid/useCustomizeColumns.js +1 -2
- package/es/components/Datagrid/useDatagrid.js +1 -2
- package/es/components/Datagrid/useDefaultStringRenderer.js +3 -3
- package/es/components/Datagrid/useDisableSelectRows.js +1 -2
- package/es/components/Datagrid/useExpandedRow.js +1 -2
- package/es/components/Datagrid/useFiltering.js +1 -2
- package/es/components/Datagrid/useFlexResize.js +1 -1
- package/es/components/Datagrid/useInfiniteScroll.js +1 -2
- package/es/components/Datagrid/useInlineEdit.js +1 -2
- package/es/components/Datagrid/useNestedRowExpander.js +2 -2
- package/es/components/Datagrid/useNestedRows.js +1 -2
- package/es/components/Datagrid/useOnRowClick.js +1 -2
- package/es/components/Datagrid/useParentDimensions.js +5 -5
- package/es/components/Datagrid/useRowExpander.js +6 -7
- package/es/components/Datagrid/useRowIsMouseOver.js +1 -2
- package/es/components/Datagrid/useSelectAllToggle.js +1 -2
- package/es/components/Datagrid/useSelectRows.js +1 -2
- package/es/components/Datagrid/useSortableColumns.js +7 -8
- package/es/components/Datagrid/useStickyColumn.js +4 -5
- package/es/components/EmptyStates/EmptyState.d.ts +1 -1
- package/es/components/EmptyStates/EmptyState.js +8 -2
- package/es/components/EmptyStates/EmptyStateContent.d.ts +2 -1
- package/es/components/EmptyStates/EmptyStateIllustration.d.ts +2 -1
- package/es/components/EmptyStates/EmptyStateV2.d.ts +1 -2
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +1 -2
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
- package/es/components/EmptyStates/ErrorEmptyState/index.d.ts +8 -1
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +1 -2
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
- package/es/components/EmptyStates/NoDataEmptyState/index.d.ts +8 -1
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +1 -2
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
- package/es/components/EmptyStates/NoTagsEmptyState/index.d.ts +8 -1
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +1 -2
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
- package/es/components/EmptyStates/NotFoundEmptyState/index.d.ts +8 -1
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +1 -2
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
- package/es/components/EmptyStates/NotificationsEmptyState/index.d.ts +8 -1
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +1 -2
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
- package/es/components/EmptyStates/UnauthorizedEmptyState/index.d.ts +8 -1
- package/es/components/EmptyStates/assets/ErrorIllustration.d.ts +2 -1
- package/es/components/EmptyStates/assets/NoDataIllustration.d.ts +2 -1
- package/es/components/EmptyStates/assets/NoDataIllustration.js +5 -5
- package/es/components/EmptyStates/assets/NoTagsIllustration.d.ts +2 -1
- package/es/components/EmptyStates/assets/NotFoundIllustration.d.ts +2 -1
- package/es/components/EmptyStates/assets/NotificationsIllustration.d.ts +2 -1
- package/es/components/EmptyStates/assets/NotificationsIllustration.js +8 -8
- package/es/components/EmptyStates/assets/UnauthorizedIllustration.d.ts +2 -1
- package/es/components/EmptyStates/index.d.ts +22 -8
- package/es/components/ExportModal/ExportModal.js +1 -3
- package/es/components/ExpressiveCard/ExpressiveCard.d.ts +5 -0
- package/es/components/ExpressiveCard/ExpressiveCard.js +5 -0
- package/es/components/FeatureFlags/index.d.ts +5 -4
- package/es/components/FeatureFlags/index.js +17 -10
- package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +1 -1
- package/es/components/FullPageError/assets/Error403SVG.d.ts +2 -1
- package/es/components/FullPageError/assets/Error404SVG.d.ts +2 -1
- package/es/components/FullPageError/assets/ErrorGenericSVG.d.ts +2 -1
- package/es/components/HTTPErrors/HTTPErrorContent.d.ts +2 -1
- package/es/components/HTTPErrors/assets/HTTPErrorSvg403.d.ts +2 -1
- package/es/components/HTTPErrors/assets/HTTPErrorSvg404.d.ts +2 -1
- package/es/components/HTTPErrors/assets/HTTPErrorSvgOther.d.ts +2 -1
- package/es/components/InterstitialScreen/InterstitialScreen.js +4 -4
- package/es/components/Nav/NavItem.d.ts +2 -1
- package/es/components/NotificationsPanel/NotificationsPanel.js +8 -1
- package/es/components/PageHeader/PageHeader.d.ts +2 -0
- package/es/components/PageHeader/PageHeader.js +4 -1
- package/es/components/PageHeader/PageHeaderTitle.d.ts +3 -1
- package/es/components/PageHeader/PageHeaderTitle.js +42 -8
- package/es/components/ProductiveCard/ProductiveCard.d.ts +5 -0
- package/es/components/ProductiveCard/ProductiveCard.js +4 -0
- package/es/components/ScrollGradient/ScrollGradient.js +2 -2
- package/es/components/SidePanel/SidePanel.d.ts +5 -0
- package/es/components/SidePanel/SidePanel.js +30 -16
- package/es/components/SimpleHeader/SimpleHeader.d.ts +2 -1
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +1 -1
- package/es/components/TagOverflow/TagOverflow.d.ts +3 -0
- package/es/components/TagOverflow/TagOverflow.js +9 -4
- package/es/components/TagOverflow/TagOverflowModal.d.ts +6 -1
- package/es/components/TagOverflow/TagOverflowModal.js +17 -6
- package/es/components/TagOverflow/TagOverflowPopover.js +17 -9
- package/es/components/TagSet/TagSet.d.ts +4 -0
- package/es/components/TagSet/TagSet.js +20 -8
- package/es/components/TagSet/TagSetModal.js +0 -1
- package/es/components/Tearsheet/TearsheetShell.d.ts +13 -4
- package/es/components/Tearsheet/TearsheetShell.js +31 -20
- package/es/components/Toolbar/Toolbar.js +1 -1
- package/es/components/TooltipTrigger/TooltipTrigger.d.ts +2 -1
- package/es/components/TruncatedList/TruncatedList.js +1 -1
- package/es/components/_Canary/Canary.d.ts +2 -1
- package/es/global/js/hooks/usePreviousValue.js +1 -1
- package/es/index.js +29 -29
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-9.js +742 -740
- package/lib/components/APIKeyModal/APIKeyDownloader.d.ts +2 -1
- package/lib/components/APIKeyModal/APIKeyModal.js +1 -1
- package/lib/components/AboutModal/AboutModal.js +2 -4
- package/lib/components/ActionBar/ActionBarOverflowItems.d.ts +2 -2
- package/lib/components/AddSelect/AddSelectBody.js +8 -1
- package/lib/components/AddSelect/AddSelectBreadcrumbs.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectColumn.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectFilter.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectFilter.js +4 -4
- package/lib/components/AddSelect/AddSelectFormControl.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectList.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectMetaPanel.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectRow.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectSidebar.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectSidebar.js +1 -1
- package/lib/components/AddSelect/AddSelectSort.d.ts +2 -1
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.d.ts +2 -1
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.d.ts +2 -1
- package/lib/components/Card/Card.d.ts +5 -1
- package/lib/components/Card/Card.js +9 -2
- package/lib/components/Card/CardFooter.d.ts +1 -1
- package/lib/components/Card/CardHeader.d.ts +12 -2
- package/lib/components/Card/CardHeader.js +17 -9
- package/lib/components/Carousel/Carousel.js +17 -8
- package/lib/components/Checklist/ChecklistChart.js +20 -4
- package/lib/components/Coachmark/Coachmark.js +17 -10
- package/lib/components/Coachmark/CoachmarkOverlay.js +29 -18
- package/lib/components/Coachmark/utils/hooks.js +1 -1
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +2 -2
- package/lib/components/CoachmarkStack/CoachmarkStack.js +1 -1
- package/lib/components/ComboButton/ComboButtonItem/index.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +1 -1
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +3 -6
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +2 -8
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +0 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +5 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +2 -1
- package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +65 -61
- package/lib/components/ConditionBuilder/utils/util.js +0 -2
- package/lib/components/CreateInfluencer/CreateInfluencer.d.ts +2 -2
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +4 -4
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridBody.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridContent.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +5 -1
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.d.ts +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +6 -4
- package/lib/components/Datagrid/Datagrid/DatagridHead.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +13 -10
- package/lib/components/Datagrid/Datagrid/DatagridRefBody.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridRow.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +14 -10
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DraggableElement.d.ts +2 -2
- package/lib/components/Datagrid/Datagrid/addons/{Slug/DatagridSlug.d.ts → AiLabel/DatagridAiLabel.d.ts} +3 -3
- package/lib/components/Datagrid/Datagrid/addons/AiLabel/DatagridAiLabel.js +31 -0
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +5 -5
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +2 -2
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +5 -5
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -1
- package/lib/components/Datagrid/index.d.ts +29 -22
- package/lib/components/Datagrid/types/index.d.ts +7 -7
- package/lib/components/Datagrid/useActionsColumn.js +1 -2
- package/lib/components/Datagrid/useColumnCenterAlign.js +1 -2
- package/lib/components/Datagrid/useColumnRightAlign.js +1 -2
- package/lib/components/Datagrid/useCustomizeColumns.js +1 -2
- package/lib/components/Datagrid/useDatagrid.js +1 -2
- package/lib/components/Datagrid/useDefaultStringRenderer.js +3 -3
- package/lib/components/Datagrid/useDisableSelectRows.js +1 -2
- package/lib/components/Datagrid/useExpandedRow.js +1 -2
- package/lib/components/Datagrid/useFiltering.js +1 -2
- package/lib/components/Datagrid/useFlexResize.js +1 -1
- package/lib/components/Datagrid/useInfiniteScroll.js +1 -2
- package/lib/components/Datagrid/useInlineEdit.js +1 -2
- package/lib/components/Datagrid/useNestedRowExpander.js +2 -2
- package/lib/components/Datagrid/useNestedRows.js +1 -2
- package/lib/components/Datagrid/useOnRowClick.js +1 -2
- package/lib/components/Datagrid/useParentDimensions.js +5 -5
- package/lib/components/Datagrid/useRowExpander.js +6 -7
- package/lib/components/Datagrid/useRowIsMouseOver.js +1 -2
- package/lib/components/Datagrid/useSelectAllToggle.js +1 -2
- package/lib/components/Datagrid/useSelectRows.js +1 -2
- package/lib/components/Datagrid/useSortableColumns.js +7 -8
- package/lib/components/Datagrid/useStickyColumn.js +4 -5
- package/lib/components/EmptyStates/EmptyState.d.ts +1 -1
- package/lib/components/EmptyStates/EmptyState.js +7 -1
- package/lib/components/EmptyStates/EmptyStateContent.d.ts +2 -1
- package/lib/components/EmptyStates/EmptyStateIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/EmptyStateV2.d.ts +1 -2
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +1 -2
- package/lib/components/EmptyStates/ErrorEmptyState/index.d.ts +8 -1
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +1 -2
- package/lib/components/EmptyStates/NoDataEmptyState/index.d.ts +8 -1
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +1 -2
- package/lib/components/EmptyStates/NoTagsEmptyState/index.d.ts +8 -1
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +1 -2
- package/lib/components/EmptyStates/NotFoundEmptyState/index.d.ts +8 -1
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +1 -2
- package/lib/components/EmptyStates/NotificationsEmptyState/index.d.ts +8 -1
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +1 -2
- package/lib/components/EmptyStates/UnauthorizedEmptyState/index.d.ts +8 -1
- package/lib/components/EmptyStates/assets/ErrorIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/assets/NoDataIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/assets/NoDataIllustration.js +5 -5
- package/lib/components/EmptyStates/assets/NoTagsIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/assets/NotFoundIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/assets/NotificationsIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/assets/NotificationsIllustration.js +8 -8
- package/lib/components/EmptyStates/assets/UnauthorizedIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/index.d.ts +22 -8
- package/lib/components/ExportModal/ExportModal.js +1 -3
- package/lib/components/ExpressiveCard/ExpressiveCard.d.ts +5 -0
- package/lib/components/ExpressiveCard/ExpressiveCard.js +5 -0
- package/lib/components/FeatureFlags/index.d.ts +5 -4
- package/lib/components/FeatureFlags/index.js +16 -9
- package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +1 -1
- package/lib/components/FullPageError/assets/Error403SVG.d.ts +2 -1
- package/lib/components/FullPageError/assets/Error404SVG.d.ts +2 -1
- package/lib/components/FullPageError/assets/ErrorGenericSVG.d.ts +2 -1
- package/lib/components/HTTPErrors/HTTPErrorContent.d.ts +2 -1
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg403.d.ts +2 -1
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg404.d.ts +2 -1
- package/lib/components/HTTPErrors/assets/HTTPErrorSvgOther.d.ts +2 -1
- package/lib/components/InterstitialScreen/InterstitialScreen.js +4 -4
- package/lib/components/Nav/NavItem.d.ts +2 -1
- package/lib/components/NotificationsPanel/NotificationsPanel.js +8 -1
- package/lib/components/PageHeader/PageHeader.d.ts +2 -0
- package/lib/components/PageHeader/PageHeader.js +4 -1
- package/lib/components/PageHeader/PageHeaderTitle.d.ts +3 -1
- package/lib/components/PageHeader/PageHeaderTitle.js +39 -5
- package/lib/components/ProductiveCard/ProductiveCard.d.ts +5 -0
- package/lib/components/ProductiveCard/ProductiveCard.js +4 -0
- package/lib/components/ScrollGradient/ScrollGradient.js +2 -2
- package/lib/components/SidePanel/SidePanel.d.ts +5 -0
- package/lib/components/SidePanel/SidePanel.js +30 -16
- package/lib/components/SimpleHeader/SimpleHeader.d.ts +2 -1
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +1 -1
- package/lib/components/TagOverflow/TagOverflow.d.ts +3 -0
- package/lib/components/TagOverflow/TagOverflow.js +8 -3
- package/lib/components/TagOverflow/TagOverflowModal.d.ts +6 -1
- package/lib/components/TagOverflow/TagOverflowModal.js +16 -5
- package/lib/components/TagOverflow/TagOverflowPopover.js +16 -8
- package/lib/components/TagSet/TagSet.d.ts +4 -0
- package/lib/components/TagSet/TagSet.js +19 -7
- package/lib/components/TagSet/TagSetModal.js +0 -1
- package/lib/components/Tearsheet/TearsheetShell.d.ts +13 -4
- package/lib/components/Tearsheet/TearsheetShell.js +31 -20
- package/lib/components/Toolbar/Toolbar.js +1 -1
- package/lib/components/TooltipTrigger/TooltipTrigger.d.ts +2 -1
- package/lib/components/TruncatedList/TruncatedList.js +1 -1
- package/lib/components/_Canary/Canary.d.ts +2 -1
- package/lib/global/js/hooks/usePreviousValue.js +1 -1
- package/lib/index.js +88 -88
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-9.js +742 -740
- package/package.json +11 -11
- package/scss/components/Card/_card.scss +14 -6
- package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +4 -0
- package/scss/components/Datagrid/styles/_datagrid.scss +82 -2
- package/scss/components/PageHeader/_page-header.scss +16 -3
- package/scss/components/SidePanel/_side-panel.scss +12 -6
- package/scss/components/Tearsheet/_tearsheet.scss +13 -3
- package/telemetry.yml +1 -0
- package/es/components/Datagrid/Datagrid/addons/Slug/DatagridSlug.js +0 -29
- package/lib/components/Datagrid/Datagrid/addons/Slug/DatagridSlug.js +0 -31
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PropsWithChildren, ReactElement, ForwardedRef } from 'react';
|
1
|
+
import React, { PropsWithChildren, ReactElement, ForwardedRef } from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
import { CarbonIconType } from '@carbon/icons-react/lib/CarbonIcon';
|
4
4
|
type OverflowItem = {
|
@@ -33,7 +33,7 @@ interface ActionBarOverflowItemProps extends PropsWithChildren {
|
|
33
33
|
tabIndex?: number;
|
34
34
|
}
|
35
35
|
export declare const ActionBarOverflowItems: {
|
36
|
-
({ className, menuOptionsClass, overflowItems, overflowAriaLabel, overflowMenuRef, }: ActionBarOverflowItemProps):
|
36
|
+
({ className, menuOptionsClass, overflowItems, overflowAriaLabel, overflowMenuRef, }: ActionBarOverflowItemProps): React.JSX.Element;
|
37
37
|
displayName: string;
|
38
38
|
propTypes: {
|
39
39
|
/**
|
@@ -12,6 +12,14 @@ import cx from 'classnames';
|
|
12
12
|
import { Tag } from '@carbon/react';
|
13
13
|
import { Tearsheet } from '../Tearsheet/Tearsheet.js';
|
14
14
|
import { TearsheetNarrow } from '../Tearsheet/TearsheetNarrow.js';
|
15
|
+
import '../EmptyStates/EmptyState.js';
|
16
|
+
import '../EmptyStates/EmptyStateV2.js';
|
17
|
+
import '../EmptyStates/ErrorEmptyState/ErrorEmptyState.js';
|
18
|
+
import '../EmptyStates/NoDataEmptyState/NoDataEmptyState.js';
|
19
|
+
import '../EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js';
|
20
|
+
import { NotFoundEmptyState } from '../EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js';
|
21
|
+
import '../EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js';
|
22
|
+
import '../EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js';
|
15
23
|
import { AddSelectSidebar } from './AddSelectSidebar.js';
|
16
24
|
import { AddSelectBreadcrumbs } from './AddSelectBreadcrumbs.js';
|
17
25
|
import { AddSelectList } from './AddSelectList.js';
|
@@ -23,7 +31,6 @@ import { useItemSort } from './hooks/useItemSort.js';
|
|
23
31
|
import useParentSelect from './hooks/useParentSelect.js';
|
24
32
|
import usePath from './hooks/usePath.js';
|
25
33
|
import { pkg } from '../../settings.js';
|
26
|
-
import { NotFoundEmptyState } from '../EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js';
|
27
34
|
|
28
35
|
var _excluded = ["className", "clearFiltersText", "closeIconDescription", "columnInputPlaceholder", "defaultModifiers", "description", "filterByLabel", "globalFilterOpts", "globalFiltersLabel", "globalFiltersIconDescription", "globalFiltersPlaceholderText", "globalFiltersPrimaryButtonText", "globalFiltersSecondaryButtonText", "globalSearchLabel", "globalSearchPlaceholder", "globalSortBy", "illustrationTheme", "influencerTitle", "items", "itemsLabel", "metaIconDescription", "metaPanelTitle", "multi", "navIconDescription", "noResultsDescription", "noResultsTitle", "noSelectionDescription", "noSelectionTitle", "normalizedItems", "onClose", "onCloseButtonText", "onSubmit", "onSubmitButtonText", "open", "portalTarget", "searchResultsTitle", "sortByLabel", "title", "useNormalizedItems"];
|
29
36
|
var blockClass = "".concat(pkg.prefix, "--add-select");
|
@@ -2,7 +2,7 @@ export function AddSelectBreadcrumbs({ multi, onClick, path }: {
|
|
2
2
|
multi: any;
|
3
3
|
onClick: any;
|
4
4
|
path: any;
|
5
|
-
}):
|
5
|
+
}): React.JSX.Element;
|
6
6
|
export namespace AddSelectBreadcrumbs {
|
7
7
|
export namespace propTypes {
|
8
8
|
let multi: PropTypes.Requireable<boolean>;
|
@@ -11,6 +11,7 @@ export namespace AddSelectBreadcrumbs {
|
|
11
11
|
}
|
12
12
|
export { componentName as displayName };
|
13
13
|
}
|
14
|
+
import React from 'react';
|
14
15
|
import PropTypes from 'prop-types';
|
15
16
|
declare const componentName: "AddSelectBreadcrumbs";
|
16
17
|
export {};
|
@@ -10,7 +10,7 @@ export function AddSelectColumn({ columnInputPlaceholder, filterByLabel, header,
|
|
10
10
|
setMultiSelection: any;
|
11
11
|
setPath: any;
|
12
12
|
sortByLabel: any;
|
13
|
-
}):
|
13
|
+
}): React.JSX.Element;
|
14
14
|
export namespace AddSelectColumn {
|
15
15
|
export namespace propTypes {
|
16
16
|
let columnInputPlaceholder: PropTypes.Requireable<string>;
|
@@ -26,6 +26,7 @@ export namespace AddSelectColumn {
|
|
26
26
|
}
|
27
27
|
export { componentName as displayName };
|
28
28
|
}
|
29
|
+
import React from 'react';
|
29
30
|
import PropTypes from 'prop-types';
|
30
31
|
declare const componentName: "AddSelectColumn";
|
31
32
|
export {};
|
@@ -14,7 +14,7 @@ export function AddSelectFilter({ appliedFilters, clearFiltersText, filterOpts,
|
|
14
14
|
primaryButtonText: any;
|
15
15
|
searchTerm: any;
|
16
16
|
secondaryButtonText: any;
|
17
|
-
}):
|
17
|
+
}): React.JSX.Element;
|
18
18
|
export namespace AddSelectFilter {
|
19
19
|
export namespace propTypes {
|
20
20
|
let appliedFilters: PropTypes.Requireable<object>;
|
@@ -35,6 +35,7 @@ export namespace AddSelectFilter {
|
|
35
35
|
}
|
36
36
|
export { componentName as displayName };
|
37
37
|
}
|
38
|
+
import React from 'react';
|
38
39
|
import PropTypes from 'prop-types';
|
39
40
|
declare const componentName: "AddSelectFilter";
|
40
41
|
export {};
|
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
import { slicedToArray as _slicedToArray, defineProperty as _defineProperty, extends as _extends, objectSpread2 as _objectSpread2 } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
9
9
|
import React__default, { useState } from 'react';
|
10
|
-
import { Search, Button, Layer, Dropdown, ButtonSet,
|
10
|
+
import { Search, Button, Layer, Dropdown, ButtonSet, DismissibleTag } from '@carbon/react';
|
11
11
|
import cx from 'classnames';
|
12
12
|
import PropTypes from '../../_virtual/index.js';
|
13
13
|
import { Filter } from '@carbon/react/icons';
|
@@ -134,15 +134,15 @@ var AddSelectFilter = function AddSelectFilter(_ref) {
|
|
134
134
|
}, primaryButtonText)))), hasFiltersApplied && /*#__PURE__*/React__default.createElement("div", {
|
135
135
|
className: "".concat(blockClass, "-applied")
|
136
136
|
}, Object.keys(appliedFilters).map(function (filterType) {
|
137
|
-
return /*#__PURE__*/React__default.createElement(
|
137
|
+
return /*#__PURE__*/React__default.createElement(DismissibleTag, {
|
138
138
|
key: filterType,
|
139
|
+
text: "".concat(filterType, ": ").concat(appliedFilters[filterType]),
|
139
140
|
type: "gray",
|
140
141
|
size: "sm",
|
141
142
|
onClose: function onClose() {
|
142
143
|
return removeTag(filterType);
|
143
|
-
}
|
144
|
-
|
145
|
-
}, "".concat(filterType, ": ").concat(appliedFilters[filterType]));
|
144
|
+
}
|
145
|
+
});
|
146
146
|
}), /*#__PURE__*/React__default.createElement(Button, {
|
147
147
|
kind: "ghost",
|
148
148
|
size: "sm",
|
@@ -3,7 +3,7 @@ export function AddSelectFormControl({ item, onClick, selected, type }: {
|
|
3
3
|
onClick: any;
|
4
4
|
selected: any;
|
5
5
|
type: any;
|
6
|
-
}):
|
6
|
+
}): React.JSX.Element;
|
7
7
|
export namespace AddSelectFormControl {
|
8
8
|
export namespace propTypes {
|
9
9
|
let item: PropTypes.Requireable<object>;
|
@@ -13,6 +13,7 @@ export namespace AddSelectFormControl {
|
|
13
13
|
}
|
14
14
|
export { componentName as displayName };
|
15
15
|
}
|
16
|
+
import React from 'react';
|
16
17
|
import PropTypes from 'prop-types';
|
17
18
|
declare const componentName: "AddSelectFormControl";
|
18
19
|
export {};
|
@@ -2,7 +2,7 @@ export function AddSelectList({ filteredItems, multi, ...rest }: {
|
|
2
2
|
[x: string]: any;
|
3
3
|
filteredItems: any;
|
4
4
|
multi: any;
|
5
|
-
}):
|
5
|
+
}): React.JSX.Element;
|
6
6
|
export namespace AddSelectList {
|
7
7
|
export namespace propTypes {
|
8
8
|
let filteredItems: PropTypes.Requireable<any[]>;
|
@@ -11,6 +11,7 @@ export namespace AddSelectList {
|
|
11
11
|
}
|
12
12
|
export { componentName as displayName };
|
13
13
|
}
|
14
|
+
import React from 'react';
|
14
15
|
import PropTypes from 'prop-types';
|
15
16
|
declare const componentName: "AddSelectList";
|
16
17
|
export {};
|
@@ -3,7 +3,7 @@ export function AddSelectMetaPanel({ closeIconDescription, meta, setDisplayMetaP
|
|
3
3
|
meta: any;
|
4
4
|
setDisplayMetaPanel: any;
|
5
5
|
title: any;
|
6
|
-
}):
|
6
|
+
}): React.JSX.Element;
|
7
7
|
export namespace AddSelectMetaPanel {
|
8
8
|
export namespace propTypes {
|
9
9
|
let closeIconDescription: PropTypes.Validator<string>;
|
@@ -17,6 +17,7 @@ export namespace AddSelectMetaPanel {
|
|
17
17
|
}
|
18
18
|
export { componentName as displayName };
|
19
19
|
}
|
20
|
+
import React from 'react';
|
20
21
|
import PropTypes from 'prop-types';
|
21
22
|
declare const componentName: "AddSelectMetaPanel";
|
22
23
|
export {};
|
@@ -19,7 +19,7 @@ export function AddSelectRow({ appliedModifiers, displayMetalPanel, index, focus
|
|
19
19
|
setSingleSelection: any;
|
20
20
|
setSize: any;
|
21
21
|
singleSelection: any;
|
22
|
-
}):
|
22
|
+
}): React.JSX.Element;
|
23
23
|
export namespace AddSelectRow {
|
24
24
|
export namespace propTypes {
|
25
25
|
let appliedModifiers: PropTypes.Requireable<any[]>;
|
@@ -46,6 +46,7 @@ export namespace AddSelectRow {
|
|
46
46
|
}
|
47
47
|
export { componentName as displayName };
|
48
48
|
}
|
49
|
+
import React from 'react';
|
49
50
|
import PropTypes from 'prop-types';
|
50
51
|
declare const componentName: "AddSelectList";
|
51
52
|
export {};
|
@@ -11,7 +11,7 @@ export function AddSelectSidebar({ appliedModifiers, closeIconDescription, displ
|
|
11
11
|
noSelectionDescription: any;
|
12
12
|
noSelectionTitle: any;
|
13
13
|
setDisplayMetaPanel: any;
|
14
|
-
}):
|
14
|
+
}): React.JSX.Element;
|
15
15
|
export namespace AddSelectSidebar {
|
16
16
|
export namespace propTypes {
|
17
17
|
let appliedModifiers: PropTypes.Requireable<any[]>;
|
@@ -29,6 +29,7 @@ export namespace AddSelectSidebar {
|
|
29
29
|
}
|
30
30
|
export { componentName as displayName };
|
31
31
|
}
|
32
|
+
import React from 'react';
|
32
33
|
import PropTypes from 'prop-types';
|
33
34
|
declare const componentName: "AddSelectSidebar";
|
34
35
|
export {};
|
@@ -9,9 +9,9 @@ import { objectWithoutProperties as _objectWithoutProperties } from '../../_virt
|
|
9
9
|
import React__default from 'react';
|
10
10
|
import { Tag, Accordion, AccordionItem } from '@carbon/react';
|
11
11
|
import PropTypes from '../../_virtual/index.js';
|
12
|
+
import { NoDataEmptyState } from '../EmptyStates/NoDataEmptyState/NoDataEmptyState.js';
|
12
13
|
import { pkg } from '../../settings.js';
|
13
14
|
import { AddSelectMetaPanel } from './AddSelectMetaPanel.js';
|
14
|
-
import { NoDataEmptyState } from '../EmptyStates/NoDataEmptyState/NoDataEmptyState.js';
|
15
15
|
|
16
16
|
var _excluded = ["meta", "icon", "avatar"];
|
17
17
|
var blockClass = "".concat(pkg.prefix, "--add-select__sidebar");
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import React from 'react';
|
1
2
|
import PropTypes from 'prop-types';
|
2
3
|
export interface AddSelectSortProps {
|
3
4
|
setSortAttribute?: (attribute: any) => void;
|
@@ -6,7 +7,7 @@ export interface AddSelectSortProps {
|
|
6
7
|
sortByLabel?: string;
|
7
8
|
}
|
8
9
|
export declare const AddSelectSort: {
|
9
|
-
({ setSortAttribute, setSortDirection, sortBy, sortByLabel, }: AddSelectSortProps):
|
10
|
+
({ setSortAttribute, setSortDirection, sortBy, sortByLabel, }: AddSelectSortProps): React.JSX.Element;
|
10
11
|
propTypes: {
|
11
12
|
setSortAttribute: PropTypes.Requireable<(...args: any[]) => any>;
|
12
13
|
setSortDirection: PropTypes.Requireable<(...args: any[]) => any>;
|
@@ -6,7 +6,7 @@ export function BreadcrumbWithOverflow({ breadcrumbs, className, maxVisible, noT
|
|
6
6
|
noTrailingSlash: any;
|
7
7
|
overflowAriaLabel: any;
|
8
8
|
overflowTooltipAlign: any;
|
9
|
-
}):
|
9
|
+
}): React.JSX.Element;
|
10
10
|
export namespace BreadcrumbWithOverflow {
|
11
11
|
export namespace propTypes {
|
12
12
|
let breadcrumbs: PropTypes.Requireable<(PropTypes.InferProps<{
|
@@ -43,6 +43,7 @@ export namespace BreadcrumbWithOverflow {
|
|
43
43
|
}
|
44
44
|
export { componentName as displayName };
|
45
45
|
}
|
46
|
+
import React from 'react';
|
46
47
|
import PropTypes from 'prop-types';
|
47
48
|
declare const componentName: "BreadcrumbWithOverflow";
|
48
49
|
export {};
|
@@ -5,7 +5,7 @@ export function ButtonSetWithOverflow({ buttons, className, onWidthChange, butto
|
|
5
5
|
buttonSetOverflowLabel: any;
|
6
6
|
menuOptionsClass: any;
|
7
7
|
rightAlign: any;
|
8
|
-
}):
|
8
|
+
}): React.JSX.Element;
|
9
9
|
export namespace ButtonSetWithOverflow {
|
10
10
|
export namespace propTypes {
|
11
11
|
let buttonSetOverflowLabel: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
@@ -17,6 +17,7 @@ export namespace ButtonSetWithOverflow {
|
|
17
17
|
}
|
18
18
|
export { componentName as displayName };
|
19
19
|
}
|
20
|
+
import React from 'react';
|
20
21
|
import PropTypes from 'prop-types';
|
21
22
|
declare const componentName: "ButtonSetWithOverflow";
|
22
23
|
export {};
|
@@ -57,10 +57,14 @@ interface CardProp extends PropsWithChildren {
|
|
57
57
|
sequence?: number;
|
58
58
|
iconDescription?: string;
|
59
59
|
/**
|
60
|
-
* **Experimental?** For all cases a `Slug` component can be provided.
|
61
60
|
* Clickable tiles only accept a boolean value of true and display a hollow slug.
|
61
|
+
* @deprecated please use the `aiLabel` prop
|
62
62
|
*/
|
63
63
|
slug?: ReactNode | boolean;
|
64
|
+
/**
|
65
|
+
* Optional prop that is intended for any scenario where something is being generated by AI to reinforce AI transparency, accountability, and explainability at the UI level.
|
66
|
+
*/
|
67
|
+
aiLabel?: ReactNode | boolean;
|
64
68
|
status?: 'complete' | 'incomplete';
|
65
69
|
title?: ReactNode;
|
66
70
|
titleSize?: 'default' | 'large';
|
@@ -16,7 +16,7 @@ import { CardFooter } from './CardFooter.js';
|
|
16
16
|
import { pkg } from '../../settings.js';
|
17
17
|
|
18
18
|
var _Incomplete, _CheckmarkOutline;
|
19
|
-
var _excluded = ["actionIcons", "actionsPlacement", "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"],
|
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
20
|
_excluded2 = ["id"],
|
21
21
|
_excluded3 = ["id", "icon", "onClick", "iconDescription", "href"];
|
22
22
|
var componentName = 'Card';
|
@@ -25,6 +25,7 @@ var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
25
25
|
actionIcons = _ref$actionIcons === void 0 ? Object.freeze([]) : _ref$actionIcons,
|
26
26
|
_ref$actionsPlacement = _ref.actionsPlacement,
|
27
27
|
actionsPlacement = _ref$actionsPlacement === void 0 ? 'bottom' : _ref$actionsPlacement,
|
28
|
+
aiLabel = _ref.aiLabel,
|
28
29
|
_ref$metadata = _ref.metadata,
|
29
30
|
metadata = _ref$metadata === void 0 ? Object.freeze([]) : _ref$metadata,
|
30
31
|
children = _ref.children,
|
@@ -166,7 +167,7 @@ var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
166
167
|
var clickable = hasClickEvent && !productive || hasClickEvent && productive && clickZone === 'one';
|
167
168
|
var cardProps = _objectSpread2(_objectSpread2({}, rest), {}, {
|
168
169
|
ref: ref,
|
169
|
-
className: cx(blockClass, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__disabled"), disabled), "".concat(blockClass, "__get-started"), getStarted), "".concat(blockClass, "__productive"), productive), "".concat(blockClass, "__clickable"), clickable), "".concat(blockClass, "__media-left"), mediaPosition === 'left'), "".concat(blockClass, "--has-slug"), !!slug), className)
|
170
|
+
className: cx(blockClass, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__disabled"), disabled), "".concat(blockClass, "__get-started"), getStarted), "".concat(blockClass, "__productive"), productive), "".concat(blockClass, "__clickable"), clickable), "".concat(blockClass, "__media-left"), mediaPosition === 'left'), "".concat(blockClass, "--has-slug"), !!slug), "".concat(blockClass, "--has-ai-label"), !!aiLabel), className)
|
170
171
|
}, clickable && clickableProps);
|
171
172
|
return cardProps;
|
172
173
|
};
|
@@ -182,6 +183,7 @@ var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
182
183
|
var getHeaderProps = function getHeaderProps() {
|
183
184
|
return {
|
184
185
|
actions: actionsPlacement === 'top' ? getActions() : '',
|
186
|
+
aiLabel: aiLabel,
|
185
187
|
noActionIcons: getIcons().length > 0 && actionsPlacement === 'top' ? false : true,
|
186
188
|
actionsPlacement: actionsPlacement,
|
187
189
|
onPrimaryButtonClick: onPrimaryButtonClick,
|
@@ -265,6 +267,10 @@ Card.propTypes = {
|
|
265
267
|
href: PropTypes.string
|
266
268
|
})),
|
267
269
|
actionsPlacement: PropTypes.oneOf(['top', 'bottom']),
|
270
|
+
/**
|
271
|
+
* Optional prop that is intended for any scenario where something is being generated by AI to reinforce AI transparency, accountability, and explainability at the UI level.
|
272
|
+
*/
|
273
|
+
aiLabel: PropTypes.oneOfType([PropTypes.node, PropTypes.bool]),
|
268
274
|
children: PropTypes.node,
|
269
275
|
className: PropTypes.string,
|
270
276
|
clickZone: PropTypes.oneOf(['one', 'two', 'three']),
|
@@ -316,6 +322,7 @@ Card.propTypes = {
|
|
316
322
|
/**
|
317
323
|
* **Experimental:** For all cases a `Slug` component can be provided.
|
318
324
|
* Clickable tiles only accept a boolean value of true and display a hollow slug.
|
325
|
+
* @deprecated please use the `aiLabel` prop
|
319
326
|
*/
|
320
327
|
slug: PropTypes.oneOfType([PropTypes.node, PropTypes.bool]),
|
321
328
|
status: PropTypes.oneOf(['complete', 'incomplete']),
|
@@ -23,7 +23,7 @@ interface CardFooterProps {
|
|
23
23
|
secondaryButtonText?: string;
|
24
24
|
}
|
25
25
|
export declare const CardFooter: {
|
26
|
-
({ actions, disabled, footerActionIcon: FooterActionIcon, hasActions, hasButton, onPrimaryButtonClick, onSecondaryButtonClick, primaryButtonDisabled, primaryButtonHref, primaryButtonIcon, primaryButtonKind, primaryButtonPlacement, primaryButtonText, productive, secondaryButtonDisabled, secondaryButtonHref, secondaryButtonIcon, secondaryButtonKind, secondaryButtonPlacement, secondaryButtonText, }: CardFooterProps):
|
26
|
+
({ actions, disabled, footerActionIcon: FooterActionIcon, hasActions, hasButton, onPrimaryButtonClick, onSecondaryButtonClick, primaryButtonDisabled, primaryButtonHref, primaryButtonIcon, primaryButtonKind, primaryButtonPlacement, primaryButtonText, productive, secondaryButtonDisabled, secondaryButtonHref, secondaryButtonIcon, secondaryButtonKind, secondaryButtonPlacement, secondaryButtonText, }: CardFooterProps): React.JSX.Element;
|
27
27
|
/**@ts-ignore */
|
28
28
|
propTypes: {
|
29
29
|
actions: PropTypes.Requireable<NonNullable<any[] | PropTypes.ReactNodeLike>>;
|
@@ -1,7 +1,11 @@
|
|
1
1
|
import React, { ReactNode } from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
interface CardHeaderProps {
|
4
|
-
actions?: ReactNode
|
4
|
+
actions?: ReactNode;
|
5
|
+
/**
|
6
|
+
* Optional prop that is intended for any scenario where something is being generated by AI to reinforce AI transparency, accountability, and explainability at the UI level.
|
7
|
+
*/
|
8
|
+
aiLabel?: ReactNode | boolean;
|
5
9
|
description?: ReactNode;
|
6
10
|
hasActions?: boolean;
|
7
11
|
/**
|
@@ -25,16 +29,21 @@ interface CardHeaderProps {
|
|
25
29
|
/**
|
26
30
|
* **Experimental:** For all cases a `Slug` component can be provided.
|
27
31
|
* Clickable tiles only accept a boolean value of true and display a hollow slug.
|
32
|
+
* @deprecated please use the `aiLabel` prop
|
28
33
|
*/
|
29
34
|
slug?: ReactNode;
|
30
35
|
title?: ReactNode;
|
31
36
|
titleSize?: 'default' | 'large';
|
32
37
|
}
|
33
38
|
export declare const CardHeader: {
|
34
|
-
({ actions, noActionIcons, onPrimaryButtonClick, onSecondaryButtonClick, primaryButtonIcon, primaryButtonPlacement, primaryButtonText, primaryButtonDisabled, description, hasActions, inClickableCard, label, secondaryButtonDisabled, secondaryButtonHref, secondaryButtonIcon, secondaryButtonPlacement, secondaryButtonText, slug, title, titleSize, }: CardHeaderProps):
|
39
|
+
({ actions, aiLabel, noActionIcons, onPrimaryButtonClick, onSecondaryButtonClick, primaryButtonIcon, primaryButtonPlacement, primaryButtonText, primaryButtonDisabled, description, hasActions, inClickableCard, label, secondaryButtonDisabled, secondaryButtonHref, secondaryButtonIcon, secondaryButtonPlacement, secondaryButtonText, slug, title, titleSize, }: CardHeaderProps): React.JSX.Element;
|
35
40
|
/**@ts-ignore */
|
36
41
|
propTypes: {
|
37
42
|
actions: PropTypes.Requireable<NonNullable<any[] | PropTypes.ReactNodeLike>>;
|
43
|
+
/**
|
44
|
+
* Optional prop that is intended for any scenario where something is being generated by AI to reinforce AI transparency, accountability, and explainability at the UI level.
|
45
|
+
*/
|
46
|
+
aiLabel: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
38
47
|
description: PropTypes.Requireable<NonNullable<object | PropTypes.ReactNodeLike>>;
|
39
48
|
hasActions: PropTypes.Requireable<boolean>;
|
40
49
|
/**
|
@@ -58,6 +67,7 @@ export declare const CardHeader: {
|
|
58
67
|
/**
|
59
68
|
* **Experimental:** For all cases a `Slug` component can be provided.
|
60
69
|
* Clickable tiles only accept a boolean value of true and display a hollow slug.
|
70
|
+
* @deprecated please use the `aiLabel` prop
|
61
71
|
*/
|
62
72
|
slug: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
63
73
|
title: PropTypes.Requireable<NonNullable<object | PropTypes.ReactNodeLike>>;
|
@@ -20,6 +20,7 @@ var defaults = {
|
|
20
20
|
};
|
21
21
|
var CardHeader = function CardHeader(_ref) {
|
22
22
|
var actions = _ref.actions,
|
23
|
+
aiLabel = _ref.aiLabel,
|
23
24
|
noActionIcons = _ref.noActionIcons,
|
24
25
|
onPrimaryButtonClick = _ref.onPrimaryButtonClick,
|
25
26
|
onSecondaryButtonClick = _ref.onSecondaryButtonClick,
|
@@ -47,8 +48,9 @@ var CardHeader = function CardHeader(_ref) {
|
|
47
48
|
var headerClasses = cx(headerClass, _defineProperty(_defineProperty(_defineProperty({}, "".concat(headerClass, "-label-only"), label && !title && !description), "".concat(headerClass, "-has-label"), !!label), "".concat(blockClass, "__title-lg"), titleSize === 'large'));
|
48
49
|
var actionGhostButton = "".concat(blockClass, "__actions-header-ghost-button");
|
49
50
|
var actionGhostButtonClass = cx(actionGhostButton, _defineProperty({}, "".concat(actionGhostButton, "--only"), noActionIcons));
|
50
|
-
var
|
51
|
-
className: "".concat(carbonPrefix, "--slug ").concat(carbonPrefix, "--slug-icon")
|
51
|
+
var hollowAiIcon = /*#__PURE__*/React__default.createElement("svg", {
|
52
|
+
className: "".concat(carbonPrefix, "--slug ").concat(carbonPrefix, "--slug-icon") // NOTE: We cannot change this to ai-label until carbon changes their classnames on their end
|
53
|
+
,
|
52
54
|
width: "24",
|
53
55
|
height: "24",
|
54
56
|
viewBox: "0 0 24 24",
|
@@ -63,12 +65,13 @@ var CardHeader = function CardHeader(_ref) {
|
|
63
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",
|
64
66
|
fill: "#161616"
|
65
67
|
})));
|
66
|
-
var
|
67
|
-
if (slug) {
|
68
|
-
if (inClickableCard || typeof slug === 'boolean') {
|
69
|
-
|
68
|
+
var normalizedAiLabel = null;
|
69
|
+
if (aiLabel || slug) {
|
70
|
+
if (inClickableCard || typeof aiLabel === 'boolean' || typeof slug === 'boolean') {
|
71
|
+
normalizedAiLabel = hollowAiIcon;
|
70
72
|
} else {
|
71
|
-
|
73
|
+
var element = aiLabel || slug;
|
74
|
+
normalizedAiLabel = /*#__PURE__*/React__default.cloneElement(element, {
|
72
75
|
size: label && title || title && titleSize === 'large' ? 'sm' : 'xs'
|
73
76
|
});
|
74
77
|
}
|
@@ -76,7 +79,7 @@ var CardHeader = function CardHeader(_ref) {
|
|
76
79
|
return /*#__PURE__*/React__default.createElement("div", {
|
77
80
|
className: headerClasses
|
78
81
|
}, /*#__PURE__*/React__default.createElement("div", {
|
79
|
-
className: cx(["".concat(headerClass, "-container"), _defineProperty({}, "".concat(headerClass, "-container--has-slug"), !!slug), _defineProperty({}, "".concat(headerClass, "-container--has-actions"), !!hasActions), _defineProperty({}, "".concat(headerClass, "-container--large-tile-or-label"), title && (label || titleSize === 'large'))])
|
82
|
+
className: cx(["".concat(headerClass, "-container"), _defineProperty({}, "".concat(headerClass, "-container--has-slug"), !!slug), _defineProperty({}, "".concat(headerClass, "-container--has-ai-label"), !!aiLabel), _defineProperty({}, "".concat(headerClass, "-container--has-actions"), !!hasActions), _defineProperty({}, "".concat(headerClass, "-container--large-tile-or-label"), title && (label || titleSize === 'large'))])
|
80
83
|
}, /*#__PURE__*/React__default.createElement("div", {
|
81
84
|
className: "".concat(blockClass, "__title-container")
|
82
85
|
}, label && /*#__PURE__*/React__default.createElement("p", {
|
@@ -102,11 +105,15 @@ var CardHeader = function CardHeader(_ref) {
|
|
102
105
|
onClick: onPrimaryButtonClick,
|
103
106
|
className: actionGhostButtonClass,
|
104
107
|
disabled: primaryButtonDisabled
|
105
|
-
}, primaryButtonText)),
|
108
|
+
}, primaryButtonText)), normalizedAiLabel));
|
106
109
|
};
|
107
110
|
/**@ts-ignore */
|
108
111
|
CardHeader.propTypes = {
|
109
112
|
actions: PropTypes.oneOfType([PropTypes.array, PropTypes.node]),
|
113
|
+
/**
|
114
|
+
* Optional prop that is intended for any scenario where something is being generated by AI to reinforce AI transparency, accountability, and explainability at the UI level.
|
115
|
+
*/
|
116
|
+
aiLabel: PropTypes.oneOfType([PropTypes.node, PropTypes.bool]),
|
110
117
|
description: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.node]),
|
111
118
|
hasActions: PropTypes.bool,
|
112
119
|
/**
|
@@ -130,6 +137,7 @@ CardHeader.propTypes = {
|
|
130
137
|
/**
|
131
138
|
* **Experimental:** For all cases a `Slug` component can be provided.
|
132
139
|
* Clickable tiles only accept a boolean value of true and display a hollow slug.
|
140
|
+
* @deprecated please use the `aiLabel` prop
|
133
141
|
*/
|
134
142
|
slug: PropTypes.oneOfType([PropTypes.node, PropTypes.bool]),
|
135
143
|
title: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.node]),
|
@@ -12,6 +12,7 @@ import { CarouselItem } from './CarouselItem.js';
|
|
12
12
|
import cx from 'classnames';
|
13
13
|
import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
|
14
14
|
import { pkg } from '../../settings.js';
|
15
|
+
import { useIsomorphicEffect } from '../../global/js/hooks/useIsomorphicEffect.js';
|
15
16
|
|
16
17
|
var _excluded = ["children", "className", "disableArrowScroll", "fadedEdgeColor", "onChangeIsScrollable", "onScroll"];
|
17
18
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
@@ -54,6 +55,8 @@ var Carousel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
54
55
|
rest = _objectWithoutProperties(_ref, _excluded);
|
55
56
|
var carouselRef = useRef(null);
|
56
57
|
var scrollRef = useRef(null);
|
58
|
+
var leftFadedEdgeRef = useRef(null);
|
59
|
+
var rightFadedEdgeRef = useRef(null);
|
57
60
|
// Array of refs used to reference this component's children DOM elements
|
58
61
|
var childElementsRef = useRef(Array(React__default.Children.count(children)).fill(useRef(null)));
|
59
62
|
var leftFadedEdgeColor = _typeof(fadedEdgeColor) === 'object' ? fadedEdgeColor === null || fadedEdgeColor === void 0 ? void 0 : fadedEdgeColor.left : fadedEdgeColor;
|
@@ -264,6 +267,16 @@ var Carousel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
264
267
|
}
|
265
268
|
};
|
266
269
|
}, [handleScrollNext, handleScrollPrev, handleScrollReset, handleScrollToView]);
|
270
|
+
useIsomorphicEffect(function () {
|
271
|
+
if (leftFadedEdgeRef !== null && leftFadedEdgeRef !== void 0 && leftFadedEdgeRef.current && leftFadedEdgeRef.current.style) {
|
272
|
+
leftFadedEdgeRef.current.style.background = "linear-gradient(90deg, ".concat(leftFadedEdgeColor, ", transparent)");
|
273
|
+
}
|
274
|
+
}, [leftFadedEdgeRef, leftFadedEdgeColor]);
|
275
|
+
useIsomorphicEffect(function () {
|
276
|
+
if (rightFadedEdgeRef !== null && rightFadedEdgeRef !== void 0 && rightFadedEdgeRef.current && rightFadedEdgeRef.current.style) {
|
277
|
+
rightFadedEdgeRef.current.style.background = "linear-gradient(270deg, ".concat(rightFadedEdgeColor, ", transparent)");
|
278
|
+
}
|
279
|
+
}, [rightFadedEdgeRef, rightFadedEdgeColor]);
|
267
280
|
return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
|
268
281
|
tabIndex: -1,
|
269
282
|
className: cx(blockClass, className),
|
@@ -281,15 +294,11 @@ var Carousel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
281
294
|
}
|
282
295
|
}, child);
|
283
296
|
})), leftFadedEdgeColor && /*#__PURE__*/React__default.createElement("div", {
|
284
|
-
|
285
|
-
|
286
|
-
background: "linear-gradient(90deg, ".concat(leftFadedEdgeColor, ", transparent)")
|
287
|
-
}
|
297
|
+
ref: leftFadedEdgeRef,
|
298
|
+
className: "".concat(blockClass, "__elements-container--scrolled")
|
288
299
|
}), rightFadedEdgeColor && /*#__PURE__*/React__default.createElement("div", {
|
289
|
-
|
290
|
-
|
291
|
-
background: "linear-gradient(270deg, ".concat(rightFadedEdgeColor, ", transparent)")
|
292
|
-
}
|
300
|
+
ref: rightFadedEdgeRef,
|
301
|
+
className: "".concat(blockClass, "__elements-container--scroll-max")
|
293
302
|
})));
|
294
303
|
});
|
295
304
|
Carousel.displayName = componentName;
|
@@ -5,8 +5,8 @@
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
7
|
|
8
|
-
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
9
|
-
import React__default from 'react';
|
8
|
+
import { objectWithoutProperties as _objectWithoutProperties, createForOfIteratorHelper as _createForOfIteratorHelper, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
9
|
+
import React__default, { useEffect } from 'react';
|
10
10
|
import PropTypes from '../../_virtual/index.js';
|
11
11
|
import cx from 'classnames';
|
12
12
|
import clamp from 'lodash/clamp';
|
@@ -38,12 +38,28 @@ function (_ref, ref) {
|
|
38
38
|
var numDegrees = clamp(value * 360, 0, 360);
|
39
39
|
var circleColor = theme === Themes.light ? gray20 : gray70; // $ui-03 (-ish)
|
40
40
|
var progressColor = purple50;
|
41
|
+
useEffect(function () {
|
42
|
+
var ele = document.getElementsByClassName("".concat(blockClass));
|
43
|
+
setTimeout(function () {
|
44
|
+
var _iterator = _createForOfIteratorHelper(ele),
|
45
|
+
_step;
|
46
|
+
try {
|
47
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
48
|
+
var el = _step.value;
|
49
|
+
if (el instanceof HTMLElement) {
|
50
|
+
el.style.setProperty('background-image', "conic-gradient(".concat(progressColor, " ").concat(numDegrees, "deg, ").concat(circleColor, " ").concat(numDegrees, "deg 360deg)"));
|
51
|
+
el.style.setProperty('border-radius', '50%');
|
52
|
+
}
|
53
|
+
}
|
54
|
+
} catch (err) {
|
55
|
+
_iterator.e(err);
|
56
|
+
} finally {
|
57
|
+
_iterator.f();
|
58
|
+
}
|
59
|
+
}, 0);
|
60
|
+
});
|
41
61
|
return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
|
42
62
|
className: cx(blockClass, className),
|
43
|
-
style: {
|
44
|
-
backgroundImage: "conic-gradient(".concat(progressColor, " ").concat(numDegrees, "deg, ").concat(circleColor, " ").concat(numDegrees, "deg 360deg)"),
|
45
|
-
borderRadius: '50%'
|
46
|
-
},
|
47
63
|
ref: ref,
|
48
64
|
role: "img"
|
49
65
|
}, getDevtoolsProps(componentName)));
|