@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
@@ -42,15 +42,28 @@ const ConditionBuilderContext = (0, react.createContext)({
42
42
  popOverSearchThreshold: 0
43
43
  });
44
44
  const ConditionBuilderProvider = (props) => {
45
- const [rootState, setRootState] = (0, react.useState)({ groups: [] });
45
+ const [internalState, setInternalState] = (0, react.useState)(props.value ?? { groups: [] });
46
46
  const [actionState, setActionState] = (0, react.useState)([]);
47
+ const prevValueRef = (0, react.useRef)(props.value);
48
+ (0, react.useEffect)(() => {
49
+ if (props.value !== void 0 && props.value !== prevValueRef.current) setInternalState(props.value);
50
+ prevValueRef.current = props.value;
51
+ }, [props.value]);
52
+ const rootState = internalState;
53
+ const setRootState = (next) => {
54
+ setInternalState((prev) => {
55
+ const resolved = typeof next === "function" ? next(prev) : next;
56
+ props.onChange?.(resolved);
57
+ return resolved;
58
+ });
59
+ };
47
60
  const contextValue = {
48
61
  rootState,
49
62
  setRootState,
50
63
  actionState,
51
64
  setActionState,
52
65
  inputConfig: props.inputConfig,
53
- popOverSearchThreshold: props.popOverSearchThreshold,
66
+ popOverSearchThreshold: props.popOverSearchThreshold ?? 4,
54
67
  getOptions: props.getOptions,
55
68
  variant: props.variant,
56
69
  translateWithId: props.translateWithId,
@@ -58,7 +71,10 @@ const ConditionBuilderProvider = (props) => {
58
71
  statementConfigCustom: props.statementConfigCustom,
59
72
  onAddItem: props.onAddItem,
60
73
  onRemoveItem: props.onRemoveItem,
61
- readOnly: props.readOnly
74
+ readOnly: props.readOnly,
75
+ startActive: props.startActive,
76
+ value: props.value,
77
+ onChange: props.onChange
62
78
  };
63
79
  return /* @__PURE__ */ react.default.createElement(ConditionBuilderContext.Provider, { value: contextValue }, props.children);
64
80
  };
@@ -73,18 +89,12 @@ ConditionBuilderProvider.propTypes = {
73
89
  /**@ts-ignore */
74
90
  conditionBuilderRef: prop_types.default.object,
75
91
  /**
76
- * This is an optional callback function that will be triggered when options array is not passed in the inputConfig against a property.
77
- * This can be a asynchronous function that need to return a promise, so it will allow to fetch options from API call.
78
- * options has to be in valid format
79
- * [{
80
- label: 'label',
81
- id: 'id',
82
- },...]
92
+ * This is an optional callback function that will be triggered when options array is not passed
93
+ * in the inputConfig against a property. Returns a promise resolving to an options array.
83
94
  */
84
95
  getOptions: prop_types.default.func,
85
96
  /**
86
97
  * This is a mandatory prop that defines the input to the condition builder.
87
-
88
98
  */
89
99
  /**@ts-ignore */
90
100
  inputConfig: prop_types.default.shape({ properties: prop_types.default.arrayOf(prop_types.default.shape({
@@ -116,17 +126,27 @@ ConditionBuilderProvider.propTypes = {
116
126
  })
117
127
  })) }).isRequired,
118
128
  /**
119
- * This will enable search in option popovers when option list length is more that this threshold
129
+ * Called with the full new state on every change. Use with `value` for
130
+ * controlled mode, or standalone instead of `getConditionState`.
131
+ */
132
+ onChange: prop_types.default.func,
133
+ /**
134
+ * This will enable search in option popovers when option list length exceeds this threshold.
135
+ * Defaults to 4 when not provided.
120
136
  */
121
- popOverSearchThreshold: prop_types.default.number.isRequired,
137
+ popOverSearchThreshold: prop_types.default.number,
122
138
  /**
123
- * Optional prop if you want to pass translation to the texts used . Otherwise this will the defined defaults.
139
+ * Optional prop if you want to pass translation to the texts used. Otherwise uses defined defaults.
124
140
  * This callback function will receive the message id and you need to return the corresponding text for that id.
125
- * The message key will be one of [ "ifText", "addConditionText", "addConditionGroupText", "addSubgroupText", "conditionText", "propertyText", "operatorText", "valueText", "connectorText", "conditionRowText", "removeConditionText", "addConditionRowText", "startText", "endText", "clearSearchText", "actionsText", "then", "removeActionText", "addActionText", "invalidText", "invalidNumberWarnText"
126
- ]
127
141
  */
128
142
  translateWithId: prop_types.default.func,
129
143
  /**
144
+ * Controlled state. When provided, the builder is controlled and `onChange`
145
+ * must be supplied to keep the state in sync.
146
+ */
147
+ /**@ts-ignore */
148
+ value: prop_types.default.object,
149
+ /**
130
150
  * Provide the condition builder variant: Non-Hierarchical/ Hierarchical
131
151
  */
132
152
  variant: prop_types.default.string.isRequired
@@ -43,6 +43,7 @@ export namespace translationsObject {
43
43
  let invalidText: string;
44
44
  let invalidNumberWarnText: string;
45
45
  let conditionBuilderText: string;
46
+ let conditionBuilderGroupText: string;
46
47
  let actionSectionText: string;
47
48
  let conditionHeadingText: string;
48
49
  let addPropertyText: string;
@@ -57,6 +57,7 @@ const translationsObject = {
57
57
  invalidText: "Incomplete",
58
58
  invalidNumberWarnText: "Invalid number, must be 0 or greater",
59
59
  conditionBuilderText: "Condition Builder",
60
+ conditionBuilderGroupText: "Condition Group",
60
61
  actionSectionText: "Action Section",
61
62
  conditionHeadingText: "Condition",
62
63
  addPropertyText: "Add property",
@@ -6,5 +6,5 @@
6
6
  */
7
7
  export { ConditionBuilder } from './ConditionBuilder';
8
8
  export * from './ConditionBuilder.types';
9
- export { getEmptyState } from './ConditionBuilderContext/ConditionBuilderProvider';
9
+ export { ConditionBuilderContext, getEmptyState, } from './ConditionBuilderContext/ConditionBuilderProvider';
10
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ConditionBuilder/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,oDAAoD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ConditionBuilder/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,cAAc,0BAA0B,CAAC;AACzC,OAAO,EACL,uBAAuB,EACvB,aAAa,GACd,MAAM,oDAAoD,CAAC"}
@@ -64,13 +64,13 @@ const handleKeyPressForPopover = (evt, parentContainer, conditionBuilderRef, clo
64
64
  break;
65
65
  case " ":
66
66
  if (isMultiSelect === "true") {
67
- if (document.activeElement.type !== "button") document.activeElement?.click();
67
+ document.activeElement?.click();
68
68
  evt.preventDefault();
69
69
  }
70
70
  break;
71
71
  case "Enter":
72
72
  if (isMultiSelect === "true") {
73
- if (document.activeElement.type !== "button") document.activeElement?.click();
73
+ document.activeElement?.click();
74
74
  evt.preventDefault();
75
75
  } else if (document.activeElement.type !== "button") {
76
76
  require_util.focusThisField(evt, conditionBuilderRef);
@@ -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;;;;;GAKG;AACH,OAAO,KAA0D,MAAM,OAAO,CAAC;AAS/E,OAAO,EACL,uBAAuB,EACvB,KAAK,4BAA4B,EAClC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,iBAAiB,EACjB,KAAK,sBAAsB,EAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,4BAA4B,EAC5B,KAAK,iCAAiC,EACvC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,qBAAqB,EACrB,KAAK,0BAA0B,EAChC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,mBAAmB,EACnB,KAAK,wBAAwB,EAC9B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,gBAAgB,EAChB,KAAK,qBAAqB,EAC3B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,qBAAqB,EACrB,KAAK,0BAA0B,EAChC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,sBAAsB,EACtB,KAAK,2BAA2B,EACjC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EACL,4BAA4B,EAC5B,KAAK,iCAAiC,EACvC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,+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,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,CAAC;AAS/E,OAAO,EACL,uBAAuB,EACvB,KAAK,4BAA4B,EAClC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,iBAAiB,EACjB,KAAK,sBAAsB,EAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,4BAA4B,EAC5B,KAAK,iCAAiC,EACvC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,qBAAqB,EACrB,KAAK,0BAA0B,EAChC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,mBAAmB,EACnB,KAAK,wBAAwB,EAC9B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,gBAAgB,EAChB,KAAK,qBAAqB,EAC3B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,qBAAqB,EACrB,KAAK,0BAA0B,EAChC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,sBAAsB,EACtB,KAAK,2BAA2B,EACjC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EACL,4BAA4B,EAC5B,KAAK,iCAAiC,EACvC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,+BAA+B,EAC/B,KAAK,oCAAoC,EACzC,K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BAAyB,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"}
@@ -33,7 +33,7 @@ react = require_runtime.__toESM(react);
33
33
  * LICENSE file in the root directory of this source tree.
34
34
  */
35
35
  var import_classnames = /* @__PURE__ */ require_runtime.__toESM(require_index.default);
36
- const PageHeader = react.default.forwardRef(function PageHeader({ className, children, onContentFullyCollapsed, onTitleClipped, onContentActionsClipped, ...other }, ref) {
36
+ const PageHeader = react.default.forwardRef(function PageHeader({ className, children, onContentFullyCollapsed, onTitleClipped, onContentActionsClipped, fullWidthGrid, narrowGrid, ...other }, ref) {
37
37
  const [refs, setRefs] = (0, react.useState)({});
38
38
  const [pageActionsInstance, setPageActionsInstance] = (0, react.useState)(null);
39
39
  const [disableStickyTabBar, setDisableStickyTabBar] = (0, react.useState)(false);
@@ -42,7 +42,8 @@ const PageHeader = react.default.forwardRef(function PageHeader({ className, chi
42
42
  const classNames = (0, import_classnames.default)({
43
43
  [`${require_PageHeaderUtils.blockClass}`]: true,
44
44
  [`${require_PageHeaderUtils.blockClass}__next`]: true,
45
- [`${require_PageHeaderUtils.blockClass}--disable-sticky-tab-bar`]: disableStickyTabBar
45
+ [`${require_PageHeaderUtils.blockClass}--disable-sticky-tab-bar`]: disableStickyTabBar,
46
+ [`${require_PageHeaderUtils.blockClass}--width--xl`]: fullWidthGrid === "xl"
46
47
  }, className);
47
48
  require_useResizeObserver.useResizeObserver(componentRef, () => {
48
49
  if (componentRef?.current) {
@@ -131,7 +132,9 @@ const PageHeader = react.default.forwardRef(function PageHeader({ className, chi
131
132
  setPageActionsInstance,
132
133
  observerState,
133
134
  disableStickyTabBar,
134
- setDisableStickyTabBar
135
+ setDisableStickyTabBar,
136
+ fullWidthGrid,
137
+ narrowGrid
135
138
  } }, /* @__PURE__ */ react.default.createElement("div", {
136
139
  className: classNames,
137
140
  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"}
@@ -22,7 +22,7 @@ let _carbon_react = require("@carbon/react");
22
22
  var import_classnames = /* @__PURE__ */ require_runtime.__toESM(require_index.default);
23
23
  const PageHeaderBreadcrumbBar = react.default.forwardRef(function PageHeaderBreadcrumbBar({ border = true, className, children, renderIcon: IconElement, contentActions, contentActionsFlush, pageActions, pageActionsFlush, actionsAriaLabel = "Page header actions", ...other }, ref) {
24
24
  const context = require_context.usePageHeader();
25
- const { pageActionsInstance: globalActions, observerState } = context;
25
+ const { pageActionsInstance: globalActions, observerState, fullWidthGrid, narrowGrid } = context;
26
26
  const classNames = (0, import_classnames.default)({
27
27
  [`${require_PageHeaderUtils.blockClass}__breadcrumb-bar`]: true,
28
28
  [`${require_PageHeaderUtils.blockClass}__breadcrumb-bar-border`]: border,
@@ -42,14 +42,17 @@ const PageHeaderBreadcrumbBar = react.default.forwardRef(function PageHeaderBrea
42
42
  className: classNames,
43
43
  ref,
44
44
  ...other
45
- }, /* @__PURE__ */ react.default.createElement(_carbon_react.Grid, null, /* @__PURE__ */ react.default.createElement(_carbon_react.Column, {
45
+ }, /* @__PURE__ */ react.default.createElement(_carbon_react.Grid, {
46
+ fullWidth: !!fullWidthGrid,
47
+ narrow: narrowGrid
48
+ }, /* @__PURE__ */ react.default.createElement(_carbon_react.Column, {
46
49
  lg: 16,
47
50
  md: 8,
48
51
  sm: 4
49
52
  }, /* @__PURE__ */ react.default.createElement("div", { className: `${require_PageHeaderUtils.blockClass}__breadcrumb-container` }, /* @__PURE__ */ react.default.createElement("div", { className: `${require_PageHeaderUtils.blockClass}__breadcrumb-wrapper` }, IconElement && /* @__PURE__ */ react.default.createElement("div", {
50
53
  className: `${require_PageHeaderUtils.blockClass}__breadcrumb__icon`,
51
54
  "aria-hidden": "true"
52
- }, /* @__PURE__ */ react.default.createElement(IconElement, null)), children), /* @__PURE__ */ react.default.createElement("div", {
55
+ }, /* @__PURE__ */ react.default.createElement(IconElement, null)), children), (contentActions || pageActions) && /* @__PURE__ */ react.default.createElement("div", {
53
56
  className: `${require_PageHeaderUtils.blockClass}__breadcrumb__actions`,
54
57
  role: "toolbar",
55
58
  "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"}
@@ -40,12 +40,6 @@ const PageHeaderBreadcrumbPageActions = ({ actions, className, overflowMenuLabel
40
40
  return /* @__PURE__ */ react.default.createElement("ul", {
41
41
  ref: containerRef,
42
42
  className: classNames,
43
- style: {
44
- display: "inline-flex",
45
- alignItems: "center",
46
- justifyContent: "flex-end",
47
- inlineSize: "50%"
48
- },
49
43
  ...other
50
44
  }, actions.map((item) => /* @__PURE__ */ react.default.createElement("li", {
51
45
  key: item.id,
@@ -61,13 +55,13 @@ const PageHeaderBreadcrumbPageActions = ({ actions, className, overflowMenuLabel
61
55
  "data-offset": true,
62
56
  "data-hidden": true,
63
57
  "data-floating-menu-container": true,
64
- style: { position: "relative" }
58
+ className: `${require_PageHeaderUtils.blockClass}__breadcrumb-page-actions__overflow-item`
65
59
  }, /* @__PURE__ */ react.default.createElement(_carbon_react.FeatureFlags, { enableV12Overflowmenu: true }, /* @__PURE__ */ react.default.createElement(_carbon_react.OverflowMenu, {
66
60
  size: buttonSize,
67
61
  "aria-label": overflowMenuLabel
68
- }, hiddenItems.map((item) => /* @__PURE__ */ react.default.createElement(_carbon_react.OverflowMenuItem, {
62
+ }, hiddenItems.map((item) => /* @__PURE__ */ react.default.createElement(_carbon_react.MenuItem, {
69
63
  key: item.id,
70
- itemText: item.label,
64
+ label: item.label,
71
65
  onClick: item.onClick
72
66
  }))))));
73
67
  };
@@ -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"}
@@ -26,10 +26,11 @@ var import_classnames = /* @__PURE__ */ require_runtime.__toESM(require_index.de
26
26
  const PageHeaderContent = react.default.forwardRef(function PageHeaderContent({ className, children, title, titleAs: TitleTag = "h1", titleTruncate, renderIcon: IconElement, contextualActions, pageActions, ...other }, ref) {
27
27
  const contentRef = (0, react.useRef)(null);
28
28
  const componentRef = ref ?? contentRef;
29
- const { setRefs, setPageActionsInstance, observerState } = require_context.usePageHeader();
29
+ const { setRefs, setPageActionsInstance, observerState, fullWidthGrid, narrowGrid } = require_context.usePageHeader();
30
30
  const classNames = (0, import_classnames.default)({ [`${require_PageHeaderUtils.blockClass}__content`]: true }, className);
31
31
  const titleRef = (0, react.useRef)(null);
32
32
  const titleLines = titleTruncate ?? (contextualActions ? 1 : 2);
33
+ `${require_PageHeaderUtils.blockClass}${(0, react.useId)()}`;
33
34
  (0, react.useEffect)(() => {
34
35
  if (componentRef?.current) setRefs((prev) => ({
35
36
  ...prev,
@@ -46,21 +47,27 @@ const PageHeaderContent = react.default.forwardRef(function PageHeaderContent({
46
47
  className: classNames,
47
48
  ref: componentRef,
48
49
  ...other
49
- }, /* @__PURE__ */ react.default.createElement(_carbon_react.Grid, null, /* @__PURE__ */ react.default.createElement(_carbon_react.Column, {
50
+ }, /* @__PURE__ */ react.default.createElement(_carbon_react.Grid, {
51
+ fullWidth: !!fullWidthGrid,
52
+ narrow: narrowGrid
53
+ }, /* @__PURE__ */ react.default.createElement(_carbon_react.Column, {
50
54
  lg: 16,
51
55
  md: 8,
52
56
  sm: 4
53
- }, /* @__PURE__ */ react.default.createElement("div", { className: `${require_PageHeaderUtils.blockClass}__content__title-wrapper` }, /* @__PURE__ */ react.default.createElement("div", { className: `${require_PageHeaderUtils.blockClass}__content__start` }, /* @__PURE__ */ react.default.createElement("div", { className: `${require_PageHeaderUtils.blockClass}__content__title-container` }, IconElement && /* @__PURE__ */ react.default.createElement("div", { className: `${require_PageHeaderUtils.blockClass}__content__icon` }, /* @__PURE__ */ react.default.createElement(IconElement, null)), /* @__PURE__ */ react.default.createElement(TitleTag, {
57
+ }, /* @__PURE__ */ react.default.createElement("div", { className: `${require_PageHeaderUtils.blockClass}__content__title-wrapper` }, /* @__PURE__ */ react.default.createElement("div", { className: `${require_PageHeaderUtils.blockClass}__content__start` }, /* @__PURE__ */ react.default.createElement("div", { className: `${require_PageHeaderUtils.blockClass}__content__title-container` }, IconElement && /* @__PURE__ */ react.default.createElement("div", {
58
+ className: `${require_PageHeaderUtils.blockClass}__content__icon`,
59
+ "aria-hidden": "true"
60
+ }, /* @__PURE__ */ react.default.createElement(IconElement, null)), /* @__PURE__ */ react.default.createElement(TitleTag, {
54
61
  ref: titleRef,
55
62
  className: `${require_PageHeaderUtils.blockClass}__content__title`
56
- }, /* @__PURE__ */ react.default.createElement(require_TruncatedText.TruncatedText, {
63
+ }, typeof title === "string" ? /* @__PURE__ */ react.default.createElement(require_TruncatedText.TruncatedText, {
57
64
  id: `${require_PageHeaderUtils.blockClass}__content__title__truncatedText`,
58
65
  className: `${require_PageHeaderUtils.blockClass}__content__title-text`,
59
66
  align: "bottom",
60
67
  value: title,
61
68
  lines: titleLines,
62
69
  type: "tooltip"
63
- }))), contextualActions && /* @__PURE__ */ react.default.createElement("div", { className: `${require_PageHeaderUtils.blockClass}__content__contextual-actions` }, contextualActions)), typeof pageActions === "function" ? pageActions(observerState) : pageActions), children)));
70
+ }) : /* @__PURE__ */ react.default.createElement("span", { className: `${require_PageHeaderUtils.blockClass}__content__title-text` }, title))), contextualActions && /* @__PURE__ */ react.default.createElement("div", { className: `${require_PageHeaderUtils.blockClass}__content__contextual-actions` }, contextualActions)), typeof pageActions === "function" ? pageActions(observerState) : pageActions), children)));
64
71
  });
65
72
  PageHeaderContent.displayName = "PageHeaderContent";
66
73
  PageHeaderContent.propTypes = {
@@ -85,13 +92,9 @@ PageHeaderContent.propTypes = {
85
92
  */
86
93
  renderIcon: prop_types.default.oneOfType([prop_types.default.func, prop_types.default.object]),
87
94
  /**
88
- * The PageHeaderContent's subtitle
89
- */
90
- subtitle: prop_types.default.string,
91
- /**
92
95
  * The PageHeaderContent's title
93
96
  */
94
- title: prop_types.default.string.isRequired,
97
+ title: prop_types.default.node.isRequired,
95
98
  /**
96
99
  * Specify the element or component used to render the title.
97
100
  */
@@ -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
  const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
9
9
  const require_index = require("../../../node_modules/classnames/index.js");
10
+ const require_settings = require("../../../settings.js");
10
11
  const require_useIsomorphicEffect = require("../../../global/js/hooks/useIsomorphicEffect.js");
11
12
  const require_PageHeaderUtils = require("../PageHeaderUtils.js");
12
13
  const require_context = require("./context.js");
@@ -33,9 +34,9 @@ const PageHeaderContentPageActions = ({ className, children, menuButtonLabel = "
33
34
  const [hiddenItems, setHiddenItems] = (0, react.useState)([]);
34
35
  const [hasMounted, setHasMounted] = (0, react.useState)(false);
35
36
  require_useIsomorphicEffect.useIsomorphicEffect(() => {
36
- if (menuButtonVisibility && offsetRef.current) {
37
+ if (menuButtonVisibility && offsetRef.current && containerRef.current) {
37
38
  const width = offsetRef.current.offsetWidth;
38
- document.documentElement.style.setProperty("--page-header-title-grid-width", `${width}px`);
39
+ (containerRef.current.closest(`.${require_PageHeaderUtils.blockClass}__next`) ?? containerRef.current).style.setProperty(`--${require_settings.pkg.prefix}-page-header-title-grid-width`, `${width}px`);
39
40
  }
40
41
  }, [menuButtonVisibility]);
41
42
  (0, react.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
  const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
9
9
  const require_index = require("../../../node_modules/classnames/index.js");
10
+ const require_pconsole = require("../../../global/js/utils/pconsole.js");
10
11
  const require_settings = require("../../../settings.js");
11
12
  const require_context = require("./context.js");
12
13
  const require_utils = require("./utils.js");
@@ -23,6 +24,8 @@ let _carbon_react_icons = require("@carbon/react/icons");
23
24
  */
24
25
  var import_classnames = /* @__PURE__ */ require_runtime.__toESM(require_index.default);
25
26
  const PageHeaderScrollButton = react.default.forwardRef(function PageHeaderExpander({ className, children, label, onClick, collapseText = "Collapse", expandText = "Expand", ...other }, ref) {
27
+ if (!collapseText) require_pconsole.default.warn("PageHeaderScrollButton: The `collapseText` prop is the accessible label for the collapse button. Provide a translated string.");
28
+ if (!expandText) require_pconsole.default.warn("PageHeaderScrollButton: The `expandText` prop is the accessible label for the expand button. Provide a translated string.");
26
29
  const { refs, observerState } = require_context.usePageHeader();
27
30
  const fullyCollapsed = observerState.fullyCollapsed;
28
31
  const handleScroller = (isFullyCollapsed) => {
@@ -22,7 +22,7 @@ let _carbon_react = require("@carbon/react");
22
22
  */
23
23
  var import_classnames = /* @__PURE__ */ require_runtime.__toESM(require_index.default);
24
24
  const PageHeaderTabBar = react.default.forwardRef(function PageHeaderTabBar({ className, children, tags, scroller, disableStickyTabBar = false, ...other }, ref) {
25
- const { setDisableStickyTabBar } = require_context.usePageHeader();
25
+ const { setDisableStickyTabBar, fullWidthGrid, narrowGrid } = require_context.usePageHeader();
26
26
  (0, react.useEffect)(() => {
27
27
  setDisableStickyTabBar?.(disableStickyTabBar);
28
28
  }, [disableStickyTabBar, setDisableStickyTabBar]);
@@ -32,7 +32,11 @@ const PageHeaderTabBar = react.default.forwardRef(function PageHeaderTabBar({ cl
32
32
  className: classNames,
33
33
  ref,
34
34
  ...other
35
- }, /* @__PURE__ */ react.default.createElement(_carbon_react.Grid, { condensed: true }, /* @__PURE__ */ react.default.createElement(_carbon_react.Column, {
35
+ }, /* @__PURE__ */ react.default.createElement(_carbon_react.Grid, {
36
+ condensed: true,
37
+ fullWidth: !!fullWidthGrid,
38
+ narrow: narrowGrid
39
+ }, /* @__PURE__ */ react.default.createElement(_carbon_react.Column, {
36
40
  lg: 16,
37
41
  md: 8,
38
42
  sm: 4
@@ -41,7 +45,11 @@ const PageHeaderTabBar = react.default.forwardRef(function PageHeaderTabBar({ cl
41
45
  className: classNames,
42
46
  ref,
43
47
  ...other
44
- }, /* @__PURE__ */ react.default.createElement(_carbon_react.Grid, { condensed: true }, /* @__PURE__ */ react.default.createElement(_carbon_react.Column, {
48
+ }, /* @__PURE__ */ react.default.createElement(_carbon_react.Grid, {
49
+ condensed: true,
50
+ fullWidth: !!fullWidthGrid,
51
+ narrow: narrowGrid
52
+ }, /* @__PURE__ */ react.default.createElement(_carbon_react.Column, {
45
53
  lg: 16,
46
54
  md: 8,
47
55
  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"}
@@ -29,13 +29,18 @@ const PageHeaderTagOverflow = react.default.forwardRef(({ renderOverflowTag, ren
29
29
  const tagsContainerRef = ref || localRef;
30
30
  (0, react.useEffect)(() => {
31
31
  const handleResize = () => {
32
+ if (openPopover) (tagsContainerRef.current?.querySelector(`#${overflowButtonId}`))?.focus();
32
33
  setOpenPopover(false);
33
34
  };
34
35
  window.addEventListener("resize", handleResize);
35
36
  return () => {
36
37
  window.removeEventListener("resize", handleResize);
37
38
  };
38
- }, []);
39
+ }, [
40
+ openPopover,
41
+ overflowButtonId,
42
+ tagsContainerRef
43
+ ]);
39
44
  const handleOverflowClick = (0, react.useCallback)((event) => {
40
45
  event.stopPropagation();
41
46
  setOpenPopover((prev) => !prev);
@@ -57,7 +62,10 @@ const PageHeaderTagOverflow = react.default.forwardRef(({ renderOverflowTag, ren
57
62
  "data-fixed": true,
58
63
  "aria-labelledby": overflowButtonId,
59
64
  className: (0, import_classnames.default)(`${require_settings.pkg.prefix}--page-header--tag-overflow-popover`, { [`${require_settings.pkg.prefix}--page-header--tag-overflow-popover__hidden`]: !hiddenTags.length })
60
- }, renderOverflowTag?.(hiddenTags, handleOverflowClick, openPopover, overflowButtonId), /* @__PURE__ */ react.default.createElement(_carbon_react.PopoverContent, null, /* @__PURE__ */ react.default.createElement("div", { className: `${require_PageHeaderUtils.blockClass}__tags-popover-list` }, renderPopoverContent?.(hiddenTags)))));
65
+ }, renderOverflowTag?.(hiddenTags, handleOverflowClick, openPopover, overflowButtonId), /* @__PURE__ */ react.default.createElement(_carbon_react.PopoverContent, null, /* @__PURE__ */ react.default.createElement("ul", {
66
+ className: `${require_PageHeaderUtils.blockClass}__tags-popover-list`,
67
+ "aria-label": "Hidden tags"
68
+ }, renderPopoverContent?.(hiddenTags)))));
61
69
  });
62
70
  PageHeaderTagOverflow.displayName = "PageHeaderTagOverflow";
63
71
  //#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,OAA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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"}
@@ -25,7 +25,9 @@ const PageHeaderContext = (0, react.createContext)({
25
25
  contentActionsClipped: false
26
26
  },
27
27
  disableStickyTabBar: false,
28
- setDisableStickyTabBar: () => {}
28
+ setDisableStickyTabBar: () => {},
29
+ fullWidthGrid: void 0,
30
+ narrowGrid: void 0
29
31
  });
30
32
  function usePageHeader() {
31
33
  const context = (0, react.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"}
@@ -24,6 +24,17 @@ let _carbon_react_icons = require("@carbon/react/icons");
24
24
  var import_classnames = /* @__PURE__ */ require_runtime.__toESM(require_index.default);
25
25
  const blockClass = `${require_settings.pkg.prefix}--status-icon`;
26
26
  const componentName = "StatusIcon";
27
+ /**
28
+ * The `StatusIcon` component follows the Carbon guidelines for status icons with
29
+ * some added specifications around illustration usage. For additional usage
30
+ * guidelines and documentation please refer to the links above.
31
+ *
32
+ * _Status icons_ are an important method of communicating severity level
33
+ * information to users. The shapes and colors, communicate severity that enable
34
+ * users to quickly assess and identify status and respond accordingly.
35
+ *
36
+ * @deprecated This component is deprecated.
37
+ */
27
38
  const StatusIcon = (0, react.forwardRef)(({ kind, theme, size, className, iconDescription, ...rest }, ref) => {
28
39
  const forwardedRef = ref;
29
40
  const IconComponent = {
@@ -279,6 +290,11 @@ const StatusIcon = (0, react.forwardRef)(({ kind, theme, size, className, iconDe
279
290
  }, /* @__PURE__ */ react.default.createElement("title", null, iconDescription));
280
291
  });
281
292
  StatusIcon.displayName = componentName;
293
+ /**@ts-ignore*/
294
+ StatusIcon.deprecated = {
295
+ level: "warn",
296
+ details: `Please replace ${componentName} with Icon Indicator from Carbon`
297
+ };
282
298
  StatusIcon.propTypes = {
283
299
  /**
284
300
  * Provide an optional class to be applied to the modal root node.