@carbon/ibm-products 2.36.0 → 2.38.0-alpha.5
Sign up to get free protection for your applications and to get access to all the features.
- package/css/index-full-carbon.css +5404 -5117
- 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 +4 -4
- 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 +820 -61
- 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 +329 -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/_virtual/_rollupPluginBabelHelpers.js +9 -10
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.d.ts +3 -1
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +8 -2
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +21 -0
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +261 -0
- package/es/components/ConditionBuilder/ConditionBuilder.js +45 -16
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +12 -0
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +40 -0
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +22 -0
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +74 -0
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +18 -1
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +90 -42
- package/es/components/ConditionBuilder/ConditionBuilderContext/{DataTreeContext.d.ts → ConditionBuilderProvider.d.ts} +5 -2
- package/es/components/ConditionBuilder/ConditionBuilderContext/{DataTreeContext.js → ConditionBuilderProvider.js} +27 -8
- package/es/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.d.ts +22 -0
- package/es/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.js +112 -0
- package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.d.ts +31 -0
- package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +40 -0
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +28 -0
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +151 -0
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +11 -0
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +59 -0
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.d.ts +13 -0
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +52 -0
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ConditionBuilderItemOption.d.ts +13 -0
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ConditionBuilderItemOption.js +162 -0
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +11 -0
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +40 -0
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.d.ts +11 -0
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +82 -0
- package/es/components/ConditionBuilder/ConditionConnector/ConditionConnector.d.ts +15 -0
- package/es/components/ConditionBuilder/ConditionConnector/ConditionConnector.js +85 -0
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +24 -0
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +145 -0
- package/es/components/ConditionBuilder/utils/util.d.ts +4 -0
- package/es/components/ConditionBuilder/utils/util.js +16 -0
- package/es/components/CreateTearsheet/CreateTearsheet.d.ts +106 -4
- package/es/components/CreateTearsheet/CreateTearsheet.js +12 -32
- package/es/components/Datagrid/Datagrid/DatagridContent.d.ts +1 -0
- package/es/components/Datagrid/Datagrid/DatagridContent.js +1 -0
- package/es/components/Datagrid/useParentDimensions.js +1 -1
- package/es/components/Datagrid/useSkeletonRows.d.ts +1 -1
- package/es/components/Datagrid/useSkeletonRows.js +11 -3
- package/es/components/EditUpdateCards/EditUpdateCards.d.ts +104 -2
- package/es/components/EditUpdateCards/EditUpdateCards.js +3 -0
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +61 -2
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -3
- package/es/components/ExpressiveCard/ExpressiveCard.d.ts +97 -2
- package/es/components/ExpressiveCard/ExpressiveCard.js +4 -0
- package/es/components/InlineTip/InlineTipButton.d.ts +21 -2
- package/es/components/InterstitialScreen/InterstitialScreen.d.ts +100 -2
- package/es/components/InterstitialScreen/InterstitialScreen.js +25 -14
- package/es/components/Nav/NavItem.js +1 -1
- package/es/components/NotificationsPanel/NotificationsPanel.js +5 -6
- package/es/components/PageHeader/PageHeader.js +12 -3
- package/es/components/SidePanel/SidePanel.js +1 -1
- package/es/components/SimpleHeader/SimpleHeader.d.ts +1 -5
- package/es/components/SimpleHeader/SimpleHeader.js +2 -4
- package/es/components/Tearsheet/TearsheetNarrow.d.ts +4 -13
- package/es/components/Tearsheet/TearsheetShell.d.ts +119 -10
- package/es/components/Tearsheet/TearsheetShell.js +18 -8
- package/es/components/WebTerminal/WebTerminal.d.ts +46 -2
- package/es/components/WebTerminal/WebTerminal.js +2 -2
- package/es/global/js/hooks/usePrefersReducedMotion.d.ts +2 -0
- package/es/global/js/hooks/usePrefersReducedMotion.js +28 -0
- package/es/global/js/utils/Wrap.d.ts +31 -2
- package/es/global/js/utils/Wrap.js +7 -9
- package/es/global/js/utils/getNodeTextContent.d.ts +1 -1
- package/es/global/js/utils/getNodeTextContent.js +1 -1
- package/es/global/js/utils/window.d.ts +2 -0
- package/es/global/js/utils/window.js +12 -0
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-9.js +2780 -0
- package/lib/_virtual/_rollupPluginBabelHelpers.js +9 -10
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.d.ts +3 -1
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +8 -2
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +21 -0
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +270 -0
- package/lib/components/ConditionBuilder/ConditionBuilder.js +46 -17
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +12 -0
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +48 -0
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +22 -0
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +83 -0
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +18 -1
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +90 -42
- package/lib/components/ConditionBuilder/ConditionBuilderContext/{DataTreeContext.d.ts → ConditionBuilderProvider.d.ts} +5 -2
- package/lib/components/ConditionBuilder/ConditionBuilderContext/{DataTreeContext.js → ConditionBuilderProvider.js} +27 -8
- package/lib/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.d.ts +22 -0
- package/lib/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.js +121 -0
- package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.d.ts +31 -0
- package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +44 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +28 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +159 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +11 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +67 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.d.ts +13 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +60 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ConditionBuilderItemOption.d.ts +13 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ConditionBuilderItemOption.js +170 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +11 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +48 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.d.ts +11 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +90 -0
- package/lib/components/ConditionBuilder/ConditionConnector/ConditionConnector.d.ts +15 -0
- package/lib/components/ConditionBuilder/ConditionConnector/ConditionConnector.js +93 -0
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +24 -0
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +153 -0
- package/lib/components/ConditionBuilder/utils/util.d.ts +4 -0
- package/lib/components/ConditionBuilder/utils/util.js +20 -0
- package/lib/components/CreateTearsheet/CreateTearsheet.d.ts +106 -4
- package/lib/components/CreateTearsheet/CreateTearsheet.js +12 -32
- package/lib/components/Datagrid/Datagrid/DatagridContent.d.ts +1 -0
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +1 -0
- package/lib/components/Datagrid/useParentDimensions.js +1 -1
- package/lib/components/Datagrid/useSkeletonRows.d.ts +1 -1
- package/lib/components/Datagrid/useSkeletonRows.js +11 -3
- package/lib/components/EditUpdateCards/EditUpdateCards.d.ts +104 -2
- package/lib/components/EditUpdateCards/EditUpdateCards.js +3 -0
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +61 -2
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -3
- package/lib/components/ExpressiveCard/ExpressiveCard.d.ts +97 -2
- package/lib/components/ExpressiveCard/ExpressiveCard.js +4 -0
- package/lib/components/InlineTip/InlineTipButton.d.ts +21 -2
- package/lib/components/InterstitialScreen/InterstitialScreen.d.ts +100 -2
- package/lib/components/InterstitialScreen/InterstitialScreen.js +24 -13
- package/lib/components/Nav/NavItem.js +2 -2
- package/lib/components/NotificationsPanel/NotificationsPanel.js +5 -6
- package/lib/components/PageHeader/PageHeader.js +11 -2
- package/lib/components/SidePanel/SidePanel.js +1 -1
- package/lib/components/SimpleHeader/SimpleHeader.d.ts +1 -5
- package/lib/components/SimpleHeader/SimpleHeader.js +2 -4
- package/lib/components/Tearsheet/TearsheetNarrow.d.ts +4 -13
- package/lib/components/Tearsheet/TearsheetShell.d.ts +119 -10
- package/lib/components/Tearsheet/TearsheetShell.js +16 -6
- package/lib/components/WebTerminal/WebTerminal.d.ts +46 -2
- package/lib/components/WebTerminal/WebTerminal.js +2 -2
- package/lib/global/js/hooks/usePrefersReducedMotion.d.ts +2 -0
- package/lib/global/js/hooks/usePrefersReducedMotion.js +32 -0
- package/lib/global/js/utils/Wrap.d.ts +31 -2
- package/lib/global/js/utils/Wrap.js +7 -9
- package/lib/global/js/utils/getNodeTextContent.d.ts +1 -1
- package/lib/global/js/utils/getNodeTextContent.js +1 -1
- package/lib/global/js/utils/window.d.ts +2 -0
- package/lib/global/js/utils/window.js +16 -0
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-9.js +2912 -0
- package/package.json +6 -4
- package/scss/components/CoachmarkOverlayElements/_coachmark-overlay-elements.scss +1 -1
- package/scss/components/ConditionBuilder/_condition-builder.scss +26 -0
- package/scss/components/ConditionBuilder/styles/_conditionBuilderCondition.scss +46 -0
- package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +194 -0
- package/scss/components/ConditionBuilder/styles/_index.scss +2 -0
- package/scss/components/Guidebanner/_guidebanner.scss +3 -0
- package/scss/components/InterstitialScreen/_interstitial-screen.scss +1 -6
- package/scss/components/Tearsheet/_tearsheet.scss +3 -1
- package/telemetry.yml +939 -683
- package/es/components/ConditionBuilder/assets/sampleInput.d.ts +0 -58
- package/es/global/js/utils/keyboardNavigation.d.ts +0 -27
- package/es/global/js/utils/keyboardNavigation.js +0 -33
- package/es/global/js/utils/wrapFocus.d.ts +0 -25
- package/es/global/js/utils/wrapFocus.js +0 -68
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-8.js +0 -3004
- package/lib/components/ConditionBuilder/assets/sampleInput.d.ts +0 -58
- package/lib/global/js/utils/keyboardNavigation.d.ts +0 -27
- package/lib/global/js/utils/keyboardNavigation.js +0 -39
- package/lib/global/js/utils/wrapFocus.d.ts +0 -25
- package/lib/global/js/utils/wrapFocus.js +0 -73
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-8.js +0 -3136
@@ -0,0 +1,145 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2020, 2024
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
|
8
|
+
import { objectSpread2 as _objectSpread2, toConsumableArray as _toConsumableArray } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
9
|
+
import React__default from 'react';
|
10
|
+
import ConditionBlock from '../ConditionBlock/ConditionBlock.js';
|
11
|
+
import PropTypes from '../../../node_modules/prop-types/index.js';
|
12
|
+
import { blockClass, translateWithId } from '../ConditionBuilderContext/DataConfigs.js';
|
13
|
+
|
14
|
+
/**
|
15
|
+
*
|
16
|
+
* state - this is the current group that is being rendered . This can be a inner group or outer group
|
17
|
+
* All the inner components of group are called from here.
|
18
|
+
* @returns
|
19
|
+
*/
|
20
|
+
var ConditionGroupBuilder = function ConditionGroupBuilder(_ref) {
|
21
|
+
var _state$conditions;
|
22
|
+
var state = _ref.state,
|
23
|
+
aria = _ref.aria,
|
24
|
+
onRemove = _ref.onRemove,
|
25
|
+
onChange = _ref.onChange,
|
26
|
+
conditionBuilderRef = _ref.conditionBuilderRef;
|
27
|
+
var onRemoveHandler = function onRemoveHandler(conditionIndex, e) {
|
28
|
+
if (state.conditions.length > 1) {
|
29
|
+
onChange(_objectSpread2(_objectSpread2({}, state), {}, {
|
30
|
+
conditions: state.conditions.filter(function (condition, cIndex) {
|
31
|
+
return conditionIndex !== cIndex;
|
32
|
+
})
|
33
|
+
}));
|
34
|
+
handleFocusOnClose(e);
|
35
|
+
} else {
|
36
|
+
onRemove();
|
37
|
+
}
|
38
|
+
};
|
39
|
+
var onChangeHandler = function onChangeHandler(updatedConditions, conditionIndex) {
|
40
|
+
onChange(_objectSpread2(_objectSpread2({}, state), {}, {
|
41
|
+
conditions: state.conditions.map(function (condition, cIndex) {
|
42
|
+
return conditionIndex === cIndex ? updatedConditions : condition;
|
43
|
+
})
|
44
|
+
}));
|
45
|
+
};
|
46
|
+
var addConditionHandler = function addConditionHandler(conditionIndex) {
|
47
|
+
onChange(_objectSpread2(_objectSpread2({}, state), {}, {
|
48
|
+
conditions: [].concat(_toConsumableArray(state.conditions.slice(0, conditionIndex + 1)), [{
|
49
|
+
property: undefined,
|
50
|
+
operator: '',
|
51
|
+
value: '',
|
52
|
+
popoverToOpen: 'propertyField'
|
53
|
+
}], _toConsumableArray(state.conditions.slice(conditionIndex + 1)))
|
54
|
+
}));
|
55
|
+
};
|
56
|
+
var handleFocusOnClose = function handleFocusOnClose(e) {
|
57
|
+
var _e$currentTarget;
|
58
|
+
var previousClose = (_e$currentTarget = e.currentTarget) === null || _e$currentTarget === void 0 || (_e$currentTarget = _e$currentTarget.closest('[role="row"]')) === null || _e$currentTarget === void 0 || (_e$currentTarget = _e$currentTarget.previousSibling) === null || _e$currentTarget === void 0 ? void 0 : _e$currentTarget.querySelector('[data-name="closeCondition"]');
|
59
|
+
if (previousClose) {
|
60
|
+
previousClose.focus();
|
61
|
+
}
|
62
|
+
};
|
63
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
64
|
+
className: " ".concat(blockClass, "__condition-builder__group eachGroup")
|
65
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
66
|
+
className: "".concat(blockClass, "__condition-wrapper"),
|
67
|
+
role: "grid",
|
68
|
+
"aria-label": translateWithId('condition_builder_group')
|
69
|
+
}, state === null || state === void 0 || (_state$conditions = state.conditions) === null || _state$conditions === void 0 ? void 0 : _state$conditions.map(function (eachCondition, conditionIndex) {
|
70
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
71
|
+
key: conditionIndex
|
72
|
+
}, eachCondition.conditions && /*#__PURE__*/React__default.createElement(ConditionGroupBuilder, {
|
73
|
+
aria: {
|
74
|
+
level: aria.level + 1,
|
75
|
+
posinset: conditionIndex + 1,
|
76
|
+
setsize: state.conditions.length
|
77
|
+
},
|
78
|
+
state: eachCondition,
|
79
|
+
onChange: function onChange(updatedConditions) {
|
80
|
+
onChangeHandler(updatedConditions, conditionIndex);
|
81
|
+
},
|
82
|
+
onRemove: function onRemove(e) {
|
83
|
+
onRemoveHandler(conditionIndex, e);
|
84
|
+
},
|
85
|
+
conditionBuilderRef: conditionBuilderRef,
|
86
|
+
key: conditionIndex
|
87
|
+
}), !eachCondition.conditions && /*#__PURE__*/React__default.createElement(ConditionBlock, {
|
88
|
+
key: conditionIndex,
|
89
|
+
conjunction: conditionIndex > 0 ? state.groupOperator : undefined,
|
90
|
+
aria: {
|
91
|
+
level: aria.level + 1,
|
92
|
+
posinset: conditionIndex + 1,
|
93
|
+
setsize: state.conditions.length
|
94
|
+
},
|
95
|
+
isStatement: conditionIndex == 0,
|
96
|
+
state: eachCondition,
|
97
|
+
group: state,
|
98
|
+
conditionIndex: conditionIndex,
|
99
|
+
className: "".concat(blockClass, "__gap ").concat(blockClass, "__gap-bottom"),
|
100
|
+
onChange: function onChange(updatedConditions) {
|
101
|
+
onChangeHandler(updatedConditions, conditionIndex);
|
102
|
+
},
|
103
|
+
addConditionHandler: addConditionHandler,
|
104
|
+
onRemove: function onRemove(e) {
|
105
|
+
onRemoveHandler(conditionIndex, e);
|
106
|
+
},
|
107
|
+
onConnectorOperatorChange: function onConnectorOperatorChange(op) {
|
108
|
+
onChange(_objectSpread2(_objectSpread2({}, state), {}, {
|
109
|
+
groupOperator: op
|
110
|
+
}));
|
111
|
+
},
|
112
|
+
onStatementChange: function onStatementChange(updatedStatement) {
|
113
|
+
onChange(_objectSpread2(_objectSpread2({}, state), {}, {
|
114
|
+
statement: updatedStatement
|
115
|
+
}));
|
116
|
+
}
|
117
|
+
}));
|
118
|
+
})));
|
119
|
+
};
|
120
|
+
var ConditionGroupBuilder$1 = ConditionGroupBuilder;
|
121
|
+
ConditionGroupBuilder.propTypes = {
|
122
|
+
/**
|
123
|
+
* object contains the aria attributes
|
124
|
+
*/
|
125
|
+
aria: PropTypes.object,
|
126
|
+
/**
|
127
|
+
* ref of condition builder
|
128
|
+
*/
|
129
|
+
conditionBuilderRef: PropTypes.object,
|
130
|
+
/**
|
131
|
+
|
132
|
+
* callback to update the current condition of the state tree
|
133
|
+
*/
|
134
|
+
onChange: PropTypes.func,
|
135
|
+
/**
|
136
|
+
* call back to remove the particular group from the state tree
|
137
|
+
*/
|
138
|
+
onRemove: PropTypes.func,
|
139
|
+
/**
|
140
|
+
* state defines the current group
|
141
|
+
*/
|
142
|
+
state: PropTypes.object
|
143
|
+
};
|
144
|
+
|
145
|
+
export { ConditionGroupBuilder$1 as default };
|
@@ -0,0 +1,4 @@
|
|
1
|
+
export function focusThisField(e: any): void;
|
2
|
+
export function focusThisItem(currentElement: any): void;
|
3
|
+
export function traverseClockVise(eachElem: any, index: any, allElements: any, rotate: any, trapFocus: any): void;
|
4
|
+
export function traverseReverse(eachElem: any, index: any, allElements: any, rotate: any, trapFocus: any): void;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2020, 2024
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
|
8
|
+
var focusThisField = function focusThisField(e) {
|
9
|
+
setTimeout(function () {
|
10
|
+
var _e$target$closest, _e$target$closest2;
|
11
|
+
(_e$target$closest = e.target.closest('[role="gridcell"]')) === null || _e$target$closest === void 0 || (_e$target$closest = _e$target$closest.querySelector('button')) === null || _e$target$closest === void 0 || _e$target$closest.click();
|
12
|
+
(_e$target$closest2 = e.target.closest('[role="gridcell"]')) === null || _e$target$closest2 === void 0 || (_e$target$closest2 = _e$target$closest2.querySelector('button')) === null || _e$target$closest2 === void 0 || _e$target$closest2.focus();
|
13
|
+
}, 0);
|
14
|
+
};
|
15
|
+
|
16
|
+
export { focusThisField };
|
@@ -1,4 +1,106 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2021, 2022
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
import React, { ReactNode, PropsWithChildren, Dispatch, SetStateAction } from 'react';
|
8
|
+
export interface StepsContextType {
|
9
|
+
currentStep: number;
|
10
|
+
setIsDisabled: Dispatch<SetStateAction<boolean>>;
|
11
|
+
setOnPrevious: (fn: any) => void;
|
12
|
+
setOnNext: (fn: any) => void;
|
13
|
+
setOnMount: (fn: any) => void;
|
14
|
+
setStepData: Dispatch<SetStateAction<Step[]>>;
|
15
|
+
stepData: Step[];
|
16
|
+
}
|
17
|
+
export declare const StepsContext: React.Context<StepsContextType | null>;
|
18
|
+
export declare const StepNumberContext: React.Context<number>;
|
19
|
+
interface CreateTearsheetProps extends PropsWithChildren {
|
20
|
+
/**
|
21
|
+
* The back button text
|
22
|
+
*/
|
23
|
+
backButtonText: string;
|
24
|
+
/**
|
25
|
+
* The cancel button text
|
26
|
+
*/
|
27
|
+
cancelButtonText: string;
|
28
|
+
/**
|
29
|
+
* The main content of the tearsheet
|
30
|
+
*/
|
31
|
+
/**
|
32
|
+
* An optional class or classes to be added to the outermost element.
|
33
|
+
*/
|
34
|
+
className?: string;
|
35
|
+
/**
|
36
|
+
* A description of the flow, displayed in the header area of the tearsheet.
|
37
|
+
*/
|
38
|
+
description?: ReactNode;
|
39
|
+
/**
|
40
|
+
* Specifies elements to focus on first on render.
|
41
|
+
*/
|
42
|
+
firstFocusElement?: string;
|
43
|
+
/**
|
44
|
+
* Used to set the size of the influencer
|
45
|
+
*/
|
46
|
+
influencerWidth?: 'narrow' | 'wide';
|
47
|
+
/**
|
48
|
+
* This can be used to open the component to a step other than the first step.
|
49
|
+
* For example, a create flow was previously in progress, data was saved, and
|
50
|
+
* is now being completed.
|
51
|
+
*/
|
52
|
+
initialStep?: number;
|
53
|
+
/**
|
54
|
+
* A label for the tearsheet, displayed in the header area of the tearsheet
|
55
|
+
* to maintain context for the tearsheet (e.g. as the title changes from page
|
56
|
+
* to page of a multi-page task).
|
57
|
+
*/
|
58
|
+
label?: ReactNode;
|
59
|
+
/**
|
60
|
+
* The next button text
|
61
|
+
*/
|
62
|
+
nextButtonText: string;
|
63
|
+
/**
|
64
|
+
* An optional handler that is called when the user closes the tearsheet (by
|
65
|
+
* clicking the close button, if enabled, or clicking outside, if enabled).
|
66
|
+
* Returning `false` here prevents the modal from closing.
|
67
|
+
*/
|
68
|
+
onClose?: () => void;
|
69
|
+
/**
|
70
|
+
* Specify a handler for submitting the multi step tearsheet (final step).
|
71
|
+
* This function can _optionally_ return a promise that is either resolved or rejected and the CreateTearsheet will handle the submitting state of the create button.
|
72
|
+
*/
|
73
|
+
onRequestSubmit: () => void;
|
74
|
+
/**
|
75
|
+
* Specifies whether the tearsheet is currently open.
|
76
|
+
*/
|
77
|
+
open?: boolean;
|
78
|
+
/**
|
79
|
+
* **Experimental:** Provide a `Slug` component to be rendered inside the `Tearsheet` component
|
80
|
+
*/
|
81
|
+
slug?: ReactNode;
|
82
|
+
/**
|
83
|
+
* The submit button text
|
84
|
+
*/
|
85
|
+
submitButtonText: string;
|
86
|
+
/**
|
87
|
+
* The main title of the tearsheet, displayed in the header area.
|
88
|
+
*/
|
89
|
+
title?: ReactNode;
|
90
|
+
/**
|
91
|
+
* The position of the top of tearsheet in the viewport. The 'normal'
|
92
|
+
* position (the default) is a short distance down from the top of the
|
93
|
+
* viewport, leaving room at the top for a global header bar to show through
|
94
|
+
* from below. The 'lower' position provides a little extra room at the top
|
95
|
+
* to allow an action bar navigation or breadcrumbs to also show through.
|
96
|
+
*/
|
97
|
+
verticalPosition?: 'normal' | 'lower';
|
98
|
+
}
|
99
|
+
interface Step {
|
100
|
+
introStep?: boolean;
|
101
|
+
secondaryLabel?: string;
|
102
|
+
shouldIncludeStep?: boolean;
|
103
|
+
title?: string;
|
104
|
+
}
|
105
|
+
export declare let CreateTearsheet: React.ForwardRefExoticComponent<CreateTearsheetProps & React.RefAttributes<HTMLDivElement>>;
|
106
|
+
export {};
|
@@ -10,7 +10,6 @@ import React__default, { forwardRef, useState, useRef, useEffect, createContext
|
|
10
10
|
import PropTypes from '../../node_modules/prop-types/index.js';
|
11
11
|
import cx from 'classnames';
|
12
12
|
import { Form } from '@carbon/react';
|
13
|
-
import wrapFocus from '../../global/js/utils/wrapFocus.js';
|
14
13
|
import { TearsheetShell } from '../Tearsheet/TearsheetShell.js';
|
15
14
|
import { pkg } from '../../settings.js';
|
16
15
|
import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
|
@@ -30,17 +29,12 @@ var blockClass = "".concat(pkg.prefix, "--tearsheet-create");
|
|
30
29
|
// This is a general context for the steps container
|
31
30
|
// containing information about the state of the container
|
32
31
|
// and providing some callback methods for steps to use
|
32
|
+
|
33
33
|
var StepsContext = /*#__PURE__*/createContext(null);
|
34
34
|
|
35
35
|
// This is a context supplied separately to each step in the container
|
36
36
|
// to let it know what number it is in the sequence of steps
|
37
37
|
var StepNumberContext = /*#__PURE__*/createContext(-1);
|
38
|
-
|
39
|
-
// Default values for props
|
40
|
-
var defaults = {
|
41
|
-
verticalPosition: 'normal',
|
42
|
-
influencerWidth: 'narrow'
|
43
|
-
};
|
44
38
|
var CreateTearsheet = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
45
39
|
var backButtonText = _ref.backButtonText,
|
46
40
|
cancelButtonText = _ref.cancelButtonText,
|
@@ -48,7 +42,7 @@ var CreateTearsheet = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
48
42
|
className = _ref.className,
|
49
43
|
description = _ref.description,
|
50
44
|
_ref$influencerWidth = _ref.influencerWidth,
|
51
|
-
influencerWidth = _ref$influencerWidth === void 0 ?
|
45
|
+
influencerWidth = _ref$influencerWidth === void 0 ? 'narrow' : _ref$influencerWidth,
|
52
46
|
initialStep = _ref.initialStep,
|
53
47
|
label = _ref.label,
|
54
48
|
nextButtonText = _ref.nextButtonText,
|
@@ -60,7 +54,7 @@ var CreateTearsheet = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
60
54
|
submitButtonText = _ref.submitButtonText,
|
61
55
|
title = _ref.title,
|
62
56
|
_ref$verticalPosition = _ref.verticalPosition,
|
63
|
-
verticalPosition = _ref$verticalPosition === void 0 ?
|
57
|
+
verticalPosition = _ref$verticalPosition === void 0 ? 'normal' : _ref$verticalPosition,
|
64
58
|
rest = _objectWithoutProperties(_ref, _excluded);
|
65
59
|
var _useState = useState([]),
|
66
60
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -106,7 +100,7 @@ var CreateTearsheet = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
106
100
|
_useState22 = _slicedToArray(_useState21, 2),
|
107
101
|
firstIncludedStep = _useState22[0],
|
108
102
|
setFirstIncludedStep = _useState22[1];
|
109
|
-
var _useState23 = useState(
|
103
|
+
var _useState23 = useState(),
|
110
104
|
_useState24 = _slicedToArray(_useState23, 2),
|
111
105
|
lastIncludedStep = _useState24[0],
|
112
106
|
setLastIncludedStep = _useState24[1];
|
@@ -114,7 +108,7 @@ var CreateTearsheet = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
114
108
|
currentStep: currentStep,
|
115
109
|
open: open
|
116
110
|
});
|
117
|
-
var contentRef = useRef();
|
111
|
+
var contentRef = useRef(null);
|
118
112
|
useEffect(function () {
|
119
113
|
var firstItem = stepData.findIndex(function (item) {
|
120
114
|
return item === null || item === void 0 ? void 0 : item.shouldIncludeStep;
|
@@ -144,9 +138,11 @@ var CreateTearsheet = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
144
138
|
useResetCreateComponent({
|
145
139
|
firstIncludedStep: firstIncludedStep,
|
146
140
|
previousState: previousState,
|
141
|
+
/**@ts-ignore */
|
147
142
|
open: open,
|
148
143
|
setCurrentStep: setCurrentStep,
|
149
144
|
stepData: stepData,
|
145
|
+
/**@ts-ignore */
|
150
146
|
initialStep: initialStep,
|
151
147
|
totalSteps: stepData === null || stepData === void 0 ? void 0 : stepData.length,
|
152
148
|
componentName: componentName
|
@@ -161,6 +157,7 @@ var CreateTearsheet = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
161
157
|
setCurrentStep: setCurrentStep,
|
162
158
|
setIsSubmitting: setIsSubmitting,
|
163
159
|
setShouldViewAll: setShouldViewAll,
|
160
|
+
/**@ts-ignore */
|
164
161
|
setLoadingPrevious: setLoadingPrevious,
|
165
162
|
loadingPrevious: loadingPrevious,
|
166
163
|
onClose: onClose,
|
@@ -176,43 +173,26 @@ var CreateTearsheet = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
176
173
|
componentBlockClass: blockClass,
|
177
174
|
setCreateComponentActions: setCreateTearsheetActions
|
178
175
|
});
|
179
|
-
|
180
|
-
|
181
|
-
/* istanbul ignore next */
|
182
|
-
var handleBlur = function handleBlur(_ref2) {
|
183
|
-
var oldActiveNode = _ref2.target,
|
184
|
-
currentActiveNode = _ref2.relatedTarget;
|
185
|
-
var visibleStepInnerContent = document.querySelector(".".concat(pkg.prefix, "--tearsheet__body"));
|
186
|
-
if (open && visibleStepInnerContent) {
|
187
|
-
wrapFocus({
|
188
|
-
bodyNode: visibleStepInnerContent,
|
189
|
-
currentActiveNode: currentActiveNode,
|
190
|
-
oldActiveNode: oldActiveNode
|
191
|
-
});
|
192
|
-
}
|
193
|
-
};
|
194
|
-
return /*#__PURE__*/React__default.createElement(TearsheetShell, _extends({}, rest, getDevtoolsProps(componentName), {
|
176
|
+
return /*#__PURE__*/React__default.createElement(TearsheetShell, _extends({}, getDevtoolsProps(componentName), rest, {
|
177
|
+
ref: ref,
|
195
178
|
actions: createTearsheetActions,
|
196
179
|
className: cx(blockClass, className),
|
197
180
|
description: description,
|
198
|
-
hasCloseIcon: false,
|
199
181
|
influencer: /*#__PURE__*/React__default.createElement(CreateInfluencer, {
|
200
182
|
currentStep: currentStep,
|
201
183
|
stepData: stepData
|
202
184
|
}),
|
203
|
-
influencerPosition: "left",
|
204
185
|
influencerWidth: influencerWidth,
|
205
186
|
label: label,
|
206
187
|
onClose: onClose,
|
207
188
|
open: open,
|
208
|
-
size:
|
189
|
+
size: 'wide',
|
209
190
|
slug: slug,
|
210
191
|
title: title,
|
211
192
|
verticalPosition: verticalPosition,
|
212
|
-
|
193
|
+
closeIconDescription: ''
|
213
194
|
}), /*#__PURE__*/React__default.createElement("div", {
|
214
195
|
className: "".concat(blockClass, "__content"),
|
215
|
-
onBlur: handleBlur,
|
216
196
|
ref: contentRef
|
217
197
|
}, /*#__PURE__*/React__default.createElement(Form, {
|
218
198
|
"aria-label": title
|
@@ -14,6 +14,7 @@ export namespace DatagridContent {
|
|
14
14
|
DatagridPagination: PropTypes.Requireable<NonNullable<PropTypes.ReactElementLike | ((...args: any[]) => any) | null | undefined>>;
|
15
15
|
CustomizeColumnsTearsheet: PropTypes.Requireable<NonNullable<PropTypes.ReactElementLike | ((...args: any[]) => any) | null | undefined>>;
|
16
16
|
isFetching: PropTypes.Requireable<boolean>;
|
17
|
+
skeletonRowCount: PropTypes.Requireable<number>;
|
17
18
|
fullHeightDatagrid: PropTypes.Requireable<boolean>;
|
18
19
|
filterProps: PropTypes.Requireable<object>;
|
19
20
|
variableRowHeight: PropTypes.Requireable<boolean>;
|
@@ -184,6 +184,7 @@ DatagridContent.propTypes = {
|
|
184
184
|
DatagridPagination: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),
|
185
185
|
CustomizeColumnsTearsheet: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),
|
186
186
|
isFetching: PropTypes.bool,
|
187
|
+
skeletonRowCount: PropTypes.number,
|
187
188
|
fullHeightDatagrid: PropTypes.bool,
|
188
189
|
filterProps: PropTypes.object,
|
189
190
|
variableRowHeight: PropTypes.bool,
|
@@ -44,7 +44,7 @@ var useParentDimensions = function useParentDimensions(hooks) {
|
|
44
44
|
setTableHeight(newHeight);
|
45
45
|
};
|
46
46
|
Object.assign(instance, {
|
47
|
-
tableHeight: tableHeight,
|
47
|
+
tableHeight: tableHeight || instance.tableHeight,
|
48
48
|
rootRef: rootRef,
|
49
49
|
headRef: headRef,
|
50
50
|
innerListRef: innerListRef,
|
@@ -8,7 +8,7 @@
|
|
8
8
|
import { toConsumableArray as _toConsumableArray } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
9
9
|
|
10
10
|
/**
|
11
|
-
* Copyright IBM Corp. 2020,
|
11
|
+
* Copyright IBM Corp. 2020, 2024
|
12
12
|
*
|
13
13
|
* This source code is licensed under the Apache-2.0 license found in the
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
@@ -17,7 +17,11 @@ import { toConsumableArray as _toConsumableArray } from '../../_virtual/_rollupP
|
|
17
17
|
var useSkeletons = function useSkeletons(hooks) {
|
18
18
|
var useInstance = function useInstance(instance) {
|
19
19
|
var isFetching = instance.isFetching,
|
20
|
-
rows = instance.rows
|
20
|
+
rows = instance.rows,
|
21
|
+
skeletonRowCount = instance.skeletonRowCount;
|
22
|
+
if (isFetching && skeletonRowCount === 0) {
|
23
|
+
throw new Error('skeletonRowCount cannot be set to 0, if isFetching is true');
|
24
|
+
}
|
21
25
|
var skeletonRow = function skeletonRow(id) {
|
22
26
|
return {
|
23
27
|
isSkeleton: true,
|
@@ -25,7 +29,11 @@ var useSkeletons = function useSkeletons(hooks) {
|
|
25
29
|
id: id
|
26
30
|
};
|
27
31
|
};
|
28
|
-
var rowsWithSkeletons = [].concat(_toConsumableArray(rows),
|
32
|
+
var rowsWithSkeletons = [].concat(_toConsumableArray(rows), _toConsumableArray(Array.from({
|
33
|
+
length: skeletonRowCount || 3
|
34
|
+
}, function (_, index) {
|
35
|
+
return skeletonRow("skeleton-row-".concat(index + 1));
|
36
|
+
})));
|
29
37
|
Object.assign(instance, {
|
30
38
|
rows: isFetching ? rowsWithSkeletons : rows
|
31
39
|
});
|
@@ -1,7 +1,109 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2022, 2022
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
import React, { ReactNode } from 'react';
|
8
|
+
import { CarbonIconType } from '@carbon/icons-react/lib/CarbonIcon';
|
9
|
+
type ActionIcon = {
|
10
|
+
id: string;
|
11
|
+
icon: CarbonIconType;
|
12
|
+
onKeyDown?(): void;
|
13
|
+
onClick?(): void;
|
14
|
+
iconDescription: string;
|
15
|
+
href?: string;
|
16
|
+
};
|
17
|
+
interface EditUpdateCardsProps {
|
18
|
+
/**
|
19
|
+
* Icons that are displayed on card. Refer to design documentation for implementation guidelines
|
20
|
+
*/
|
21
|
+
actionIcons?: Array<ActionIcon>;
|
22
|
+
/**
|
23
|
+
* Determines if the action icons are on the top or bottom of the card
|
24
|
+
*/
|
25
|
+
actionsPlacement?: 'top' | 'bottom';
|
26
|
+
/**
|
27
|
+
* Optional label for the top of the card.
|
28
|
+
*/
|
29
|
+
className?: string;
|
30
|
+
/**
|
31
|
+
* Optional header description
|
32
|
+
*/
|
33
|
+
description?: string;
|
34
|
+
/**
|
35
|
+
* Edit mode children
|
36
|
+
*/
|
37
|
+
editChildren?: ReactNode;
|
38
|
+
/**
|
39
|
+
* Edit mode
|
40
|
+
*/
|
41
|
+
editMode?: boolean;
|
42
|
+
/**
|
43
|
+
* Optional label for the top of the card
|
44
|
+
*/
|
45
|
+
label?: string;
|
46
|
+
/**
|
47
|
+
* Function that's called from the primary button or action icon
|
48
|
+
*/
|
49
|
+
onPrimaryButtonClick?(): void;
|
50
|
+
/**
|
51
|
+
* Function that's called from the secondary button or action icon
|
52
|
+
*/
|
53
|
+
onSecondaryButtonClick?(): void;
|
54
|
+
/**
|
55
|
+
* Preview mode children
|
56
|
+
*/
|
57
|
+
previewChildren?: ReactNode;
|
58
|
+
/**
|
59
|
+
* Optional prop to allow overriding the icon rendering. Can be a React component class
|
60
|
+
*/
|
61
|
+
primaryButtonIcon?: CarbonIconType;
|
62
|
+
/**
|
63
|
+
* Establishes the kind of button displayed for the primary button
|
64
|
+
*/
|
65
|
+
primaryButtonKind?: 'primary' | 'ghost';
|
66
|
+
/**
|
67
|
+
* Determines if the primary button is on the top or bottom of the card
|
68
|
+
*/
|
69
|
+
primaryButtonPlacement?: 'top' | 'bottom';
|
70
|
+
/**
|
71
|
+
* The text that's displayed in the primary button
|
72
|
+
*/
|
73
|
+
primaryButtonText?: string;
|
74
|
+
/**
|
75
|
+
* Optionally specify an href for your Button to become an <a> element
|
76
|
+
*/
|
77
|
+
secondaryButtonHref?: string;
|
78
|
+
/**
|
79
|
+
* Optional prop to allow overriding the icon rendering. Can be a React component class
|
80
|
+
*/
|
81
|
+
secondaryButtonIcon?: CarbonIconType;
|
82
|
+
/**
|
83
|
+
* Establishes the kind of button displayed for the secondary button
|
84
|
+
*/
|
85
|
+
secondaryButtonKind?: 'secondary' | 'ghost';
|
86
|
+
/**
|
87
|
+
* Determines if the secondary button is on the top or bottom of the card
|
88
|
+
*/
|
89
|
+
secondaryButtonPlacement?: 'top' | 'bottom';
|
90
|
+
/**
|
91
|
+
* The text that's displayed in the secondary button
|
92
|
+
*/
|
93
|
+
secondaryButtonText?: string;
|
94
|
+
/**
|
95
|
+
* Title that's displayed at the top of the card
|
96
|
+
*/
|
97
|
+
title?: string;
|
98
|
+
/**
|
99
|
+
* Determines title size
|
100
|
+
*/
|
101
|
+
titleSize?: 'default' | 'large';
|
102
|
+
}
|
1
103
|
/**
|
2
104
|
Editable cards allow a user to view, modify, and save the content contained within the card.
|
3
105
|
These cards are generally used in instances where a user needs to make changes to a resource instances
|
4
106
|
(ex. configuration details), account plan, etc. Editable cards allow a user to edit something within context.
|
5
107
|
*/
|
6
|
-
export let EditUpdateCards: React.ForwardRefExoticComponent<React.RefAttributes<
|
7
|
-
|
108
|
+
export declare let EditUpdateCards: React.ForwardRefExoticComponent<EditUpdateCardsProps & React.RefAttributes<HTMLDivElement>>;
|
109
|
+
export {};
|
@@ -109,6 +109,7 @@ EditUpdateCards.propTypes = {
|
|
109
109
|
/**
|
110
110
|
* Icons that are displayed on card. Refer to design documentation for implementation guidelines
|
111
111
|
*/
|
112
|
+
/**@ts-ignore */
|
112
113
|
actionIcons: PropTypes.arrayOf(PropTypes.shape({
|
113
114
|
id: PropTypes.string,
|
114
115
|
icon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
@@ -156,6 +157,7 @@ EditUpdateCards.propTypes = {
|
|
156
157
|
/**
|
157
158
|
* Optional prop to allow overriding the icon rendering. Can be a React component class
|
158
159
|
*/
|
160
|
+
/**@ts-ignore */
|
159
161
|
primaryButtonIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
160
162
|
/**
|
161
163
|
* Establishes the kind of button displayed for the primary button
|
@@ -176,6 +178,7 @@ EditUpdateCards.propTypes = {
|
|
176
178
|
/**
|
177
179
|
* Optional prop to allow overriding the icon rendering. Can be a React component class
|
178
180
|
*/
|
181
|
+
/**@ts-ignore */
|
179
182
|
secondaryButtonIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
180
183
|
/**
|
181
184
|
* Establishes the kind of button displayed for the secondary button
|