@primer/react 38.1.0-rc.83a9cbe38 → 38.1.0-rc.8e0fa8938

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 (137) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +16 -11
  3. package/dist/ActionBar/ActionBar.d.ts +70 -0
  4. package/dist/ActionBar/ActionBar.d.ts.map +1 -1
  5. package/dist/ActionBar/ActionBar.js +529 -151
  6. package/dist/ActionBar/index.d.ts +17 -1
  7. package/dist/ActionBar/index.d.ts.map +1 -1
  8. package/dist/ActionBar/index.js +3 -2
  9. package/dist/ActionList/ActionList-46e9c2db.css +2 -0
  10. package/dist/ActionList/ActionList-46e9c2db.css.map +1 -0
  11. package/dist/ActionList/ActionList.module.css.js +1 -1
  12. package/dist/ActionList/Item.d.ts.map +1 -1
  13. package/dist/ActionList/Item.js +3 -1
  14. package/dist/ActionList/List.d.ts.map +1 -1
  15. package/dist/ActionMenu/ActionMenu.js +1 -1
  16. package/dist/AnchoredOverlay/AnchoredOverlay.d.ts +1 -0
  17. package/dist/AnchoredOverlay/AnchoredOverlay.d.ts.map +1 -1
  18. package/dist/Autocomplete/AutocompleteInput.d.ts.map +1 -1
  19. package/dist/Autocomplete/AutocompleteInput.js +0 -1
  20. package/dist/Autocomplete/AutocompleteMenu.js +334 -124
  21. package/dist/Avatar/Avatar.js +31 -23
  22. package/dist/Banner/Banner.d.ts.map +1 -1
  23. package/dist/Banner/Banner.js +0 -1
  24. package/dist/BaseStyles.d.ts +2 -2
  25. package/dist/BaseStyles.d.ts.map +1 -1
  26. package/dist/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  27. package/dist/Breadcrumbs/Breadcrumbs.js +1 -0
  28. package/dist/Button/ButtonBase.d.ts.map +1 -1
  29. package/dist/Button/ButtonBase.js +0 -1
  30. package/dist/Checkbox/Checkbox.d.ts.map +1 -1
  31. package/dist/DataTable/Pagination.js +296 -87
  32. package/dist/DataTable/Table.d.ts +13 -13
  33. package/dist/DataTable/Table.d.ts.map +1 -1
  34. package/dist/Dialog/Dialog.js +1 -1
  35. package/dist/FilteredActionList/FilteredActionList-f6c2dc7a.css +1 -1
  36. package/dist/FilteredActionList/FilteredActionList-f6c2dc7a.css.map +1 -1
  37. package/dist/FilteredActionList/FilteredActionList.d.ts +1 -0
  38. package/dist/FilteredActionList/FilteredActionList.d.ts.map +1 -1
  39. package/dist/FilteredActionList/FilteredActionListLoaders.d.ts +1 -0
  40. package/dist/FilteredActionList/FilteredActionListLoaders.d.ts.map +1 -1
  41. package/dist/FilteredActionList/useAnnouncements.d.ts.map +1 -1
  42. package/dist/FilteredActionList/useAnnouncements.js +1 -0
  43. package/dist/Heading/Heading.d.ts.map +1 -1
  44. package/dist/Heading/Heading.js +0 -1
  45. package/dist/LabelGroup/LabelGroup.d.ts.map +1 -1
  46. package/dist/LabelGroup/LabelGroup.js +1 -0
  47. package/dist/Link/Link-968346ff.css +2 -0
  48. package/dist/Link/Link-968346ff.css.map +1 -0
  49. package/dist/Link/Link.d.ts +0 -2
  50. package/dist/Link/Link.d.ts.map +1 -1
  51. package/dist/Link/Link.js +0 -3
  52. package/dist/Link/Link.module.css.js +1 -1
  53. package/dist/PageHeader/PageHeader-9f4a690a.css +2 -0
  54. package/dist/PageHeader/PageHeader-9f4a690a.css.map +1 -0
  55. package/dist/PageHeader/PageHeader.d.ts.map +1 -1
  56. package/dist/PageHeader/PageHeader.js +24 -16
  57. package/dist/PageHeader/PageHeader.module.css.js +1 -1
  58. package/dist/PageLayout/PageLayout-28a244f7.css +2 -0
  59. package/dist/PageLayout/PageLayout-28a244f7.css.map +1 -0
  60. package/dist/PageLayout/PageLayout.d.ts.map +1 -1
  61. package/dist/PageLayout/PageLayout.js +535 -448
  62. package/dist/PageLayout/PageLayout.module.css.js +1 -1
  63. package/dist/Portal/Portal.d.ts.map +1 -1
  64. package/dist/Portal/Portal.js +0 -1
  65. package/dist/SelectPanel/SelectPanel.d.ts +1 -1
  66. package/dist/SelectPanel/SelectPanel.d.ts.map +1 -1
  67. package/dist/SelectPanel/SelectPanel.js +0 -1
  68. package/dist/SkeletonAvatar/SkeletonAvatar.js +31 -23
  69. package/dist/ThemeProvider.d.ts.map +1 -1
  70. package/dist/ThemeProvider.js +1 -0
  71. package/dist/Timeline/Timeline-116393ee.css +2 -0
  72. package/dist/Timeline/Timeline-116393ee.css.map +1 -0
  73. package/dist/Timeline/Timeline.module.css.js +1 -1
  74. package/dist/ToggleSwitch/ToggleSwitch.d.ts.map +1 -1
  75. package/dist/Token/IssueLabelToken.js +280 -57
  76. package/dist/Token/_RemoveTokenButton.d.ts +1 -1
  77. package/dist/Token/_RemoveTokenButton.d.ts.map +1 -1
  78. package/dist/Token/_RemoveTokenButton.js +4 -3
  79. package/dist/TooltipV2/Tooltip.d.ts.map +1 -1
  80. package/dist/TooltipV2/Tooltip.js +28 -25
  81. package/dist/TreeView/TreeView.d.ts.map +1 -1
  82. package/dist/TreeView/TreeView.js +5 -1
  83. package/dist/UnderlineNav/UnderlineNav.d.ts.map +1 -1
  84. package/dist/UnderlineNav/UnderlineNav.js +0 -1
  85. package/dist/deprecated/ActionList/Divider.d.ts +1 -0
  86. package/dist/deprecated/ActionList/Divider.d.ts.map +1 -1
  87. package/dist/deprecated/ActionList/Group.d.ts +1 -0
  88. package/dist/deprecated/ActionList/Group.d.ts.map +1 -1
  89. package/dist/deprecated/ActionList/Header.d.ts +1 -0
  90. package/dist/deprecated/ActionList/Header.d.ts.map +1 -1
  91. package/dist/deprecated/ActionList/List.d.ts.map +1 -1
  92. package/dist/deprecated/ActionMenu.d.ts +2 -1
  93. package/dist/deprecated/ActionMenu.d.ts.map +1 -1
  94. package/dist/deprecated/utils/create-slots.d.ts.map +1 -1
  95. package/dist/experimental/SelectPanel2/SelectPanel.d.ts.map +1 -1
  96. package/dist/experimental/SelectPanel2/SelectPanel.js +4 -2
  97. package/dist/hooks/useAnchoredPosition.d.ts.map +1 -1
  98. package/dist/hooks/useAnchoredPosition.js +0 -1
  99. package/dist/hooks/useControllableState.d.ts.map +1 -1
  100. package/dist/hooks/useControllableState.js +2 -0
  101. package/dist/hooks/useFocusTrap.d.ts.map +1 -1
  102. package/dist/hooks/useFocusTrap.js +0 -1
  103. package/dist/hooks/useFocusZone.d.ts.map +1 -1
  104. package/dist/hooks/useFocusZone.js +0 -1
  105. package/dist/hooks/useIsMacOS.d.ts.map +1 -1
  106. package/dist/hooks/useIsMacOS.js +3 -1
  107. package/dist/hooks/useMedia.d.ts.map +1 -1
  108. package/dist/hooks/useMedia.js +12 -27
  109. package/dist/hooks/useMenuInitialFocus.d.ts.map +1 -1
  110. package/dist/hooks/useMenuInitialFocus.js +0 -1
  111. package/dist/hooks/useOnEscapePress.d.ts.map +1 -1
  112. package/dist/hooks/useOnEscapePress.js +0 -1
  113. package/dist/hooks/useRenderForcingRef.d.ts.map +1 -1
  114. package/dist/hooks/useRenderForcingRef.js +37 -7
  115. package/dist/hooks/useResizeObserver.d.ts.map +1 -1
  116. package/dist/hooks/useResizeObserver.js +0 -1
  117. package/dist/hooks/useSafeTimeout.d.ts.map +1 -1
  118. package/dist/hooks/useSafeTimeout.js +0 -1
  119. package/dist/hooks/useScrollFlash.d.ts.map +1 -1
  120. package/dist/internal/components/ValidationAnimationContainer.d.ts.map +1 -1
  121. package/dist/internal/hooks/useFocus.d.ts.map +1 -1
  122. package/dist/internal/hooks/useMergedRefs.d.ts.map +1 -1
  123. package/dist/internal/hooks/useMergedRefs.js +0 -1
  124. package/dist/utils/polymorphic.d.ts +1 -0
  125. package/dist/utils/polymorphic.d.ts.map +1 -1
  126. package/generated/components.json +32 -7
  127. package/package.json +8 -10
  128. package/dist/ActionList/ActionList-167cf6c7.css +0 -2
  129. package/dist/ActionList/ActionList-167cf6c7.css.map +0 -1
  130. package/dist/Link/Link-e01bdaee.css +0 -2
  131. package/dist/Link/Link-e01bdaee.css.map +0 -1
  132. package/dist/PageHeader/PageHeader-4e1d8fee.css +0 -2
  133. package/dist/PageHeader/PageHeader-4e1d8fee.css.map +0 -1
  134. package/dist/PageLayout/PageLayout-1849f083.css +0 -2
  135. package/dist/PageLayout/PageLayout-1849f083.css.map +0 -1
  136. package/dist/Timeline/Timeline-e8e88a13.css +0 -2
  137. 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, useResponsiveValue } from '../hooks/useResponsiveValue.js';
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(10);
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
- const t3 = `var(--spacing-${padding})`;
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 ($[2] !== style || $[3] !== t3) {
182
- t4 = {
183
- "--spacing-divider": t3,
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
- $[2] = style;
187
- $[3] = t3;
188
- $[4] = t4;
202
+ $[6] = style;
203
+ $[7] = t5;
204
+ $[8] = t6;
189
205
  } else {
190
- t4 = $[4];
206
+ t6 = $[8];
191
207
  }
192
- const t5 = t4;
193
- let t6;
194
- if ($[5] !== position || $[6] !== responsiveVariant || $[7] !== t2 || $[8] !== t5) {
195
- t6 = /*#__PURE__*/jsx("div", {
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
- "data-variant": responsiveVariant,
198
- "data-position": position,
199
- style: t5
213
+ ...t3,
214
+ ...t4,
215
+ style: t7
200
216
  });
201
- $[5] = position;
202
- $[6] = responsiveVariant;
203
- $[7] = t2;
204
- $[8] = t5;
205
- $[9] = t6;
217
+ $[9] = t2;
218
+ $[10] = t3;
219
+ $[11] = t4;
220
+ $[12] = t7;
221
+ $[13] = t8;
206
222
  } else {
207
- t6 = $[9];
223
+ t8 = $[13];
208
224
  }
209
- return t6;
225
+ return t8;
210
226
  };
