@primer/react 38.0.0-rc.3 → 38.0.0-rc.4

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 (143) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/dist/ActionBar/ActionBar.d.ts.map +1 -1
  3. package/dist/ActionBar/ActionBar.js +6 -2
  4. package/dist/ActionList/Description.d.ts.map +1 -1
  5. package/dist/ActionList/Description.js +0 -1
  6. package/dist/ActionList/Visuals.js +2 -2
  7. package/dist/Autocomplete/AutocompleteMenu.js +2 -2
  8. package/dist/BaseStyles.d.ts +1 -2
  9. package/dist/BaseStyles.d.ts.map +1 -1
  10. package/dist/BaseStyles.js +1 -3
  11. package/dist/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  12. package/dist/Breadcrumbs/Breadcrumbs.js +34 -48
  13. package/dist/Button/ButtonBase.js +6 -6
  14. package/dist/Button/LinkButton.d.ts +3 -3
  15. package/dist/Button/LinkButton.d.ts.map +1 -1
  16. package/dist/Button/LinkButton.js +0 -3
  17. package/dist/Button/index.d.ts +1 -0
  18. package/dist/Button/index.d.ts.map +1 -1
  19. package/dist/ButtonGroup/ButtonGroup.d.ts +2 -3
  20. package/dist/ButtonGroup/ButtonGroup.d.ts.map +1 -1
  21. package/dist/ButtonGroup/ButtonGroup.js +41 -36
  22. package/dist/Checkbox/Checkbox.d.ts +1 -2
  23. package/dist/Checkbox/Checkbox.d.ts.map +1 -1
  24. package/dist/Checkbox/Checkbox.js +48 -79
  25. package/dist/CheckboxGroup/CheckboxGroup.d.ts +2 -3
  26. package/dist/CheckboxGroup/CheckboxGroup.d.ts.map +1 -1
  27. package/dist/CounterLabel/CounterLabel.d.ts +2 -3
  28. package/dist/CounterLabel/CounterLabel.d.ts.map +1 -1
  29. package/dist/CounterLabel/CounterLabel.js +1 -3
  30. package/dist/FilteredActionList/FilteredActionList-e1eb1b75.css +2 -0
  31. package/dist/FilteredActionList/FilteredActionList-e1eb1b75.css.map +1 -0
  32. package/dist/FilteredActionList/FilteredActionList.d.ts +2 -3
  33. package/dist/FilteredActionList/FilteredActionList.d.ts.map +1 -1
  34. package/dist/FilteredActionList/FilteredActionList.js +10 -9
  35. package/dist/FilteredActionList/FilteredActionList.module.css.js +2 -2
  36. package/dist/FilteredActionList/FilteredActionListLoaders-a46a8ea4.css +2 -0
  37. package/dist/FilteredActionList/FilteredActionListLoaders-a46a8ea4.css.map +1 -0
  38. package/dist/FilteredActionList/FilteredActionListLoaders.d.ts.map +1 -1
  39. package/dist/FilteredActionList/FilteredActionListLoaders.js +12 -29
  40. package/dist/FilteredActionList/FilteredActionListLoaders.module.css.js +2 -2
  41. package/dist/Flash/Flash.d.ts +1 -2
  42. package/dist/Flash/Flash.d.ts.map +1 -1
  43. package/dist/Flash/Flash.js +38 -45
  44. package/dist/Header/Header.d.ts +3 -4
  45. package/dist/Header/Header.d.ts.map +1 -1
  46. package/dist/Header/Header.js +10 -13
  47. package/dist/InlineMessage/InlineMessage.d.ts +1 -2
  48. package/dist/InlineMessage/InlineMessage.d.ts.map +1 -1
  49. package/dist/InlineMessage/InlineMessage.js +49 -65
  50. package/dist/PageHeader/PageHeader.d.ts +5 -5
  51. package/dist/PageHeader/PageHeader.d.ts.map +1 -1
  52. package/dist/PageHeader/PageHeader.js +330 -507
  53. package/dist/Pagehead/Pagehead.d.ts +2 -3
  54. package/dist/Pagehead/Pagehead.d.ts.map +1 -1
  55. package/dist/Pagehead/Pagehead.js +2 -2
  56. package/dist/ProgressBar/{ProgressBar-181186d4.css → ProgressBar-d27aca1d.css} +2 -2
  57. package/dist/ProgressBar/ProgressBar-d27aca1d.css.map +1 -0
  58. package/dist/ProgressBar/ProgressBar.d.ts +4 -9
  59. package/dist/ProgressBar/ProgressBar.d.ts.map +1 -1
  60. package/dist/ProgressBar/ProgressBar.js +9 -14
  61. package/dist/ProgressBar/ProgressBar.module.css.js +1 -1
  62. package/dist/ProgressBar/index.d.ts +2 -2
  63. package/dist/Radio/Radio.d.ts +1 -2
  64. package/dist/Radio/Radio.d.ts.map +1 -1
  65. package/dist/Radio/Radio.js +1 -3
  66. package/dist/RadioGroup/RadioGroup.d.ts +3 -4
  67. package/dist/RadioGroup/RadioGroup.d.ts.map +1 -1
  68. package/dist/RadioGroup/index.d.ts +1 -0
  69. package/dist/RadioGroup/index.d.ts.map +1 -1
  70. package/dist/RelativeTime/RelativeTime.d.ts +1 -3
  71. package/dist/RelativeTime/RelativeTime.d.ts.map +1 -1
  72. package/dist/Spinner/Spinner.d.ts +4 -5
  73. package/dist/Spinner/Spinner.d.ts.map +1 -1
  74. package/dist/Spinner/Spinner.js +49 -81
  75. package/dist/Timeline/Timeline.d.ts +11 -18
  76. package/dist/Timeline/Timeline.d.ts.map +1 -1
  77. package/dist/Timeline/Timeline.js +5 -6
  78. package/dist/ToggleSwitch/ToggleSwitch.d.ts +4 -0
  79. package/dist/ToggleSwitch/ToggleSwitch.d.ts.map +1 -1
  80. package/dist/ToggleSwitch/ToggleSwitch.js +195 -182
  81. package/dist/TreeView/TreeView-bdf34914.css +2 -0
  82. package/dist/TreeView/TreeView-bdf34914.css.map +1 -0
  83. package/dist/TreeView/TreeView.d.ts +15 -0
  84. package/dist/TreeView/TreeView.d.ts.map +1 -1
  85. package/dist/TreeView/TreeView.js +241 -10
  86. package/dist/TreeView/TreeView.module.css.js +2 -2
  87. package/dist/Truncate/Truncate.d.ts +1 -2
  88. package/dist/Truncate/Truncate.d.ts.map +1 -1
  89. package/dist/Truncate/Truncate.js +2 -6
  90. package/dist/UnderlineNav/UnderlineNav-78db938f.css +2 -0
  91. package/dist/UnderlineNav/UnderlineNav-78db938f.css.map +1 -0
  92. package/dist/UnderlineNav/UnderlineNav.d.ts +0 -3
  93. package/dist/UnderlineNav/UnderlineNav.d.ts.map +1 -1
  94. package/dist/UnderlineNav/UnderlineNav.js +8 -25
  95. package/dist/UnderlineNav/UnderlineNav.module.css.js +5 -0
  96. package/dist/UnderlineNav/UnderlineNavItem-b65e8fd3.css +2 -0
  97. package/dist/UnderlineNav/UnderlineNavItem-b65e8fd3.css.map +1 -0
  98. package/dist/UnderlineNav/UnderlineNavItem.d.ts +1 -2
  99. package/dist/UnderlineNav/UnderlineNavItem.d.ts.map +1 -1
  100. package/dist/UnderlineNav/UnderlineNavItem.js +49 -69
  101. package/dist/UnderlineNav/UnderlineNavItem.module.css.js +5 -0
  102. package/dist/UnderlineNav/styles.d.ts +1 -1
  103. package/dist/UnderlineNav/styles.js +1 -1
  104. package/dist/deprecated/FilteredSearch/FilteredSearch-d30f5bbc.css +2 -0
  105. package/dist/deprecated/FilteredSearch/FilteredSearch-d30f5bbc.css.map +1 -0
  106. package/dist/deprecated/FilteredSearch/FilteredSearch.d.ts +3 -4
  107. package/dist/deprecated/FilteredSearch/FilteredSearch.d.ts.map +1 -1
  108. package/dist/deprecated/FilteredSearch/FilteredSearch.js +48 -7
  109. package/dist/deprecated/FilteredSearch/FilteredSearch.module.css.js +5 -0
  110. package/dist/deprecated/index.d.ts +0 -2
  111. package/dist/deprecated/index.d.ts.map +1 -1
  112. package/dist/deprecated/index.js +0 -1
  113. package/dist/experimental/SelectPanel2/SelectPanel.js +2 -2
  114. package/dist/experimental/index.d.ts +2 -3
  115. package/dist/experimental/index.d.ts.map +1 -1
  116. package/dist/experimental/index.js +1 -2
  117. package/dist/index.d.ts +3 -4
  118. package/dist/index.d.ts.map +1 -1
  119. package/dist/index.js +0 -1
  120. package/dist/internal/components/TextInputInnerVisualSlot.js +2 -2
  121. package/dist/utils/create-component.d.ts +1 -3
  122. package/dist/utils/create-component.d.ts.map +1 -1
  123. package/dist/utils/create-component.js +3 -8
  124. package/generated/components.json +35 -242
  125. package/package.json +1 -1
  126. package/dist/DropdownStyles.d.ts +0 -4
  127. package/dist/DropdownStyles.d.ts.map +0 -1
  128. package/dist/FilteredActionList/FilteredActionList-96b126d7.css +0 -2
  129. package/dist/FilteredActionList/FilteredActionList-96b126d7.css.map +0 -1
  130. package/dist/FilteredActionList/FilteredActionListLoaders-6f14c45b.css +0 -2
  131. package/dist/FilteredActionList/FilteredActionListLoaders-6f14c45b.css.map +0 -1
  132. package/dist/PointerBox/PointerBox.d.ts +0 -28
  133. package/dist/PointerBox/PointerBox.d.ts.map +0 -1
  134. package/dist/PointerBox/PointerBox.js +0 -65
  135. package/dist/PointerBox/index.d.ts +0 -3
  136. package/dist/PointerBox/index.d.ts.map +0 -1
  137. package/dist/ProgressBar/ProgressBar-181186d4.css.map +0 -1
  138. package/dist/TreeView/TreeView-cd08cabc.css +0 -2
  139. package/dist/TreeView/TreeView-cd08cabc.css.map +0 -1
  140. package/dist/internal/components/Caret-e686f04c.css +0 -2
  141. package/dist/internal/components/Caret-e686f04c.css.map +0 -1
  142. package/dist/internal/components/Caret.js +0 -87
  143. package/dist/internal/components/Caret.module.css.js +0 -5
