@carbon/ibm-products 2.43.2-canary.332 → 2.43.2-canary.338
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 +173 -87
- 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 +8 -0
- 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 +30 -19
- 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 +91 -44
- 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 +2 -1
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.d.ts +3 -1
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +11 -3
- package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +2 -2
- package/es/components/Nav/NavList.js +1 -1
- package/es/components/NotificationsPanel/NotificationsPanel.js +2 -1
- package/es/components/PageHeader/PageHeader.d.ts +7 -3
- package/es/components/PageHeader/PageHeader.js +4 -2
- package/es/node_modules/@carbon/icons-react/es/generated/{bucket-2.js → bucket-3.js} +963 -1037
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-9.js +937 -885
- package/lib/components/ActionBar/ActionBar.d.ts +2 -1
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.d.ts +3 -1
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +11 -3
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +2 -2
- package/lib/components/Nav/NavList.js +2 -2
- package/lib/components/NotificationsPanel/NotificationsPanel.js +2 -1
- package/lib/components/PageHeader/PageHeader.d.ts +7 -3
- package/lib/components/PageHeader/PageHeader.js +4 -2
- package/lib/node_modules/@carbon/icons-react/es/generated/{bucket-2.js → bucket-3.js} +1078 -1152
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-9.js +980 -928
- package/package.json +11 -11
@@ -18,7 +18,7 @@ import '../../global/js/utils/props-helper.js';
|
|
18
18
|
import { TooltipTrigger } from '../TooltipTrigger/TooltipTrigger.js';
|
19
19
|
|
20
20
|
var _TooltipTrigger;
|
21
|
-
var _excluded = ["breadcrumbs", "className", "maxVisible", "noTrailingSlash", "overflowAriaLabel", "overflowTooltipAlign"],
|
21
|
+
var _excluded = ["breadcrumbs", "className", "label", "maxVisible", "noTrailingSlash", "overflowAriaLabel", "overflowTooltipAlign"],
|
22
22
|
_excluded2 = ["label", "key", "title", "id", "shortTitle"],
|
23
23
|
_excluded3 = ["className", "key", "label", "shortTitle", "title"];
|
24
24
|
|
@@ -35,6 +35,7 @@ var BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
|
|
35
35
|
var _backItem, _backItem2, _backItem3;
|
36
36
|
var breadcrumbs = _ref.breadcrumbs,
|
37
37
|
className = _ref.className,
|
38
|
+
label = _ref.label,
|
38
39
|
maxVisible = _ref.maxVisible,
|
39
40
|
noTrailingSlash = _ref.noTrailingSlash,
|
40
41
|
overflowAriaLabel = _ref.overflowAriaLabel,
|
@@ -93,7 +94,9 @@ var BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
|
|
93
94
|
className: "".concat(blockClass, "__breadcrumb-container ").concat(blockClass, "__breadcrumb-container--hidden"),
|
94
95
|
"aria-hidden": true,
|
95
96
|
ref: sizingContainerRef
|
96
|
-
}, /*#__PURE__*/React__default.createElement(Breadcrumb,
|
97
|
+
}, /*#__PURE__*/React__default.createElement(Breadcrumb, {
|
98
|
+
"aria-label": "".concat(label, "-hidden")
|
99
|
+
}, /*#__PURE__*/React__default.createElement(BreadcrumbItem, {
|
97
100
|
key: "".concat(blockClass, "-hidden-overflow-").concat(internalId)
|
98
101
|
}, /*#__PURE__*/React__default.createElement(OverflowMenu, {
|
99
102
|
"aria-label": overflowAriaLabel,
|
@@ -117,7 +120,7 @@ var BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
|
|
117
120
|
title: title !== null && title !== void 0 ? title : label
|
118
121
|
}), label);
|
119
122
|
}))));
|
120
|
-
}, [breadcrumbs, overflowAriaLabel]);
|
123
|
+
}, [breadcrumbs, label, overflowAriaLabel]);
|
121
124
|
useEffect(function () {
|
122
125
|
// updates displayedBreadcrumbItems and overflowBreadcrumbItems based on displayCount and breadcrumbs
|
123
126
|
/* istanbul ignore if */
|
@@ -259,6 +262,7 @@ var BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
|
|
259
262
|
}, /*#__PURE__*/React__default.createElement("div", {
|
260
263
|
className: cx(["".concat(blockClass, "__space")])
|
261
264
|
}, hiddenSizingItems, /*#__PURE__*/React__default.createElement(Breadcrumb, _extends({
|
265
|
+
"aria-label": label,
|
262
266
|
className: cx("".concat(blockClass, "__breadcrumb-container"), _defineProperty({}, "".concat(blockClass, "__breadcrumb-container-with-items"), displayedBreadcrumbItems.length > 1)),
|
263
267
|
noTrailingSlash: noTrailingSlash
|
264
268
|
}, other), ((_backItem = backItem) === null || _backItem === void 0 ? void 0 : _backItem.href) && (((_backItem2 = backItem) === null || _backItem2 === void 0 ? void 0 : _backItem2.label) || ((_backItem3 = backItem) === null || _backItem3 === void 0 ? void 0 : _backItem3.title)) && /*#__PURE__*/React__default.createElement(BreadcrumbItem, {
|
@@ -313,6 +317,10 @@ BreadcrumbWithOverflow.propTypes = {
|
|
313
317
|
* className
|
314
318
|
*/
|
315
319
|
className: PropTypes.string,
|
320
|
+
/**
|
321
|
+
* Label for the Breadcrumb component
|
322
|
+
*/
|
323
|
+
label: PropTypes.string,
|
316
324
|
/**
|
317
325
|
* maxVisible: maximum visible breadcrumb-items before overflow is used (values less than 1 are treated as 1)
|
318
326
|
*/
|
@@ -45,10 +45,10 @@ var CoachmarkBeacon = /*#__PURE__*/React__default.forwardRef(function (_ref, ref
|
|
45
45
|
tabIndex: 0,
|
46
46
|
type: "button"
|
47
47
|
}, coachmark.buttonProps, {
|
48
|
-
"aria-label": label,
|
49
48
|
className: "".concat(blockClass, "__target")
|
50
49
|
}), /*#__PURE__*/React__default.createElement("svg", {
|
51
|
-
className: "".concat(blockClass, "__center")
|
50
|
+
className: "".concat(blockClass, "__center"),
|
51
|
+
"aria-label": label
|
52
52
|
}, /*#__PURE__*/React__default.createElement("title", null, label), _circle || (_circle = /*#__PURE__*/React__default.createElement("circle", {
|
53
53
|
r: 1,
|
54
54
|
cx: 38,
|
@@ -11,7 +11,7 @@ import cx from 'classnames';
|
|
11
11
|
import { p as propTypesExports } from '../../_virtual/index.js';
|
12
12
|
import NavItem, { blockClass as blockClass$1 } from './NavItem.js';
|
13
13
|
import { pkg } from '../../settings.js';
|
14
|
-
import { ChevronDown } from '../../node_modules/@carbon/icons-react/es/generated/bucket-
|
14
|
+
import { ChevronDown } from '../../node_modules/@carbon/icons-react/es/generated/bucket-3.js';
|
15
15
|
|
16
16
|
var componentName = 'NavList';
|
17
17
|
var blockClass = "".concat(pkg.prefix, "--nav-list");
|
@@ -459,7 +459,8 @@ var NotificationsPanel = /*#__PURE__*/React__default.forwardRef(function (_ref,
|
|
459
459
|
iconDescription: settingsIconDescription,
|
460
460
|
onClick: function onClick() {
|
461
461
|
return onSettingsClick();
|
462
|
-
}
|
462
|
+
},
|
463
|
+
hasIconOnly: true
|
463
464
|
})) : null)), /*#__PURE__*/React__default.createElement("button", {
|
464
465
|
type: "button",
|
465
466
|
className: "".concat(carbonPrefix, "--visually-hidden"),
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference path="../../../src/custom-typings/index.d.ts" />
|
2
|
-
import { Tag } from '@carbon/react';
|
3
|
-
import {
|
2
|
+
import { Tag, ButtonProps, PopoverAlignment } from '@carbon/react';
|
3
|
+
import { TagProps } from '@carbon/react/lib/components/Tag/Tag';
|
4
4
|
import React, { PropsWithChildren, ReactNode } from 'react';
|
5
5
|
interface ActionBarItem extends ButtonProps {
|
6
6
|
iconDescription: string;
|
@@ -134,7 +134,7 @@ type PageActionProps = {
|
|
134
134
|
pageActions?: never;
|
135
135
|
pageActionsOverflowLabel?: ReactNode;
|
136
136
|
};
|
137
|
-
interface Tag extends TagProps {
|
137
|
+
interface Tag extends TagProps<React.ElementType> {
|
138
138
|
label: string;
|
139
139
|
}
|
140
140
|
interface TitleIcon {
|
@@ -189,6 +189,10 @@ interface PageHeaderBaseProps extends PropsWithChildren {
|
|
189
189
|
* align breadcrumb overflow tooltip
|
190
190
|
*/
|
191
191
|
breadcrumbOverflowTooltipAlign?: PopoverAlignment;
|
192
|
+
/**
|
193
|
+
* Label for the Breadcrumb component
|
194
|
+
*/
|
195
|
+
breadcrumbLabel?: string;
|
192
196
|
/**
|
193
197
|
* Specifies class(es) to be applied to the top-level PageHeader node.
|
194
198
|
* Optional.
|
@@ -25,7 +25,7 @@ import { BreadcrumbWithOverflow } from '../BreadcrumbWithOverflow/BreadcrumbWith
|
|
25
25
|
import { ActionBar } from '../ActionBar/ActionBar.js';
|
26
26
|
import { ButtonSetWithOverflow } from '../ButtonSetWithOverflow/ButtonSetWithOverflow.js';
|
27
27
|
|
28
|
-
var _excluded = ["actionBarItems", "actionBarMenuOptionsClass", "actionBarOverflowAriaLabel", "allTagsModalSearchLabel", "allTagsModalSearchPlaceholderText", "allTagsModalTitle", "hasBackgroundAlways", "breadcrumbOverflowAriaLabel", "breadcrumbs", "children", "className", "collapseHeader", "collapseHeaderIconDescription", "collapseTitle", "disableBreadcrumbScroll", "enableBreadcrumbScroll", "expandHeaderIconDescription", "fullWidthGrid", "hasCollapseHeaderToggle", "narrowGrid", "navigation", "pageActions", "pageActionsOverflowLabel", "pageActionsMenuOptionsClass", "showAllTagsLabel", "subtitle", "tags", "title", "withoutBackground", "breadcrumbOverflowTooltipAlign"];
|
28
|
+
var _excluded = ["actionBarItems", "actionBarMenuOptionsClass", "actionBarOverflowAriaLabel", "allTagsModalSearchLabel", "allTagsModalSearchPlaceholderText", "allTagsModalTitle", "hasBackgroundAlways", "breadcrumbOverflowAriaLabel", "breadcrumbLabel", "breadcrumbs", "children", "className", "collapseHeader", "collapseHeaderIconDescription", "collapseTitle", "disableBreadcrumbScroll", "enableBreadcrumbScroll", "expandHeaderIconDescription", "fullWidthGrid", "hasCollapseHeaderToggle", "narrowGrid", "navigation", "pageActions", "pageActionsOverflowLabel", "pageActionsMenuOptionsClass", "showAllTagsLabel", "subtitle", "tags", "title", "withoutBackground", "breadcrumbOverflowTooltipAlign"];
|
29
29
|
var componentName = 'PageHeader';
|
30
30
|
pkg._silenceWarnings(true);
|
31
31
|
pkg.component.ActionBar = true;
|
@@ -46,6 +46,7 @@ var PageHeader = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
46
46
|
allTagsModalTitle = _ref.allTagsModalTitle,
|
47
47
|
deprecated_hasBackgroundAlways = _ref.hasBackgroundAlways,
|
48
48
|
breadcrumbOverflowAriaLabel = _ref.breadcrumbOverflowAriaLabel,
|
49
|
+
breadcrumbLabel = _ref.breadcrumbLabel,
|
49
50
|
breadcrumbs = _ref.breadcrumbs,
|
50
51
|
children = _ref.children,
|
51
52
|
className = _ref.className,
|
@@ -385,7 +386,8 @@ var PageHeader = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
385
386
|
overflowAriaLabel: breadcrumbOverflowAriaLabel,
|
386
387
|
breadcrumbs: displayedBreadcrumbs,
|
387
388
|
overflowTooltipAlign: breadcrumbOverflowTooltipAlign,
|
388
|
-
maxVisible: undefined
|
389
|
+
maxVisible: undefined,
|
390
|
+
label: breadcrumbLabel
|
389
391
|
})), /*#__PURE__*/React__default.createElement(Column, {
|
390
392
|
className: cx(["".concat(blockClass, "__action-bar-column ").concat(blockClass, "__action-bar-column--background"), _defineProperty(_defineProperty({}, "".concat(blockClass, "__action-bar-column--has-page-actions"), pageActions), "".concat(blockClass, "__action-bar-column--influenced-by-collapse-button"), spaceForCollapseButton)])
|
391
393
|
}, /*#__PURE__*/React__default.createElement("div", {
|