@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
@@ -29,7 +29,7 @@ const componentName = 'UserAvatar';
|
|
29
29
|
* TODO: A description of the component.
|
30
30
|
*/
|
31
31
|
|
32
|
-
|
32
|
+
const UserAvatar = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
33
33
|
const {
|
34
34
|
backgroundColor = 'order-1-cyan',
|
35
35
|
className,
|
@@ -107,7 +107,6 @@ let UserAvatar = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
|
107
107
|
});
|
108
108
|
|
109
109
|
// Return a placeholder if not released and not enabled by feature flag
|
110
|
-
UserAvatar = pkg.checkComponentEnabled(UserAvatar, componentName);
|
111
110
|
|
112
111
|
// The display name of the component, used by React. Note that displayName
|
113
112
|
// is used in preference to relying on function.name.
|
@@ -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 {};
|
@@ -26,7 +26,7 @@ const componentName = 'UserProfileImage';
|
|
26
26
|
* 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.
|
27
27
|
* @deprecated This component is deprecated.
|
28
28
|
*/
|
29
|
-
|
29
|
+
const UserProfileImage = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
30
30
|
var _FillItem;
|
31
31
|
const {
|
32
32
|
backgroundColor,
|
@@ -116,7 +116,7 @@ UserProfileImage.deprecated = {
|
|
116
116
|
};
|
117
117
|
|
118
118
|
// Return a placeholder if not released and not enabled by feature flag
|
119
|
-
|
119
|
+
|
120
120
|
UserProfileImage.displayName = componentName;
|
121
121
|
UserProfileImage.propTypes = {
|
122
122
|
/**
|
@@ -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 {};
|
@@ -31,7 +31,7 @@ const defaults = {
|
|
31
31
|
/**
|
32
32
|
* 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.
|
33
33
|
*/
|
34
|
-
|
34
|
+
const WebTerminal = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
35
35
|
let {
|
36
36
|
// The component props, in alphabetical order (for consistency).
|
37
37
|
|
@@ -148,7 +148,6 @@ let WebTerminal = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
148
148
|
});
|
149
149
|
|
150
150
|
// Return a placeholder if not released and not enabled by feature flag
|
151
|
-
WebTerminal = pkg.checkComponentEnabled(WebTerminal, componentName);
|
152
151
|
|
153
152
|
// The display name of the component, used by React. Note that displayName
|
154
153
|
// is used in preference to relying on function.name.
|
@@ -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>>;
|
@@ -15,7 +15,7 @@ import { useWebTerminal } from './hooks/index.js';
|
|
15
15
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
16
16
|
const componentName = 'WebTerminalContentWrapper';
|
17
17
|
const blockClass = `${pkg.prefix}--web-terminal-content-wrapper`;
|
18
|
-
|
18
|
+
const WebTerminalContentWrapper = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
19
19
|
let {
|
20
20
|
// The component props, in alphabetical order (for consistency).
|
21
21
|
children,
|
@@ -33,9 +33,6 @@ let WebTerminalContentWrapper = /*#__PURE__*/React__default.forwardRef((_ref, re
|
|
33
33
|
}, rest), children);
|
34
34
|
});
|
35
35
|
|
36
|
-
// Return a placeholder if not released and not enabled by feature flag
|
37
|
-
WebTerminalContentWrapper = pkg.checkComponentEnabled(WebTerminalContentWrapper, componentName);
|
38
|
-
|
39
36
|
// The display name of the component, used by React. Note that displayName
|
40
37
|
// is used in preference to relying on function.name.
|
41
38
|
WebTerminalContentWrapper.displayName = componentName;
|
@@ -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 {};
|
@@ -5,9 +5,8 @@
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
7
|
|
8
|
-
import React__default, {
|
8
|
+
import React__default, { useContext, createContext, useState, useCallback } from 'react';
|
9
9
|
import PropTypes from '../../../_virtual/index.js';
|
10
|
-
import { pkg } from '../../../settings.js';
|
11
10
|
|
12
11
|
// Copyright IBM Corp. 2022, 2022
|
13
12
|
//
|
@@ -16,8 +15,7 @@ import { pkg } from '../../../settings.js';
|
|
16
15
|
//
|
17
16
|
|
18
17
|
const WebTerminalContext = /*#__PURE__*/createContext({});
|
19
|
-
const
|
20
|
-
let WebTerminalProvider = _ref => {
|
18
|
+
const WebTerminalProvider = _ref => {
|
21
19
|
let {
|
22
20
|
children
|
23
21
|
} = _ref;
|
@@ -34,9 +32,6 @@ let WebTerminalProvider = _ref => {
|
|
34
32
|
}
|
35
33
|
}, children);
|
36
34
|
};
|
37
|
-
|
38
|
-
// Return a placeholder if not released and not enabled by feature flag
|
39
|
-
WebTerminalProvider = pkg.checkComponentEnabled(WebTerminalProvider, componentName);
|
40
35
|
WebTerminalProvider.propTypes = {
|
41
36
|
/**
|
42
37
|
* Provide your own terminal component as children to show up in the web terminal
|
package/es/components/index.d.ts
CHANGED
@@ -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 {};
|
@@ -5,12 +5,13 @@
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
7
|
|
8
|
+
/* eslint-disable jsdoc/check-param-names */
|
9
|
+
|
8
10
|
/**
|
9
11
|
* Makes a given element draggable using a handle element.
|
10
12
|
*@param draggable - object which accepts el and optional attributes handle,focusableInHandle,dragStep and shiftDragStep
|
11
13
|
*/
|
12
|
-
|
13
|
-
function makeDraggable(_ref) {
|
14
|
+
const makeDraggable = _ref => {
|
14
15
|
let {
|
15
16
|
el,
|
16
17
|
dragHandle,
|
@@ -18,28 +19,23 @@ function makeDraggable(_ref) {
|
|
18
19
|
dragStep,
|
19
20
|
shiftDragStep
|
20
21
|
} = _ref;
|
21
|
-
const computedStyle = window.getComputedStyle(el);
|
22
22
|
if (dragHandle) {
|
23
23
|
dragHandle.style.cursor = 'move';
|
24
24
|
el.style.cursor = 'default';
|
25
25
|
} else {
|
26
26
|
el.style.cursor = 'move';
|
27
27
|
}
|
28
|
-
const position = computedStyle.position;
|
29
|
-
if (position !== 'absolute' && position !== 'relative' && position !== 'fixed') {
|
30
|
-
el.style.position = 'relative';
|
31
|
-
}
|
32
28
|
let isDragging = false;
|
33
29
|
let offsetX = 0;
|
34
30
|
let offsetY = 0;
|
35
|
-
|
36
|
-
|
37
|
-
el.dispatchEvent(new CustomEvent(type, {
|
31
|
+
const dispatch = (type, detail) => {
|
32
|
+
const eventInit = {
|
38
33
|
detail,
|
39
34
|
bubbles: true
|
40
|
-
}
|
41
|
-
|
42
|
-
|
35
|
+
};
|
36
|
+
el.dispatchEvent(new CustomEvent(type, eventInit));
|
37
|
+
};
|
38
|
+
const onKeyDown = e => {
|
43
39
|
if (e.key === 'Enter') {
|
44
40
|
isDragging = !isDragging;
|
45
41
|
}
|
@@ -74,9 +70,13 @@ function makeDraggable(_ref) {
|
|
74
70
|
el.style.top = `${el.offsetTop + distance}px`;
|
75
71
|
break;
|
76
72
|
}
|
77
|
-
}
|
78
|
-
|
79
|
-
const
|
73
|
+
};
|
74
|
+
const onMouseDown = e => {
|
75
|
+
const target = e.target;
|
76
|
+
if (!(target instanceof Node)) {
|
77
|
+
return;
|
78
|
+
}
|
79
|
+
const isTargetInHandle = dragHandle ? dragHandle.contains(target) : el.contains(target);
|
80
80
|
if (!isTargetInHandle) {
|
81
81
|
return;
|
82
82
|
}
|
@@ -90,15 +90,15 @@ function makeDraggable(_ref) {
|
|
90
90
|
document.addEventListener('mouseup', onMouseUp, {
|
91
91
|
once: true
|
92
92
|
});
|
93
|
-
}
|
94
|
-
|
93
|
+
};
|
94
|
+
const onMouseMove = e => {
|
95
95
|
if (!isDragging) {
|
96
96
|
return;
|
97
97
|
}
|
98
98
|
el.style.left = `${e.clientX - offsetX}px`;
|
99
99
|
el.style.top = `${e.clientY - offsetY}px`;
|
100
|
-
}
|
101
|
-
|
100
|
+
};
|
101
|
+
const onMouseUp = () => {
|
102
102
|
if (!isDragging) {
|
103
103
|
return;
|
104
104
|
}
|
@@ -107,13 +107,26 @@ function makeDraggable(_ref) {
|
|
107
107
|
mouse: true
|
108
108
|
});
|
109
109
|
document.removeEventListener('mousemove', onMouseMove);
|
110
|
-
}
|
110
|
+
};
|
111
111
|
if (dragHandle) {
|
112
112
|
dragHandle.addEventListener('mousedown', onMouseDown);
|
113
113
|
} else {
|
114
114
|
el.addEventListener('mousedown', onMouseDown);
|
115
115
|
}
|
116
116
|
focusableDragHandle?.addEventListener('keydown', onKeyDown);
|
117
|
-
|
117
|
+
const draggableCleanup = () => {
|
118
|
+
if (dragHandle) {
|
119
|
+
dragHandle.removeEventListener('mousedown', onMouseDown);
|
120
|
+
} else {
|
121
|
+
el.removeEventListener('mousedown', onMouseDown);
|
122
|
+
}
|
123
|
+
focusableDragHandle?.removeEventListener('keydown', onKeyDown);
|
124
|
+
document.removeEventListener('mousemove', onMouseMove);
|
125
|
+
document.removeEventListener('mouseup', onMouseUp);
|
126
|
+
};
|
127
|
+
return {
|
128
|
+
cleanup: draggableCleanup
|
129
|
+
};
|
130
|
+
};
|
118
131
|
|
119
132
|
export { makeDraggable };
|