211
227
  const VerticalDivider = t0 => {
212
- const $ = c(36);
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] !== currentWidth || $[22] !== draggable || $[23] !== isDragging || $[24] !== isKeyboardDrag || $[25] !== maxWidth || $[26] !== minWidth || $[27] !== onDoubleClick || $[28] !== onDragStart) {
384
- t12 = draggable ? /*#__PURE__*/jsx("div", {
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
- $[21] = currentWidth;
409
- $[22] = draggable;
410
- $[23] = isDragging;
411
- $[24] = isKeyboardDrag;
412
- $[25] = maxWidth;
413
- $[26] = minWidth;
414
- $[27] = onDoubleClick;
415
- $[28] = onDragStart;
416
- $[29] = t12;
417
- } else {
418
- t12 = $[29];
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 t13;
421
- if ($[30] !== position || $[31] !== responsiveVariant || $[32] !== style || $[33] !== t11 || $[34] !== t12) {
422
- t13 = /*#__PURE__*/jsx("div", {
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
- "data-variant": responsiveVariant,
425
- "data-position": position,
455
+ ...t12,
456
+ ...t13,
426
457
  style: style,
427
- children: t12
458
+ children: t14
428
459
  });
429
- $[30] = position;
430
- $[31] = responsiveVariant;
431
- $[32] = style;
432
- $[33] = t11;
433
- $[34] = t12;
434
- $[35] = t13;
460
+ $[34] = style;
461
+ $[35] = t11;
462
+ $[36] = t12;
463
+ $[37] = t13;
464
+ $[38] = t14;
465
+ $[39] = t15;
435
466
  } else {
436
- t13 = $[35];
467
+ t15 = $[39];
437
468
  }
438
- return t13;
469
+ return t15;
439
470
  };
440
471
 
441
472
  // ----------------------------------------------------------------------------
442
473
  // PageLayout.Header
443
474
 
444
475
  const Header = t0 => {
445
- const $ = c(26);
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] !== className) {
481
- t6 = clsx(classes.Header, className);
482
- $[3] = className;
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
- const t7 = `var(--spacing-${rowGap})`;
488
- let t8;
489
- if ($[5] !== style || $[6] !== t7) {
490
- t8 = {
491
- "--spacing": t7,
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
- $[5] = style;
495
- $[6] = t7;
496
- $[7] = t8;
531
+ $[7] = style;
532
+ $[8] = t8;
533
+ $[9] = t9;
497
534
  } else {
498
- t8 = $[7];
535
+ t9 = $[9];
499
536
  }
500
- const t9 = t8;
501
- const t10 = `var(--spacing-${padding})`;
502
- let t11;
503
- if ($[8] !== t10) {
504
- t11 = {
505
- "--spacing": t10
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
- $[8] = t10;
508
- $[9] = t11;
544
+ $[10] = t11;
545
+ $[11] = t12;
509
546
  } else {
510
- t11 = $[9];
547
+ t12 = $[11];
511
548
  }
512
- const t12 = t11;
513
- let t13;
514
- if ($[10] !== children || $[11] !== t12) {
515
- t13 = /*#__PURE__*/jsx("div", {
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: t12,
554
+ style: t13,
518
555
  children: children
519
556
  });
520
- $[10] = children;
521
- $[11] = t12;
522
- $[12] = t13;
557
+ $[12] = children;
558
+ $[13] = t13;
559
+ $[14] = t14;
523
560
  } else {
524
- t13 = $[12];
561
+ t14 = $[14];
525
562
  }
526
- const t14 = `var(--spacing-${rowGap})`;
527
- let t15;
528
- if ($[13] !== t14) {
529
- t15 = {
530
- "--spacing": t14
563
+ const t15 = `var(--spacing-${rowGap})`;
564
+ let t16;
565
+ if ($[15] !== t15) {
566
+ t16 = {
567
+ "--spacing": t15
531
568
  };
532
- $[13] = t14;
533
- $[14] = t15;
569
+ $[15] = t15;
570
+ $[16] = t16;
534
571
  } else {
535
- t15 = $[14];
572
+ t16 = $[16];
536
573
  }
537
- const t16 = t15;
538
- let t17;
539
- if ($[15] !== dividerVariant || $[16] !== t16) {
540
- t17 = /*#__PURE__*/jsx(HorizontalDivider, {
541
- variant: dividerVariant,
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: t16
580
+ style: t17
544
581
  });
545
- $[15] = dividerVariant;
546
- $[16] = t16;
547
- $[17] = t17;
582
+ $[17] = dividerProp;
583
+ $[18] = t17;
584
+ $[19] = t18;
548
585
  } else {
549
- t17 = $[17];
586
+ t18 = $[19];
550
587
  }
551
- let t18;
552
- if ($[18] !== isHidden || $[19] !== label || $[20] !== labelledBy || $[21] !== t13 || $[22] !== t17 || $[23] !== t6 || $[24] !== t9) {
553
- t18 = /*#__PURE__*/jsxs("header", {
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
- hidden: isHidden,
557
- className: t6,
558
- style: t9,
559
- children: [t13, t17]
593
+ ...t6,
594
+ className: t7,
595
+ style: t10,
596
+ children: [t14, t18]
560
597
  });
561
- $[18] = isHidden;
562
- $[19] = label;
563
- $[20] = labelledBy;
564
- $[21] = t13;
565
- $[22] = t17;
566
- $[23] = t6;
567
- $[24] = t9;
568
- $[25] = t18;
569
- } else {
570
- t18 = $[25];
571
- }
572
- return t18;
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(16);
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
- const t6 = `var(--spacing-${padding})`;
603
- let t7;
604
- if ($[2] !== t6) {
605
- t7 = {
606
- "--spacing": t6
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
- $[2] = t6;
609
- $[3] = t7;
652
+ $[4] = t7;
653
+ $[5] = t8;
610
654
  } else {
611
- t7 = $[3];
655
+ t8 = $[5];
612
656
  }
613
- const t8 = t7;
614
- let t9;
615
- if ($[4] !== children || $[5] !== t8 || $[6] !== width) {
616
- t9 = /*#__PURE__*/jsx("div", {
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: t8,
663
+ style: t9,
620
664
  children: children
621
665
  });
622
- $[4] = children;
623
- $[5] = t8;
624
- $[6] = width;
666
+ $[6] = children;
625
667
  $[7] = t9;
668
+ $[8] = width;
669
+ $[9] = t10;
626
670
  } else {
627
- t9 = $[7];
671
+ t10 = $[9];
628
672
  }
629
- let t10;
630
- if ($[8] !== Component || $[9] !== isHidden || $[10] !== label || $[11] !== labelledBy || $[12] !== style || $[13] !== t5 || $[14] !== t9) {
631
- t10 = /*#__PURE__*/jsx(Component, {
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
- "data-is-hidden": isHidden,
637
- children: t9
680
+ ...t6,
681
+ children: t10
638
682
  });
639
- $[8] = Component;
640
- $[9] = isHidden;
641
- $[10] = label;
642
- $[11] = labelledBy;
643
- $[12] = style;
644
- $[13] = t5;
645
- $[14] = t9;
646
- $[15] = t10;
647
- } else {
648
- t10 = $[15];
649
- }
650
- return t10;
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(81);
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
- const dividerVariant = useResponsiveValue(dividerProp, "none");
735
- const isHidden = useResponsiveValue(responsiveHidden, false);
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 t15;
743
- if ($[6] !== width || $[7] !== widthStorageKey) {
744
- t15 = () => {
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 (t16) {
810
+ } catch (t18) {
752
811
  storedWidth = null;
753
812
  }
754
813
  return storedWidth && !isNaN(Number(storedWidth)) ? Number(storedWidth) : getDefaultPaneWidth(width);
755
814
  };
756
- $[6] = width;
757
- $[7] = widthStorageKey;
758
- $[8] = t15;
815
+ $[10] = width;
816
+ $[11] = widthStorageKey;
817
+ $[12] = t17;
759
818
  } else {
760
- t15 = $[8];
819
+ t17 = $[12];
761
820
  }
762
- const [paneWidth, setPaneWidth] = React.useState(t15);
763
- let t16;
764
- if ($[9] !== widthStorageKey) {
765
- t16 = width_1 => {
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 (t17) {
828
+ } catch (t19) {
770
829
  }
771
830
  };
772
- $[9] = widthStorageKey;
773
- $[10] = t16;
831
+ $[13] = widthStorageKey;
832
+ $[14] = t18;
774
833
  } else {
775
- t16 = $[10];
834
+ t18 = $[14];
776
835
  }
777
- const updatePaneWidth = t16;
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 ($[11] !== hasOverflow || $[12] !== label || $[13] !== labelledBy) {
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
- $[11] = hasOverflow;
795
- $[12] = label;
796
- $[13] = labelledBy;
797
- $[14] = labelProp;
853
+ $[15] = hasOverflow;
854
+ $[16] = label;
855
+ $[17] = labelledBy;
856
+ $[18] = labelProp;
798
857
  } else {
799
- labelProp = $[14];
858
+ labelProp = $[18];
800
859
  }
801
- let t17;
802
- if ($[15] !== className) {
803
- t17 = clsx(classes.PaneWrapper, className);
804
- $[15] = className;
805
- $[16] = t17;
806
- } else {
807
- t17 = $[16];
808
- }
809
- const t18 = typeof offsetHeader === "number" ? `${offsetHeader}px` : offsetHeader;
810
- const t19 = `var(--spacing-${rowGap})`;
811
- const t20 = `var(--spacing-${columnGap})`;
812
- let t21;
813
- if ($[17] !== style || $[18] !== t18 || $[19] !== t19 || $[20] !== t20) {
814
- t21 = {
815
- "--offset-header": t18,
816
- "--spacing-row": t19,
817
- "--spacing-column": t20,
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
- $[17] = style;
821
- $[18] = t18;
822
- $[19] = t19;
823
- $[20] = t20;
824
- $[21] = t21;
825
- } else {
826
- t21 = $[21];
827
- }
828
- const t22 = t21;
829
- const t23 = sticky || undefined;
830
- let t24;
831
- if ($[22] !== dividerVariant) {
832
- t24 = {
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
- $[22] = dividerVariant;
837
- $[23] = t24;
911
+ $[30] = dividerProp;
912
+ $[31] = dividerVariant;
913
+ $[32] = t28;
838
914
  } else {
839
- t24 = $[23];
915
+ t28 = $[32];
840
916
  }
841
- const t25 = `var(--spacing-${rowGap})`;
842
- let t26;
843
- if ($[24] !== t25) {
844
- t26 = {
845
- "--spacing": t25
917
+ const t29 = `var(--spacing-${rowGap})`;
918
+ let t30;
919
+ if ($[33] !== t29) {
920
+ t30 = {
921
+ "--spacing": t29
846
922
  };
847
- $[24] = t25;
848
- $[25] = t26;
923
+ $[33] = t29;
924
+ $[34] = t30;
849
925
  } else {
850
- t26 = $[25];
926
+ t30 = $[34];
851
927
  }
852
- const t27 = t26;
853
- let t28;
854
- if ($[26] !== position || $[27] !== t24 || $[28] !== t27) {
855
- t28 = /*#__PURE__*/jsx(HorizontalDivider, {
856
- variant: t24,
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: t27,
859
- position: position
934
+ style: t31,
935
+ position: positionProp
860
936
  });
861
- $[26] = position;
862
- $[27] = t24;
863
- $[28] = t27;
864
- $[29] = t28;
937
+ $[35] = positionProp;
938
+ $[36] = t28;
939
+ $[37] = t31;
940
+ $[38] = t32;
865
941
  } else {
866
- t28 = $[29];
942
+ t32 = $[38];
867
943
  }
868
- let t29;
869
- if ($[30] !== hasOverflow) {
870
- t29 = hasOverflow ? overflowProps : {};
871
- $[30] = hasOverflow;
872
- $[31] = t29;
944
+ let t33;
945
+ if ($[39] !== hasOverflow) {
946
+ t33 = hasOverflow ? overflowProps : {};
947
+ $[39] = hasOverflow;
948
+ $[40] = t33;
873
949
  } else {
874
- t29 = $[31];
950
+ t33 = $[40];
875
951
  }
876
- let t30;
877
- if ($[32] !== id || $[33] !== paneId) {
878
- t30 = id && {
952
+ let t34;
953
+ if ($[41] !== id || $[42] !== paneId) {
954
+ t34 = id && {
879
955
  id: paneId
880
956
  };
881
- $[32] = id;
882
- $[33] = paneId;
883
- $[34] = t30;
957
+ $[41] = id;
958
+ $[42] = paneId;
959
+ $[43] = t34;
884
960
  } else {
885
- t30 = $[34];
961
+ t34 = $[43];
886
962
  }
887
- const t31 = resizable || undefined;
888
- const t32 = `var(--spacing-${padding})`;
889
- const t33 = isCustomWidthOptions(width) ? width.min : `${minWidth}px`;
890
- const t34 = isCustomWidthOptions(width) ? width.max : "calc(100vw - var(--pane-max-width-diff))";
891
- const t35 = isCustomWidthOptions(width) ? width.default : undefined;
892
- const t36 = `var(--pane-width-${isPaneWidth(width) ? width : "custom"})`;
893
- const t37 = `${paneWidth}px`;
894
- let t38;
895
- if ($[35] !== t32 || $[36] !== t33 || $[37] !== t34 || $[38] !== t35 || $[39] !== t36 || $[40] !== t37) {
896
- t38 = {
897
- "--spacing": t32,
898
- "--pane-min-width": t33,
899
- "--pane-max-width": t34,
900
- "--pane-width-custom": t35,
901
- "--pane-width-size": t36,
902
- "--pane-width": t37
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
- $[35] = t32;
905
- $[36] = t33;
906
- $[37] = t34;
907
- $[38] = t35;
908
- $[39] = t36;
909
- $[40] = t37;
910
- $[41] = t38;
911
- } else {
912
- t38 = $[41];
913
- }
914
- const t39 = t38;
915
- let t40;
916
- if ($[42] !== children || $[43] !== labelProp || $[44] !== paneRef || $[45] !== t29 || $[46] !== t30 || $[47] !== t31 || $[48] !== t39) {
917
- t40 = /*#__PURE__*/jsx("div", {
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
- ...t29,
995
+ ...t33,
920
996
  ...labelProp,
921
- ...t30,
997
+ ...t34,
922
998
  className: classes.Pane,
923
- "data-resizable": t31,
924
- style: t39,
999
+ "data-resizable": t35,
1000
+ style: t43,
925
1001
  children: children
926
1002
  });
927
- $[42] = children;
928
- $[43] = labelProp;
929
- $[44] = paneRef;
930
- $[45] = t29;
931
- $[46] = t30;
932
- $[47] = t31;
933
- $[48] = t39;
934
- $[49] = t40;
935
- } else {
936
- t40 = $[49];
937
- }
938
- const t41 = resizable ? "line" : dividerVariant;
939
- let t42;
940
- if ($[50] !== t41) {
941
- t42 = {
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: t41
1022
+ regular: resizable ? "line" : dividerVariant
944
1023
  };
945
- $[50] = t41;
946
- $[51] = t42;
1024
+ $[59] = dividerProp;
1025
+ $[60] = dividerVariant;
1026
+ $[61] = resizable;
1027
+ $[62] = t45;
947
1028
  } else {
948
- t42 = $[51];
1029
+ t45 = $[62];
949
1030
  }
950
- let t43;
951
- if ($[52] !== paneWidth || $[53] !== position || $[54] !== updatePaneWidth) {
952
- t43 = (delta, t44) => {
953
- const isKeyboard = t44 === undefined ? false : t44;
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
- $[52] = paneWidth;
963
- $[53] = position;
964
- $[54] = updatePaneWidth;
965
- $[55] = t43;
1043
+ $[63] = paneWidth;
1044
+ $[64] = position;
1045
+ $[65] = updatePaneWidth;
1046
+ $[66] = t46;
966
1047
  } else {
967
- t43 = $[55];
1048
+ t46 = $[66];
968
1049
  }
969
- let t44;
970
- if ($[56] !== paneRef || $[57] !== updatePaneWidth) {
971
- t44 = () => {
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
- $[56] = paneRef;
980
- $[57] = updatePaneWidth;
981
- $[58] = t44;
1060
+ $[67] = paneRef;
1061
+ $[68] = updatePaneWidth;
1062
+ $[69] = t47;
982
1063
  } else {
983
- t44 = $[58];
1064
+ t47 = $[69];
984
1065
  }
985
- let t45;
986
- if ($[59] !== updatePaneWidth || $[60] !== width) {
987
- t45 = () => updatePaneWidth(getDefaultPaneWidth(width));
988
- $[59] = updatePaneWidth;
989
- $[60] = width;
990
- $[61] = t45;
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
- t45 = $[61];
1073
+ t48 = $[72];
993
1074
  }
994
- const t46 = `var(--spacing-${columnGap})`;
995
- let t47;
996
- if ($[62] !== t46) {
997
- t47 = {
998
- "--spacing": t46
1075
+ const t49 = `var(--spacing-${columnGap})`;
1076
+ let t50;
1077
+ if ($[73] !== t49) {
1078
+ t50 = {
1079
+ "--spacing": t49
999
1080
  };
1000
- $[62] = t46;
1001
- $[63] = t47;
1081
+ $[73] = t49;
1082
+ $[74] = t50;
1002
1083
  } else {
1003
- t47 = $[63];
1084
+ t50 = $[74];
1004
1085
  }
1005
- const t48 = t47;
1006
- let t49;
1007
- if ($[64] !== position || $[65] !== resizable || $[66] !== t42 || $[67] !== t43 || $[68] !== t44 || $[69] !== t45 || $[70] !== t48) {
1008
- t49 = /*#__PURE__*/jsx(VerticalDivider, {
1009
- variant: t42,
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: t43,
1012
- onDragEnd: t44,
1013
- position: position,
1014
- onDoubleClick: t45,
1092
+ onDrag: t46,
1093
+ onDragEnd: t47,
1094
+ position: positionProp,
1095
+ onDoubleClick: t48,
1015
1096
  className: classes.PaneVerticalDivider,
1016
- style: t48
1097
+ style: t51
1017
1098
  });
1018
- $[64] = position;
1019
- $[65] = resizable;
1020
- $[66] = t42;
1021
- $[67] = t43;
1022
- $[68] = t44;
1023
- $[69] = t45;
1024
- $[70] = t48;
1025
- $[71] = t49;
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
- t49 = $[71];
1108
+ t52 = $[82];
1028
1109
  }
1029
- let t50;
1030
- if ($[72] !== isHidden || $[73] !== position || $[74] !== t17 || $[75] !== t22 || $[76] !== t23 || $[77] !== t28 || $[78] !== t40 || $[79] !== t49) {
1031
- t50 = /*#__PURE__*/jsxs("div", {
1032
- className: t17,
1033
- style: t22,
1034
- "data-is-hidden": isHidden,
1035
- "data-position": position,
1036
- "data-sticky": t23,
1037
- children: [t28, t40, t49]
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
- $[72] = isHidden;
1040
- $[73] = position;
1041
- $[74] = t17;
1042
- $[75] = t22;
1043
- $[76] = t23;
1044
- $[77] = t28;
1045
- $[78] = t40;
1046
- $[79] = t49;
1047
- $[80] = t50;
1048
- } else {
1049
- t50 = $[80];
1050
- }
1051
- return t50;
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(26);
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] !== className) {
1095
- t6 = clsx(classes.FooterWrapper, className);
1096
- $[3] = className;
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
- const t7 = `var(--spacing-${rowGap})`;
1102
- let t8;
1103
- if ($[5] !== style || $[6] !== t7) {
1104
- t8 = {
1105
- "--spacing": t7,
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
- $[5] = style;
1109
- $[6] = t7;
1110
- $[7] = t8;
1195
+ $[7] = style;
1196
+ $[8] = t8;
1197
+ $[9] = t9;
1111
1198
  } else {
1112
- t8 = $[7];
1199
+ t9 = $[9];
1113
1200
  }
1114
- const t9 = t8;
1115
- const t10 = `var(--spacing-${rowGap})`;
1116
- let t11;
1117
- if ($[8] !== t10) {
1118
- t11 = {
1119
- "--spacing": t10
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
- $[8] = t10;
1122
- $[9] = t11;
1208
+ $[10] = t11;
1209
+ $[11] = t12;
1123
1210
  } else {
1124
- t11 = $[9];
1211
+ t12 = $[11];
1125
1212
  }
1126
- const t12 = t11;
1127
- let t13;
1128
- if ($[10] !== dividerVariant || $[11] !== t12) {
1129
- t13 = /*#__PURE__*/jsx(HorizontalDivider, {
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: t12,
1132
- variant: dividerVariant
1218
+ style: t13,
1219
+ variant: dividerProp
1133
1220
  });
1134
- $[10] = dividerVariant;
1135
- $[11] = t12;
1136
- $[12] = t13;
1221
+ $[12] = dividerProp;
1222
+ $[13] = t13;
1223
+ $[14] = t14;
1137
1224
  } else {
1138
- t13 = $[12];
1225
+ t14 = $[14];
1139
1226
  }
1140
- const t14 = `var(--spacing-${padding})`;
1141
- let t15;
1142
- if ($[13] !== t14) {
1143
- t15 = {
1144
- "--spacing": t14
1227
+ const t15 = `var(--spacing-${padding})`;
1228
+ let t16;
1229
+ if ($[15] !== t15) {
1230
+ t16 = {
1231
+ "--spacing": t15
1145
1232
  };
1146
- $[13] = t14;
1147
- $[14] = t15;
1233
+ $[15] = t15;
1234
+ $[16] = t16;
1148
1235
  } else {
1149
- t15 = $[14];
1236
+ t16 = $[16];
1150
1237
  }
1151
- const t16 = t15;
1152
- let t17;
1153
- if ($[15] !== children || $[16] !== t16) {
1154
- t17 = /*#__PURE__*/jsx("div", {
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: t16,
1243
+ style: t17,
1157
1244
  children: children
1158
1245
  });
1159
- $[15] = children;
1160
- $[16] = t16;
1161
- $[17] = t17;
1246
+ $[17] = children;
1247
+ $[18] = t17;
1248
+ $[19] = t18;
1162
1249
  } else {
1163
- t17 = $[17];
1250
+ t18 = $[19];
1164
1251
  }
1165
- let t18;
1166
- if ($[18] !== isHidden || $[19] !== label || $[20] !== labelledBy || $[21] !== t13 || $[22] !== t17 || $[23] !== t6 || $[24] !== t9) {
1167
- t18 = /*#__PURE__*/jsxs("footer", {
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
- hidden: isHidden,
1171
- className: t6,
1172
- style: t9,
1173
- children: [t13, t17]
1257
+ ...t6,
1258
+ className: t7,
1259
+ style: t10,
1260
+ children: [t14, t18]
1174
1261
  });
1175
- $[18] = isHidden;
1176
- $[19] = label;
1177
- $[20] = labelledBy;
1178
- $[21] = t13;
1179
- $[22] = t17;
1180
- $[23] = t6;
1181
- $[24] = t9;
1182
- $[25] = t18;
1183
- } else {
1184
- t18 = $[25];
1185
- }
1186
- return t18;
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