@carbon/ibm-products 2.60.0 → 2.61.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/index-full-carbon.css +113 -497
- 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 +64 -492
- 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 +93 -492
- 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 +93 -510
- 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/ActionBar/ActionBar.d.ts +3 -3
- package/es/components/ActionBar/ActionBar.js +47 -150
- package/es/components/ActionBar/ActionBarOverflowItems.js +1 -1
- package/es/components/Checklist/ChecklistChart.js +1 -1
- package/es/components/Coachmark/Coachmark.js +1 -1
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +3 -3
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +4 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +7 -2
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +7 -2
- package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +15 -15
- package/es/components/ConditionBuilder/utils/util.d.ts +1 -0
- package/es/components/ConditionBuilder/utils/util.js +7 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/common.js +1 -3
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -2
- package/es/components/Datagrid/useDatagrid.js +2 -2
- package/es/components/Datagrid/useInfiniteScroll.js +2 -5
- package/es/components/Datagrid/useRowIsMouseOver.d.ts +1 -1
- package/es/components/Datagrid/useRowIsMouseOver.js +2 -1
- package/es/components/Datagrid/useStickyColumn.d.ts +1 -1
- package/es/components/Datagrid/useStickyColumn.js +1 -1
- package/es/components/FilterSummary/FilterSummary.js +1 -1
- package/es/components/InterstitialScreen/InterstitialScreen.js +1 -1
- package/es/components/Nav/NavItem.js +1 -1
- package/es/components/NotificationsPanel/NotificationsPanel.d.ts +5 -0
- package/es/components/NotificationsPanel/NotificationsPanel.js +11 -17
- package/es/components/OptionsTile/OptionsTile.d.ts +2 -3
- package/es/components/OptionsTile/OptionsTile.js +49 -97
- package/es/components/PageHeader/PageHeader.js +16 -14
- package/es/components/PageHeader/PageHeaderTitle.js +2 -2
- package/es/components/ScrollGradient/ScrollGradient.js +74 -25
- package/es/components/ScrollGradient/constants.d.ts +0 -5
- package/es/components/ScrollGradient/constants.js +2 -47
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +1 -1
- package/es/components/TagOverflow/TagOverflow.d.ts +5 -1
- package/es/components/Tearsheet/Tearsheet.d.ts +5 -1
- package/es/components/Tearsheet/TearsheetNarrow.d.ts +5 -1
- package/es/components/WebTerminal/WebTerminal.js +0 -13
- package/es/global/js/hooks/useControllableState.d.ts +12 -24
- package/es/global/js/hooks/useControllableState.js +18 -60
- package/es/global/js/hooks/useOverflowItems.d.ts +7 -2
- package/es/global/js/hooks/useOverflowItems.js +50 -17
- package/es/global/js/hooks/useOverflowString.d.ts +9 -0
- package/es/global/js/hooks/useOverflowString.js +52 -0
- package/es/global/js/hooks/usePresence.d.ts +1 -1
- package/es/global/js/hooks/usePresence.js +2 -2
- package/es/global/js/utils/checkForOverflow.js +1 -11
- package/es/global/js/utils/clamp.d.ts +7 -0
- package/es/global/js/utils/clamp.js +25 -0
- package/es/global/js/utils/debounce.d.ts +7 -0
- package/es/global/js/utils/debounce.js +30 -0
- package/es/global/js/utils/deepCompareObject.d.ts +7 -0
- package/es/global/js/utils/deepCompareObject.js +47 -0
- package/es/global/js/utils/throttle.d.ts +7 -0
- package/es/global/js/utils/throttle.js +19 -0
- package/es/global/js/utils/uuidv4.d.ts +2 -2
- package/es/global/js/utils/uuidv4.js +3 -2
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-10.js +2787 -0
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-3.js +1013 -943
- package/lib/components/ActionBar/ActionBar.d.ts +3 -3
- package/lib/components/ActionBar/ActionBar.js +45 -148
- package/lib/components/ActionBar/ActionBarOverflowItems.js +1 -1
- package/lib/components/Checklist/ChecklistChart.js +2 -2
- package/lib/components/Coachmark/Coachmark.js +2 -2
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +4 -4
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +3 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +6 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -1
- package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +15 -15
- package/lib/components/ConditionBuilder/utils/util.d.ts +1 -0
- package/lib/components/ConditionBuilder/utils/util.js +7 -0
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/common.js +1 -3
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +2 -2
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -2
- package/lib/components/Datagrid/useDatagrid.js +2 -2
- package/lib/components/Datagrid/useInfiniteScroll.js +2 -5
- package/lib/components/Datagrid/useRowIsMouseOver.d.ts +1 -1
- package/lib/components/Datagrid/useRowIsMouseOver.js +3 -2
- package/lib/components/Datagrid/useStickyColumn.d.ts +1 -1
- package/lib/components/Datagrid/useStickyColumn.js +2 -2
- package/lib/components/FilterSummary/FilterSummary.js +2 -2
- package/lib/components/InterstitialScreen/InterstitialScreen.js +3 -3
- package/lib/components/Nav/NavItem.js +2 -2
- package/lib/components/NotificationsPanel/NotificationsPanel.d.ts +5 -0
- package/lib/components/NotificationsPanel/NotificationsPanel.js +11 -17
- package/lib/components/OptionsTile/OptionsTile.d.ts +2 -3
- package/lib/components/OptionsTile/OptionsTile.js +49 -97
- package/lib/components/PageHeader/PageHeader.js +16 -14
- package/lib/components/PageHeader/PageHeaderTitle.js +2 -2
- package/lib/components/ScrollGradient/ScrollGradient.js +72 -23
- package/lib/components/ScrollGradient/constants.d.ts +0 -5
- package/lib/components/ScrollGradient/constants.js +1 -48
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +2 -2
- package/lib/components/TagOverflow/TagOverflow.d.ts +5 -1
- package/lib/components/Tearsheet/Tearsheet.d.ts +5 -1
- package/lib/components/Tearsheet/TearsheetNarrow.d.ts +5 -1
- package/lib/components/WebTerminal/WebTerminal.js +0 -13
- package/lib/global/js/hooks/useControllableState.d.ts +12 -24
- package/lib/global/js/hooks/useControllableState.js +17 -59
- package/lib/global/js/hooks/useOverflowItems.d.ts +7 -2
- package/lib/global/js/hooks/useOverflowItems.js +49 -16
- package/lib/global/js/hooks/useOverflowString.d.ts +9 -0
- package/lib/global/js/hooks/useOverflowString.js +55 -0
- package/lib/global/js/hooks/usePresence.d.ts +1 -1
- package/lib/global/js/hooks/usePresence.js +2 -2
- package/lib/global/js/utils/checkForOverflow.js +0 -11
- package/lib/global/js/utils/clamp.d.ts +7 -0
- package/lib/global/js/utils/clamp.js +27 -0
- package/lib/global/js/utils/debounce.d.ts +7 -0
- package/lib/global/js/utils/debounce.js +32 -0
- package/lib/global/js/utils/deepCompareObject.d.ts +7 -0
- package/lib/global/js/utils/deepCompareObject.js +49 -0
- package/lib/global/js/utils/throttle.d.ts +7 -0
- package/lib/global/js/utils/throttle.js +21 -0
- package/lib/global/js/utils/uuidv4.d.ts +2 -2
- package/lib/global/js/utils/uuidv4.js +3 -2
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-10.js +2913 -0
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-3.js +1018 -948
- package/package.json +6 -7
- package/scss/components/NotificationsPanel/_notifications-panel.scss +33 -20
- package/scss/components/ScrollGradient/_scroll-gradient.scss +30 -0
- package/scss/components/UserAvatar/_user-avatar.scss +2 -6
- package/scss/components/WebTerminal/_web-terminal.scss +13 -1
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-9.js +0 -2959
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-9.js +0 -3085
@@ -0,0 +1,49 @@
|
|
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
|
+
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
11
|
+
|
12
|
+
/**
|
13
|
+
* Copyright IBM Corp. 2025, 2025
|
14
|
+
*
|
15
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
17
|
+
*/
|
18
|
+
|
19
|
+
var _deepCompareObject = function deepCompareObject(a, b) {
|
20
|
+
if (Array.isArray(a)) {
|
21
|
+
if (!Array.isArray(b) || a.length !== b.length) {
|
22
|
+
return false;
|
23
|
+
}
|
24
|
+
for (var i = 0; i < a.length; i++) {
|
25
|
+
if (!_deepCompareObject(a[i], b[i])) {
|
26
|
+
return false;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
return true;
|
30
|
+
}
|
31
|
+
if (_rollupPluginBabelHelpers.typeof(a) === 'object' && a !== null && b !== null) {
|
32
|
+
if (!(_rollupPluginBabelHelpers.typeof(b) === 'object')) {
|
33
|
+
return false;
|
34
|
+
}
|
35
|
+
var keys = Object.keys(a);
|
36
|
+
if (keys.length !== Object.keys(b).length) {
|
37
|
+
return false;
|
38
|
+
}
|
39
|
+
for (var key in a) {
|
40
|
+
if (!_deepCompareObject(a[key], b[key])) {
|
41
|
+
return false;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
return true;
|
45
|
+
}
|
46
|
+
return a === b;
|
47
|
+
};
|
48
|
+
|
49
|
+
exports.deepCompareObject = _deepCompareObject;
|
@@ -0,0 +1,21 @@
|
|
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
|
+
var throttle = function throttle(fn) {
|
11
|
+
var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 100;
|
12
|
+
var time = Date.now();
|
13
|
+
return function () {
|
14
|
+
if (time + delay - Date.now() <= 0) {
|
15
|
+
fn();
|
16
|
+
time = Date.now();
|
17
|
+
}
|
18
|
+
};
|
19
|
+
};
|
20
|
+
|
21
|
+
exports.throttle = throttle;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
export default uuidv4;
|
2
2
|
/**
|
3
|
-
* Copyright IBM Corp. 2024
|
3
|
+
* Copyright IBM Corp. 2024, 2025
|
4
4
|
*
|
5
5
|
* This source code is licensed under the Apache-2.0 license found in the
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
7
7
|
*/
|
8
|
-
declare function uuidv4():
|
8
|
+
declare function uuidv4(prefix?: string): string;
|
@@ -12,12 +12,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
12
12
|
// https://stackoverflow.com/a/2117523
|
13
13
|
|
14
14
|
function uuidv4() {
|
15
|
+
var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
15
16
|
var randomValues = function randomValues(c) {
|
16
17
|
return typeof crypto !== 'undefined' ? crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4 : Math.random() * 16 >> c / 4;
|
17
18
|
};
|
18
|
-
return ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, function (c) {
|
19
|
+
return "".concat(prefix).concat(([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, function (c) {
|
19
20
|
return (c ^ randomValues(c)).toString(16);
|
20
|
-
});
|
21
|
+
}));
|
21
22
|
}
|
22
23
|
|
23
24
|
exports.default = uuidv4;
|