@carbon/ibm-products 2.74.0-rc.0 → 2.75.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/css/carbon.css +349 -63
- package/css/carbon.css.map +1 -1
- package/css/index-full-carbon.css +351 -80
- 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 +2 -17
- 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 +2 -17
- 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 +204 -60
- 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/APIKeyModal.d.ts +1 -1
- package/es/components/APIKeyModal/APIKeyModal.js +2 -2
- package/es/components/AboutModal/AboutModal.d.ts +1 -1
- package/es/components/AboutModal/AboutModal.js +1 -2
- package/es/components/ActionBar/ActionBar.d.ts +1 -1
- package/es/components/ActionBar/ActionBar.js +1 -2
- package/es/components/ActionBar/ActionBarItem.d.ts +1 -1
- package/es/components/ActionBar/ActionBarItem.js +1 -2
- package/es/components/BigNumber/BigNumber.d.ts +1 -1
- package/es/components/BigNumber/BigNumber.js +1 -4
- package/es/components/BigNumber/index.js +8 -0
- package/es/components/Cascade/Cascade.d.ts +1 -1
- package/es/components/Cascade/Cascade.js +1 -2
- package/es/components/Checklist/Checklist.d.ts +1 -1
- package/es/components/Checklist/Checklist.js +1 -2
- package/es/components/Coachmark/Coachmark.d.ts +1 -1
- package/es/components/Coachmark/Coachmark.js +1 -2
- package/es/components/Coachmark/CoachmarkDragbar.d.ts +1 -1
- package/es/components/Coachmark/CoachmarkDragbar.js +1 -2
- package/es/components/Coachmark/CoachmarkHeader.d.ts +1 -1
- package/es/components/Coachmark/CoachmarkHeader.js +1 -2
- package/es/components/Coachmark/CoachmarkOverlay.d.ts +1 -1
- package/es/components/Coachmark/CoachmarkOverlay.js +1 -2
- package/es/components/Coachmark/CoachmarkTagline.d.ts +1 -1
- package/es/components/Coachmark/CoachmarkTagline.js +1 -2
- package/es/components/Coachmark/next/Coachmark/index.js +8 -0
- package/es/components/Coachmark/utils/enums.js +5 -1
- package/es/components/CoachmarkBeacon/CoachmarkBeacon.d.ts +1 -1
- package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -2
- package/es/components/CoachmarkButton/CoachmarkButton.d.ts +1 -1
- package/es/components/CoachmarkButton/CoachmarkButton.js +1 -2
- package/es/components/CoachmarkFixed/CoachmarkFixed.d.ts +1 -1
- package/es/components/CoachmarkFixed/CoachmarkFixed.js +1 -2
- package/es/components/CoachmarkOverlayElement/CoachmarkOverlayElement.d.ts +1 -1
- package/es/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +1 -4
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +1 -1
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +1 -4
- package/es/components/CoachmarkStack/CoachmarkStack.d.ts +1 -1
- package/es/components/CoachmarkStack/CoachmarkStack.js +1 -2
- package/es/components/CoachmarkStack/CoachmarkStackHome.d.ts +1 -1
- package/es/components/CoachmarkStack/CoachmarkStackHome.js +1 -4
- package/es/components/ConditionBuilder/ConditionBuilder.d.ts +1 -1
- package/es/components/ConditionBuilder/ConditionBuilder.js +1 -3
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +6 -0
- package/es/components/ConditionBuilder/index.js +8 -0
- package/es/components/CreateFullPage/CreateFullPage.d.ts +1 -1
- package/es/components/CreateFullPage/CreateFullPage.js +1 -2
- package/es/components/CreateFullPage/CreateFullPageStep.d.ts +1 -1
- package/es/components/CreateFullPage/CreateFullPageStep.js +1 -4
- package/es/components/CreateModal/CreateModal.d.ts +1 -1
- package/es/components/CreateModal/CreateModal.js +2 -2
- package/es/components/CreateSidePanel/CreateSidePanel.d.ts +1 -1
- package/es/components/CreateSidePanel/CreateSidePanel.js +1 -2
- package/es/components/CreateTearsheet/CreateTearsheet.d.ts +1 -1
- package/es/components/CreateTearsheet/CreateTearsheet.js +1 -2
- package/es/components/CreateTearsheet/CreateTearsheetDivider.d.ts +1 -1
- package/es/components/CreateTearsheet/CreateTearsheetDivider.js +1 -5
- package/es/components/CreateTearsheet/CreateTearsheetStep.d.ts +1 -1
- package/es/components/CreateTearsheet/CreateTearsheetStep.js +1 -4
- package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.d.ts +1 -1
- package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -4
- package/es/components/DataSpreadsheet/DataSpreadsheet.d.ts +1 -1
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +1 -2
- package/es/components/DataSpreadsheet/index.js +8 -0
- package/es/components/Datagrid/Datagrid/Datagrid.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/Datagrid.js +1 -2
- package/es/components/Decorator/index.js +8 -0
- package/es/components/DecoratorBase/utils.d.ts +1 -1
- package/es/components/DelimitedList/DelimitedList.d.ts +1 -1
- package/es/components/DelimitedList/DelimitedList.js +1 -2
- package/es/components/DelimitedList/index.js +8 -0
- package/es/components/EditFullPage/EditFullPage.d.ts +1 -1
- package/es/components/EditFullPage/EditFullPage.js +1 -2
- package/es/components/EditInPlace/EditInPlace.d.ts +1 -1
- package/es/components/EditInPlace/EditInPlace.js +1 -2
- package/es/components/EditSidePanel/EditSidePanel.d.ts +1 -1
- package/es/components/EditSidePanel/EditSidePanel.js +1 -2
- package/es/components/EditTearsheet/EditTearsheet.d.ts +1 -1
- package/es/components/EditTearsheet/EditTearsheet.js +1 -2
- package/es/components/EditTearsheet/EditTearsheetForm.d.ts +1 -1
- package/es/components/EditTearsheet/EditTearsheetForm.js +2 -2
- package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.d.ts +1 -1
- package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.js +1 -4
- package/es/components/EditUpdateCards/EditUpdateCards.d.ts +1 -1
- package/es/components/EditUpdateCards/EditUpdateCards.js +1 -2
- package/es/components/EmptyStates/EmptyState.d.ts +1 -1
- package/es/components/EmptyStates/EmptyState.js +2 -2
- package/es/components/EmptyStates/EmptyStateV2.deprecated.d.ts +1 -1
- package/es/components/EmptyStates/EmptyStateV2.deprecated.js +2 -2
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +1 -1
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -2
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +1 -1
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -2
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +1 -1
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -2
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +1 -1
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -4
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +1 -1
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -4
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +1 -1
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -4
- package/es/components/ExportModal/ExportModal.d.ts +1 -1
- package/es/components/ExportModal/ExportModal.js +2 -2
- package/es/components/ExpressiveCard/ExpressiveCard.d.ts +1 -1
- package/es/components/ExpressiveCard/ExpressiveCard.js +2 -3
- package/es/components/FullPageError/FullPageError.d.ts +1 -1
- package/es/components/FullPageError/FullPageError.js +1 -2
- package/es/components/GetStartedCard/GetStartedCard.d.ts +1 -1
- package/es/components/GetStartedCard/GetStartedCard.js +2 -3
- package/es/components/GetStartedCard/index.js +8 -0
- package/es/components/Guidebanner/Guidebanner.d.ts +1 -1
- package/es/components/Guidebanner/Guidebanner.js +1 -2
- package/es/components/Guidebanner/GuidebannerElement.d.ts +1 -1
- package/es/components/Guidebanner/GuidebannerElement.js +1 -4
- package/es/components/Guidebanner/GuidebannerElementButton.d.ts +1 -1
- package/es/components/Guidebanner/GuidebannerElementButton.js +1 -4
- package/es/components/Guidebanner/GuidebannerElementLink.d.ts +1 -1
- package/es/components/Guidebanner/GuidebannerElementLink.js +1 -4
- package/es/components/HTTPErrors/HTTPError403/HTTPError403.d.ts +1 -1
- package/es/components/HTTPErrors/HTTPError403/HTTPError403.js +1 -2
- package/es/components/HTTPErrors/HTTPError404/HTTPError404.d.ts +1 -1
- package/es/components/HTTPErrors/HTTPError404/HTTPError404.js +1 -2
- package/es/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.d.ts +1 -1
- package/es/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +1 -2
- package/es/components/ImportModal/ImportModal.d.ts +1 -1
- package/es/components/ImportModal/ImportModal.js +2 -2
- package/es/components/InlineTip/InlineTip.d.ts +1 -1
- package/es/components/InlineTip/InlineTip.js +1 -2
- package/es/components/InlineTip/InlineTipButton.d.ts +1 -1
- package/es/components/InlineTip/InlineTipButton.js +1 -2
- package/es/components/InlineTip/InlineTipLink.d.ts +1 -1
- package/es/components/InlineTip/InlineTipLink.js +1 -2
- package/es/components/InterstitialScreen/InterstitialScreen.d.ts +1 -1
- package/es/components/InterstitialScreen/InterstitialScreen.js +1 -4
- package/es/components/InterstitialScreen/_story-assets/InterstitialScreenView/InterstitialScreenView.d.ts +2 -2
- package/es/components/InterstitialScreen/_story-assets/InterstitialScreenViewModule/InterstitialScreenViewModule.d.ts +2 -2
- package/es/components/MultiAddSelect/MultiAddSelect.d.ts +1 -1
- package/es/components/MultiAddSelect/MultiAddSelect.js +1 -3
- package/es/components/NonLinearReading/NonLinearReading.d.ts +1 -1
- package/es/components/NonLinearReading/NonLinearReading.js +1 -2
- package/es/components/NonLinearReading/index.js +8 -0
- package/es/components/NotificationsPanel/NotificationsPanel.d.ts +1 -1
- package/es/components/NotificationsPanel/NotificationsPanel.js +1 -4
- package/es/components/OptionsTile/OptionsTile.d.ts +1 -1
- package/es/components/OptionsTile/OptionsTile.js +1 -2
- package/es/components/PageHeader/PageHeader.d.ts +1 -1
- package/es/components/PageHeader/PageHeader.js +1 -2
- package/es/components/ProductiveCard/ProductiveCard.d.ts +1 -1
- package/es/components/ProductiveCard/ProductiveCard.js +2 -3
- package/es/components/RemoveModal/RemoveModal.d.ts +1 -1
- package/es/components/RemoveModal/RemoveModal.js +2 -2
- package/es/components/Saving/Saving.d.ts +1 -1
- package/es/components/Saving/Saving.js +1 -2
- package/es/components/SearchBar/SearchBar.d.ts +1 -1
- package/es/components/SearchBar/SearchBar.js +1 -2
- package/es/components/SearchBar/index.js +8 -0
- package/es/components/SidePanel/SidePanel.d.ts +4 -1
- package/es/components/SidePanel/SidePanel.js +4 -6
- package/es/components/SingleAddSelect/SingleAddSelect.d.ts +1 -1
- package/es/components/SingleAddSelect/SingleAddSelect.js +1 -3
- package/es/components/StatusIcon/StatusIcon.d.ts +1 -1
- package/es/components/StatusIcon/StatusIcon.js +1 -2
- package/es/components/StepFlow/story-assets/SidePanel/StepSidePanel.d.ts +4 -3
- package/es/components/TagOverflow/TagOverflow.d.ts +1 -1
- package/es/components/TagOverflow/TagOverflow.js +1 -2
- package/es/components/TagSet/TagSet.d.ts +1 -1
- package/es/components/TagSet/TagSet.js +2 -3
- package/es/components/Tearsheet/Tearsheet.d.ts +1 -1
- package/es/components/Tearsheet/Tearsheet.js +1 -3
- package/es/components/Tearsheet/TearsheetNarrow.d.ts +1 -1
- package/es/components/Tearsheet/TearsheetNarrow.js +1 -3
- package/es/components/Toolbar/Toolbar.d.ts +2 -2
- package/es/components/Toolbar/Toolbar.js +1 -2
- package/es/components/Toolbar/ToolbarButton.d.ts +1 -1
- package/es/components/Toolbar/ToolbarButton.js +1 -3
- package/es/components/Toolbar/ToolbarGroup.d.ts +1 -1
- package/es/components/Toolbar/ToolbarGroup.js +1 -3
- package/es/components/TooltipTrigger/TooltipTrigger.d.ts +1 -1
- package/es/components/TooltipTrigger/TooltipTrigger.js +1 -2
- package/es/components/TruncatedList/TruncatedList.d.ts +1 -1
- package/es/components/TruncatedList/TruncatedList.js +1 -2
- package/es/components/TruncatedList/index.js +8 -0
- package/es/components/UserAvatar/UserAvatar.d.ts +1 -1
- package/es/components/UserAvatar/UserAvatar.js +1 -2
- package/es/components/UserProfileImage/UserProfileImage.d.ts +1 -1
- package/es/components/UserProfileImage/UserProfileImage.js +2 -2
- package/es/components/WebTerminal/WebTerminal.d.ts +1 -1
- package/es/components/WebTerminal/WebTerminal.js +1 -2
- package/es/components/WebTerminal/WebTerminalContentWrapper.d.ts +1 -1
- package/es/components/WebTerminal/WebTerminalContentWrapper.js +1 -4
- package/es/components/WebTerminal/hooks/index.d.ts +1 -1
- package/es/components/WebTerminal/hooks/index.js +2 -7
- package/es/components/index.d.ts +53 -43
- package/es/global/js/utils/carousel/carousel.d.ts +14 -0
- package/es/global/js/utils/carousel/index.d.ts +8 -0
- package/es/global/js/utils/carousel/swipeEvents.d.ts +7 -0
- package/es/global/js/utils/carousel/types.d.ts +37 -0
- package/es/global/js/utils/makeDraggable/makeDraggable.d.ts +20 -1
- package/es/global/js/utils/makeDraggable/makeDraggable.js +35 -22
- package/es/global/js/utils/makeDraggable/makeDraggable.stories.d.ts +1 -1
- package/es/index.js +69 -58
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-10.js +798 -792
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-3.js +528 -529
- package/lib/components/APIKeyModal/APIKeyModal.d.ts +1 -1
- package/lib/components/APIKeyModal/APIKeyModal.js +5 -4
- package/lib/components/AboutModal/AboutModal.d.ts +1 -1
- package/lib/components/AboutModal/AboutModal.js +5 -4
- package/lib/components/ActionBar/ActionBar.d.ts +1 -1
- package/lib/components/ActionBar/ActionBar.js +5 -4
- package/lib/components/ActionBar/ActionBarItem.d.ts +1 -1
- package/lib/components/ActionBar/ActionBarItem.js +5 -4
- package/lib/components/BigNumber/BigNumber.d.ts +1 -1
- package/lib/components/BigNumber/BigNumber.js +5 -6
- package/lib/components/BigNumber/index.js +14 -0
- package/lib/components/Cascade/Cascade.d.ts +1 -1
- package/lib/components/Cascade/Cascade.js +5 -4
- package/lib/components/Checklist/Checklist.d.ts +1 -1
- package/lib/components/Checklist/Checklist.js +5 -4
- package/lib/components/Coachmark/Coachmark.d.ts +1 -1
- package/lib/components/Coachmark/Coachmark.js +4 -4
- package/lib/components/Coachmark/CoachmarkDragbar.d.ts +1 -1
- package/lib/components/Coachmark/CoachmarkDragbar.js +5 -4
- package/lib/components/Coachmark/CoachmarkHeader.d.ts +1 -1
- package/lib/components/Coachmark/CoachmarkHeader.js +5 -4
- package/lib/components/Coachmark/CoachmarkOverlay.d.ts +1 -1
- package/lib/components/Coachmark/CoachmarkOverlay.js +6 -5
- package/lib/components/Coachmark/CoachmarkTagline.d.ts +1 -1
- package/lib/components/Coachmark/CoachmarkTagline.js +5 -4
- package/lib/components/Coachmark/next/Coachmark/index.js +14 -0
- package/lib/components/Coachmark/utils/enums.js +5 -0
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.d.ts +1 -1
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +5 -4
- package/lib/components/CoachmarkButton/CoachmarkButton.d.ts +1 -1
- package/lib/components/CoachmarkButton/CoachmarkButton.js +6 -5
- package/lib/components/CoachmarkFixed/CoachmarkFixed.d.ts +1 -1
- package/lib/components/CoachmarkFixed/CoachmarkFixed.js +5 -4
- package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.d.ts +1 -1
- package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +6 -7
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +1 -1
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +6 -7
- package/lib/components/CoachmarkStack/CoachmarkStack.d.ts +1 -1
- package/lib/components/CoachmarkStack/CoachmarkStack.js +5 -4
- package/lib/components/CoachmarkStack/CoachmarkStackHome.d.ts +1 -1
- package/lib/components/CoachmarkStack/CoachmarkStackHome.js +5 -6
- package/lib/components/ConditionBuilder/ConditionBuilder.d.ts +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilder.js +5 -5
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +6 -0
- package/lib/components/ConditionBuilder/index.js +14 -0
- package/lib/components/CreateFullPage/CreateFullPage.d.ts +1 -1
- package/lib/components/CreateFullPage/CreateFullPage.js +4 -4
- package/lib/components/CreateFullPage/CreateFullPageStep.d.ts +1 -1
- package/lib/components/CreateFullPage/CreateFullPageStep.js +4 -5
- package/lib/components/CreateModal/CreateModal.d.ts +1 -1
- package/lib/components/CreateModal/CreateModal.js +6 -4
- package/lib/components/CreateSidePanel/CreateSidePanel.d.ts +1 -1
- package/lib/components/CreateSidePanel/CreateSidePanel.js +5 -4
- package/lib/components/CreateTearsheet/CreateTearsheet.d.ts +1 -1
- package/lib/components/CreateTearsheet/CreateTearsheet.js +4 -4
- package/lib/components/CreateTearsheet/CreateTearsheetDivider.d.ts +1 -1
- package/lib/components/CreateTearsheet/CreateTearsheetDivider.js +4 -6
- package/lib/components/CreateTearsheet/CreateTearsheetStep.d.ts +1 -1
- package/lib/components/CreateTearsheet/CreateTearsheetStep.js +4 -5
- package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.d.ts +1 -1
- package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +5 -6
- package/lib/components/DataSpreadsheet/DataSpreadsheet.d.ts +1 -1
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +5 -4
- package/lib/components/DataSpreadsheet/index.js +14 -0
- package/lib/components/Datagrid/Datagrid/Datagrid.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/Datagrid.js +6 -5
- package/lib/components/Decorator/index.js +17 -0
- package/lib/components/DecoratorBase/utils.d.ts +1 -1
- package/lib/components/DelimitedList/DelimitedList.d.ts +1 -1
- package/lib/components/DelimitedList/DelimitedList.js +5 -4
- package/lib/components/DelimitedList/index.js +14 -0
- package/lib/components/EditFullPage/EditFullPage.d.ts +1 -1
- package/lib/components/EditFullPage/EditFullPage.js +6 -5
- package/lib/components/EditInPlace/EditInPlace.d.ts +1 -1
- package/lib/components/EditInPlace/EditInPlace.js +4 -4
- package/lib/components/EditSidePanel/EditSidePanel.d.ts +1 -1
- package/lib/components/EditSidePanel/EditSidePanel.js +6 -5
- package/lib/components/EditTearsheet/EditTearsheet.d.ts +1 -1
- package/lib/components/EditTearsheet/EditTearsheet.js +5 -5
- package/lib/components/EditTearsheet/EditTearsheetForm.d.ts +1 -1
- package/lib/components/EditTearsheet/EditTearsheetForm.js +5 -3
- package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.d.ts +1 -1
- package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.js +6 -7
- package/lib/components/EditUpdateCards/EditUpdateCards.d.ts +1 -1
- package/lib/components/EditUpdateCards/EditUpdateCards.js +6 -5
- package/lib/components/EmptyStates/EmptyState.d.ts +1 -1
- package/lib/components/EmptyStates/EmptyState.js +5 -4
- package/lib/components/EmptyStates/EmptyStateV2.deprecated.d.ts +1 -1
- package/lib/components/EmptyStates/EmptyStateV2.deprecated.js +7 -5
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +1 -1
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +5 -4
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +1 -1
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +5 -4
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +1 -1
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +5 -4
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +1 -1
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +5 -6
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +1 -1
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +5 -6
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +1 -1
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +5 -6
- package/lib/components/ExportModal/ExportModal.d.ts +1 -1
- package/lib/components/ExportModal/ExportModal.js +6 -4
- package/lib/components/ExpressiveCard/ExpressiveCard.d.ts +1 -1
- package/lib/components/ExpressiveCard/ExpressiveCard.js +6 -5
- package/lib/components/FullPageError/FullPageError.d.ts +1 -1
- package/lib/components/FullPageError/FullPageError.js +5 -4
- package/lib/components/GetStartedCard/GetStartedCard.d.ts +1 -1
- package/lib/components/GetStartedCard/GetStartedCard.js +6 -5
- package/lib/components/GetStartedCard/index.js +14 -0
- package/lib/components/Guidebanner/Guidebanner.d.ts +1 -1
- package/lib/components/Guidebanner/Guidebanner.js +5 -4
- package/lib/components/Guidebanner/GuidebannerElement.d.ts +1 -1
- package/lib/components/Guidebanner/GuidebannerElement.js +5 -6
- package/lib/components/Guidebanner/GuidebannerElementButton.d.ts +1 -1
- package/lib/components/Guidebanner/GuidebannerElementButton.js +5 -6
- package/lib/components/Guidebanner/GuidebannerElementLink.d.ts +1 -1
- package/lib/components/Guidebanner/GuidebannerElementLink.js +5 -6
- package/lib/components/HTTPErrors/HTTPError403/HTTPError403.d.ts +1 -1
- package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +6 -5
- package/lib/components/HTTPErrors/HTTPError404/HTTPError404.d.ts +1 -1
- package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +6 -5
- package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.d.ts +1 -1
- package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +6 -5
- package/lib/components/ImportModal/ImportModal.d.ts +1 -1
- package/lib/components/ImportModal/ImportModal.js +6 -4
- package/lib/components/InlineTip/InlineTip.d.ts +1 -1
- package/lib/components/InlineTip/InlineTip.js +5 -4
- package/lib/components/InlineTip/InlineTipButton.d.ts +1 -1
- package/lib/components/InlineTip/InlineTipButton.js +5 -4
- package/lib/components/InlineTip/InlineTipLink.d.ts +1 -1
- package/lib/components/InlineTip/InlineTipLink.js +5 -4
- package/lib/components/InterstitialScreen/InterstitialScreen.d.ts +1 -1
- package/lib/components/InterstitialScreen/InterstitialScreen.js +8 -9
- package/lib/components/InterstitialScreen/_story-assets/InterstitialScreenView/InterstitialScreenView.d.ts +2 -2
- package/lib/components/InterstitialScreen/_story-assets/InterstitialScreenViewModule/InterstitialScreenViewModule.d.ts +2 -2
- package/lib/components/MultiAddSelect/MultiAddSelect.d.ts +1 -1
- package/lib/components/MultiAddSelect/MultiAddSelect.js +5 -5
- package/lib/components/NonLinearReading/NonLinearReading.d.ts +1 -1
- package/lib/components/NonLinearReading/NonLinearReading.js +5 -4
- package/lib/components/NonLinearReading/index.js +14 -0
- package/lib/components/NotificationsPanel/NotificationsPanel.d.ts +1 -1
- package/lib/components/NotificationsPanel/NotificationsPanel.js +5 -6
- package/lib/components/OptionsTile/OptionsTile.d.ts +1 -1
- package/lib/components/OptionsTile/OptionsTile.js +5 -4
- package/lib/components/PageHeader/PageHeader.d.ts +1 -1
- package/lib/components/PageHeader/PageHeader.js +5 -5
- package/lib/components/ProductiveCard/ProductiveCard.d.ts +1 -1
- package/lib/components/ProductiveCard/ProductiveCard.js +6 -5
- package/lib/components/RemoveModal/RemoveModal.d.ts +1 -1
- package/lib/components/RemoveModal/RemoveModal.js +6 -4
- package/lib/components/Saving/Saving.d.ts +1 -1
- package/lib/components/Saving/Saving.js +5 -4
- package/lib/components/SearchBar/SearchBar.d.ts +1 -1
- package/lib/components/SearchBar/SearchBar.js +4 -4
- package/lib/components/SearchBar/index.js +14 -0
- package/lib/components/SidePanel/SidePanel.d.ts +4 -1
- package/lib/components/SidePanel/SidePanel.js +3 -5
- package/lib/components/SingleAddSelect/SingleAddSelect.d.ts +1 -1
- package/lib/components/SingleAddSelect/SingleAddSelect.js +5 -5
- package/lib/components/StatusIcon/StatusIcon.d.ts +1 -1
- package/lib/components/StatusIcon/StatusIcon.js +5 -4
- package/lib/components/StepFlow/story-assets/SidePanel/StepSidePanel.d.ts +4 -3
- package/lib/components/TagOverflow/TagOverflow.d.ts +1 -1
- package/lib/components/TagOverflow/TagOverflow.js +5 -4
- package/lib/components/TagSet/TagSet.d.ts +1 -1
- package/lib/components/TagSet/TagSet.js +9 -5
- package/lib/components/Tearsheet/Tearsheet.d.ts +1 -1
- package/lib/components/Tearsheet/Tearsheet.js +4 -5
- package/lib/components/Tearsheet/TearsheetNarrow.d.ts +1 -1
- package/lib/components/Tearsheet/TearsheetNarrow.js +4 -5
- package/lib/components/Toolbar/Toolbar.d.ts +2 -2
- package/lib/components/Toolbar/Toolbar.js +4 -4
- package/lib/components/Toolbar/ToolbarButton.d.ts +1 -1
- package/lib/components/Toolbar/ToolbarButton.js +4 -5
- package/lib/components/Toolbar/ToolbarGroup.d.ts +1 -1
- package/lib/components/Toolbar/ToolbarGroup.js +5 -5
- package/lib/components/TooltipTrigger/TooltipTrigger.d.ts +1 -1
- package/lib/components/TooltipTrigger/TooltipTrigger.js +5 -4
- package/lib/components/TruncatedList/TruncatedList.d.ts +1 -1
- package/lib/components/TruncatedList/TruncatedList.js +5 -4
- package/lib/components/TruncatedList/index.js +14 -0
- package/lib/components/UserAvatar/UserAvatar.d.ts +1 -1
- package/lib/components/UserAvatar/UserAvatar.js +5 -4
- package/lib/components/UserProfileImage/UserProfileImage.d.ts +1 -1
- package/lib/components/UserProfileImage/UserProfileImage.js +7 -5
- package/lib/components/WebTerminal/WebTerminal.d.ts +1 -1
- package/lib/components/WebTerminal/WebTerminal.js +5 -4
- package/lib/components/WebTerminal/WebTerminalContentWrapper.d.ts +1 -1
- package/lib/components/WebTerminal/WebTerminalContentWrapper.js +5 -6
- package/lib/components/WebTerminal/hooks/index.d.ts +1 -1
- package/lib/components/WebTerminal/hooks/index.js +3 -7
- package/lib/components/index.d.ts +53 -43
- package/lib/global/js/utils/carousel/carousel.d.ts +14 -0
- package/lib/global/js/utils/carousel/index.d.ts +8 -0
- package/lib/global/js/utils/carousel/swipeEvents.d.ts +7 -0
- package/lib/global/js/utils/carousel/types.d.ts +37 -0
- package/lib/global/js/utils/makeDraggable/makeDraggable.d.ts +20 -1
- package/lib/global/js/utils/makeDraggable/makeDraggable.js +35 -22
- package/lib/global/js/utils/makeDraggable/makeDraggable.stories.d.ts +1 -1
- package/lib/index.js +178 -416
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-10.js +817 -811
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-3.js +651 -652
- package/package.json +17 -17
- package/scss/components/SidePanel/_side-panel.scss +1 -13
- package/scss/components/TagSet/_tag-set.scss +0 -6
- package/telemetry.yml +3 -1
- /package/es/node_modules/@carbon/icons-react/es/{iconPropTypes-4cbeb95d.js → iconPropTypes-C5chbmyn.js} +0 -0
- /package/lib/node_modules/@carbon/icons-react/es/{iconPropTypes-4cbeb95d.js → iconPropTypes-C5chbmyn.js} +0 -0
@@ -0,0 +1,14 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2020, 2025
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
|
8
|
+
'use strict';
|
9
|
+
|
10
|
+
var TruncatedList = require('./TruncatedList.js');
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
exports.TruncatedList = TruncatedList.TruncatedList;
|
@@ -56,5 +56,5 @@ type UserAvatarBaseProps = {
|
|
56
56
|
tooltipText?: string;
|
57
57
|
};
|
58
58
|
type UserAvatarProps = UserAvatarBaseProps & ImageProps;
|
59
|
-
export declare
|
59
|
+
export declare const UserAvatar: React.ForwardRefExoticComponent<UserAvatarProps & React.RefAttributes<HTMLDivElement>>;
|
60
60
|
export {};
|
@@ -31,7 +31,7 @@ const componentName = 'UserAvatar';
|
|
31
31
|
* TODO: A description of the component.
|
32
32
|
*/
|
33
33
|
|
34
|
-
|
34
|
+
const UserAvatar = /*#__PURE__*/React.forwardRef((props, ref) => {
|
35
35
|
const {
|
36
36
|
backgroundColor = 'order-1-cyan',
|
37
37
|
className,
|
@@ -109,16 +109,15 @@ exports.UserAvatar = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
109
109
|
});
|
110
110
|
|
111
111
|
// Return a placeholder if not released and not enabled by feature flag
|
112
|
-
exports.UserAvatar = settings.pkg.checkComponentEnabled(exports.UserAvatar, componentName);
|
113
112
|
|
114
113
|
// The display name of the component, used by React. Note that displayName
|
115
114
|
// is used in preference to relying on function.name.
|
116
|
-
|
115
|
+
UserAvatar.displayName = componentName;
|
117
116
|
|
118
117
|
// The types and DocGen commentary for the component props,
|
119
118
|
// in alphabetical order (for consistency).
|
120
119
|
// See https://www.npmjs.com/package/prop-types#usage.
|
121
|
-
|
120
|
+
UserAvatar.propTypes = {
|
122
121
|
/**
|
123
122
|
* Provide the background color need to be set for UserAvatar. Background color will be set based on lighter or darker theme.
|
124
123
|
* For example: if you select order-5-purple, it will take $purple-60 for lighter theme and $purple-50 for darker theme.
|
@@ -161,3 +160,5 @@ exports.UserAvatar.propTypes = {
|
|
161
160
|
tooltipText: index.default.string
|
162
161
|
/* TODO: add types and DocGen for all props. */
|
163
162
|
};
|
163
|
+
|
164
|
+
exports.UserAvatar = UserAvatar;
|
@@ -65,5 +65,5 @@ export type UserProfileImageProps = UserProfileImageBaseProps & imageProps;
|
|
65
65
|
* The user profile avatar allows for an image of the user to be displayed by passing in the image prop. By default the component will display a user icon on a blue background.
|
66
66
|
* @deprecated This component is deprecated.
|
67
67
|
*/
|
68
|
-
export declare
|
68
|
+
export declare const UserProfileImage: React.ForwardRefExoticComponent<UserProfileImageProps & React.RefAttributes<HTMLDivElement>>;
|
69
69
|
export {};
|
@@ -28,7 +28,7 @@ const componentName = 'UserProfileImage';
|
|
28
28
|
* The user profile avatar allows for an image of the user to be displayed by passing in the image prop. By default the component will display a user icon on a blue background.
|
29
29
|
* @deprecated This component is deprecated.
|
30
30
|
*/
|
31
|
-
|
31
|
+
const UserProfileImage = /*#__PURE__*/React.forwardRef((props, ref) => {
|
32
32
|
var _FillItem;
|
33
33
|
const {
|
34
34
|
backgroundColor,
|
@@ -112,15 +112,15 @@ exports.UserProfileImage = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
112
112
|
});
|
113
113
|
|
114
114
|
/**@ts-ignore*/
|
115
|
-
|
115
|
+
UserProfileImage.deprecated = {
|
116
116
|
level: 'warn',
|
117
117
|
details: `Please replace ${componentName} with UserAvatar`
|
118
118
|
};
|
119
119
|
|
120
120
|
// Return a placeholder if not released and not enabled by feature flag
|
121
|
-
|
122
|
-
|
123
|
-
|
121
|
+
|
122
|
+
UserProfileImage.displayName = componentName;
|
123
|
+
UserProfileImage.propTypes = {
|
124
124
|
/**
|
125
125
|
* The background color passed should match one of the background colors in the library documentation:
|
126
126
|
* https://pages.github.ibm.com/carbon/ibm-products/patterns/user-profile-images/
|
@@ -169,3 +169,5 @@ exports.UserProfileImage.propTypes = {
|
|
169
169
|
*/
|
170
170
|
tooltipText: index.default.string
|
171
171
|
};
|
172
|
+
|
173
|
+
exports.UserProfileImage = UserProfileImage;
|
@@ -48,5 +48,5 @@ export interface WebTerminalProps extends PropsWithChildren {
|
|
48
48
|
/**
|
49
49
|
* The `WebTerminal` is prompted by the user and is persistent until dismissed. The purpose of a web terminal is to provide users with the ability to type commands manually instead of using the GUI.
|
50
50
|
*/
|
51
|
-
export declare
|
51
|
+
export declare const WebTerminal: React.ForwardRefExoticComponent<WebTerminalProps & React.RefAttributes<HTMLDivElement>>;
|
52
52
|
export {};
|
@@ -33,7 +33,7 @@ const defaults = {
|
|
33
33
|
/**
|
34
34
|
* The `WebTerminal` is prompted by the user and is persistent until dismissed. The purpose of a web terminal is to provide users with the ability to type commands manually instead of using the GUI.
|
35
35
|
*/
|
36
|
-
|
36
|
+
const WebTerminal = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
37
37
|
let {
|
38
38
|
// The component props, in alphabetical order (for consistency).
|
39
39
|
|
@@ -150,16 +150,15 @@ exports.WebTerminal = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
150
150
|
});
|
151
151
|
|
152
152
|
// Return a placeholder if not released and not enabled by feature flag
|
153
|
-
exports.WebTerminal = settings.pkg.checkComponentEnabled(exports.WebTerminal, componentName);
|
154
153
|
|
155
154
|
// The display name of the component, used by React. Note that displayName
|
156
155
|
// is used in preference to relying on function.name.
|
157
|
-
|
156
|
+
WebTerminal.displayName = componentName;
|
158
157
|
|
159
158
|
// The types and DocGen commentary for the component props,
|
160
159
|
// in alphabetical order (for consistency).
|
161
160
|
// See https://www.npmjs.com/package/prop-types#usage.
|
162
|
-
|
161
|
+
WebTerminal.propTypes = {
|
163
162
|
/**
|
164
163
|
* An array of actions to be displayed in the web terminal header bar
|
165
164
|
*/
|
@@ -201,3 +200,5 @@ exports.WebTerminal.propTypes = {
|
|
201
200
|
*/
|
202
201
|
webTerminalAriaLabel: index.default.string
|
203
202
|
};
|
203
|
+
|
204
|
+
exports.WebTerminal = WebTerminal;
|
@@ -11,4 +11,4 @@ export interface WebTerminalContentWrapperProps {
|
|
11
11
|
*/
|
12
12
|
children: ReactNode;
|
13
13
|
}
|
14
|
-
export declare
|
14
|
+
export declare const WebTerminalContentWrapper: React.ForwardRefExoticComponent<WebTerminalContentWrapperProps & React.RefAttributes<HTMLDivElement>>;
|
@@ -17,7 +17,7 @@ var index$1 = require('./hooks/index.js');
|
|
17
17
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
18
18
|
const componentName = 'WebTerminalContentWrapper';
|
19
19
|
const blockClass = `${settings.pkg.prefix}--web-terminal-content-wrapper`;
|
20
|
-
|
20
|
+
const WebTerminalContentWrapper = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
21
21
|
let {
|
22
22
|
// The component props, in alphabetical order (for consistency).
|
23
23
|
children,
|
@@ -35,19 +35,18 @@ exports.WebTerminalContentWrapper = /*#__PURE__*/React.forwardRef((_ref, ref) =>
|
|
35
35
|
}, rest), children);
|
36
36
|
});
|
37
37
|
|
38
|
-
// Return a placeholder if not released and not enabled by feature flag
|
39
|
-
exports.WebTerminalContentWrapper = settings.pkg.checkComponentEnabled(exports.WebTerminalContentWrapper, componentName);
|
40
|
-
|
41
38
|
// The display name of the component, used by React. Note that displayName
|
42
39
|
// is used in preference to relying on function.name.
|
43
|
-
|
40
|
+
WebTerminalContentWrapper.displayName = componentName;
|
44
41
|
|
45
42
|
// The types and DocGen commentary for the component props,
|
46
43
|
// in alphabetical order (for consistency).
|
47
44
|
// See https://www.npmjs.com/package/prop-types#usage.
|
48
|
-
|
45
|
+
WebTerminalContentWrapper.propTypes = {
|
49
46
|
/**
|
50
47
|
* Pass in content as children.
|
51
48
|
*/
|
52
49
|
children: index.default.oneOfType([index.default.arrayOf(index.default.node), index.default.node]).isRequired
|
53
50
|
};
|
51
|
+
|
52
|
+
exports.WebTerminalContentWrapper = WebTerminalContentWrapper;
|
@@ -12,6 +12,6 @@ interface WebTerminalProviderProps {
|
|
12
12
|
*/
|
13
13
|
children: ReactNode | ReactNode[];
|
14
14
|
}
|
15
|
-
export declare
|
15
|
+
export declare const WebTerminalProvider: React.FC<WebTerminalProviderProps>;
|
16
16
|
export declare const useWebTerminal: () => WebTerminalContextType;
|
17
17
|
export {};
|
@@ -9,7 +9,6 @@
|
|
9
9
|
|
10
10
|
var React = require('react');
|
11
11
|
var index = require('../../../_virtual/index.js');
|
12
|
-
var settings = require('../../../settings.js');
|
13
12
|
|
14
13
|
// Copyright IBM Corp. 2022, 2022
|
15
14
|
//
|
@@ -18,8 +17,7 @@ var settings = require('../../../settings.js');
|
|
18
17
|
//
|
19
18
|
|
20
19
|
const WebTerminalContext = /*#__PURE__*/React.createContext({});
|
21
|
-
const
|
22
|
-
exports.WebTerminalProvider = _ref => {
|
20
|
+
const WebTerminalProvider = _ref => {
|
23
21
|
let {
|
24
22
|
children
|
25
23
|
} = _ref;
|
@@ -36,10 +34,7 @@ exports.WebTerminalProvider = _ref => {
|
|
36
34
|
}
|
37
35
|
}, children);
|
38
36
|
};
|
39
|
-
|
40
|
-
// Return a placeholder if not released and not enabled by feature flag
|
41
|
-
exports.WebTerminalProvider = settings.pkg.checkComponentEnabled(exports.WebTerminalProvider, componentName);
|
42
|
-
exports.WebTerminalProvider.propTypes = {
|
37
|
+
WebTerminalProvider.propTypes = {
|
43
38
|
/**
|
44
39
|
* Provide your own terminal component as children to show up in the web terminal
|
45
40
|
*/
|
@@ -52,4 +47,5 @@ const useWebTerminal = () => {
|
|
52
47
|
};
|
53
48
|
|
54
49
|
exports.WebTerminalContext = WebTerminalContext;
|
50
|
+
exports.WebTerminalProvider = WebTerminalProvider;
|
55
51
|
exports.useWebTerminal = useWebTerminal;
|
@@ -1,74 +1,84 @@
|
|
1
1
|
import '../feature-flags';
|
2
|
+
/**
|
3
|
+
* Stable components
|
4
|
+
*/
|
2
5
|
export * from './AboutModal';
|
6
|
+
export { ActionBar } from './ActionBar';
|
3
7
|
export * from './APIKeyModal';
|
4
8
|
export * from './Cascade';
|
5
|
-
export * from './
|
9
|
+
export * from './Checklist';
|
6
10
|
export * from './CreateFullPage';
|
7
11
|
export * from './CreateModal';
|
8
12
|
export * from './CreateSidePanel';
|
9
13
|
export * from './CreateTearsheet';
|
10
14
|
export * from './CreateTearsheetNarrow';
|
15
|
+
export * from './EditSidePanel';
|
16
|
+
export * from './EditInPlace';
|
11
17
|
export * from './EmptyStates';
|
12
18
|
export * from './ExportModal';
|
13
19
|
export * from './ExpressiveCard';
|
14
|
-
export * from './
|
20
|
+
export * from './FullPageError';
|
15
21
|
export * from './ImportModal';
|
22
|
+
export * from './InterstitialScreen';
|
16
23
|
export * from './MultiAddSelect';
|
17
24
|
export * from './NotificationsPanel';
|
25
|
+
export * from './OptionsTile';
|
18
26
|
export * from './PageHeader';
|
19
27
|
export * from './ProductiveCard';
|
20
28
|
export * from './RemoveModal';
|
21
29
|
export * from './Saving';
|
30
|
+
export * from './ScrollGradient';
|
22
31
|
export * from './SidePanel';
|
23
32
|
export * from './SingleAddSelect';
|
24
33
|
export * from './StatusIcon';
|
34
|
+
export * from './StringFormatter';
|
35
|
+
export * from './TagOverflow';
|
25
36
|
export * from './TagSet';
|
26
37
|
export * from './Tearsheet';
|
27
|
-
export * from './
|
28
|
-
export * from './
|
38
|
+
export * from './TruncatedText';
|
39
|
+
export * from './UserAvatar';
|
29
40
|
export * from './WebTerminal';
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
41
|
+
/**
|
42
|
+
* Non-stable components
|
43
|
+
* draft | previewCandidate | preview
|
44
|
+
*/
|
45
|
+
export * as preview__Coachmark from './Coachmark/next/Coachmark';
|
46
|
+
export { FeatureFlags as preview__FeatureFlags, useFeatureFlag as preview__useFeatureFlag, useFeatureFlags as preview__useFeatureFlags, } from './FeatureFlags';
|
47
|
+
export * as preview__PageHeader from './PageHeader/next/PageHeader';
|
48
|
+
export * as previewCandidate__BigNumber from './BigNumber';
|
49
|
+
export { Coachmark as previewCandidate__Coachmark, BEACON_KIND, COACHMARK_OVERLAY_KIND, COACHMARK_ALIGNMENT, useCoachmark, type CoachmarkProps, } from './Coachmark';
|
50
|
+
export { CoachmarkBeacon as previewCandidate__CoachmarkBeacon, type CoachmarkBeaconProps, } from './CoachmarkBeacon';
|
51
|
+
export { CoachmarkButton as previewCandidate__CoachmarkButton, type CoachmarkButtonProps, } from './CoachmarkButton';
|
52
|
+
export { CoachmarkFixed as previewCandidate__CoachmarkFixed, type CoachmarkFixedProps, } from './CoachmarkFixed';
|
53
|
+
export { CoachmarkOverlayElement as previewCandidate__CoachmarkOverlayElement, type CoachmarkOverlayElementProps, } from './CoachmarkOverlayElement';
|
54
|
+
export { CoachmarkOverlayElements as previewCandidate__CoachmarkOverlayElements, type CoachmarkOverlayElementsProps, } from './CoachmarkOverlayElements';
|
55
|
+
export { CoachmarkStack as previewCandidate__CoachmarkStack } from './CoachmarkStack';
|
56
|
+
export * as previewCandidate__ConditionBuilder from './ConditionBuilder';
|
57
|
+
export * as previewCandidate__DataSpreadsheet from './DataSpreadsheet';
|
58
|
+
export * as previewCandidate__DelimitedList from './DelimitedList';
|
59
|
+
export * as previewCandidate__Decorator from './Decorator';
|
60
|
+
export * as previewCandidate__GetStartedCard from './GetStartedCard';
|
61
|
+
export { Guidebanner as previewCandidate__Guidebanner, GuidebannerElement as previewCandidate__GuidebannerElement, GuidebannerElementButton as previewCandidate__GuidebannerElementButton, GuidebannerElementLink as previewCandidate__GuidebannerElementLink, type GuidebannerProps, type GuidebannerElementProps, type GuidebannerElementButtonProps, type GuidebannerElementLinkProps, } from './Guidebanner';
|
62
|
+
export { InlineTip as previewCandidate__InlineTip, InlineTipButton as previewCandidate__InlineTipButton, InlineTipLink as previewCandidate__InlineTipLink, type InlineTipProps, type InlineTipButtonProps, type InlineTipLinkProps, } from './InlineTip';
|
63
|
+
export * as previewCandidate__NonLinearReading from './NonLinearReading';
|
64
|
+
export * as previewCandidate__SearchBar from './SearchBar';
|
65
|
+
export { Toolbar as previewCandidate__Toolbar, ToolbarButton as previewCandidate__ToolbarButton, ToolbarGroup as previewCandidate__ToolbarGroup, type ToolbarProps, type ToolbarButtonProps, type ToolbarGroupProps, } from './Toolbar';
|
66
|
+
export * as previewCandidate__TruncatedList from './TruncatedList';
|
67
|
+
/**
|
68
|
+
* Deprecated
|
69
|
+
*/
|
70
|
+
export * from './ComboButton';
|
34
71
|
export * from './Datagrid';
|
35
|
-
export * from './EditTearsheet';
|
36
|
-
export * from './EditTearsheetNarrow';
|
37
|
-
export * from './EditFullPage';
|
38
|
-
export * from './EditUpdateCards';
|
39
|
-
export * from './Checklist';
|
40
|
-
export { Coachmark } from './Coachmark';
|
41
|
-
export { Coachmark as preview__Coachmark } from './Coachmark/next/Coachmark';
|
42
|
-
export * from './CoachmarkBeacon';
|
43
|
-
export * from './CoachmarkButton';
|
44
|
-
export * from './CoachmarkFixed';
|
45
|
-
export * from './CoachmarkOverlayElement';
|
46
|
-
export * from './CoachmarkOverlayElements';
|
47
|
-
export * from './CoachmarkStack';
|
48
|
-
export * from './Guidebanner';
|
49
|
-
export * from './InlineTip';
|
50
|
-
export * from './NonLinearReading';
|
51
|
-
export * from './BigNumber';
|
52
|
-
export * from './TruncatedList';
|
53
|
-
export * from './TruncatedText';
|
54
|
-
export * from './InterstitialScreen';
|
55
|
-
export * from './DelimitedList';
|
56
|
-
export * from './Decorator';
|
57
72
|
export * from './DecoratorLink';
|
58
|
-
export * from './DecoratorSingleButton';
|
59
73
|
export * from './DecoratorDualButton';
|
74
|
+
export * from './DecoratorSingleButton';
|
60
75
|
export * from './DescriptionList';
|
61
|
-
export * from './
|
62
|
-
export * from './
|
76
|
+
export * from './EditFullPage';
|
77
|
+
export * from './EditTearsheet';
|
78
|
+
export * from './EditTearsheetNarrow';
|
79
|
+
export * from './EditUpdateCards';
|
80
|
+
export * from './FilterPanel';
|
81
|
+
export * from './HTTPErrors';
|
63
82
|
export * from './Nav';
|
64
|
-
export * from './StringFormatter';
|
65
|
-
export * from './UserAvatar';
|
66
|
-
export * from './ScrollGradient';
|
67
83
|
export * from './StatusIndicator';
|
68
|
-
export * from './
|
69
|
-
export { ActionBar } from './ActionBar';
|
70
|
-
export * from './FilterPanel';
|
71
|
-
export * from './ConditionBuilder';
|
72
|
-
export * from './GetStartedCard';
|
73
|
-
export * as preview__PageHeader from './PageHeader/next/PageHeader';
|
74
|
-
export { FeatureFlags as unstable_FeatureFlags, useFeatureFlag as unstable_useFeatureFlag, useFeatureFlags as unstable_useFeatureFlags, } from './FeatureFlags';
|
84
|
+
export * from './UserProfileImage';
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2025
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
import { InitCarousel, Config } from './types';
|
8
|
+
/**
|
9
|
+
* Initializes a carousel with the given configuration.
|
10
|
+
* @param carouselContainer - The HTMLElement representing the carousel container.
|
11
|
+
* @param config - Optional configuration object.
|
12
|
+
* @returns An object containing methods to control the carousel.
|
13
|
+
*/
|
14
|
+
export declare const initCarousel: (carouselContainer: HTMLElement, config?: Config) => InitCarousel;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2025
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
export declare const registerSwipeEvents: (carousel: HTMLElement, next: () => void, prev: () => void, destroy: boolean) => void;
|
@@ -0,0 +1,37 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
*
|
4
|
+
* Copyright IBM Corp. 2025
|
5
|
+
*
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
8
|
+
*/
|
9
|
+
interface CarouselStackHistory {
|
10
|
+
id: number;
|
11
|
+
elem: HTMLLIElement;
|
12
|
+
}
|
13
|
+
type CarouselResponse = {
|
14
|
+
currentIndex: number;
|
15
|
+
lastIndex: number;
|
16
|
+
totalViews: number;
|
17
|
+
historyStack: CarouselStackHistory[];
|
18
|
+
};
|
19
|
+
type ActiveItem = {
|
20
|
+
index: number;
|
21
|
+
item: HTMLElement | null;
|
22
|
+
};
|
23
|
+
export type Config = {
|
24
|
+
onViewChangeStart?: (args: CarouselResponse) => void;
|
25
|
+
onViewChangeEnd?: (args: CarouselResponse) => void;
|
26
|
+
excludeSwipeSupport?: boolean;
|
27
|
+
};
|
28
|
+
interface InitCarousel {
|
29
|
+
next: () => void;
|
30
|
+
prev: () => void;
|
31
|
+
reset: () => void;
|
32
|
+
goToIndex: (index: number) => void;
|
33
|
+
getActiveItem: () => ActiveItem;
|
34
|
+
destroyEvents: (() => void) | null;
|
35
|
+
allViews: Record<number, HTMLElement | null>;
|
36
|
+
}
|
37
|
+
export type { CarouselStackHistory, CarouselResponse, InitCarousel };
|
@@ -5,15 +5,34 @@
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
7
|
interface DraggableProps {
|
8
|
+
/**
|
9
|
+
* HTML element to move.
|
10
|
+
*/
|
8
11
|
el: HTMLElement;
|
12
|
+
/**
|
13
|
+
* HTML element to initiate the drag (e.g., header).
|
14
|
+
*/
|
9
15
|
dragHandle?: HTMLElement;
|
16
|
+
/**
|
17
|
+
* HTML element to focus on drag for keyboard interaction (e.g., Drag Icon).
|
18
|
+
*/
|
10
19
|
focusableDragHandle?: HTMLElement;
|
20
|
+
/**
|
21
|
+
* Pixel value that defines the distance to move when dragging with arrow
|
22
|
+
* keys.
|
23
|
+
*/
|
11
24
|
dragStep?: number;
|
25
|
+
/**
|
26
|
+
* Pixel value that defines the distance to move when dragging with
|
27
|
+
* shift+arrow keys.
|
28
|
+
*/
|
12
29
|
shiftDragStep?: number;
|
13
30
|
}
|
14
31
|
/**
|
15
32
|
* Makes a given element draggable using a handle element.
|
16
33
|
*@param draggable - object which accepts el and optional attributes handle,focusableInHandle,dragStep and shiftDragStep
|
17
34
|
*/
|
18
|
-
export declare
|
35
|
+
export declare const makeDraggable: ({ el, dragHandle, focusableDragHandle, dragStep, shiftDragStep, }: DraggableProps) => {
|
36
|
+
cleanup: () => void;
|
37
|
+
};
|
19
38
|
export {};
|
@@ -7,12 +7,13 @@
|
|
7
7
|
|
8
8
|
'use strict';
|
9
9
|
|
10
|
+
/* eslint-disable jsdoc/check-param-names */
|
11
|
+
|
10
12
|
/**
|
11
13
|
* Makes a given element draggable using a handle element.
|
12
14
|
*@param draggable - object which accepts el and optional attributes handle,focusableInHandle,dragStep and shiftDragStep
|
13
15
|
*/
|
14
|
-
|
15
|
-
function makeDraggable(_ref) {
|
16
|
+
const makeDraggable = _ref => {
|
16
17
|
let {
|
17
18
|
el,
|
18
19
|
dragHandle,
|
@@ -20,28 +21,23 @@ function makeDraggable(_ref) {
|
|
20
21
|
dragStep,
|
21
22
|
shiftDragStep
|
22
23
|
} = _ref;
|
23
|
-
const computedStyle = window.getComputedStyle(el);
|
24
24
|
if (dragHandle) {
|
25
25
|
dragHandle.style.cursor = 'move';
|
26
26
|
el.style.cursor = 'default';
|
27
27
|
} else {
|
28
28
|
el.style.cursor = 'move';
|
29
29
|
}
|
30
|
-
const position = computedStyle.position;
|
31
|
-
if (position !== 'absolute' && position !== 'relative' && position !== 'fixed') {
|
32
|
-
el.style.position = 'relative';
|
33
|
-
}
|
34
30
|
let isDragging = false;
|
35
31
|
let offsetX = 0;
|
36
32
|
let offsetY = 0;
|
37
|
-
|
38
|
-
|
39
|
-
el.dispatchEvent(new CustomEvent(type, {
|
33
|
+
const dispatch = (type, detail) => {
|
34
|
+
const eventInit = {
|
40
35
|
detail,
|
41
36
|
bubbles: true
|
42
|
-
}
|
43
|
-
|
44
|
-
|
37
|
+
};
|
38
|
+
el.dispatchEvent(new CustomEvent(type, eventInit));
|
39
|
+
};
|
40
|
+
const onKeyDown = e => {
|
45
41
|
if (e.key === 'Enter') {
|
46
42
|
isDragging = !isDragging;
|
47
43
|
}
|
@@ -76,9 +72,13 @@ function makeDraggable(_ref) {
|
|
76
72
|
el.style.top = `${el.offsetTop + distance}px`;
|
77
73
|
break;
|
78
74
|
}
|
79
|
-
}
|
80
|
-
|
81
|
-
const
|
75
|
+
};
|
76
|
+
const onMouseDown = e => {
|
77
|
+
const target = e.target;
|
78
|
+
if (!(target instanceof Node)) {
|
79
|
+
return;
|
80
|
+
}
|
81
|
+
const isTargetInHandle = dragHandle ? dragHandle.contains(target) : el.contains(target);
|
82
82
|
if (!isTargetInHandle) {
|
83
83
|
return;
|
84
84
|
}
|
@@ -92,15 +92,15 @@ function makeDraggable(_ref) {
|
|
92
92
|
document.addEventListener('mouseup', onMouseUp, {
|
93
93
|
once: true
|
94
94
|
});
|
95
|
-
}
|
96
|
-
|
95
|
+
};
|
96
|
+
const onMouseMove = e => {
|
97
97
|
if (!isDragging) {
|
98
98
|
return;
|
99
99
|
}
|
100
100
|
el.style.left = `${e.clientX - offsetX}px`;
|
101
101
|
el.style.top = `${e.clientY - offsetY}px`;
|
102
|
-
}
|
103
|
-
|
102
|
+
};
|
103
|
+
const onMouseUp = () => {
|
104
104
|
if (!isDragging) {
|
105
105
|
return;
|
106
106
|
}
|
@@ -109,13 +109,26 @@ function makeDraggable(_ref) {
|
|
109
109
|
mouse: true
|
110
110
|
});
|
111
111
|
document.removeEventListener('mousemove', onMouseMove);
|
112
|
-
}
|
112
|
+
};
|
113
113
|
if (dragHandle) {
|
114
114
|
dragHandle.addEventListener('mousedown', onMouseDown);
|
115
115
|
} else {
|
116
116
|
el.addEventListener('mousedown', onMouseDown);
|
117
117
|
}
|
118
118
|
focusableDragHandle?.addEventListener('keydown', onKeyDown);
|
119
|
-
|
119
|
+
const draggableCleanup = () => {
|
120
|
+
if (dragHandle) {
|
121
|
+
dragHandle.removeEventListener('mousedown', onMouseDown);
|
122
|
+
} else {
|
123
|
+
el.removeEventListener('mousedown', onMouseDown);
|
124
|
+
}
|
125
|
+
focusableDragHandle?.removeEventListener('keydown', onKeyDown);
|
126
|
+
document.removeEventListener('mousemove', onMouseMove);
|
127
|
+
document.removeEventListener('mouseup', onMouseUp);
|
128
|
+
};
|
129
|
+
return {
|
130
|
+
cleanup: draggableCleanup
|
131
|
+
};
|
132
|
+
};
|
120
133
|
|
121
134
|
exports.makeDraggable = makeDraggable;
|