@carbon/ibm-products 2.68.0 → 2.69.0
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/carbon.css +382 -74
- package/css/carbon.css.map +1 -1
- package/css/index-full-carbon.css +524 -116
- 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 +126 -42
- 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 +142 -42
- 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 +185 -50
- 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/_commonjsHelpers.js +3 -1
- package/es/_virtual/index2.js +6 -2
- package/es/_virtual/index3.js +10 -0
- package/es/components/AddSelect/AddSelectColumn.js +41 -18
- package/es/components/AddSelect/AddSelectSort.js +15 -16
- package/es/components/AddSelect/types/index.d.ts +1 -1
- package/es/components/Card/Card.d.ts +2 -2
- package/es/components/Card/Card.js +7 -4
- package/es/components/Coachmark/Coachmark.d.ts +43 -0
- package/es/components/Coachmark/Coachmark.js +49 -33
- package/es/components/Coachmark/CoachmarkOverlay.js +6 -0
- package/es/components/Coachmark/index.d.ts +1 -0
- package/es/components/CoachmarkBeacon/CoachmarkBeacon.d.ts +11 -0
- package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +19 -11
- package/es/components/CoachmarkButton/CoachmarkButton.js +7 -0
- package/es/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +6 -0
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +7 -0
- package/es/components/Datagrid/Datagrid/DatagridContent.js +7 -5
- package/es/components/Datagrid/Datagrid/DatagridRow.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/DatagridRow.js +4 -3
- package/es/components/Datagrid/Datagrid/DatagridToolbar.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/DatagridToolbar.js +8 -7
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +4 -3
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +4 -3
- package/es/components/Datagrid/useNestedRowExpander.js +4 -2
- package/es/components/Datagrid/useOnRowClick.d.ts +1 -1
- package/es/components/Datagrid/useOnRowClick.js +6 -4
- package/es/components/Datagrid/useRowExpander.js +4 -2
- package/es/components/Datagrid/useSelectRows.d.ts +1 -1
- package/es/components/Datagrid/useSelectRows.js +4 -3
- package/es/components/Datagrid/useSortableColumns.d.ts +1 -1
- package/es/components/Datagrid/useSortableColumns.js +6 -5
- package/es/components/EditInPlace/EditInPlace.d.ts +1 -1
- package/es/components/EditInPlace/EditInPlace.js +4 -3
- package/es/components/EmptyStates/EmptyStateContent.d.ts +30 -1
- package/es/components/EmptyStates/EmptyStateContent.js +2 -2
- package/es/components/ExportModal/ExportModal.js +7 -5
- package/es/components/FeatureFlags/index.d.ts +31 -12
- package/es/components/FeatureFlags/index.js +46 -15
- package/es/components/InterstitialScreen/InterstitialScreenBody.js +3 -2
- package/es/components/InterstitialScreen/InterstitialScreenFooter.js +5 -2
- package/es/components/InterstitialScreen/InterstitialScreenHeader.js +3 -1
- package/es/components/ProductiveCard/ProductiveCard.d.ts +1 -1
- package/es/components/ScrollGradient/ScrollGradient.js +9 -7
- package/es/components/SidePanel/SidePanel.js +74 -0
- package/es/components/SidePanel/constants.d.ts +14 -8
- package/es/components/SidePanel/constants.js +1 -1
- package/es/components/SidePanel/resizer/Resizer.d.ts +21 -0
- package/es/components/SidePanel/resizer/Resizer.js +271 -0
- package/es/components/TruncatedList/TruncatedList.d.ts +1 -1
- package/es/components/TruncatedList/TruncatedList.js +4 -3
- package/es/feature-flags.js +5 -1
- package/es/index.js +1 -0
- package/es/node_modules/@carbon/{icons-react/node_modules/@carbon/icon-helpers → icon-helpers}/es/index.js +3 -3
- package/es/node_modules/@carbon/icons-react/es/Icon.js +1 -1
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-10.js +816 -808
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-3.js +615 -637
- package/es/node_modules/lodash.debounce/index.js +367 -0
- package/es/node_modules/prop-types/index.js +1 -1
- package/es/settings.js +1 -4
- package/lib/_virtual/_commonjsHelpers.js +3 -0
- package/lib/_virtual/index2.js +8 -2
- package/lib/_virtual/index3.js +12 -0
- package/lib/components/AddSelect/AddSelectColumn.js +40 -17
- package/lib/components/AddSelect/AddSelectSort.js +13 -14
- package/lib/components/AddSelect/types/index.d.ts +1 -1
- package/lib/components/Card/Card.d.ts +2 -2
- package/lib/components/Card/Card.js +7 -4
- package/lib/components/Coachmark/Coachmark.d.ts +43 -0
- package/lib/components/Coachmark/Coachmark.js +50 -32
- package/lib/components/Coachmark/CoachmarkOverlay.js +6 -0
- package/lib/components/Coachmark/index.d.ts +1 -0
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.d.ts +11 -0
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +19 -11
- package/lib/components/CoachmarkButton/CoachmarkButton.js +7 -0
- package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +6 -0
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +7 -0
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +5 -3
- package/lib/components/Datagrid/Datagrid/DatagridRow.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +6 -5
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +3 -2
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +2 -1
- package/lib/components/Datagrid/useNestedRowExpander.js +3 -1
- package/lib/components/Datagrid/useOnRowClick.d.ts +1 -1
- package/lib/components/Datagrid/useOnRowClick.js +5 -3
- package/lib/components/Datagrid/useRowExpander.js +3 -1
- package/lib/components/Datagrid/useSelectRows.d.ts +1 -1
- package/lib/components/Datagrid/useSelectRows.js +2 -1
- package/lib/components/Datagrid/useSortableColumns.d.ts +1 -1
- package/lib/components/Datagrid/useSortableColumns.js +4 -3
- package/lib/components/EditInPlace/EditInPlace.d.ts +1 -1
- package/lib/components/EditInPlace/EditInPlace.js +2 -1
- package/lib/components/EmptyStates/EmptyStateContent.d.ts +30 -1
- package/lib/components/EmptyStates/EmptyStateContent.js +2 -2
- package/lib/components/ExportModal/ExportModal.js +5 -3
- package/lib/components/FeatureFlags/index.d.ts +31 -12
- package/lib/components/FeatureFlags/index.js +46 -15
- package/lib/components/InterstitialScreen/InterstitialScreenBody.js +3 -2
- package/lib/components/InterstitialScreen/InterstitialScreenFooter.js +5 -2
- package/lib/components/InterstitialScreen/InterstitialScreenHeader.js +3 -1
- package/lib/components/ProductiveCard/ProductiveCard.d.ts +1 -1
- package/lib/components/ScrollGradient/ScrollGradient.js +8 -6
- package/lib/components/SidePanel/SidePanel.js +74 -0
- package/lib/components/SidePanel/constants.d.ts +14 -8
- package/lib/components/SidePanel/constants.js +1 -1
- package/lib/components/SidePanel/resizer/Resizer.d.ts +21 -0
- package/lib/components/SidePanel/resizer/Resizer.js +277 -0
- package/lib/components/TruncatedList/TruncatedList.d.ts +1 -1
- package/lib/components/TruncatedList/TruncatedList.js +2 -1
- package/lib/feature-flags.js +5 -1
- package/lib/index.js +1 -0
- package/lib/node_modules/@carbon/{icons-react/node_modules/@carbon/icon-helpers → icon-helpers}/es/index.js +3 -3
- package/lib/node_modules/@carbon/icons-react/es/Icon.js +1 -1
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-10.js +839 -831
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-3.js +621 -643
- package/lib/node_modules/lodash.debounce/index.js +369 -0
- package/lib/node_modules/prop-types/index.js +1 -1
- package/lib/settings.js +0 -4
- package/package.json +15 -15
- package/scss/components/AddSelect/_add-select.scss +12 -13
- package/scss/components/SidePanel/_side-panel-variables.scss +1 -5
- package/scss/components/SidePanel/_side-panel.scss +129 -12
- package/scss/global/decorators/_side-panel-decorator.scss +36 -8
- package/telemetry.yml +17 -0
@@ -0,0 +1,277 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2020, 2025
|
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
|
+
'use strict';
|
9
|
+
|
10
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
11
|
+
|
12
|
+
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
13
|
+
var React = require('react');
|
14
|
+
var cx = require('classnames');
|
15
|
+
var index = require('../../../_virtual/index2.js');
|
16
|
+
|
17
|
+
var _span;
|
18
|
+
const DEBOUNCE_DELAY = 100;
|
19
|
+
/** Primary UI component for user interaction */
|
20
|
+
|
21
|
+
const getRefElement = ref => {
|
22
|
+
if (!ref || !('current' in ref)) {
|
23
|
+
return null;
|
24
|
+
}
|
25
|
+
return ref.current;
|
26
|
+
};
|
27
|
+
const Resizer = /*#__PURE__*/React.forwardRef((_ref, forwardedRef) => {
|
28
|
+
let {
|
29
|
+
orientation,
|
30
|
+
onResize,
|
31
|
+
onResizeEnd,
|
32
|
+
onDoubleClick,
|
33
|
+
className,
|
34
|
+
...rest
|
35
|
+
} = _ref;
|
36
|
+
const prefix = 'clabs';
|
37
|
+
const blockClass = `${prefix}__resizer`;
|
38
|
+
const internalRef = React.useRef(null);
|
39
|
+
const ref = forwardedRef || internalRef; // combine refs, forwarded ref takes priority over internal ref
|
40
|
+
const [isResizing, setIsResizing] = React.useState(false);
|
41
|
+
const startPos = React.useRef({
|
42
|
+
x: 0,
|
43
|
+
y: 0
|
44
|
+
});
|
45
|
+
// Sizes of the previous and next siblings, gets modified during resizing
|
46
|
+
const sizes = React.useRef({
|
47
|
+
prevSiblingSize: {
|
48
|
+
width: 0,
|
49
|
+
height: 0
|
50
|
+
},
|
51
|
+
nextSiblingSize: {
|
52
|
+
width: 0,
|
53
|
+
height: 0
|
54
|
+
}
|
55
|
+
});
|
56
|
+
// Initial sizes of the previous and next siblings, a static reference
|
57
|
+
const initialSizes = React.useRef({
|
58
|
+
prevSiblingSize: {
|
59
|
+
width: 0,
|
60
|
+
height: 0
|
61
|
+
},
|
62
|
+
nextSiblingSize: {
|
63
|
+
width: 0,
|
64
|
+
height: 0
|
65
|
+
}
|
66
|
+
});
|
67
|
+
|
68
|
+
// Debounced function to handle resize end events
|
69
|
+
// This is used to prevent multiple calls during a resize operation especially from keyboard when the key is held down
|
70
|
+
// It will only call the onResizeEnd after the user has stopped resizing
|
71
|
+
const debouncedResizeEnd = React.useRef(index.default(event => {
|
72
|
+
const element = getRefElement(ref);
|
73
|
+
if (element && onResizeEnd) {
|
74
|
+
onResizeEnd(event, ref);
|
75
|
+
}
|
76
|
+
}, DEBOUNCE_DELAY));
|
77
|
+
React.useEffect(() => {
|
78
|
+
const element = getRefElement(ref);
|
79
|
+
if (!element) {
|
80
|
+
return;
|
81
|
+
}
|
82
|
+
const prevSibling = element.previousElementSibling;
|
83
|
+
const nextSibling = element.nextElementSibling;
|
84
|
+
const rect = el => el?.getBoundingClientRect();
|
85
|
+
initialSizes.current = {
|
86
|
+
prevSiblingSize: prevSibling ? {
|
87
|
+
width: rect(prevSibling).width,
|
88
|
+
height: rect(prevSibling).height
|
89
|
+
} : {
|
90
|
+
width: 0,
|
91
|
+
height: 0
|
92
|
+
},
|
93
|
+
nextSiblingSize: nextSibling ? {
|
94
|
+
width: rect(nextSibling).width,
|
95
|
+
height: rect(nextSibling).height
|
96
|
+
} : {
|
97
|
+
width: 0,
|
98
|
+
height: 0
|
99
|
+
}
|
100
|
+
};
|
101
|
+
}, [ref]);
|
102
|
+
const updateSizes = React.useCallback((event, delta) => {
|
103
|
+
const element = getRefElement(ref);
|
104
|
+
if (!element) {
|
105
|
+
return;
|
106
|
+
}
|
107
|
+
if (onResize) {
|
108
|
+
onResize(event, delta);
|
109
|
+
return;
|
110
|
+
}
|
111
|
+
const prevSibling = element.previousElementSibling;
|
112
|
+
const nextSibling = element.nextElementSibling;
|
113
|
+
const prop = orientation === 'horizontal' ? 'height' : 'width';
|
114
|
+
if (prevSibling) {
|
115
|
+
const newSize = sizes.current.prevSiblingSize[prop] + delta;
|
116
|
+
prevSibling.style[prop] = `${newSize}px`;
|
117
|
+
}
|
118
|
+
if (nextSibling) {
|
119
|
+
const newSize = sizes.current.nextSiblingSize[prop] - delta;
|
120
|
+
nextSibling.style[prop] = `${newSize}px`;
|
121
|
+
}
|
122
|
+
}, [onResize, orientation, ref]);
|
123
|
+
const handleMouseMove = React.useCallback(event => {
|
124
|
+
event.preventDefault();
|
125
|
+
event.stopPropagation();
|
126
|
+
const delta = orientation === 'horizontal' ? event.clientY - startPos.current.y : event.clientX - startPos.current.x;
|
127
|
+
updateSizes(event, delta);
|
128
|
+
}, [orientation, updateSizes]);
|
129
|
+
const handleMouseUp = React.useCallback(event => {
|
130
|
+
const element = getRefElement(ref);
|
131
|
+
if (!element) {
|
132
|
+
return;
|
133
|
+
}
|
134
|
+
setIsResizing(false);
|
135
|
+
if (onResizeEnd) {
|
136
|
+
onResizeEnd(event, ref);
|
137
|
+
}
|
138
|
+
const prevSibling = element.previousElementSibling;
|
139
|
+
const nextSibling = element.nextElementSibling;
|
140
|
+
if (prevSibling) {
|
141
|
+
prevSibling.style.transition = '';
|
142
|
+
}
|
143
|
+
if (nextSibling) {
|
144
|
+
nextSibling.style.transition = '';
|
145
|
+
}
|
146
|
+
}, [onResizeEnd, ref]);
|
147
|
+
|
148
|
+
// Effect to add/remove mousemove and mouseup listeners during resizing
|
149
|
+
React.useEffect(() => {
|
150
|
+
if (!isResizing) {
|
151
|
+
return;
|
152
|
+
}
|
153
|
+
window.addEventListener('mousemove', handleMouseMove);
|
154
|
+
window.addEventListener('mouseup', handleMouseUp);
|
155
|
+
return () => {
|
156
|
+
window.removeEventListener('mousemove', handleMouseMove);
|
157
|
+
window.removeEventListener('mouseup', handleMouseUp);
|
158
|
+
};
|
159
|
+
}, [isResizing, handleMouseMove, handleMouseUp]);
|
160
|
+
const handleMouseDown = React.useCallback(event => {
|
161
|
+
event.preventDefault();
|
162
|
+
event.stopPropagation();
|
163
|
+
const element = getRefElement(ref);
|
164
|
+
if (!element) {
|
165
|
+
return;
|
166
|
+
}
|
167
|
+
const prevSibling = element.previousElementSibling;
|
168
|
+
const nextSibling = element.nextElementSibling;
|
169
|
+
const rect = el => el?.getBoundingClientRect();
|
170
|
+
prevSibling && (prevSibling.style.transition = 'none');
|
171
|
+
nextSibling && (nextSibling.style.transition = 'none');
|
172
|
+
setIsResizing(true);
|
173
|
+
startPos.current = {
|
174
|
+
x: event.clientX,
|
175
|
+
y: event.clientY
|
176
|
+
};
|
177
|
+
sizes.current = {
|
178
|
+
prevSiblingSize: prevSibling ? {
|
179
|
+
width: rect(prevSibling).width,
|
180
|
+
height: rect(prevSibling).height
|
181
|
+
} : {
|
182
|
+
width: 0,
|
183
|
+
height: 0
|
184
|
+
},
|
185
|
+
nextSiblingSize: nextSibling ? {
|
186
|
+
width: rect(nextSibling).width,
|
187
|
+
height: rect(nextSibling).height
|
188
|
+
} : {
|
189
|
+
width: 0,
|
190
|
+
height: 0
|
191
|
+
}
|
192
|
+
};
|
193
|
+
}, [ref]);
|
194
|
+
const handleKeyDown = React.useCallback(event => {
|
195
|
+
const navigationKeys = ['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'Home', 'End'];
|
196
|
+
if (![...navigationKeys, 'PageUp', 'PageDown'].includes(event.key)) {
|
197
|
+
return;
|
198
|
+
}
|
199
|
+
const element = getRefElement(ref);
|
200
|
+
if (!element) {
|
201
|
+
return;
|
202
|
+
}
|
203
|
+
event.preventDefault();
|
204
|
+
event.stopPropagation();
|
205
|
+
const prevSibling = element.previousElementSibling;
|
206
|
+
const nextSibling = element.nextElementSibling;
|
207
|
+
const getSize = el => {
|
208
|
+
const rect = el?.getBoundingClientRect();
|
209
|
+
return {
|
210
|
+
width: rect?.width || 0,
|
211
|
+
height: rect?.height || 0
|
212
|
+
};
|
213
|
+
};
|
214
|
+
sizes.current = {
|
215
|
+
prevSiblingSize: getSize(prevSibling),
|
216
|
+
nextSiblingSize: getSize(nextSibling)
|
217
|
+
};
|
218
|
+
const step = event.shiftKey ? 25 : 5;
|
219
|
+
let delta = 0;
|
220
|
+
const isHorizontal = orientation === 'horizontal';
|
221
|
+
const keyMap = {
|
222
|
+
ArrowUp: () => isHorizontal ? delta = -step : null,
|
223
|
+
ArrowDown: () => isHorizontal ? delta = step : null,
|
224
|
+
ArrowLeft: () => !isHorizontal ? delta = -step : null,
|
225
|
+
ArrowRight: () => !isHorizontal ? delta = step : null,
|
226
|
+
Home: () => delta = isHorizontal ? -sizes.current.prevSiblingSize.height : -sizes.current.prevSiblingSize.width,
|
227
|
+
End: () => delta = isHorizontal ? sizes.current.nextSiblingSize.height : sizes.current.nextSiblingSize.width
|
228
|
+
};
|
229
|
+
keyMap[event.key]?.();
|
230
|
+
updateSizes(event, delta);
|
231
|
+
debouncedResizeEnd?.current(event);
|
232
|
+
}, [orientation, updateSizes, debouncedResizeEnd, ref]);
|
233
|
+
const handleDoubleClick = event => {
|
234
|
+
event.preventDefault();
|
235
|
+
const element = getRefElement(ref);
|
236
|
+
if (!element) {
|
237
|
+
return;
|
238
|
+
}
|
239
|
+
const prevSibling = element.previousElementSibling;
|
240
|
+
const nextSibling = element.nextElementSibling;
|
241
|
+
if (onDoubleClick) {
|
242
|
+
onDoubleClick(event);
|
243
|
+
} else {
|
244
|
+
const prop = orientation === 'horizontal' ? 'height' : 'width';
|
245
|
+
if (prevSibling) {
|
246
|
+
prevSibling.style[prop] = `${initialSizes.current.prevSiblingSize[prop]}px`;
|
247
|
+
}
|
248
|
+
if (nextSibling) {
|
249
|
+
nextSibling.style[prop] = `${initialSizes.current.nextSiblingSize[prop]}px`;
|
250
|
+
}
|
251
|
+
}
|
252
|
+
};
|
253
|
+
return (
|
254
|
+
/*#__PURE__*/
|
255
|
+
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
256
|
+
React.createElement("div", _rollupPluginBabelHelpers.extends({}, rest, {
|
257
|
+
ref: ref,
|
258
|
+
role: "separator"
|
259
|
+
// eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
|
260
|
+
,
|
261
|
+
tabIndex: 0,
|
262
|
+
"aria-orientation": orientation,
|
263
|
+
"aria-live": "assertive",
|
264
|
+
onMouseDown: handleMouseDown,
|
265
|
+
onDoubleClick: handleDoubleClick,
|
266
|
+
onKeyDown: handleKeyDown,
|
267
|
+
className: cx([className, blockClass, `${blockClass}--${orientation}`])
|
268
|
+
}), _span || (_span = /*#__PURE__*/React.createElement("span", {
|
269
|
+
className: "sr-only"
|
270
|
+
}, "Use arrow keys to resize, hold Shift for larger steps. Double-click to reset.")))
|
271
|
+
);
|
272
|
+
});
|
273
|
+
Resizer.displayName = 'Resizer';
|
274
|
+
|
275
|
+
exports.DEBOUNCE_DELAY = DEBOUNCE_DELAY;
|
276
|
+
exports.Resizer = Resizer;
|
277
|
+
exports.default = Resizer;
|
@@ -58,6 +58,7 @@ exports.TruncatedList = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
58
58
|
// (difference of the guessed height to rendered height - a few pixels)
|
59
59
|
const [listHeight, setListHeight] = React.useState(minItems * 16);
|
60
60
|
const listRef = React.useRef(undefined);
|
61
|
+
const carbonPrefix = react.usePrefix();
|
61
62
|
const handleToggle = () => {
|
62
63
|
setIsCollapsed(prev => !prev);
|
63
64
|
};
|
@@ -99,7 +100,7 @@ exports.TruncatedList = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
99
100
|
className: `${blockClass}__list`,
|
100
101
|
ref: listRef
|
101
102
|
}, isCollapsed ? childrenArray.slice(0, minItems) : children), childrenArray.length > minItems && /*#__PURE__*/React.createElement(react.Button, {
|
102
|
-
className: cx(`${blockClass}__button`, `${
|
103
|
+
className: cx(`${blockClass}__button`, `${carbonPrefix}--link`, buttonClassName),
|
103
104
|
kind: "ghost",
|
104
105
|
size: "sm",
|
105
106
|
onClick: handleToggle
|
package/lib/feature-flags.js
CHANGED
@@ -35,5 +35,9 @@ FeatureFlags__namespace.merge({
|
|
35
35
|
'enable-datagrid-useCustomizeColumns': false,
|
36
36
|
'ExampleComponent.secondaryIcon': false,
|
37
37
|
'ExampleComponent.useExample': false,
|
38
|
-
'enable-
|
38
|
+
'enable-test-flag-a': false,
|
39
|
+
// used in testing
|
40
|
+
'enable-test-flag-b': true,
|
41
|
+
// used in testing
|
42
|
+
enableSidepanelResizer: false
|
39
43
|
});
|
package/lib/index.js
CHANGED
@@ -82,6 +82,7 @@ var EditFullPage = require('./components/EditFullPage/EditFullPage.js');
|
|
82
82
|
var EditUpdateCards = require('./components/EditUpdateCards/EditUpdateCards.js');
|
83
83
|
var Checklist = require('./components/Checklist/Checklist.js');
|
84
84
|
var Coachmark = require('./components/Coachmark/Coachmark.js');
|
85
|
+
require('./components/Coachmark/CoachmarkTagline.js');
|
85
86
|
var CoachmarkBeacon = require('./components/CoachmarkBeacon/CoachmarkBeacon.js');
|
86
87
|
var CoachmarkButton = require('./components/CoachmarkButton/CoachmarkButton.js');
|
87
88
|
var CoachmarkFixed = require('./components/CoachmarkFixed/CoachmarkFixed.js');
|
@@ -42,8 +42,8 @@ function _objectWithoutProperties(e, t) {
|
|
42
42
|
r,
|
43
43
|
i = _objectWithoutPropertiesLoose(e, t);
|
44
44
|
if (Object.getOwnPropertySymbols) {
|
45
|
-
var
|
46
|
-
for (r = 0; r <
|
45
|
+
var n = Object.getOwnPropertySymbols(e);
|
46
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
47
47
|
}
|
48
48
|
return i;
|
49
49
|
}
|
@@ -51,7 +51,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
51
51
|
if (null == r) return {};
|
52
52
|
var t = {};
|
53
53
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
54
|
-
if (e.
|
54
|
+
if (-1 !== e.indexOf(n)) continue;
|
55
55
|
t[n] = r[n];
|
56
56
|
}
|
57
57
|
return t;
|
@@ -9,7 +9,7 @@
|
|
9
9
|
|
10
10
|
Object.defineProperty(exports, '__esModule', { value: true });
|
11
11
|
|
12
|
-
var index = require('
|
12
|
+
var index = require('../../icon-helpers/es/index.js');
|
13
13
|
var index$1 = require('../../../../_virtual/index.js');
|
14
14
|
var React = require('react');
|
15
15
|
|