@@ -6,8 +6,6 @@ import { areAllValuesTheSame, haveRegularAndWideSameValue } from '../utils/getBr
6
6
  import { warning } from '../utils/warning.js';
7
7
  import { clsx } from 'clsx';
8
8
  import classes from './PageHeader.module.css.js';
9
- import { defaultSxProp } from '../utils/defaultSxProp.js';
10
- import { BoxWithFallback } from '../internal/components/BoxWithFallback.js';
11
9
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
12
10
  import { useProvidedRefOrCreate } from '../hooks/useProvidedRefOrCreate.js';
13
11
  import Heading from '../Heading/Heading.js';
@@ -31,24 +29,22 @@ const hiddenOnNarrow = {
31
29
  // -----------------------------------------------------------------------------
32
30
 
33
31
  const Root = /*#__PURE__*/React.forwardRef((t0, forwardedRef) => {
34
- const $ = c(15);
32
+ const $ = c(14);
35
33
  const {
36
34
  children,
37
35
  className,
38
- sx: t1,
39
- as: t2,
36
+ as: t1,
40
37
  "aria-label": ariaLabel,
41
38
  role,
42
39
  hasBorder
43
40
  } = t0;
44
- const sx = t1 === undefined ? defaultSxProp : t1;
45
- const as = t2 === undefined ? "div" : t2;
41
+ const BaseComponent = t1 === undefined ? "div" : t1;
46
42
  const rootRef = useProvidedRefOrCreate(forwardedRef);
47
43
  const isInteractive = _temp;
44
+ let t2;
48
45
  let t3;
49
- let t4;
50
46
  if ($[0] !== children || $[1] !== rootRef) {
51
- t3 = function validateInteractiveElementsInTitle() {
47
+ t2 = function validateInteractiveElementsInTitle() {
52
48
  if (!(process.env.NODE_ENV !== "production")) {
53
49
  return;
54
50
  }
@@ -72,50 +68,47 @@ const Root = /*#__PURE__*/React.forwardRef((t0, forwardedRef) => {
72
68
  const hasInteractiveContent = Array.from(titleArea.childNodes).some(child_1 => child_1 instanceof HTMLElement && isInteractive(child_1) || Array.from(child_1.childNodes).some(child_2 => child_2 instanceof HTMLElement && isInteractive(child_2)));
73
69
  process.env.NODE_ENV !== "production" ? warning(hasInteractiveContent && (hasContextArea || hasLeadingAction), "When PageHeader.ContextArea or PageHeader.LeadingAction is present, we recommended not to include any interactive items in the PageHeader.TitleArea to make sure the focus order is logical.") : void 0;
74
70
  };
75
- t4 = [children, rootRef];
71
+ t3 = [children, rootRef];
76
72
  $[0] = children;
77
73
  $[1] = rootRef;
78
- $[2] = t3;
79
- $[3] = t4;
74
+ $[2] = t2;
75
+ $[3] = t3;
80
76
  } else {
81
- t3 = $[2];
82
- t4 = $[3];
77
+ t2 = $[2];
78
+ t3 = $[3];
83
79
  }
84
- useEffect(t3, t4);
85
- let t5;
80
+ useEffect(t2, t3);
81
+ let t4;
86
82
  if ($[4] !== className) {
87
- t5 = clsx(classes.PageHeader, className);
83
+ t4 = clsx(classes.PageHeader, className);
88
84
  $[4] = className;
89
- $[5] = t5;
85
+ $[5] = t4;
90
86
  } else {
91
- t5 = $[5];
87
+ t4 = $[5];
92
88
  }
93
- const t6 = hasBorder ? "true" : undefined;
94
- let t7;
95
- if ($[6] !== ariaLabel || $[7] !== as || $[8] !== children || $[9] !== role || $[10] !== rootRef || $[11] !== sx || $[12] !== t5 || $[13] !== t6) {
96
- t7 = /*#__PURE__*/jsx(BoxWithFallback, {
97
- as: as,
89
+ const t5 = hasBorder ? "true" : undefined;
90
+ let t6;
91
+ if ($[6] !== BaseComponent || $[7] !== ariaLabel || $[8] !== children || $[9] !== role || $[10] !== rootRef || $[11] !== t4 || $[12] !== t5) {
92
+ t6 = /*#__PURE__*/jsx(BaseComponent, {
98
93
  ref: rootRef,
99
- className: t5,
100
- "data-has-border": t6,
101
- sx: sx,
94
+ className: t4,
95
+ "data-has-border": t5,
102
96
  "aria-label": ariaLabel,
103
97
  role: role,
104
98
  children: children
105
99
  });
106
- $[6] = ariaLabel;
107
- $[7] = as;
100
+ $[6] = BaseComponent;
101
+ $[7] = ariaLabel;
108
102
  $[8] = children;
109
103
  $[9] = role;
110
104
  $[10] = rootRef;
111
- $[11] = sx;
105
+ $[11] = t4;
112
106
  $[12] = t5;
113
107
  $[13] = t6;
114
- $[14] = t7;
115
108
  } else {
116
- t7 = $[14];
109
+ t6 = $[13];
117
110
  }
118
- return t7;
111
+ return t6;
119
112
  });
120
113
 
121
114
  // PageHeader.ContextArea : Only visible on narrow viewports by default to provide user context of where they are at their journey. `hidden` prop available
@@ -123,125 +116,117 @@ const Root = /*#__PURE__*/React.forwardRef((t0, forwardedRef) => {
123
116
  // PageHeader.ContextArea Sub Components: PageHeader.ParentLink, PageHeader.ContextBar, PageHeader.ContextAreaActions
124
117
  // ---------------------------------------------------------------------
125
118
  const ContextArea = t0 => {
126
- const $ = c(9);
119
+ const $ = c(8);
127
120
  const {
128
121
  children,
129
122
  className,
130
- hidden: t1,
131
- sx: t2
123
+ hidden: t1
132
124
  } = t0;
133
125
  const hidden = t1 === undefined ? hiddenOnRegularAndWide : t1;
134
- const sxProp = t2 === undefined ? defaultSxProp : t2;
135
- let t3;
126
+ let t2;
136
127
  if ($[0] !== className) {
137
- t3 = clsx(classes.ContextArea, className);
128
+ t2 = clsx(classes.ContextArea, className);
138
129
  $[0] = className;
139
- $[1] = t3;
130
+ $[1] = t2;
140
131
  } else {
141
- t3 = $[1];
132
+ t2 = $[1];
142
133
  }
143
- let t4;
134
+ let t3;
144
135
  if ($[2] !== hidden) {
145
- t4 = getHiddenDataAttributes(hidden);
136
+ t3 = getHiddenDataAttributes(hidden);
146
137
  $[2] = hidden;
147
- $[3] = t4;
138
+ $[3] = t3;
148
139
  } else {
149
- t4 = $[3];
140
+ t3 = $[3];
150
141
  }
151
- let t5;
152
- if ($[4] !== children || $[5] !== sxProp || $[6] !== t3 || $[7] !== t4) {
153
- t5 = /*#__PURE__*/jsx(BoxWithFallback, {
154
- className: t3,
155
- sx: sxProp,
156
- ...t4,
142
+ let t4;
143
+ if ($[4] !== children || $[5] !== t2 || $[6] !== t3) {
144
+ t4 = /*#__PURE__*/jsx("div", {
145
+ className: t2,
146
+ ...t3,
157
147
  children: children
158
148
  });
159
149
  $[4] = children;
160
- $[5] = sxProp;
150
+ $[5] = t2;
161
151
  $[6] = t3;
162
152
  $[7] = t4;
163
- $[8] = t5;
164
153
  } else {
165
- t5 = $[8];
154
+ t4 = $[7];
166
155
  }
167
- return t5;
156
+ return t4;
168
157
  };
169
158
  // PageHeader.ParentLink : Only visible on narrow viewports by default to let users navigate up in the hierarchy.
170
159
  const ParentLink = /*#__PURE__*/React.forwardRef((t0, ref) => {
171
- const $ = c(16);
160
+ const $ = c(15);
172
161
  const {
173
162
  children,
174
163
  className,
175
- sx: t1,
176
164
  href,
177
165
  "aria-label": ariaLabel,
178
- as: t2,
179
- hidden: t3
166
+ as: t1,
167
+ hidden: t2
180
168
  } = t0;
181
- const sxProp = t1 === undefined ? defaultSxProp : t1;
182
- const as = t2 === undefined ? "a" : t2;
183
- const hidden = t3 === undefined ? hiddenOnRegularAndWide : t3;
184
- let t4;
169
+ const as = t1 === undefined ? "a" : t1;
170
+ const hidden = t2 === undefined ? hiddenOnRegularAndWide : t2;
171
+ let t3;
185
172
  if ($[0] !== className) {
186
- t4 = clsx(classes.ParentLink, className);
173
+ t3 = clsx(classes.ParentLink, className);
187
174
  $[0] = className;
188
- $[1] = t4;
175
+ $[1] = t3;
189
176
  } else {
190
- t4 = $[1];
177
+ t3 = $[1];
191
178
  }
192
- let t5;
179
+ let t4;
193
180
  if ($[2] !== hidden) {
194
- t5 = getHiddenDataAttributes(hidden);
181
+ t4 = getHiddenDataAttributes(hidden);
195
182
  $[2] = hidden;
196
- $[3] = t5;
183
+ $[3] = t4;
197
184
  } else {
198
- t5 = $[3];
185
+ t4 = $[3];
199
186
  }
200
- let t6;
187
+ let t5;
201
188
  if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
202
- t6 = /*#__PURE__*/jsx(ArrowLeftIcon, {});
203
- $[4] = t6;
189
+ t5 = /*#__PURE__*/jsx(ArrowLeftIcon, {});
190
+ $[4] = t5;
204
191
  } else {
205
- t6 = $[4];
192
+ t5 = $[4];
206
193
  }
207
- let t7;
194
+ let t6;
208
195
  if ($[5] !== children) {
209
- t7 = /*#__PURE__*/jsx("div", {
196
+ t6 = /*#__PURE__*/jsx("div", {
210
197
  children: children
211
198
  });
212
199
  $[5] = children;
213
- $[6] = t7;
200
+ $[6] = t6;
214
201
  } else {
215
- t7 = $[6];
202
+ t6 = $[6];
216
203
  }
217
- let t8;
218
- if ($[7] !== ariaLabel || $[8] !== as || $[9] !== href || $[10] !== ref || $[11] !== sxProp || $[12] !== t4 || $[13] !== t5 || $[14] !== t7) {
219
- t8 = /*#__PURE__*/jsx(Fragment, {
204
+ let t7;
205
+ if ($[7] !== ariaLabel || $[8] !== as || $[9] !== href || $[10] !== ref || $[11] !== t3 || $[12] !== t4 || $[13] !== t6) {
206
+ t7 = /*#__PURE__*/jsx(Fragment, {
220
207
  children: /*#__PURE__*/jsxs(Link, {
221
208
  ref: ref,
222
209
  as: as,
223
210
  "aria-label": ariaLabel,
224
211
  muted: true,
225
- className: t4,
226
- sx: sxProp,
227
- ...t5,
212
+ className: t3,
213
+ ...t4,
228
214
  href: href,
229
- children: [t6, t7]
215
+ children: [t5, t6]
230
216
  })
231
217
  });
232
218
  $[7] = ariaLabel;
233
219
  $[8] = as;
234
220
  $[9] = href;
235
221
  $[10] = ref;
236
- $[11] = sxProp;
222
+ $[11] = t3;
237
223
  $[12] = t4;
238
- $[13] = t5;
224
+ $[13] = t6;
239
225
  $[14] = t7;
240
- $[15] = t8;
241
226
  } else {
242
- t8 = $[15];
227
+ t7 = $[14];
243
228
  }
244
- return t8;
229
+ return t7;
245
230
  });
246
231
  ParentLink.displayName = 'ParentLink';
247
232
 
@@ -250,661 +235,502 @@ ParentLink.displayName = 'ParentLink';
250
235
  // ---------------------------------------------------------------------
251
236
 
252
237
  const ContextBar = t0 => {
253
- const $ = c(9);
238
+ const $ = c(8);
254
239
  const {
255
240
  children,
256
241
  className,
257
- sx: t1,
258
- hidden: t2
242
+ hidden: t1
259
243
  } = t0;
260
- const sxProp = t1 === undefined ? defaultSxProp : t1;
261
- const hidden = t2 === undefined ? hiddenOnRegularAndWide : t2;
262
- let t3;
244
+ const hidden = t1 === undefined ? hiddenOnRegularAndWide : t1;
245
+ let t2;
263
246
  if ($[0] !== className) {
264
- t3 = clsx(classes.ContextBar, className);
247
+ t2 = clsx(classes.ContextBar, className);
265
248
  $[0] = className;
266
- $[1] = t3;
249
+ $[1] = t2;
267
250
  } else {
268
- t3 = $[1];
251
+ t2 = $[1];
269
252
  }
270
- let t4;
253
+ let t3;
271
254
  if ($[2] !== hidden) {
272
- t4 = getHiddenDataAttributes(hidden);
255
+ t3 = getHiddenDataAttributes(hidden);
273
256
  $[2] = hidden;
274
- $[3] = t4;
257
+ $[3] = t3;
275
258
  } else {
276
- t4 = $[3];
259
+ t3 = $[3];
277
260
  }
278
- let t5;
279
- if ($[4] !== children || $[5] !== sxProp || $[6] !== t3 || $[7] !== t4) {
280
- t5 = /*#__PURE__*/jsx(BoxWithFallback, {
281
- className: t3,
282
- sx: sxProp,
283
- ...t4,
261
+ let t4;
262
+ if ($[4] !== children || $[5] !== t2 || $[6] !== t3) {
263
+ t4 = /*#__PURE__*/jsx("div", {
264
+ className: t2,
265
+ ...t3,
284
266
  children: children
285
267
  });
286
268
  $[4] = children;
287
- $[5] = sxProp;
269
+ $[5] = t2;
288
270
  $[6] = t3;
289
271
  $[7] = t4;
290
- $[8] = t5;
291
272
  } else {
292
- t5 = $[8];
273
+ t4 = $[7];
293
274
  }
294
- return t5;
275
+ return t4;
295
276
  };
296
277
 
297
278
  // ContextAreaActions
298
279
  // ---------------------------------------------------------------------
299
280
  const ContextAreaActions = t0 => {
300
- const $ = c(12);
281
+ const $ = c(8);
301
282
  const {
302
283
  children,
303
284
  className,
304
- sx: t1,
305
- hidden: t2
285
+ hidden: t1
306
286
  } = t0;
307
- const sxProp = t1 === undefined ? defaultSxProp : t1;
308
- const hidden = t2 === undefined ? hiddenOnRegularAndWide : t2;
309
- let t3;
287
+ const hidden = t1 === undefined ? hiddenOnRegularAndWide : t1;
288
+ let t2;
310
289
  if ($[0] !== className) {
311
- t3 = clsx(classes.ContextAreaActions, className);
290
+ t2 = clsx(classes.ContextAreaActions, className);
312
291
  $[0] = className;
313
- $[1] = t3;
292
+ $[1] = t2;
314
293
  } else {
315
- t3 = $[1];
294
+ t2 = $[1];
316
295
  }
317
- let t4;
296
+ let t3;
318
297
  if ($[2] !== hidden) {
319
- t4 = getHiddenDataAttributes(hidden);
298
+ t3 = getHiddenDataAttributes(hidden);
320
299
  $[2] = hidden;
321
- $[3] = t4;
322
- } else {
323
- t4 = $[3];
324
- }
325
- let t5;
326
- if ($[4] !== hidden) {
327
- t5 = getHiddenDataAttributes(hidden);
328
- $[4] = hidden;
329
- $[5] = t5;
300
+ $[3] = t3;
330
301
  } else {
331
- t5 = $[5];
302
+ t3 = $[3];
332
303
  }
333
- let t6;
334
- if ($[6] !== children || $[7] !== sxProp || $[8] !== t3 || $[9] !== t4 || $[10] !== t5) {
335
- t6 = /*#__PURE__*/jsx(BoxWithFallback, {
336
- className: t3,
337
- ...t4,
338
- sx: sxProp,
339
- ...t5,
304
+ let t4;
305
+ if ($[4] !== children || $[5] !== t2 || $[6] !== t3) {
306
+ t4 = /*#__PURE__*/jsx("div", {
307
+ className: t2,
308
+ ...t3,
340
309
  children: children
341
310
  });
342
- $[6] = children;
343
- $[7] = sxProp;
344
- $[8] = t3;
345
- $[9] = t4;
346
- $[10] = t5;
347
- $[11] = t6;
311
+ $[4] = children;
312
+ $[5] = t2;
313
+ $[6] = t3;
314
+ $[7] = t4;
348
315
  } else {
349
- t6 = $[11];
316
+ t4 = $[7];
350
317
  }
351
- return t6;
318
+ return t4;
352
319
  };
353
320
  // PageHeader.TitleArea: The main title area of the page. Visible on all viewports.
354
321
  // PageHeader.TitleArea Sub Components: PageHeader.LeadingVisual, PageHeader.Title, PageTitle.TrailingVisual
355
322
  // ---------------------------------------------------------------------
356
323
 
357
324
  const TitleArea = /*#__PURE__*/React.forwardRef((t0, forwardedRef) => {
358
- const $ = c(11);
325
+ const $ = c(10);
359
326
  const {
360
327
  children,
361
328
  className,
362
- sx: t1,
363
- hidden: t2,
364
- variant: t3
329
+ hidden: t1,
330
+ variant: t2
365
331
  } = t0;
366
- const sxProp = t1 === undefined ? defaultSxProp : t1;
367
- const hidden = t2 === undefined ? false : t2;
368
- const variant = t3 === undefined ? "medium" : t3;
332
+ const hidden = t1 === undefined ? false : t1;
333
+ const variant = t2 === undefined ? "medium" : t2;
369
334
  const titleAreaRef = useProvidedRefOrCreate(forwardedRef);
370
335
  const currentVariant = useResponsiveValue(variant, "medium");
371
- let t4;
336
+ let t3;
372
337
  if ($[0] !== className) {
373
- t4 = clsx(classes.TitleArea, className);
338
+ t3 = clsx(classes.TitleArea, className);
374
339
  $[0] = className;
375
- $[1] = t4;
340
+ $[1] = t3;
376
341
  } else {
377
- t4 = $[1];
342
+ t3 = $[1];
378
343
  }
379
- let t5;
344
+ let t4;
380
345
  if ($[2] !== hidden) {
381
- t5 = getHiddenDataAttributes(hidden);
346
+ t4 = getHiddenDataAttributes(hidden);
382
347
  $[2] = hidden;
383
- $[3] = t5;
348
+ $[3] = t4;
384
349
  } else {
385
- t5 = $[3];
350
+ t4 = $[3];
386
351
  }
387
- let t6;
388
- if ($[4] !== children || $[5] !== currentVariant || $[6] !== sxProp || $[7] !== t4 || $[8] !== t5 || $[9] !== titleAreaRef) {
389
- t6 = /*#__PURE__*/jsx(BoxWithFallback, {
390
- className: t4,
352
+ let t5;
353
+ if ($[4] !== children || $[5] !== currentVariant || $[6] !== t3 || $[7] !== t4 || $[8] !== titleAreaRef) {
354
+ t5 = /*#__PURE__*/jsx("div", {
355
+ className: t3,
391
356
  ref: titleAreaRef,
392
357
  "data-component": "TitleArea",
393
358
  "data-size-variant": currentVariant,
394
- sx: sxProp,
395
- ...t5,
359
+ ...t4,
396
360
  children: children
397
361
  });
398
362
  $[4] = children;
399
363
  $[5] = currentVariant;
400
- $[6] = sxProp;
364
+ $[6] = t3;
401
365
  $[7] = t4;
402
- $[8] = t5;
403
- $[9] = titleAreaRef;
404
- $[10] = t6;
366
+ $[8] = titleAreaRef;
367
+ $[9] = t5;
405
368
  } else {
406
- t6 = $[10];
369
+ t5 = $[9];
407
370
  }
408
- return t6;
371
+ return t5;
409
372
  });
410
373
  TitleArea.displayName = 'TitleArea';
411
374
 
412
375
  // PageHeader.LeadingAction and PageHeader.TrailingAction should only be visible on regular viewports.
413
376
  // So they come as hidden on narrow viewports by default and their visibility can be managed by their `hidden` prop.
414
377
  const LeadingAction = t0 => {
415
- const $ = c(12);
378
+ const $ = c(8);
416
379
  const {
417
380
  children,
418
381
  className,
419
- sx: t1,
420
- hidden: t2
382
+ hidden: t1
421
383
  } = t0;
422
- const sxProp = t1 === undefined ? defaultSxProp : t1;
423
- const hidden = t2 === undefined ? hiddenOnNarrow : t2;
424
- let style;
425
- if ($[0] !== sxProp) {
426
- style = {};
427
- const {
428
- height
429
- } = sxProp;
430
- if (height) {
431
- style["--custom-height"] = height;
432
- }
433
- $[0] = sxProp;
434
- $[1] = style;
384
+ const hidden = t1 === undefined ? hiddenOnNarrow : t1;
385
+ let t2;
386
+ if ($[0] !== className) {
387
+ t2 = clsx(classes.LeadingAction, className);
388
+ $[0] = className;
389
+ $[1] = t2;
435
390
  } else {
436
- style = $[1];
391
+ t2 = $[1];
437
392
  }
438
393
  let t3;
439
- if ($[2] !== className) {
440
- t3 = clsx(classes.LeadingAction, className);
441
- $[2] = className;
394
+ if ($[2] !== hidden) {
395
+ t3 = getHiddenDataAttributes(hidden);
396
+ $[2] = hidden;
442
397
  $[3] = t3;
443
398
  } else {
444
399
  t3 = $[3];
445
400
  }
446
401
  let t4;
447
- if ($[4] !== hidden) {
448
- t4 = getHiddenDataAttributes(hidden);
449
- $[4] = hidden;
450
- $[5] = t4;
451
- } else {
452
- t4 = $[5];
453
- }
454
- let t5;
455
- if ($[6] !== children || $[7] !== style || $[8] !== sxProp || $[9] !== t3 || $[10] !== t4) {
456
- t5 = /*#__PURE__*/jsx(BoxWithFallback, {
457
- className: t3,
402
+ if ($[4] !== children || $[5] !== t2 || $[6] !== t3) {
403
+ t4 = /*#__PURE__*/jsx("div", {
404
+ className: t2,
458
405
  "data-component": "PH_LeadingAction",
459
- sx: sxProp,
460
- style: style,
461
- ...t4,
406
+ ...t3,
462
407
  children: children
463
408
  });
464
- $[6] = children;
465
- $[7] = style;
466
- $[8] = sxProp;
467
- $[9] = t3;
468
- $[10] = t4;
469
- $[11] = t5;
409
+ $[4] = children;
410
+ $[5] = t2;
411
+ $[6] = t3;
412
+ $[7] = t4;
470
413
  } else {
471
- t5 = $[11];
414
+ t4 = $[7];
472
415
  }
473
- return t5;
416
+ return t4;
474
417
  };
475
418
 
476
419
  // This is reserved for only breadcrumbs.
477
420
  const Breadcrumbs = t0 => {
478
- const $ = c(9);
421
+ const $ = c(8);
479
422
  const {
480
423
  children,
481
424
  className,
482
- sx: t1,
483
- hidden: t2
425
+ hidden: t1
484
426
  } = t0;
485
- const sxProp = t1 === undefined ? defaultSxProp : t1;
486
- const hidden = t2 === undefined ? false : t2;
487
- let t3;
427
+ const hidden = t1 === undefined ? false : t1;
428
+ let t2;
488
429
  if ($[0] !== className) {
489
- t3 = clsx(classes.Breadcrumbs, className);
430
+ t2 = clsx(classes.Breadcrumbs, className);
490
431
  $[0] = className;
491
- $[1] = t3;
432
+ $[1] = t2;
492
433
  } else {
493
- t3 = $[1];
434
+ t2 = $[1];
494
435
  }
495
- let t4;
436
+ let t3;
496
437
  if ($[2] !== hidden) {
497
- t4 = getHiddenDataAttributes(hidden);
438
+ t3 = getHiddenDataAttributes(hidden);
498
439
  $[2] = hidden;
499
- $[3] = t4;
440
+ $[3] = t3;
500
441
  } else {
501
- t4 = $[3];
442
+ t3 = $[3];
502
443
  }
503
- let t5;
504
- if ($[4] !== children || $[5] !== sxProp || $[6] !== t3 || $[7] !== t4) {
505
- t5 = /*#__PURE__*/jsx(BoxWithFallback, {
506
- className: t3,
444
+ let t4;
445
+ if ($[4] !== children || $[5] !== t2 || $[6] !== t3) {
446
+ t4 = /*#__PURE__*/jsx("div", {
447
+ className: t2,
507
448
  "data-component": "PH_Breadcrumbs",
508
- sx: sxProp,
509
- ...t4,
449
+ ...t3,
510
450
  children: children
511
451
  });
512
452
  $[4] = children;
513
- $[5] = sxProp;
453
+ $[5] = t2;
514
454
  $[6] = t3;
515
455
  $[7] = t4;
516
- $[8] = t5;
517
456
  } else {
518
- t5 = $[8];
457
+ t4 = $[7];
519
458
  }
520
- return t5;
459
+ return t4;
521
460
  };
522
461
 
523
462
  // PageHeader.LeadingVisual and PageHeader.TrailingVisual should remain visible on narrow viewports.
524
463
  const LeadingVisual = t0 => {
525
- const $ = c(12);
464
+ const $ = c(8);
526
465
  const {
527
466
  children,
528
467
  className,
529
- sx: t1,
530
- hidden: t2
468
+ hidden: t1
531
469
  } = t0;
532
- const sxProp = t1 === undefined ? defaultSxProp : t1;
533
- const hidden = t2 === undefined ? false : t2;
534
- let style;
535
- if ($[0] !== sxProp) {
536
- style = {};
537
- const {
538
- height
539
- } = sxProp;
540
- if (height) {
541
- style["--custom-height"] = height;
542
- }
543
- $[0] = sxProp;
544
- $[1] = style;
470
+ const hidden = t1 === undefined ? false : t1;
471
+ let t2;
472
+ if ($[0] !== className) {
473
+ t2 = clsx(classes.LeadingVisual, className);
474
+ $[0] = className;
475
+ $[1] = t2;
545
476
  } else {
546
- style = $[1];
477
+ t2 = $[1];
547
478
  }
548
479
  let t3;
549
- if ($[2] !== className) {
550
- t3 = clsx(classes.LeadingVisual, className);
551
- $[2] = className;
480
+ if ($[2] !== hidden) {
481
+ t3 = getHiddenDataAttributes(hidden);
482
+ $[2] = hidden;
552
483
  $[3] = t3;
553
484
  } else {
554
485
  t3 = $[3];
555
486
  }
556
487
  let t4;
557
- if ($[4] !== hidden) {
558
- t4 = getHiddenDataAttributes(hidden);
559
- $[4] = hidden;
560
- $[5] = t4;
561
- } else {
562
- t4 = $[5];
563
- }
564
- let t5;
565
- if ($[6] !== children || $[7] !== style || $[8] !== sxProp || $[9] !== t3 || $[10] !== t4) {
566
- t5 = /*#__PURE__*/jsx(BoxWithFallback, {
567
- className: t3,
488
+ if ($[4] !== children || $[5] !== t2 || $[6] !== t3) {
489
+ t4 = /*#__PURE__*/jsx("div", {
490
+ className: t2,
568
491
  "data-component": "PH_LeadingVisual",
569
- sx: sxProp,
570
- style: style,
571
- ...t4,
492
+ ...t3,
572
493
  children: children
573
494
  });
574
- $[6] = children;
575
- $[7] = style;
576
- $[8] = sxProp;
577
- $[9] = t3;
578
- $[10] = t4;
579
- $[11] = t5;
495
+ $[4] = children;
496
+ $[5] = t2;
497
+ $[6] = t3;
498
+ $[7] = t4;
580
499
  } else {
581
- t5 = $[11];
500
+ t4 = $[7];
582
501
  }
583
- return t5;
502
+ return t4;
584
503
  };
585
504
  const Title = t0 => {
586
- const $ = c(14);
505
+ const $ = c(10);
587
506
  const {
588
507
  children,
589
508
  className,
590
- sx: t1,
591
- hidden: t2,
592
- as: t3
509
+ hidden: t1,
510
+ as: t2
593
511
  } = t0;
594
- const sxProp = t1 === undefined ? defaultSxProp : t1;
595
- const hidden = t2 === undefined ? false : t2;
596
- const as = t3 === undefined ? "h2" : t3;
597
- let style;
598
- if ($[0] !== sxProp) {
599
- style = {};
600
- const {
601
- fontSize,
602
- lineHeight,
603
- fontWeight
604
- } = sxProp;
605
- if (fontSize) {
606
- style["--custom-font-size"] = fontSize;
607
- }
608
- if (lineHeight) {
609
- style["--custom-line-height"] = lineHeight;
610
- }
611
- if (fontWeight) {
612
- style["--custom-font-weight"] = fontWeight;
613
- }
614
- $[0] = sxProp;
615
- $[1] = style;
512
+ const hidden = t1 === undefined ? false : t1;
513
+ const as = t2 === undefined ? "h2" : t2;
514
+ let t3;
515
+ if ($[0] !== className) {
516
+ t3 = clsx(classes.Title, className);
517
+ $[0] = className;
518
+ $[1] = t3;
616
519
  } else {
617
- style = $[1];
520
+ t3 = $[1];
618
521
  }
619
522
  let t4;
620
- if ($[2] !== className) {
621
- t4 = clsx(classes.Title, className);
622
- $[2] = className;
523
+ if ($[2] !== hidden) {
524
+ t4 = getHiddenDataAttributes(hidden);
525
+ $[2] = hidden;
623
526
  $[3] = t4;
624
527
  } else {
625
528
  t4 = $[3];
626
529
  }
627
530
  let t5;
628
- if ($[4] !== hidden) {
629
- t5 = getHiddenDataAttributes(hidden);
630
- $[4] = hidden;
631
- $[5] = t5;
632
- } else {
633
- t5 = $[5];
634
- }
635
- let t6;
636
- if ($[6] !== as || $[7] !== children || $[8] !== hidden || $[9] !== style || $[10] !== sxProp || $[11] !== t4 || $[12] !== t5) {
637
- t6 = /*#__PURE__*/jsx(Heading, {
638
- className: t4,
531
+ if ($[4] !== as || $[5] !== children || $[6] !== hidden || $[7] !== t3 || $[8] !== t4) {
532
+ t5 = /*#__PURE__*/jsx(Heading, {
533
+ className: t3,
639
534
  "data-component": "PH_Title",
640
535
  "data-hidden": hidden,
641
536
  as: as,
642
- style: style,
643
- sx: sxProp,
644
- ...t5,
537
+ ...t4,
645
538
  children: children
646
539
  });
647
- $[6] = as;
648
- $[7] = children;
649
- $[8] = hidden;
650
- $[9] = style;
651
- $[10] = sxProp;
652
- $[11] = t4;
653
- $[12] = t5;
654
- $[13] = t6;
540
+ $[4] = as;
541
+ $[5] = children;
542
+ $[6] = hidden;
543
+ $[7] = t3;
544
+ $[8] = t4;
545
+ $[9] = t5;
655
546
  } else {
656
- t6 = $[13];
547
+ t5 = $[9];
657
548
  }
658
- return t6;
549
+ return t5;
659
550
  };
660
551
 
661
552
  // PageHeader.LeadingVisual and PageHeader.TrailingVisual should remain visible on narrow viewports.
662
553
  const TrailingVisual = t0 => {
663
- const $ = c(12);
554
+ const $ = c(8);
664
555
  const {
665
556
  children,
666
557
  className,
667
- sx: t1,
668
- hidden: t2
558
+ hidden: t1
669
559
  } = t0;
670
- const sxProp = t1 === undefined ? defaultSxProp : t1;
671
- const hidden = t2 === undefined ? false : t2;
672
- let style;
673
- if ($[0] !== sxProp) {
674
- style = {};
675
- const {
676
- height
677
- } = sxProp;
678
- if (height) {
679
- style["--custom-height"] = height;
680
- }
681
- $[0] = sxProp;
682
- $[1] = style;
560
+ const hidden = t1 === undefined ? false : t1;
561
+ let t2;
562
+ if ($[0] !== className) {
563
+ t2 = clsx(classes.TrailingVisual, className);
564
+ $[0] = className;
565
+ $[1] = t2;
683
566
  } else {
684
- style = $[1];
567
+ t2 = $[1];
685
568
  }
686
569
  let t3;
687
- if ($[2] !== className) {
688
- t3 = clsx(classes.TrailingVisual, className);
689
- $[2] = className;
570
+ if ($[2] !== hidden) {
571
+ t3 = getHiddenDataAttributes(hidden);
572
+ $[2] = hidden;
690
573
  $[3] = t3;
691
574
  } else {
692
575
  t3 = $[3];
693
576
  }
694
577
  let t4;
695
- if ($[4] !== hidden) {
696
- t4 = getHiddenDataAttributes(hidden);
697
- $[4] = hidden;
698
- $[5] = t4;
699
- } else {
700
- t4 = $[5];
701
- }
702
- let t5;
703
- if ($[6] !== children || $[7] !== style || $[8] !== sxProp || $[9] !== t3 || $[10] !== t4) {
704
- t5 = /*#__PURE__*/jsx(BoxWithFallback, {
705
- className: t3,
578
+ if ($[4] !== children || $[5] !== t2 || $[6] !== t3) {
579
+ t4 = /*#__PURE__*/jsx("div", {
580
+ className: t2,
706
581
  "data-component": "PH_TrailingVisual",
707
- sx: sxProp,
708
- style: style,
709
- ...t4,
582
+ ...t3,
710
583
  children: children
711
584
  });
712
- $[6] = children;
713
- $[7] = style;
714
- $[8] = sxProp;
715
- $[9] = t3;
716
- $[10] = t4;
717
- $[11] = t5;
585
+ $[4] = children;
586
+ $[5] = t2;
587
+ $[6] = t3;
588
+ $[7] = t4;
718
589
  } else {
719
- t5 = $[11];
590
+ t4 = $[7];
720
591
  }
721
- return t5;
592
+ return t4;
722
593
  };
723
594
  const TrailingAction = t0 => {
724
- const $ = c(12);
595
+ const $ = c(8);
725
596
  const {
726
597
  children,
727
598
  className,
728
- sx: t1,
729
- hidden: t2
599
+ hidden: t1
730
600
  } = t0;
731
- const sxProp = t1 === undefined ? defaultSxProp : t1;
732
- const hidden = t2 === undefined ? hiddenOnNarrow : t2;
733
- let style;
734
- if ($[0] !== sxProp) {
735
- style = {};
736
- const {
737
- height
738
- } = sxProp;
739
- if (height) {
740
- style["--custom-height"] = height;
741
- }
742
- $[0] = sxProp;
743
- $[1] = style;
601
+ const hidden = t1 === undefined ? hiddenOnNarrow : t1;
602
+ let t2;
603
+ if ($[0] !== className) {
604
+ t2 = clsx(classes.TrailingAction, className);
605
+ $[0] = className;
606
+ $[1] = t2;
744
607
  } else {
745
- style = $[1];
608
+ t2 = $[1];
746
609
  }
747
610
  let t3;
748
- if ($[2] !== className) {
749
- t3 = clsx(classes.TrailingAction, className);
750
- $[2] = className;
611
+ if ($[2] !== hidden) {
612
+ t3 = getHiddenDataAttributes(hidden);
613
+ $[2] = hidden;
751
614
  $[3] = t3;
752
615
  } else {
753
616
  t3 = $[3];
754
617
  }
755
618
  let t4;
756
- if ($[4] !== hidden) {
757
- t4 = getHiddenDataAttributes(hidden);
758
- $[4] = hidden;
759
- $[5] = t4;
760
- } else {
761
- t4 = $[5];
762
- }
763
- let t5;
764
- if ($[6] !== children || $[7] !== style || $[8] !== sxProp || $[9] !== t3 || $[10] !== t4) {
765
- t5 = /*#__PURE__*/jsx(BoxWithFallback, {
766
- className: t3,
619
+ if ($[4] !== children || $[5] !== t2 || $[6] !== t3) {
620
+ t4 = /*#__PURE__*/jsx("div", {
621
+ className: t2,
767
622
  "data-component": "PH_TrailingAction",
768
- sx: sxProp,
769
- style: style,
770
- ...t4,
623
+ ...t3,
771
624
  children: children
772
625
  });
773
- $[6] = children;
774
- $[7] = style;
775
- $[8] = sxProp;
776
- $[9] = t3;
777
- $[10] = t4;
778
- $[11] = t5;
626
+ $[4] = children;
627
+ $[5] = t2;
628
+ $[6] = t3;
629
+ $[7] = t4;
779
630
  } else {
780
- t5 = $[11];
631
+ t4 = $[7];
781
632
  }
782
- return t5;
633
+ return t4;
783
634
  };
784
635
  const Actions = t0 => {
785
- const $ = c(12);
636
+ const $ = c(8);
786
637
  const {
787
638
  children,
788
639
  className,
789
- sx: t1,
790
- hidden: t2
640
+ hidden: t1
791
641
  } = t0;
792
- const sxProp = t1 === undefined ? defaultSxProp : t1;
793
- const hidden = t2 === undefined ? false : t2;
794
- let style;
795
- if ($[0] !== sxProp) {
796
- style = {};
797
- const {
798
- height
799
- } = sxProp;
800
- if (height) {
801
- style["--custom-height"] = height;
802
- }
803
- $[0] = sxProp;
804
- $[1] = style;
642
+ const hidden = t1 === undefined ? false : t1;
643
+ let t2;
644
+ if ($[0] !== className) {
645
+ t2 = clsx(classes.Actions, className);
646
+ $[0] = className;
647
+ $[1] = t2;
805
648
  } else {
806
- style = $[1];
649
+ t2 = $[1];
807
650
  }
808
651
  let t3;
809
- if ($[2] !== className) {
810
- t3 = clsx(classes.Actions, className);
811
- $[2] = className;
652
+ if ($[2] !== hidden) {
653
+ t3 = getHiddenDataAttributes(hidden);
654
+ $[2] = hidden;
812
655
  $[3] = t3;
813
656
  } else {
814
657
  t3 = $[3];
815
658
  }
816
659
  let t4;
817
- if ($[4] !== hidden) {
818
- t4 = getHiddenDataAttributes(hidden);
819
- $[4] = hidden;
820
- $[5] = t4;
821
- } else {
822
- t4 = $[5];
823
- }
824
- let t5;
825
- if ($[6] !== children || $[7] !== style || $[8] !== sxProp || $[9] !== t3 || $[10] !== t4) {
826
- t5 = /*#__PURE__*/jsx(BoxWithFallback, {
827
- className: t3,
660
+ if ($[4] !== children || $[5] !== t2 || $[6] !== t3) {
661
+ t4 = /*#__PURE__*/jsx("div", {
662
+ className: t2,
828
663
  "data-component": "PH_Actions",
829
- sx: sxProp,
830
- style: style,
831
- ...t4,
664
+ ...t3,
832
665
  children: children
833
666
  });
834
- $[6] = children;
835
- $[7] = style;
836
- $[8] = sxProp;
837
- $[9] = t3;
838
- $[10] = t4;
839
- $[11] = t5;
667
+ $[4] = children;
668
+ $[5] = t2;
669
+ $[6] = t3;
670
+ $[7] = t4;
840
671
  } else {
841
- t5 = $[11];
672
+ t4 = $[7];
842
673
  }
843
- return t5;
674
+ return t4;
844
675
  };
845
676
 
846
677
  // PageHeader.Description: The description area of the header. Visible on all viewports
847
678
  const Description = t0 => {
848
- const $ = c(9);
679
+ const $ = c(8);
849
680
  const {
850
681
  children,
851
682
  className,
852
- sx: t1,
853
- hidden: t2
683
+ hidden: t1
854
684
  } = t0;
855
- const sxProp = t1 === undefined ? defaultSxProp : t1;
856
- const hidden = t2 === undefined ? false : t2;
857
- let t3;
685
+ const hidden = t1 === undefined ? false : t1;
686
+ let t2;
858
687
  if ($[0] !== className) {
859
- t3 = clsx(classes.Description, className);
688
+ t2 = clsx(classes.Description, className);
860
689
  $[0] = className;
861
- $[1] = t3;
690
+ $[1] = t2;
862
691
  } else {
863
- t3 = $[1];
692
+ t2 = $[1];
864
693
  }
865
- let t4;
694
+ let t3;
866
695
  if ($[2] !== hidden) {
867
- t4 = getHiddenDataAttributes(hidden);
696
+ t3 = getHiddenDataAttributes(hidden);
868
697
  $[2] = hidden;
869
- $[3] = t4;
698
+ $[3] = t3;
870
699
  } else {
871
- t4 = $[3];
700
+ t3 = $[3];
872
701
  }
873
- let t5;
874
- if ($[4] !== children || $[5] !== sxProp || $[6] !== t3 || $[7] !== t4) {
875
- t5 = /*#__PURE__*/jsx(BoxWithFallback, {
876
- className: t3,
877
- sx: sxProp,
878
- ...t4,
702
+ let t4;
703
+ if ($[4] !== children || $[5] !== t2 || $[6] !== t3) {
704
+ t4 = /*#__PURE__*/jsx("div", {
705
+ className: t2,
706
+ ...t3,
879
707
  children: children
880
708
  });
881
709
  $[4] = children;
882
- $[5] = sxProp;
710
+ $[5] = t2;
883
711
  $[6] = t3;
884
712
  $[7] = t4;
885
- $[8] = t5;
886
713
  } else {
887
- t5 = $[8];
714
+ t4 = $[7];
888
715
  }
889
- return t5;
716
+ return t4;
890
717
  };
891
718
  // PageHeader.Navigation: The local navigation area of the header. Visible on all viewports
892
719
  const Navigation = t0 => {
893
- const $ = c(12);
720
+ const $ = c(11);
894
721
  const {
895
722
  children,
896
723
  className,
897
- sx: t1,
898
- hidden: t2,
899
- as,
724
+ hidden: t1,
725
+ as: t2,
900
726
  "aria-label": ariaLabel,
901
727
  "aria-labelledby": ariaLabelledBy
902
728
  } = t0;
903
- const sxProp = t1 === undefined ? defaultSxProp : t1;
904
- const hidden = t2 === undefined ? false : t2;
905
- process.env.NODE_ENV !== "production" ? warning(as === "nav" && !ariaLabel && !ariaLabelledBy, "Use `aria-label` or `aria-labelledby` prop to provide an accessible label to the `nav` landmark for assistive technology") : void 0;
906
- const t3 = as === "nav" ? ariaLabel : undefined;
907
- const t4 = as === "nav" ? ariaLabelledBy : undefined;
729
+ const hidden = t1 === undefined ? false : t1;
730
+ const BaseComponent = t2 === undefined ? "div" : t2;
731
+ process.env.NODE_ENV !== "production" ? warning(BaseComponent === "nav" && !ariaLabel && !ariaLabelledBy, "Use `aria-label` or `aria-labelledby` prop to provide an accessible label to the `nav` landmark for assistive technology") : void 0;
732
+ const t3 = BaseComponent === "nav" ? ariaLabel : undefined;
733
+ const t4 = BaseComponent === "nav" ? ariaLabelledBy : undefined;
908
734
  let t5;
909
735
  if ($[0] !== className) {
910
736
  t5 = clsx(classes.Navigation, className);
@@ -922,27 +748,24 @@ const Navigation = t0 => {
922
748
  t6 = $[3];
923
749
  }
924
750
  let t7;
925
- if ($[4] !== as || $[5] !== children || $[6] !== sxProp || $[7] !== t3 || $[8] !== t4 || $[9] !== t5 || $[10] !== t6) {
926
- t7 = /*#__PURE__*/jsx(BoxWithFallback, {
927
- as: as,
751
+ if ($[4] !== BaseComponent || $[5] !== children || $[6] !== t3 || $[7] !== t4 || $[8] !== t5 || $[9] !== t6) {
752
+ t7 = /*#__PURE__*/jsx(BaseComponent, {
928
753
  "aria-label": t3,
929
754
  "aria-labelledby": t4,
930
755
  className: t5,
931
756
  "data-component": "PH_Navigation",
932
- sx: sxProp,
933
757
  ...t6,
934
758
  children: children
935
759
  });
936
- $[4] = as;
760
+ $[4] = BaseComponent;
937
761
  $[5] = children;
938
- $[6] = sxProp;
939
- $[7] = t3;
940
- $[8] = t4;
941
- $[9] = t5;
942
- $[10] = t6;
943
- $[11] = t7;
762
+ $[6] = t3;
763
+ $[7] = t4;
764
+ $[8] = t5;
765
+ $[9] = t6;
766
+ $[10] = t7;
944
767
  } else {
945
- t7 = $[11];
768
+ t7 = $[10];
946
769
  }
947
770
  return t7;
948
771
  };