@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.
- package/CHANGELOG.md +66 -0
- package/dist/ActionBar/ActionBar.d.ts.map +1 -1
- package/dist/ActionBar/ActionBar.js +6 -2
- package/dist/ActionList/Description.d.ts.map +1 -1
- package/dist/ActionList/Description.js +0 -1
- package/dist/ActionList/Visuals.js +2 -2
- package/dist/Autocomplete/AutocompleteMenu.js +2 -2
- package/dist/BaseStyles.d.ts +1 -2
- package/dist/BaseStyles.d.ts.map +1 -1
- package/dist/BaseStyles.js +1 -3
- package/dist/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.js +34 -48
- package/dist/Button/ButtonBase.js +6 -6
- package/dist/Button/LinkButton.d.ts +3 -3
- package/dist/Button/LinkButton.d.ts.map +1 -1
- package/dist/Button/LinkButton.js +0 -3
- package/dist/Button/index.d.ts +1 -0
- package/dist/Button/index.d.ts.map +1 -1
- package/dist/ButtonGroup/ButtonGroup.d.ts +2 -3
- package/dist/ButtonGroup/ButtonGroup.d.ts.map +1 -1
- package/dist/ButtonGroup/ButtonGroup.js +41 -36
- package/dist/Checkbox/Checkbox.d.ts +1 -2
- package/dist/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/Checkbox/Checkbox.js +48 -79
- package/dist/CheckboxGroup/CheckboxGroup.d.ts +2 -3
- package/dist/CheckboxGroup/CheckboxGroup.d.ts.map +1 -1
- package/dist/CounterLabel/CounterLabel.d.ts +2 -3
- package/dist/CounterLabel/CounterLabel.d.ts.map +1 -1
- package/dist/CounterLabel/CounterLabel.js +1 -3
- package/dist/FilteredActionList/FilteredActionList-e1eb1b75.css +2 -0
- package/dist/FilteredActionList/FilteredActionList-e1eb1b75.css.map +1 -0
- package/dist/FilteredActionList/FilteredActionList.d.ts +2 -3
- package/dist/FilteredActionList/FilteredActionList.d.ts.map +1 -1
- package/dist/FilteredActionList/FilteredActionList.js +10 -9
- package/dist/FilteredActionList/FilteredActionList.module.css.js +2 -2
- package/dist/FilteredActionList/FilteredActionListLoaders-a46a8ea4.css +2 -0
- package/dist/FilteredActionList/FilteredActionListLoaders-a46a8ea4.css.map +1 -0
- package/dist/FilteredActionList/FilteredActionListLoaders.d.ts.map +1 -1
- package/dist/FilteredActionList/FilteredActionListLoaders.js +12 -29
- package/dist/FilteredActionList/FilteredActionListLoaders.module.css.js +2 -2
- package/dist/Flash/Flash.d.ts +1 -2
- package/dist/Flash/Flash.d.ts.map +1 -1
- package/dist/Flash/Flash.js +38 -45
- package/dist/Header/Header.d.ts +3 -4
- package/dist/Header/Header.d.ts.map +1 -1
- package/dist/Header/Header.js +10 -13
- package/dist/InlineMessage/InlineMessage.d.ts +1 -2
- package/dist/InlineMessage/InlineMessage.d.ts.map +1 -1
- package/dist/InlineMessage/InlineMessage.js +49 -65
- package/dist/PageHeader/PageHeader.d.ts +5 -5
- package/dist/PageHeader/PageHeader.d.ts.map +1 -1
- package/dist/PageHeader/PageHeader.js +330 -507
- package/dist/Pagehead/Pagehead.d.ts +2 -3
- package/dist/Pagehead/Pagehead.d.ts.map +1 -1
- package/dist/Pagehead/Pagehead.js +2 -2
- package/dist/ProgressBar/{ProgressBar-181186d4.css → ProgressBar-d27aca1d.css} +2 -2
- package/dist/ProgressBar/ProgressBar-d27aca1d.css.map +1 -0
- package/dist/ProgressBar/ProgressBar.d.ts +4 -9
- package/dist/ProgressBar/ProgressBar.d.ts.map +1 -1
- package/dist/ProgressBar/ProgressBar.js +9 -14
- package/dist/ProgressBar/ProgressBar.module.css.js +1 -1
- package/dist/ProgressBar/index.d.ts +2 -2
- package/dist/Radio/Radio.d.ts +1 -2
- package/dist/Radio/Radio.d.ts.map +1 -1
- package/dist/Radio/Radio.js +1 -3
- package/dist/RadioGroup/RadioGroup.d.ts +3 -4
- package/dist/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/dist/RadioGroup/index.d.ts +1 -0
- package/dist/RadioGroup/index.d.ts.map +1 -1
- package/dist/RelativeTime/RelativeTime.d.ts +1 -3
- package/dist/RelativeTime/RelativeTime.d.ts.map +1 -1
- package/dist/Spinner/Spinner.d.ts +4 -5
- package/dist/Spinner/Spinner.d.ts.map +1 -1
- package/dist/Spinner/Spinner.js +49 -81
- package/dist/Timeline/Timeline.d.ts +11 -18
- package/dist/Timeline/Timeline.d.ts.map +1 -1
- package/dist/Timeline/Timeline.js +5 -6
- package/dist/ToggleSwitch/ToggleSwitch.d.ts +4 -0
- package/dist/ToggleSwitch/ToggleSwitch.d.ts.map +1 -1
- package/dist/ToggleSwitch/ToggleSwitch.js +195 -182
- package/dist/TreeView/TreeView-bdf34914.css +2 -0
- package/dist/TreeView/TreeView-bdf34914.css.map +1 -0
- package/dist/TreeView/TreeView.d.ts +15 -0
- package/dist/TreeView/TreeView.d.ts.map +1 -1
- package/dist/TreeView/TreeView.js +241 -10
- package/dist/TreeView/TreeView.module.css.js +2 -2
- package/dist/Truncate/Truncate.d.ts +1 -2
- package/dist/Truncate/Truncate.d.ts.map +1 -1
- package/dist/Truncate/Truncate.js +2 -6
- package/dist/UnderlineNav/UnderlineNav-78db938f.css +2 -0
- package/dist/UnderlineNav/UnderlineNav-78db938f.css.map +1 -0
- package/dist/UnderlineNav/UnderlineNav.d.ts +0 -3
- package/dist/UnderlineNav/UnderlineNav.d.ts.map +1 -1
- package/dist/UnderlineNav/UnderlineNav.js +8 -25
- package/dist/UnderlineNav/UnderlineNav.module.css.js +5 -0
- package/dist/UnderlineNav/UnderlineNavItem-b65e8fd3.css +2 -0
- package/dist/UnderlineNav/UnderlineNavItem-b65e8fd3.css.map +1 -0
- package/dist/UnderlineNav/UnderlineNavItem.d.ts +1 -2
- package/dist/UnderlineNav/UnderlineNavItem.d.ts.map +1 -1
- package/dist/UnderlineNav/UnderlineNavItem.js +49 -69
- package/dist/UnderlineNav/UnderlineNavItem.module.css.js +5 -0
- package/dist/UnderlineNav/styles.d.ts +1 -1
- package/dist/UnderlineNav/styles.js +1 -1
- package/dist/deprecated/FilteredSearch/FilteredSearch-d30f5bbc.css +2 -0
- package/dist/deprecated/FilteredSearch/FilteredSearch-d30f5bbc.css.map +1 -0
- package/dist/deprecated/FilteredSearch/FilteredSearch.d.ts +3 -4
- package/dist/deprecated/FilteredSearch/FilteredSearch.d.ts.map +1 -1
- package/dist/deprecated/FilteredSearch/FilteredSearch.js +48 -7
- package/dist/deprecated/FilteredSearch/FilteredSearch.module.css.js +5 -0
- package/dist/deprecated/index.d.ts +0 -2
- package/dist/deprecated/index.d.ts.map +1 -1
- package/dist/deprecated/index.js +0 -1
- package/dist/experimental/SelectPanel2/SelectPanel.js +2 -2
- package/dist/experimental/index.d.ts +2 -3
- package/dist/experimental/index.d.ts.map +1 -1
- package/dist/experimental/index.js +1 -2
- package/dist/index.d.ts +3 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/internal/components/TextInputInnerVisualSlot.js +2 -2
- package/dist/utils/create-component.d.ts +1 -3
- package/dist/utils/create-component.d.ts.map +1 -1
- package/dist/utils/create-component.js +3 -8
- package/generated/components.json +35 -242
- package/package.json +1 -1
- package/dist/DropdownStyles.d.ts +0 -4
- package/dist/DropdownStyles.d.ts.map +0 -1
- package/dist/FilteredActionList/FilteredActionList-96b126d7.css +0 -2
- package/dist/FilteredActionList/FilteredActionList-96b126d7.css.map +0 -1
- package/dist/FilteredActionList/FilteredActionListLoaders-6f14c45b.css +0 -2
- package/dist/FilteredActionList/FilteredActionListLoaders-6f14c45b.css.map +0 -1
- package/dist/PointerBox/PointerBox.d.ts +0 -28
- package/dist/PointerBox/PointerBox.d.ts.map +0 -1
- package/dist/PointerBox/PointerBox.js +0 -65
- package/dist/PointerBox/index.d.ts +0 -3
- package/dist/PointerBox/index.d.ts.map +0 -1
- package/dist/ProgressBar/ProgressBar-181186d4.css.map +0 -1
- package/dist/TreeView/TreeView-cd08cabc.css +0 -2
- package/dist/TreeView/TreeView-cd08cabc.css.map +0 -1
- package/dist/internal/components/Caret-e686f04c.css +0 -2
- package/dist/internal/components/Caret-e686f04c.css.map +0 -1
- package/dist/internal/components/Caret.js +0 -87
- 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(
|
|
32
|
+
const $ = c(14);
|
|
35
33
|
const {
|
|
36
34
|
children,
|
|
37
35
|
className,
|
|
38
|
-
|
|
39
|
-
as: t2,
|
|
36
|
+
as: t1,
|
|
40
37
|
"aria-label": ariaLabel,
|
|
41
38
|
role,
|
|
42
39
|
hasBorder
|
|
43
40
|
} = t0;
|
|
44
|
-
const
|
|
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
|
-
|
|
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
|
-
|
|
71
|
+
t3 = [children, rootRef];
|
|
76
72
|
$[0] = children;
|
|
77
73
|
$[1] = rootRef;
|
|
78
|
-
$[2] =
|
|
79
|
-
$[3] =
|
|
74
|
+
$[2] = t2;
|
|
75
|
+
$[3] = t3;
|
|
80
76
|
} else {
|
|
81
|
-
|
|
82
|
-
|
|
77
|
+
t2 = $[2];
|
|
78
|
+
t3 = $[3];
|
|
83
79
|
}
|
|
84
|
-
useEffect(
|
|
85
|
-
let
|
|
80
|
+
useEffect(t2, t3);
|
|
81
|
+
let t4;
|
|
86
82
|
if ($[4] !== className) {
|
|
87
|
-
|
|
83
|
+
t4 = clsx(classes.PageHeader, className);
|
|
88
84
|
$[4] = className;
|
|
89
|
-
$[5] =
|
|
85
|
+
$[5] = t4;
|
|
90
86
|
} else {
|
|
91
|
-
|
|
87
|
+
t4 = $[5];
|
|
92
88
|
}
|
|
93
|
-
const
|
|
94
|
-
let
|
|
95
|
-
if ($[6] !==
|
|
96
|
-
|
|
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:
|
|
100
|
-
"data-has-border":
|
|
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] =
|
|
107
|
-
$[7] =
|
|
100
|
+
$[6] = BaseComponent;
|
|
101
|
+
$[7] = ariaLabel;
|
|
108
102
|
$[8] = children;
|
|
109
103
|
$[9] = role;
|
|
110
104
|
$[10] = rootRef;
|
|
111
|
-
$[11] =
|
|
105
|
+
$[11] = t4;
|
|
112
106
|
$[12] = t5;
|
|
113
107
|
$[13] = t6;
|
|
114
|
-
$[14] = t7;
|
|
115
108
|
} else {
|
|
116
|
-
|
|
109
|
+
t6 = $[13];
|
|
117
110
|
}
|
|
118
|
-
return
|
|
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(
|
|
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
|
-
|
|
135
|
-
let t3;
|
|
126
|
+
let t2;
|
|
136
127
|
if ($[0] !== className) {
|
|
137
|
-
|
|
128
|
+
t2 = clsx(classes.ContextArea, className);
|
|
138
129
|
$[0] = className;
|
|
139
|
-
$[1] =
|
|
130
|
+
$[1] = t2;
|
|
140
131
|
} else {
|
|
141
|
-
|
|
132
|
+
t2 = $[1];
|
|
142
133
|
}
|
|
143
|
-
let
|
|
134
|
+
let t3;
|
|
144
135
|
if ($[2] !== hidden) {
|
|
145
|
-
|
|
136
|
+
t3 = getHiddenDataAttributes(hidden);
|
|
146
137
|
$[2] = hidden;
|
|
147
|
-
$[3] =
|
|
138
|
+
$[3] = t3;
|
|
148
139
|
} else {
|
|
149
|
-
|
|
140
|
+
t3 = $[3];
|
|
150
141
|
}
|
|
151
|
-
let
|
|
152
|
-
if ($[4] !== children || $[5] !==
|
|
153
|
-
|
|
154
|
-
className:
|
|
155
|
-
|
|
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] =
|
|
150
|
+
$[5] = t2;
|
|
161
151
|
$[6] = t3;
|
|
162
152
|
$[7] = t4;
|
|
163
|
-
$[8] = t5;
|
|
164
153
|
} else {
|
|
165
|
-
|
|
154
|
+
t4 = $[7];
|
|
166
155
|
}
|
|
167
|
-
return
|
|
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(
|
|
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:
|
|
179
|
-
hidden:
|
|
166
|
+
as: t1,
|
|
167
|
+
hidden: t2
|
|
180
168
|
} = t0;
|
|
181
|
-
const
|
|
182
|
-
const
|
|
183
|
-
|
|
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
|
-
|
|
173
|
+
t3 = clsx(classes.ParentLink, className);
|
|
187
174
|
$[0] = className;
|
|
188
|
-
$[1] =
|
|
175
|
+
$[1] = t3;
|
|
189
176
|
} else {
|
|
190
|
-
|
|
177
|
+
t3 = $[1];
|
|
191
178
|
}
|
|
192
|
-
let
|
|
179
|
+
let t4;
|
|
193
180
|
if ($[2] !== hidden) {
|
|
194
|
-
|
|
181
|
+
t4 = getHiddenDataAttributes(hidden);
|
|
195
182
|
$[2] = hidden;
|
|
196
|
-
$[3] =
|
|
183
|
+
$[3] = t4;
|
|
197
184
|
} else {
|
|
198
|
-
|
|
185
|
+
t4 = $[3];
|
|
199
186
|
}
|
|
200
|
-
let
|
|
187
|
+
let t5;
|
|
201
188
|
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
202
|
-
|
|
203
|
-
$[4] =
|
|
189
|
+
t5 = /*#__PURE__*/jsx(ArrowLeftIcon, {});
|
|
190
|
+
$[4] = t5;
|
|
204
191
|
} else {
|
|
205
|
-
|
|
192
|
+
t5 = $[4];
|
|
206
193
|
}
|
|
207
|
-
let
|
|
194
|
+
let t6;
|
|
208
195
|
if ($[5] !== children) {
|
|
209
|
-
|
|
196
|
+
t6 = /*#__PURE__*/jsx("div", {
|
|
210
197
|
children: children
|
|
211
198
|
});
|
|
212
199
|
$[5] = children;
|
|
213
|
-
$[6] =
|
|
200
|
+
$[6] = t6;
|
|
214
201
|
} else {
|
|
215
|
-
|
|
202
|
+
t6 = $[6];
|
|
216
203
|
}
|
|
217
|
-
let
|
|
218
|
-
if ($[7] !== ariaLabel || $[8] !== as || $[9] !== href || $[10] !== ref || $[11] !==
|
|
219
|
-
|
|
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:
|
|
226
|
-
|
|
227
|
-
...t5,
|
|
212
|
+
className: t3,
|
|
213
|
+
...t4,
|
|
228
214
|
href: href,
|
|
229
|
-
children: [
|
|
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] =
|
|
222
|
+
$[11] = t3;
|
|
237
223
|
$[12] = t4;
|
|
238
|
-
$[13] =
|
|
224
|
+
$[13] = t6;
|
|
239
225
|
$[14] = t7;
|
|
240
|
-
$[15] = t8;
|
|
241
226
|
} else {
|
|
242
|
-
|
|
227
|
+
t7 = $[14];
|
|
243
228
|
}
|
|
244
|
-
return
|
|
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(
|
|
238
|
+
const $ = c(8);
|
|
254
239
|
const {
|
|
255
240
|
children,
|
|
256
241
|
className,
|
|
257
|
-
|
|
258
|
-
hidden: t2
|
|
242
|
+
hidden: t1
|
|
259
243
|
} = t0;
|
|
260
|
-
const
|
|
261
|
-
|
|
262
|
-
let t3;
|
|
244
|
+
const hidden = t1 === undefined ? hiddenOnRegularAndWide : t1;
|
|
245
|
+
let t2;
|
|
263
246
|
if ($[0] !== className) {
|
|
264
|
-
|
|
247
|
+
t2 = clsx(classes.ContextBar, className);
|
|
265
248
|
$[0] = className;
|
|
266
|
-
$[1] =
|
|
249
|
+
$[1] = t2;
|
|
267
250
|
} else {
|
|
268
|
-
|
|
251
|
+
t2 = $[1];
|
|
269
252
|
}
|
|
270
|
-
let
|
|
253
|
+
let t3;
|
|
271
254
|
if ($[2] !== hidden) {
|
|
272
|
-
|
|
255
|
+
t3 = getHiddenDataAttributes(hidden);
|
|
273
256
|
$[2] = hidden;
|
|
274
|
-
$[3] =
|
|
257
|
+
$[3] = t3;
|
|
275
258
|
} else {
|
|
276
|
-
|
|
259
|
+
t3 = $[3];
|
|
277
260
|
}
|
|
278
|
-
let
|
|
279
|
-
if ($[4] !== children || $[5] !==
|
|
280
|
-
|
|
281
|
-
className:
|
|
282
|
-
|
|
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] =
|
|
269
|
+
$[5] = t2;
|
|
288
270
|
$[6] = t3;
|
|
289
271
|
$[7] = t4;
|
|
290
|
-
$[8] = t5;
|
|
291
272
|
} else {
|
|
292
|
-
|
|
273
|
+
t4 = $[7];
|
|
293
274
|
}
|
|
294
|
-
return
|
|
275
|
+
return t4;
|
|
295
276
|
};
|
|
296
277
|
|
|
297
278
|
// ContextAreaActions
|
|
298
279
|
// ---------------------------------------------------------------------
|
|
299
280
|
const ContextAreaActions = t0 => {
|
|
300
|
-
const $ = c(
|
|
281
|
+
const $ = c(8);
|
|
301
282
|
const {
|
|
302
283
|
children,
|
|
303
284
|
className,
|
|
304
|
-
|
|
305
|
-
hidden: t2
|
|
285
|
+
hidden: t1
|
|
306
286
|
} = t0;
|
|
307
|
-
const
|
|
308
|
-
|
|
309
|
-
let t3;
|
|
287
|
+
const hidden = t1 === undefined ? hiddenOnRegularAndWide : t1;
|
|
288
|
+
let t2;
|
|
310
289
|
if ($[0] !== className) {
|
|
311
|
-
|
|
290
|
+
t2 = clsx(classes.ContextAreaActions, className);
|
|
312
291
|
$[0] = className;
|
|
313
|
-
$[1] =
|
|
292
|
+
$[1] = t2;
|
|
314
293
|
} else {
|
|
315
|
-
|
|
294
|
+
t2 = $[1];
|
|
316
295
|
}
|
|
317
|
-
let
|
|
296
|
+
let t3;
|
|
318
297
|
if ($[2] !== hidden) {
|
|
319
|
-
|
|
298
|
+
t3 = getHiddenDataAttributes(hidden);
|
|
320
299
|
$[2] = hidden;
|
|
321
|
-
$[3] =
|
|
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
|
-
|
|
302
|
+
t3 = $[3];
|
|
332
303
|
}
|
|
333
|
-
let
|
|
334
|
-
if ($[
|
|
335
|
-
|
|
336
|
-
className:
|
|
337
|
-
...
|
|
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
|
-
$[
|
|
343
|
-
$[
|
|
344
|
-
$[
|
|
345
|
-
$[
|
|
346
|
-
$[10] = t5;
|
|
347
|
-
$[11] = t6;
|
|
311
|
+
$[4] = children;
|
|
312
|
+
$[5] = t2;
|
|
313
|
+
$[6] = t3;
|
|
314
|
+
$[7] = t4;
|
|
348
315
|
} else {
|
|
349
|
-
|
|
316
|
+
t4 = $[7];
|
|
350
317
|
}
|
|
351
|
-
return
|
|
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(
|
|
325
|
+
const $ = c(10);
|
|
359
326
|
const {
|
|
360
327
|
children,
|
|
361
328
|
className,
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
variant: t3
|
|
329
|
+
hidden: t1,
|
|
330
|
+
variant: t2
|
|
365
331
|
} = t0;
|
|
366
|
-
const
|
|
367
|
-
const
|
|
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
|
|
336
|
+
let t3;
|
|
372
337
|
if ($[0] !== className) {
|
|
373
|
-
|
|
338
|
+
t3 = clsx(classes.TitleArea, className);
|
|
374
339
|
$[0] = className;
|
|
375
|
-
$[1] =
|
|
340
|
+
$[1] = t3;
|
|
376
341
|
} else {
|
|
377
|
-
|
|
342
|
+
t3 = $[1];
|
|
378
343
|
}
|
|
379
|
-
let
|
|
344
|
+
let t4;
|
|
380
345
|
if ($[2] !== hidden) {
|
|
381
|
-
|
|
346
|
+
t4 = getHiddenDataAttributes(hidden);
|
|
382
347
|
$[2] = hidden;
|
|
383
|
-
$[3] =
|
|
348
|
+
$[3] = t4;
|
|
384
349
|
} else {
|
|
385
|
-
|
|
350
|
+
t4 = $[3];
|
|
386
351
|
}
|
|
387
|
-
let
|
|
388
|
-
if ($[4] !== children || $[5] !== currentVariant || $[6] !==
|
|
389
|
-
|
|
390
|
-
className:
|
|
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
|
-
|
|
395
|
-
...t5,
|
|
359
|
+
...t4,
|
|
396
360
|
children: children
|
|
397
361
|
});
|
|
398
362
|
$[4] = children;
|
|
399
363
|
$[5] = currentVariant;
|
|
400
|
-
$[6] =
|
|
364
|
+
$[6] = t3;
|
|
401
365
|
$[7] = t4;
|
|
402
|
-
$[8] =
|
|
403
|
-
$[9] =
|
|
404
|
-
$[10] = t6;
|
|
366
|
+
$[8] = titleAreaRef;
|
|
367
|
+
$[9] = t5;
|
|
405
368
|
} else {
|
|
406
|
-
|
|
369
|
+
t5 = $[9];
|
|
407
370
|
}
|
|
408
|
-
return
|
|
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(
|
|
378
|
+
const $ = c(8);
|
|
416
379
|
const {
|
|
417
380
|
children,
|
|
418
381
|
className,
|
|
419
|
-
|
|
420
|
-
hidden: t2
|
|
382
|
+
hidden: t1
|
|
421
383
|
} = t0;
|
|
422
|
-
const
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
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
|
-
|
|
391
|
+
t2 = $[1];
|
|
437
392
|
}
|
|
438
393
|
let t3;
|
|
439
|
-
if ($[2] !==
|
|
440
|
-
t3 =
|
|
441
|
-
$[2] =
|
|
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] !==
|
|
448
|
-
t4 =
|
|
449
|
-
|
|
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
|
-
|
|
460
|
-
style: style,
|
|
461
|
-
...t4,
|
|
406
|
+
...t3,
|
|
462
407
|
children: children
|
|
463
408
|
});
|
|
464
|
-
$[
|
|
465
|
-
$[
|
|
466
|
-
$[
|
|
467
|
-
$[
|
|
468
|
-
$[10] = t4;
|
|
469
|
-
$[11] = t5;
|
|
409
|
+
$[4] = children;
|
|
410
|
+
$[5] = t2;
|
|
411
|
+
$[6] = t3;
|
|
412
|
+
$[7] = t4;
|
|
470
413
|
} else {
|
|
471
|
-
|
|
414
|
+
t4 = $[7];
|
|
472
415
|
}
|
|
473
|
-
return
|
|
416
|
+
return t4;
|
|
474
417
|
};
|
|
475
418
|
|
|
476
419
|
// This is reserved for only breadcrumbs.
|
|
477
420
|
const Breadcrumbs = t0 => {
|
|
478
|
-
const $ = c(
|
|
421
|
+
const $ = c(8);
|
|
479
422
|
const {
|
|
480
423
|
children,
|
|
481
424
|
className,
|
|
482
|
-
|
|
483
|
-
hidden: t2
|
|
425
|
+
hidden: t1
|
|
484
426
|
} = t0;
|
|
485
|
-
const
|
|
486
|
-
|
|
487
|
-
let t3;
|
|
427
|
+
const hidden = t1 === undefined ? false : t1;
|
|
428
|
+
let t2;
|
|
488
429
|
if ($[0] !== className) {
|
|
489
|
-
|
|
430
|
+
t2 = clsx(classes.Breadcrumbs, className);
|
|
490
431
|
$[0] = className;
|
|
491
|
-
$[1] =
|
|
432
|
+
$[1] = t2;
|
|
492
433
|
} else {
|
|
493
|
-
|
|
434
|
+
t2 = $[1];
|
|
494
435
|
}
|
|
495
|
-
let
|
|
436
|
+
let t3;
|
|
496
437
|
if ($[2] !== hidden) {
|
|
497
|
-
|
|
438
|
+
t3 = getHiddenDataAttributes(hidden);
|
|
498
439
|
$[2] = hidden;
|
|
499
|
-
$[3] =
|
|
440
|
+
$[3] = t3;
|
|
500
441
|
} else {
|
|
501
|
-
|
|
442
|
+
t3 = $[3];
|
|
502
443
|
}
|
|
503
|
-
let
|
|
504
|
-
if ($[4] !== children || $[5] !==
|
|
505
|
-
|
|
506
|
-
className:
|
|
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
|
-
|
|
509
|
-
...t4,
|
|
449
|
+
...t3,
|
|
510
450
|
children: children
|
|
511
451
|
});
|
|
512
452
|
$[4] = children;
|
|
513
|
-
$[5] =
|
|
453
|
+
$[5] = t2;
|
|
514
454
|
$[6] = t3;
|
|
515
455
|
$[7] = t4;
|
|
516
|
-
$[8] = t5;
|
|
517
456
|
} else {
|
|
518
|
-
|
|
457
|
+
t4 = $[7];
|
|
519
458
|
}
|
|
520
|
-
return
|
|
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(
|
|
464
|
+
const $ = c(8);
|
|
526
465
|
const {
|
|
527
466
|
children,
|
|
528
467
|
className,
|
|
529
|
-
|
|
530
|
-
hidden: t2
|
|
468
|
+
hidden: t1
|
|
531
469
|
} = t0;
|
|
532
|
-
const
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
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
|
-
|
|
477
|
+
t2 = $[1];
|
|
547
478
|
}
|
|
548
479
|
let t3;
|
|
549
|
-
if ($[2] !==
|
|
550
|
-
t3 =
|
|
551
|
-
$[2] =
|
|
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] !==
|
|
558
|
-
t4 =
|
|
559
|
-
|
|
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
|
-
|
|
570
|
-
style: style,
|
|
571
|
-
...t4,
|
|
492
|
+
...t3,
|
|
572
493
|
children: children
|
|
573
494
|
});
|
|
574
|
-
$[
|
|
575
|
-
$[
|
|
576
|
-
$[
|
|
577
|
-
$[
|
|
578
|
-
$[10] = t4;
|
|
579
|
-
$[11] = t5;
|
|
495
|
+
$[4] = children;
|
|
496
|
+
$[5] = t2;
|
|
497
|
+
$[6] = t3;
|
|
498
|
+
$[7] = t4;
|
|
580
499
|
} else {
|
|
581
|
-
|
|
500
|
+
t4 = $[7];
|
|
582
501
|
}
|
|
583
|
-
return
|
|
502
|
+
return t4;
|
|
584
503
|
};
|
|
585
504
|
const Title = t0 => {
|
|
586
|
-
const $ = c(
|
|
505
|
+
const $ = c(10);
|
|
587
506
|
const {
|
|
588
507
|
children,
|
|
589
508
|
className,
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
as: t3
|
|
509
|
+
hidden: t1,
|
|
510
|
+
as: t2
|
|
593
511
|
} = t0;
|
|
594
|
-
const
|
|
595
|
-
const
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
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
|
-
|
|
520
|
+
t3 = $[1];
|
|
618
521
|
}
|
|
619
522
|
let t4;
|
|
620
|
-
if ($[2] !==
|
|
621
|
-
t4 =
|
|
622
|
-
$[2] =
|
|
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 =
|
|
630
|
-
|
|
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
|
-
|
|
643
|
-
sx: sxProp,
|
|
644
|
-
...t5,
|
|
537
|
+
...t4,
|
|
645
538
|
children: children
|
|
646
539
|
});
|
|
647
|
-
$[
|
|
648
|
-
$[
|
|
649
|
-
$[
|
|
650
|
-
$[
|
|
651
|
-
$[
|
|
652
|
-
$[
|
|
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
|
-
|
|
547
|
+
t5 = $[9];
|
|
657
548
|
}
|
|
658
|
-
return
|
|
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(
|
|
554
|
+
const $ = c(8);
|
|
664
555
|
const {
|
|
665
556
|
children,
|
|
666
557
|
className,
|
|
667
|
-
|
|
668
|
-
hidden: t2
|
|
558
|
+
hidden: t1
|
|
669
559
|
} = t0;
|
|
670
|
-
const
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
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
|
-
|
|
567
|
+
t2 = $[1];
|
|
685
568
|
}
|
|
686
569
|
let t3;
|
|
687
|
-
if ($[2] !==
|
|
688
|
-
t3 =
|
|
689
|
-
$[2] =
|
|
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] !==
|
|
696
|
-
t4 =
|
|
697
|
-
|
|
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
|
-
|
|
708
|
-
style: style,
|
|
709
|
-
...t4,
|
|
582
|
+
...t3,
|
|
710
583
|
children: children
|
|
711
584
|
});
|
|
712
|
-
$[
|
|
713
|
-
$[
|
|
714
|
-
$[
|
|
715
|
-
$[
|
|
716
|
-
$[10] = t4;
|
|
717
|
-
$[11] = t5;
|
|
585
|
+
$[4] = children;
|
|
586
|
+
$[5] = t2;
|
|
587
|
+
$[6] = t3;
|
|
588
|
+
$[7] = t4;
|
|
718
589
|
} else {
|
|
719
|
-
|
|
590
|
+
t4 = $[7];
|
|
720
591
|
}
|
|
721
|
-
return
|
|
592
|
+
return t4;
|
|
722
593
|
};
|
|
723
594
|
const TrailingAction = t0 => {
|
|
724
|
-
const $ = c(
|
|
595
|
+
const $ = c(8);
|
|
725
596
|
const {
|
|
726
597
|
children,
|
|
727
598
|
className,
|
|
728
|
-
|
|
729
|
-
hidden: t2
|
|
599
|
+
hidden: t1
|
|
730
600
|
} = t0;
|
|
731
|
-
const
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
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
|
-
|
|
608
|
+
t2 = $[1];
|
|
746
609
|
}
|
|
747
610
|
let t3;
|
|
748
|
-
if ($[2] !==
|
|
749
|
-
t3 =
|
|
750
|
-
$[2] =
|
|
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] !==
|
|
757
|
-
t4 =
|
|
758
|
-
|
|
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
|
-
|
|
769
|
-
style: style,
|
|
770
|
-
...t4,
|
|
623
|
+
...t3,
|
|
771
624
|
children: children
|
|
772
625
|
});
|
|
773
|
-
$[
|
|
774
|
-
$[
|
|
775
|
-
$[
|
|
776
|
-
$[
|
|
777
|
-
$[10] = t4;
|
|
778
|
-
$[11] = t5;
|
|
626
|
+
$[4] = children;
|
|
627
|
+
$[5] = t2;
|
|
628
|
+
$[6] = t3;
|
|
629
|
+
$[7] = t4;
|
|
779
630
|
} else {
|
|
780
|
-
|
|
631
|
+
t4 = $[7];
|
|
781
632
|
}
|
|
782
|
-
return
|
|
633
|
+
return t4;
|
|
783
634
|
};
|
|
784
635
|
const Actions = t0 => {
|
|
785
|
-
const $ = c(
|
|
636
|
+
const $ = c(8);
|
|
786
637
|
const {
|
|
787
638
|
children,
|
|
788
639
|
className,
|
|
789
|
-
|
|
790
|
-
hidden: t2
|
|
640
|
+
hidden: t1
|
|
791
641
|
} = t0;
|
|
792
|
-
const
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
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
|
-
|
|
649
|
+
t2 = $[1];
|
|
807
650
|
}
|
|
808
651
|
let t3;
|
|
809
|
-
if ($[2] !==
|
|
810
|
-
t3 =
|
|
811
|
-
$[2] =
|
|
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] !==
|
|
818
|
-
t4 =
|
|
819
|
-
|
|
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
|
-
|
|
830
|
-
style: style,
|
|
831
|
-
...t4,
|
|
664
|
+
...t3,
|
|
832
665
|
children: children
|
|
833
666
|
});
|
|
834
|
-
$[
|
|
835
|
-
$[
|
|
836
|
-
$[
|
|
837
|
-
$[
|
|
838
|
-
$[10] = t4;
|
|
839
|
-
$[11] = t5;
|
|
667
|
+
$[4] = children;
|
|
668
|
+
$[5] = t2;
|
|
669
|
+
$[6] = t3;
|
|
670
|
+
$[7] = t4;
|
|
840
671
|
} else {
|
|
841
|
-
|
|
672
|
+
t4 = $[7];
|
|
842
673
|
}
|
|
843
|
-
return
|
|
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(
|
|
679
|
+
const $ = c(8);
|
|
849
680
|
const {
|
|
850
681
|
children,
|
|
851
682
|
className,
|
|
852
|
-
|
|
853
|
-
hidden: t2
|
|
683
|
+
hidden: t1
|
|
854
684
|
} = t0;
|
|
855
|
-
const
|
|
856
|
-
|
|
857
|
-
let t3;
|
|
685
|
+
const hidden = t1 === undefined ? false : t1;
|
|
686
|
+
let t2;
|
|
858
687
|
if ($[0] !== className) {
|
|
859
|
-
|
|
688
|
+
t2 = clsx(classes.Description, className);
|
|
860
689
|
$[0] = className;
|
|
861
|
-
$[1] =
|
|
690
|
+
$[1] = t2;
|
|
862
691
|
} else {
|
|
863
|
-
|
|
692
|
+
t2 = $[1];
|
|
864
693
|
}
|
|
865
|
-
let
|
|
694
|
+
let t3;
|
|
866
695
|
if ($[2] !== hidden) {
|
|
867
|
-
|
|
696
|
+
t3 = getHiddenDataAttributes(hidden);
|
|
868
697
|
$[2] = hidden;
|
|
869
|
-
$[3] =
|
|
698
|
+
$[3] = t3;
|
|
870
699
|
} else {
|
|
871
|
-
|
|
700
|
+
t3 = $[3];
|
|
872
701
|
}
|
|
873
|
-
let
|
|
874
|
-
if ($[4] !== children || $[5] !==
|
|
875
|
-
|
|
876
|
-
className:
|
|
877
|
-
|
|
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] =
|
|
710
|
+
$[5] = t2;
|
|
883
711
|
$[6] = t3;
|
|
884
712
|
$[7] = t4;
|
|
885
|
-
$[8] = t5;
|
|
886
713
|
} else {
|
|
887
|
-
|
|
714
|
+
t4 = $[7];
|
|
888
715
|
}
|
|
889
|
-
return
|
|
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(
|
|
720
|
+
const $ = c(11);
|
|
894
721
|
const {
|
|
895
722
|
children,
|
|
896
723
|
className,
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
as,
|
|
724
|
+
hidden: t1,
|
|
725
|
+
as: t2,
|
|
900
726
|
"aria-label": ariaLabel,
|
|
901
727
|
"aria-labelledby": ariaLabelledBy
|
|
902
728
|
} = t0;
|
|
903
|
-
const
|
|
904
|
-
const
|
|
905
|
-
process.env.NODE_ENV !== "production" ? warning(
|
|
906
|
-
const t3 =
|
|
907
|
-
const t4 =
|
|
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] !==
|
|
926
|
-
t7 = /*#__PURE__*/jsx(
|
|
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] =
|
|
760
|
+
$[4] = BaseComponent;
|
|
937
761
|
$[5] = children;
|
|
938
|
-
$[6] =
|
|
939
|
-
$[7] =
|
|
940
|
-
$[8] =
|
|
941
|
-
$[9] =
|
|
942
|
-
$[10] =
|
|
943
|
-
$[11] = t7;
|
|
762
|
+
$[6] = t3;
|
|
763
|
+
$[7] = t4;
|
|
764
|
+
$[8] = t5;
|
|
765
|
+
$[9] = t6;
|
|
766
|
+
$[10] = t7;
|
|
944
767
|
} else {
|
|
945
|
-
t7 = $[
|
|
768
|
+
t7 = $[10];
|
|
946
769
|
}
|
|
947
770
|
return t7;
|
|
948
771
|
};
|