@primer/react 38.1.0-rc.e96ea6506 → 38.1.0-rc.ee8ca60b6
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 +20 -0
- package/README.md +16 -11
- package/dist/ActionBar/ActionBar.js +308 -148
- package/dist/ActionList/ActionList-46e9c2db.css +2 -0
- package/dist/ActionList/ActionList-46e9c2db.css.map +1 -0
- package/dist/ActionList/ActionList.module.css.js +1 -1
- package/dist/ActionList/Item.d.ts.map +1 -1
- package/dist/ActionList/Item.js +3 -1
- package/dist/ActionList/List.d.ts.map +1 -1
- package/dist/ActionMenu/ActionMenu.js +1 -1
- package/dist/AnchoredOverlay/AnchoredOverlay.d.ts +1 -0
- package/dist/AnchoredOverlay/AnchoredOverlay.d.ts.map +1 -1
- package/dist/Autocomplete/AutocompleteInput.d.ts.map +1 -1
- package/dist/Autocomplete/AutocompleteInput.js +0 -1
- package/dist/Autocomplete/AutocompleteMenu.js +334 -124
- package/dist/Avatar/Avatar.js +31 -23
- package/dist/Banner/Banner.d.ts.map +1 -1
- package/dist/Banner/Banner.js +0 -1
- package/dist/BaseStyles.d.ts +2 -2
- package/dist/BaseStyles.d.ts.map +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.js +1 -0
- package/dist/Button/ButtonBase.d.ts.map +1 -1
- package/dist/Button/ButtonBase.js +0 -1
- package/dist/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/DataTable/Pagination.js +296 -87
- package/dist/DataTable/Table.d.ts +13 -13
- package/dist/DataTable/Table.d.ts.map +1 -1
- package/dist/Dialog/Dialog.d.ts +3 -23
- package/dist/Dialog/Dialog.d.ts.map +1 -1
- package/dist/Dialog/Dialog.js +19 -4
- package/dist/FilteredActionList/FilteredActionList-f6c2dc7a.css +1 -1
- package/dist/FilteredActionList/FilteredActionList-f6c2dc7a.css.map +1 -1
- package/dist/FilteredActionList/FilteredActionList.d.ts +1 -0
- package/dist/FilteredActionList/FilteredActionList.d.ts.map +1 -1
- package/dist/FilteredActionList/FilteredActionListLoaders.d.ts +1 -0
- package/dist/FilteredActionList/FilteredActionListLoaders.d.ts.map +1 -1
- package/dist/FilteredActionList/useAnnouncements.d.ts.map +1 -1
- package/dist/FilteredActionList/useAnnouncements.js +1 -0
- package/dist/Heading/Heading.d.ts.map +1 -1
- package/dist/Heading/Heading.js +0 -1
- package/dist/LabelGroup/LabelGroup.d.ts.map +1 -1
- package/dist/LabelGroup/LabelGroup.js +1 -0
- package/dist/Link/Link-968346ff.css +2 -0
- package/dist/Link/Link-968346ff.css.map +1 -0
- package/dist/Link/Link.d.ts +0 -2
- package/dist/Link/Link.d.ts.map +1 -1
- package/dist/Link/Link.js +0 -3
- package/dist/Link/Link.module.css.js +1 -1
- package/dist/PageLayout/PageLayout-28a244f7.css +2 -0
- package/dist/PageLayout/PageLayout-28a244f7.css.map +1 -0
- package/dist/PageLayout/PageLayout.d.ts.map +1 -1
- package/dist/PageLayout/PageLayout.js +535 -448
- package/dist/PageLayout/PageLayout.module.css.js +1 -1
- package/dist/Portal/Portal.d.ts.map +1 -1
- package/dist/Portal/Portal.js +0 -1
- package/dist/SelectPanel/SelectPanel.d.ts +1 -1
- package/dist/SelectPanel/SelectPanel.d.ts.map +1 -1
- package/dist/SelectPanel/SelectPanel.js +0 -1
- package/dist/SkeletonAvatar/SkeletonAvatar.js +31 -23
- package/dist/ThemeProvider.d.ts.map +1 -1
- package/dist/ThemeProvider.js +1 -0
- package/dist/Timeline/Timeline-116393ee.css +2 -0
- package/dist/Timeline/Timeline-116393ee.css.map +1 -0
- package/dist/Timeline/Timeline.module.css.js +1 -1
- package/dist/ToggleSwitch/ToggleSwitch.d.ts.map +1 -1
- package/dist/Token/IssueLabelToken.js +280 -57
- package/dist/Token/_RemoveTokenButton.d.ts +1 -1
- package/dist/Token/_RemoveTokenButton.d.ts.map +1 -1
- package/dist/Token/_RemoveTokenButton.js +4 -3
- package/dist/TooltipV2/Tooltip.d.ts.map +1 -1
- package/dist/TooltipV2/Tooltip.js +28 -25
- package/dist/TreeView/TreeView.d.ts.map +1 -1
- package/dist/TreeView/TreeView.js +5 -1
- package/dist/UnderlineNav/UnderlineNav.d.ts.map +1 -1
- package/dist/UnderlineNav/UnderlineNav.js +0 -1
- package/dist/deprecated/ActionList/Divider.d.ts +1 -0
- package/dist/deprecated/ActionList/Divider.d.ts.map +1 -1
- package/dist/deprecated/ActionList/Group.d.ts +1 -0
- package/dist/deprecated/ActionList/Group.d.ts.map +1 -1
- package/dist/deprecated/ActionList/Header.d.ts +1 -0
- package/dist/deprecated/ActionList/Header.d.ts.map +1 -1
- package/dist/deprecated/ActionList/List.d.ts.map +1 -1
- package/dist/deprecated/ActionMenu.d.ts +2 -1
- package/dist/deprecated/ActionMenu.d.ts.map +1 -1
- package/dist/deprecated/utils/create-slots.d.ts.map +1 -1
- package/dist/experimental/SelectPanel2/SelectPanel.d.ts.map +1 -1
- package/dist/experimental/SelectPanel2/SelectPanel.js +4 -2
- package/dist/experimental/UnderlinePanels/UnderlinePanels.d.ts +4 -0
- package/dist/experimental/UnderlinePanels/UnderlinePanels.d.ts.map +1 -1
- package/dist/hooks/useAnchoredPosition.d.ts.map +1 -1
- package/dist/hooks/useAnchoredPosition.js +0 -1
- package/dist/hooks/useControllableState.d.ts.map +1 -1
- package/dist/hooks/useControllableState.js +2 -0
- package/dist/hooks/useFocusTrap.d.ts.map +1 -1
- package/dist/hooks/useFocusTrap.js +0 -1
- package/dist/hooks/useFocusZone.d.ts.map +1 -1
- package/dist/hooks/useFocusZone.js +0 -1
- package/dist/hooks/useIsMacOS.d.ts.map +1 -1
- package/dist/hooks/useIsMacOS.js +3 -1
- package/dist/hooks/useMedia.d.ts.map +1 -1
- package/dist/hooks/useMedia.js +12 -27
- package/dist/hooks/useMenuInitialFocus.d.ts.map +1 -1
- package/dist/hooks/useMenuInitialFocus.js +0 -1
- package/dist/hooks/useOnEscapePress.d.ts.map +1 -1
- package/dist/hooks/useOnEscapePress.js +0 -1
- package/dist/hooks/useRenderForcingRef.d.ts.map +1 -1
- package/dist/hooks/useRenderForcingRef.js +37 -7
- package/dist/hooks/useResizeObserver.d.ts.map +1 -1
- package/dist/hooks/useResizeObserver.js +0 -1
- package/dist/hooks/useSafeTimeout.d.ts.map +1 -1
- package/dist/hooks/useSafeTimeout.js +0 -1
- package/dist/hooks/useScrollFlash.d.ts.map +1 -1
- package/dist/internal/components/UnderlineTabbedInterface.js +1 -1
- package/dist/internal/components/ValidationAnimationContainer.d.ts.map +1 -1
- package/dist/internal/hooks/useFocus.d.ts.map +1 -1
- package/dist/internal/hooks/useMergedRefs.d.ts.map +1 -1
- package/dist/internal/hooks/useMergedRefs.js +0 -1
- package/dist/utils/polymorphic.d.ts +1 -0
- package/dist/utils/polymorphic.d.ts.map +1 -1
- package/generated/components.json +8 -32
- package/package.json +18 -17
- package/dist/ActionList/ActionList-167cf6c7.css +0 -2
- package/dist/ActionList/ActionList-167cf6c7.css.map +0 -1
- package/dist/Link/Link-e01bdaee.css +0 -2
- package/dist/Link/Link-e01bdaee.css.map +0 -1
- package/dist/PageLayout/PageLayout-1849f083.css +0 -2
- package/dist/PageLayout/PageLayout-1849f083.css.map +0 -1
- package/dist/Timeline/Timeline-e8e88a13.css +0 -2
- package/dist/Timeline/Timeline-e8e88a13.css.map +0 -1
|
@@ -3,11 +3,12 @@ import React, { useRef } from 'react';
|
|
|
3
3
|
import { clsx } from 'clsx';
|
|
4
4
|
import { useId } from '../hooks/useId.js';
|
|
5
5
|
import { useRefObjectAsForwardedRef } from '../hooks/useRefObjectAsForwardedRef.js';
|
|
6
|
-
import { isResponsiveValue
|
|
6
|
+
import { isResponsiveValue } from '../hooks/useResponsiveValue.js';
|
|
7
7
|
import { useSlots } from '../hooks/useSlots.js';
|
|
8
8
|
import { canUseDOM } from '../utils/environment.js';
|
|
9
9
|
import { useOverflow } from '../hooks/useOverflow.js';
|
|
10
10
|
import { warning } from '../utils/warning.js';
|
|
11
|
+
import { getResponsiveAttributes } from '../internal/utils/getResponsiveAttributes.js';
|
|
11
12
|
import classes from './PageLayout.module.css.js';
|
|
12
13
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
13
14
|
|
|
@@ -156,7 +157,7 @@ Root.displayName = 'PageLayout';
|
|
|
156
157
|
// Divider (internal)
|
|
157
158
|
|
|
158
159
|
const HorizontalDivider = t0 => {
|
|
159
|
-
const $ = c(
|
|
160
|
+
const $ = c(14);
|
|
160
161
|
const {
|
|
161
162
|
variant: t1,
|
|
162
163
|
className,
|
|
@@ -167,7 +168,6 @@ const HorizontalDivider = t0 => {
|
|
|
167
168
|
const {
|
|
168
169
|
padding
|
|
169
170
|
} = React.useContext(PageLayoutContext);
|
|
170
|
-
const responsiveVariant = useResponsiveValue(variant, "none");
|
|
171
171
|
let t2;
|
|
172
172
|
if ($[0] !== className) {
|
|
173
173
|
t2 = clsx(classes.HorizontalDivider, className);
|
|
@@ -176,40 +176,56 @@ const HorizontalDivider = t0 => {
|
|
|
176
176
|
} else {
|
|
177
177
|
t2 = $[1];
|
|
178
178
|
}
|
|
179
|
-
|
|
179
|
+
let t3;
|
|
180
|
+
if ($[2] !== variant) {
|
|
181
|
+
t3 = getResponsiveAttributes("variant", variant);
|
|
182
|
+
$[2] = variant;
|
|
183
|
+
$[3] = t3;
|
|
184
|
+
} else {
|
|
185
|
+
t3 = $[3];
|
|
186
|
+
}
|
|
180
187
|
let t4;
|
|
181
|
-
if ($[
|
|
182
|
-
t4 =
|
|
183
|
-
|
|
188
|
+
if ($[4] !== position) {
|
|
189
|
+
t4 = getResponsiveAttributes("position", position);
|
|
190
|
+
$[4] = position;
|
|
191
|
+
$[5] = t4;
|
|
192
|
+
} else {
|
|
193
|
+
t4 = $[5];
|
|
194
|
+
}
|
|
195
|
+
const t5 = `var(--spacing-${padding})`;
|
|
196
|
+
let t6;
|
|
197
|
+
if ($[6] !== style || $[7] !== t5) {
|
|
198
|
+
t6 = {
|
|
199
|
+
"--spacing-divider": t5,
|
|
184
200
|
...style
|
|
185
201
|
};
|
|
186
|
-
$[
|
|
187
|
-
$[
|
|
188
|
-
$[
|
|
202
|
+
$[6] = style;
|
|
203
|
+
$[7] = t5;
|
|
204
|
+
$[8] = t6;
|
|
189
205
|
} else {
|
|
190
|
-
|
|
206
|
+
t6 = $[8];
|
|
191
207
|
}
|
|
192
|
-
const
|
|
193
|
-
let
|
|
194
|
-
if ($[
|
|
195
|
-
|
|
208
|
+
const t7 = t6;
|
|
209
|
+
let t8;
|
|
210
|
+
if ($[9] !== t2 || $[10] !== t3 || $[11] !== t4 || $[12] !== t7) {
|
|
211
|
+
t8 = /*#__PURE__*/jsx("div", {
|
|
196
212
|
className: t2,
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
style:
|
|
213
|
+
...t3,
|
|
214
|
+
...t4,
|
|
215
|
+
style: t7
|
|
200
216
|
});
|
|
201
|
-
$[
|
|
202
|
-
$[
|
|
203
|
-
$[
|
|
204
|
-
$[
|
|
205
|
-
$[
|
|
217
|
+
$[9] = t2;
|
|
218
|
+
$[10] = t3;
|
|
219
|
+
$[11] = t4;
|
|
220
|
+
$[12] = t7;
|
|
221
|
+
$[13] = t8;
|
|
206
222
|
} else {
|
|
207
|
-
|
|
223
|
+
t8 = $[13];
|
|
208
224
|
}
|
|
209
|
-
return
|
|
225
|
+
return t8;
|
|
210
226
|
};
|
|
211
227
|
const VerticalDivider = t0 => {
|
|
212
|
-
const $ = c(
|
|
228
|
+
const $ = c(40);
|
|
213
229
|
const {
|
|
214
230
|
variant: t1,
|
|
215
231
|
draggable: t2,
|
|
@@ -225,7 +241,6 @@ const VerticalDivider = t0 => {
|
|
|
225
241
|
const draggable = t2 === undefined ? false : t2;
|
|
226
242
|
const [isDragging, setIsDragging] = React.useState(false);
|
|
227
243
|
const [isKeyboardDrag, setIsKeyboardDrag] = React.useState(false);
|
|
228
|
-
const responsiveVariant = useResponsiveValue(variant, "none");
|
|
229
244
|
const stableOnDrag = React.useRef(onDrag);
|
|
230
245
|
const stableOnDragEnd = React.useRef(onDragEnd);
|
|
231
246
|
const {
|
|
@@ -380,8 +395,24 @@ const VerticalDivider = t0 => {
|
|
|
380
395
|
t11 = $[20];
|
|
381
396
|
}
|
|
382
397
|
let t12;
|
|
383
|
-
if ($[21] !==
|
|
384
|
-
t12 =
|
|
398
|
+
if ($[21] !== variant) {
|
|
399
|
+
t12 = getResponsiveAttributes("variant", variant);
|
|
400
|
+
$[21] = variant;
|
|
401
|
+
$[22] = t12;
|
|
402
|
+
} else {
|
|
403
|
+
t12 = $[22];
|
|
404
|
+
}
|
|
405
|
+
let t13;
|
|
406
|
+
if ($[23] !== position) {
|
|
407
|
+
t13 = getResponsiveAttributes("position", position);
|
|
408
|
+
$[23] = position;
|
|
409
|
+
$[24] = t13;
|
|
410
|
+
} else {
|
|
411
|
+
t13 = $[24];
|
|
412
|
+
}
|
|
413
|
+
let t14;
|
|
414
|
+
if ($[25] !== currentWidth || $[26] !== draggable || $[27] !== isDragging || $[28] !== isKeyboardDrag || $[29] !== maxWidth || $[30] !== minWidth || $[31] !== onDoubleClick || $[32] !== onDragStart) {
|
|
415
|
+
t14 = draggable ? /*#__PURE__*/jsx("div", {
|
|
385
416
|
className: classes.DraggableHandle,
|
|
386
417
|
"data-dragging": isDragging || isKeyboardDrag,
|
|
387
418
|
role: "slider",
|
|
@@ -405,44 +436,44 @@ const VerticalDivider = t0 => {
|
|
|
405
436
|
},
|
|
406
437
|
onDoubleClick: onDoubleClick
|
|
407
438
|
}) : null;
|
|
408
|
-
$[
|
|
409
|
-
$[
|
|
410
|
-
$[
|
|
411
|
-
$[
|
|
412
|
-
$[
|
|
413
|
-
$[
|
|
414
|
-
$[
|
|
415
|
-
$[
|
|
416
|
-
$[
|
|
417
|
-
} else {
|
|
418
|
-
|
|
439
|
+
$[25] = currentWidth;
|
|
440
|
+
$[26] = draggable;
|
|
441
|
+
$[27] = isDragging;
|
|
442
|
+
$[28] = isKeyboardDrag;
|
|
443
|
+
$[29] = maxWidth;
|
|
444
|
+
$[30] = minWidth;
|
|
445
|
+
$[31] = onDoubleClick;
|
|
446
|
+
$[32] = onDragStart;
|
|
447
|
+
$[33] = t14;
|
|
448
|
+
} else {
|
|
449
|
+
t14 = $[33];
|
|
419
450
|
}
|
|
420
|
-
let
|
|
421
|
-
if ($[
|
|
422
|
-
|
|
451
|
+
let t15;
|
|
452
|
+
if ($[34] !== style || $[35] !== t11 || $[36] !== t12 || $[37] !== t13 || $[38] !== t14) {
|
|
453
|
+
t15 = /*#__PURE__*/jsx("div", {
|
|
423
454
|
className: t11,
|
|
424
|
-
|
|
425
|
-
|
|
455
|
+
...t12,
|
|
456
|
+
...t13,
|
|
426
457
|
style: style,
|
|
427
|
-
children:
|
|
458
|
+
children: t14
|
|
428
459
|
});
|
|
429
|
-
$[
|
|
430
|
-
$[
|
|
431
|
-
$[
|
|
432
|
-
$[
|
|
433
|
-
$[
|
|
434
|
-
$[
|
|
460
|
+
$[34] = style;
|
|
461
|
+
$[35] = t11;
|
|
462
|
+
$[36] = t12;
|
|
463
|
+
$[37] = t13;
|
|
464
|
+
$[38] = t14;
|
|
465
|
+
$[39] = t15;
|
|
435
466
|
} else {
|
|
436
|
-
|
|
467
|
+
t15 = $[39];
|
|
437
468
|
}
|
|
438
|
-
return
|
|
469
|
+
return t15;
|
|
439
470
|
};
|
|
440
471
|
|
|
441
472
|
// ----------------------------------------------------------------------------
|
|
442
473
|
// PageLayout.Header
|
|
443
474
|
|
|
444
475
|
const Header = t0 => {
|
|
445
|
-
const $ = c(
|
|
476
|
+
const $ = c(28);
|
|
446
477
|
const {
|
|
447
478
|
"aria-label": label,
|
|
448
479
|
"aria-labelledby": labelledBy,
|
|
@@ -471,109 +502,115 @@ const Header = t0 => {
|
|
|
471
502
|
t5 = $[2];
|
|
472
503
|
}
|
|
473
504
|
const dividerProp = t5;
|
|
474
|
-
const dividerVariant = useResponsiveValue(dividerProp, "none");
|
|
475
|
-
const isHidden = useResponsiveValue(hidden, false);
|
|
476
505
|
const {
|
|
477
506
|
rowGap
|
|
478
507
|
} = React.useContext(PageLayoutContext);
|
|
479
508
|
let t6;
|
|
480
|
-
if ($[3] !==
|
|
481
|
-
t6 =
|
|
482
|
-
$[3] =
|
|
509
|
+
if ($[3] !== hidden) {
|
|
510
|
+
t6 = getResponsiveAttributes("hidden", hidden);
|
|
511
|
+
$[3] = hidden;
|
|
483
512
|
$[4] = t6;
|
|
484
513
|
} else {
|
|
485
514
|
t6 = $[4];
|
|
486
515
|
}
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
516
|
+
let t7;
|
|
517
|
+
if ($[5] !== className) {
|
|
518
|
+
t7 = clsx(classes.Header, className);
|
|
519
|
+
$[5] = className;
|
|
520
|
+
$[6] = t7;
|
|
521
|
+
} else {
|
|
522
|
+
t7 = $[6];
|
|
523
|
+
}
|
|
524
|
+
const t8 = `var(--spacing-${rowGap})`;
|
|
525
|
+
let t9;
|
|
526
|
+
if ($[7] !== style || $[8] !== t8) {
|
|
527
|
+
t9 = {
|
|
528
|
+
"--spacing": t8,
|
|
492
529
|
...style
|
|
493
530
|
};
|
|
494
|
-
$[
|
|
495
|
-
$[
|
|
496
|
-
$[
|
|
531
|
+
$[7] = style;
|
|
532
|
+
$[8] = t8;
|
|
533
|
+
$[9] = t9;
|
|
497
534
|
} else {
|
|
498
|
-
|
|
535
|
+
t9 = $[9];
|
|
499
536
|
}
|
|
500
|
-
const
|
|
501
|
-
const
|
|
502
|
-
let
|
|
503
|
-
if ($[
|
|
504
|
-
|
|
505
|
-
"--spacing":
|
|
537
|
+
const t10 = t9;
|
|
538
|
+
const t11 = `var(--spacing-${padding})`;
|
|
539
|
+
let t12;
|
|
540
|
+
if ($[10] !== t11) {
|
|
541
|
+
t12 = {
|
|
542
|
+
"--spacing": t11
|
|
506
543
|
};
|
|
507
|
-
$[
|
|
508
|
-
$[
|
|
544
|
+
$[10] = t11;
|
|
545
|
+
$[11] = t12;
|
|
509
546
|
} else {
|
|
510
|
-
|
|
547
|
+
t12 = $[11];
|
|
511
548
|
}
|
|
512
|
-
const
|
|
513
|
-
let
|
|
514
|
-
if ($[
|
|
515
|
-
|
|
549
|
+
const t13 = t12;
|
|
550
|
+
let t14;
|
|
551
|
+
if ($[12] !== children || $[13] !== t13) {
|
|
552
|
+
t14 = /*#__PURE__*/jsx("div", {
|
|
516
553
|
className: classes.HeaderContent,
|
|
517
|
-
style:
|
|
554
|
+
style: t13,
|
|
518
555
|
children: children
|
|
519
556
|
});
|
|
520
|
-
$[
|
|
521
|
-
$[
|
|
522
|
-
$[
|
|
557
|
+
$[12] = children;
|
|
558
|
+
$[13] = t13;
|
|
559
|
+
$[14] = t14;
|
|
523
560
|
} else {
|
|
524
|
-
|
|
561
|
+
t14 = $[14];
|
|
525
562
|
}
|
|
526
|
-
const
|
|
527
|
-
let
|
|
528
|
-
if ($[
|
|
529
|
-
|
|
530
|
-
"--spacing":
|
|
563
|
+
const t15 = `var(--spacing-${rowGap})`;
|
|
564
|
+
let t16;
|
|
565
|
+
if ($[15] !== t15) {
|
|
566
|
+
t16 = {
|
|
567
|
+
"--spacing": t15
|
|
531
568
|
};
|
|
532
|
-
$[
|
|
533
|
-
$[
|
|
569
|
+
$[15] = t15;
|
|
570
|
+
$[16] = t16;
|
|
534
571
|
} else {
|
|
535
|
-
|
|
572
|
+
t16 = $[16];
|
|
536
573
|
}
|
|
537
|
-
const
|
|
538
|
-
let
|
|
539
|
-
if ($[
|
|
540
|
-
|
|
541
|
-
variant:
|
|
574
|
+
const t17 = t16;
|
|
575
|
+
let t18;
|
|
576
|
+
if ($[17] !== dividerProp || $[18] !== t17) {
|
|
577
|
+
t18 = /*#__PURE__*/jsx(HorizontalDivider, {
|
|
578
|
+
variant: dividerProp,
|
|
542
579
|
className: classes.HeaderHorizontalDivider,
|
|
543
|
-
style:
|
|
580
|
+
style: t17
|
|
544
581
|
});
|
|
545
|
-
$[
|
|
546
|
-
$[
|
|
547
|
-
$[
|
|
582
|
+
$[17] = dividerProp;
|
|
583
|
+
$[18] = t17;
|
|
584
|
+
$[19] = t18;
|
|
548
585
|
} else {
|
|
549
|
-
|
|
586
|
+
t18 = $[19];
|
|
550
587
|
}
|
|
551
|
-
let
|
|
552
|
-
if ($[
|
|
553
|
-
|
|
588
|
+
let t19;
|
|
589
|
+
if ($[20] !== label || $[21] !== labelledBy || $[22] !== t10 || $[23] !== t14 || $[24] !== t18 || $[25] !== t6 || $[26] !== t7) {
|
|
590
|
+
t19 = /*#__PURE__*/jsxs("header", {
|
|
554
591
|
"aria-label": label,
|
|
555
592
|
"aria-labelledby": labelledBy,
|
|
556
|
-
|
|
557
|
-
className:
|
|
558
|
-
style:
|
|
559
|
-
children: [
|
|
593
|
+
...t6,
|
|
594
|
+
className: t7,
|
|
595
|
+
style: t10,
|
|
596
|
+
children: [t14, t18]
|
|
560
597
|
});
|
|
561
|
-
$[
|
|
562
|
-
$[
|
|
563
|
-
$[
|
|
564
|
-
$[
|
|
565
|
-
$[
|
|
566
|
-
$[
|
|
567
|
-
$[
|
|
568
|
-
$[
|
|
569
|
-
} else {
|
|
570
|
-
|
|
571
|
-
}
|
|
572
|
-
return
|
|
598
|
+
$[20] = label;
|
|
599
|
+
$[21] = labelledBy;
|
|
600
|
+
$[22] = t10;
|
|
601
|
+
$[23] = t14;
|
|
602
|
+
$[24] = t18;
|
|
603
|
+
$[25] = t6;
|
|
604
|
+
$[26] = t7;
|
|
605
|
+
$[27] = t19;
|
|
606
|
+
} else {
|
|
607
|
+
t19 = $[27];
|
|
608
|
+
}
|
|
609
|
+
return t19;
|
|
573
610
|
};
|
|
574
611
|
Header.displayName = 'PageLayout.Header';
|
|
575
612
|
const Content = t0 => {
|
|
576
|
-
const $ = c(
|
|
613
|
+
const $ = c(18);
|
|
577
614
|
const {
|
|
578
615
|
as: t1,
|
|
579
616
|
"aria-label": label,
|
|
@@ -589,7 +626,6 @@ const Content = t0 => {
|
|
|
589
626
|
const width = t2 === undefined ? "full" : t2;
|
|
590
627
|
const padding = t3 === undefined ? "none" : t3;
|
|
591
628
|
const hidden = t4 === undefined ? false : t4;
|
|
592
|
-
const isHidden = useResponsiveValue(hidden, false);
|
|
593
629
|
const Component = as;
|
|
594
630
|
let t5;
|
|
595
631
|
if ($[0] !== className) {
|
|
@@ -599,55 +635,63 @@ const Content = t0 => {
|
|
|
599
635
|
} else {
|
|
600
636
|
t5 = $[1];
|
|
601
637
|
}
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
638
|
+
let t6;
|
|
639
|
+
if ($[2] !== hidden) {
|
|
640
|
+
t6 = getResponsiveAttributes("is-hidden", hidden);
|
|
641
|
+
$[2] = hidden;
|
|
642
|
+
$[3] = t6;
|
|
643
|
+
} else {
|
|
644
|
+
t6 = $[3];
|
|
645
|
+
}
|
|
646
|
+
const t7 = `var(--spacing-${padding})`;
|
|
647
|
+
let t8;
|
|
648
|
+
if ($[4] !== t7) {
|
|
649
|
+
t8 = {
|
|
650
|
+
"--spacing": t7
|
|
607
651
|
};
|
|
608
|
-
$[
|
|
609
|
-
$[
|
|
652
|
+
$[4] = t7;
|
|
653
|
+
$[5] = t8;
|
|
610
654
|
} else {
|
|
611
|
-
|
|
655
|
+
t8 = $[5];
|
|
612
656
|
}
|
|
613
|
-
const
|
|
614
|
-
let
|
|
615
|
-
if ($[
|
|
616
|
-
|
|
657
|
+
const t9 = t8;
|
|
658
|
+
let t10;
|
|
659
|
+
if ($[6] !== children || $[7] !== t9 || $[8] !== width) {
|
|
660
|
+
t10 = /*#__PURE__*/jsx("div", {
|
|
617
661
|
className: classes.Content,
|
|
618
662
|
"data-width": width,
|
|
619
|
-
style:
|
|
663
|
+
style: t9,
|
|
620
664
|
children: children
|
|
621
665
|
});
|
|
622
|
-
$[
|
|
623
|
-
$[5] = t8;
|
|
624
|
-
$[6] = width;
|
|
666
|
+
$[6] = children;
|
|
625
667
|
$[7] = t9;
|
|
668
|
+
$[8] = width;
|
|
669
|
+
$[9] = t10;
|
|
626
670
|
} else {
|
|
627
|
-
|
|
671
|
+
t10 = $[9];
|
|
628
672
|
}
|
|
629
|
-
let
|
|
630
|
-
if ($[
|
|
631
|
-
|
|
673
|
+
let t11;
|
|
674
|
+
if ($[10] !== Component || $[11] !== label || $[12] !== labelledBy || $[13] !== style || $[14] !== t10 || $[15] !== t5 || $[16] !== t6) {
|
|
675
|
+
t11 = /*#__PURE__*/jsx(Component, {
|
|
632
676
|
"aria-label": label,
|
|
633
677
|
"aria-labelledby": labelledBy,
|
|
634
678
|
style: style,
|
|
635
679
|
className: t5,
|
|
636
|
-
|
|
637
|
-
children:
|
|
680
|
+
...t6,
|
|
681
|
+
children: t10
|
|
638
682
|
});
|
|
639
|
-
$[
|
|
640
|
-
$[
|
|
641
|
-
$[
|
|
642
|
-
$[
|
|
643
|
-
$[
|
|
644
|
-
$[
|
|
645
|
-
$[
|
|
646
|
-
$[
|
|
647
|
-
} else {
|
|
648
|
-
|
|
649
|
-
}
|
|
650
|
-
return
|
|
683
|
+
$[10] = Component;
|
|
684
|
+
$[11] = label;
|
|
685
|
+
$[12] = labelledBy;
|
|
686
|
+
$[13] = style;
|
|
687
|
+
$[14] = t10;
|
|
688
|
+
$[15] = t5;
|
|
689
|
+
$[16] = t6;
|
|
690
|
+
$[17] = t11;
|
|
691
|
+
} else {
|
|
692
|
+
t11 = $[17];
|
|
693
|
+
}
|
|
694
|
+
return t11;
|
|
651
695
|
};
|
|
652
696
|
Content.displayName = 'PageLayout.Content';
|
|
653
697
|
|
|
@@ -671,7 +715,7 @@ const overflowProps = {
|
|
|
671
715
|
role: 'region'
|
|
672
716
|
};
|
|
673
717
|
const Pane = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
674
|
-
const $ = c(
|
|
718
|
+
const $ = c(92);
|
|
675
719
|
const {
|
|
676
720
|
"aria-label": label,
|
|
677
721
|
"aria-labelledby": labelledBy,
|
|
@@ -717,7 +761,6 @@ const Pane = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
|
717
761
|
t13 = $[2];
|
|
718
762
|
}
|
|
719
763
|
const positionProp = t13;
|
|
720
|
-
const position = useResponsiveValue(positionProp, "end");
|
|
721
764
|
let t14;
|
|
722
765
|
if ($[3] !== dividerWhenNarrow || $[4] !== responsiveDivider) {
|
|
723
766
|
t14 = !isResponsiveValue(responsiveDivider) && dividerWhenNarrow !== "inherit" ? {
|
|
@@ -731,55 +774,71 @@ const Pane = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
|
731
774
|
t14 = $[5];
|
|
732
775
|
}
|
|
733
776
|
const dividerProp = t14;
|
|
734
|
-
|
|
735
|
-
|
|
777
|
+
let t15;
|
|
778
|
+
if ($[6] !== positionProp) {
|
|
779
|
+
t15 = isResponsiveValue(positionProp) ? "end" : positionProp;
|
|
780
|
+
$[6] = positionProp;
|
|
781
|
+
$[7] = t15;
|
|
782
|
+
} else {
|
|
783
|
+
t15 = $[7];
|
|
784
|
+
}
|
|
785
|
+
const position = t15;
|
|
786
|
+
let t16;
|
|
787
|
+
if ($[8] !== dividerProp) {
|
|
788
|
+
t16 = isResponsiveValue(dividerProp) ? "none" : dividerProp;
|
|
789
|
+
$[8] = dividerProp;
|
|
790
|
+
$[9] = t16;
|
|
791
|
+
} else {
|
|
792
|
+
t16 = $[9];
|
|
793
|
+
}
|
|
794
|
+
const dividerVariant = t16;
|
|
736
795
|
const {
|
|
737
796
|
rowGap,
|
|
738
797
|
columnGap,
|
|
739
798
|
paneRef
|
|
740
799
|
} = React.useContext(PageLayoutContext);
|
|
741
800
|
const getDefaultPaneWidth = _temp;
|
|
742
|
-
let
|
|
743
|
-
if ($[
|
|
744
|
-
|
|
801
|
+
let t17;
|
|
802
|
+
if ($[10] !== width || $[11] !== widthStorageKey) {
|
|
803
|
+
t17 = () => {
|
|
745
804
|
if (!canUseDOM) {
|
|
746
805
|
return getDefaultPaneWidth(width);
|
|
747
806
|
}
|
|
748
807
|
let storedWidth;
|
|
749
808
|
try {
|
|
750
809
|
storedWidth = localStorage.getItem(widthStorageKey);
|
|
751
|
-
} catch (
|
|
810
|
+
} catch (t18) {
|
|
752
811
|
storedWidth = null;
|
|
753
812
|
}
|
|
754
813
|
return storedWidth && !isNaN(Number(storedWidth)) ? Number(storedWidth) : getDefaultPaneWidth(width);
|
|
755
814
|
};
|
|
756
|
-
$[
|
|
757
|
-
$[
|
|
758
|
-
$[
|
|
815
|
+
$[10] = width;
|
|
816
|
+
$[11] = widthStorageKey;
|
|
817
|
+
$[12] = t17;
|
|
759
818
|
} else {
|
|
760
|
-
|
|
819
|
+
t17 = $[12];
|
|
761
820
|
}
|
|
762
|
-
const [paneWidth, setPaneWidth] = React.useState(
|
|
763
|
-
let
|
|
764
|
-
if ($[
|
|
765
|
-
|
|
821
|
+
const [paneWidth, setPaneWidth] = React.useState(t17);
|
|
822
|
+
let t18;
|
|
823
|
+
if ($[13] !== widthStorageKey) {
|
|
824
|
+
t18 = width_1 => {
|
|
766
825
|
setPaneWidth(width_1);
|
|
767
826
|
try {
|
|
768
827
|
localStorage.setItem(widthStorageKey, width_1.toString());
|
|
769
|
-
} catch (
|
|
828
|
+
} catch (t19) {
|
|
770
829
|
}
|
|
771
830
|
};
|
|
772
|
-
$[
|
|
773
|
-
$[
|
|
831
|
+
$[13] = widthStorageKey;
|
|
832
|
+
$[14] = t18;
|
|
774
833
|
} else {
|
|
775
|
-
|
|
834
|
+
t18 = $[14];
|
|
776
835
|
}
|
|
777
|
-
const updatePaneWidth =
|
|
836
|
+
const updatePaneWidth = t18;
|
|
778
837
|
useRefObjectAsForwardedRef(forwardRef, paneRef);
|
|
779
838
|
const hasOverflow = useOverflow(paneRef);
|
|
780
839
|
const paneId = useId(id);
|
|
781
840
|
let labelProp;
|
|
782
|
-
if ($[
|
|
841
|
+
if ($[15] !== hasOverflow || $[16] !== label || $[17] !== labelledBy) {
|
|
783
842
|
labelProp = {};
|
|
784
843
|
if (hasOverflow) {
|
|
785
844
|
process.env.NODE_ENV !== "production" ? warning(label === undefined && labelledBy === undefined, "The <PageLayout.Pane> has overflow and `aria-label` or `aria-labelledby` has not been set. Please provide `aria-label` or `aria-labelledby` to <PageLayout.Pane> in order to label this region.") : void 0;
|
|
@@ -791,166 +850,188 @@ const Pane = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
|
791
850
|
}
|
|
792
851
|
}
|
|
793
852
|
}
|
|
794
|
-
$[
|
|
795
|
-
$[
|
|
796
|
-
$[
|
|
797
|
-
$[
|
|
853
|
+
$[15] = hasOverflow;
|
|
854
|
+
$[16] = label;
|
|
855
|
+
$[17] = labelledBy;
|
|
856
|
+
$[18] = labelProp;
|
|
798
857
|
} else {
|
|
799
|
-
labelProp = $[
|
|
858
|
+
labelProp = $[18];
|
|
800
859
|
}
|
|
801
|
-
let
|
|
802
|
-
if ($[
|
|
803
|
-
|
|
804
|
-
$[
|
|
805
|
-
$[
|
|
806
|
-
} else {
|
|
807
|
-
|
|
808
|
-
}
|
|
809
|
-
const
|
|
810
|
-
const
|
|
811
|
-
const
|
|
812
|
-
let
|
|
813
|
-
if ($[
|
|
814
|
-
|
|
815
|
-
"--offset-header":
|
|
816
|
-
"--spacing-row":
|
|
817
|
-
"--spacing-column":
|
|
860
|
+
let t19;
|
|
861
|
+
if ($[19] !== className) {
|
|
862
|
+
t19 = clsx(classes.PaneWrapper, className);
|
|
863
|
+
$[19] = className;
|
|
864
|
+
$[20] = t19;
|
|
865
|
+
} else {
|
|
866
|
+
t19 = $[20];
|
|
867
|
+
}
|
|
868
|
+
const t20 = typeof offsetHeader === "number" ? `${offsetHeader}px` : offsetHeader;
|
|
869
|
+
const t21 = `var(--spacing-${rowGap})`;
|
|
870
|
+
const t22 = `var(--spacing-${columnGap})`;
|
|
871
|
+
let t23;
|
|
872
|
+
if ($[21] !== style || $[22] !== t20 || $[23] !== t21 || $[24] !== t22) {
|
|
873
|
+
t23 = {
|
|
874
|
+
"--offset-header": t20,
|
|
875
|
+
"--spacing-row": t21,
|
|
876
|
+
"--spacing-column": t22,
|
|
818
877
|
...style
|
|
819
878
|
};
|
|
820
|
-
$[
|
|
821
|
-
$[
|
|
822
|
-
$[
|
|
823
|
-
$[
|
|
824
|
-
$[
|
|
825
|
-
} else {
|
|
826
|
-
|
|
827
|
-
}
|
|
828
|
-
const
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
879
|
+
$[21] = style;
|
|
880
|
+
$[22] = t20;
|
|
881
|
+
$[23] = t21;
|
|
882
|
+
$[24] = t22;
|
|
883
|
+
$[25] = t23;
|
|
884
|
+
} else {
|
|
885
|
+
t23 = $[25];
|
|
886
|
+
}
|
|
887
|
+
const t24 = t23;
|
|
888
|
+
let t25;
|
|
889
|
+
if ($[26] !== responsiveHidden) {
|
|
890
|
+
t25 = getResponsiveAttributes("is-hidden", responsiveHidden);
|
|
891
|
+
$[26] = responsiveHidden;
|
|
892
|
+
$[27] = t25;
|
|
893
|
+
} else {
|
|
894
|
+
t25 = $[27];
|
|
895
|
+
}
|
|
896
|
+
let t26;
|
|
897
|
+
if ($[28] !== positionProp) {
|
|
898
|
+
t26 = getResponsiveAttributes("position", positionProp);
|
|
899
|
+
$[28] = positionProp;
|
|
900
|
+
$[29] = t26;
|
|
901
|
+
} else {
|
|
902
|
+
t26 = $[29];
|
|
903
|
+
}
|
|
904
|
+
const t27 = sticky || undefined;
|
|
905
|
+
let t28;
|
|
906
|
+
if ($[30] !== dividerProp || $[31] !== dividerVariant) {
|
|
907
|
+
t28 = isResponsiveValue(dividerProp) ? dividerProp : {
|
|
833
908
|
narrow: dividerVariant,
|
|
834
909
|
regular: "none"
|
|
835
910
|
};
|
|
836
|
-
$[
|
|
837
|
-
$[
|
|
911
|
+
$[30] = dividerProp;
|
|
912
|
+
$[31] = dividerVariant;
|
|
913
|
+
$[32] = t28;
|
|
838
914
|
} else {
|
|
839
|
-
|
|
915
|
+
t28 = $[32];
|
|
840
916
|
}
|
|
841
|
-
const
|
|
842
|
-
let
|
|
843
|
-
if ($[
|
|
844
|
-
|
|
845
|
-
"--spacing":
|
|
917
|
+
const t29 = `var(--spacing-${rowGap})`;
|
|
918
|
+
let t30;
|
|
919
|
+
if ($[33] !== t29) {
|
|
920
|
+
t30 = {
|
|
921
|
+
"--spacing": t29
|
|
846
922
|
};
|
|
847
|
-
$[
|
|
848
|
-
$[
|
|
923
|
+
$[33] = t29;
|
|
924
|
+
$[34] = t30;
|
|
849
925
|
} else {
|
|
850
|
-
|
|
926
|
+
t30 = $[34];
|
|
851
927
|
}
|
|
852
|
-
const
|
|
853
|
-
let
|
|
854
|
-
if ($[
|
|
855
|
-
|
|
856
|
-
variant:
|
|
928
|
+
const t31 = t30;
|
|
929
|
+
let t32;
|
|
930
|
+
if ($[35] !== positionProp || $[36] !== t28 || $[37] !== t31) {
|
|
931
|
+
t32 = /*#__PURE__*/jsx(HorizontalDivider, {
|
|
932
|
+
variant: t28,
|
|
857
933
|
className: classes.PaneHorizontalDivider,
|
|
858
|
-
style:
|
|
859
|
-
position:
|
|
934
|
+
style: t31,
|
|
935
|
+
position: positionProp
|
|
860
936
|
});
|
|
861
|
-
$[
|
|
862
|
-
$[
|
|
863
|
-
$[
|
|
864
|
-
$[
|
|
937
|
+
$[35] = positionProp;
|
|
938
|
+
$[36] = t28;
|
|
939
|
+
$[37] = t31;
|
|
940
|
+
$[38] = t32;
|
|
865
941
|
} else {
|
|
866
|
-
|
|
942
|
+
t32 = $[38];
|
|
867
943
|
}
|
|
868
|
-
let
|
|
869
|
-
if ($[
|
|
870
|
-
|
|
871
|
-
$[
|
|
872
|
-
$[
|
|
944
|
+
let t33;
|
|
945
|
+
if ($[39] !== hasOverflow) {
|
|
946
|
+
t33 = hasOverflow ? overflowProps : {};
|
|
947
|
+
$[39] = hasOverflow;
|
|
948
|
+
$[40] = t33;
|
|
873
949
|
} else {
|
|
874
|
-
|
|
950
|
+
t33 = $[40];
|
|
875
951
|
}
|
|
876
|
-
let
|
|
877
|
-
if ($[
|
|
878
|
-
|
|
952
|
+
let t34;
|
|
953
|
+
if ($[41] !== id || $[42] !== paneId) {
|
|
954
|
+
t34 = id && {
|
|
879
955
|
id: paneId
|
|
880
956
|
};
|
|
881
|
-
$[
|
|
882
|
-
$[
|
|
883
|
-
$[
|
|
957
|
+
$[41] = id;
|
|
958
|
+
$[42] = paneId;
|
|
959
|
+
$[43] = t34;
|
|
884
960
|
} else {
|
|
885
|
-
|
|
961
|
+
t34 = $[43];
|
|
886
962
|
}
|
|
887
|
-
const
|
|
888
|
-
const
|
|
889
|
-
const
|
|
890
|
-
const
|
|
891
|
-
const
|
|
892
|
-
const
|
|
893
|
-
const
|
|
894
|
-
let
|
|
895
|
-
if ($[
|
|
896
|
-
|
|
897
|
-
"--spacing":
|
|
898
|
-
"--pane-min-width":
|
|
899
|
-
"--pane-max-width":
|
|
900
|
-
"--pane-width-custom":
|
|
901
|
-
"--pane-width-size":
|
|
902
|
-
"--pane-width":
|
|
963
|
+
const t35 = resizable || undefined;
|
|
964
|
+
const t36 = `var(--spacing-${padding})`;
|
|
965
|
+
const t37 = isCustomWidthOptions(width) ? width.min : `${minWidth}px`;
|
|
966
|
+
const t38 = isCustomWidthOptions(width) ? width.max : "calc(100vw - var(--pane-max-width-diff))";
|
|
967
|
+
const t39 = isCustomWidthOptions(width) ? width.default : undefined;
|
|
968
|
+
const t40 = `var(--pane-width-${isPaneWidth(width) ? width : "custom"})`;
|
|
969
|
+
const t41 = `${paneWidth}px`;
|
|
970
|
+
let t42;
|
|
971
|
+
if ($[44] !== t36 || $[45] !== t37 || $[46] !== t38 || $[47] !== t39 || $[48] !== t40 || $[49] !== t41) {
|
|
972
|
+
t42 = {
|
|
973
|
+
"--spacing": t36,
|
|
974
|
+
"--pane-min-width": t37,
|
|
975
|
+
"--pane-max-width": t38,
|
|
976
|
+
"--pane-width-custom": t39,
|
|
977
|
+
"--pane-width-size": t40,
|
|
978
|
+
"--pane-width": t41
|
|
903
979
|
};
|
|
904
|
-
$[
|
|
905
|
-
$[
|
|
906
|
-
$[
|
|
907
|
-
$[
|
|
908
|
-
$[
|
|
909
|
-
$[
|
|
910
|
-
$[
|
|
911
|
-
} else {
|
|
912
|
-
|
|
913
|
-
}
|
|
914
|
-
const
|
|
915
|
-
let
|
|
916
|
-
if ($[
|
|
917
|
-
|
|
980
|
+
$[44] = t36;
|
|
981
|
+
$[45] = t37;
|
|
982
|
+
$[46] = t38;
|
|
983
|
+
$[47] = t39;
|
|
984
|
+
$[48] = t40;
|
|
985
|
+
$[49] = t41;
|
|
986
|
+
$[50] = t42;
|
|
987
|
+
} else {
|
|
988
|
+
t42 = $[50];
|
|
989
|
+
}
|
|
990
|
+
const t43 = t42;
|
|
991
|
+
let t44;
|
|
992
|
+
if ($[51] !== children || $[52] !== labelProp || $[53] !== paneRef || $[54] !== t33 || $[55] !== t34 || $[56] !== t35 || $[57] !== t43) {
|
|
993
|
+
t44 = /*#__PURE__*/jsx("div", {
|
|
918
994
|
ref: paneRef,
|
|
919
|
-
...
|
|
995
|
+
...t33,
|
|
920
996
|
...labelProp,
|
|
921
|
-
...
|
|
997
|
+
...t34,
|
|
922
998
|
className: classes.Pane,
|
|
923
|
-
"data-resizable":
|
|
924
|
-
style:
|
|
999
|
+
"data-resizable": t35,
|
|
1000
|
+
style: t43,
|
|
925
1001
|
children: children
|
|
926
1002
|
});
|
|
927
|
-
$[
|
|
928
|
-
$[
|
|
929
|
-
$[
|
|
930
|
-
$[
|
|
931
|
-
$[
|
|
932
|
-
$[
|
|
933
|
-
$[
|
|
934
|
-
$[
|
|
935
|
-
} else {
|
|
936
|
-
|
|
937
|
-
}
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
1003
|
+
$[51] = children;
|
|
1004
|
+
$[52] = labelProp;
|
|
1005
|
+
$[53] = paneRef;
|
|
1006
|
+
$[54] = t33;
|
|
1007
|
+
$[55] = t34;
|
|
1008
|
+
$[56] = t35;
|
|
1009
|
+
$[57] = t43;
|
|
1010
|
+
$[58] = t44;
|
|
1011
|
+
} else {
|
|
1012
|
+
t44 = $[58];
|
|
1013
|
+
}
|
|
1014
|
+
let t45;
|
|
1015
|
+
if ($[59] !== dividerProp || $[60] !== dividerVariant || $[61] !== resizable) {
|
|
1016
|
+
t45 = isResponsiveValue(dividerProp) ? {
|
|
1017
|
+
narrow: "none",
|
|
1018
|
+
regular: resizable ? "line" : dividerProp.regular || "none",
|
|
1019
|
+
wide: resizable ? "line" : dividerProp.wide || dividerProp.regular || "none"
|
|
1020
|
+
} : {
|
|
942
1021
|
narrow: "none",
|
|
943
|
-
regular:
|
|
1022
|
+
regular: resizable ? "line" : dividerVariant
|
|
944
1023
|
};
|
|
945
|
-
$[
|
|
946
|
-
$[
|
|
1024
|
+
$[59] = dividerProp;
|
|
1025
|
+
$[60] = dividerVariant;
|
|
1026
|
+
$[61] = resizable;
|
|
1027
|
+
$[62] = t45;
|
|
947
1028
|
} else {
|
|
948
|
-
|
|
1029
|
+
t45 = $[62];
|
|
949
1030
|
}
|
|
950
|
-
let
|
|
951
|
-
if ($[
|
|
952
|
-
|
|
953
|
-
const isKeyboard =
|
|
1031
|
+
let t46;
|
|
1032
|
+
if ($[63] !== paneWidth || $[64] !== position || $[65] !== updatePaneWidth) {
|
|
1033
|
+
t46 = (delta, t47) => {
|
|
1034
|
+
const isKeyboard = t47 === undefined ? false : t47;
|
|
954
1035
|
let deltaWithDirection;
|
|
955
1036
|
if (isKeyboard) {
|
|
956
1037
|
deltaWithDirection = delta;
|
|
@@ -959,16 +1040,16 @@ const Pane = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
|
959
1040
|
}
|
|
960
1041
|
updatePaneWidth(paneWidth + deltaWithDirection);
|
|
961
1042
|
};
|
|
962
|
-
$[
|
|
963
|
-
$[
|
|
964
|
-
$[
|
|
965
|
-
$[
|
|
1043
|
+
$[63] = paneWidth;
|
|
1044
|
+
$[64] = position;
|
|
1045
|
+
$[65] = updatePaneWidth;
|
|
1046
|
+
$[66] = t46;
|
|
966
1047
|
} else {
|
|
967
|
-
|
|
1048
|
+
t46 = $[66];
|
|
968
1049
|
}
|
|
969
|
-
let
|
|
970
|
-
if ($[
|
|
971
|
-
|
|
1050
|
+
let t47;
|
|
1051
|
+
if ($[67] !== paneRef || $[68] !== updatePaneWidth) {
|
|
1052
|
+
t47 = () => {
|
|
972
1053
|
var _paneRef$current;
|
|
973
1054
|
const paneRect = (_paneRef$current = paneRef.current) === null || _paneRef$current === void 0 ? void 0 : _paneRef$current.getBoundingClientRect();
|
|
974
1055
|
if (!paneRect) {
|
|
@@ -976,79 +1057,79 @@ const Pane = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
|
976
1057
|
}
|
|
977
1058
|
updatePaneWidth(paneRect.width);
|
|
978
1059
|
};
|
|
979
|
-
$[
|
|
980
|
-
$[
|
|
981
|
-
$[
|
|
1060
|
+
$[67] = paneRef;
|
|
1061
|
+
$[68] = updatePaneWidth;
|
|
1062
|
+
$[69] = t47;
|
|
982
1063
|
} else {
|
|
983
|
-
|
|
1064
|
+
t47 = $[69];
|
|
984
1065
|
}
|
|
985
|
-
let
|
|
986
|
-
if ($[
|
|
987
|
-
|
|
988
|
-
$[
|
|
989
|
-
$[
|
|
990
|
-
$[
|
|
1066
|
+
let t48;
|
|
1067
|
+
if ($[70] !== updatePaneWidth || $[71] !== width) {
|
|
1068
|
+
t48 = () => updatePaneWidth(getDefaultPaneWidth(width));
|
|
1069
|
+
$[70] = updatePaneWidth;
|
|
1070
|
+
$[71] = width;
|
|
1071
|
+
$[72] = t48;
|
|
991
1072
|
} else {
|
|
992
|
-
|
|
1073
|
+
t48 = $[72];
|
|
993
1074
|
}
|
|
994
|
-
const
|
|
995
|
-
let
|
|
996
|
-
if ($[
|
|
997
|
-
|
|
998
|
-
"--spacing":
|
|
1075
|
+
const t49 = `var(--spacing-${columnGap})`;
|
|
1076
|
+
let t50;
|
|
1077
|
+
if ($[73] !== t49) {
|
|
1078
|
+
t50 = {
|
|
1079
|
+
"--spacing": t49
|
|
999
1080
|
};
|
|
1000
|
-
$[
|
|
1001
|
-
$[
|
|
1081
|
+
$[73] = t49;
|
|
1082
|
+
$[74] = t50;
|
|
1002
1083
|
} else {
|
|
1003
|
-
|
|
1084
|
+
t50 = $[74];
|
|
1004
1085
|
}
|
|
1005
|
-
const
|
|
1006
|
-
let
|
|
1007
|
-
if ($[
|
|
1008
|
-
|
|
1009
|
-
variant:
|
|
1086
|
+
const t51 = t50;
|
|
1087
|
+
let t52;
|
|
1088
|
+
if ($[75] !== positionProp || $[76] !== resizable || $[77] !== t45 || $[78] !== t46 || $[79] !== t47 || $[80] !== t48 || $[81] !== t51) {
|
|
1089
|
+
t52 = /*#__PURE__*/jsx(VerticalDivider, {
|
|
1090
|
+
variant: t45,
|
|
1010
1091
|
draggable: resizable,
|
|
1011
|
-
onDrag:
|
|
1012
|
-
onDragEnd:
|
|
1013
|
-
position:
|
|
1014
|
-
onDoubleClick:
|
|
1092
|
+
onDrag: t46,
|
|
1093
|
+
onDragEnd: t47,
|
|
1094
|
+
position: positionProp,
|
|
1095
|
+
onDoubleClick: t48,
|
|
1015
1096
|
className: classes.PaneVerticalDivider,
|
|
1016
|
-
style:
|
|
1097
|
+
style: t51
|
|
1017
1098
|
});
|
|
1018
|
-
$[
|
|
1019
|
-
$[
|
|
1020
|
-
$[
|
|
1021
|
-
$[
|
|
1022
|
-
$[
|
|
1023
|
-
$[
|
|
1024
|
-
$[
|
|
1025
|
-
$[
|
|
1099
|
+
$[75] = positionProp;
|
|
1100
|
+
$[76] = resizable;
|
|
1101
|
+
$[77] = t45;
|
|
1102
|
+
$[78] = t46;
|
|
1103
|
+
$[79] = t47;
|
|
1104
|
+
$[80] = t48;
|
|
1105
|
+
$[81] = t51;
|
|
1106
|
+
$[82] = t52;
|
|
1026
1107
|
} else {
|
|
1027
|
-
|
|
1108
|
+
t52 = $[82];
|
|
1028
1109
|
}
|
|
1029
|
-
let
|
|
1030
|
-
if ($[
|
|
1031
|
-
|
|
1032
|
-
className:
|
|
1033
|
-
style:
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
"data-sticky":
|
|
1037
|
-
children: [
|
|
1110
|
+
let t53;
|
|
1111
|
+
if ($[83] !== t19 || $[84] !== t24 || $[85] !== t25 || $[86] !== t26 || $[87] !== t27 || $[88] !== t32 || $[89] !== t44 || $[90] !== t52) {
|
|
1112
|
+
t53 = /*#__PURE__*/jsxs("div", {
|
|
1113
|
+
className: t19,
|
|
1114
|
+
style: t24,
|
|
1115
|
+
...t25,
|
|
1116
|
+
...t26,
|
|
1117
|
+
"data-sticky": t27,
|
|
1118
|
+
children: [t32, t44, t52]
|
|
1038
1119
|
});
|
|
1039
|
-
$[
|
|
1040
|
-
$[
|
|
1041
|
-
$[
|
|
1042
|
-
$[
|
|
1043
|
-
$[
|
|
1044
|
-
$[
|
|
1045
|
-
$[
|
|
1046
|
-
$[
|
|
1047
|
-
$[
|
|
1048
|
-
} else {
|
|
1049
|
-
|
|
1050
|
-
}
|
|
1051
|
-
return
|
|
1120
|
+
$[83] = t19;
|
|
1121
|
+
$[84] = t24;
|
|
1122
|
+
$[85] = t25;
|
|
1123
|
+
$[86] = t26;
|
|
1124
|
+
$[87] = t27;
|
|
1125
|
+
$[88] = t32;
|
|
1126
|
+
$[89] = t44;
|
|
1127
|
+
$[90] = t52;
|
|
1128
|
+
$[91] = t53;
|
|
1129
|
+
} else {
|
|
1130
|
+
t53 = $[91];
|
|
1131
|
+
}
|
|
1132
|
+
return t53;
|
|
1052
1133
|
});
|
|
1053
1134
|
Pane.displayName = 'PageLayout.Pane';
|
|
1054
1135
|
|
|
@@ -1056,7 +1137,7 @@ Pane.displayName = 'PageLayout.Pane';
|
|
|
1056
1137
|
// PageLayout.Footer
|
|
1057
1138
|
|
|
1058
1139
|
const Footer = t0 => {
|
|
1059
|
-
const $ = c(
|
|
1140
|
+
const $ = c(28);
|
|
1060
1141
|
const {
|
|
1061
1142
|
"aria-label": label,
|
|
1062
1143
|
"aria-labelledby": labelledBy,
|
|
@@ -1085,105 +1166,111 @@ const Footer = t0 => {
|
|
|
1085
1166
|
t5 = $[2];
|
|
1086
1167
|
}
|
|
1087
1168
|
const dividerProp = t5;
|
|
1088
|
-
const dividerVariant = useResponsiveValue(dividerProp, "none");
|
|
1089
|
-
const isHidden = useResponsiveValue(hidden, false);
|
|
1090
1169
|
const {
|
|
1091
1170
|
rowGap
|
|
1092
1171
|
} = React.useContext(PageLayoutContext);
|
|
1093
1172
|
let t6;
|
|
1094
|
-
if ($[3] !==
|
|
1095
|
-
t6 =
|
|
1096
|
-
$[3] =
|
|
1173
|
+
if ($[3] !== hidden) {
|
|
1174
|
+
t6 = getResponsiveAttributes("hidden", hidden);
|
|
1175
|
+
$[3] = hidden;
|
|
1097
1176
|
$[4] = t6;
|
|
1098
1177
|
} else {
|
|
1099
1178
|
t6 = $[4];
|
|
1100
1179
|
}
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1180
|
+
let t7;
|
|
1181
|
+
if ($[5] !== className) {
|
|
1182
|
+
t7 = clsx(classes.FooterWrapper, className);
|
|
1183
|
+
$[5] = className;
|
|
1184
|
+
$[6] = t7;
|
|
1185
|
+
} else {
|
|
1186
|
+
t7 = $[6];
|
|
1187
|
+
}
|
|
1188
|
+
const t8 = `var(--spacing-${rowGap})`;
|
|
1189
|
+
let t9;
|
|
1190
|
+
if ($[7] !== style || $[8] !== t8) {
|
|
1191
|
+
t9 = {
|
|
1192
|
+
"--spacing": t8,
|
|
1106
1193
|
...style
|
|
1107
1194
|
};
|
|
1108
|
-
$[
|
|
1109
|
-
$[
|
|
1110
|
-
$[
|
|
1195
|
+
$[7] = style;
|
|
1196
|
+
$[8] = t8;
|
|
1197
|
+
$[9] = t9;
|
|
1111
1198
|
} else {
|
|
1112
|
-
|
|
1199
|
+
t9 = $[9];
|
|
1113
1200
|
}
|
|
1114
|
-
const
|
|
1115
|
-
const
|
|
1116
|
-
let
|
|
1117
|
-
if ($[
|
|
1118
|
-
|
|
1119
|
-
"--spacing":
|
|
1201
|
+
const t10 = t9;
|
|
1202
|
+
const t11 = `var(--spacing-${rowGap})`;
|
|
1203
|
+
let t12;
|
|
1204
|
+
if ($[10] !== t11) {
|
|
1205
|
+
t12 = {
|
|
1206
|
+
"--spacing": t11
|
|
1120
1207
|
};
|
|
1121
|
-
$[
|
|
1122
|
-
$[
|
|
1208
|
+
$[10] = t11;
|
|
1209
|
+
$[11] = t12;
|
|
1123
1210
|
} else {
|
|
1124
|
-
|
|
1211
|
+
t12 = $[11];
|
|
1125
1212
|
}
|
|
1126
|
-
const
|
|
1127
|
-
let
|
|
1128
|
-
if ($[
|
|
1129
|
-
|
|
1213
|
+
const t13 = t12;
|
|
1214
|
+
let t14;
|
|
1215
|
+
if ($[12] !== dividerProp || $[13] !== t13) {
|
|
1216
|
+
t14 = /*#__PURE__*/jsx(HorizontalDivider, {
|
|
1130
1217
|
className: classes.FooterHorizontalDivider,
|
|
1131
|
-
style:
|
|
1132
|
-
variant:
|
|
1218
|
+
style: t13,
|
|
1219
|
+
variant: dividerProp
|
|
1133
1220
|
});
|
|
1134
|
-
$[
|
|
1135
|
-
$[
|
|
1136
|
-
$[
|
|
1221
|
+
$[12] = dividerProp;
|
|
1222
|
+
$[13] = t13;
|
|
1223
|
+
$[14] = t14;
|
|
1137
1224
|
} else {
|
|
1138
|
-
|
|
1225
|
+
t14 = $[14];
|
|
1139
1226
|
}
|
|
1140
|
-
const
|
|
1141
|
-
let
|
|
1142
|
-
if ($[
|
|
1143
|
-
|
|
1144
|
-
"--spacing":
|
|
1227
|
+
const t15 = `var(--spacing-${padding})`;
|
|
1228
|
+
let t16;
|
|
1229
|
+
if ($[15] !== t15) {
|
|
1230
|
+
t16 = {
|
|
1231
|
+
"--spacing": t15
|
|
1145
1232
|
};
|
|
1146
|
-
$[
|
|
1147
|
-
$[
|
|
1233
|
+
$[15] = t15;
|
|
1234
|
+
$[16] = t16;
|
|
1148
1235
|
} else {
|
|
1149
|
-
|
|
1236
|
+
t16 = $[16];
|
|
1150
1237
|
}
|
|
1151
|
-
const
|
|
1152
|
-
let
|
|
1153
|
-
if ($[
|
|
1154
|
-
|
|
1238
|
+
const t17 = t16;
|
|
1239
|
+
let t18;
|
|
1240
|
+
if ($[17] !== children || $[18] !== t17) {
|
|
1241
|
+
t18 = /*#__PURE__*/jsx("div", {
|
|
1155
1242
|
className: classes.FooterContent,
|
|
1156
|
-
style:
|
|
1243
|
+
style: t17,
|
|
1157
1244
|
children: children
|
|
1158
1245
|
});
|
|
1159
|
-
$[
|
|
1160
|
-
$[
|
|
1161
|
-
$[
|
|
1246
|
+
$[17] = children;
|
|
1247
|
+
$[18] = t17;
|
|
1248
|
+
$[19] = t18;
|
|
1162
1249
|
} else {
|
|
1163
|
-
|
|
1250
|
+
t18 = $[19];
|
|
1164
1251
|
}
|
|
1165
|
-
let
|
|
1166
|
-
if ($[
|
|
1167
|
-
|
|
1252
|
+
let t19;
|
|
1253
|
+
if ($[20] !== label || $[21] !== labelledBy || $[22] !== t10 || $[23] !== t14 || $[24] !== t18 || $[25] !== t6 || $[26] !== t7) {
|
|
1254
|
+
t19 = /*#__PURE__*/jsxs("footer", {
|
|
1168
1255
|
"aria-label": label,
|
|
1169
1256
|
"aria-labelledby": labelledBy,
|
|
1170
|
-
|
|
1171
|
-
className:
|
|
1172
|
-
style:
|
|
1173
|
-
children: [
|
|
1257
|
+
...t6,
|
|
1258
|
+
className: t7,
|
|
1259
|
+
style: t10,
|
|
1260
|
+
children: [t14, t18]
|
|
1174
1261
|
});
|
|
1175
|
-
$[
|
|
1176
|
-
$[
|
|
1177
|
-
$[
|
|
1178
|
-
$[
|
|
1179
|
-
$[
|
|
1180
|
-
$[
|
|
1181
|
-
$[
|
|
1182
|
-
$[
|
|
1183
|
-
} else {
|
|
1184
|
-
|
|
1185
|
-
}
|
|
1186
|
-
return
|
|
1262
|
+
$[20] = label;
|
|
1263
|
+
$[21] = labelledBy;
|
|
1264
|
+
$[22] = t10;
|
|
1265
|
+
$[23] = t14;
|
|
1266
|
+
$[24] = t18;
|
|
1267
|
+
$[25] = t6;
|
|
1268
|
+
$[26] = t7;
|
|
1269
|
+
$[27] = t19;
|
|
1270
|
+
} else {
|
|
1271
|
+
t19 = $[27];
|
|
1272
|
+
}
|
|
1273
|
+
return t19;
|
|
1187
1274
|
};
|
|
1188
1275
|
Footer.displayName = 'PageLayout.Footer';
|
|
1189
1276
|
|