@carbon/ibm-products 2.54.0-canary.13 → 2.54.0-canary.16
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/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +1 -5
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +5 -5
- package/es/components/EditFullPage/EditFullPage.d.ts +2 -0
- package/es/components/EditFullPage/EditFullPage.js +8 -0
- package/es/components/EditSidePanel/EditSidePanel.d.ts +2 -0
- package/es/components/EditSidePanel/EditSidePanel.js +8 -0
- package/es/components/EditTearsheet/EditTearsheet.d.ts +2 -0
- package/es/components/EditTearsheet/EditTearsheet.js +8 -0
- package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.d.ts +2 -0
- package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.js +8 -0
- package/es/components/EditUpdateCards/EditUpdateCards.d.ts +2 -0
- package/es/components/EditUpdateCards/EditUpdateCards.js +8 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +1 -5
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +5 -5
- package/lib/components/EditFullPage/EditFullPage.d.ts +2 -0
- package/lib/components/EditFullPage/EditFullPage.js +8 -0
- package/lib/components/EditSidePanel/EditSidePanel.d.ts +2 -0
- package/lib/components/EditSidePanel/EditSidePanel.js +8 -0
- package/lib/components/EditTearsheet/EditTearsheet.d.ts +2 -0
- package/lib/components/EditTearsheet/EditTearsheet.js +8 -0
- package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.d.ts +2 -0
- package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.js +8 -0
- package/lib/components/EditUpdateCards/EditUpdateCards.d.ts +2 -0
- package/lib/components/EditUpdateCards/EditUpdateCards.js +8 -0
- package/package.json +3 -3
package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js
CHANGED
@@ -63,9 +63,6 @@ var ItemOption = function ItemOption(_ref) {
|
|
63
63
|
className: "".concat(blockClass, "__statement_wrapper")
|
64
64
|
}, /*#__PURE__*/React__default.createElement("div", null, option.text1, " (", option.connector, ")"), /*#__PURE__*/React__default.createElement("div", null, option.text2));
|
65
65
|
};
|
66
|
-
var preventDefault = function preventDefault(evt) {
|
67
|
-
return evt.preventDefault();
|
68
|
-
};
|
69
66
|
if (!allOptions) {
|
70
67
|
return;
|
71
68
|
}
|
@@ -78,8 +75,7 @@ var ItemOption = function ItemOption(_ref) {
|
|
78
75
|
size: "sm",
|
79
76
|
labelText: clearSearchText,
|
80
77
|
closeButtonLabelText: clearSearchText,
|
81
|
-
onChange: onSearchChangeHandler
|
82
|
-
onKeyDown: preventDefault
|
78
|
+
onChange: onSearchChangeHandler
|
83
79
|
})), /*#__PURE__*/React__default.createElement("ul", {
|
84
80
|
"aria-label": getAriaLabel(),
|
85
81
|
role: "listbox"
|
@@ -129,13 +129,14 @@ var ItemOptionForValueField = function ItemOptionForValueField(_ref) {
|
|
129
129
|
} else {
|
130
130
|
onChange(option, evt);
|
131
131
|
}
|
132
|
+
if (evt.target instanceof SVGElement) {
|
133
|
+
evt.stopPropagation();
|
134
|
+
//stop propagate event , since this closes the popover when clicked on checkboxes which are SVGs.
|
135
|
+
}
|
132
136
|
};
|
133
137
|
var getAriaLabel = function getAriaLabel() {
|
134
138
|
return conditionState.label ? conditionState.label : conditionState.property ? conditionState.property : propertyText;
|
135
139
|
};
|
136
|
-
var preventDefault = function preventDefault(evt) {
|
137
|
-
return evt.preventDefault();
|
138
|
-
};
|
139
140
|
if (!allOptions) {
|
140
141
|
return _SelectSkeleton || (_SelectSkeleton = /*#__PURE__*/React__default.createElement(SelectSkeleton, null));
|
141
142
|
}
|
@@ -148,8 +149,7 @@ var ItemOptionForValueField = function ItemOptionForValueField(_ref) {
|
|
148
149
|
size: "sm",
|
149
150
|
labelText: clearSearchText,
|
150
151
|
closeButtonLabelText: clearSearchText,
|
151
|
-
onChange: onSearchChangeHandler
|
152
|
-
onKeyDown: preventDefault
|
152
|
+
onChange: onSearchChangeHandler
|
153
153
|
})), multiSelectable && /*#__PURE__*/React__default.createElement("div", {
|
154
154
|
className: "".concat(blockClass, "__multiselectSelectionStatusContainer")
|
155
155
|
}, /*#__PURE__*/React__default.createElement("h4", null, /*#__PURE__*/React__default.createElement("label", null, selection.length, "/", allOptions.length, " Selected")), /*#__PURE__*/React__default.createElement(Button, {
|
@@ -16,7 +16,9 @@ export interface EditFullPageProps {
|
|
16
16
|
children: ReactNode;
|
17
17
|
}
|
18
18
|
/**
|
19
|
+
* **This component is deprecated.** <br>
|
19
20
|
* Use when settings on a page need to always be shown in edit mode, or when the context of the page is needed to make several changes.
|
20
21
|
* See usage guidance for further details.
|
22
|
+
* @deprecated
|
21
23
|
*/
|
22
24
|
export declare let EditFullPage: React.ForwardRefExoticComponent<EditFullPageProps & React.RefAttributes<HTMLDivElement>>;
|
@@ -38,8 +38,10 @@ var componentName = 'EditFullPage';
|
|
38
38
|
// };
|
39
39
|
|
40
40
|
/**
|
41
|
+
* **This component is deprecated.** <br>
|
41
42
|
* Use when settings on a page need to always be shown in edit mode, or when the context of the page is needed to make several changes.
|
42
43
|
* See usage guidance for further details.
|
44
|
+
* @deprecated
|
43
45
|
*/
|
44
46
|
var EditFullPage = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
45
47
|
var className = _ref.className,
|
@@ -60,6 +62,12 @@ var EditFullPage = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
60
62
|
}, getDevtoolsProps(componentName)), children);
|
61
63
|
});
|
62
64
|
|
65
|
+
/**@ts-ignore*/
|
66
|
+
EditFullPage.deprecated = {
|
67
|
+
level: 'warn',
|
68
|
+
details: "This component is deprecated and will be removed in the next major version."
|
69
|
+
};
|
70
|
+
|
63
71
|
// Return a placeholder if not released and not enabled by feature flag
|
64
72
|
EditFullPage = pkg.checkComponentEnabled(EditFullPage, componentName);
|
65
73
|
|
@@ -89,6 +89,8 @@ export interface EditSidePanelProps {
|
|
89
89
|
title: string;
|
90
90
|
}
|
91
91
|
/**
|
92
|
+
* **This component is deprecated.** <br>
|
92
93
|
* Use with medium complexity edits if the user needs page context.
|
94
|
+
* @deprecated
|
93
95
|
*/
|
94
96
|
export declare let EditSidePanel: React.ForwardRefExoticComponent<EditSidePanelProps & React.RefAttributes<HTMLDivElement>>;
|
@@ -25,7 +25,9 @@ var componentName = 'EditSidePanel';
|
|
25
25
|
// NOTE: the component SCSS is not imported here: it is rolled up separately.
|
26
26
|
|
27
27
|
/**
|
28
|
+
* **This component is deprecated.** <br>
|
28
29
|
* Use with medium complexity edits if the user needs page context.
|
30
|
+
* @deprecated
|
29
31
|
*/
|
30
32
|
var EditSidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
31
33
|
var children = _ref.children,
|
@@ -92,6 +94,12 @@ var EditSidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref)
|
|
92
94
|
}, children));
|
93
95
|
});
|
94
96
|
|
97
|
+
/**@ts-ignore*/
|
98
|
+
EditSidePanel.deprecated = {
|
99
|
+
level: 'warn',
|
100
|
+
details: "This component is deprecated and will be removed in the next major version."
|
101
|
+
};
|
102
|
+
|
95
103
|
// Return a placeholder if not released and not enabled by feature flag
|
96
104
|
EditSidePanel = pkg.checkComponentEnabled(EditSidePanel, componentName);
|
97
105
|
|
@@ -81,7 +81,9 @@ interface EditTearsheetProps extends PropsWithChildren {
|
|
81
81
|
verticalPosition?: 'normal' | 'lower';
|
82
82
|
}
|
83
83
|
/**
|
84
|
+
* **This component is deprecated.** <br>
|
84
85
|
* Use Tearsheet with medium to complex edits. See usage guidance for further information.
|
86
|
+
* @deprecated
|
85
87
|
*/
|
86
88
|
export declare let EditTearsheet: React.ForwardRefExoticComponent<EditTearsheetProps & React.RefAttributes<HTMLDivElement>>;
|
87
89
|
export {};
|
@@ -38,7 +38,9 @@ var defaults = {
|
|
38
38
|
// corresponding props for TearsheetNarrow and TearsheetShell components.
|
39
39
|
|
40
40
|
/**
|
41
|
+
* **This component is deprecated.** <br>
|
41
42
|
* Use Tearsheet with medium to complex edits. See usage guidance for further information.
|
43
|
+
* @deprecated
|
42
44
|
*/
|
43
45
|
var EditTearsheet = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
44
46
|
var cancelButtonText = _ref.cancelButtonText,
|
@@ -171,6 +173,12 @@ var EditTearsheet = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
171
173
|
})))));
|
172
174
|
});
|
173
175
|
|
176
|
+
/**@ts-ignore*/
|
177
|
+
EditTearsheet.deprecated = {
|
178
|
+
level: 'warn',
|
179
|
+
details: "This component is deprecated and will be removed in the next major version."
|
180
|
+
};
|
181
|
+
|
174
182
|
// Return a placeholder if not released and not enabled by feature flag
|
175
183
|
EditTearsheet = pkg.checkComponentEnabled(EditTearsheet, componentName);
|
176
184
|
|
@@ -16,6 +16,8 @@ export interface EditTearsheetNarrowProps {
|
|
16
16
|
className?: string;
|
17
17
|
}
|
18
18
|
/**
|
19
|
+
* **This component is deprecated.** <br>
|
19
20
|
* Use a narrow tearsheet as an alternative to a modal when there is scrolling. See usage guidance for further information.
|
21
|
+
* @deprecated
|
20
22
|
*/
|
21
23
|
export declare let EditTearsheetNarrow: React.ForwardRefExoticComponent<EditTearsheetNarrowProps & React.RefAttributes<HTMLDivElement>>;
|
@@ -38,7 +38,9 @@ var componentName = 'EditTearsheetNarrow';
|
|
38
38
|
// };
|
39
39
|
|
40
40
|
/**
|
41
|
+
* **This component is deprecated.** <br>
|
41
42
|
* Use a narrow tearsheet as an alternative to a modal when there is scrolling. See usage guidance for further information.
|
43
|
+
* @deprecated
|
42
44
|
*/
|
43
45
|
var EditTearsheetNarrow = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
44
46
|
var children = _ref.children,
|
@@ -59,6 +61,12 @@ var EditTearsheetNarrow = /*#__PURE__*/React__default.forwardRef(function (_ref,
|
|
59
61
|
}, getDevtoolsProps(componentName)), children);
|
60
62
|
});
|
61
63
|
|
64
|
+
/**@ts-ignore*/
|
65
|
+
EditTearsheetNarrow.deprecated = {
|
66
|
+
level: 'warn',
|
67
|
+
details: "This component is deprecated and will be removed in the next major version."
|
68
|
+
};
|
69
|
+
|
62
70
|
// Return a placeholder if not released and not enabled by feature flag
|
63
71
|
EditTearsheetNarrow = pkg.checkComponentEnabled(EditTearsheetNarrow, componentName);
|
64
72
|
|
@@ -102,9 +102,11 @@ export interface EditUpdateCardsProps {
|
|
102
102
|
titleSize?: 'default' | 'large';
|
103
103
|
}
|
104
104
|
/**
|
105
|
+
* **This component is deprecated.** <br>
|
105
106
|
Editable cards allow a user to view, modify, and save the content contained within the card.
|
106
107
|
These cards are generally used in instances where a user needs to make changes to a resource instances
|
107
108
|
(ex. configuration details), account plan, etc. Editable cards allow a user to edit something within context.
|
109
|
+
@deprecated
|
108
110
|
*/
|
109
111
|
export declare let EditUpdateCards: React.ForwardRefExoticComponent<EditUpdateCardsProps & React.RefAttributes<HTMLDivElement>>;
|
110
112
|
export {};
|
@@ -41,9 +41,11 @@ var componentName = 'EditUpdateCards';
|
|
41
41
|
// };
|
42
42
|
|
43
43
|
/**
|
44
|
+
* **This component is deprecated.** <br>
|
44
45
|
Editable cards allow a user to view, modify, and save the content contained within the card.
|
45
46
|
These cards are generally used in instances where a user needs to make changes to a resource instances
|
46
47
|
(ex. configuration details), account plan, etc. Editable cards allow a user to edit something within context.
|
48
|
+
@deprecated
|
47
49
|
*/
|
48
50
|
var EditUpdateCards = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
49
51
|
var actionIcons = _ref.actionIcons,
|
@@ -95,6 +97,12 @@ var EditUpdateCards = /*#__PURE__*/React__default.forwardRef(function (_ref, ref
|
|
95
97
|
}, editMode && conditionalProps), editMode === false && /*#__PURE__*/React__default.createElement("div", null, previewChildren), editMode && /*#__PURE__*/React__default.createElement("div", null, editChildren)));
|
96
98
|
});
|
97
99
|
|
100
|
+
/**@ts-ignore*/
|
101
|
+
EditUpdateCards.deprecated = {
|
102
|
+
level: 'warn',
|
103
|
+
details: "This component is deprecated and will be removed in the next major version."
|
104
|
+
};
|
105
|
+
|
98
106
|
// Return a placeholder if not released and not enabled by feature flag
|
99
107
|
EditUpdateCards = pkg.checkComponentEnabled(EditUpdateCards, componentName);
|
100
108
|
|
@@ -65,9 +65,6 @@ var ItemOption = function ItemOption(_ref) {
|
|
65
65
|
className: "".concat(util.blockClass, "__statement_wrapper")
|
66
66
|
}, /*#__PURE__*/React.createElement("div", null, option.text1, " (", option.connector, ")"), /*#__PURE__*/React.createElement("div", null, option.text2));
|
67
67
|
};
|
68
|
-
var preventDefault = function preventDefault(evt) {
|
69
|
-
return evt.preventDefault();
|
70
|
-
};
|
71
68
|
if (!allOptions) {
|
72
69
|
return;
|
73
70
|
}
|
@@ -80,8 +77,7 @@ var ItemOption = function ItemOption(_ref) {
|
|
80
77
|
size: "sm",
|
81
78
|
labelText: clearSearchText,
|
82
79
|
closeButtonLabelText: clearSearchText,
|
83
|
-
onChange: onSearchChangeHandler
|
84
|
-
onKeyDown: preventDefault
|
80
|
+
onChange: onSearchChangeHandler
|
85
81
|
})), /*#__PURE__*/React.createElement("ul", {
|
86
82
|
"aria-label": getAriaLabel(),
|
87
83
|
role: "listbox"
|
@@ -131,13 +131,14 @@ var ItemOptionForValueField = function ItemOptionForValueField(_ref) {
|
|
131
131
|
} else {
|
132
132
|
onChange(option, evt);
|
133
133
|
}
|
134
|
+
if (evt.target instanceof SVGElement) {
|
135
|
+
evt.stopPropagation();
|
136
|
+
//stop propagate event , since this closes the popover when clicked on checkboxes which are SVGs.
|
137
|
+
}
|
134
138
|
};
|
135
139
|
var getAriaLabel = function getAriaLabel() {
|
136
140
|
return conditionState.label ? conditionState.label : conditionState.property ? conditionState.property : propertyText;
|
137
141
|
};
|
138
|
-
var preventDefault = function preventDefault(evt) {
|
139
|
-
return evt.preventDefault();
|
140
|
-
};
|
141
142
|
if (!allOptions) {
|
142
143
|
return _SelectSkeleton || (_SelectSkeleton = /*#__PURE__*/React.createElement(react.SelectSkeleton, null));
|
143
144
|
}
|
@@ -150,8 +151,7 @@ var ItemOptionForValueField = function ItemOptionForValueField(_ref) {
|
|
150
151
|
size: "sm",
|
151
152
|
labelText: clearSearchText,
|
152
153
|
closeButtonLabelText: clearSearchText,
|
153
|
-
onChange: onSearchChangeHandler
|
154
|
-
onKeyDown: preventDefault
|
154
|
+
onChange: onSearchChangeHandler
|
155
155
|
})), multiSelectable && /*#__PURE__*/React.createElement("div", {
|
156
156
|
className: "".concat(util.blockClass, "__multiselectSelectionStatusContainer")
|
157
157
|
}, /*#__PURE__*/React.createElement("h4", null, /*#__PURE__*/React.createElement("label", null, selection.length, "/", allOptions.length, " Selected")), /*#__PURE__*/React.createElement(react.Button, {
|
@@ -16,7 +16,9 @@ export interface EditFullPageProps {
|
|
16
16
|
children: ReactNode;
|
17
17
|
}
|
18
18
|
/**
|
19
|
+
* **This component is deprecated.** <br>
|
19
20
|
* Use when settings on a page need to always be shown in edit mode, or when the context of the page is needed to make several changes.
|
20
21
|
* See usage guidance for further details.
|
22
|
+
* @deprecated
|
21
23
|
*/
|
22
24
|
export declare let EditFullPage: React.ForwardRefExoticComponent<EditFullPageProps & React.RefAttributes<HTMLDivElement>>;
|
@@ -40,8 +40,10 @@ var componentName = 'EditFullPage';
|
|
40
40
|
// };
|
41
41
|
|
42
42
|
/**
|
43
|
+
* **This component is deprecated.** <br>
|
43
44
|
* Use when settings on a page need to always be shown in edit mode, or when the context of the page is needed to make several changes.
|
44
45
|
* See usage guidance for further details.
|
46
|
+
* @deprecated
|
45
47
|
*/
|
46
48
|
exports.EditFullPage = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
47
49
|
var className = _ref.className,
|
@@ -62,6 +64,12 @@ exports.EditFullPage = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
62
64
|
}, devtools.getDevtoolsProps(componentName)), children);
|
63
65
|
});
|
64
66
|
|
67
|
+
/**@ts-ignore*/
|
68
|
+
exports.EditFullPage.deprecated = {
|
69
|
+
level: 'warn',
|
70
|
+
details: "This component is deprecated and will be removed in the next major version."
|
71
|
+
};
|
72
|
+
|
65
73
|
// Return a placeholder if not released and not enabled by feature flag
|
66
74
|
exports.EditFullPage = settings.pkg.checkComponentEnabled(exports.EditFullPage, componentName);
|
67
75
|
|
@@ -89,6 +89,8 @@ export interface EditSidePanelProps {
|
|
89
89
|
title: string;
|
90
90
|
}
|
91
91
|
/**
|
92
|
+
* **This component is deprecated.** <br>
|
92
93
|
* Use with medium complexity edits if the user needs page context.
|
94
|
+
* @deprecated
|
93
95
|
*/
|
94
96
|
export declare let EditSidePanel: React.ForwardRefExoticComponent<EditSidePanelProps & React.RefAttributes<HTMLDivElement>>;
|
@@ -27,7 +27,9 @@ var componentName = 'EditSidePanel';
|
|
27
27
|
// NOTE: the component SCSS is not imported here: it is rolled up separately.
|
28
28
|
|
29
29
|
/**
|
30
|
+
* **This component is deprecated.** <br>
|
30
31
|
* Use with medium complexity edits if the user needs page context.
|
32
|
+
* @deprecated
|
31
33
|
*/
|
32
34
|
exports.EditSidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
33
35
|
var children = _ref.children,
|
@@ -94,6 +96,12 @@ exports.EditSidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
94
96
|
}, children));
|
95
97
|
});
|
96
98
|
|
99
|
+
/**@ts-ignore*/
|
100
|
+
exports.EditSidePanel.deprecated = {
|
101
|
+
level: 'warn',
|
102
|
+
details: "This component is deprecated and will be removed in the next major version."
|
103
|
+
};
|
104
|
+
|
97
105
|
// Return a placeholder if not released and not enabled by feature flag
|
98
106
|
exports.EditSidePanel = settings.pkg.checkComponentEnabled(exports.EditSidePanel, componentName);
|
99
107
|
|
@@ -81,7 +81,9 @@ interface EditTearsheetProps extends PropsWithChildren {
|
|
81
81
|
verticalPosition?: 'normal' | 'lower';
|
82
82
|
}
|
83
83
|
/**
|
84
|
+
* **This component is deprecated.** <br>
|
84
85
|
* Use Tearsheet with medium to complex edits. See usage guidance for further information.
|
86
|
+
* @deprecated
|
85
87
|
*/
|
86
88
|
export declare let EditTearsheet: React.ForwardRefExoticComponent<EditTearsheetProps & React.RefAttributes<HTMLDivElement>>;
|
87
89
|
export {};
|
@@ -40,7 +40,9 @@ var defaults = {
|
|
40
40
|
// corresponding props for TearsheetNarrow and TearsheetShell components.
|
41
41
|
|
42
42
|
/**
|
43
|
+
* **This component is deprecated.** <br>
|
43
44
|
* Use Tearsheet with medium to complex edits. See usage guidance for further information.
|
45
|
+
* @deprecated
|
44
46
|
*/
|
45
47
|
exports.EditTearsheet = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
46
48
|
var cancelButtonText = _ref.cancelButtonText,
|
@@ -173,6 +175,12 @@ exports.EditTearsheet = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
173
175
|
})))));
|
174
176
|
});
|
175
177
|
|
178
|
+
/**@ts-ignore*/
|
179
|
+
exports.EditTearsheet.deprecated = {
|
180
|
+
level: 'warn',
|
181
|
+
details: "This component is deprecated and will be removed in the next major version."
|
182
|
+
};
|
183
|
+
|
176
184
|
// Return a placeholder if not released and not enabled by feature flag
|
177
185
|
exports.EditTearsheet = settings.pkg.checkComponentEnabled(exports.EditTearsheet, componentName);
|
178
186
|
|
@@ -16,6 +16,8 @@ export interface EditTearsheetNarrowProps {
|
|
16
16
|
className?: string;
|
17
17
|
}
|
18
18
|
/**
|
19
|
+
* **This component is deprecated.** <br>
|
19
20
|
* Use a narrow tearsheet as an alternative to a modal when there is scrolling. See usage guidance for further information.
|
21
|
+
* @deprecated
|
20
22
|
*/
|
21
23
|
export declare let EditTearsheetNarrow: React.ForwardRefExoticComponent<EditTearsheetNarrowProps & React.RefAttributes<HTMLDivElement>>;
|
@@ -40,7 +40,9 @@ var componentName = 'EditTearsheetNarrow';
|
|
40
40
|
// };
|
41
41
|
|
42
42
|
/**
|
43
|
+
* **This component is deprecated.** <br>
|
43
44
|
* Use a narrow tearsheet as an alternative to a modal when there is scrolling. See usage guidance for further information.
|
45
|
+
* @deprecated
|
44
46
|
*/
|
45
47
|
exports.EditTearsheetNarrow = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
46
48
|
var children = _ref.children,
|
@@ -61,6 +63,12 @@ exports.EditTearsheetNarrow = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
61
63
|
}, devtools.getDevtoolsProps(componentName)), children);
|
62
64
|
});
|
63
65
|
|
66
|
+
/**@ts-ignore*/
|
67
|
+
exports.EditTearsheetNarrow.deprecated = {
|
68
|
+
level: 'warn',
|
69
|
+
details: "This component is deprecated and will be removed in the next major version."
|
70
|
+
};
|
71
|
+
|
64
72
|
// Return a placeholder if not released and not enabled by feature flag
|
65
73
|
exports.EditTearsheetNarrow = settings.pkg.checkComponentEnabled(exports.EditTearsheetNarrow, componentName);
|
66
74
|
|
@@ -102,9 +102,11 @@ export interface EditUpdateCardsProps {
|
|
102
102
|
titleSize?: 'default' | 'large';
|
103
103
|
}
|
104
104
|
/**
|
105
|
+
* **This component is deprecated.** <br>
|
105
106
|
Editable cards allow a user to view, modify, and save the content contained within the card.
|
106
107
|
These cards are generally used in instances where a user needs to make changes to a resource instances
|
107
108
|
(ex. configuration details), account plan, etc. Editable cards allow a user to edit something within context.
|
109
|
+
@deprecated
|
108
110
|
*/
|
109
111
|
export declare let EditUpdateCards: React.ForwardRefExoticComponent<EditUpdateCardsProps & React.RefAttributes<HTMLDivElement>>;
|
110
112
|
export {};
|
@@ -43,9 +43,11 @@ var componentName = 'EditUpdateCards';
|
|
43
43
|
// };
|
44
44
|
|
45
45
|
/**
|
46
|
+
* **This component is deprecated.** <br>
|
46
47
|
Editable cards allow a user to view, modify, and save the content contained within the card.
|
47
48
|
These cards are generally used in instances where a user needs to make changes to a resource instances
|
48
49
|
(ex. configuration details), account plan, etc. Editable cards allow a user to edit something within context.
|
50
|
+
@deprecated
|
49
51
|
*/
|
50
52
|
exports.EditUpdateCards = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
51
53
|
var actionIcons = _ref.actionIcons,
|
@@ -97,6 +99,12 @@ exports.EditUpdateCards = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
97
99
|
}, editMode && conditionalProps), editMode === false && /*#__PURE__*/React.createElement("div", null, previewChildren), editMode && /*#__PURE__*/React.createElement("div", null, editChildren)));
|
98
100
|
});
|
99
101
|
|
102
|
+
/**@ts-ignore*/
|
103
|
+
exports.EditUpdateCards.deprecated = {
|
104
|
+
level: 'warn',
|
105
|
+
details: "This component is deprecated and will be removed in the next major version."
|
106
|
+
};
|
107
|
+
|
100
108
|
// Return a placeholder if not released and not enabled by feature flag
|
101
109
|
exports.EditUpdateCards = settings.pkg.checkComponentEnabled(exports.EditUpdateCards, componentName);
|
102
110
|
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@carbon/ibm-products",
|
3
3
|
"description": "Carbon for IBM Products",
|
4
|
-
"version": "2.54.0-canary.
|
4
|
+
"version": "2.54.0-canary.16+1f5b63ec4",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "lib/index.js",
|
7
7
|
"module": "es/index.js",
|
@@ -96,7 +96,7 @@
|
|
96
96
|
"dependencies": {
|
97
97
|
"@babel/runtime": "^7.23.9",
|
98
98
|
"@carbon/feature-flags": "^0.24.0",
|
99
|
-
"@carbon/ibm-products-styles": "^2.50.0-
|
99
|
+
"@carbon/ibm-products-styles": "^2.50.0-rc.1",
|
100
100
|
"@carbon/telemetry": "^0.1.0",
|
101
101
|
"@dnd-kit/core": "^6.0.8",
|
102
102
|
"@dnd-kit/modifiers": "^7.0.0",
|
@@ -120,5 +120,5 @@
|
|
120
120
|
"react": "^16.8.6 || ^17.0.1 || ^18.2.0",
|
121
121
|
"react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0"
|
122
122
|
},
|
123
|
-
"gitHead": "
|
123
|
+
"gitHead": "1f5b63ec428ddd2a2b2ee7c4153c83c2fff6a61c"
|
124
124
|
}
|