@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.
Files changed (37) hide show
  1. package/css/index-full-carbon.css +173 -87
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +1 -1
  4. package/css/index-full-carbon.min.css.map +1 -1
  5. package/css/index-without-carbon-released-only.css +8 -0
  6. package/css/index-without-carbon-released-only.css.map +1 -1
  7. package/css/index-without-carbon-released-only.min.css +1 -1
  8. package/css/index-without-carbon-released-only.min.css.map +1 -1
  9. package/css/index-without-carbon.css +30 -19
  10. package/css/index-without-carbon.css.map +1 -1
  11. package/css/index-without-carbon.min.css +1 -1
  12. package/css/index-without-carbon.min.css.map +1 -1
  13. package/css/index.css +91 -44
  14. package/css/index.css.map +1 -1
  15. package/css/index.min.css +1 -1
  16. package/css/index.min.css.map +1 -1
  17. package/es/components/ActionBar/ActionBar.d.ts +2 -1
  18. package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.d.ts +3 -1
  19. package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +11 -3
  20. package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +2 -2
  21. package/es/components/Nav/NavList.js +1 -1
  22. package/es/components/NotificationsPanel/NotificationsPanel.js +2 -1
  23. package/es/components/PageHeader/PageHeader.d.ts +7 -3
  24. package/es/components/PageHeader/PageHeader.js +4 -2
  25. package/es/node_modules/@carbon/icons-react/es/generated/{bucket-2.js → bucket-3.js} +963 -1037
  26. package/es/node_modules/@carbon/icons-react/es/generated/bucket-9.js +937 -885
  27. package/lib/components/ActionBar/ActionBar.d.ts +2 -1
  28. package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.d.ts +3 -1
  29. package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +11 -3
  30. package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +2 -2
  31. package/lib/components/Nav/NavList.js +2 -2
  32. package/lib/components/NotificationsPanel/NotificationsPanel.js +2 -1
  33. package/lib/components/PageHeader/PageHeader.d.ts +7 -3
  34. package/lib/components/PageHeader/PageHeader.js +4 -2
  35. package/lib/node_modules/@carbon/icons-react/es/generated/{bucket-2.js → bucket-3.js} +1078 -1152
  36. package/lib/node_modules/@carbon/icons-react/es/generated/bucket-9.js +980 -928
  37. package/package.json +11 -11
@@ -1,5 +1,6 @@
1
+ /// <reference path="../../../src/custom-typings/index.d.ts" />
1
2
  import React, { PropsWithChildren, ForwardedRef } from 'react';
2
- import { ButtonProps } from '@carbon/type';
3
+ import { ButtonProps } from '@carbon/react';
3
4
  import { CarbonIconType } from '@carbon/icons-react/lib/CarbonIcon';
