@carbon/ibm-products 2.43.2-canary.304 → 2.43.2-canary.306
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/index-full-carbon.css +12 -6
- 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 +12 -6
- 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 +12 -6
- 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 +12 -6
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/components/APIKeyModal/APIKeyDownloader.d.ts +2 -1
- package/es/components/ActionBar/ActionBarOverflowItems.d.ts +2 -2
- package/es/components/AddSelect/AddSelectBreadcrumbs.d.ts +2 -1
- package/es/components/AddSelect/AddSelectColumn.d.ts +2 -1
- package/es/components/AddSelect/AddSelectFilter.d.ts +2 -1
- package/es/components/AddSelect/AddSelectFilter.js +5 -5
- package/es/components/AddSelect/AddSelectFormControl.d.ts +2 -1
- package/es/components/AddSelect/AddSelectList.d.ts +2 -1
- package/es/components/AddSelect/AddSelectMetaPanel.d.ts +2 -1
- package/es/components/AddSelect/AddSelectRow.d.ts +2 -1
- package/es/components/AddSelect/AddSelectSidebar.d.ts +2 -1
- package/es/components/AddSelect/AddSelectSort.d.ts +2 -1
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.d.ts +2 -1
- package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.d.ts +2 -1
- package/es/components/Card/Card.d.ts +5 -1
- package/es/components/Card/Card.js +9 -2
- package/es/components/Card/CardFooter.d.ts +1 -1
- package/es/components/Card/CardHeader.d.ts +12 -2
- package/es/components/Card/CardHeader.js +17 -9
- package/es/components/ComboButton/ComboButtonItem/index.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +2 -1
- package/es/components/CreateInfluencer/CreateInfluencer.d.ts +2 -2
- package/es/components/Datagrid/Datagrid/DatagridBody.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridContent.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridEmptyBody.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridExpandedRow.d.ts +2 -2
- package/es/components/Datagrid/Datagrid/DatagridHead.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridRefBody.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridRow.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridSelectAll.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridSimpleBody.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridToolbar.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridVirtualBody.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DraggableElement.d.ts +2 -2
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.d.ts +2 -1
- package/es/components/EmptyStates/EmptyStateContent.d.ts +2 -1
- package/es/components/EmptyStates/EmptyStateIllustration.d.ts +2 -1
- package/es/components/EmptyStates/assets/ErrorIllustration.d.ts +2 -1
- package/es/components/EmptyStates/assets/NoDataIllustration.d.ts +2 -1
- package/es/components/EmptyStates/assets/NoTagsIllustration.d.ts +2 -1
- package/es/components/EmptyStates/assets/NotFoundIllustration.d.ts +2 -1
- package/es/components/EmptyStates/assets/NotificationsIllustration.d.ts +2 -1
- package/es/components/EmptyStates/assets/UnauthorizedIllustration.d.ts +2 -1
- package/es/components/ExpressiveCard/ExpressiveCard.d.ts +5 -0
- package/es/components/ExpressiveCard/ExpressiveCard.js +5 -0
- package/es/components/FeatureFlags/index.d.ts +1 -1
- package/es/components/FullPageError/assets/Error403SVG.d.ts +2 -1
- package/es/components/FullPageError/assets/Error404SVG.d.ts +2 -1
- package/es/components/FullPageError/assets/ErrorGenericSVG.d.ts +2 -1
- package/es/components/HTTPErrors/HTTPErrorContent.d.ts +2 -1
- package/es/components/HTTPErrors/assets/HTTPErrorSvg403.d.ts +2 -1
- package/es/components/HTTPErrors/assets/HTTPErrorSvg404.d.ts +2 -1
- package/es/components/HTTPErrors/assets/HTTPErrorSvgOther.d.ts +2 -1
- package/es/components/Nav/NavItem.d.ts +2 -1
- package/es/components/PageHeader/PageHeaderTitle.d.ts +2 -1
- package/es/components/ProductiveCard/ProductiveCard.d.ts +5 -0
- package/es/components/ProductiveCard/ProductiveCard.js +4 -0
- package/es/components/SimpleHeader/SimpleHeader.d.ts +2 -1
- package/es/components/TagOverflow/TagOverflow.d.ts +3 -0
- package/es/components/TagOverflow/TagOverflow.js +9 -4
- package/es/components/TagOverflow/TagOverflowModal.d.ts +6 -1
- package/es/components/TagOverflow/TagOverflowModal.js +17 -6
- package/es/components/TagOverflow/TagOverflowPopover.js +17 -9
- package/es/components/TagSet/TagSet.d.ts +4 -0
- package/es/components/TagSet/TagSet.js +20 -8
- package/es/components/TagSet/TagSetModal.js +0 -1
- package/es/components/TooltipTrigger/TooltipTrigger.d.ts +2 -1
- package/es/components/_Canary/Canary.d.ts +2 -1
- package/lib/components/APIKeyModal/APIKeyDownloader.d.ts +2 -1
- package/lib/components/ActionBar/ActionBarOverflowItems.d.ts +2 -2
- package/lib/components/AddSelect/AddSelectBreadcrumbs.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectColumn.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectFilter.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectFilter.js +4 -4
- package/lib/components/AddSelect/AddSelectFormControl.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectList.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectMetaPanel.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectRow.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectSidebar.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectSort.d.ts +2 -1
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.d.ts +2 -1
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.d.ts +2 -1
- package/lib/components/Card/Card.d.ts +5 -1
- package/lib/components/Card/Card.js +9 -2
- package/lib/components/Card/CardFooter.d.ts +1 -1
- package/lib/components/Card/CardHeader.d.ts +12 -2
- package/lib/components/Card/CardHeader.js +17 -9
- package/lib/components/ComboButton/ComboButtonItem/index.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +2 -1
- package/lib/components/CreateInfluencer/CreateInfluencer.d.ts +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridBody.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridContent.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.d.ts +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridHead.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridRefBody.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridRow.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DraggableElement.d.ts +2 -2
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.d.ts +2 -1
- package/lib/components/EmptyStates/EmptyStateContent.d.ts +2 -1
- package/lib/components/EmptyStates/EmptyStateIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/assets/ErrorIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/assets/NoDataIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/assets/NoTagsIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/assets/NotFoundIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/assets/NotificationsIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/assets/UnauthorizedIllustration.d.ts +2 -1
- package/lib/components/ExpressiveCard/ExpressiveCard.d.ts +5 -0
- package/lib/components/ExpressiveCard/ExpressiveCard.js +5 -0
- package/lib/components/FeatureFlags/index.d.ts +1 -1
- package/lib/components/FullPageError/assets/Error403SVG.d.ts +2 -1
- package/lib/components/FullPageError/assets/Error404SVG.d.ts +2 -1
- package/lib/components/FullPageError/assets/ErrorGenericSVG.d.ts +2 -1
- package/lib/components/HTTPErrors/HTTPErrorContent.d.ts +2 -1
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg403.d.ts +2 -1
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg404.d.ts +2 -1
- package/lib/components/HTTPErrors/assets/HTTPErrorSvgOther.d.ts +2 -1
- package/lib/components/Nav/NavItem.d.ts +2 -1
- package/lib/components/PageHeader/PageHeaderTitle.d.ts +2 -1
- package/lib/components/ProductiveCard/ProductiveCard.d.ts +5 -0
- package/lib/components/ProductiveCard/ProductiveCard.js +4 -0
- package/lib/components/SimpleHeader/SimpleHeader.d.ts +2 -1
- package/lib/components/TagOverflow/TagOverflow.d.ts +3 -0
- package/lib/components/TagOverflow/TagOverflow.js +8 -3
- package/lib/components/TagOverflow/TagOverflowModal.d.ts +6 -1
- package/lib/components/TagOverflow/TagOverflowModal.js +16 -5
- package/lib/components/TagOverflow/TagOverflowPopover.js +16 -8
- package/lib/components/TagSet/TagSet.d.ts +4 -0
- package/lib/components/TagSet/TagSet.js +19 -7
- package/lib/components/TagSet/TagSetModal.js +0 -1
- package/lib/components/TooltipTrigger/TooltipTrigger.d.ts +2 -1
- package/lib/components/_Canary/Canary.d.ts +2 -1
- package/package.json +3 -3
- package/scss/components/Card/_card.scss +14 -6
@@ -10,7 +10,7 @@ export function AddSelectColumn({ columnInputPlaceholder, filterByLabel, header,
|
|
10
10
|
setMultiSelection: any;
|
11
11
|
setPath: any;
|
12
12
|
sortByLabel: any;
|
13
|
-
}):
|
13
|
+
}): React.JSX.Element;
|
14
14
|
export namespace AddSelectColumn {
|
15
15
|
export namespace propTypes {
|
16
16
|
let columnInputPlaceholder: PropTypes.Requireable<string>;
|
@@ -26,6 +26,7 @@ export namespace AddSelectColumn {
|
|
26
26
|
}
|
27
27
|
export { componentName as displayName };
|
28
28
|
}
|
29
|
+
import React from 'react';
|
29
30
|
import PropTypes from 'prop-types';
|
30
31
|
declare const componentName: "AddSelectColumn";
|
31
32
|
export {};
|
@@ -14,7 +14,7 @@ export function AddSelectFilter({ appliedFilters, clearFiltersText, filterOpts,
|
|
14
14
|
primaryButtonText: any;
|
15
15
|
searchTerm: any;
|
16
16
|
secondaryButtonText: any;
|
17
|
-
}):
|
17
|
+
}): React.JSX.Element;
|
18
18
|
export namespace AddSelectFilter {
|
19
19
|
export namespace propTypes {
|
20
20
|
let appliedFilters: PropTypes.Requireable<object>;
|
@@ -35,6 +35,7 @@ export namespace AddSelectFilter {
|
|
35
35
|
}
|
36
36
|
export { componentName as displayName };
|
37
37
|
}
|
38
|
+
import React from 'react';
|
38
39
|
import PropTypes from 'prop-types';
|
39
40
|
declare const componentName: "AddSelectFilter";
|
40
41
|
export {};
|
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
import { slicedToArray as _slicedToArray, defineProperty as _defineProperty, extends as _extends, objectSpread2 as _objectSpread2 } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
9
9
|
import React__default, { useState } from 'react';
|
10
|
-
import { Search, Button, Layer, Dropdown, ButtonSet,
|
10
|
+
import { Search, Button, Layer, Dropdown, ButtonSet, DismissibleTag } from '@carbon/react';
|
11
11
|
import cx from 'classnames';
|
12
12
|
import PropTypes from '../../_virtual/index.js';
|
13
13
|
import { Filter } from '@carbon/react/icons';
|
@@ -134,15 +134,15 @@ var AddSelectFilter = function AddSelectFilter(_ref) {
|
|
134
134
|
}, primaryButtonText)))), hasFiltersApplied && /*#__PURE__*/React__default.createElement("div", {
|
135
135
|
className: "".concat(blockClass, "-applied")
|
136
136
|
}, Object.keys(appliedFilters).map(function (filterType) {
|
137
|
-
return /*#__PURE__*/React__default.createElement(
|
137
|
+
return /*#__PURE__*/React__default.createElement(DismissibleTag, {
|
138
138
|
key: filterType,
|
139
|
+
text: "".concat(filterType, ": ").concat(appliedFilters[filterType]),
|
139
140
|
type: "gray",
|
140
141
|
size: "sm",
|
141
142
|
onClose: function onClose() {
|
142
143
|
return removeTag(filterType);
|
143
|
-
}
|
144
|
-
|
145
|
-
}, "".concat(filterType, ": ").concat(appliedFilters[filterType]));
|
144
|
+
}
|
145
|
+
});
|
146
146
|
}), /*#__PURE__*/React__default.createElement(Button, {
|
147
147
|
kind: "ghost",
|
148
148
|
size: "sm",
|
@@ -3,7 +3,7 @@ export function AddSelectFormControl({ item, onClick, selected, type }: {
|
|
3
3
|
onClick: any;
|
4
4
|
selected: any;
|
5
5
|
type: any;
|
6
|
-
}):
|
6
|
+
}): React.JSX.Element;
|
7
7
|
export namespace AddSelectFormControl {
|
8
8
|
export namespace propTypes {
|
9
9
|
let item: PropTypes.Requireable<object>;
|
@@ -13,6 +13,7 @@ export namespace AddSelectFormControl {
|
|
13
13
|
}
|
14
14
|
export { componentName as displayName };
|
15
15
|
}
|
16
|
+
import React from 'react';
|
16
17
|
import PropTypes from 'prop-types';
|
17
18
|
declare const componentName: "AddSelectFormControl";
|
18
19
|
export {};
|
@@ -2,7 +2,7 @@ export function AddSelectList({ filteredItems, multi, ...rest }: {
|
|
2
2
|
[x: string]: any;
|
3
3
|
filteredItems: any;
|
4
4
|
multi: any;
|
5
|
-
}):
|
5
|
+
}): React.JSX.Element;
|
6
6
|
export namespace AddSelectList {
|
7
7
|
export namespace propTypes {
|
8
8
|
let filteredItems: PropTypes.Requireable<any[]>;
|
@@ -11,6 +11,7 @@ export namespace AddSelectList {
|
|
11
11
|
}
|
12
12
|
export { componentName as displayName };
|
13
13
|
}
|
14
|
+
import React from 'react';
|
14
15
|
import PropTypes from 'prop-types';
|
15
16
|
declare const componentName: "AddSelectList";
|
16
17
|
export {};
|
@@ -3,7 +3,7 @@ export function AddSelectMetaPanel({ closeIconDescription, meta, setDisplayMetaP
|
|
3
3
|
meta: any;
|
4
4
|
setDisplayMetaPanel: any;
|
5
5
|
title: any;
|
6
|
-
}):
|
6
|
+
}): React.JSX.Element;
|
7
7
|
export namespace AddSelectMetaPanel {
|
8
8
|
export namespace propTypes {
|
9
9
|
let closeIconDescription: PropTypes.Validator<string>;
|
@@ -17,6 +17,7 @@ export namespace AddSelectMetaPanel {
|
|
17
17
|
}
|
18
18
|
export { componentName as displayName };
|
19
19
|
}
|
20
|
+
import React from 'react';
|
20
21
|
import PropTypes from 'prop-types';
|
21
22
|
declare const componentName: "AddSelectMetaPanel";
|
22
23
|
export {};
|
@@ -19,7 +19,7 @@ export function AddSelectRow({ appliedModifiers, displayMetalPanel, index, focus
|
|
19
19
|
setSingleSelection: any;
|
20
20
|
setSize: any;
|
21
21
|
singleSelection: any;
|
22
|
-
}):
|
22
|
+
}): React.JSX.Element;
|
23
23
|
export namespace AddSelectRow {
|
24
24
|
export namespace propTypes {
|
25
25
|
let appliedModifiers: PropTypes.Requireable<any[]>;
|
@@ -46,6 +46,7 @@ export namespace AddSelectRow {
|
|
46
46
|
}
|
47
47
|
export { componentName as displayName };
|
48
48
|
}
|
49
|
+
import React from 'react';
|
49
50
|
import PropTypes from 'prop-types';
|
50
51
|
declare const componentName: "AddSelectList";
|
51
52
|
export {};
|
@@ -11,7 +11,7 @@ export function AddSelectSidebar({ appliedModifiers, closeIconDescription, displ
|
|
11
11
|
noSelectionDescription: any;
|
12
12
|
noSelectionTitle: any;
|
13
13
|
setDisplayMetaPanel: any;
|
14
|
-
}):
|
14
|
+
}): React.JSX.Element;
|
15
15
|
export namespace AddSelectSidebar {
|
16
16
|
export namespace propTypes {
|
17
17
|
let appliedModifiers: PropTypes.Requireable<any[]>;
|
@@ -29,6 +29,7 @@ export namespace AddSelectSidebar {
|
|
29
29
|
}
|
30
30
|
export { componentName as displayName };
|
31
31
|
}
|
32
|
+
import React from 'react';
|
32
33
|
import PropTypes from 'prop-types';
|
33
34
|
declare const componentName: "AddSelectSidebar";
|
34
35
|
export {};
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import React from 'react';
|
1
2
|
import PropTypes from 'prop-types';
|
2
3
|
export interface AddSelectSortProps {
|
3
4
|
setSortAttribute?: (attribute: any) => void;
|
@@ -6,7 +7,7 @@ export interface AddSelectSortProps {
|
|
6
7
|
sortByLabel?: string;
|
7
8
|
}
|
8
9
|
export declare const AddSelectSort: {
|
9
|
-
({ setSortAttribute, setSortDirection, sortBy, sortByLabel, }: AddSelectSortProps):
|
10
|
+
({ setSortAttribute, setSortDirection, sortBy, sortByLabel, }: AddSelectSortProps): React.JSX.Element;
|
10
11
|
propTypes: {
|
11
12
|
setSortAttribute: PropTypes.Requireable<(...args: any[]) => any>;
|
12
13
|
setSortDirection: PropTypes.Requireable<(...args: any[]) => any>;
|
@@ -6,7 +6,7 @@ export function BreadcrumbWithOverflow({ breadcrumbs, className, maxVisible, noT
|
|
6
6
|
noTrailingSlash: any;
|
7
7
|
overflowAriaLabel: any;
|
8
8
|
overflowTooltipAlign: any;
|
9
|
-
}):
|
9
|
+
}): React.JSX.Element;
|
10
10
|
export namespace BreadcrumbWithOverflow {
|
11
11
|
export namespace propTypes {
|
12
12
|
let breadcrumbs: PropTypes.Requireable<(PropTypes.InferProps<{
|
@@ -43,6 +43,7 @@ export namespace BreadcrumbWithOverflow {
|
|
43
43
|
}
|
44
44
|
export { componentName as displayName };
|
45
45
|
}
|
46
|
+
import React from 'react';
|
46
47
|
import PropTypes from 'prop-types';
|
47
48
|
declare const componentName: "BreadcrumbWithOverflow";
|
48
49
|
export {};
|
@@ -5,7 +5,7 @@ export function ButtonSetWithOverflow({ buttons, className, onWidthChange, butto
|
|
5
5
|
buttonSetOverflowLabel: any;
|
6
6
|
menuOptionsClass: any;
|
7
7
|
rightAlign: any;
|
8
|
-
}):
|
8
|
+
}): React.JSX.Element;
|
9
9
|
export namespace ButtonSetWithOverflow {
|
10
10
|
export namespace propTypes {
|
11
11
|
let buttonSetOverflowLabel: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
@@ -17,6 +17,7 @@ export namespace ButtonSetWithOverflow {
|
|
17
17
|
}
|
18
18
|
export { componentName as displayName };
|
19
19
|
}
|
20
|
+
import React from 'react';
|
20
21
|
import PropTypes from 'prop-types';
|
21
22
|
declare const componentName: "ButtonSetWithOverflow";
|
22
23
|
export {};
|
@@ -57,10 +57,14 @@ interface CardProp extends PropsWithChildren {
|
|
57
57
|
sequence?: number;
|
58
58
|
iconDescription?: string;
|
59
59
|
/**
|
60
|
-
* **Experimental?** For all cases a `Slug` component can be provided.
|
61
60
|
* Clickable tiles only accept a boolean value of true and display a hollow slug.
|
61
|
+
* @deprecated please use the `aiLabel` prop
|
62
62
|
*/
|
63
63
|
slug?: ReactNode | boolean;
|
64
|
+
/**
|
65
|
+
* Optional prop that is intended for any scenario where something is being generated by AI to reinforce AI transparency, accountability, and explainability at the UI level.
|
66
|
+
*/
|
67
|
+
aiLabel?: ReactNode | boolean;
|
64
68
|
status?: 'complete' | 'incomplete';
|
65
69
|
title?: ReactNode;
|
66
70
|
titleSize?: 'default' | 'large';
|
@@ -16,7 +16,7 @@ import { CardFooter } from './CardFooter.js';
|
|
16
16
|
import { pkg } from '../../settings.js';
|
17
17
|
|
18
18
|
var _Incomplete, _CheckmarkOutline;
|
19
|
-
var _excluded = ["actionIcons", "actionsPlacement", "metadata", "children", "className", "clickZone", "description", "disabled", "footerActionIcon", "getStarted", "label", "media", "mediaPosition", "onClick", "onKeyDown", "onPrimaryButtonClick", "overflowActions", "overflowAriaLabel", "onSecondaryButtonClick", "pictogram", "primaryButtonDisabled", "primaryButtonHref", "primaryButtonIcon", "primaryButtonKind", "primaryButtonPlacement", "primaryButtonText", "productive", "secondaryButtonDisabled", "secondaryButtonHref", "secondaryButtonIcon", "secondaryButtonKind", "secondaryButtonPlacement", "secondaryButtonText", "slug", "status", "sequence", "title", "titleSize", "iconDescription"],
|
19
|
+
var _excluded = ["actionIcons", "actionsPlacement", "aiLabel", "metadata", "children", "className", "clickZone", "description", "disabled", "footerActionIcon", "getStarted", "label", "media", "mediaPosition", "onClick", "onKeyDown", "onPrimaryButtonClick", "overflowActions", "overflowAriaLabel", "onSecondaryButtonClick", "pictogram", "primaryButtonDisabled", "primaryButtonHref", "primaryButtonIcon", "primaryButtonKind", "primaryButtonPlacement", "primaryButtonText", "productive", "secondaryButtonDisabled", "secondaryButtonHref", "secondaryButtonIcon", "secondaryButtonKind", "secondaryButtonPlacement", "secondaryButtonText", "slug", "status", "sequence", "title", "titleSize", "iconDescription"],
|
20
20
|
_excluded2 = ["id"],
|
21
21
|
_excluded3 = ["id", "icon", "onClick", "iconDescription", "href"];
|
22
22
|
var componentName = 'Card';
|
@@ -25,6 +25,7 @@ var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
25
25
|
actionIcons = _ref$actionIcons === void 0 ? Object.freeze([]) : _ref$actionIcons,
|
26
26
|
_ref$actionsPlacement = _ref.actionsPlacement,
|
27
27
|
actionsPlacement = _ref$actionsPlacement === void 0 ? 'bottom' : _ref$actionsPlacement,
|
28
|
+
aiLabel = _ref.aiLabel,
|
28
29
|
_ref$metadata = _ref.metadata,
|
29
30
|
metadata = _ref$metadata === void 0 ? Object.freeze([]) : _ref$metadata,
|
30
31
|
children = _ref.children,
|
@@ -166,7 +167,7 @@ var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
166
167
|
var clickable = hasClickEvent && !productive || hasClickEvent && productive && clickZone === 'one';
|
167
168
|
var cardProps = _objectSpread2(_objectSpread2({}, rest), {}, {
|
168
169
|
ref: ref,
|
169
|
-
className: cx(blockClass, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__disabled"), disabled), "".concat(blockClass, "__get-started"), getStarted), "".concat(blockClass, "__productive"), productive), "".concat(blockClass, "__clickable"), clickable), "".concat(blockClass, "__media-left"), mediaPosition === 'left'), "".concat(blockClass, "--has-slug"), !!slug), className)
|
170
|
+
className: cx(blockClass, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__disabled"), disabled), "".concat(blockClass, "__get-started"), getStarted), "".concat(blockClass, "__productive"), productive), "".concat(blockClass, "__clickable"), clickable), "".concat(blockClass, "__media-left"), mediaPosition === 'left'), "".concat(blockClass, "--has-slug"), !!slug), "".concat(blockClass, "--has-ai-label"), !!aiLabel), className)
|
170
171
|
}, clickable && clickableProps);
|
171
172
|
return cardProps;
|
172
173
|
};
|
@@ -182,6 +183,7 @@ var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
182
183
|
var getHeaderProps = function getHeaderProps() {
|
183
184
|
return {
|
184
185
|
actions: actionsPlacement === 'top' ? getActions() : '',
|
186
|
+
aiLabel: aiLabel,
|
185
187
|
noActionIcons: getIcons().length > 0 && actionsPlacement === 'top' ? false : true,
|
186
188
|
actionsPlacement: actionsPlacement,
|
187
189
|
onPrimaryButtonClick: onPrimaryButtonClick,
|
@@ -265,6 +267,10 @@ Card.propTypes = {
|
|
265
267
|
href: PropTypes.string
|
266
268
|
})),
|
267
269
|
actionsPlacement: PropTypes.oneOf(['top', 'bottom']),
|
270
|
+
/**
|
271
|
+
* Optional prop that is intended for any scenario where something is being generated by AI to reinforce AI transparency, accountability, and explainability at the UI level.
|
272
|
+
*/
|
273
|
+
aiLabel: PropTypes.oneOfType([PropTypes.node, PropTypes.bool]),
|
268
274
|
children: PropTypes.node,
|
269
275
|
className: PropTypes.string,
|
270
276
|
clickZone: PropTypes.oneOf(['one', 'two', 'three']),
|
@@ -316,6 +322,7 @@ Card.propTypes = {
|
|
316
322
|
/**
|
317
323
|
* **Experimental:** For all cases a `Slug` component can be provided.
|
318
324
|
* Clickable tiles only accept a boolean value of true and display a hollow slug.
|
325
|
+
* @deprecated please use the `aiLabel` prop
|
319
326
|
*/
|
320
327
|
slug: PropTypes.oneOfType([PropTypes.node, PropTypes.bool]),
|
321
328
|
status: PropTypes.oneOf(['complete', 'incomplete']),
|
@@ -23,7 +23,7 @@ interface CardFooterProps {
|
|
23
23
|
secondaryButtonText?: string;
|
24
24
|
}
|
25
25
|
export declare const CardFooter: {
|
26
|
-
({ actions, disabled, footerActionIcon: FooterActionIcon, hasActions, hasButton, onPrimaryButtonClick, onSecondaryButtonClick, primaryButtonDisabled, primaryButtonHref, primaryButtonIcon, primaryButtonKind, primaryButtonPlacement, primaryButtonText, productive, secondaryButtonDisabled, secondaryButtonHref, secondaryButtonIcon, secondaryButtonKind, secondaryButtonPlacement, secondaryButtonText, }: CardFooterProps):
|
26
|
+
({ actions, disabled, footerActionIcon: FooterActionIcon, hasActions, hasButton, onPrimaryButtonClick, onSecondaryButtonClick, primaryButtonDisabled, primaryButtonHref, primaryButtonIcon, primaryButtonKind, primaryButtonPlacement, primaryButtonText, productive, secondaryButtonDisabled, secondaryButtonHref, secondaryButtonIcon, secondaryButtonKind, secondaryButtonPlacement, secondaryButtonText, }: CardFooterProps): React.JSX.Element;
|
27
27
|
/**@ts-ignore */
|
28
28
|
propTypes: {
|
29
29
|
actions: PropTypes.Requireable<NonNullable<any[] | PropTypes.ReactNodeLike>>;
|
@@ -1,7 +1,11 @@
|
|
1
1
|
import React, { ReactNode } from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
interface CardHeaderProps {
|
4
|
-
actions?: ReactNode
|
4
|
+
actions?: ReactNode;
|
5
|
+
/**
|
6
|
+
* Optional prop that is intended for any scenario where something is being generated by AI to reinforce AI transparency, accountability, and explainability at the UI level.
|
7
|
+
*/
|
8
|
+
aiLabel?: ReactNode | boolean;
|
5
9
|
description?: ReactNode;
|
6
10
|
hasActions?: boolean;
|
7
11
|
/**
|
@@ -25,16 +29,21 @@ interface CardHeaderProps {
|
|
25
29
|
/**
|
26
30
|
* **Experimental:** For all cases a `Slug` component can be provided.
|
27
31
|
* Clickable tiles only accept a boolean value of true and display a hollow slug.
|
32
|
+
* @deprecated please use the `aiLabel` prop
|
28
33
|
*/
|
29
34
|
slug?: ReactNode;
|
30
35
|
title?: ReactNode;
|
31
36
|
titleSize?: 'default' | 'large';
|
32
37
|
}
|
33
38
|
export declare const CardHeader: {
|
34
|
-
({ actions, noActionIcons, onPrimaryButtonClick, onSecondaryButtonClick, primaryButtonIcon, primaryButtonPlacement, primaryButtonText, primaryButtonDisabled, description, hasActions, inClickableCard, label, secondaryButtonDisabled, secondaryButtonHref, secondaryButtonIcon, secondaryButtonPlacement, secondaryButtonText, slug, title, titleSize, }: CardHeaderProps):
|
39
|
+
({ actions, aiLabel, noActionIcons, onPrimaryButtonClick, onSecondaryButtonClick, primaryButtonIcon, primaryButtonPlacement, primaryButtonText, primaryButtonDisabled, description, hasActions, inClickableCard, label, secondaryButtonDisabled, secondaryButtonHref, secondaryButtonIcon, secondaryButtonPlacement, secondaryButtonText, slug, title, titleSize, }: CardHeaderProps): React.JSX.Element;
|
35
40
|
/**@ts-ignore */
|
36
41
|
propTypes: {
|
37
42
|
actions: PropTypes.Requireable<NonNullable<any[] | PropTypes.ReactNodeLike>>;
|
43
|
+
/**
|
44
|
+
* Optional prop that is intended for any scenario where something is being generated by AI to reinforce AI transparency, accountability, and explainability at the UI level.
|
45
|
+
*/
|
46
|
+
aiLabel: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
38
47
|
description: PropTypes.Requireable<NonNullable<object | PropTypes.ReactNodeLike>>;
|
39
48
|
hasActions: PropTypes.Requireable<boolean>;
|
40
49
|
/**
|
@@ -58,6 +67,7 @@ export declare const CardHeader: {
|
|
58
67
|
/**
|
59
68
|
* **Experimental:** For all cases a `Slug` component can be provided.
|
60
69
|
* Clickable tiles only accept a boolean value of true and display a hollow slug.
|
70
|
+
* @deprecated please use the `aiLabel` prop
|
61
71
|
*/
|
62
72
|
slug: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
63
73
|
title: PropTypes.Requireable<NonNullable<object | PropTypes.ReactNodeLike>>;
|
@@ -20,6 +20,7 @@ var defaults = {
|
|
20
20
|
};
|
21
21
|
var CardHeader = function CardHeader(_ref) {
|
22
22
|
var actions = _ref.actions,
|
23
|
+
aiLabel = _ref.aiLabel,
|
23
24
|
noActionIcons = _ref.noActionIcons,
|
24
25
|
onPrimaryButtonClick = _ref.onPrimaryButtonClick,
|
25
26
|
onSecondaryButtonClick = _ref.onSecondaryButtonClick,
|
@@ -47,8 +48,9 @@ var CardHeader = function CardHeader(_ref) {
|
|
47
48
|
var headerClasses = cx(headerClass, _defineProperty(_defineProperty(_defineProperty({}, "".concat(headerClass, "-label-only"), label && !title && !description), "".concat(headerClass, "-has-label"), !!label), "".concat(blockClass, "__title-lg"), titleSize === 'large'));
|
48
49
|
var actionGhostButton = "".concat(blockClass, "__actions-header-ghost-button");
|
49
50
|
var actionGhostButtonClass = cx(actionGhostButton, _defineProperty({}, "".concat(actionGhostButton, "--only"), noActionIcons));
|
50
|
-
var
|
51
|
-
className: "".concat(carbonPrefix, "--slug ").concat(carbonPrefix, "--slug-icon")
|
51
|
+
var hollowAiIcon = /*#__PURE__*/React__default.createElement("svg", {
|
52
|
+
className: "".concat(carbonPrefix, "--slug ").concat(carbonPrefix, "--slug-icon") // NOTE: We cannot change this to ai-label until carbon changes their classnames on their end
|
53
|
+
,
|
52
54
|
width: "24",
|
53
55
|
height: "24",
|
54
56
|
viewBox: "0 0 24 24",
|
@@ -63,12 +65,13 @@ var CardHeader = function CardHeader(_ref) {
|
|
63
65
|
d: "M13.2436 16H11.5996L10.9276 13.864H7.95164L7.29164 16H5.68364L8.49164 7.624H10.4596L13.2436 16ZM10.5436 12.508L9.46364 9.064H9.40364L8.33564 12.508H10.5436ZM17.9341 16H14.1301V14.728H15.2341V8.896H14.1301V7.624H17.9341V8.896H16.8181V14.728H17.9341V16Z",
|
64
66
|
fill: "#161616"
|
65
67
|
})));
|
66
|
-
var
|
67
|
-
if (slug) {
|
68
|
-
if (inClickableCard || typeof slug === 'boolean') {
|
69
|
-
|
68
|
+
var normalizedAiLabel = null;
|
69
|
+
if (aiLabel || slug) {
|
70
|
+
if (inClickableCard || typeof aiLabel === 'boolean' || typeof slug === 'boolean') {
|
71
|
+
normalizedAiLabel = hollowAiIcon;
|
70
72
|
} else {
|
71
|
-
|
73
|
+
var element = aiLabel || slug;
|
74
|
+
normalizedAiLabel = /*#__PURE__*/React__default.cloneElement(element, {
|
72
75
|
size: label && title || title && titleSize === 'large' ? 'sm' : 'xs'
|
73
76
|
});
|
74
77
|
}
|
@@ -76,7 +79,7 @@ var CardHeader = function CardHeader(_ref) {
|
|
76
79
|
return /*#__PURE__*/React__default.createElement("div", {
|
77
80
|
className: headerClasses
|
78
81
|
}, /*#__PURE__*/React__default.createElement("div", {
|
79
|
-
className: cx(["".concat(headerClass, "-container"), _defineProperty({}, "".concat(headerClass, "-container--has-slug"), !!slug), _defineProperty({}, "".concat(headerClass, "-container--has-actions"), !!hasActions), _defineProperty({}, "".concat(headerClass, "-container--large-tile-or-label"), title && (label || titleSize === 'large'))])
|
82
|
+
className: cx(["".concat(headerClass, "-container"), _defineProperty({}, "".concat(headerClass, "-container--has-slug"), !!slug), _defineProperty({}, "".concat(headerClass, "-container--has-ai-label"), !!aiLabel), _defineProperty({}, "".concat(headerClass, "-container--has-actions"), !!hasActions), _defineProperty({}, "".concat(headerClass, "-container--large-tile-or-label"), title && (label || titleSize === 'large'))])
|
80
83
|
}, /*#__PURE__*/React__default.createElement("div", {
|
81
84
|
className: "".concat(blockClass, "__title-container")
|
82
85
|
}, label && /*#__PURE__*/React__default.createElement("p", {
|
@@ -102,11 +105,15 @@ var CardHeader = function CardHeader(_ref) {
|
|
102
105
|
onClick: onPrimaryButtonClick,
|
103
106
|
className: actionGhostButtonClass,
|
104
107
|
disabled: primaryButtonDisabled
|
105
|
-
}, primaryButtonText)),
|
108
|
+
}, primaryButtonText)), normalizedAiLabel));
|
106
109
|
};
|
107
110
|
/**@ts-ignore */
|
108
111
|
CardHeader.propTypes = {
|
109
112
|
actions: PropTypes.oneOfType([PropTypes.array, PropTypes.node]),
|
113
|
+
/**
|
114
|
+
* Optional prop that is intended for any scenario where something is being generated by AI to reinforce AI transparency, accountability, and explainability at the UI level.
|
115
|
+
*/
|
116
|
+
aiLabel: PropTypes.oneOfType([PropTypes.node, PropTypes.bool]),
|
110
117
|
description: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.node]),
|
111
118
|
hasActions: PropTypes.bool,
|
112
119
|
/**
|
@@ -130,6 +137,7 @@ CardHeader.propTypes = {
|
|
130
137
|
/**
|
131
138
|
* **Experimental:** For all cases a `Slug` component can be provided.
|
132
139
|
* Clickable tiles only accept a boolean value of true and display a hollow slug.
|
140
|
+
* @deprecated please use the `aiLabel` prop
|
133
141
|
*/
|
134
142
|
slug: PropTypes.oneOfType([PropTypes.node, PropTypes.bool]),
|
135
143
|
title: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.node]),
|
@@ -4,13 +4,14 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
/**
|
8
9
|
* The combo button item provides additional actions a user can take.
|
9
10
|
*/
|
10
11
|
declare const ComboButtonItem: {
|
11
12
|
({ ...rest }: {
|
12
13
|
[x: string]: any;
|
13
|
-
}):
|
14
|
+
}): React.JSX.Element;
|
14
15
|
propTypes: {
|
15
16
|
/** Provide the contents of the `ComboButtonItem` */
|
16
17
|
children: import("prop-types").Validator<NonNullable<import("prop-types").ReactNodeLike>>;
|
@@ -34,7 +34,7 @@ interface ConditionBlockProps {
|
|
34
34
|
isLastCondition: (index: number, conditions: (ConditionGroup | Condition)[]) => void;
|
35
35
|
}
|
36
36
|
declare const ConditionBlock: {
|
37
|
-
(props: ConditionBlockProps):
|
37
|
+
(props: ConditionBlockProps): React.JSX.Element;
|
38
38
|
propTypes: {
|
39
39
|
/**
|
40
40
|
* callback to add a new condition
|
@@ -4,6 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
import PropTypes from 'prop-types';
|
8
9
|
import { Action, Option } from '../ConditionBuilder.types';
|
9
10
|
interface ConditionBuilderActionsProps {
|
@@ -11,7 +12,7 @@ interface ConditionBuilderActionsProps {
|
|
11
12
|
className?: string;
|
12
13
|
}
|
13
14
|
declare const ConditionBuilderActions: {
|
14
|
-
({ actions, className, }: ConditionBuilderActionsProps):
|
15
|
+
({ actions, className, }: ConditionBuilderActionsProps): React.JSX.Element;
|
15
16
|
propTypes: {
|
16
17
|
/**
|
17
18
|
* optional array of object that give the list of actions.
|
@@ -4,6 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
import PropTypes from 'prop-types';
|
8
9
|
interface ConditionBuilderAddProps {
|
9
10
|
className?: string;
|
@@ -18,7 +19,7 @@ interface ConditionBuilderAddProps {
|
|
18
19
|
tabIndex?: number;
|
19
20
|
}
|
20
21
|
declare const ConditionBuilderAdd: {
|
21
|
-
({ className, onClick, addConditionSubGroupHandler, showConditionSubGroupPreviewHandler, hideConditionSubGroupPreviewHandler, showConditionPreviewHandler, hideConditionPreviewHandler, enableSubGroup, buttonLabel, tabIndex, }: ConditionBuilderAddProps):
|
22
|
+
({ className, onClick, addConditionSubGroupHandler, showConditionSubGroupPreviewHandler, hideConditionSubGroupPreviewHandler, showConditionPreviewHandler, hideConditionPreviewHandler, enableSubGroup, buttonLabel, tabIndex, }: ConditionBuilderAddProps): React.JSX.Element;
|
22
23
|
propTypes: {
|
23
24
|
/**
|
24
25
|
* handler for hiding sub group preview
|
@@ -27,7 +27,7 @@ interface ConditionBuilderButtonProps {
|
|
27
27
|
tabIndex?: number;
|
28
28
|
}
|
29
29
|
export declare const ConditionBuilderButton: {
|
30
|
-
({ className, label, hideLabel, tooltipAlign, renderIcon: Icon, onClick, showToolTip, wrapperProps, onBlur, onFocus, onMouseEnter, onMouseLeave, isInvalid, wrapperClassName, tabIndex, ...rest }: ConditionBuilderButtonProps):
|
30
|
+
({ className, label, hideLabel, tooltipAlign, renderIcon: Icon, onClick, showToolTip, wrapperProps, onBlur, onFocus, onMouseEnter, onMouseLeave, isInvalid, wrapperClassName, tabIndex, ...rest }: ConditionBuilderButtonProps): React.JSX.Element;
|
31
31
|
propTypes: {
|
32
32
|
/**
|
33
33
|
* Provide an optional class to be applied to the containing node.
|
@@ -4,6 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
import PropTypes from 'prop-types';
|
8
9
|
interface ConditionConnectorProps {
|
9
10
|
operator: string;
|
@@ -11,7 +12,7 @@ interface ConditionConnectorProps {
|
|
11
12
|
onChange?: (op: string) => void;
|
12
13
|
}
|
13
14
|
declare const ConditionConnector: {
|
14
|
-
({ operator, className, onChange, ...rest }: ConditionConnectorProps):
|
15
|
+
({ operator, className, onChange, ...rest }: ConditionConnectorProps): React.JSX.Element;
|
15
16
|
propTypes: {
|
16
17
|
/**
|
17
18
|
* Provide an optional class to be applied to the containing node.
|
@@ -4,6 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
import PropTypes from 'prop-types';
|
8
9
|
import { Action, ConditionBuilderState, InitialState } from '../ConditionBuilder.types';
|
9
10
|
interface ConditionBuilderContentProps {
|
@@ -14,7 +15,7 @@ interface ConditionBuilderContentProps {
|
|
14
15
|
actions?: Action[];
|
15
16
|
}
|
16
17
|
declare const ConditionBuilderContent: {
|
17
|
-
({ startConditionLabel, getConditionState, getActionsState, initialState, actions, }: ConditionBuilderContentProps):
|
18
|
+
({ startConditionLabel, getConditionState, getActionsState, initialState, actions, }: ConditionBuilderContentProps): React.JSX.Element;
|
18
19
|
propTypes: {
|
19
20
|
/**
|
20
21
|
* optional array of object that give the list of actions.
|
@@ -27,7 +27,7 @@ interface ConditionBuilderItemProps extends PropsWithChildren {
|
|
27
27
|
onBlur?: React.FocusEventHandler<HTMLButtonElement>;
|
28
28
|
}
|
29
29
|
export declare const ConditionBuilderItem: {
|
30
|
-
({ children, className, label, renderIcon, title, type, showToolTip, condition, popOverClassName, config, renderChildren, onChange, ...rest }: ConditionBuilderItemProps):
|
30
|
+
({ children, className, label, renderIcon, title, type, showToolTip, condition, popOverClassName, config, renderChildren, onChange, ...rest }: ConditionBuilderItemProps): React.JSX.Element;
|
31
31
|
propTypes: {
|
32
32
|
/**
|
33
33
|
* provide the contents of the popover
|
@@ -4,13 +4,14 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
import PropTypes from 'prop-types';
|
8
9
|
export declare const ConditionBuilderItemDate: {
|
9
10
|
({ conditionState, onChange, parentRef, }: {
|
10
11
|
conditionState: any;
|
11
12
|
onChange: any;
|
12
13
|
parentRef: any;
|
13
|
-
}):
|
14
|
+
}): React.JSX.Element;
|
14
15
|
propTypes: {
|
15
16
|
/**
|
16
17
|
* current condition object
|
@@ -4,6 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
import PropTypes from 'prop-types';
|
8
9
|
import { Condition, PropertyConfigNumber } from '../../ConditionBuilder.types';
|
9
10
|
interface ConditionBuilderItemNumberProps {
|
@@ -12,7 +13,7 @@ interface ConditionBuilderItemNumberProps {
|
|
12
13
|
onChange: (value: string) => void;
|
13
14
|
}
|
14
15
|
export declare const ConditionBuilderItemNumber: {
|
15
|
-
({ conditionState, config, onChange, }: ConditionBuilderItemNumberProps):
|
16
|
+
({ conditionState, config, onChange, }: ConditionBuilderItemNumberProps): React.JSX.Element;
|
16
17
|
propTypes: {
|
17
18
|
/**
|
18
19
|
* current condition object
|
@@ -4,6 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
import PropTypes from 'prop-types';
|
8
9
|
import { PropertyConfigOption } from '../../ConditionBuilder.types';
|
9
10
|
interface ItemOptionProps {
|
@@ -17,7 +18,7 @@ interface ItemOptionProps {
|
|
17
18
|
onChange: (value: string, e: Event) => void;
|
18
19
|
}
|
19
20
|
export declare const ItemOption: {
|
20
|
-
({ conditionState, config, onChange, }: ItemOptionProps):
|
21
|
+
({ conditionState, config, onChange, }: ItemOptionProps): React.JSX.Element | undefined;
|
21
22
|
propTypes: {
|
22
23
|
/**
|
23
24
|
* current condition object
|
@@ -4,6 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
import PropTypes from 'prop-types';
|
8
9
|
import { Condition, PropertyConfigOption } from '../../ConditionBuilder.types';
|
9
10
|
interface ItemOptionForValueFieldProps {
|
@@ -14,7 +15,7 @@ interface ItemOptionForValueFieldProps {
|
|
14
15
|
onChange: (value: any, e?: Event) => void;
|
15
16
|
}
|
16
17
|
export declare const ItemOptionForValueField: {
|
17
|
-
({ conditionState, config, onChange, }: ItemOptionForValueFieldProps):
|
18
|
+
({ conditionState, config, onChange, }: ItemOptionForValueFieldProps): React.JSX.Element;
|
18
19
|
propTypes: {
|
19
20
|
/**
|
20
21
|
* current condition object
|
@@ -4,6 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
import PropTypes from 'prop-types';
|
8
9
|
import { Condition, PropertyConfigText, PropertyConfigTextArea } from '../../ConditionBuilder.types';
|
9
10
|
interface ConditionBuilderItemTextProps {
|
@@ -13,7 +14,7 @@ interface ConditionBuilderItemTextProps {
|
|
13
14
|
type: 'textarea' | 'text';
|
14
15
|
}
|
15
16
|
export declare const ConditionBuilderItemText: {
|
16
|
-
({ conditionState, onChange, config, type, }: ConditionBuilderItemTextProps):
|
17
|
+
({ conditionState, onChange, config, type, }: ConditionBuilderItemTextProps): React.JSX.Element;
|
17
18
|
propTypes: {
|
18
19
|
/**
|
19
20
|
* current condition object
|
@@ -4,6 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
import PropTypes from 'prop-types';
|
8
9
|
import { PropertyConfigTime } from '../../ConditionBuilder.types';
|
9
10
|
interface ConditionBuilderItemTime {
|
@@ -11,7 +12,7 @@ interface ConditionBuilderItemTime {
|
|
11
12
|
config: PropertyConfigTime['config'];
|
12
13
|
}
|
13
14
|
export declare const ConditionBuilderItemTime: {
|
14
|
-
({ onChange, config, }: ConditionBuilderItemTime):
|
15
|
+
({ onChange, config, }: ConditionBuilderItemTime): React.JSX.Element;
|
15
16
|
propTypes: {
|
16
17
|
/**
|
17
18
|
* current config object that this property is part of
|