@carbon/ibm-products 2.43.2-canary.12 → 2.43.2-canary.123
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 +1854 -499
- 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 +267 -65
- 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 +1463 -250
- 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 +1659 -369
- 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 +6 -0
- package/es/components/ActionBar/ActionBar.d.ts +58 -2
- package/es/components/ActionBar/ActionBar.js +14 -9
- package/es/components/ActionBar/ActionBarItem.d.ts +36 -2
- package/es/components/ActionBar/ActionBarItem.js +8 -5
- package/es/components/ActionBar/ActionBarOverflowItems.d.ts +55 -16
- package/es/components/ActionBar/ActionBarOverflowItems.js +8 -4
- 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 +33 -37
- 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/Coachmark/Coachmark.d.ts +6 -1
- package/es/components/Coachmark/Coachmark.js +47 -11
- package/es/components/Coachmark/CoachmarkOverlay.js +2 -4
- package/es/components/Coachmark/utils/enums.d.ts +6 -0
- package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -7
- package/es/components/CoachmarkFixed/CoachmarkFixed.js +13 -11
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +2 -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 +25 -23
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +100 -58
- package/es/components/ConditionBuilder/ConditionBuilder.js +82 -25
- package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +15 -0
- package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +154 -0
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +3 -1
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +30 -27
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +8 -1
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +35 -11
- package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +18 -10
- package/es/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +19 -11
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +9 -13
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +83 -64
- package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts +13 -7
- package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +31 -8
- package/es/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.d.ts +8 -2
- package/es/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.js +35 -24
- package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.d.ts +43 -36
- package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +43 -36
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +6 -2
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +114 -40
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +3 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +24 -9
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +27 -9
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +13 -0
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +114 -0
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/{ConditionBuilderItemOption.d.ts → ItemOptionForValueField.d.ts} +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/{ConditionBuilderItemOption.js → ItemOptionForValueField.js} +71 -38
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +5 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +22 -9
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +1 -1
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +1 -3
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +122 -40
- package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +5 -1
- package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.js +51 -19
- package/es/components/ConditionBuilder/utils/handleKeyboardEvents.d.ts +2 -1
- package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +152 -42
- package/es/components/ConditionBuilder/utils/useTranslations.d.ts +1 -0
- package/es/components/ConditionBuilder/utils/useTranslations.js +26 -0
- package/es/components/ConditionBuilder/utils/util.d.ts +6 -4
- package/es/components/ConditionBuilder/utils/util.js +42 -17
- package/es/components/CreateFullPage/CreateFullPage.js +2 -2
- package/es/components/DataSpreadsheet/DataSpreadsheet.d.ts +26 -0
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +129 -53
- 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/types/index.d.ts +7 -0
- package/es/components/Datagrid/Datagrid/Datagrid.d.ts +0 -4
- package/es/components/Datagrid/Datagrid/Datagrid.js +4 -9
- package/es/components/Datagrid/Datagrid/DatagridBody.d.ts +6 -0
- package/es/components/Datagrid/Datagrid/DatagridContent.js +4 -3
- 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 +21 -8
- package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +6 -6
- package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +3 -2
- package/es/components/Datagrid/Datagrid/DatagridSimpleBody.d.ts +6 -0
- package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +3 -1
- package/es/components/Datagrid/Datagrid/DraggableElement.d.ts +6 -0
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +34 -10
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +6 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +6 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +6 -3
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +20 -12
- package/es/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +7 -0
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +54 -17
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +2 -3
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +75 -12
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +10 -2
- package/es/components/Datagrid/common-column-ids.d.ts +6 -0
- package/es/components/Datagrid/types/index.d.ts +60 -9
- package/es/components/Datagrid/useActionsColumn.d.ts +8 -1
- package/es/components/Datagrid/useActionsColumn.js +7 -6
- 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 +27 -22
- package/es/components/Datagrid/useInitialColumnSort.js +4 -0
- package/es/components/Datagrid/useInlineEdit.js +12 -2
- package/es/components/Datagrid/useNestedRowExpander.js +1 -3
- 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/useSelectRows.js +2 -1
- package/es/components/Datagrid/useSortableColumns.d.ts +5 -4
- package/es/components/Datagrid/useSortableColumns.js +18 -13
- package/es/components/Datagrid/useStickyColumn.d.ts +8 -1
- package/es/components/Datagrid/useStickyColumn.js +12 -9
- package/es/components/EditInPlace/EditInPlace.d.ts +4 -0
- package/es/components/EditInPlace/EditInPlace.js +21 -10
- 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/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/FullPageError/FullPageError.d.ts +36 -2
- package/es/components/FullPageError/FullPageError.js +0 -3
- package/es/components/GetStartedCard/GetStartedCard.d.ts +60 -2
- package/es/components/GetStartedCard/GetStartedCard.js +11 -10
- package/es/components/HTTPErrors/HTTPError403/HTTPError403.js +6 -0
- package/es/components/HTTPErrors/HTTPError404/HTTPError404.js +6 -0
- package/es/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +6 -0
- package/es/components/HTTPErrors/assets/HTTPErrorSvg403.js +204 -200
- package/es/components/HTTPErrors/assets/HTTPErrorSvg404.js +116 -112
- package/es/components/HTTPErrors/assets/HTTPErrorSvgOther.js +110 -106
- package/es/components/Nav/NavItem.js +12 -3
- package/es/components/OptionsTile/OptionsTile.js +11 -6
- package/es/components/PageHeader/PageHeader.js +1 -0
- package/es/components/PageHeader/PageHeaderUtils.js +1 -1
- package/es/components/ProductiveCard/ProductiveCard.d.ts +4 -0
- package/es/components/ProductiveCard/ProductiveCard.js +7 -1
- package/es/components/RemoveModal/RemoveModal.d.ts +4 -0
- package/es/components/RemoveModal/RemoveModal.js +7 -1
- package/es/components/SearchBar/SearchBar.d.ts +1 -1
- package/es/components/SearchBar/SearchBar.js +2 -2
- package/es/components/SidePanel/SidePanel.js +17 -21
- package/es/components/SidePanel/motion/variants.d.ts +4 -6
- package/es/components/SidePanel/motion/variants.js +10 -11
- package/es/components/StatusIndicator/StatusIndicatorStep.js +87 -0
- 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 +35 -4
- package/es/components/TagOverflow/TagOverflow.js +47 -64
- package/es/components/TagOverflow/TagOverflowModal.js +4 -6
- package/es/components/TagOverflow/TagOverflowPopover.d.ts +13 -1
- package/es/components/TagOverflow/TagOverflowPopover.js +38 -41
- package/es/components/Tearsheet/Tearsheet.d.ts +8 -1
- package/es/components/Tearsheet/Tearsheet.js +9 -1
- package/es/components/Tearsheet/TearsheetNarrow.d.ts +11 -0
- package/es/components/Tearsheet/TearsheetNarrow.js +12 -0
- package/es/components/Tearsheet/TearsheetShell.d.ts +11 -1
- package/es/components/Tearsheet/TearsheetShell.js +28 -7
- package/es/components/Toolbar/ToolbarButton.js +1 -1
- package/es/components/UserAvatar/UserAvatar.d.ts +59 -1
- package/es/components/UserAvatar/UserAvatar.js +7 -23
- package/es/components/WebTerminal/WebTerminal.js +10 -12
- package/es/components/index.d.ts +1 -1
- package/es/global/js/hooks/useFocus.d.ts +1 -0
- package/es/global/js/hooks/useFocus.js +5 -2
- package/es/global/js/hooks/usePrefersReducedMotion.js +14 -8
- package/es/global/js/package-settings.d.ts +1 -1
- package/es/global/js/package-settings.js +1 -1
- 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/index.js +1 -0
- 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 +881 -758
- package/es/settings.d.ts +1 -1
- package/flags.js +7 -0
- package/lib/components/APIKeyModal/APIKeyModal.types.d.ts +6 -0
- package/lib/components/ActionBar/ActionBar.d.ts +58 -2
- package/lib/components/ActionBar/ActionBar.js +14 -9
- package/lib/components/ActionBar/ActionBarItem.d.ts +36 -2
- package/lib/components/ActionBar/ActionBarItem.js +7 -4
- package/lib/components/ActionBar/ActionBarOverflowItems.d.ts +55 -16
- package/lib/components/ActionBar/ActionBarOverflowItems.js +8 -4
- 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 +33 -37
- 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/Coachmark/Coachmark.d.ts +6 -1
- package/lib/components/Coachmark/Coachmark.js +46 -10
- package/lib/components/Coachmark/CoachmarkOverlay.js +2 -4
- package/lib/components/Coachmark/utils/enums.d.ts +6 -0
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -7
- package/lib/components/CoachmarkFixed/CoachmarkFixed.js +13 -11
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +2 -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 +25 -23
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +98 -56
- package/lib/components/ConditionBuilder/ConditionBuilder.js +82 -25
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +15 -0
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +163 -0
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +3 -1
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +29 -25
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +8 -1
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +33 -9
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +16 -8
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +18 -10
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +9 -13
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +81 -62
- package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts +13 -7
- package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +31 -8
- package/lib/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.d.ts +8 -2
- package/lib/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.js +34 -24
- package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.d.ts +43 -36
- package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +43 -36
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +6 -2
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +112 -38
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +3 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +24 -9
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +28 -10
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +13 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +122 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/{ConditionBuilderItemOption.d.ts → ItemOptionForValueField.d.ts} +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/{ConditionBuilderItemOption.js → ItemOptionForValueField.js} +68 -35
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +5 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +21 -8
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +1 -1
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +1 -3
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +119 -37
- package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +5 -1
- package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.js +50 -17
- package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.d.ts +2 -1
- package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +152 -41
- package/lib/components/ConditionBuilder/utils/useTranslations.d.ts +1 -0
- package/lib/components/ConditionBuilder/utils/useTranslations.js +30 -0
- package/lib/components/ConditionBuilder/utils/util.d.ts +6 -4
- package/lib/components/ConditionBuilder/utils/util.js +44 -16
- package/lib/components/CreateFullPage/CreateFullPage.js +2 -2
- package/lib/components/DataSpreadsheet/DataSpreadsheet.d.ts +26 -0
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +129 -53
- 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/types/index.d.ts +7 -0
- package/lib/components/Datagrid/Datagrid/Datagrid.d.ts +0 -4
- package/lib/components/Datagrid/Datagrid/Datagrid.js +4 -9
- package/lib/components/Datagrid/Datagrid/DatagridBody.d.ts +6 -0
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +4 -3
- 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 +21 -8
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +6 -6
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +3 -2
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.d.ts +6 -0
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +3 -1
- package/lib/components/Datagrid/Datagrid/DraggableElement.d.ts +6 -0
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +34 -10
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +6 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +6 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +6 -3
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +20 -12
- package/lib/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +7 -0
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +53 -16
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +2 -3
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +74 -11
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +10 -2
- package/lib/components/Datagrid/common-column-ids.d.ts +6 -0
- package/lib/components/Datagrid/types/index.d.ts +60 -9
- package/lib/components/Datagrid/useActionsColumn.d.ts +8 -1
- package/lib/components/Datagrid/useActionsColumn.js +7 -6
- 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 +27 -22
- package/lib/components/Datagrid/useInitialColumnSort.js +4 -0
- package/lib/components/Datagrid/useInlineEdit.js +12 -2
- package/lib/components/Datagrid/useNestedRowExpander.js +1 -3
- 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/useSelectRows.js +2 -1
- package/lib/components/Datagrid/useSortableColumns.d.ts +5 -4
- package/lib/components/Datagrid/useSortableColumns.js +18 -13
- package/lib/components/Datagrid/useStickyColumn.d.ts +8 -1
- package/lib/components/Datagrid/useStickyColumn.js +12 -9
- package/lib/components/EditInPlace/EditInPlace.d.ts +4 -0
- package/lib/components/EditInPlace/EditInPlace.js +21 -10
- 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/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/FullPageError/FullPageError.d.ts +36 -2
- package/lib/components/FullPageError/FullPageError.js +0 -3
- package/lib/components/GetStartedCard/GetStartedCard.d.ts +60 -2
- package/lib/components/GetStartedCard/GetStartedCard.js +10 -9
- package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +6 -0
- package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +6 -0
- package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +6 -0
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg403.js +204 -200
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg404.js +116 -112
- package/lib/components/HTTPErrors/assets/HTTPErrorSvgOther.js +110 -106
- package/lib/components/Nav/NavItem.js +10 -1
- package/lib/components/OptionsTile/OptionsTile.js +11 -6
- package/lib/components/PageHeader/PageHeader.js +1 -0
- package/lib/components/PageHeader/PageHeaderUtils.js +1 -1
- package/lib/components/ProductiveCard/ProductiveCard.d.ts +4 -0
- package/lib/components/ProductiveCard/ProductiveCard.js +7 -1
- package/lib/components/RemoveModal/RemoveModal.d.ts +4 -0
- package/lib/components/RemoveModal/RemoveModal.js +7 -1
- package/lib/components/SearchBar/SearchBar.d.ts +1 -1
- package/lib/components/SearchBar/SearchBar.js +2 -2
- package/lib/components/SidePanel/SidePanel.js +16 -20
- package/lib/components/SidePanel/motion/variants.d.ts +4 -6
- package/lib/components/SidePanel/motion/variants.js +10 -11
- package/lib/components/StatusIndicator/StatusIndicatorStep.js +94 -0
- 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 +35 -4
- package/lib/components/TagOverflow/TagOverflow.js +46 -63
- package/lib/components/TagOverflow/TagOverflowModal.js +4 -6
- package/lib/components/TagOverflow/TagOverflowPopover.d.ts +13 -1
- package/lib/components/TagOverflow/TagOverflowPopover.js +37 -40
- package/lib/components/Tearsheet/Tearsheet.d.ts +8 -1
- package/lib/components/Tearsheet/Tearsheet.js +9 -1
- package/lib/components/Tearsheet/TearsheetNarrow.d.ts +11 -0
- package/lib/components/Tearsheet/TearsheetNarrow.js +12 -0
- package/lib/components/Tearsheet/TearsheetShell.d.ts +11 -1
- package/lib/components/Tearsheet/TearsheetShell.js +26 -5
- package/lib/components/Toolbar/ToolbarButton.js +1 -1
- package/lib/components/UserAvatar/UserAvatar.d.ts +59 -1
- package/lib/components/UserAvatar/UserAvatar.js +7 -23
- package/lib/components/WebTerminal/WebTerminal.js +10 -12
- package/lib/components/index.d.ts +1 -1
- package/lib/global/js/hooks/useFocus.d.ts +1 -0
- package/lib/global/js/hooks/useFocus.js +5 -1
- package/lib/global/js/hooks/usePrefersReducedMotion.js +13 -7
- package/lib/global/js/package-settings.d.ts +1 -1
- package/lib/global/js/package-settings.js +1 -1
- 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/index.js +5 -0
- 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 +946 -823
- package/lib/settings.d.ts +1 -1
- package/package.json +8 -7
- 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 +8 -1
- package/scss/components/ConditionBuilder/styles/_conditionBuilderCondition.scss +30 -5
- package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +88 -22
- 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 +1 -0
- package/scss/components/Datagrid/styles/_useActionsColumn.scss +6 -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 +6 -7
- package/scss/components/Datagrid/styles/_useNestedTable.scss +6 -7
- 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/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/_index-released-only.scss +1 -0
- package/scss/config-dev.scss +7 -0
- package/scss/config.scss +7 -0
- package/telemetry.yml +34 -19
- package/es/components/ConditionBuilder/utils/checkForHoldingKey.d.ts +0 -1
- package/es/components/ConditionBuilder/utils/checkForHoldingKey.js +0 -16
- package/es/global/js/utils/window.d.ts +0 -2
- package/es/global/js/utils/window.js +0 -12
- package/lib/components/ConditionBuilder/utils/checkForHoldingKey.d.ts +0 -1
- package/lib/components/ConditionBuilder/utils/checkForHoldingKey.js +0 -20
- package/lib/global/js/utils/window.d.ts +0 -2
- package/lib/global/js/utils/window.js +0 -16
@@ -1,5 +1,61 @@
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
2
|
+
import { ButtonProps } from '@carbon/type';
|
3
|
+
import { CarbonIconType } from '@carbon/icons-react/lib/CarbonIcon';
|
4
|
+
interface Action extends ButtonProps {
|
5
|
+
id?: string;
|
6
|
+
key: string;
|
7
|
+
iconDescription: string;
|
8
|
+
label: string;
|
9
|
+
onClick?: () => void;
|
10
|
+
renderIcon: CarbonIconType;
|
11
|
+
}
|
12
|
+
interface ActionBarProps extends PropsWithChildren {
|
13
|
+
/**
|
14
|
+
* Specifies the action bar items. Each item is specified as an object
|
15
|
+
* with required fields: key for array rendering, renderIcon, iconDescription and
|
16
|
+
* label to provide the icon to display,
|
17
|
+
* and optional 'onClick' to receive notifications when the button is clicked.
|
18
|
+
* Additional fields in the object will be passed to the
|
19
|
+
* Button component, and these can include 'disabled', 'ref', 'className',
|
20
|
+
* and any other Button props.
|
21
|
+
*
|
22
|
+
* Note that the Button props 'kind', 'size',
|
23
|
+
* 'tooltipPosition', 'tooltipAlignment' and 'type' are ignored, as these
|
24
|
+
* cannot be used for an action bar item.
|
25
|
+
*
|
26
|
+
* Carbon Button API https://react.carbondesignsystem.com/?path=/docs/components-button--default#component-api
|
27
|
+
*/
|
28
|
+
actions?: readonly Action[];
|
29
|
+
/**
|
30
|
+
* className
|
31
|
+
*/
|
32
|
+
className?: string;
|
33
|
+
/**
|
34
|
+
* maxVisible : Maximum action bar items visible before going into the overflow menu
|
35
|
+
*/
|
36
|
+
maxVisible?: number;
|
37
|
+
/**
|
38
|
+
* class name applied to the overflow options
|
39
|
+
*/
|
40
|
+
menuOptionsClass?: string;
|
41
|
+
/**
|
42
|
+
* onItemCountChange - event reporting maxWidth
|
43
|
+
*/
|
44
|
+
onWidthChange?: (sizes: {
|
45
|
+
minWidth: number;
|
46
|
+
maxWidth: number;
|
47
|
+
}) => void;
|
48
|
+
/**
|
49
|
+
* overflowAriaLabel label for open close button overflow used for action bar items that do nto fit.
|
50
|
+
*/
|
51
|
+
overflowAriaLabel: string;
|
52
|
+
/**
|
53
|
+
* align tags to right of available space
|
54
|
+
*/
|
55
|
+
rightAlign?: boolean;
|
56
|
+
}
|
1
57
|
/**
|
2
58
|
* The ActionBar is used internally by the PageHeader to wrap ActionBarItems.
|
3
59
|
*/
|
4
|
-
export let ActionBar: React.ForwardRefExoticComponent<React.RefAttributes<
|
5
|
-
|
60
|
+
export declare let ActionBar: React.ForwardRefExoticComponent<ActionBarProps & React.RefAttributes<HTMLDivElement>>;
|
61
|
+
export {};
|
@@ -20,7 +20,6 @@ import { ActionBarOverflowItems } from './ActionBarOverflowItems.js';
|
|
20
20
|
var _excluded = ["actions", "className", "maxVisible", "menuOptionsClass", "onWidthChange", "overflowAriaLabel", "rightAlign"],
|
21
21
|
_excluded2 = ["key", "id"],
|
22
22
|
_excluded3 = ["key"];
|
23
|
-
|
24
23
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
25
24
|
var blockClass = "".concat(pkg.prefix, "--action-bar");
|
26
25
|
var componentName = 'ActionBar';
|
@@ -29,7 +28,6 @@ var componentName = 'ActionBar';
|
|
29
28
|
var defaults = {
|
30
29
|
actions: Object.freeze([])
|
31
30
|
};
|
32
|
-
|
33
31
|
// NOTE: the component SCSS is not imported here: it is rolled up separately.
|
34
32
|
|
35
33
|
/**
|
@@ -53,7 +51,7 @@ var ActionBar = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
53
51
|
_useState4 = _slicedToArray(_useState3, 2),
|
54
52
|
displayedItems = _useState4[0],
|
55
53
|
setDisplayedItems = _useState4[1];
|
56
|
-
var _useState5 = useState(
|
54
|
+
var _useState5 = useState(null),
|
57
55
|
_useState6 = _slicedToArray(_useState5, 2),
|
58
56
|
hiddenSizingItems = _useState6[0],
|
59
57
|
setHiddenSizingItems = _useState6[1];
|
@@ -61,7 +59,7 @@ var ActionBar = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
61
59
|
var refDisplayedItems = useRef(null);
|
62
60
|
var sizingRef = useRef(null);
|
63
61
|
var sizes = useRef({});
|
64
|
-
var backupRef = useRef();
|
62
|
+
var backupRef = useRef(null);
|
65
63
|
var localRef = ref || backupRef;
|
66
64
|
|
67
65
|
// create hidden sizing items
|
@@ -121,24 +119,25 @@ var ActionBar = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
121
119
|
var checkFullyVisibleItems = function checkFullyVisibleItems() {
|
122
120
|
/* istanbul ignore if */
|
123
121
|
if (sizingRef.current) {
|
122
|
+
var _refDisplayedItems$cu;
|
124
123
|
var sizingItems = Array.from(sizingRef.current.querySelectorAll(".".concat(blockClass, "__hidden-sizing-item")));
|
125
124
|
|
126
125
|
// first item is always the overflow even if nothing else is rendered
|
127
126
|
var overflowItem = sizingItems.shift();
|
128
127
|
|
129
128
|
// determine how many will fit
|
130
|
-
var spaceAvailable = refDisplayedItems.current.offsetWidth;
|
129
|
+
var spaceAvailable = (_refDisplayedItems$cu = refDisplayedItems.current) === null || _refDisplayedItems$cu === void 0 ? void 0 : _refDisplayedItems$cu.offsetWidth;
|
131
130
|
var willFit = 0;
|
132
131
|
var maxVisibleWidth = 0;
|
133
132
|
var fitLimit = maxVisible ? Math.min(maxVisible, sizingItems.length) : sizingItems.length;
|
134
133
|
|
135
134
|
// loop checking the space available
|
136
135
|
for (var i = 0; i < fitLimit; i++) {
|
137
|
-
var newSpaceAvailable = spaceAvailable - sizingItems[i].offsetWidth;
|
136
|
+
var newSpaceAvailable = spaceAvailable && spaceAvailable - sizingItems[i].offsetWidth;
|
138
137
|
|
139
138
|
// update maxVisibleWidth for later use by onWidthChange
|
140
139
|
maxVisibleWidth += sizingItems[i].offsetWidth;
|
141
|
-
if (newSpaceAvailable >= 0) {
|
140
|
+
if (newSpaceAvailable && newSpaceAvailable >= 0) {
|
142
141
|
spaceAvailable = newSpaceAvailable;
|
143
142
|
willFit += 1;
|
144
143
|
}
|
@@ -148,7 +147,7 @@ var ActionBar = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
148
147
|
var overflowWidth = overflowItem.offsetWidth;
|
149
148
|
if (willFit < sizingItems.length) {
|
150
149
|
// Check space for overflow
|
151
|
-
while (willFit > 0 && spaceAvailable < overflowWidth) {
|
150
|
+
while (willFit > 0 && spaceAvailable && spaceAvailable < overflowWidth) {
|
152
151
|
willFit -= 1;
|
153
152
|
|
154
153
|
// Highly unlikely that any action bar item is narrower than the overflow item
|
@@ -161,7 +160,10 @@ var ActionBar = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
161
160
|
sizes.current.minWidth = overflowWidth;
|
162
161
|
sizes.current.maxWidth = maxVisibleWidth;
|
163
162
|
// emit onWidthChange
|
164
|
-
onWidthChange(
|
163
|
+
onWidthChange({
|
164
|
+
minWidth: overflowWidth,
|
165
|
+
maxWidth: maxVisibleWidth
|
166
|
+
});
|
165
167
|
}
|
166
168
|
if (willFit < 1) {
|
167
169
|
setDisplayCount(0);
|
@@ -212,14 +214,17 @@ ActionBar.propTypes = {
|
|
212
214
|
*
|
213
215
|
* Carbon Button API https://react.carbondesignsystem.com/?path=/docs/components-button--default#component-api
|
214
216
|
*/
|
217
|
+
/**@ts-ignore */
|
215
218
|
actions: PropTypes.arrayOf(PropTypes.shape(_objectSpread2(_objectSpread2({}, prepareProps(Button.propTypes, [
|
216
219
|
// props not desired from Button.propTypes
|
217
220
|
'kind', 'size', 'tooltipPosition', 'tooltipAlignment'])), {}, {
|
221
|
+
id: PropTypes.string,
|
218
222
|
// Additional props
|
219
223
|
key: PropTypes.string.isRequired,
|
220
224
|
// Redefine as form different to Button and a key prop used by ActionBarItems
|
221
225
|
iconDescription: PropTypes.string.isRequired,
|
222
226
|
label: PropTypes.string.isRequired,
|
227
|
+
/**@ts-ignore */
|
223
228
|
renderIcon: Button.propTypes.renderIcon.isRequired,
|
224
229
|
// We duplicate onClick here to improve DocGen in Storybook
|
225
230
|
onClick: PropTypes.func
|
@@ -1,5 +1,39 @@
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
2
|
+
import { CarbonIconType } from '@carbon/icons-react/lib/CarbonIcon';
|
3
|
+
interface ActionBarItemProps extends PropsWithChildren {
|
4
|
+
/**
|
5
|
+
* Specify an optional className to be added to your Button
|
6
|
+
*
|
7
|
+
* (inherited from Carbon Button)
|
8
|
+
*/
|
9
|
+
className?: string;
|
10
|
+
/**
|
11
|
+
* If specifying the `renderIcon` prop, provide a description for that icon that can
|
12
|
+
* be read by screen readers
|
13
|
+
*
|
14
|
+
* (inherited from Carbon Button)
|
15
|
+
*/
|
16
|
+
label?: string;
|
17
|
+
/**
|
18
|
+
* Optional click handler
|
19
|
+
*
|
20
|
+
* (inherited from Carbon Button)
|
21
|
+
*/
|
22
|
+
onClick?: () => void;
|
23
|
+
/**
|
24
|
+
* Optional prop to allow overriding the icon rendering.
|
25
|
+
* Can be a React component class
|
26
|
+
*
|
27
|
+
* (inherited from Carbon Button)
|
28
|
+
*/
|
29
|
+
renderIcon?: CarbonIconType;
|
30
|
+
/**
|
31
|
+
* Optional tab index
|
32
|
+
*/
|
33
|
+
tabIndex?: number;
|
34
|
+
}
|
1
35
|
/**
|
2
36
|
* The ActionBarItem is used in the page header to populate the action bar
|
3
37
|
*/
|
4
|
-
export let ActionBarItem: React.ForwardRefExoticComponent<React.RefAttributes<
|
5
|
-
|
38
|
+
export declare let ActionBarItem: React.ForwardRefExoticComponent<ActionBarItemProps & React.RefAttributes<HTMLDivElement>>;
|
39
|
+
export {};
|
@@ -5,7 +5,7 @@
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
7
|
|
8
|
-
import {
|
8
|
+
import { objectSpread2 as _objectSpread2, objectWithoutProperties as _objectWithoutProperties } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
9
9
|
import React__default from 'react';
|
10
10
|
import PropTypes from '../../node_modules/prop-types/index.js';
|
11
11
|
import cx from 'classnames';
|
@@ -13,11 +13,9 @@ import { pkg } from '../../settings.js';
|
|
13
13
|
import { IconButton } from '@carbon/react';
|
14
14
|
|
15
15
|
var _excluded = ["label", "className", "renderIcon"];
|
16
|
-
|
17
16
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
18
17
|
var componentName = 'ActionBarItem';
|
19
18
|
var blockClass = "".concat(pkg.prefix, "--action-bar-item");
|
20
|
-
|
21
19
|
// NOTE: the component SCSS is not imported here: it is rolled up separately.
|
22
20
|
|
23
21
|
/**
|
@@ -34,7 +32,7 @@ var ActionBarItem = /*#__PURE__*/React__default.forwardRef(function (_ref, ref)
|
|
34
32
|
className: cx(blockClass, className),
|
35
33
|
kind: 'ghost',
|
36
34
|
size: 'md',
|
37
|
-
align: 'bottom-
|
35
|
+
align: 'bottom-end',
|
38
36
|
type: 'button',
|
39
37
|
label: label
|
40
38
|
}), Icon ? /*#__PURE__*/React__default.createElement(Icon, null) : null);
|
@@ -85,7 +83,12 @@ ActionBarItem.propTypes = _objectSpread2(_objectSpread2({}, propTypes), {}, {
|
|
85
83
|
*
|
86
84
|
* (inherited from Carbon Button)
|
87
85
|
*/
|
88
|
-
|
86
|
+
/**@ts-ignore */
|
87
|
+
renderIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
88
|
+
/**
|
89
|
+
* Optional tab index
|
90
|
+
*/
|
91
|
+
tabIndex: PropTypes.number
|
89
92
|
});
|
90
93
|
|
91
94
|
export { ActionBarItem };
|
@@ -1,18 +1,57 @@
|
|
1
|
-
|
2
|
-
className: any;
|
3
|
-
menuOptionsClass: any;
|
4
|
-
overflowItems: any;
|
5
|
-
overflowAriaLabel: any;
|
6
|
-
}): import("react/jsx-runtime").JSX.Element;
|
7
|
-
export namespace ActionBarOverflowItems {
|
8
|
-
export { componentName as displayName };
|
9
|
-
export namespace propTypes {
|
10
|
-
let className: PropTypes.Requireable<string>;
|
11
|
-
let menuOptionsClass: PropTypes.Requireable<string>;
|
12
|
-
let overflowAriaLabel: PropTypes.Requireable<string>;
|
13
|
-
let overflowItems: PropTypes.Requireable<(PropTypes.ReactElementLike | null | undefined)[]>;
|
14
|
-
}
|
15
|
-
}
|
16
|
-
declare const componentName: "ActionBar";
|
1
|
+
import { PropsWithChildren, ReactElement } from 'react';
|
17
2
|
import PropTypes from 'prop-types';
|
3
|
+
import { CarbonIconType } from '@carbon/icons-react/lib/CarbonIcon';
|
4
|
+
type OverflowItem = {
|
5
|
+
label: string;
|
6
|
+
onClick: () => void;
|
7
|
+
renderIcon: CarbonIconType;
|
8
|
+
};
|
9
|
+
interface ActionBarOverflowItemProps extends PropsWithChildren {
|
10
|
+
/**
|
11
|
+
* className
|
12
|
+
*/
|
13
|
+
className?: string;
|
14
|
+
/**
|
15
|
+
* class name applied to the overflow options
|
16
|
+
*/
|
17
|
+
menuOptionsClass?: string;
|
18
|
+
/**
|
19
|
+
* overflowAriaLabel label for open close button overflow used for action bar items that do nto fit.
|
20
|
+
*/
|
21
|
+
overflowAriaLabel?: string;
|
22
|
+
/**
|
23
|
+
* overflowItems: items to bre shown in the ActionBar overflow menu
|
24
|
+
*/
|
25
|
+
overflowItems?: ReactElement<OverflowItem>[];
|
26
|
+
/**
|
27
|
+
* Optional tab index
|
28
|
+
*/
|
29
|
+
tabIndex?: number;
|
30
|
+
}
|
31
|
+
export declare const ActionBarOverflowItems: {
|
32
|
+
({ className, menuOptionsClass, overflowItems, overflowAriaLabel, }: ActionBarOverflowItemProps): import("react/jsx-runtime").JSX.Element;
|
33
|
+
displayName: string;
|
34
|
+
propTypes: {
|
35
|
+
/**
|
36
|
+
* className
|
37
|
+
*/
|
38
|
+
className: PropTypes.Requireable<string>;
|
39
|
+
/**
|
40
|
+
* class name applied to the overflow options
|
41
|
+
*/
|
42
|
+
menuOptionsClass: PropTypes.Requireable<string>;
|
43
|
+
/**
|
44
|
+
* overflowAriaLabel label for open close button overflow used for action bar items that do nto fit.
|
45
|
+
*/
|
46
|
+
overflowAriaLabel: PropTypes.Requireable<string>;
|
47
|
+
/**
|
48
|
+
* overflowItems: items to bre shown in the ActionBar overflow menu
|
49
|
+
*/
|
50
|
+
overflowItems: PropTypes.Requireable<(PropTypes.ReactElementLike | null | undefined)[]>;
|
51
|
+
/**
|
52
|
+
* Optional tab index
|
53
|
+
*/
|
54
|
+
tabIndex: PropTypes.Requireable<number>;
|
55
|
+
};
|
56
|
+
};
|
18
57
|
export {};
|
@@ -33,17 +33,17 @@ var ActionBarOverflowItems = function ActionBarOverflowItems(_ref) {
|
|
33
33
|
// This uses a copy of a menu item option
|
34
34
|
// NOTE: Cannot use a real Tooltip icon below as it uses a <button /> the
|
35
35
|
// div equivalent below is based on Carbon 10.25.0
|
36
|
-
var ItemIcon = item.props.renderIcon;
|
36
|
+
var ItemIcon = item === null || item === void 0 ? void 0 : item.props.renderIcon;
|
37
37
|
return /*#__PURE__*/React__default.createElement(OverflowMenuItem, {
|
38
38
|
className: "".concat(blockClass, "__item"),
|
39
|
-
onClick: item.props.onClick,
|
39
|
+
onClick: item === null || item === void 0 ? void 0 : item.props.onClick,
|
40
40
|
itemText: /*#__PURE__*/React__default.createElement("div", {
|
41
41
|
className: "".concat(blockClass, "__item-content"),
|
42
42
|
"aria-describedby": "".concat(internalId.current, "-").concat(index, "--item-label")
|
43
43
|
}, /*#__PURE__*/React__default.createElement("span", {
|
44
44
|
className: "".concat(blockClass, "__item-label"),
|
45
45
|
id: "".concat(internalId.current, "-").concat(index, "--item-label")
|
46
|
-
}, item.props.label), typeof item.props.renderIcon === 'function' ? /*#__PURE__*/React__default.createElement(ItemIcon, null) : item.props.renderIcon)
|
46
|
+
}, item === null || item === void 0 ? void 0 : item.props.label), typeof (item === null || item === void 0 ? void 0 : item.props.renderIcon) === 'function' ? /*#__PURE__*/React__default.createElement(ItemIcon, null) : item === null || item === void 0 ? void 0 : item.props.renderIcon)
|
47
47
|
});
|
48
48
|
}));
|
49
49
|
};
|
@@ -65,7 +65,11 @@ ActionBarOverflowItems.propTypes = {
|
|
65
65
|
/**
|
66
66
|
* overflowItems: items to bre shown in the ActionBar overflow menu
|
67
67
|
*/
|
68
|
-
overflowItems: PropTypes.arrayOf(PropTypes.element)
|
68
|
+
overflowItems: PropTypes.arrayOf(PropTypes.element),
|
69
|
+
/**
|
70
|
+
* Optional tab index
|
71
|
+
*/
|
72
|
+
tabIndex: PropTypes.number
|
69
73
|
};
|
70
74
|
|
71
75
|
export { ActionBarOverflowItems };
|
@@ -1,3 +1,9 @@
|
|
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
|
+
*/
|
1
7
|
import { ReactNode } from 'react';
|
2
8
|
export type Theme = 'light' | 'dark';
|
3
9
|
export interface Filter {
|
@@ -1,2 +1,69 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
import React, { PropsWithChildren, ReactNode } from 'react';
|
2
|
+
type ActionIcon = {
|
3
|
+
id?: string;
|
4
|
+
icon?: () => ReactNode;
|
5
|
+
onKeydown?: () => void;
|
6
|
+
onClick?: () => void;
|
7
|
+
iconDescription?: string;
|
8
|
+
href?: string;
|
9
|
+
};
|
10
|
+
type OverflowActions = {
|
11
|
+
id?: string;
|
12
|
+
itemText?: string;
|
13
|
+
onClick?: () => void;
|
14
|
+
onKeydown?: () => void;
|
15
|
+
};
|
16
|
+
type Metadata = {
|
17
|
+
id?: string;
|
18
|
+
icon?: () => ReactNode;
|
19
|
+
iconDescription?: string;
|
20
|
+
onClick?: () => void;
|
21
|
+
href?: string;
|
22
|
+
};
|
23
|
+
interface CardProp extends PropsWithChildren {
|
24
|
+
actionIcons?: readonly ActionIcon[];
|
25
|
+
actionsPlacement?: 'top' | 'bottom';
|
26
|
+
children?: ReactNode;
|
27
|
+
className?: string;
|
28
|
+
clickZone?: 'one' | 'two' | 'three';
|
29
|
+
description?: ReactNode;
|
30
|
+
disabled?: boolean;
|
31
|
+
footerActionIcon?: React.ElementType;
|
32
|
+
getStarted?: boolean;
|
33
|
+
label?: ReactNode;
|
34
|
+
media?: ReactNode;
|
35
|
+
mediaPosition?: 'top' | 'left';
|
36
|
+
metadata?: readonly Metadata[];
|
37
|
+
onClick?: () => void;
|
38
|
+
onKeyDown?: () => void;
|
39
|
+
onPrimaryButtonClick?: () => void;
|
40
|
+
onSecondaryButtonClick?: () => void;
|
41
|
+
overflowActions?: readonly OverflowActions[];
|
42
|
+
overflowAriaLabel?: string;
|
43
|
+
pictogram?: () => ReactNode;
|
44
|
+
primaryButtonDisabled?: boolean;
|
45
|
+
primaryButtonHref?: string;
|
46
|
+
primaryButtonIcon?: React.ElementType;
|
47
|
+
primaryButtonKind?: 'primary' | 'ghost';
|
48
|
+
primaryButtonPlacement?: 'top' | 'bottom';
|
49
|
+
primaryButtonText?: string;
|
50
|
+
productive?: boolean;
|
51
|
+
secondaryButtonDisabled?: boolean;
|
52
|
+
secondaryButtonHref?: string;
|
53
|
+
secondaryButtonIcon?: React.ElementType;
|
54
|
+
secondaryButtonKind?: 'secondary' | 'ghost';
|
55
|
+
secondaryButtonPlacement?: 'top' | 'bottom';
|
56
|
+
secondaryButtonText?: string;
|
57
|
+
sequence?: number;
|
58
|
+
iconDescription?: string;
|
59
|
+
/**
|
60
|
+
* **Experimental?** For all cases a `Slug` component can be provided.
|
61
|
+
* Clickable tiles only accept a boolean value of true and display a hollow slug.
|
62
|
+
*/
|
63
|
+
slug?: ReactNode | boolean;
|
64
|
+
status?: 'complete' | 'incomplete';
|
65
|
+
title?: ReactNode;
|
66
|
+
titleSize?: 'default' | 'large';
|
67
|
+
}
|
68
|
+
export declare const Card: React.ForwardRefExoticComponent<CardProp & React.RefAttributes<HTMLDivElement>>;
|
69
|
+
export {};
|
@@ -16,36 +16,21 @@ import { CardFooter } from './CardFooter.js';
|
|
16
16
|
import { pkg } from '../../settings.js';
|
17
17
|
|
18
18
|
var _Incomplete, _CheckmarkOutline;
|
19
|
-
var _excluded = ["actionIcons", "actionsPlacement", "metadata", "children", "className", "clickZone", "description", "disabled", "footerActionIcon", "getStarted", "label", "media", "mediaPosition", "onClick", "onKeyDown", "onPrimaryButtonClick", "overflowActions", "overflowAriaLabel", "onSecondaryButtonClick", "pictogram", "primaryButtonDisabled", "primaryButtonHref", "primaryButtonIcon", "primaryButtonKind", "primaryButtonPlacement", "primaryButtonText", "productive", "secondaryButtonDisabled", "secondaryButtonHref", "secondaryButtonIcon", "secondaryButtonKind", "secondaryButtonPlacement", "secondaryButtonText", "slug", "status", "sequence", "title", "titleSize"],
|
19
|
+
var _excluded = ["actionIcons", "actionsPlacement", "metadata", "children", "className", "clickZone", "description", "disabled", "footerActionIcon", "getStarted", "label", "media", "mediaPosition", "onClick", "onKeyDown", "onPrimaryButtonClick", "overflowActions", "overflowAriaLabel", "onSecondaryButtonClick", "pictogram", "primaryButtonDisabled", "primaryButtonHref", "primaryButtonIcon", "primaryButtonKind", "primaryButtonPlacement", "primaryButtonText", "productive", "secondaryButtonDisabled", "secondaryButtonHref", "secondaryButtonIcon", "secondaryButtonKind", "secondaryButtonPlacement", "secondaryButtonText", "slug", "status", "sequence", "title", "titleSize", "iconDescription"],
|
20
20
|
_excluded2 = ["id"],
|
21
21
|
_excluded3 = ["id", "icon", "onClick", "iconDescription", "href"];
|
22
22
|
var componentName = 'Card';
|
23
|
-
|
24
|
-
// Default values for props
|
25
|
-
var defaults = {
|
26
|
-
actionIcons: Object.freeze([]),
|
27
|
-
actionsPlacement: 'bottom',
|
28
|
-
clickZone: 'one',
|
29
|
-
mediaPosition: 'top',
|
30
|
-
overflowActions: Object.freeze([]),
|
31
|
-
primaryButtonKind: 'primary',
|
32
|
-
primaryButtonPlacement: 'bottom',
|
33
|
-
productive: false,
|
34
|
-
secondaryButtonKind: 'secondary',
|
35
|
-
secondaryButtonPlacement: 'bottom',
|
36
|
-
titleSize: 'default'
|
37
|
-
};
|
38
23
|
var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
39
24
|
var _ref$actionIcons = _ref.actionIcons,
|
40
|
-
actionIcons = _ref$actionIcons === void 0 ?
|
25
|
+
actionIcons = _ref$actionIcons === void 0 ? Object.freeze([]) : _ref$actionIcons,
|
41
26
|
_ref$actionsPlacement = _ref.actionsPlacement,
|
42
|
-
actionsPlacement = _ref$actionsPlacement === void 0 ?
|
27
|
+
actionsPlacement = _ref$actionsPlacement === void 0 ? 'bottom' : _ref$actionsPlacement,
|
43
28
|
_ref$metadata = _ref.metadata,
|
44
|
-
metadata = _ref$metadata === void 0 ?
|
29
|
+
metadata = _ref$metadata === void 0 ? Object.freeze([]) : _ref$metadata,
|
45
30
|
children = _ref.children,
|
46
31
|
className = _ref.className,
|
47
32
|
_ref$clickZone = _ref.clickZone,
|
48
|
-
clickZone = _ref$clickZone === void 0 ?
|
33
|
+
clickZone = _ref$clickZone === void 0 ? 'one' : _ref$clickZone,
|
49
34
|
description = _ref.description,
|
50
35
|
disabled = _ref.disabled,
|
51
36
|
footerActionIcon = _ref.footerActionIcon,
|
@@ -53,12 +38,12 @@ var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
53
38
|
label = _ref.label,
|
54
39
|
media = _ref.media,
|
55
40
|
_ref$mediaPosition = _ref.mediaPosition,
|
56
|
-
mediaPosition = _ref$mediaPosition === void 0 ?
|
41
|
+
mediaPosition = _ref$mediaPosition === void 0 ? 'top' : _ref$mediaPosition,
|
57
42
|
onClick = _ref.onClick,
|
58
43
|
onKeyDown = _ref.onKeyDown,
|
59
44
|
onPrimaryButtonClick = _ref.onPrimaryButtonClick,
|
60
45
|
_ref$overflowActions = _ref.overflowActions,
|
61
|
-
overflowActions = _ref$overflowActions === void 0 ?
|
46
|
+
overflowActions = _ref$overflowActions === void 0 ? Object.freeze([]) : _ref$overflowActions,
|
62
47
|
overflowAriaLabel = _ref.overflowAriaLabel,
|
63
48
|
onSecondaryButtonClick = _ref.onSecondaryButtonClick,
|
64
49
|
Pictogram = _ref.pictogram,
|
@@ -66,26 +51,28 @@ var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
66
51
|
primaryButtonHref = _ref.primaryButtonHref,
|
67
52
|
primaryButtonIcon = _ref.primaryButtonIcon,
|
68
53
|
_ref$primaryButtonKin = _ref.primaryButtonKind,
|
69
|
-
primaryButtonKind = _ref$primaryButtonKin === void 0 ?
|
54
|
+
primaryButtonKind = _ref$primaryButtonKin === void 0 ? 'primary' : _ref$primaryButtonKin,
|
70
55
|
_ref$primaryButtonPla = _ref.primaryButtonPlacement,
|
71
|
-
primaryButtonPlacement = _ref$primaryButtonPla === void 0 ?
|
56
|
+
primaryButtonPlacement = _ref$primaryButtonPla === void 0 ? 'bottom' : _ref$primaryButtonPla,
|
72
57
|
primaryButtonText = _ref.primaryButtonText,
|
73
58
|
_ref$productive = _ref.productive,
|
74
|
-
productive = _ref$productive === void 0 ?
|
59
|
+
productive = _ref$productive === void 0 ? false : _ref$productive,
|
75
60
|
secondaryButtonDisabled = _ref.secondaryButtonDisabled,
|
76
61
|
secondaryButtonHref = _ref.secondaryButtonHref,
|
77
62
|
secondaryButtonIcon = _ref.secondaryButtonIcon,
|
78
63
|
_ref$secondaryButtonK = _ref.secondaryButtonKind,
|
79
|
-
secondaryButtonKind = _ref$secondaryButtonK === void 0 ?
|
64
|
+
secondaryButtonKind = _ref$secondaryButtonK === void 0 ? 'secondary' : _ref$secondaryButtonK,
|
80
65
|
_ref$secondaryButtonP = _ref.secondaryButtonPlacement,
|
81
|
-
secondaryButtonPlacement = _ref$secondaryButtonP === void 0 ?
|
66
|
+
secondaryButtonPlacement = _ref$secondaryButtonP === void 0 ? 'bottom' : _ref$secondaryButtonP,
|
82
67
|
secondaryButtonText = _ref.secondaryButtonText,
|
83
68
|
slug = _ref.slug,
|
84
69
|
status = _ref.status,
|
85
70
|
sequence = _ref.sequence,
|
86
71
|
title = _ref.title,
|
87
72
|
_ref$titleSize = _ref.titleSize,
|
88
|
-
titleSize = _ref$titleSize === void 0 ?
|
73
|
+
titleSize = _ref$titleSize === void 0 ? 'default' : _ref$titleSize,
|
74
|
+
_ref$iconDescription = _ref.iconDescription,
|
75
|
+
iconDescription = _ref$iconDescription === void 0 ? 'Options' : _ref$iconDescription,
|
89
76
|
rest = _objectWithoutProperties(_ref, _excluded);
|
90
77
|
var getIcons = function getIcons() {
|
91
78
|
return getStarted ? metadata : actionIcons;
|
@@ -101,7 +88,7 @@ var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
101
88
|
onClick: onClick,
|
102
89
|
onKeyDown: onKeyDown,
|
103
90
|
role: 'button',
|
104
|
-
tabIndex:
|
91
|
+
tabIndex: 0
|
105
92
|
};
|
106
93
|
|
107
94
|
// actions can either be an overflow menu or series of icons
|
@@ -115,7 +102,8 @@ var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
115
102
|
size: size,
|
116
103
|
direction: pos,
|
117
104
|
flipped: true,
|
118
|
-
"aria-label": overflowAriaLabel
|
105
|
+
"aria-label": overflowAriaLabel,
|
106
|
+
iconDescription: iconDescription
|
119
107
|
}, overflowActions.map(function (_ref2) {
|
120
108
|
var id = _ref2.id,
|
121
109
|
rest = _objectWithoutProperties(_ref2, _excluded2);
|
@@ -135,7 +123,7 @@ var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
135
123
|
return /*#__PURE__*/React__default.createElement("span", {
|
136
124
|
key: id,
|
137
125
|
className: "".concat(blockClass, "__icon")
|
138
|
-
}, /*#__PURE__*/React__default.createElement(Icon, {
|
126
|
+
}, Icon && /*#__PURE__*/React__default.createElement(Icon, {
|
139
127
|
"aria-label": iconDescription
|
140
128
|
}), iconDescription);
|
141
129
|
}
|
@@ -157,7 +145,7 @@ var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
157
145
|
className: "".concat(blockClass, "__icon"),
|
158
146
|
href: href,
|
159
147
|
onClick: onClick
|
160
|
-
}, /*#__PURE__*/React__default.createElement(Icon, {
|
148
|
+
}, Icon && /*#__PURE__*/React__default.createElement(Icon, {
|
161
149
|
"aria-label": iconDescription
|
162
150
|
}));
|
163
151
|
}
|
@@ -168,7 +156,7 @@ var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
168
156
|
onClick: onClick,
|
169
157
|
kind: "ghost",
|
170
158
|
size: "sm"
|
171
|
-
}, /*#__PURE__*/React__default.createElement(Icon, {
|
159
|
+
}, Icon && /*#__PURE__*/React__default.createElement(Icon, {
|
172
160
|
"aria-label": iconDescription
|
173
161
|
}));
|
174
162
|
});
|
@@ -265,6 +253,7 @@ var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
265
253
|
}, media)), hasBottomBar && /*#__PURE__*/React__default.createElement(CardFooter, getFooterProps())));
|
266
254
|
});
|
267
255
|
Card.propTypes = {
|
256
|
+
/**@ts-ignore */
|
268
257
|
actionIcons: PropTypes.arrayOf(PropTypes.shape({
|
269
258
|
id: PropTypes.string,
|
270
259
|
icon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
@@ -277,13 +266,16 @@ Card.propTypes = {
|
|
277
266
|
children: PropTypes.node,
|
278
267
|
className: PropTypes.string,
|
279
268
|
clickZone: PropTypes.oneOf(['one', 'two', 'three']),
|
280
|
-
|
269
|
+
/**@ts-ignore */
|
270
|
+
description: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
281
271
|
disabled: PropTypes.bool,
|
272
|
+
/**@ts-ignore */
|
282
273
|
footerActionIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
283
274
|
getStarted: PropTypes.bool,
|
284
|
-
label: PropTypes.oneOfType([PropTypes.string, PropTypes.
|
275
|
+
label: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
285
276
|
media: PropTypes.node,
|
286
277
|
mediaPosition: PropTypes.oneOf(['top', 'left']),
|
278
|
+
/**@ts-ignore */
|
287
279
|
metadata: PropTypes.arrayOf(PropTypes.shape({
|
288
280
|
id: PropTypes.string,
|
289
281
|
icon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
@@ -293,6 +285,7 @@ Card.propTypes = {
|
|
293
285
|
onKeyDown: PropTypes.func,
|
294
286
|
onPrimaryButtonClick: PropTypes.func,
|
295
287
|
onSecondaryButtonClick: PropTypes.func,
|
288
|
+
/**@ts-ignore */
|
296
289
|
overflowActions: PropTypes.arrayOf(PropTypes.shape({
|
297
290
|
id: PropTypes.string,
|
298
291
|
itemText: PropTypes.string,
|
@@ -300,16 +293,19 @@ Card.propTypes = {
|
|
300
293
|
onKeyDown: PropTypes.func
|
301
294
|
})),
|
302
295
|
overflowAriaLabel: PropTypes.string,
|
296
|
+
/**@ts-ignore */
|
303
297
|
pictogram: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
304
298
|
primaryButtonDisabled: PropTypes.bool,
|
305
299
|
primaryButtonHref: PropTypes.string,
|
300
|
+
/**@ts-ignore */
|
306
301
|
primaryButtonIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
307
302
|
primaryButtonKind: PropTypes.oneOf(['primary', 'ghost']),
|
308
303
|
primaryButtonPlacement: PropTypes.oneOf(['top', 'bottom']),
|
309
|
-
primaryButtonText: PropTypes.
|
304
|
+
primaryButtonText: PropTypes.string,
|
310
305
|
productive: PropTypes.bool,
|
311
306
|
secondaryButtonDisabled: PropTypes.bool,
|
312
307
|
secondaryButtonHref: PropTypes.string,
|
308
|
+
/**@ts-ignore */
|
313
309
|
secondaryButtonIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
314
310
|
secondaryButtonKind: PropTypes.oneOf(['secondary', 'ghost']),
|
315
311
|
secondaryButtonPlacement: PropTypes.oneOf(['top', 'bottom']),
|
@@ -321,7 +317,7 @@ Card.propTypes = {
|
|
321
317
|
*/
|
322
318
|
slug: PropTypes.oneOfType([PropTypes.node, PropTypes.bool]),
|
323
319
|
status: PropTypes.oneOf(['complete', 'incomplete']),
|
324
|
-
title: PropTypes.oneOfType([PropTypes.string, PropTypes.
|
320
|
+
title: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
325
321
|
titleSize: PropTypes.oneOf(['default', 'large'])
|
326
322
|
};
|
327
323
|
Card.displayName = componentName;
|