@carbon/ibm-products 2.98.0 → 2.99.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.
Files changed (197) hide show
  1. package/.playwright/INTERNAL_AVT_REPORT_DO_NOT_USE.json +463 -463
  2. package/css/carbon.css +9599 -6352
  3. package/css/carbon.css.map +1 -1
  4. package/css/index-full-carbon.css +5121 -1880
  5. package/css/index-full-carbon.css.map +1 -1
  6. package/css/index-full-carbon.min.css +1 -1
  7. package/css/index-full-carbon.min.css.map +1 -1
  8. package/css/index-without-carbon-released-only.css +29 -186
  9. package/css/index-without-carbon-released-only.css.map +1 -1
  10. package/css/index-without-carbon-released-only.min.css +1 -1
  11. package/css/index-without-carbon-released-only.min.css.map +1 -1
  12. package/css/index-without-carbon.css +29 -186
  13. package/css/index-without-carbon.css.map +1 -1
  14. package/css/index-without-carbon.min.css +1 -1
  15. package/css/index-without-carbon.min.css.map +1 -1
  16. package/css/index.css +397 -447
  17. package/css/index.css.map +1 -1
  18. package/css/index.min.css +1 -1
  19. package/css/index.min.css.map +1 -1
  20. package/es/components/AddSelect/AddSelectColumn.js +4 -4
  21. package/es/components/AddSelect/next/AddSelectColumn.js +2 -2
  22. package/es/components/ConditionBuilder/ConditionBuilder.d.ts +21 -0
  23. package/es/components/ConditionBuilder/ConditionBuilder.d.ts.map +1 -1
  24. package/es/components/ConditionBuilder/ConditionBuilder.js +51 -44
  25. package/es/components/ConditionBuilder/ConditionBuilder.types.d.ts +47 -9
  26. package/es/components/ConditionBuilder/ConditionBuilder.types.d.ts.map +1 -1
  27. package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +9 -2
  28. package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts.map +1 -1
  29. package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +16 -3
  30. package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts.map +1 -1
  31. package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +37 -17
  32. package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.d.ts +1 -0
  33. package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +1 -0
  34. package/es/components/ConditionBuilder/index.d.ts +1 -1
  35. package/es/components/ConditionBuilder/index.d.ts.map +1 -1
  36. package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +2 -2
  37. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +2 -2
  38. package/es/components/EmptyStates/assets/ErrorIllustration.js +2 -2
  39. package/es/components/EmptyStates/assets/NoDataIllustration.js +2 -2
  40. package/es/components/EmptyStates/assets/NoTagsIllustration.js +2 -2
  41. package/es/components/EmptyStates/assets/NotFoundIllustration.js +2 -2
  42. package/es/components/EmptyStates/assets/NotificationsIllustration.js +2 -2
  43. package/es/components/EmptyStates/assets/UnauthorizedIllustration.js +2 -2
  44. package/es/components/NotificationsPanel/NotificationsPanel.js +2 -2
  45. package/es/components/PageHeader/next/PageHeader.d.ts +10 -0
  46. package/es/components/PageHeader/next/PageHeader.d.ts.map +1 -1
  47. package/es/components/PageHeader/next/PageHeader.js +6 -3
  48. package/es/components/PageHeader/next/PageHeaderBreadcrumbBar.d.ts.map +1 -1
  49. package/es/components/PageHeader/next/PageHeaderBreadcrumbBar.js +6 -3
  50. package/es/components/PageHeader/next/PageHeaderBreadcrumbPageActions.d.ts.map +1 -1
  51. package/es/components/PageHeader/next/PageHeaderBreadcrumbPageActions.js +4 -10
  52. package/es/components/PageHeader/next/PageHeaderContent.d.ts +3 -2
  53. package/es/components/PageHeader/next/PageHeaderContent.d.ts.map +1 -1
  54. package/es/components/PageHeader/next/PageHeaderContent.js +14 -11
  55. package/es/components/PageHeader/next/PageHeaderContentPageActions.d.ts.map +1 -1
  56. package/es/components/PageHeader/next/PageHeaderContentPageActions.js +3 -2
  57. package/es/components/PageHeader/next/PageHeaderScrollButton.d.ts.map +1 -1
  58. package/es/components/PageHeader/next/PageHeaderScrollButton.js +3 -0
  59. package/es/components/PageHeader/next/PageHeaderTabBar.js +11 -3
  60. package/es/components/PageHeader/next/PageHeaderTagOverflow.d.ts.map +1 -1
  61. package/es/components/PageHeader/next/PageHeaderTagOverflow.js +10 -2
  62. package/es/components/PageHeader/next/context.d.ts +2 -0
  63. package/es/components/PageHeader/next/context.d.ts.map +1 -1
  64. package/es/components/PageHeader/next/context.js +3 -1
  65. package/es/components/StatusIcon/StatusIcon.d.ts +11 -9
  66. package/es/components/StatusIcon/StatusIcon.d.ts.map +1 -1
  67. package/es/components/StatusIcon/StatusIcon.js +16 -0
  68. package/es/components/TagOverflow/TagOverflow.d.ts +9 -2
  69. package/es/components/TagOverflow/TagOverflow.d.ts.map +1 -1
  70. package/es/components/TagOverflow/TagOverflow.js +10 -4
  71. package/es/components/TagOverflow/TagOverflowModal.d.ts +22 -4
  72. package/es/components/TagOverflow/TagOverflowModal.d.ts.map +1 -1
  73. package/es/components/TagOverflow/TagOverflowModal.js +15 -6
  74. package/es/components/Tearsheet/TearsheetShell.js +2 -2
  75. package/es/components/Tearsheet/next/Tearsheet.d.ts.map +1 -1
  76. package/es/components/Tearsheet/next/Tearsheet.js +4 -3
  77. package/es/components/Tearsheet/next/TearsheetBody.d.ts.map +1 -1
  78. package/es/components/Tearsheet/next/TearsheetBody.js +1 -3
  79. package/es/components/Tearsheet/next/TearsheetHeaderContent.d.ts +3 -2
  80. package/es/components/Tearsheet/next/TearsheetHeaderContent.d.ts.map +1 -1
  81. package/es/components/Tearsheet/next/TearsheetHeaderContent.js +3 -3
  82. package/es/components/index.d.ts +1 -1
  83. package/es/components/index.d.ts.map +1 -1
  84. package/es/global/js/hooks/useCreateComponentFocus.js +1 -8
  85. package/es/global/js/utils/useId.js +2 -2
  86. package/es/index.js +3 -3
  87. package/es/node_modules/@carbon/icons-react/es/generated/bucket-11.js +342 -310
  88. package/es/node_modules/@carbon/icons-react/es/generated/bucket-3.js +48 -56
  89. package/es/settings.d.ts +4 -4
  90. package/lib/components/ConditionBuilder/ConditionBuilder.d.ts +21 -0
  91. package/lib/components/ConditionBuilder/ConditionBuilder.d.ts.map +1 -1
  92. package/lib/components/ConditionBuilder/ConditionBuilder.js +51 -44
  93. package/lib/components/ConditionBuilder/ConditionBuilder.types.d.ts +47 -9
  94. package/lib/components/ConditionBuilder/ConditionBuilder.types.d.ts.map +1 -1
  95. package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +9 -2
  96. package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts.map +1 -1
  97. package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +16 -3
  98. package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts.map +1 -1
  99. package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +36 -16
  100. package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.d.ts +1 -0
  101. package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +1 -0
  102. package/lib/components/ConditionBuilder/index.d.ts +1 -1
  103. package/lib/components/ConditionBuilder/index.d.ts.map +1 -1
  104. package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +2 -2
  105. package/lib/components/PageHeader/next/PageHeader.d.ts +10 -0
  106. package/lib/components/PageHeader/next/PageHeader.d.ts.map +1 -1
  107. package/lib/components/PageHeader/next/PageHeader.js +6 -3
  108. package/lib/components/PageHeader/next/PageHeaderBreadcrumbBar.d.ts.map +1 -1
  109. package/lib/components/PageHeader/next/PageHeaderBreadcrumbBar.js +6 -3
  110. package/lib/components/PageHeader/next/PageHeaderBreadcrumbPageActions.d.ts.map +1 -1
  111. package/lib/components/PageHeader/next/PageHeaderBreadcrumbPageActions.js +3 -9
  112. package/lib/components/PageHeader/next/PageHeaderContent.d.ts +3 -2
  113. package/lib/components/PageHeader/next/PageHeaderContent.d.ts.map +1 -1
  114. package/lib/components/PageHeader/next/PageHeaderContent.js +13 -10
  115. package/lib/components/PageHeader/next/PageHeaderContentPageActions.d.ts.map +1 -1
  116. package/lib/components/PageHeader/next/PageHeaderContentPageActions.js +3 -2
  117. package/lib/components/PageHeader/next/PageHeaderScrollButton.d.ts.map +1 -1
  118. package/lib/components/PageHeader/next/PageHeaderScrollButton.js +3 -0
  119. package/lib/components/PageHeader/next/PageHeaderTabBar.js +11 -3
  120. package/lib/components/PageHeader/next/PageHeaderTagOverflow.d.ts.map +1 -1
  121. package/lib/components/PageHeader/next/PageHeaderTagOverflow.js +10 -2
  122. package/lib/components/PageHeader/next/context.d.ts +2 -0
  123. package/lib/components/PageHeader/next/context.d.ts.map +1 -1
  124. package/lib/components/PageHeader/next/context.js +3 -1
  125. package/lib/components/StatusIcon/StatusIcon.d.ts +11 -9
  126. package/lib/components/StatusIcon/StatusIcon.d.ts.map +1 -1
  127. package/lib/components/StatusIcon/StatusIcon.js +16 -0
  128. package/lib/components/TagOverflow/TagOverflow.d.ts +9 -2
  129. package/lib/components/TagOverflow/TagOverflow.d.ts.map +1 -1
  130. package/lib/components/TagOverflow/TagOverflow.js +10 -4
  131. package/lib/components/TagOverflow/TagOverflowModal.d.ts +22 -4
  132. package/lib/components/TagOverflow/TagOverflowModal.d.ts.map +1 -1
  133. package/lib/components/TagOverflow/TagOverflowModal.js +15 -6
  134. package/lib/components/Tearsheet/next/Tearsheet.d.ts.map +1 -1
  135. package/lib/components/Tearsheet/next/Tearsheet.js +2 -1
  136. package/lib/components/Tearsheet/next/TearsheetBody.d.ts.map +1 -1
  137. package/lib/components/Tearsheet/next/TearsheetBody.js +1 -3
  138. package/lib/components/Tearsheet/next/TearsheetHeaderContent.d.ts +3 -2
  139. package/lib/components/Tearsheet/next/TearsheetHeaderContent.d.ts.map +1 -1
  140. package/lib/components/Tearsheet/next/TearsheetHeaderContent.js +3 -3
  141. package/lib/components/index.d.ts +1 -1
  142. package/lib/components/index.d.ts.map +1 -1
  143. package/lib/global/js/hooks/useCreateComponentFocus.js +1 -8
  144. package/lib/index.js +5 -9
  145. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-0.js +33 -33
  146. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-1.js +26 -29
  147. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-10.js +336 -365
  148. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-11.js +365 -333
  149. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-12.js +600 -644
  150. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-13.js +724 -662
  151. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-14.js +608 -624
  152. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-15.js +663 -662
  153. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-16.js +533 -551
  154. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-17.js +701 -725
  155. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-18.js +669 -645
  156. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-19.js +521 -496
  157. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-2.js +29 -26
  158. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-20.js +592 -633
  159. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-21.js +688 -174
  160. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-22.js +210 -0
  161. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-3.js +52 -60
  162. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-4.js +60 -52
  163. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-5.js +65 -83
  164. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-6.js +129 -121
  165. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-7.js +199 -231
  166. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-8.js +296 -264
  167. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-9.js +303 -336
  168. package/lib/node_modules/@carbon/icons-react/lib/index.js +535 -486
  169. package/lib/settings.d.ts +4 -4
  170. package/package.json +17 -17
  171. package/scss/components/PageHeader/_page-header.scss +32 -32
  172. package/scss/components/Tearsheet/_tearsheet_next.scss +10 -8
  173. package/telemetry.yml +7 -3
  174. package/es/components/Card/next/Card.js +0 -180
  175. package/es/components/Card/next/CardAction.js +0 -57
  176. package/es/components/Card/next/CardActions.js +0 -112
  177. package/es/components/Card/next/CardBody.js +0 -47
  178. package/es/components/Card/next/CardContext.js +0 -31
  179. package/es/components/Card/next/CardFooter.js +0 -47
  180. package/es/components/Card/next/CardHeader.js +0 -62
  181. package/es/components/Card/next/CardHeaderMedia.js +0 -46
  182. package/es/components/Card/next/CardMedia.js +0 -59
  183. package/es/components/Card/next/CardTitle.js +0 -121
  184. package/es/components/Card/next/CardTitleMedia.js +0 -49
  185. package/es/components/Card/next/index.js +0 -33
  186. package/lib/components/Card/next/Card.js +0 -182
  187. package/lib/components/Card/next/CardAction.js +0 -64
  188. package/lib/components/Card/next/CardActions.js +0 -119
  189. package/lib/components/Card/next/CardBody.js +0 -54
  190. package/lib/components/Card/next/CardContext.js +0 -33
  191. package/lib/components/Card/next/CardFooter.js +0 -54
  192. package/lib/components/Card/next/CardHeader.js +0 -69
  193. package/lib/components/Card/next/CardHeaderMedia.js +0 -53
  194. package/lib/components/Card/next/CardMedia.js +0 -66
  195. package/lib/components/Card/next/CardTitle.js +0 -128
  196. package/lib/components/Card/next/CardTitleMedia.js +0 -56
  197. package/lib/components/Card/next/index.js +0 -38
