@carbon/ibm-products 2.43.2-canary.22 → 2.43.2-canary.226
Sign up to get free protection for your applications and to get access to all the features.
- package/css/config-dev.css +6 -1
- package/css/config-dev.css.map +1 -1
- package/css/config.css +6 -1
- package/css/config.css.map +1 -1
- package/css/index-full-carbon.css +5115 -3637
- 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 +282 -68
- 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 +1473 -265
- 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 +1760 -372
- 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.types.d.ts +7 -1
- package/es/components/APIKeyModal/index.d.ts +2 -1
- package/es/components/AboutModal/AboutModal.d.ts +1 -2
- package/es/components/AboutModal/AboutModal.js +23 -6
- package/es/components/AboutModal/index.d.ts +8 -1
- package/es/components/ActionBar/ActionBar.d.ts +62 -2
- package/es/components/ActionBar/ActionBar.js +27 -12
- package/es/components/ActionBar/ActionBarItem.d.ts +36 -2
- package/es/components/ActionBar/ActionBarItem.js +8 -5
- package/es/components/ActionBar/ActionBarOverflowItems.d.ts +64 -16
- package/es/components/ActionBar/ActionBarOverflowItems.js +21 -7
- package/es/components/ActionSet/ActionSet.d.ts +1 -2
- package/es/components/ActionSet/ActionSet.js +2 -2
- package/es/components/ActionSet/index.d.ts +8 -1
- package/es/components/AddSelect/AddSelectBody.js +3 -3
- package/es/components/AddSelect/index.d.ts +2 -1
- package/es/components/AddSelect/types/index.d.ts +6 -0
- package/es/components/Card/Card.d.ts +69 -2
- package/es/components/Card/Card.js +37 -39
- package/es/components/Card/CardFooter.d.ts +51 -48
- package/es/components/Card/CardFooter.js +4 -2
- package/es/components/Card/CardHeader.d.ts +67 -49
- package/es/components/Card/CardHeader.js +4 -2
- package/es/components/Carousel/Carousel.js +1 -2
- package/es/components/Carousel/index.d.ts +9 -2
- package/es/components/Cascade/Cascade.d.ts +1 -2
- package/es/components/Cascade/Cascade.js +2 -2
- package/es/components/Cascade/index.d.ts +2 -1
- package/es/components/Checklist/Checklist.d.ts +2 -2
- package/es/components/Checklist/Checklist.js +6 -6
- package/es/components/Checklist/index.d.ts +8 -1
- package/es/components/Coachmark/Coachmark.d.ts +7 -3
- package/es/components/Coachmark/Coachmark.js +52 -16
- package/es/components/Coachmark/CoachmarkDragbar.js +0 -1
- package/es/components/Coachmark/CoachmarkHeader.js +0 -1
- package/es/components/Coachmark/CoachmarkOverlay.js +2 -4
- package/es/components/Coachmark/index.d.ts +10 -3
- package/es/components/Coachmark/utils/enums.d.ts +6 -0
- package/es/components/CoachmarkBeacon/CoachmarkBeacon.d.ts +2 -3
- package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +5 -10
- package/es/components/CoachmarkBeacon/index.d.ts +8 -1
- package/es/components/CoachmarkButton/CoachmarkButton.d.ts +1 -2
- package/es/components/CoachmarkButton/CoachmarkButton.js +4 -2
- package/es/components/CoachmarkButton/index.d.ts +8 -1
- package/es/components/CoachmarkFixed/CoachmarkFixed.d.ts +1 -2
- package/es/components/CoachmarkFixed/CoachmarkFixed.js +19 -16
- package/es/components/CoachmarkFixed/index.d.ts +8 -1
- package/es/components/CoachmarkOverlayElement/CoachmarkOverlayElement.d.ts +1 -2
- package/es/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +0 -1
- package/es/components/CoachmarkOverlayElement/index.d.ts +8 -1
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +1 -2
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +10 -7
- package/es/components/CoachmarkOverlayElements/index.d.ts +8 -1
- package/es/components/CoachmarkStack/CoachmarkStack.d.ts +67 -2
- package/es/components/CoachmarkStack/CoachmarkStack.js +22 -11
- package/es/components/CoachmarkStack/CoachmarkStackHome.d.ts +71 -2
- package/es/components/CoachmarkStack/CoachmarkStackHome.js +26 -25
- package/es/components/ComboButton/ComboButton.d.ts +1 -1
- package/es/components/ComboButton/ComboButton.js +4 -4
- package/es/components/ComboButton/index.d.ts +9 -2
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +100 -24
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +103 -60
- package/es/components/ConditionBuilder/ConditionBuilder.d.ts +9 -2
- package/es/components/ConditionBuilder/ConditionBuilder.js +30 -18
- package/es/components/ConditionBuilder/ConditionBuilder.types.d.ts +151 -0
- package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +28 -14
- package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +67 -42
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +62 -25
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +29 -29
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +86 -34
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +23 -11
- package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.d.ts +29 -14
- package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +25 -16
- package/es/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +20 -9
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +40 -22
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +82 -64
- package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts +10 -42
- package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +44 -35
- package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.d.ts +49 -39
- package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +49 -38
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +81 -27
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +103 -31
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +27 -10
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +26 -12
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.d.ts +30 -12
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +21 -13
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +35 -12
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +23 -11
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.d.ts +32 -12
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +19 -11
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +35 -10
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +24 -12
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.d.ts +25 -10
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +2 -2
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +44 -19
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +153 -59
- package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +30 -9
- package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.js +40 -18
- package/es/components/ConditionBuilder/utils/handleKeyboardEvents.d.ts +2 -1
- package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +152 -42
- package/es/components/ConditionBuilder/utils/useDataConfigs.d.ts +18 -0
- package/es/components/ConditionBuilder/utils/useDataConfigs.js +120 -0
- package/es/components/ConditionBuilder/utils/useTranslations.d.ts +1 -0
- package/es/components/ConditionBuilder/utils/useTranslations.js +29 -0
- package/es/components/ConditionBuilder/utils/util.d.ts +18 -5
- package/es/components/ConditionBuilder/utils/util.js +79 -23
- package/es/components/CreateFullPage/CreateFullPage.d.ts +1 -1
- package/es/components/CreateFullPage/CreateFullPage.js +7 -7
- package/es/components/CreateFullPage/CreateFullPageStep.d.ts +2 -2
- package/es/components/CreateFullPage/index.d.ts +10 -2
- package/es/components/CreateModal/CreateModal.d.ts +2 -3
- package/es/components/CreateModal/CreateModal.js +1 -1
- package/es/components/CreateModal/index.d.ts +2 -1
- package/es/components/CreateSidePanel/CreateSidePanel.js +1 -1
- package/es/components/CreateSidePanel/index.d.ts +7 -1
- package/es/components/CreateTearsheet/CreateTearsheet.d.ts +8 -2
- package/es/components/CreateTearsheet/CreateTearsheet.js +20 -9
- package/es/components/CreateTearsheet/CreateTearsheetStep.d.ts +18 -0
- package/es/components/CreateTearsheet/CreateTearsheetStep.js +30 -3
- package/es/components/CreateTearsheet/index.d.ts +10 -3
- package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.d.ts +1 -1
- package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +2 -2
- package/es/components/CreateTearsheetNarrow/index.d.ts +8 -1
- package/es/components/DataSpreadsheet/DataSpreadsheet.d.ts +29 -4
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +142 -61
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.d.ts +16 -0
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +32 -7
- package/es/components/DataSpreadsheet/DataSpreadsheetHeader.d.ts +8 -0
- package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +16 -3
- package/es/components/DataSpreadsheet/index.d.ts +8 -1
- package/es/components/DataSpreadsheet/types/index.d.ts +7 -0
- package/es/components/Datagrid/Datagrid/Datagrid.d.ts +0 -4
- package/es/components/Datagrid/Datagrid/Datagrid.js +2 -8
- package/es/components/Datagrid/Datagrid/DatagridBody.d.ts +6 -0
- package/es/components/Datagrid/Datagrid/DatagridContent.js +8 -4
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +23 -8
- package/es/components/Datagrid/Datagrid/DatagridRefBody.d.ts +6 -0
- package/es/components/Datagrid/Datagrid/DatagridRow.js +27 -12
- package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +10 -27
- package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +3 -2
- package/es/components/Datagrid/Datagrid/DatagridSimpleBody.d.ts +6 -0
- package/es/components/Datagrid/Datagrid/DatagridToolbar.js +8 -3
- package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +30 -14
- package/es/components/Datagrid/Datagrid/DraggableElement.d.ts +6 -0
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +43 -13
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +4 -4
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.d.ts +3 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +16 -6
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +18 -10
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +3 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +14 -9
- package/es/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +7 -0
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +36 -2
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +2 -3
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +73 -25
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +10 -2
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/stateReducer.d.ts +14 -0
- package/es/components/Datagrid/Datagrid/addons/stateReducer.js +137 -36
- package/es/components/Datagrid/common-column-ids.d.ts +6 -0
- package/es/components/Datagrid/types/index.d.ts +52 -7
- package/es/components/Datagrid/useActionsColumn.js +1 -4
- package/es/components/Datagrid/useCustomizeColumns.d.ts +8 -1
- package/es/components/Datagrid/useCustomizeColumns.js +4 -3
- package/es/components/Datagrid/useDatagrid.d.ts +6 -0
- package/es/components/Datagrid/useDefaultStringRenderer.js +0 -1
- package/es/components/Datagrid/useDisableSelectRows.d.ts +8 -1
- package/es/components/Datagrid/useDisableSelectRows.js +42 -22
- package/es/components/Datagrid/useFiltering.d.ts +1 -0
- package/es/components/Datagrid/useFiltering.js +14 -3
- package/es/components/Datagrid/useFlexResize.d.ts +0 -6
- package/es/components/Datagrid/useFlexResize.js +33 -17
- package/es/components/Datagrid/useInitialColumnSort.js +4 -0
- package/es/components/Datagrid/useInlineEdit.js +1 -1
- package/es/components/Datagrid/useNestedRowExpander.js +67 -20
- package/es/components/Datagrid/useNestedRows.js +5 -4
- package/es/components/Datagrid/useRowExpander.js +1 -3
- package/es/components/Datagrid/useRowIsMouseOver.d.ts +6 -0
- package/es/components/Datagrid/useRowRenderer.js +44 -2
- package/es/components/Datagrid/useSelectRows.js +2 -1
- package/es/components/Datagrid/useSortableColumns.d.ts +5 -4
- package/es/components/Datagrid/useSortableColumns.js +34 -15
- package/es/components/Datagrid/useStickyColumn.d.ts +8 -1
- package/es/components/Datagrid/useStickyColumn.js +12 -9
- package/es/components/DelimitedList/DelimitedList.d.ts +1 -2
- package/es/components/DelimitedList/index.d.ts +8 -1
- package/es/components/EditFullPage/EditFullPage.d.ts +1 -2
- package/es/components/EditFullPage/index.d.ts +8 -1
- package/es/components/EditInPlace/EditInPlace.d.ts +9 -1
- package/es/components/EditInPlace/EditInPlace.js +38 -19
- package/es/components/EditInPlace/index.d.ts +8 -1
- package/es/components/EditSidePanel/EditSidePanel.d.ts +2 -3
- package/es/components/EditSidePanel/EditSidePanel.js +3 -3
- package/es/components/EditSidePanel/index.d.ts +8 -1
- package/es/components/EditTearsheet/EditTearsheet.d.ts +7 -2
- package/es/components/EditTearsheet/EditTearsheet.js +44 -10
- package/es/components/EditTearsheet/EditTearsheetForm.d.ts +45 -2
- package/es/components/EditTearsheet/EditTearsheetForm.js +3 -0
- package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.d.ts +1 -2
- package/es/components/EditTearsheetNarrow/index.d.ts +8 -1
- package/es/components/EditUpdateCards/EditUpdateCards.d.ts +2 -2
- package/es/components/EditUpdateCards/EditUpdateCards.js +3 -3
- package/es/components/EditUpdateCards/index.d.ts +8 -1
- package/es/components/EmptyStates/EmptyState.d.ts +72 -5
- package/es/components/EmptyStates/EmptyState.js +8 -5
- package/es/components/EmptyStates/EmptyStateV2.d.ts +63 -2
- package/es/components/EmptyStates/EmptyStateV2.js +3 -2
- package/es/components/ExportModal/ExportModal.d.ts +3 -3
- package/es/components/ExportModal/ExportModal.js +3 -3
- package/es/components/ExportModal/index.d.ts +2 -1
- package/es/components/ExpressiveCard/ExpressiveCard.d.ts +1 -1
- package/es/components/ExpressiveCard/ExpressiveCard.js +1 -1
- package/es/components/ExpressiveCard/index.d.ts +2 -1
- package/es/components/FeatureFlags/index.d.ts +26 -21
- package/es/components/FeatureFlags/index.js +1 -10
- package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +1 -1
- package/es/components/FilterSummary/FilterSummary.d.ts +1 -1
- package/es/components/FilterSummary/FilterSummary.js +7 -8
- package/es/components/FilterSummary/index.d.ts +8 -1
- package/es/components/FullPageError/FullPageError.d.ts +35 -2
- package/es/components/FullPageError/FullPageError.js +10 -10
- package/es/components/FullPageError/assets/Error403SVG.d.ts +3 -1
- package/es/components/FullPageError/assets/Error403SVG.js +6 -3
- package/es/components/FullPageError/assets/Error404SVG.d.ts +3 -1
- package/es/components/FullPageError/assets/Error404SVG.js +6 -3
- package/es/components/FullPageError/assets/ErrorGenericSVG.d.ts +3 -1
- package/es/components/FullPageError/assets/ErrorGenericSVG.js +6 -3
- package/es/components/FullPageError/index.d.ts +8 -1
- package/es/components/GetStartedCard/GetStartedCard.d.ts +60 -2
- package/es/components/GetStartedCard/GetStartedCard.js +11 -10
- package/es/components/GetStartedCard/index.d.ts +8 -1
- package/es/components/Guidebanner/Guidebanner.d.ts +1 -2
- package/es/components/Guidebanner/Guidebanner.js +5 -4
- package/es/components/Guidebanner/GuidebannerElement.d.ts +1 -2
- package/es/components/Guidebanner/GuidebannerElementButton.d.ts +2 -3
- package/es/components/Guidebanner/GuidebannerElementButton.js +2 -2
- package/es/components/Guidebanner/GuidebannerElementLink.d.ts +2 -3
- package/es/components/Guidebanner/GuidebannerElementLink.js +1 -1
- package/es/components/Guidebanner/index.d.ts +14 -4
- package/es/components/HTTPErrors/HTTPError403/HTTPError403.js +8 -1
- package/es/components/HTTPErrors/HTTPError404/HTTPError404.js +8 -1
- package/es/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +7 -0
- package/es/components/HTTPErrors/assets/HTTPErrorSvg403.d.ts +3 -1
- package/es/components/HTTPErrors/assets/HTTPErrorSvg403.js +210 -203
- package/es/components/HTTPErrors/assets/HTTPErrorSvg404.d.ts +3 -1
- package/es/components/HTTPErrors/assets/HTTPErrorSvg404.js +122 -115
- package/es/components/HTTPErrors/assets/HTTPErrorSvgOther.d.ts +3 -1
- package/es/components/HTTPErrors/assets/HTTPErrorSvgOther.js +116 -109
- package/es/components/ImportModal/ImportModal.d.ts +1 -1
- package/es/components/ImportModal/ImportModal.js +3 -3
- package/es/components/ImportModal/index.d.ts +2 -1
- package/es/components/InlineTip/InlineTip.d.ts +1 -1
- package/es/components/InlineTip/InlineTip.js +4 -4
- package/es/components/InlineTip/InlineTipButton.d.ts +1 -2
- package/es/components/InlineTip/InlineTipButton.js +1 -1
- package/es/components/InlineTip/InlineTipLink.d.ts +1 -2
- package/es/components/InlineTip/InlineTipLink.js +2 -2
- package/es/components/InlineTip/index.d.ts +12 -3
- package/es/components/InterstitialScreen/InterstitialScreen.d.ts +1 -1
- package/es/components/InterstitialScreen/InterstitialScreen.js +6 -5
- package/es/components/InterstitialScreen/index.d.ts +8 -1
- package/es/components/InterstitialScreenView/InterstitialScreenView.d.ts +1 -2
- package/es/components/InterstitialScreenView/index.d.ts +8 -1
- package/es/components/InterstitialScreenViewModule/InterstitialScreenViewModule.d.ts +1 -2
- package/es/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +1 -1
- package/es/components/InterstitialScreenViewModule/index.d.ts +8 -1
- package/es/components/MultiAddSelect/MultiAddSelect.d.ts +1 -1
- package/es/components/MultiAddSelect/MultiAddSelect.js +1 -1
- package/es/components/MultiAddSelect/index.d.ts +2 -1
- package/es/components/Nav/NavItem.js +15 -3
- package/es/components/Nav/NavList.js +3 -0
- package/es/components/NonLinearReading/NonLinearReading.d.ts +1 -1
- package/es/components/NonLinearReading/NonLinearReading.js +2 -2
- package/es/components/NonLinearReading/index.d.ts +8 -1
- package/es/components/NotificationsPanel/NotificationsPanel.d.ts +4 -2
- package/es/components/NotificationsPanel/NotificationsPanel.js +77 -7
- package/es/components/NotificationsPanel/index.d.ts +8 -1
- package/es/components/OptionsTile/OptionsTile.d.ts +2 -3
- package/es/components/OptionsTile/OptionsTile.js +15 -11
- package/es/components/OptionsTile/index.d.ts +8 -1
- package/es/components/PageHeader/PageHeader.d.ts +2 -2
- package/es/components/PageHeader/PageHeader.js +21 -10
- package/es/components/PageHeader/PageHeaderUtils.js +1 -6
- package/es/components/PageHeader/index.d.ts +2 -1
- package/es/components/ProductiveCard/ProductiveCard.d.ts +5 -1
- package/es/components/ProductiveCard/ProductiveCard.js +8 -2
- package/es/components/ProductiveCard/index.d.ts +2 -1
- package/es/components/RemoveModal/RemoveModal.d.ts +7 -4
- package/es/components/RemoveModal/RemoveModal.js +13 -7
- package/es/components/RemoveModal/index.d.ts +2 -1
- package/es/components/Saving/Saving.d.ts +1 -1
- package/es/components/Saving/Saving.js +3 -3
- package/es/components/Saving/index.d.ts +2 -1
- package/es/components/SearchBar/SearchBar.d.ts +2 -2
- package/es/components/SearchBar/SearchBar.js +4 -4
- package/es/components/SearchBar/index.d.ts +8 -1
- package/es/components/SidePanel/SidePanel.d.ts +1 -1
- package/es/components/SidePanel/SidePanel.js +45 -37
- package/es/components/SidePanel/index.d.ts +8 -1
- package/es/components/SidePanel/motion/variants.d.ts +4 -6
- package/es/components/SidePanel/motion/variants.js +10 -11
- package/es/components/SingleAddSelect/SingleAddSelect.d.ts +1 -2
- package/es/components/SingleAddSelect/SingleAddSelect.js +1 -1
- package/es/components/SingleAddSelect/index.d.ts +2 -1
- package/es/components/StatusIcon/StatusIcon.d.ts +1 -1
- package/es/components/StatusIcon/StatusIcon.js +1 -1
- package/es/components/StatusIcon/index.d.ts +8 -1
- package/es/components/StatusIndicator/StatusIndicatorStep.js +87 -0
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +1 -2
- package/es/components/SteppedAnimatedMedia/index.d.ts +8 -1
- package/es/components/StringFormatter/StringFormatter.js +14 -3
- package/es/components/StringFormatter/utils/enums.d.ts +20 -1
- package/es/components/StringFormatter/utils/enums.js +29 -2
- package/es/components/TagOverflow/TagOverflow.d.ts +36 -4
- package/es/components/TagOverflow/TagOverflow.js +59 -71
- package/es/components/TagOverflow/TagOverflowModal.js +4 -6
- package/es/components/TagOverflow/TagOverflowPopover.d.ts +14 -1
- package/es/components/TagOverflow/TagOverflowPopover.js +45 -42
- package/es/components/TagOverflow/index.d.ts +8 -1
- package/es/components/TagSet/TagSet.d.ts +10 -8
- package/es/components/TagSet/TagSet.js +43 -35
- package/es/components/TagSet/TagSetOverflow.d.ts +4 -0
- package/es/components/TagSet/TagSetOverflow.js +9 -3
- package/es/components/TagSet/index.d.ts +2 -1
- package/es/components/Tearsheet/Tearsheet.d.ts +4 -5
- package/es/components/Tearsheet/Tearsheet.js +5 -5
- package/es/components/Tearsheet/TearsheetNarrow.d.ts +4 -4
- package/es/components/Tearsheet/TearsheetNarrow.js +5 -5
- package/es/components/Tearsheet/TearsheetShell.d.ts +1 -1
- package/es/components/Tearsheet/TearsheetShell.js +28 -11
- package/es/components/Tearsheet/index.d.ts +10 -2
- package/es/components/Toolbar/Toolbar.d.ts +1 -1
- package/es/components/Toolbar/Toolbar.js +3 -3
- package/es/components/Toolbar/ToolbarButton.d.ts +14 -4
- package/es/components/Toolbar/ToolbarButton.js +20 -12
- package/es/components/Toolbar/ToolbarGroup.d.ts +1 -2
- package/es/components/Toolbar/ToolbarGroup.js +3 -3
- package/es/components/Toolbar/index.d.ts +12 -3
- package/es/components/TruncatedList/TruncatedList.d.ts +1 -2
- package/es/components/TruncatedList/TruncatedList.js +2 -2
- package/es/components/TruncatedList/index.d.ts +8 -1
- package/es/components/UserAvatar/UserAvatar.d.ts +59 -1
- package/es/components/UserAvatar/UserAvatar.js +7 -23
- package/es/components/UserProfileImage/UserProfileImage.d.ts +3 -3
- package/es/components/UserProfileImage/UserProfileImage.js +5 -4
- package/es/components/UserProfileImage/index.d.ts +2 -1
- package/es/components/WebTerminal/WebTerminal.d.ts +4 -4
- package/es/components/WebTerminal/WebTerminal.js +15 -17
- package/es/components/WebTerminal/WebTerminalContentWrapper.d.ts +2 -3
- package/es/components/WebTerminal/index.d.ts +11 -3
- package/es/components/index.d.ts +73 -72
- package/es/global/js/hooks/useCreateComponentStepChange.d.ts +3 -1
- package/es/global/js/hooks/useCreateComponentStepChange.js +18 -2
- package/es/global/js/hooks/useFocus.d.ts +3 -2
- package/es/global/js/hooks/useFocus.js +48 -28
- package/es/global/js/hooks/usePrefersReducedMotion.js +14 -8
- package/es/global/js/package-settings.d.ts +3 -1
- package/es/global/js/package-settings.js +3 -1
- package/es/global/js/utils/Wrap.d.ts +4 -0
- package/es/global/js/utils/keyboardNavigation.d.ts +27 -0
- package/es/global/js/utils/keyboardNavigation.js +37 -0
- package/es/global/js/utils/scrollableAncestor.js +7 -0
- package/es/global/js/utils/uuidv4.d.ts +6 -0
- package/es/global/js/utils/uuidv4.js +2 -0
- package/es/global/js/utils/wait.d.ts +6 -0
- package/es/global/js/utils/wait.js +2 -0
- package/es/global/js/utils/wrapFocus.d.ts +25 -0
- package/es/global/js/utils/wrapFocus.js +68 -0
- package/es/index.js +47 -44
- package/es/node_modules/@carbon/icon-helpers/es/index.js +49 -62
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-2.js +1020 -1058
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-9.js +879 -758
- package/es/settings.d.ts +3 -1
- package/flags.js +7 -0
- package/lib/components/APIKeyModal/APIKeyModal.types.d.ts +7 -1
- package/lib/components/APIKeyModal/index.d.ts +2 -1
- package/lib/components/AboutModal/AboutModal.d.ts +1 -2
- package/lib/components/AboutModal/AboutModal.js +22 -5
- package/lib/components/AboutModal/index.d.ts +8 -1
- package/lib/components/ActionBar/ActionBar.d.ts +62 -2
- package/lib/components/ActionBar/ActionBar.js +27 -12
- package/lib/components/ActionBar/ActionBarItem.d.ts +36 -2
- package/lib/components/ActionBar/ActionBarItem.js +7 -4
- package/lib/components/ActionBar/ActionBarOverflowItems.d.ts +64 -16
- package/lib/components/ActionBar/ActionBarOverflowItems.js +21 -7
- package/lib/components/ActionSet/ActionSet.d.ts +1 -2
- package/lib/components/ActionSet/ActionSet.js +2 -2
- package/lib/components/ActionSet/index.d.ts +8 -1
- package/lib/components/AddSelect/AddSelectBody.js +2 -2
- package/lib/components/AddSelect/index.d.ts +2 -1
- package/lib/components/AddSelect/types/index.d.ts +6 -0
- package/lib/components/Card/Card.d.ts +69 -2
- package/lib/components/Card/Card.js +36 -38
- package/lib/components/Card/CardFooter.d.ts +51 -48
- package/lib/components/Card/CardFooter.js +4 -2
- package/lib/components/Card/CardHeader.d.ts +67 -49
- package/lib/components/Card/CardHeader.js +4 -2
- package/lib/components/Carousel/Carousel.js +1 -2
- package/lib/components/Carousel/index.d.ts +9 -2
- package/lib/components/Cascade/Cascade.d.ts +1 -2
- package/lib/components/Cascade/Cascade.js +2 -2
- package/lib/components/Cascade/index.d.ts +2 -1
- package/lib/components/Checklist/Checklist.d.ts +2 -2
- package/lib/components/Checklist/Checklist.js +6 -6
- package/lib/components/Checklist/index.d.ts +8 -1
- package/lib/components/Coachmark/Coachmark.d.ts +7 -3
- package/lib/components/Coachmark/Coachmark.js +51 -15
- package/lib/components/Coachmark/CoachmarkDragbar.js +0 -1
- package/lib/components/Coachmark/CoachmarkHeader.js +0 -1
- package/lib/components/Coachmark/CoachmarkOverlay.js +2 -4
- package/lib/components/Coachmark/index.d.ts +10 -3
- package/lib/components/Coachmark/utils/enums.d.ts +6 -0
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.d.ts +2 -3
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +5 -10
- package/lib/components/CoachmarkBeacon/index.d.ts +8 -1
- package/lib/components/CoachmarkButton/CoachmarkButton.d.ts +1 -2
- package/lib/components/CoachmarkButton/CoachmarkButton.js +4 -2
- package/lib/components/CoachmarkButton/index.d.ts +8 -1
- package/lib/components/CoachmarkFixed/CoachmarkFixed.d.ts +1 -2
- package/lib/components/CoachmarkFixed/CoachmarkFixed.js +19 -16
- package/lib/components/CoachmarkFixed/index.d.ts +8 -1
- package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.d.ts +1 -2
- package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +0 -1
- package/lib/components/CoachmarkOverlayElement/index.d.ts +8 -1
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +1 -2
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +10 -7
- package/lib/components/CoachmarkOverlayElements/index.d.ts +8 -1
- package/lib/components/CoachmarkStack/CoachmarkStack.d.ts +67 -2
- package/lib/components/CoachmarkStack/CoachmarkStack.js +22 -11
- package/lib/components/CoachmarkStack/CoachmarkStackHome.d.ts +71 -2
- package/lib/components/CoachmarkStack/CoachmarkStackHome.js +26 -25
- package/lib/components/ComboButton/ComboButton.d.ts +1 -1
- package/lib/components/ComboButton/ComboButton.js +5 -5
- package/lib/components/ComboButton/index.d.ts +9 -2
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +100 -24
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +108 -65
- package/lib/components/ConditionBuilder/ConditionBuilder.d.ts +9 -2
- package/lib/components/ConditionBuilder/ConditionBuilder.js +32 -20
- package/lib/components/ConditionBuilder/ConditionBuilder.types.d.ts +151 -0
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +28 -14
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +71 -45
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +62 -25
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +29 -29
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +86 -34
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +22 -10
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.d.ts +29 -14
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +24 -15
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +23 -12
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +40 -22
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +86 -68
- package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts +10 -42
- package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +44 -35
- package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.d.ts +49 -39
- package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +49 -38
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +81 -27
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +103 -31
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +27 -10
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +27 -13
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.d.ts +30 -12
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +22 -14
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +35 -12
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +29 -17
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.d.ts +32 -12
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +30 -22
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +35 -10
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +23 -11
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.d.ts +25 -10
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +3 -3
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +44 -19
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +157 -63
- package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +30 -9
- package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.js +53 -31
- package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.d.ts +2 -1
- package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +152 -41
- package/lib/components/ConditionBuilder/utils/useDataConfigs.d.ts +18 -0
- package/lib/components/ConditionBuilder/utils/useDataConfigs.js +124 -0
- package/lib/components/ConditionBuilder/utils/useTranslations.d.ts +1 -0
- package/lib/components/ConditionBuilder/utils/useTranslations.js +33 -0
- package/lib/components/ConditionBuilder/utils/util.d.ts +18 -5
- package/lib/components/ConditionBuilder/utils/util.js +84 -23
- package/lib/components/CreateFullPage/CreateFullPage.d.ts +1 -1
- package/lib/components/CreateFullPage/CreateFullPage.js +7 -7
- package/lib/components/CreateFullPage/CreateFullPageStep.d.ts +2 -2
- package/lib/components/CreateFullPage/index.d.ts +10 -2
- package/lib/components/CreateModal/CreateModal.d.ts +2 -3
- package/lib/components/CreateModal/CreateModal.js +1 -1
- package/lib/components/CreateModal/index.d.ts +2 -1
- package/lib/components/CreateSidePanel/CreateSidePanel.js +1 -1
- package/lib/components/CreateSidePanel/index.d.ts +7 -1
- package/lib/components/CreateTearsheet/CreateTearsheet.d.ts +8 -2
- package/lib/components/CreateTearsheet/CreateTearsheet.js +20 -9
- package/lib/components/CreateTearsheet/CreateTearsheetStep.d.ts +18 -0
- package/lib/components/CreateTearsheet/CreateTearsheetStep.js +29 -2
- package/lib/components/CreateTearsheet/index.d.ts +10 -3
- package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.d.ts +1 -1
- package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +2 -2
- package/lib/components/CreateTearsheetNarrow/index.d.ts +8 -1
- package/lib/components/DataSpreadsheet/DataSpreadsheet.d.ts +29 -4
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +142 -61
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.d.ts +16 -0
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +32 -7
- package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.d.ts +8 -0
- package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +16 -3
- package/lib/components/DataSpreadsheet/index.d.ts +8 -1
- package/lib/components/DataSpreadsheet/types/index.d.ts +7 -0
- package/lib/components/Datagrid/Datagrid/Datagrid.d.ts +0 -4
- package/lib/components/Datagrid/Datagrid/Datagrid.js +2 -8
- package/lib/components/Datagrid/Datagrid/DatagridBody.d.ts +6 -0
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +8 -4
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +23 -8
- package/lib/components/Datagrid/Datagrid/DatagridRefBody.d.ts +6 -0
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +27 -12
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +9 -26
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +3 -2
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.d.ts +6 -0
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +8 -3
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +29 -13
- package/lib/components/Datagrid/Datagrid/DraggableElement.d.ts +6 -0
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +42 -12
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +4 -4
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.d.ts +3 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +16 -6
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +17 -9
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +3 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +14 -9
- package/lib/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +7 -0
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +35 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +2 -3
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +72 -24
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +10 -2
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/stateReducer.d.ts +14 -0
- package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +138 -35
- package/lib/components/Datagrid/common-column-ids.d.ts +6 -0
- package/lib/components/Datagrid/types/index.d.ts +52 -7
- package/lib/components/Datagrid/useActionsColumn.js +1 -4
- package/lib/components/Datagrid/useCustomizeColumns.d.ts +8 -1
- package/lib/components/Datagrid/useCustomizeColumns.js +4 -3
- package/lib/components/Datagrid/useDatagrid.d.ts +6 -0
- package/lib/components/Datagrid/useDefaultStringRenderer.js +0 -1
- package/lib/components/Datagrid/useDisableSelectRows.d.ts +8 -1
- package/lib/components/Datagrid/useDisableSelectRows.js +42 -22
- package/lib/components/Datagrid/useFiltering.d.ts +1 -0
- package/lib/components/Datagrid/useFiltering.js +13 -1
- package/lib/components/Datagrid/useFlexResize.d.ts +0 -6
- package/lib/components/Datagrid/useFlexResize.js +32 -16
- package/lib/components/Datagrid/useInitialColumnSort.js +4 -0
- package/lib/components/Datagrid/useInlineEdit.js +1 -1
- package/lib/components/Datagrid/useNestedRowExpander.js +66 -19
- package/lib/components/Datagrid/useNestedRows.js +5 -4
- package/lib/components/Datagrid/useRowExpander.js +1 -3
- package/lib/components/Datagrid/useRowIsMouseOver.d.ts +6 -0
- package/lib/components/Datagrid/useRowRenderer.js +44 -2
- package/lib/components/Datagrid/useSelectRows.js +2 -1
- package/lib/components/Datagrid/useSortableColumns.d.ts +5 -4
- package/lib/components/Datagrid/useSortableColumns.js +34 -15
- package/lib/components/Datagrid/useStickyColumn.d.ts +8 -1
- package/lib/components/Datagrid/useStickyColumn.js +12 -9
- package/lib/components/DelimitedList/DelimitedList.d.ts +1 -2
- package/lib/components/DelimitedList/index.d.ts +8 -1
- package/lib/components/EditFullPage/EditFullPage.d.ts +1 -2
- package/lib/components/EditFullPage/index.d.ts +8 -1
- package/lib/components/EditInPlace/EditInPlace.d.ts +9 -1
- package/lib/components/EditInPlace/EditInPlace.js +37 -18
- package/lib/components/EditInPlace/index.d.ts +8 -1
- package/lib/components/EditSidePanel/EditSidePanel.d.ts +2 -3
- package/lib/components/EditSidePanel/EditSidePanel.js +3 -3
- package/lib/components/EditSidePanel/index.d.ts +8 -1
- package/lib/components/EditTearsheet/EditTearsheet.d.ts +7 -2
- package/lib/components/EditTearsheet/EditTearsheet.js +43 -9
- package/lib/components/EditTearsheet/EditTearsheetForm.d.ts +45 -2
- package/lib/components/EditTearsheet/EditTearsheetForm.js +3 -0
- package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.d.ts +1 -2
- package/lib/components/EditTearsheetNarrow/index.d.ts +8 -1
- package/lib/components/EditUpdateCards/EditUpdateCards.d.ts +2 -2
- package/lib/components/EditUpdateCards/EditUpdateCards.js +3 -3
- package/lib/components/EditUpdateCards/index.d.ts +8 -1
- package/lib/components/EmptyStates/EmptyState.d.ts +72 -5
- package/lib/components/EmptyStates/EmptyState.js +8 -5
- package/lib/components/EmptyStates/EmptyStateV2.d.ts +63 -2
- package/lib/components/EmptyStates/EmptyStateV2.js +3 -2
- package/lib/components/ExportModal/ExportModal.d.ts +3 -3
- package/lib/components/ExportModal/ExportModal.js +3 -3
- package/lib/components/ExportModal/index.d.ts +2 -1
- package/lib/components/ExpressiveCard/ExpressiveCard.d.ts +1 -1
- package/lib/components/ExpressiveCard/ExpressiveCard.js +1 -1
- package/lib/components/ExpressiveCard/index.d.ts +2 -1
- package/lib/components/FeatureFlags/index.d.ts +26 -21
- package/lib/components/FeatureFlags/index.js +1 -10
- package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +1 -1
- package/lib/components/FilterSummary/FilterSummary.d.ts +1 -1
- package/lib/components/FilterSummary/FilterSummary.js +7 -8
- package/lib/components/FilterSummary/index.d.ts +8 -1
- package/lib/components/FullPageError/FullPageError.d.ts +35 -2
- package/lib/components/FullPageError/FullPageError.js +10 -10
- package/lib/components/FullPageError/assets/Error403SVG.d.ts +3 -1
- package/lib/components/FullPageError/assets/Error403SVG.js +6 -3
- package/lib/components/FullPageError/assets/Error404SVG.d.ts +3 -1
- package/lib/components/FullPageError/assets/Error404SVG.js +6 -3
- package/lib/components/FullPageError/assets/ErrorGenericSVG.d.ts +3 -1
- package/lib/components/FullPageError/assets/ErrorGenericSVG.js +6 -3
- package/lib/components/FullPageError/index.d.ts +8 -1
- package/lib/components/GetStartedCard/GetStartedCard.d.ts +60 -2
- package/lib/components/GetStartedCard/GetStartedCard.js +10 -9
- package/lib/components/GetStartedCard/index.d.ts +8 -1
- package/lib/components/Guidebanner/Guidebanner.d.ts +1 -2
- package/lib/components/Guidebanner/Guidebanner.js +18 -17
- package/lib/components/Guidebanner/GuidebannerElement.d.ts +1 -2
- package/lib/components/Guidebanner/GuidebannerElementButton.d.ts +2 -3
- package/lib/components/Guidebanner/GuidebannerElementButton.js +2 -2
- package/lib/components/Guidebanner/GuidebannerElementLink.d.ts +2 -3
- package/lib/components/Guidebanner/GuidebannerElementLink.js +1 -1
- package/lib/components/Guidebanner/index.d.ts +14 -4
- package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +8 -1
- package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +8 -1
- package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +7 -0
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg403.d.ts +3 -1
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg403.js +210 -203
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg404.d.ts +3 -1
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg404.js +122 -115
- package/lib/components/HTTPErrors/assets/HTTPErrorSvgOther.d.ts +3 -1
- package/lib/components/HTTPErrors/assets/HTTPErrorSvgOther.js +116 -109
- package/lib/components/ImportModal/ImportModal.d.ts +1 -1
- package/lib/components/ImportModal/ImportModal.js +3 -3
- package/lib/components/ImportModal/index.d.ts +2 -1
- package/lib/components/InlineTip/InlineTip.d.ts +1 -1
- package/lib/components/InlineTip/InlineTip.js +4 -4
- package/lib/components/InlineTip/InlineTipButton.d.ts +1 -2
- package/lib/components/InlineTip/InlineTipButton.js +1 -1
- package/lib/components/InlineTip/InlineTipLink.d.ts +1 -2
- package/lib/components/InlineTip/InlineTipLink.js +2 -2
- package/lib/components/InlineTip/index.d.ts +12 -3
- package/lib/components/InterstitialScreen/InterstitialScreen.d.ts +1 -1
- package/lib/components/InterstitialScreen/InterstitialScreen.js +6 -5
- package/lib/components/InterstitialScreen/index.d.ts +8 -1
- package/lib/components/InterstitialScreenView/InterstitialScreenView.d.ts +1 -2
- package/lib/components/InterstitialScreenView/index.d.ts +8 -1
- package/lib/components/InterstitialScreenViewModule/InterstitialScreenViewModule.d.ts +1 -2
- package/lib/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +1 -1
- package/lib/components/InterstitialScreenViewModule/index.d.ts +8 -1
- package/lib/components/MultiAddSelect/MultiAddSelect.d.ts +1 -1
- package/lib/components/MultiAddSelect/MultiAddSelect.js +1 -1
- package/lib/components/MultiAddSelect/index.d.ts +2 -1
- package/lib/components/Nav/NavItem.js +18 -7
- package/lib/components/Nav/NavList.js +8 -6
- package/lib/components/NonLinearReading/NonLinearReading.d.ts +1 -1
- package/lib/components/NonLinearReading/NonLinearReading.js +2 -2
- package/lib/components/NonLinearReading/index.d.ts +8 -1
- package/lib/components/NotificationsPanel/NotificationsPanel.d.ts +4 -2
- package/lib/components/NotificationsPanel/NotificationsPanel.js +77 -7
- package/lib/components/NotificationsPanel/index.d.ts +8 -1
- package/lib/components/OptionsTile/OptionsTile.d.ts +2 -3
- package/lib/components/OptionsTile/OptionsTile.js +16 -12
- package/lib/components/OptionsTile/index.d.ts +8 -1
- package/lib/components/PageHeader/PageHeader.d.ts +2 -2
- package/lib/components/PageHeader/PageHeader.js +20 -9
- package/lib/components/PageHeader/PageHeaderUtils.js +1 -6
- package/lib/components/PageHeader/index.d.ts +2 -1
- package/lib/components/ProductiveCard/ProductiveCard.d.ts +5 -1
- package/lib/components/ProductiveCard/ProductiveCard.js +8 -2
- package/lib/components/ProductiveCard/index.d.ts +2 -1
- package/lib/components/RemoveModal/RemoveModal.d.ts +7 -4
- package/lib/components/RemoveModal/RemoveModal.js +13 -7
- package/lib/components/RemoveModal/index.d.ts +2 -1
- package/lib/components/Saving/Saving.d.ts +1 -1
- package/lib/components/Saving/Saving.js +2 -2
- package/lib/components/Saving/index.d.ts +2 -1
- package/lib/components/SearchBar/SearchBar.d.ts +2 -2
- package/lib/components/SearchBar/SearchBar.js +3 -3
- package/lib/components/SearchBar/index.d.ts +8 -1
- package/lib/components/SidePanel/SidePanel.d.ts +1 -1
- package/lib/components/SidePanel/SidePanel.js +44 -36
- package/lib/components/SidePanel/index.d.ts +8 -1
- package/lib/components/SidePanel/motion/variants.d.ts +4 -6
- package/lib/components/SidePanel/motion/variants.js +10 -11
- package/lib/components/SingleAddSelect/SingleAddSelect.d.ts +1 -2
- package/lib/components/SingleAddSelect/SingleAddSelect.js +1 -1
- package/lib/components/SingleAddSelect/index.d.ts +2 -1
- package/lib/components/StatusIcon/StatusIcon.d.ts +1 -1
- package/lib/components/StatusIcon/StatusIcon.js +1 -1
- package/lib/components/StatusIcon/index.d.ts +8 -1
- package/lib/components/StatusIndicator/StatusIndicatorStep.js +94 -0
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +1 -2
- package/lib/components/SteppedAnimatedMedia/index.d.ts +8 -1
- package/lib/components/StringFormatter/StringFormatter.js +13 -2
- package/lib/components/StringFormatter/utils/enums.d.ts +20 -1
- package/lib/components/StringFormatter/utils/enums.js +30 -1
- package/lib/components/TagOverflow/TagOverflow.d.ts +36 -4
- package/lib/components/TagOverflow/TagOverflow.js +58 -70
- package/lib/components/TagOverflow/TagOverflowModal.js +4 -6
- package/lib/components/TagOverflow/TagOverflowPopover.d.ts +14 -1
- package/lib/components/TagOverflow/TagOverflowPopover.js +44 -41
- package/lib/components/TagOverflow/index.d.ts +8 -1
- package/lib/components/TagSet/TagSet.d.ts +10 -8
- package/lib/components/TagSet/TagSet.js +42 -34
- package/lib/components/TagSet/TagSetOverflow.d.ts +4 -0
- package/lib/components/TagSet/TagSetOverflow.js +9 -3
- package/lib/components/TagSet/index.d.ts +2 -1
- package/lib/components/Tearsheet/Tearsheet.d.ts +4 -5
- package/lib/components/Tearsheet/Tearsheet.js +4 -4
- package/lib/components/Tearsheet/TearsheetNarrow.d.ts +4 -4
- package/lib/components/Tearsheet/TearsheetNarrow.js +4 -4
- package/lib/components/Tearsheet/TearsheetShell.d.ts +1 -1
- package/lib/components/Tearsheet/TearsheetShell.js +26 -9
- package/lib/components/Tearsheet/index.d.ts +10 -2
- package/lib/components/Toolbar/Toolbar.d.ts +1 -1
- package/lib/components/Toolbar/Toolbar.js +4 -4
- package/lib/components/Toolbar/ToolbarButton.d.ts +14 -4
- package/lib/components/Toolbar/ToolbarButton.js +20 -11
- package/lib/components/Toolbar/ToolbarGroup.d.ts +1 -2
- package/lib/components/Toolbar/ToolbarGroup.js +4 -4
- package/lib/components/Toolbar/index.d.ts +12 -3
- package/lib/components/TruncatedList/TruncatedList.d.ts +1 -2
- package/lib/components/TruncatedList/TruncatedList.js +2 -2
- package/lib/components/TruncatedList/index.d.ts +8 -1
- package/lib/components/UserAvatar/UserAvatar.d.ts +59 -1
- package/lib/components/UserAvatar/UserAvatar.js +7 -23
- package/lib/components/UserProfileImage/UserProfileImage.d.ts +3 -3
- package/lib/components/UserProfileImage/UserProfileImage.js +5 -4
- package/lib/components/UserProfileImage/index.d.ts +2 -1
- package/lib/components/WebTerminal/WebTerminal.d.ts +4 -4
- package/lib/components/WebTerminal/WebTerminal.js +28 -30
- package/lib/components/WebTerminal/WebTerminalContentWrapper.d.ts +2 -3
- package/lib/components/WebTerminal/WebTerminalContentWrapper.js +4 -4
- package/lib/components/WebTerminal/index.d.ts +11 -3
- package/lib/components/index.d.ts +73 -72
- package/lib/global/js/hooks/useCreateComponentStepChange.d.ts +3 -1
- package/lib/global/js/hooks/useCreateComponentStepChange.js +18 -2
- package/lib/global/js/hooks/useFocus.d.ts +3 -2
- package/lib/global/js/hooks/useFocus.js +48 -27
- package/lib/global/js/hooks/usePrefersReducedMotion.js +13 -7
- package/lib/global/js/package-settings.d.ts +3 -1
- package/lib/global/js/package-settings.js +3 -1
- package/lib/global/js/utils/Wrap.d.ts +4 -0
- package/lib/global/js/utils/keyboardNavigation.d.ts +27 -0
- package/lib/global/js/utils/keyboardNavigation.js +43 -0
- package/lib/global/js/utils/scrollableAncestor.js +7 -0
- package/lib/global/js/utils/uuidv4.d.ts +6 -0
- package/lib/global/js/utils/uuidv4.js +2 -0
- package/lib/global/js/utils/wait.d.ts +6 -0
- package/lib/global/js/utils/wait.js +2 -0
- package/lib/global/js/utils/wrapFocus.d.ts +25 -0
- package/lib/global/js/utils/wrapFocus.js +73 -0
- package/lib/index.js +172 -157
- package/lib/node_modules/@carbon/icon-helpers/es/index.js +49 -62
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-2.js +1036 -1074
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-9.js +944 -823
- package/lib/settings.d.ts +3 -1
- package/package.json +14 -13
- package/scss/components/Coachmark/_coachmark-overlay.scss +6 -70
- package/scss/components/Coachmark/_coachmark.scss +5 -4
- package/scss/components/CoachmarkBeacon/_coachmark-beacon.scss +1 -3
- package/scss/components/ConditionBuilder/_condition-builder.scss +9 -2
- package/scss/components/ConditionBuilder/styles/_conditionBuilderCondition.scss +21 -4
- package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +92 -40
- package/scss/components/ConditionBuilder/styles/_index.scss +7 -0
- package/scss/components/CreateModal/_create-modal.scss +0 -4
- package/scss/components/DataSpreadsheet/_data-spreadsheet.scss +16 -2
- package/scss/components/Datagrid/_datagrid.scss +0 -4
- package/scss/components/Datagrid/styles/_datagrid.scss +8 -0
- package/scss/components/Datagrid/styles/_useActionsColumn.scss +10 -7
- package/scss/components/Datagrid/styles/_useColumnRightAlign.scss +6 -7
- package/scss/components/Datagrid/styles/_useExpandedRow.scss +6 -7
- package/scss/components/Datagrid/styles/_useInlineEdit.scss +19 -7
- package/scss/components/Datagrid/styles/_useNestedRows.scss +7 -8
- package/scss/components/Datagrid/styles/_useNestedTable.scss +6 -7
- package/scss/components/Datagrid/styles/_useSortableColumns.scss +1 -0
- package/scss/components/Datagrid/styles/_useStickyColumn.scss +6 -7
- package/scss/components/Datagrid/styles/addons/_CustomizeColumnsTearsheet.scss +7 -5
- package/scss/components/Datagrid/styles/addons/_FilterFlyout.scss +5 -4
- package/scss/components/Datagrid/styles/addons/_RowSizeDropdown.scss +6 -7
- package/scss/components/EditInPlace/_edit-in-place.scss +2 -2
- package/scss/components/HTTPErrors/_http-errors.scss +77 -0
- package/scss/components/OptionsTile/_options-tile.scss +6 -6
- package/scss/components/SidePanel/_side-panel.scss +1 -1
- package/scss/components/Tearsheet/_tearsheet.scss +2 -0
- package/scss/components/_index-released-only.scss +1 -0
- package/scss/config-dev.scss +7 -0
- package/scss/config.scss +7 -0
- package/telemetry.yml +51 -22
- package/es/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.d.ts +0 -27
- package/es/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.js +0 -120
- package/es/global/js/utils/window.d.ts +0 -2
- package/es/global/js/utils/window.js +0 -12
- package/lib/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.d.ts +0 -27
- package/lib/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.js +0 -129
- package/lib/global/js/utils/window.d.ts +0 -2
- package/lib/global/js/utils/window.js +0 -16
@@ -1,15 +1,30 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
}): import("react/jsx-runtime").JSX.Element;
|
8
|
-
declare namespace ConditionConnector {
|
9
|
-
namespace propTypes {
|
10
|
-
let className: PropTypes.Requireable<string>;
|
11
|
-
let onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
12
|
-
let operator: PropTypes.Requireable<string>;
|
13
|
-
}
|
14
|
-
}
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2024
|
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
|
+
*/
|
15
7
|
import PropTypes from 'prop-types';
|
8
|
+
interface ConditionConnectorProps {
|
9
|
+
operator: string;
|
10
|
+
className: string;
|
11
|
+
onChange?: (op: string) => void;
|
12
|
+
}
|
13
|
+
declare const ConditionConnector: {
|
14
|
+
({ operator, className, onChange, ...rest }: ConditionConnectorProps): import("react/jsx-runtime").JSX.Element;
|
15
|
+
propTypes: {
|
16
|
+
/**
|
17
|
+
* Provide an optional class to be applied to the containing node.
|
18
|
+
*/
|
19
|
+
className: PropTypes.Requireable<string>;
|
20
|
+
/**
|
21
|
+
* callback to update the current condition of the state tree
|
22
|
+
*/
|
23
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
24
|
+
/**
|
25
|
+
* string that defines the connector operator (and/or)
|
26
|
+
*/
|
27
|
+
operator: PropTypes.Requireable<string>;
|
28
|
+
};
|
29
|
+
};
|
30
|
+
export default ConditionConnector;
|
@@ -13,10 +13,12 @@ var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHel
|
|
13
13
|
var React = require('react');
|
14
14
|
var ConditionBuilderItem = require('../ConditionBuilderItem/ConditionBuilderItem.js');
|
15
15
|
var ItemOption = require('../ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js');
|
16
|
-
var DataConfigs = require('../ConditionBuilderContext/DataConfigs.js');
|
17
16
|
var index = require('../../../node_modules/prop-types/index.js');
|
18
17
|
var util = require('../utils/util.js');
|
19
18
|
var ConditionBuilderProvider = require('../ConditionBuilderContext/ConditionBuilderProvider.js');
|
19
|
+
var useTranslations = require('../utils/useTranslations.js');
|
20
|
+
var useDataConfigs = require('../utils/useDataConfigs.js');
|
21
|
+
var ConditionBuilderButton = require('../ConditionBuilderButton/ConditionBuilderButton.js');
|
20
22
|
|
21
23
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
22
24
|
|
@@ -29,7 +31,13 @@ var ConditionConnector = function ConditionConnector(_ref) {
|
|
29
31
|
onChange = _ref.onChange,
|
30
32
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
31
33
|
var _useContext = React.useContext(ConditionBuilderProvider.ConditionBuilderContext),
|
32
|
-
variant = _useContext.variant
|
34
|
+
variant = _useContext.variant,
|
35
|
+
conditionBuilderRef = _useContext.conditionBuilderRef;
|
36
|
+
var _useTranslations = useTranslations.useTranslations(['connectorText']),
|
37
|
+
_useTranslations2 = _rollupPluginBabelHelpers.slicedToArray(_useTranslations, 1),
|
38
|
+
connectorText = _useTranslations2[0];
|
39
|
+
var _useDataConfigs = useDataConfigs.useDataConfigs(),
|
40
|
+
connectorConfig = _useDataConfigs.connectorConfig;
|
33
41
|
var handleConnectorHover = React.useCallback(function (parentGroup, isHover) {
|
34
42
|
if (isHover) {
|
35
43
|
parentGroup.classList.add('hoveredConnector');
|
@@ -38,25 +46,27 @@ var ConditionConnector = function ConditionConnector(_ref) {
|
|
38
46
|
}
|
39
47
|
}, []);
|
40
48
|
var activeConnectorHandler = function activeConnectorHandler(evt) {
|
41
|
-
var parentGroup = evt.currentTarget.closest('.eachGroup');
|
49
|
+
var parentGroup = evt === null || evt === void 0 ? void 0 : evt.currentTarget.closest('.eachGroup');
|
42
50
|
handleConnectorHover(parentGroup, true);
|
43
51
|
};
|
44
52
|
var inActiveConnectorHandler = function inActiveConnectorHandler(evt) {
|
45
|
-
var parentGroup = evt.currentTarget.closest('.eachGroup');
|
53
|
+
var parentGroup = evt === null || evt === void 0 ? void 0 : evt.currentTarget.closest('.eachGroup');
|
46
54
|
handleConnectorHover(parentGroup, false);
|
47
55
|
};
|
48
56
|
var onChangeHandler = function onChangeHandler(op, evt) {
|
49
|
-
onChange(op);
|
50
|
-
util.focusThisField(evt);
|
57
|
+
onChange === null || onChange === void 0 || onChange(op);
|
58
|
+
util.focusThisField(evt, conditionBuilderRef);
|
51
59
|
};
|
52
|
-
return variant ==
|
53
|
-
className: "".concat(className, " ").concat(
|
54
|
-
},
|
60
|
+
return variant == util.HIERARCHICAL_VARIANT ? /*#__PURE__*/React__default["default"].createElement("span", {
|
61
|
+
className: "".concat(className, " ").concat(util.blockClass, "__connector--disabled")
|
62
|
+
}, /*#__PURE__*/React__default["default"].createElement(ConditionBuilderButton.ConditionBuilderButton, {
|
63
|
+
label: operator
|
64
|
+
})) :
|
55
65
|
/*#__PURE__*/
|
56
66
|
// <div className={className} {...rest}>
|
57
67
|
React__default["default"].createElement(ConditionBuilderItem.ConditionBuilderItem, _rollupPluginBabelHelpers["extends"]({
|
58
68
|
label: operator,
|
59
|
-
title:
|
69
|
+
title: connectorText,
|
60
70
|
"data-name": "connectorField",
|
61
71
|
onMouseEnter: activeConnectorHandler,
|
62
72
|
onMouseLeave: inActiveConnectorHandler,
|
@@ -64,14 +74,14 @@ var ConditionConnector = function ConditionConnector(_ref) {
|
|
64
74
|
onBlur: inActiveConnectorHandler
|
65
75
|
}, rest, {
|
66
76
|
popOverClassName: className,
|
67
|
-
className: "".concat(
|
77
|
+
className: "".concat(util.blockClass, "__connector-button")
|
68
78
|
}), /*#__PURE__*/React__default["default"].createElement(ItemOption.ItemOption, {
|
69
79
|
config: {
|
70
|
-
options:
|
80
|
+
options: connectorConfig
|
71
81
|
},
|
72
82
|
conditionState: {
|
73
83
|
value: operator,
|
74
|
-
label:
|
84
|
+
label: connectorText
|
75
85
|
},
|
76
86
|
onChange: onChangeHandler
|
77
87
|
}))
|
@@ -79,7 +89,6 @@ var ConditionConnector = function ConditionConnector(_ref) {
|
|
79
89
|
// </div>
|
80
90
|
;
|
81
91
|
};
|
82
|
-
var ConditionConnector$1 = ConditionConnector;
|
83
92
|
ConditionConnector.propTypes = {
|
84
93
|
/**
|
85
94
|
* Provide an optional class to be applied to the containing node.
|
@@ -95,4 +104,4 @@ ConditionConnector.propTypes = {
|
|
95
104
|
operator: index["default"].string
|
96
105
|
};
|
97
106
|
|
98
|
-
exports["default"] = ConditionConnector
|
107
|
+
exports["default"] = ConditionConnector;
|
@@ -9,12 +9,14 @@
|
|
9
9
|
|
10
10
|
Object.defineProperty(exports, '__esModule', { value: true });
|
11
11
|
|
12
|
+
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
12
13
|
var React = require('react');
|
13
14
|
var ConditionBuilderItem = require('../ConditionBuilderItem/ConditionBuilderItem.js');
|
14
|
-
var DataConfigs = require('../ConditionBuilderContext/DataConfigs.js');
|
15
15
|
var ItemOption = require('../ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js');
|
16
|
-
var util = require('../utils/util.js');
|
17
16
|
var ConditionBuilderProvider = require('../ConditionBuilderContext/ConditionBuilderProvider.js');
|
17
|
+
var useTranslations = require('../utils/useTranslations.js');
|
18
|
+
var util = require('../utils/util.js');
|
19
|
+
var useDataConfigs = require('../utils/useDataConfigs.js');
|
18
20
|
|
19
21
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
20
22
|
|
@@ -22,28 +24,37 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
22
24
|
|
23
25
|
var GroupConnector = function GroupConnector() {
|
24
26
|
var _useContext = React.useContext(ConditionBuilderProvider.ConditionBuilderContext),
|
25
|
-
rootState = _useContext.rootState
|
27
|
+
rootState = _useContext.rootState,
|
28
|
+
setRootState = _useContext.setRootState;
|
29
|
+
var _useTranslations = useTranslations.useTranslations(['conditionText']),
|
30
|
+
_useTranslations2 = _rollupPluginBabelHelpers.slicedToArray(_useTranslations, 1),
|
31
|
+
conditionText = _useTranslations2[0];
|
32
|
+
var _useDataConfigs = useDataConfigs.useDataConfigs(),
|
33
|
+
connectorConfig = _useDataConfigs.connectorConfig;
|
34
|
+
var onStatementChangeHandler = function onStatementChangeHandler(updatedStatement) {
|
35
|
+
setRootState(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, rootState), {}, {
|
36
|
+
operator: updatedStatement
|
37
|
+
}));
|
38
|
+
};
|
26
39
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
27
|
-
className: "".concat(
|
40
|
+
className: "".concat(util.blockClass, "__group-separator ").concat(util.blockClass, "__group-separator-row"),
|
28
41
|
role: "row",
|
29
42
|
tabIndex: -1,
|
30
43
|
"aria-level": 1
|
31
44
|
}, /*#__PURE__*/React__default["default"].createElement(ConditionBuilderItem.ConditionBuilderItem, {
|
32
45
|
label: rootState.operator,
|
33
|
-
title:
|
46
|
+
title: conditionText,
|
34
47
|
"data-name": "connectorField",
|
35
|
-
popOverClassName: "".concat(
|
36
|
-
className: "".concat(
|
48
|
+
popOverClassName: "".concat(util.blockClass, "__gap"),
|
49
|
+
className: "".concat(util.blockClass, "__statement-button")
|
37
50
|
}, /*#__PURE__*/React__default["default"].createElement(ItemOption.ItemOption, {
|
38
51
|
conditionState: {
|
39
52
|
value: rootState.operator,
|
40
|
-
label:
|
41
|
-
},
|
42
|
-
onChange: function onChange(v, e) {
|
43
|
-
util.focusThisField(e);
|
53
|
+
label: conditionText
|
44
54
|
},
|
55
|
+
onChange: onStatementChangeHandler,
|
45
56
|
config: {
|
46
|
-
options:
|
57
|
+
options: connectorConfig
|
47
58
|
}
|
48
59
|
})));
|
49
60
|
};
|
package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts
CHANGED
@@ -1,30 +1,48 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2024
|
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 PropTypes from 'prop-types';
|
8
|
+
import { Action, ConditionBuilderState } from '../ConditionBuilder.types';
|
9
|
+
interface ConditionBuilderContentProps {
|
10
|
+
startConditionLabel: string;
|
11
|
+
getConditionState: (state: ConditionBuilderState) => void;
|
12
|
+
getActionsState?: (state: Action[]) => void;
|
13
|
+
initialState?: ConditionBuilderState;
|
14
|
+
actions?: Action[];
|
15
|
+
}
|
16
|
+
declare const ConditionBuilderContent: {
|
17
|
+
({ startConditionLabel, getConditionState, getActionsState, initialState, actions, }: ConditionBuilderContentProps): import("react/jsx-runtime").JSX.Element;
|
18
|
+
propTypes: {
|
19
|
+
/**
|
20
|
+
* optional array of object that give the list of actions.
|
21
|
+
*/
|
22
|
+
actions: PropTypes.Requireable<(PropTypes.InferProps<{
|
13
23
|
id: PropTypes.Validator<NonNullable<NonNullable<string | number | null | undefined>>>;
|
14
24
|
label: PropTypes.Validator<string>;
|
15
25
|
}> | null | undefined)[]>;
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
26
|
+
/**
|
27
|
+
* callback functions that will provide the updated action state back.
|
28
|
+
*/
|
29
|
+
getActionsState: PropTypes.Requireable<(...args: any[]) => any>;
|
30
|
+
/**
|
31
|
+
* This is a callback function that returns the updated state
|
32
|
+
*/
|
33
|
+
getConditionState: PropTypes.Validator<(...args: any[]) => any>;
|
34
|
+
/**
|
35
|
+
* Optional prop if the condition building need to start from a predefined initial state
|
36
|
+
*/
|
37
|
+
initialState: PropTypes.Requireable<PropTypes.InferProps<{
|
20
38
|
groups: PropTypes.Requireable<(PropTypes.InferProps<{
|
21
|
-
groupOperator: PropTypes.
|
22
|
-
statement: PropTypes.
|
39
|
+
groupOperator: PropTypes.Requireable<string>;
|
40
|
+
statement: PropTypes.Requireable<string>;
|
23
41
|
conditions: PropTypes.Requireable<(object | null | undefined)[]>;
|
24
42
|
}> | null | undefined)[]>;
|
25
43
|
operator: PropTypes.Requireable<string>;
|
26
44
|
}>>;
|
27
|
-
|
28
|
-
}
|
29
|
-
}
|
30
|
-
|
45
|
+
startConditionLabel: PropTypes.Validator<string>;
|
46
|
+
};
|
47
|
+
};
|
48
|
+
export default ConditionBuilderContent;
|
@@ -16,22 +16,22 @@ var react = require('@carbon/react');
|
|
16
16
|
var icons = require('@carbon/react/icons');
|
17
17
|
var ConditionGroupBuilder = require('../ConditionGroupBuilder/ConditionGroupBuilder.js');
|
18
18
|
var ConditionBuilderProvider = require('../ConditionBuilderContext/ConditionBuilderProvider.js');
|
19
|
-
var DataConfigs = require('../ConditionBuilderContext/DataConfigs.js');
|
20
19
|
var ConditionBuilderButton = require('../ConditionBuilderButton/ConditionBuilderButton.js');
|
21
20
|
var uuidv4 = require('../../../global/js/utils/uuidv4.js');
|
22
21
|
var ConditionPreview = require('../ConditionPreview/ConditionPreview.js');
|
23
22
|
var GroupConnector = require('../ConditionBuilderConnector/GroupConnector.js');
|
24
23
|
var ConditionBuilderActions = require('../ConditionBuilderActions/ConditionBuilderActions.js');
|
24
|
+
var useTranslations = require('../utils/useTranslations.js');
|
25
|
+
var util = require('../utils/util.js');
|
25
26
|
|
26
27
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
27
28
|
|
28
29
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
29
30
|
|
30
|
-
var
|
31
|
+
var _GroupConnector;
|
31
32
|
var ConditionBuilderContent = function ConditionBuilderContent(_ref) {
|
32
|
-
var _rootState$
|
33
|
+
var _rootState$groups4;
|
33
34
|
var startConditionLabel = _ref.startConditionLabel,
|
34
|
-
conditionBuilderRef = _ref.conditionBuilderRef,
|
35
35
|
getConditionState = _ref.getConditionState,
|
36
36
|
getActionsState = _ref.getActionsState,
|
37
37
|
initialState = _ref.initialState,
|
@@ -49,6 +49,17 @@ var ConditionBuilderContent = function ConditionBuilderContent(_ref) {
|
|
49
49
|
_useState4 = _rollupPluginBabelHelpers.slicedToArray(_useState3, 2),
|
50
50
|
showConditionGroupPreview = _useState4[0],
|
51
51
|
setShowConditionGroupPreview = _useState4[1];
|
52
|
+
var _useTranslations = useTranslations.useTranslations(['addConditionGroupText', 'conditionHeadingText', 'conditionBuilderHierarchicalText']),
|
53
|
+
_useTranslations2 = _rollupPluginBabelHelpers.slicedToArray(_useTranslations, 3),
|
54
|
+
addConditionGroupText = _useTranslations2[0],
|
55
|
+
conditionHeadingText = _useTranslations2[1],
|
56
|
+
conditionBuilderHierarchicalText = _useTranslations2[2];
|
57
|
+
var showConditionGroupPreviewHandler = function showConditionGroupPreviewHandler() {
|
58
|
+
setShowConditionGroupPreview(true);
|
59
|
+
};
|
60
|
+
var hideConditionGroupPreviewHandler = function hideConditionGroupPreviewHandler() {
|
61
|
+
setShowConditionGroupPreview(false);
|
62
|
+
};
|
52
63
|
React.useEffect(function () {
|
53
64
|
var _rootState$groups;
|
54
65
|
if (rootState !== null && rootState !== void 0 && (_rootState$groups = rootState.groups) !== null && _rootState$groups !== void 0 && _rootState$groups.length) {
|
@@ -57,26 +68,27 @@ var ConditionBuilderContent = function ConditionBuilderContent(_ref) {
|
|
57
68
|
setIsConditionBuilderActive(false);
|
58
69
|
}
|
59
70
|
if (getConditionState) {
|
60
|
-
getConditionState(rootState);
|
71
|
+
getConditionState(rootState !== null && rootState !== void 0 ? rootState : {});
|
61
72
|
}
|
62
73
|
|
63
74
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
64
75
|
}, [rootState]);
|
65
76
|
React.useEffect(function () {
|
66
|
-
getActionsState === null || getActionsState === void 0 || getActionsState(actionState);
|
77
|
+
getActionsState === null || getActionsState === void 0 || getActionsState(actionState !== null && actionState !== void 0 ? actionState : []);
|
67
78
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
68
79
|
}, [actionState]);
|
69
80
|
var onStartConditionBuilder = function onStartConditionBuilder() {
|
70
81
|
//when add condition button is clicked.
|
71
82
|
setIsConditionBuilderActive(true);
|
72
|
-
setRootState(initialState !== null && initialState !== void 0 ? initialState : ConditionBuilderProvider.emptyState); //here we can set an empty skeleton object for an empty condition builder,
|
83
|
+
setRootState === null || setRootState === void 0 || setRootState(initialState !== null && initialState !== void 0 ? initialState : ConditionBuilderProvider.emptyState); //here we can set an empty skeleton object for an empty condition builder,
|
73
84
|
//or we can even pre-populate some existing builder and continue editing
|
74
85
|
};
|
75
86
|
var _onRemove = React.useCallback(function (groupId) {
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
87
|
+
var _rootState$groups2;
|
88
|
+
setRootState === null || setRootState === void 0 || setRootState(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, rootState), {}, {
|
89
|
+
groups: rootState ? rootState === null || rootState === void 0 || (_rootState$groups2 = rootState.groups) === null || _rootState$groups2 === void 0 ? void 0 : _rootState$groups2.filter(function (group) {
|
90
|
+
return groupId !== (group === null || group === void 0 ? void 0 : group.id);
|
91
|
+
}) : []
|
80
92
|
}));
|
81
93
|
}, [setRootState, rootState]);
|
82
94
|
var onChangeHandler = function onChangeHandler(updatedGroup, groupIndex) {
|
@@ -84,17 +96,18 @@ var ConditionBuilderContent = function ConditionBuilderContent(_ref) {
|
|
84
96
|
* This method is triggered from inner components. This will be called every time when any change is to be updated in the rootState.
|
85
97
|
* This gets the updated group as argument.
|
86
98
|
*/
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
99
|
+
if (rootState && rootState.groups) {
|
100
|
+
var groups = [].concat(_rollupPluginBabelHelpers.toConsumableArray(rootState.groups ? rootState.groups.slice(0, groupIndex) : []), [updatedGroup], _rollupPluginBabelHelpers.toConsumableArray(rootState.groups ? rootState.groups.slice(groupIndex + 1) : []));
|
101
|
+
setRootState === null || setRootState === void 0 || setRootState(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, rootState), {}, {
|
102
|
+
groups: groups
|
103
|
+
}));
|
104
|
+
}
|
91
105
|
};
|
92
106
|
var addConditionGroupHandler = function addConditionGroupHandler() {
|
93
107
|
var newGroup = {
|
94
|
-
|
95
|
-
//'and|or',
|
96
|
-
statement: 'if',
|
108
|
+
statement: 'ifAll',
|
97
109
|
// 'if|exclude if',
|
110
|
+
groupOperator: 'and',
|
98
111
|
id: uuidv4["default"](),
|
99
112
|
conditions: [{
|
100
113
|
property: undefined,
|
@@ -104,38 +117,45 @@ var ConditionBuilderContent = function ConditionBuilderContent(_ref) {
|
|
104
117
|
id: uuidv4["default"]()
|
105
118
|
}]
|
106
119
|
};
|
107
|
-
setRootState(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, rootState), {}, {
|
108
|
-
groups: [].concat(_rollupPluginBabelHelpers.toConsumableArray(rootState.groups), [newGroup])
|
120
|
+
setRootState === null || setRootState === void 0 || setRootState(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, rootState), {}, {
|
121
|
+
groups: rootState && rootState.groups ? [].concat(_rollupPluginBabelHelpers.toConsumableArray(rootState.groups), [newGroup]) : [newGroup]
|
109
122
|
}));
|
110
123
|
};
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
+
var getColorIndex = function getColorIndex() {
|
125
|
+
var _rootState$groups$len, _rootState$groups3;
|
126
|
+
var groupLength = (_rootState$groups$len = rootState === null || rootState === void 0 || (_rootState$groups3 = rootState.groups) === null || _rootState$groups3 === void 0 ? void 0 : _rootState$groups3.length) !== null && _rootState$groups$len !== void 0 ? _rootState$groups$len : 0;
|
127
|
+
return groupLength % 5;
|
128
|
+
};
|
129
|
+
if (!isConditionBuilderActive) {
|
130
|
+
return /*#__PURE__*/React__default["default"].createElement(react.Button, {
|
131
|
+
className: "".concat(util.blockClass, "__addConditionText-button"),
|
132
|
+
renderIcon: function renderIcon(props) {
|
133
|
+
return /*#__PURE__*/React__default["default"].createElement(icons.Add, props);
|
134
|
+
},
|
135
|
+
iconDescription: startConditionLabel,
|
136
|
+
kind: "ghost",
|
137
|
+
size: "sm",
|
138
|
+
onClick: onStartConditionBuilder
|
139
|
+
}, startConditionLabel);
|
140
|
+
}
|
141
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(react.Section, {
|
142
|
+
className: "".concat(util.blockClass, "__heading"),
|
124
143
|
level: 4
|
125
|
-
},
|
126
|
-
className: "".concat(
|
144
|
+
}, /*#__PURE__*/React__default["default"].createElement(react.Heading, null, conditionHeadingText)), /*#__PURE__*/React__default["default"].createElement("div", {
|
145
|
+
className: "".concat(util.blockClass, "__content-container"),
|
127
146
|
role: "treegrid",
|
128
|
-
"aria-label":
|
129
|
-
}, rootState && (rootState === null || rootState === void 0 || (_rootState$
|
147
|
+
"aria-label": conditionBuilderHierarchicalText
|
148
|
+
}, rootState && (rootState === null || rootState === void 0 || (_rootState$groups4 = rootState.groups) === null || _rootState$groups4 === void 0 ? void 0 : _rootState$groups4.map(function (eachGroup, groupIndex) {
|
149
|
+
var _ref2;
|
130
150
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
131
151
|
key: eachGroup.id,
|
132
|
-
className: "".concat(
|
152
|
+
className: "".concat(util.blockClass, "__group-wrapper")
|
133
153
|
}, /*#__PURE__*/React__default["default"].createElement(ConditionGroupBuilder["default"], {
|
134
|
-
className: "".concat(
|
154
|
+
className: "".concat(util.blockClass, "__group"),
|
135
155
|
aria: {
|
136
156
|
level: 1,
|
137
157
|
posinset: groupIndex * 2 + 1,
|
138
|
-
setsize: rootState.groups.length * 2
|
158
|
+
setsize: (_ref2 = rootState.groups && rootState.groups.length * 2) !== null && _ref2 !== void 0 ? _ref2 : 0
|
139
159
|
},
|
140
160
|
group: eachGroup,
|
141
161
|
onRemove: function onRemove() {
|
@@ -143,37 +163,39 @@ var ConditionBuilderContent = function ConditionBuilderContent(_ref) {
|
|
143
163
|
},
|
144
164
|
onChange: function onChange(updatedGroup) {
|
145
165
|
onChangeHandler(updatedGroup, groupIndex);
|
146
|
-
}
|
147
|
-
|
148
|
-
|
149
|
-
})), isConditionBuilderActive && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, variant == 'tree' && /*#__PURE__*/React__default["default"].createElement("div", {
|
166
|
+
}
|
167
|
+
}), rootState.groups && groupIndex < rootState.groups.length - 1 && (_GroupConnector || (_GroupConnector = /*#__PURE__*/React__default["default"].createElement(GroupConnector["default"], null))));
|
168
|
+
})), variant == util.HIERARCHICAL_VARIANT && /*#__PURE__*/React__default["default"].createElement("div", {
|
150
169
|
role: "row",
|
151
170
|
tabIndex: -1,
|
152
|
-
"aria-level": 1
|
171
|
+
"aria-level": 1,
|
172
|
+
className: "".concat(util.blockClass, "__add-group")
|
153
173
|
}, /*#__PURE__*/React__default["default"].createElement(ConditionBuilderButton.ConditionBuilderButton, {
|
154
174
|
renderIcon: icons.TextNewLine,
|
155
175
|
onClick: addConditionGroupHandler,
|
156
|
-
onMouseEnter:
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
},
|
162
|
-
className: "".concat(DataConfigs.blockClass, "__add_condition_group "),
|
176
|
+
onMouseEnter: showConditionGroupPreviewHandler,
|
177
|
+
onMouseLeave: hideConditionGroupPreviewHandler,
|
178
|
+
onFocus: showConditionGroupPreviewHandler,
|
179
|
+
onBlur: hideConditionGroupPreviewHandler,
|
180
|
+
className: "".concat(util.blockClass, "__add-condition-group "),
|
163
181
|
hideLabel: true,
|
164
|
-
label:
|
182
|
+
label: addConditionGroupText,
|
165
183
|
wrapperProps: {
|
166
184
|
role: 'gridcell',
|
167
|
-
'aria-label':
|
185
|
+
'aria-label': addConditionGroupText
|
168
186
|
}
|
169
|
-
})), showConditionGroupPreview &&
|
170
|
-
previewType: "newGroup"
|
171
|
-
|
187
|
+
})), showConditionGroupPreview && /*#__PURE__*/React__default["default"].createElement(ConditionPreview["default"], {
|
188
|
+
previewType: "newGroup",
|
189
|
+
colorIndex: getColorIndex(),
|
190
|
+
group: {
|
191
|
+
groupOperator: rootState === null || rootState === void 0 ? void 0 : rootState.operator,
|
192
|
+
id: uuidv4["default"]()
|
193
|
+
}
|
194
|
+
})), actions && /*#__PURE__*/React__default["default"].createElement(ConditionBuilderActions["default"], {
|
172
195
|
actions: actions,
|
173
|
-
className: "".concat(
|
196
|
+
className: "".concat(util.blockClass, "__actions-container")
|
174
197
|
}));
|
175
198
|
};
|
176
|
-
var ConditionBuilderContent$1 = ConditionBuilderContent;
|
177
199
|
ConditionBuilderContent.propTypes = {
|
178
200
|
/**
|
179
201
|
* optional array of object that give the list of actions.
|
@@ -182,10 +204,6 @@ ConditionBuilderContent.propTypes = {
|
|
182
204
|
id: index["default"].oneOfType([index["default"].string, index["default"].number]).isRequired,
|
183
205
|
label: index["default"].string.isRequired
|
184
206
|
})),
|
185
|
-
/**
|
186
|
-
* ref of condition builder
|
187
|
-
*/
|
188
|
-
conditionBuilderRef: index["default"].object,
|
189
207
|
/**
|
190
208
|
* callback functions that will provide the updated action state back.
|
191
209
|
*/
|
@@ -199,11 +217,11 @@ ConditionBuilderContent.propTypes = {
|
|
199
217
|
*/
|
200
218
|
initialState: index["default"].shape({
|
201
219
|
groups: index["default"].arrayOf(index["default"].shape({
|
202
|
-
groupOperator: index["default"].string
|
203
|
-
statement: index["default"].string
|
220
|
+
groupOperator: index["default"].string,
|
221
|
+
statement: index["default"].string,
|
204
222
|
conditions: index["default"].arrayOf(index["default"].oneOfType([index["default"].shape({
|
205
|
-
property: index["default"].string
|
206
|
-
operator: index["default"].string
|
223
|
+
property: index["default"].string,
|
224
|
+
operator: index["default"].string,
|
207
225
|
value: index["default"].oneOfType([index["default"].string, index["default"].arrayOf(index["default"].shape({
|
208
226
|
id: index["default"].string,
|
209
227
|
label: index["default"].string
|
@@ -220,4 +238,4 @@ ConditionBuilderContent.propTypes = {
|
|
220
238
|
startConditionLabel: index["default"].string.isRequired
|
221
239
|
};
|
222
240
|
|
223
|
-
exports["default"] = ConditionBuilderContent
|
241
|
+
exports["default"] = ConditionBuilderContent;
|
package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts
CHANGED
@@ -1,43 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
conditions: {
|
8
|
-
property: undefined;
|
9
|
-
operator: string;
|
10
|
-
value: string;
|
11
|
-
popoverToOpen: string;
|
12
|
-
id: any;
|
13
|
-
}[];
|
14
|
-
}[];
|
15
|
-
}
|
16
|
-
export const ConditionBuilderContext: React.Context<any>;
|
17
|
-
export function ConditionBuilderProvider(props: any): import("react/jsx-runtime").JSX.Element;
|
18
|
-
export namespace ConditionBuilderProvider {
|
19
|
-
namespace propTypes {
|
20
|
-
let children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
21
|
-
let getOptions: PropTypes.Requireable<(...args: any[]) => any>;
|
22
|
-
let inputConfig: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
23
|
-
properties: PropTypes.Requireable<(PropTypes.InferProps<{
|
24
|
-
id: PropTypes.Requireable<string>;
|
25
|
-
label: PropTypes.Requireable<string>;
|
26
|
-
icon: PropTypes.Requireable<object>;
|
27
|
-
type: PropTypes.Requireable<string>;
|
28
|
-
config: PropTypes.Requireable<PropTypes.InferProps<{
|
29
|
-
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
30
|
-
id: PropTypes.Requireable<string>;
|
31
|
-
label: PropTypes.Requireable<string>;
|
32
|
-
icon: PropTypes.Requireable<object>;
|
33
|
-
}> | null | undefined)[]>;
|
34
|
-
includeSearch: PropTypes.Requireable<boolean>;
|
35
|
-
}>>;
|
36
|
-
}> | null | undefined)[]>;
|
37
|
-
}>>>;
|
38
|
-
let popOverSearchThreshold: PropTypes.Validator<number>;
|
39
|
-
let variant: PropTypes.Validator<string>;
|
40
|
-
}
|
41
|
-
}
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2024
|
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
|
+
*/
|
42
7
|
import React from 'react';
|
43
|
-
import
|
8
|
+
import { ConditionBuilderContextProps, ConditionBuilderState } from '../ConditionBuilder.types';
|
9
|
+
export declare const emptyState: ConditionBuilderState;
|
10
|
+
export declare const ConditionBuilderContext: React.Context<ConditionBuilderContextProps>;
|
11
|
+
export declare const ConditionBuilderProvider: React.FC<ConditionBuilderContextProps>;
|