4
5
  interface Action extends ButtonProps {
5
6
  id?: string;
@@ -1,7 +1,8 @@
1
- export function BreadcrumbWithOverflow({ breadcrumbs, className, maxVisible, noTrailingSlash, overflowAriaLabel, overflowTooltipAlign, ...other }: {
1
+ export function BreadcrumbWithOverflow({ breadcrumbs, className, label, maxVisible, noTrailingSlash, overflowAriaLabel, overflowTooltipAlign, ...other }: {
2
2
  [x: string]: any;
3
3
  breadcrumbs: any;
4
4
  className: any;
5
+ label: any;
5
6
  maxVisible: any;
6
7
  noTrailingSlash: any;
7
8
  overflowAriaLabel: any;
@@ -36,6 +37,7 @@ export namespace BreadcrumbWithOverflow {
36
37
  title: any;
37
38
  }> | null | undefined)[]>;
38
39
  let className: PropTypes.Requireable<string>;
40
+ let label: PropTypes.Requireable<string>;
39
41
  let maxVisible: PropTypes.Requireable<number>;
40
42
  let noTrailingSlash: PropTypes.Requireable<boolean>;
41
43
  let overflowAriaLabel: any;
@@ -20,7 +20,7 @@ require('../../global/js/utils/props-helper.js');
20
20
  var TooltipTrigger = require('../TooltipTrigger/TooltipTrigger.js');
21
21
 
22
22
  var _TooltipTrigger;
23
- var _excluded = ["breadcrumbs", "className", "maxVisible", "noTrailingSlash", "overflowAriaLabel", "overflowTooltipAlign"],
23
+ var _excluded = ["breadcrumbs", "className", "label", "maxVisible", "noTrailingSlash", "overflowAriaLabel", "overflowTooltipAlign"],
24
24
  _excluded2 = ["label", "key", "title", "id", "shortTitle"],
25
25
  _excluded3 = ["className", "key", "label", "shortTitle", "title"];
26
26
 
@@ -37,6 +37,7 @@ exports.BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
37
37
  var _backItem, _backItem2, _backItem3;
38
38
  var breadcrumbs = _ref.breadcrumbs,
39
39
  className = _ref.className,
40
+ label = _ref.label,
40
41
  maxVisible = _ref.maxVisible,
41
42
  noTrailingSlash = _ref.noTrailingSlash,
42
43
  overflowAriaLabel = _ref.overflowAriaLabel,
@@ -95,7 +96,9 @@ exports.BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
95
96
  className: "".concat(blockClass, "__breadcrumb-container ").concat(blockClass, "__breadcrumb-container--hidden"),
96
97
  "aria-hidden": true,
97
98
  ref: sizingContainerRef
98
- }, /*#__PURE__*/React.createElement(react.Breadcrumb, null, /*#__PURE__*/React.createElement(react.BreadcrumbItem, {
99
+ }, /*#__PURE__*/React.createElement(react.Breadcrumb, {
100
+ "aria-label": "".concat(label, "-hidden")
101
+ }, /*#__PURE__*/React.createElement(react.BreadcrumbItem, {
99
102
  key: "".concat(blockClass, "-hidden-overflow-").concat(internalId)
100
103
  }, /*#__PURE__*/React.createElement(react.OverflowMenu, {
101
104
  "aria-label": overflowAriaLabel,
@@ -119,7 +122,7 @@ exports.BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
119
122
  title: title !== null && title !== void 0 ? title : label
120
123
  }), label);
121
124
  }))));
122
- }, [breadcrumbs, overflowAriaLabel]);
125
+ }, [breadcrumbs, label, overflowAriaLabel]);
123
126
  React.useEffect(function () {
124
127
  // updates displayedBreadcrumbItems and overflowBreadcrumbItems based on displayCount and breadcrumbs
125
128
  /* istanbul ignore if */
@@ -261,6 +264,7 @@ exports.BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
261
264
  }, /*#__PURE__*/React.createElement("div", {
262
265
  className: cx(["".concat(blockClass, "__space")])
263
266
  }, hiddenSizingItems, /*#__PURE__*/React.createElement(react.Breadcrumb, _rollupPluginBabelHelpers.extends({
267
+ "aria-label": label,
264
268
  className: cx("".concat(blockClass, "__breadcrumb-container"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__breadcrumb-container-with-items"), displayedBreadcrumbItems.length > 1)),
265
269
  noTrailingSlash: noTrailingSlash
266
270
  }, 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.createElement(react.BreadcrumbItem, {
@@ -315,6 +319,10 @@ exports.BreadcrumbWithOverflow.propTypes = {
315
319
  * className
316
320
  */
317
321
  className: index.default.string,
322
+ /**
323
+ * Label for the Breadcrumb component
324
+ */
325
+ label: index.default.string,
318
326
  /**
319
327
  * maxVisible: maximum visible breadcrumb-items before overflow is used (values less than 1 are treated as 1)
320
328
  */
@@ -47,10 +47,10 @@ exports.CoachmarkBeacon = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
47
47
  tabIndex: 0,
48
48
  type: "button"
49
49
  }, coachmark.buttonProps, {
50
- "aria-label": label,
51
50
  className: "".concat(blockClass, "__target")
52
51
  }), /*#__PURE__*/React.createElement("svg", {
53
- className: "".concat(blockClass, "__center")
52
+ className: "".concat(blockClass, "__center"),
53
+ "aria-label": label
54
54
  }, /*#__PURE__*/React.createElement("title", null, label), _circle || (_circle = /*#__PURE__*/React.createElement("circle", {
55
55
  r: 1,
56
56
  cx: 38,
@@ -15,7 +15,7 @@ var cx = require('classnames');
15
15
  var index = require('../../_virtual/index.js');
16
16
  var NavItem = require('./NavItem.js');
17
17
  var settings = require('../../settings.js');
18
- var bucket2 = require('../../node_modules/@carbon/icons-react/es/generated/bucket-2.js');
18
+ var bucket3 = require('../../node_modules/@carbon/icons-react/es/generated/bucket-3.js');
19
19
 
20
20
  var componentName = 'NavList';
21
21
  var blockClass = "".concat(settings.pkg.prefix, "--nav-list");
@@ -133,7 +133,7 @@ exports.NavList = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
133
133
  src: icon
134
134
  }), /*#__PURE__*/React.createElement("div", {
135
135
  className: "".concat(NavItem.blockClass, "__content")
136
- }, title), /*#__PURE__*/React.createElement(bucket2.ChevronDown, {
136
+ }, title), /*#__PURE__*/React.createElement(bucket3.ChevronDown, {
137
137
  className: "".concat(blockClass, "__icon")
138
138
  })), /*#__PURE__*/React.createElement("ul", {
139
139
  "aria-label": title,
@@ -461,7 +461,8 @@ exports.NotificationsPanel = /*#__PURE__*/React.forwardRef(function (_ref, ref)
461
461
  iconDescription: settingsIconDescription,
462
462
  onClick: function onClick() {
463
463
  return onSettingsClick();
464
- }
464
+ },
465
+ hasIconOnly: true
465
466
  })) : null)), /*#__PURE__*/React.createElement("button", {
466
467
  type: "button",
467
468
  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 { ButtonProps, PopoverAlignment, TagProps } from '@carbon/type';
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.
@@ -27,7 +27,7 @@ var BreadcrumbWithOverflow = require('../BreadcrumbWithOverflow/BreadcrumbWithOv
27
27
  var ActionBar = require('../ActionBar/ActionBar.js');
28
28
  var ButtonSetWithOverflow = require('../ButtonSetWithOverflow/ButtonSetWithOverflow.js');
29
29
 
30
- 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"];
30
+ 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"];
31
31
  var componentName = 'PageHeader';
32
32
  settings.pkg._silenceWarnings(true);
33
33
  settings.pkg.component.ActionBar = true;
@@ -48,6 +48,7 @@ exports.PageHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
48
48
  allTagsModalTitle = _ref.allTagsModalTitle,
49
49
  deprecated_hasBackgroundAlways = _ref.hasBackgroundAlways,
50
50
  breadcrumbOverflowAriaLabel = _ref.breadcrumbOverflowAriaLabel,
51
+ breadcrumbLabel = _ref.breadcrumbLabel,
51
52
  breadcrumbs = _ref.breadcrumbs,
52
53
  children = _ref.children,
53
54
  className = _ref.className,
@@ -387,7 +388,8 @@ exports.PageHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
387
388
  overflowAriaLabel: breadcrumbOverflowAriaLabel,
388
389
  breadcrumbs: displayedBreadcrumbs,
389
390
  overflowTooltipAlign: breadcrumbOverflowTooltipAlign,
390
- maxVisible: undefined
391
+ maxVisible: undefined,
392
+ label: breadcrumbLabel
391
393
  })), /*#__PURE__*/React.createElement(react.Column, {
392
394
  className: cx(["".concat(PageHeaderUtils.blockClass, "__action-bar-column ").concat(PageHeaderUtils.blockClass, "__action-bar-column--background"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(PageHeaderUtils.blockClass, "__action-bar-column--has-page-actions"), pageActions), "".concat(PageHeaderUtils.blockClass, "__action-bar-column--influenced-by-collapse-button"), spaceForCollapseButton)])
393
395
  }, /*#__PURE__*/React.createElement("div", {