@@ -7,7 +7,7 @@
7
7
 
8
8
  import { pkg } from "../../../../../settings.js";
9
9
  import { getNodeTextContent } from "../../../../../global/js/utils/getNodeTextContent.js";
10
- import { useId } from "../../../../../global/js/utils/useId.js";
10
+ import { useId as useId$1 } from "../../../../../global/js/utils/useId.js";
11
11
  import { isColumnVisible } from "./common.js";
12
12
  import DraggableElement from "../../DraggableElement.js";
13
13
  import React from "react";
@@ -27,7 +27,7 @@ const blockClass = `${pkg.prefix}--datagrid`;
27
27
  const matchedColsById = (col1, col2) => col1 && col2 && col1.id === col2.id;
28
28
  const DraggableItemsList = ({ columns, filterString, id, moveElement, onSelectColumn, setAriaRegionText }) => {
29
29
  const draggableClass = `${blockClass}__draggable-item`;
30
- const generatedId = useId();
30
+ const generatedId = useId$1();
31
31
  const visibleCols = columns.filter((colDef) => getNodeTextContent(colDef.Header).trim().length !== 0).filter(Boolean).filter((colDef) => !colDef.isAction).filter((colDef) => colDef.id !== "spacer").filter((colDef) => {
32
32
  return filterString.length === 0 || getNodeTextContent(colDef.Header).toLowerCase().includes(filterString);
33
33
  });
@@ -8,7 +8,7 @@
8
8
  import { __toESM } from "../../../_virtual/_rolldown/runtime.js";
9
9
  import { require_classnames } from "../../../node_modules/classnames/index.js";
10
10
  import { pkg } from "../../../settings.js";
11
- import { useId } from "../../../global/js/utils/useId.js";
11
+ import { useId as useId$1 } from "../../../global/js/utils/useId.js";
12
12
  import React from "react";
13
13
  import PropTypes from "prop-types";
14
14
  //#region src/components/EmptyStates/assets/ErrorIllustration.jsx
@@ -21,7 +21,7 @@ import PropTypes from "prop-types";
21
21
  var import_classnames = /* @__PURE__ */ __toESM(require_classnames());
22
22
  const blockClass = `${pkg.prefix}--empty-state`;
23
23
  const ErrorIllustration = ({ theme, size, alt, ...rest }) => {
24
- const svgId = useId();
24
+ const svgId = useId$1();
25
25
  return /* @__PURE__ */ React.createElement("svg", {
26
26
  ...rest,
27
27
  xmlns: "http://www.w3.org/2000/svg",
@@ -8,7 +8,7 @@
8
8
  import { __toESM } from "../../../_virtual/_rolldown/runtime.js";
9
9
  import { require_classnames } from "../../../node_modules/classnames/index.js";
10
10
  import { pkg } from "../../../settings.js";
11
- import { useId } from "../../../global/js/utils/useId.js";
11
+ import { useId as useId$1 } from "../../../global/js/utils/useId.js";
12
12
  import React from "react";
13
13
  import PropTypes from "prop-types";
14
14
  //#region src/components/EmptyStates/assets/NoDataIllustration.jsx
@@ -21,7 +21,7 @@ import PropTypes from "prop-types";
21
21
  var import_classnames = /* @__PURE__ */ __toESM(require_classnames());
22
22
  const blockClass = `${pkg.prefix}--empty-state`;
23
23
  const NoDataIllustration = ({ theme, size, alt, ...rest }) => {
24
- const svgId = useId();
24
+ const svgId = useId$1();
25
25
  return /* @__PURE__ */ React.createElement("svg", {
26
26
  ...rest,
27
27
  xmlns: "http://www.w3.org/2000/svg",
@@ -8,7 +8,7 @@
8
8
  import { __toESM } from "../../../_virtual/_rolldown/runtime.js";
9
9
  import { require_classnames } from "../../../node_modules/classnames/index.js";
10
10
  import { pkg } from "../../../settings.js";
11
- import { useId } from "../../../global/js/utils/useId.js";
11
+ import { useId as useId$1 } from "../../../global/js/utils/useId.js";
12
12
  import React from "react";
13
13
  import PropTypes from "prop-types";
14
14
  //#region src/components/EmptyStates/assets/NoTagsIllustration.jsx
@@ -21,7 +21,7 @@ import PropTypes from "prop-types";
21
21
  var import_classnames = /* @__PURE__ */ __toESM(require_classnames());
22
22
  const blockClass = `${pkg.prefix}--empty-state`;
23
23
  const NoTagsIllustration = ({ theme, size, alt, ...rest }) => {
24
- const svgId = useId();
24
+ const svgId = useId$1();
25
25
  return /* @__PURE__ */ React.createElement("svg", {
26
26
  ...rest,
27
27
  xmlns: "http://www.w3.org/2000/svg",
@@ -8,7 +8,7 @@
8
8
  import { __toESM } from "../../../_virtual/_rolldown/runtime.js";
9
9
  import { require_classnames } from "../../../node_modules/classnames/index.js";
10
10
  import { pkg } from "../../../settings.js";
11
- import { useId } from "../../../global/js/utils/useId.js";
11
+ import { useId as useId$1 } from "../../../global/js/utils/useId.js";
12
12
  import React from "react";
13
13
  import PropTypes from "prop-types";
14
14
  //#region src/components/EmptyStates/assets/NotFoundIllustration.jsx
@@ -21,7 +21,7 @@ import PropTypes from "prop-types";
21
21
  var import_classnames = /* @__PURE__ */ __toESM(require_classnames());
22
22
  const blockClass = `${pkg.prefix}--empty-state`;
23
23
  const NotFoundIllustration = ({ theme, size, alt, ...rest }) => {
24
- const svgId = useId();
24
+ const svgId = useId$1();
25
25
  return /* @__PURE__ */ React.createElement("svg", {
26
26
  ...rest,
27
27
  xmlns: "http://www.w3.org/2000/svg",
@@ -8,7 +8,7 @@
8
8
  import { __toESM } from "../../../_virtual/_rolldown/runtime.js";
9
9
  import { require_classnames } from "../../../node_modules/classnames/index.js";
10
10
  import { pkg } from "../../../settings.js";
11
- import { useId } from "../../../global/js/utils/useId.js";
11
+ import { useId as useId$1 } from "../../../global/js/utils/useId.js";
12
12
  import React from "react";
13
13
  import PropTypes from "prop-types";
14
14
  //#region src/components/EmptyStates/assets/NotificationsIllustration.jsx
@@ -21,7 +21,7 @@ import PropTypes from "prop-types";
21
21
  var import_classnames = /* @__PURE__ */ __toESM(require_classnames());
22
22
  const blockClass = `${pkg.prefix}--empty-state`;
23
23
  const NotificationsIllustration = ({ theme, size, alt, ...rest }) => {
24
- const svgId = useId();
24
+ const svgId = useId$1();
25
25
  return /* @__PURE__ */ React.createElement("svg", {
26
26
  ...rest,
27
27
  xmlns: "http://www.w3.org/2000/svg",
@@ -8,7 +8,7 @@
8
8
  import { __toESM } from "../../../_virtual/_rolldown/runtime.js";
9
9
  import { require_classnames } from "../../../node_modules/classnames/index.js";
10
10
  import { pkg } from "../../../settings.js";
11
- import { useId } from "../../../global/js/utils/useId.js";
11
+ import { useId as useId$1 } from "../../../global/js/utils/useId.js";
12
12
  import React from "react";
13
13
  import PropTypes from "prop-types";
14
14
  //#region src/components/EmptyStates/assets/UnauthorizedIllustration.jsx
@@ -21,7 +21,7 @@ import PropTypes from "prop-types";
21
21
  var import_classnames = /* @__PURE__ */ __toESM(require_classnames());
22
22
  const blockClass = `${pkg.prefix}--empty-state`;
23
23
  const UnauthorizedIllustration = ({ theme, size, alt, ...rest }) => {
24
- const svgId = useId();
24
+ const svgId = useId$1();
25
25
  return /* @__PURE__ */ React.createElement("svg", {
26
26
  ...rest,
27
27
  xmlns: "http://www.w3.org/2000/svg",
@@ -13,7 +13,7 @@ import { usePresence } from "../../global/js/hooks/usePresence.js";
13
13
  import { usePrefersReducedMotion } from "../../global/js/hooks/usePrefersReducedMotion.js";
14
14
  import { getDevtoolsProps } from "../../global/js/utils/devtools.js";
15
15
  import { prepareProps } from "../../global/js/utils/props-helper.js";
16
- import { useId } from "../../global/js/utils/useId.js";
16
+ import { useId as useId$1 } from "../../global/js/utils/useId.js";
17
17
  import { NotificationsEmptyState } from "../EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js";
18
18
  import { getSupportedLocale } from "../../global/js/utils/getSupportedLocale.js";
19
19
  import { timeAgo } from "./utils.js";
@@ -86,7 +86,7 @@ const NotificationsPanel = React.forwardRef(({ className, data, dateTimeLocale,
86
86
  const [allNotifications, setAllNotifications] = useState([]);
87
87
  const supportedLocale = getSupportedLocale(dateTimeLocale, DefaultLocale);
88
88
  usePrefix();
89
- const headingId = useId();
89
+ const headingId = useId$1();
90
90
  const isClickOnTrigger = useRef(false);
91
91
  const { shouldRender } = usePresence(open, notificationPanelRef, usePrefersReducedMotion() ? "notifications-panel-exit-reduced" : "notifications-panel-fade-out");
92
92
  useEffect(() => {
@@ -36,6 +36,16 @@ export interface PageHeaderProps {
36
36
  * Callback fired when the content actions become clipped
37
37
  */
38
38
  onContentActionsClipped?: (clipped: boolean) => void;
39
+ /**
40
+ * Applies Carbon's full-width grid mode to all internal sub-component grids.
41
+ * Pass `true` for full width or `'xl'` for full width with the xl padding
42
+ * override (matching the deprecated PageHeader `fullWidthGrid` behavior).
43
+ */
44
+ fullWidthGrid?: boolean | 'xl';
45
+ /**
46
+ * Applies Carbon's narrow grid mode to all internal sub-component grids.
47
+ */
48
+ narrowGrid?: boolean;
39
49
  }
40
50
  declare const PageHeader: React.ForwardRefExoticComponent<PageHeaderProps & React.RefAttributes<HTMLDivElement>>;
41
51
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/PageHeader/next/PageHeader.tsx"],"names":[],"mappings":"AAAA;;;;;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A,MAAM,UAAU,wFAmLf,CAAC;AAGF;;;;GAIG;AACH,QAAA,MAAM,IAAI,wFAAa,CAAC;AAGxB,QAAA,MAAM,aAAa,qGAA0B,CAAC;AAG9C,QAAA,MAAM,OAAO,+FAAoB,CAAC;AAGlC,QAAA,MAAM,kBAAkB;;;;;;;;;CAA+B,CAAC;AAGxD,QAAA,MAAM,WAAW;;;;;;;;;CAAwB,CAAC;AAG1C,QAAA,MAAM,SAAS;;;;;;;;CAAsB,CAAC;AAGtC,QAAA,MAAM,MAAM,8FAAmB,CAAC;AAGhC,QAAA,MAAM,YAAY,oGAAyB,CAAC;AAG5C,QAAA,MAAM,eAAe,mHAA4B,CAAC;AAGlD,QAAA,MAAM,kBAAkB,uGAA+B,CAAC;AAGxD,QAAA,MAAM,WAAW,mGAAwB,CAAC;AAG1C,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;CAAkC,CAAC;AAG9D,OAAO,EAEL,UAAU,EACV,uBAAuB,EACvB,iBAAiB,EACjB,4BAA4B,EAC5B,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,EAChB,sBAAsB,EACtB,yBAAyB,EACzB,4BAA4B,EAC5B,qBAAqB,EACrB,+BAA+B,EAE/B,IAAI,EACJ,aAAa,EACb,OAAO,EACP,kBAAkB,EAClB,WAAW,EACX,SAAS,EACT,MAAM,EACN,YAAY,EACZ,eAAe,EACf,kBAAkB,EAClB,WAAW,EACX,qBAAqB,GACtB,CAAC;AACF,YAAY,EACV,4BAA4B,EAC5B,sBAAsB,EACtB,iCAAiC,EACjC,0BAA0B,EAC1B,wBAAwB,EACxB,qBAAqB,EACrB,2BAA2B,EAC3B,0BAA0B,EAC1B,iCAAiC,EACjC,oCAAoC,EACpC,kCAAkC,GACnC,CAAC"}
1
+ {"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/PageHeader/next/PageHeader.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAA0D,MAAM,OAAO,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E file in the root directory of this source tree.
33
33
  */
34
34
  var import_classnames = /* @__PURE__ */ __toESM(require_classnames());
35
- const PageHeader = React.forwardRef(function PageHeader({ className, children, onContentFullyCollapsed, onTitleClipped, onContentActionsClipped, ...other }, ref) {
35
+ const PageHeader = React.forwardRef(function PageHeader({ className, children, onContentFullyCollapsed, onTitleClipped, onContentActionsClipped, fullWidthGrid, narrowGrid, ...other }, ref) {
36
36
  const [refs, setRefs] = useState({});
37
37
  const [pageActionsInstance, setPageActionsInstance] = useState(null);
38
38
  const [disableStickyTabBar, setDisableStickyTabBar] = useState(false);
@@ -41,7 +41,8 @@ const PageHeader = React.forwardRef(function PageHeader({ className, children, o
41
41
  const classNames = (0, import_classnames.default)({
42
42
  [`${blockClass}`]: true,
43
43
  [`${blockClass}__next`]: true,
44
- [`${blockClass}--disable-sticky-tab-bar`]: disableStickyTabBar
44
+ [`${blockClass}--disable-sticky-tab-bar`]: disableStickyTabBar,
45
+ [`${blockClass}--width--xl`]: fullWidthGrid === "xl"
45
46
  }, className);
46
47
  useResizeObserver(componentRef, () => {
47
48
  if (componentRef?.current) {
@@ -130,7 +131,9 @@ const PageHeader = React.forwardRef(function PageHeader({ className, children, o
130
131
  setPageActionsInstance,
131
132
  observerState,
132
133
  disableStickyTabBar,
133
- setDisableStickyTabBar
134
+ setDisableStickyTabBar,
135
+ fullWidthGrid,
136
+ narrowGrid
134
137
  } }, /* @__PURE__ */ React.createElement("div", {
135
138
  className: classNames,
136
139
  ref: componentRef,
@@ -1 +1 @@
1
- {"version":3,"file":"PageHeaderBreadcrumbBar.d.ts","sourceRoot":"","sources":["../../../../src/components/PageHeader/next/PageHeaderBreadcrumbBar.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,EAAE,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI1E,OAAO,EAGL,KAAK,uBAAuB,EAC7B,MAAM,WAAW,CAAC;AAEnB;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,aAAa,GAAG,iBAAiB,CAAC;IAC/C;;;OAGG;IACH,cAAc,CAAC,EACX,KAAK,CAAC,SAAS,GACf,CAAC,CAAC,KAAK,EAAE,uBAAuB,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IAC1D;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;OAGG;IACH,WAAW,CAAC,EACR,KAAK,CAAC,SAAS,GACf,CAAC,CAAC,KAAK,EAAE,uBAAuB,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IAC1D;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,uBAAuB,qGAkFlC,CAAC"}
1
+ {"version":3,"file":"PageHeaderBreadcrumbBar.d.ts","sourceRoot":"","sources":["../../../../src/components/PageHeader/next/PageHeaderBreadcrumbBar.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,EAAE,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI1E,OAAO,EAGL,KAAK,uBAAuB,EAC7B,MAAM,WAAW,CAAC;AAEnB;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,aAAa,GAAG,iBAAiB,CAAC;IAC/C;;;OAGG;IACH,cAAc,CAAC,EACX,KAAK,CAAC,SAAS,GACf,CAAC,CAAC,KAAK,EAAE,uBAAuB,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IAC1D;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;OAGG;IACH,WAAW,CAAC,EACR,KAAK,CAAC,SAAS,GACf,CAAC,CAAC,KAAK,EAAE,uBAAuB,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IAC1D;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,uBAAuB,qGAyFlC,CAAC"}
@@ -21,7 +21,7 @@ import { Column, Grid } from "@carbon/react";
21
21
  var import_classnames = /* @__PURE__ */ __toESM(require_classnames());
22
22
  const PageHeaderBreadcrumbBar = React.forwardRef(function PageHeaderBreadcrumbBar({ border = true, className, children, renderIcon: IconElement, contentActions, contentActionsFlush, pageActions, pageActionsFlush, actionsAriaLabel = "Page header actions", ...other }, ref) {
23
23
  const context = usePageHeader();
24
- const { pageActionsInstance: globalActions, observerState } = context;
24
+ const { pageActionsInstance: globalActions, observerState, fullWidthGrid, narrowGrid } = context;
25
25
  const classNames = (0, import_classnames.default)({
26
26
  [`${blockClass}__breadcrumb-bar`]: true,
27
27
  [`${blockClass}__breadcrumb-bar-border`]: border,
@@ -41,14 +41,17 @@ const PageHeaderBreadcrumbBar = React.forwardRef(function PageHeaderBreadcrumbBa
41
41
  className: classNames,
42
42
  ref,
43
43
  ...other
44
- }, /* @__PURE__ */ React.createElement(Grid, null, /* @__PURE__ */ React.createElement(Column, {
44
+ }, /* @__PURE__ */ React.createElement(Grid, {
45
+ fullWidth: !!fullWidthGrid,
46
+ narrow: narrowGrid
47
+ }, /* @__PURE__ */ React.createElement(Column, {
45
48
  lg: 16,
46
49
  md: 8,
47
50
  sm: 4
48
51
  }, /* @__PURE__ */ React.createElement("div", { className: `${blockClass}__breadcrumb-container` }, /* @__PURE__ */ React.createElement("div", { className: `${blockClass}__breadcrumb-wrapper` }, IconElement && /* @__PURE__ */ React.createElement("div", {
49
52
  className: `${blockClass}__breadcrumb__icon`,
50
53
  "aria-hidden": "true"
51
- }, /* @__PURE__ */ React.createElement(IconElement, null)), children), /* @__PURE__ */ React.createElement("div", {
54
+ }, /* @__PURE__ */ React.createElement(IconElement, null)), children), (contentActions || pageActions) && /* @__PURE__ */ React.createElement("div", {
52
55
  className: `${blockClass}__breadcrumb__actions`,
53
56
  role: "toolbar",
54
57
  "aria-label": actionsAriaLabel
@@ -1 +1 @@
1
- {"version":3,"file":"PageHeaderBreadcrumbPageActions.d.ts","sourceRoot":"","sources":["../../../../src/components/PageHeader/next/PageHeaderBreadcrumbPageActions.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAO,SAAS,MAAM,YAAY,CAAC;AAWnC;;;;GAIG;AAEH,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,oCAAoC;IACnD;;OAEG;IACH,OAAO,EAAE,kCAAkC,EAAE,CAAC;IAC9C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAChC;;OAEG;IACH,UAAU,CAAC,EACP,SAAS,GACT,WAAW,GACX,UAAU,GACV,OAAO,GACP,QAAQ,GACR,kBAAkB,GAClB,eAAe,CAAC;CACrB;AAED,eAAO,MAAM,+BAA+B;kFAOzC,oCAAoC;;;QA4ErC;;WAEG;;;;;;;QASH;;WAEG;;QAUH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;;CAtCJ,CAAC"}
1
+ {"version":3,"file":"PageHeaderBreadcrumbPageActions.d.ts","sourceRoot":"","sources":["../../../../src/components/PageHeader/next/PageHeaderBreadcrumbPageActions.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAO,SAAS,MAAM,YAAY,CAAC;AAMnC;;;;GAIG;AAEH,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,oCAAoC;IACnD;;OAEG;IACH,OAAO,EAAE,kCAAkC,EAAE,CAAC;IAC9C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAChC;;OAEG;IACH,UAAU,CAAC,EACP,SAAS,GACT,WAAW,GACX,UAAU,GACV,OAAO,GACP,QAAQ,GACR,kBAAkB,GAClB,eAAe,CAAC;CACrB;AAED,eAAO,MAAM,+BAA+B;kFAOzC,oCAAoC;;;QAgErC;;WAEG;;;;;;;QASH;;WAEG;;QAUH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;;CAtCJ,CAAC"}
@@ -10,7 +10,7 @@ import { require_classnames } from "../../../node_modules/classnames/index.js";
10
10
  import { blockClass } from "../PageHeaderUtils.js";
11
11
  import React, { useEffect, useRef, useState } from "react";
12
12
  import PropTypes from "prop-types";
13
- import { Button, FeatureFlags, OverflowMenu, OverflowMenuItem } from "@carbon/react";
13
+ import { Button, FeatureFlags, MenuItem, OverflowMenu } from "@carbon/react";
14
14
  import { createOverflowHandler } from "@carbon/utilities";
15
15
  //#region src/components/PageHeader/next/PageHeaderBreadcrumbPageActions.tsx
16
16
  /**
@@ -38,12 +38,6 @@ const PageHeaderBreadcrumbPageActions = ({ actions, className, overflowMenuLabel
38
38
  return /* @__PURE__ */ React.createElement("ul", {
39
39
  ref: containerRef,
40
40
  className: classNames,
41
- style: {
42
- display: "inline-flex",
43
- alignItems: "center",
44
- justifyContent: "flex-end",
45
- inlineSize: "50%"
46
- },
47
41
  ...other
48
42
  }, actions.map((item) => /* @__PURE__ */ React.createElement("li", {
49
43
  key: item.id,
@@ -59,13 +53,13 @@ const PageHeaderBreadcrumbPageActions = ({ actions, className, overflowMenuLabel
59
53
  "data-offset": true,
60
54
  "data-hidden": true,
61
55
  "data-floating-menu-container": true,
62
- style: { position: "relative" }
56
+ className: `${blockClass}__breadcrumb-page-actions__overflow-item`
63
57
  }, /* @__PURE__ */ React.createElement(FeatureFlags, { enableV12Overflowmenu: true }, /* @__PURE__ */ React.createElement(OverflowMenu, {
64
58
  size: buttonSize,
65
59
  "aria-label": overflowMenuLabel
66
- }, hiddenItems.map((item) => /* @__PURE__ */ React.createElement(OverflowMenuItem, {
60
+ }, hiddenItems.map((item) => /* @__PURE__ */ React.createElement(MenuItem, {
67
61
  key: item.id,
68
- itemText: item.label,
62
+ label: item.label,
69
63
  onClick: item.onClick
70
64
  }))))));
71
65
  };
@@ -26,9 +26,10 @@ export interface PageHeaderContentProps {
26
26
  */
27
27
  renderIcon?: ComponentType | FunctionComponent;
28
28
  /**
29
- * The PageHeaderContent's title
29
+ * The PageHeaderContent's title. Accepts a string or ReactNode.
30
+ * If a string is provided, TruncatedText is used with automatic overflow handling.
30
31
  */
31
- title: string;
32
+ title: React.ReactNode;
32
33
  /**
33
34
  * Specify the element or component used to render the title.
34
35
  */
@@ -1 +1 @@
1
- {"version":3,"file":"PageHeaderContent.d.ts","sourceRoot":"","sources":["../../../../src/components/PageHeader/next/PageHeaderContent.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,EACZ,KAAK,aAAa,EAClB,KAAK,iBAAiB,EAIvB,MAAM,OAAO,CAAC;AAGf,OAAO,EAAyB,OAAO,EAAE,MAAM,eAAe,CAAC;AAE/D,OAAO,EAAiB,KAAK,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAGxE;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,aAAa,GAAG,iBAAiB,CAAC;IAC/C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,OAAO,OAAO,CAAC;IACnE;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC;;;OAGG;IACH,WAAW,CAAC,EACR,KAAK,CAAC,SAAS,GACf,CAAC,CAAC,KAAK,EAAE,uBAAuB,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;CAC3D;AAED,eAAO,MAAM,iBAAiB,+FAuF5B,CAAC"}
1
+ {"version":3,"file":"PageHeaderContent.d.ts","sourceRoot":"","sources":["../../../../src/components/PageHeader/next/PageHeaderContent.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,EACZ,KAAK,aAAa,EAClB,KAAK,iBAAiB,EAKvB,MAAM,OAAO,CAAC;AAGf,OAAO,EAAyB,OAAO,EAAE,MAAM,eAAe,CAAC;AAE/D,OAAO,EAAiB,KAAK,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAGxE;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,aAAa,GAAG,iBAAiB,CAAC;IAC/C;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;OAEG;IACH,OAAO,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,OAAO,OAAO,CAAC;IACnE;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC;;;OAGG;IACH,WAAW,CAAC,EACR,KAAK,CAAC,SAAS,GACf,CAAC,CAAC,KAAK,EAAE,uBAAuB,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;CAC3D;AAED,eAAO,MAAM,iBAAiB,+FAwG5B,CAAC"}
@@ -10,7 +10,7 @@ import { require_classnames } from "../../../node_modules/classnames/index.js";
10
10
  import { blockClass } from "../PageHeaderUtils.js";
11
11
  import { TruncatedText } from "../../TruncatedText/TruncatedText.js";
12
12
  import { usePageHeader } from "./context.js";
13
- import React, { useEffect, useRef } from "react";
13
+ import React, { useEffect, useId, useRef } from "react";
14
14
  import PropTypes from "prop-types";
15
15
  import { Column, Grid, Section } from "@carbon/react";
16
16
  //#region src/components/PageHeader/next/PageHeaderContent.tsx
@@ -24,10 +24,11 @@ var import_classnames = /* @__PURE__ */ __toESM(require_classnames());
24
24
  const PageHeaderContent = React.forwardRef(function PageHeaderContent({ className, children, title, titleAs: TitleTag = "h1", titleTruncate, renderIcon: IconElement, contextualActions, pageActions, ...other }, ref) {
25
25
  const contentRef = useRef(null);
26
26
  const componentRef = ref ?? contentRef;
27
- const { setRefs, setPageActionsInstance, observerState } = usePageHeader();
27
+ const { setRefs, setPageActionsInstance, observerState, fullWidthGrid, narrowGrid } = usePageHeader();
28
28
  const classNames = (0, import_classnames.default)({ [`${blockClass}__content`]: true }, className);
29
29
  const titleRef = useRef(null);
30
30
  const titleLines = titleTruncate ?? (contextualActions ? 1 : 2);
31
+ `${blockClass}${useId()}`;
31
32
  useEffect(() => {
32
33
  if (componentRef?.current) setRefs((prev) => ({
33
34
  ...prev,
@@ -44,21 +45,27 @@ const PageHeaderContent = React.forwardRef(function PageHeaderContent({ classNam
44
45
  className: classNames,
45
46
  ref: componentRef,
46
47
  ...other
47
- }, /* @__PURE__ */ React.createElement(Grid, null, /* @__PURE__ */ React.createElement(Column, {
48
+ }, /* @__PURE__ */ React.createElement(Grid, {
49
+ fullWidth: !!fullWidthGrid,
50
+ narrow: narrowGrid
51
+ }, /* @__PURE__ */ React.createElement(Column, {
48
52
  lg: 16,
49
53
  md: 8,
50
54
  sm: 4
51
- }, /* @__PURE__ */ React.createElement("div", { className: `${blockClass}__content__title-wrapper` }, /* @__PURE__ */ React.createElement("div", { className: `${blockClass}__content__start` }, /* @__PURE__ */ React.createElement("div", { className: `${blockClass}__content__title-container` }, IconElement && /* @__PURE__ */ React.createElement("div", { className: `${blockClass}__content__icon` }, /* @__PURE__ */ React.createElement(IconElement, null)), /* @__PURE__ */ React.createElement(TitleTag, {
55
+ }, /* @__PURE__ */ React.createElement("div", { className: `${blockClass}__content__title-wrapper` }, /* @__PURE__ */ React.createElement("div", { className: `${blockClass}__content__start` }, /* @__PURE__ */ React.createElement("div", { className: `${blockClass}__content__title-container` }, IconElement && /* @__PURE__ */ React.createElement("div", {
56
+ className: `${blockClass}__content__icon`,
57
+ "aria-hidden": "true"
58
+ }, /* @__PURE__ */ React.createElement(IconElement, null)), /* @__PURE__ */ React.createElement(TitleTag, {
52
59
  ref: titleRef,
53
60
  className: `${blockClass}__content__title`
54
- }, /* @__PURE__ */ React.createElement(TruncatedText, {
61
+ }, typeof title === "string" ? /* @__PURE__ */ React.createElement(TruncatedText, {
55
62
  id: `${blockClass}__content__title__truncatedText`,
56
63
  className: `${blockClass}__content__title-text`,
57
64
  align: "bottom",
58
65
  value: title,
59
66
  lines: titleLines,
60
67
  type: "tooltip"
61
- }))), contextualActions && /* @__PURE__ */ React.createElement("div", { className: `${blockClass}__content__contextual-actions` }, contextualActions)), typeof pageActions === "function" ? pageActions(observerState) : pageActions), children)));
68
+ }) : /* @__PURE__ */ React.createElement("span", { className: `${blockClass}__content__title-text` }, title))), contextualActions && /* @__PURE__ */ React.createElement("div", { className: `${blockClass}__content__contextual-actions` }, contextualActions)), typeof pageActions === "function" ? pageActions(observerState) : pageActions), children)));
62
69
  });
63
70
  PageHeaderContent.displayName = "PageHeaderContent";
64
71
  PageHeaderContent.propTypes = {
@@ -83,13 +90,9 @@ PageHeaderContent.propTypes = {
83
90
  */
84
91
  renderIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
85
92
  /**
86
- * The PageHeaderContent's subtitle
87
- */
88
- subtitle: PropTypes.string,
89
- /**
90
93
  * The PageHeaderContent's title
91
94
  */
92
- title: PropTypes.string.isRequired,
95
+ title: PropTypes.node.isRequired,
93
96
  /**
94
97
  * Specify the element or component used to render the title.
95
98
  */
@@ -1 +1 @@
1
- {"version":3,"file":"PageHeaderContentPageActions.d.ts","sourceRoot":"","sources":["../../../../src/components/PageHeader/next/PageHeaderContentPageActions.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,SAAS,MAAM,YAAY,CAAC;AAOnC;;;;GAIG;AACH,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,4BAA4B;kEAMtC,iCAAiC;;;QAqHlC;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;;CAnBJ,CAAC"}
1
+ {"version":3,"file":"PageHeaderContentPageActions.d.ts","sourceRoot":"","sources":["../../../../src/components/PageHeader/next/PageHeaderContentPageActions.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,SAAS,MAAM,YAAY,CAAC;AAQnC;;;;GAIG;AACH,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,4BAA4B;kEAMtC,iCAAiC;;;QA0HlC;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;;CAnBJ,CAAC"}
@@ -7,6 +7,7 @@
7
7
 
8
8
  import { __toESM } from "../../../_virtual/_rolldown/runtime.js";
9
9
  import { require_classnames } from "../../../node_modules/classnames/index.js";
10
+ import { pkg } from "../../../settings.js";
10
11
  import { useIsomorphicEffect } from "../../../global/js/hooks/useIsomorphicEffect.js";
11
12
  import { blockClass } from "../PageHeaderUtils.js";
12
13
  import { usePageHeader } from "./context.js";
@@ -31,9 +32,9 @@ const PageHeaderContentPageActions = ({ className, children, menuButtonLabel = "
31
32
  const [hiddenItems, setHiddenItems] = useState([]);
32
33
  const [hasMounted, setHasMounted] = useState(false);
33
34
  useIsomorphicEffect(() => {
34
- if (menuButtonVisibility && offsetRef.current) {
35
+ if (menuButtonVisibility && offsetRef.current && containerRef.current) {
35
36
  const width = offsetRef.current.offsetWidth;
36
- document.documentElement.style.setProperty("--page-header-title-grid-width", `${width}px`);
37
+ (containerRef.current.closest(`.${blockClass}__next`) ?? containerRef.current).style.setProperty(`--${pkg.prefix}-page-header-title-grid-width`, `${width}px`);
37
38
  }
38
39
  }, [menuButtonVisibility]);
39
40
  useEffect(() => {
@@ -1 +1 @@
1
- {"version":3,"file":"PageHeaderScrollButton.d.ts","sourceRoot":"","sources":["../../../../src/components/PageHeader/next/PageHeaderScrollButton.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAc,MAAM,eAAe,CAAC;AAM5D,MAAM,WAAW,2BAA4B,SAAQ,eAAe;IAClE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,sBAAsB,oGAmEjC,CAAC"}
1
+ {"version":3,"file":"PageHeaderScrollButton.d.ts","sourceRoot":"","sources":["../../../../src/components/PageHeader/next/PageHeaderScrollButton.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAc,MAAM,eAAe,CAAC;AAO5D,MAAM,WAAW,2BAA4B,SAAQ,eAAe;IAClE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,sBAAsB,oGA6EjC,CAAC"}
@@ -7,6 +7,7 @@
7
7
 
8
8
  import { __toESM } from "../../../_virtual/_rolldown/runtime.js";
9
9
  import { require_classnames } from "../../../node_modules/classnames/index.js";
10
+ import pconsole_default from "../../../global/js/utils/pconsole.js";
10
11
  import { pkg } from "../../../settings.js";
11
12
  import { usePageHeader } from "./context.js";
12
13
  import { scrollableAncestor } from "./utils.js";
@@ -22,6 +23,8 @@ import { ChevronUp } from "@carbon/react/icons";
22
23
  */
23
24
  var import_classnames = /* @__PURE__ */ __toESM(require_classnames());
24
25
  const PageHeaderScrollButton = React.forwardRef(function PageHeaderExpander({ className, children, label, onClick, collapseText = "Collapse", expandText = "Expand", ...other }, ref) {
26
+ if (!collapseText) pconsole_default.warn("PageHeaderScrollButton: The `collapseText` prop is the accessible label for the collapse button. Provide a translated string.");
27
+ if (!expandText) pconsole_default.warn("PageHeaderScrollButton: The `expandText` prop is the accessible label for the expand button. Provide a translated string.");
25
28
  const { refs, observerState } = usePageHeader();
26
29
  const fullyCollapsed = observerState.fullyCollapsed;
27
30
  const handleScroller = (isFullyCollapsed) => {
@@ -21,7 +21,7 @@ import { Column, Grid } from "@carbon/react";
21
21
  */
22
22
  var import_classnames = /* @__PURE__ */ __toESM(require_classnames());
23
23
  const PageHeaderTabBar = React.forwardRef(function PageHeaderTabBar({ className, children, tags, scroller, disableStickyTabBar = false, ...other }, ref) {
24
- const { setDisableStickyTabBar } = usePageHeader();
24
+ const { setDisableStickyTabBar, fullWidthGrid, narrowGrid } = usePageHeader();
25
25
  useEffect(() => {
26
26
  setDisableStickyTabBar?.(disableStickyTabBar);
27
27
  }, [disableStickyTabBar, setDisableStickyTabBar]);
@@ -31,7 +31,11 @@ const PageHeaderTabBar = React.forwardRef(function PageHeaderTabBar({ className,
31
31
  className: classNames,
32
32
  ref,
33
33
  ...other
34
- }, /* @__PURE__ */ React.createElement(Grid, { condensed: true }, /* @__PURE__ */ React.createElement(Column, {
34
+ }, /* @__PURE__ */ React.createElement(Grid, {
35
+ condensed: true,
36
+ fullWidth: !!fullWidthGrid,
37
+ narrow: narrowGrid
38
+ }, /* @__PURE__ */ React.createElement(Column, {
35
39
  lg: 16,
36
40
  md: 8,
37
41
  sm: 4
@@ -40,7 +44,11 @@ const PageHeaderTabBar = React.forwardRef(function PageHeaderTabBar({ className,
40
44
  className: classNames,
41
45
  ref,
42
46
  ...other
43
- }, /* @__PURE__ */ React.createElement(Grid, { condensed: true }, /* @__PURE__ */ React.createElement(Column, {
47
+ }, /* @__PURE__ */ React.createElement(Grid, {
48
+ condensed: true,
49
+ fullWidth: !!fullWidthGrid,
50
+ narrow: narrowGrid
51
+ }, /* @__PURE__ */ React.createElement(Column, {
44
52
  lg: 16,
45
53
  md: 8,
46
54
  sm: 4
@@ -1 +1 @@
1
- {"version":3,"file":"PageHeaderTagOverflow.d.ts","sourceRoot":"","sources":["../../../../src/components/PageHeader/next/PageHeaderTagOverflow.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAMN,MAAM,OAAO,CAAC;AAOf,MAAM,WAAW,0BAA0B;IAEzC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,iBAAiB,CAAC,EAAE,CAClB,iBAAiB,EAAE,WAAW,EAAE,EAChC,mBAAmB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,EACtD,WAAW,EAAE,OAAO,EACpB,SAAS,CAAC,EAAE,MAAM,KACf,KAAK,CAAC,YAAY,CAAC;IACxB,oBAAoB,CAAC,EAAE,CACrB,iBAAiB,EAAE,WAAW,EAAE,KAC7B,KAAK,CAAC,YAAY,CAAC;CACzB;AAED,eAAO,MAAM,qBAAqB,mGA8EhC,CAAC"}
1
+ {"version":3,"file":"PageHeaderTagOverflow.d.ts","sourceRoot":"","sources":["../../../../src/components/PageHeader/next/PageHeaderTagOverflow.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAMN,MAAM,OAAO,CAAC;AAOf,MAAM,WAAW,0BAA0B;IAEzC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,iBAAiB,CAAC,EAAE,CAClB,iBAAiB,EAAE,WAAW,EAAE,EAChC,mBAAmB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,EACtD,WAAW,EAAE,OAAO,EACpB,SAAS,CAAC,EAAE,MAAM,KACf,KAAK,CAAC,YAAY,CAAC;IACxB,oBAAoB,CAAC,EAAE,CACrB,iBAAiB,EAAE,WAAW,EAAE,KAC7B,KAAK,CAAC,YAAY,CAAC;CACzB;AAED,eAAO,MAAM,qBAAqB,mGAyFhC,CAAC"}
@@ -28,13 +28,18 @@ const PageHeaderTagOverflow = React.forwardRef(({ renderOverflowTag, renderPopov
28
28
  const tagsContainerRef = ref || localRef;
29
29
  useEffect(() => {
30
30
  const handleResize = () => {
31
+ if (openPopover) (tagsContainerRef.current?.querySelector(`#${overflowButtonId}`))?.focus();
31
32
  setOpenPopover(false);
32
33
  };
33
34
  window.addEventListener("resize", handleResize);
34
35
  return () => {
35
36
  window.removeEventListener("resize", handleResize);
36
37
  };
37
- }, []);
38
+ }, [
39
+ openPopover,
40
+ overflowButtonId,
41
+ tagsContainerRef
42
+ ]);
38
43
  const handleOverflowClick = useCallback((event) => {
39
44
  event.stopPropagation();
40
45
  setOpenPopover((prev) => !prev);
@@ -56,7 +61,10 @@ const PageHeaderTagOverflow = React.forwardRef(({ renderOverflowTag, renderPopov
56
61
  "data-fixed": true,
57
62
  "aria-labelledby": overflowButtonId,
58
63
  className: (0, import_classnames.default)(`${pkg.prefix}--page-header--tag-overflow-popover`, { [`${pkg.prefix}--page-header--tag-overflow-popover__hidden`]: !hiddenTags.length })
59
- }, renderOverflowTag?.(hiddenTags, handleOverflowClick, openPopover, overflowButtonId), /* @__PURE__ */ React.createElement(PopoverContent, null, /* @__PURE__ */ React.createElement("div", { className: `${blockClass}__tags-popover-list` }, renderPopoverContent?.(hiddenTags)))));
64
+ }, renderOverflowTag?.(hiddenTags, handleOverflowClick, openPopover, overflowButtonId), /* @__PURE__ */ React.createElement(PopoverContent, null, /* @__PURE__ */ React.createElement("ul", {
65
+ className: `${blockClass}__tags-popover-list`,
66
+ "aria-label": "Hidden tags"
67
+ }, renderPopoverContent?.(hiddenTags)))));
60
68
  });
61
69
  PageHeaderTagOverflow.displayName = "PageHeaderTagOverflow";
62
70
  //#endregion
@@ -31,6 +31,8 @@ type PageHeaderContextType = {
31
31
  isFunctionalContentActions?: boolean;
32
32
  disableStickyTabBar?: boolean;
33
33
  setDisableStickyTabBar?: React.Dispatch<React.SetStateAction<boolean>>;
34
+ fullWidthGrid?: boolean | 'xl';
35
+ narrowGrid?: boolean;
34
36
  };
35
37
  export declare const PageHeaderContext: import("react").Context<PageHeaderContextType>;
36
38
  export declare function usePageHeader(): PageHeaderContextType;
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/components/PageHeader/next/context.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAiB,SAAS,EAAc,MAAM,OAAO,CAAC;AAE7D;;;;GAIG;AAEH,MAAM,MAAM,cAAc,GAAG;IAC3B,UAAU,CAAC,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC9C,QAAQ,CAAC,EAAE,SAAS,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAAC;IAChD,cAAc,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC/C,iBAAiB,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CACnD,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,EAAE,OAAO,CAAC;IACtB,qBAAqB,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF,KAAK,qBAAqB,GAAG;IAC3B,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,CAAC;IAC9D,mBAAmB,CAAC,EAChB,KAAK,CAAC,SAAS,GACf,CAAC,CAAC,KAAK,EAAE,uBAAuB,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IAC1D,sBAAsB,EAAE,KAAK,CAAC,QAAQ,CACp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AAC;IAC9D,mBAAmB,CAAC,EAChB,KAAK,CAAC,SAAS,GACf,CAAC,CAAC,KAAK,EAAE,uBAAuB,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IAC1D,sBAAsB,EAAE,KAAK,CAAC,QAAQ,CACpC,KAAK,CAAC,cAAc,CAClB,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,KAAK,EAAE,uBAAuB,KAAK,KAAK,CAAC,SAAS,CAAC,CACxE,CACF,CAAC;IACF,aAAa,EAAE,uBAAuB,CAAC;IACvC,+BAA+B,CAAC,EAAE,OAAO,CAAC;IAC1C,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,sBAAsB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IACvE,aAAa,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,iBAAiB,gDAgB5B,CAAC;AAEH,wBAAgB,aAAa,0BAQ5B"}
@@ -24,7 +24,9 @@ const PageHeaderContext = createContext({
24
24
  contentActionsClipped: false
25
25
  },
26
26
  disableStickyTabBar: false,
27
- setDisableStickyTabBar: () => {}
27
+ setDisableStickyTabBar: () => {},
28
+ fullWidthGrid: void 0,
29
+ narrowGrid: void 0
28
30
  });
29
31
  function usePageHeader() {
30
32
  const context = useContext(PageHeaderContext);
@@ -5,15 +5,6 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  import React, { PropsWithChildren } from 'react';
8
- /**
9
- The `StatusIcon` component follows the Carbon guidelines for status icons with
10
- some added specifications around illustration usage. For additional usage
11
- guidelines and documentation please refer to the links above.
12
-
13
- _Status icons_ are an important method of communicating severity level
14
- information to users. The shapes and colors, communicate severity that enable
15
- users to quickly assess and identify status and respond accordingly.
16
- */
17
8
  type Size = 'sm' | 'md' | 'lg' | 'xl';
18
9
  type Theme = 'light' | 'dark';
19
10
  type Kind = 'fatal' | 'critical' | 'major-warning' | 'minor-warning' | 'undefined' | 'unknown' | 'normal' | 'info' | 'in-progress' | 'running' | 'pending';
@@ -39,6 +30,17 @@ export interface StatusIconProps extends PropsWithChildren {
39
30
  */
40
31
  theme: Theme;
41
32
  }
33
+ /**
34
+ * The `StatusIcon` component follows the Carbon guidelines for status icons with
35
+ * some added specifications around illustration usage. For additional usage
36
+ * guidelines and documentation please refer to the links above.
37
+ *
38
+ * _Status icons_ are an important method of communicating severity level
39
+ * information to users. The shapes and colors, communicate severity that enable
40
+ * users to quickly assess and identify status and respond accordingly.
41
+ *
42
+ * @deprecated This component is deprecated.
43
+ */
42
44
  export declare const StatusIcon: React.ForwardRefExoticComponent<StatusIconProps & React.RefAttributes<React.ReactSVGElement>>;
43
45
  export {};
44
46
  //# sourceMappingURL=StatusIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StatusIcon.d.ts","sourceRoot":"","sources":["../../../src/components/StatusIcon/StatusIcon.tsx"],"names":[],"mappings":"AAaA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,EACZ,iBAAiB,EAIlB,MAAM,OAAO,CAAC;AAUf;;;;;;;;GAQG;AAEH,KAAK,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACtC,KAAK,KAAK,GAAG,OAAO,GAAG,MAAM,CAAC;AAC9B,KAAK,IAAI,GACL,OAAO,GACP,UAAU,GACV,eAAe,GACf,eAAe,GACf,WAAW,GACX,SAAS,GACT,QAAQ,GACR,MAAM,GACN,aAAa,GACb,SAAS,GACT,SAAS,CAAC;AACd,MAAM,WAAW,eAAgB,SAAQ,iBAAiB;IACxD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC;IACX;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC;IACX;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;CACd;AACD,eAAO,MAAM,UAAU,+FAyLtB,CAAC"}
1
+ {"version":3,"file":"StatusIcon.d.ts","sourceRoot":"","sources":["../../../src/components/StatusIcon/StatusIcon.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAeH,OAAO,KAAK,EAAE,EACZ,iBAAiB,EAIlB,MAAM,OAAO,CAAC;AASf,KAAK,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACtC,KAAK,KAAK,GAAG,OAAO,GAAG,MAAM,CAAC;AAC9B,KAAK,IAAI,GACL,OAAO,GACP,UAAU,GACV,eAAe,GACf,eAAe,GACf,WAAW,GACX,SAAS,GACT,QAAQ,GACR,MAAM,GACN,aAAa,GACb,SAAS,GACT,SAAS,CAAC;AACd,MAAM,WAAW,eAAgB,SAAQ,iBAAiB;IACxD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC;IACX;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC;IACX;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;CACd;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,UAAU,+FAyLtB,CAAC"}
@@ -22,6 +22,17 @@ import { CheckmarkFilled, CheckmarkOutline, ErrorFilled, InProgress, Information
22
22
  var import_classnames = /* @__PURE__ */ __toESM(require_classnames());
23
23
  const blockClass = `${pkg.prefix}--status-icon`;
24
24
  const componentName = "StatusIcon";
25
+ /**
26
+ * The `StatusIcon` component follows the Carbon guidelines for status icons with
27
+ * some added specifications around illustration usage. For additional usage
28
+ * guidelines and documentation please refer to the links above.
29
+ *
30
+ * _Status icons_ are an important method of communicating severity level
31
+ * information to users. The shapes and colors, communicate severity that enable
32
+ * users to quickly assess and identify status and respond accordingly.
33
+ *
34
+ * @deprecated This component is deprecated.
35
+ */
25
36
  const StatusIcon = forwardRef(({ kind, theme, size, className, iconDescription, ...rest }, ref) => {
26
37
  const forwardedRef = ref;
27
38
  const IconComponent = {
@@ -277,6 +288,11 @@ const StatusIcon = forwardRef(({ kind, theme, size, className, iconDescription,
277
288
  }, /* @__PURE__ */ React.createElement("title", null, iconDescription));
278
289
  });
279
290
  StatusIcon.displayName = componentName;
291
+ /**@ts-ignore*/
292
+ StatusIcon.deprecated = {
293
+ level: "warn",
294
+ details: `Please replace ${componentName} with Icon Indicator from Carbon`
295
+ };
280
296
  StatusIcon.propTypes = {
281
297
  /**
282
298
  * Provide an optional class to be applied to the modal root node.