@primer/react 38.31.1-rc.fbf889cc5 → 38.32.0-rc.35f722e2e

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 (29) hide show
  1. package/CHANGELOG.md +16 -1
  2. package/dist/ActionList/{ActionList-65f7daac.css → ActionList-1ff5220c.css} +2 -2
  3. package/dist/ActionList/ActionList-1ff5220c.css.map +1 -0
  4. package/dist/ActionList/ActionList.module.css.js +1 -1
  5. package/dist/Breadcrumbs/{Breadcrumbs-54395fc6.css → Breadcrumbs-16d81430.css} +2 -2
  6. package/dist/Breadcrumbs/{Breadcrumbs-54395fc6.css.map → Breadcrumbs-16d81430.css.map} +1 -1
  7. package/dist/Breadcrumbs/Breadcrumbs.js +1 -0
  8. package/dist/Breadcrumbs/Breadcrumbs.module.css.js +2 -2
  9. package/dist/PageLayout/PageLayout.d.ts +6 -0
  10. package/dist/PageLayout/PageLayout.js +549 -535
  11. package/dist/SegmentedControl/SegmentedControl-a004561f.css +2 -0
  12. package/dist/SegmentedControl/SegmentedControl-a004561f.css.map +1 -0
  13. package/dist/SegmentedControl/SegmentedControl.module.css.js +1 -1
  14. package/dist/SplitPageLayout/SplitPageLayout.js +11 -0
  15. package/dist/Stack/Stack.js +2 -0
  16. package/dist/StateLabel/StateLabel.js +1 -0
  17. package/dist/SubNav/SubNav.js +3 -0
  18. package/dist/TabNav/TabNav.js +3 -1
  19. package/dist/Text/Text.js +1 -0
  20. package/dist/Textarea/Textarea.js +1 -0
  21. package/dist/ThemeProvider.js +1 -0
  22. package/dist/experimental/SelectPanel2/SelectPanel-917fdaef.css +2 -0
  23. package/dist/experimental/SelectPanel2/{SelectPanel-608e207e.css.map → SelectPanel-917fdaef.css.map} +1 -1
  24. package/dist/experimental/SelectPanel2/SelectPanel.module.css.js +1 -1
  25. package/package.json +3 -3
  26. package/dist/ActionList/ActionList-65f7daac.css.map +0 -1
  27. package/dist/SegmentedControl/SegmentedControl-622e61a4.css +0 -2
  28. package/dist/SegmentedControl/SegmentedControl-622e61a4.css.map +0 -1
  29. package/dist/experimental/SelectPanel2/SelectPanel-608e207e.css +0 -2
@@ -25,30 +25,31 @@ const PageLayoutContext = /*#__PURE__*/ React.createContext({
25
25
  sidebarContentWrapperRef: { current: null }
26
26
  });
27
27
  const Root = (t0) => {
28
- const $ = c(24);
29
- const { containerWidth: t1, padding: t2, rowGap: t3, columnGap: t4, children, className, style, _slotsConfig: slotsConfig } = t0;
28
+ const $ = c(25);
29
+ const { containerWidth: t1, padding: t2, rowGap: t3, columnGap: t4, children, className, style, _slotsConfig: slotsConfig, "data-component": t5 } = t0;
30
30
  const containerWidth = t1 === void 0 ? "xlarge" : t1;
31
31
  const padding = t2 === void 0 ? "normal" : t2;
32
32
  const rowGap = t3 === void 0 ? "normal" : t3;
33
33
  const columnGap = t4 === void 0 ? "normal" : t4;
34
+ const dataComponent = t5 === void 0 ? "PageLayout" : t5;
34
35
  const paneRef = useRef(null);
35
36
  const contentWrapperRef = useRef(null);
36
37
  const sidebarRef = useRef(null);
37
38
  const sidebarContentWrapperRef = useRef(null);
38
- let t5;
39
+ let t6;
39
40
  if ($[0] !== slotsConfig) {
40
- t5 = slotsConfig !== null && slotsConfig !== void 0 ? slotsConfig : {
41
+ t6 = slotsConfig !== null && slotsConfig !== void 0 ? slotsConfig : {
41
42
  header: Header,
42
43
  footer: Footer,
43
44
  sidebar: Sidebar
44
45
  };
45
46
  $[0] = slotsConfig;
46
- $[1] = t5;
47
- } else t5 = $[1];
48
- const [slots, rest] = useSlots(children, t5);
49
- let t6;
47
+ $[1] = t6;
48
+ } else t6 = $[1];
49
+ const [slots, rest] = useSlots(children, t6);
50
+ let t7;
50
51
  if ($[2] !== columnGap || $[3] !== padding || $[4] !== rowGap) {
51
- t6 = {
52
+ t7 = {
52
53
  padding,
53
54
  rowGap,
54
55
  columnGap,
@@ -60,76 +61,78 @@ const Root = (t0) => {
60
61
  $[2] = columnGap;
61
62
  $[3] = padding;
62
63
  $[4] = rowGap;
63
- $[5] = t6;
64
- } else t6 = $[5];
65
- const memoizedContextValue = t6;
66
- const t7 = !!slots.sidebar;
67
- const t8 = slots.sidebar;
68
- const t9 = slots.header;
69
- let t10;
70
- if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
71
- t10 = clsx(PageLayout_module_css_default.PageLayoutContent);
72
- $[6] = t10;
73
- } else t10 = $[6];
64
+ $[5] = t7;
65
+ } else t7 = $[5];
66
+ const memoizedContextValue = t7;
67
+ const t8 = !!slots.sidebar;
68
+ const t9 = slots.sidebar;
69
+ const t10 = slots.header;
74
70
  let t11;
71
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
72
+ t11 = clsx(PageLayout_module_css_default.PageLayoutContent);
73
+ $[6] = t11;
74
+ } else t11 = $[6];
75
+ let t12;
75
76
  if ($[7] !== rest) {
76
- t11 = /*#__PURE__*/ jsx("div", {
77
- className: t10,
77
+ t12 = /*#__PURE__*/ jsx("div", {
78
+ className: t11,
78
79
  children: rest
79
80
  });
80
81
  $[7] = rest;
81
- $[8] = t11;
82
- } else t11 = $[8];
83
- let t12;
84
- if ($[9] !== containerWidth || $[10] !== slots.footer || $[11] !== slots.header || $[12] !== t11) {
85
- t12 = /*#__PURE__*/ jsxs("div", {
82
+ $[8] = t12;
83
+ } else t12 = $[8];
84
+ let t13;
85
+ if ($[9] !== containerWidth || $[10] !== slots.footer || $[11] !== slots.header || $[12] !== t12) {
86
+ t13 = /*#__PURE__*/ jsxs("div", {
86
87
  ref: sidebarContentWrapperRef,
87
88
  className: PageLayout_module_css_default.PageLayoutWrapper,
88
89
  "data-width": containerWidth,
89
90
  children: [
90
- t9,
91
- t11,
91
+ t10,
92
+ t12,
92
93
  slots.footer
93
94
  ]
94
95
  });
95
96
  $[9] = containerWidth;
96
97
  $[10] = slots.footer;
97
98
  $[11] = slots.header;
98
- $[12] = t11;
99
- $[13] = t12;
100
- } else t12 = $[13];
101
- let t13;
102
- if ($[14] !== className || $[15] !== padding || $[16] !== slots.sidebar || $[17] !== style || $[18] !== t12 || $[19] !== t7) {
103
- t13 = /*#__PURE__*/ jsxs(RootWrapper, {
99
+ $[12] = t12;
100
+ $[13] = t13;
101
+ } else t13 = $[13];
102
+ let t14;
103
+ if ($[14] !== className || $[15] !== dataComponent || $[16] !== padding || $[17] !== slots.sidebar || $[18] !== style || $[19] !== t13 || $[20] !== t8) {
104
+ t14 = /*#__PURE__*/ jsxs(RootWrapper, {
104
105
  style,
105
106
  padding,
106
107
  className,
107
- hasSidebar: t7,
108
- children: [t8, t12]
108
+ hasSidebar: t8,
109
+ dataComponent,
110
+ children: [t9, t13]
109
111
  });
110
112
  $[14] = className;
111
- $[15] = padding;
112
- $[16] = slots.sidebar;
113
- $[17] = style;
114
- $[18] = t12;
115
- $[19] = t7;
116
- $[20] = t13;
117
- } else t13 = $[20];
118
- let t14;
119
- if ($[21] !== memoizedContextValue || $[22] !== t13) {
120
- t14 = /*#__PURE__*/ jsx(PageLayoutContext.Provider, {
113
+ $[15] = dataComponent;
114
+ $[16] = padding;
115
+ $[17] = slots.sidebar;
116
+ $[18] = style;
117
+ $[19] = t13;
118
+ $[20] = t8;
119
+ $[21] = t14;
120
+ } else t14 = $[21];
121
+ let t15;
122
+ if ($[22] !== memoizedContextValue || $[23] !== t14) {
123
+ t15 = /*#__PURE__*/ jsx(PageLayoutContext.Provider, {
121
124
  value: memoizedContextValue,
122
- children: t13
125
+ children: t14
123
126
  });
124
- $[21] = memoizedContextValue;
125
- $[22] = t13;
127
+ $[22] = memoizedContextValue;
126
128
  $[23] = t14;
127
- } else t14 = $[23];
128
- return t14;
129
+ $[24] = t15;
130
+ } else t15 = $[24];
131
+ return t15;
129
132
  };
130
133
  const RootWrapper = /*#__PURE__*/ memo((t0) => {
131
- const $ = c(10);
132
- const { style, padding, children, className, hasSidebar } = t0;
134
+ const $ = c(11);
135
+ const { style, padding, children, className, hasSidebar, dataComponent } = t0;
133
136
  const t1 = `var(--spacing-${padding})`;
134
137
  let t2;
135
138
  if ($[0] !== style || $[1] !== t1) {
@@ -150,20 +153,21 @@ const RootWrapper = /*#__PURE__*/ memo((t0) => {
150
153
  } else t4 = $[4];
151
154
  const t5 = hasSidebar || void 0;
152
155
  let t6;
153
- if ($[5] !== children || $[6] !== t3 || $[7] !== t4 || $[8] !== t5) {
156
+ if ($[5] !== children || $[6] !== dataComponent || $[7] !== t3 || $[8] !== t4 || $[9] !== t5) {
154
157
  t6 = /*#__PURE__*/ jsx("div", {
155
158
  style: t3,
156
159
  className: t4,
157
- "data-component": "PageLayout",
160
+ "data-component": dataComponent,
158
161
  "data-has-sidebar": t5,
159
162
  children
160
163
  });
161
164
  $[5] = children;
162
- $[6] = t3;
163
- $[7] = t4;
164
- $[8] = t5;
165
- $[9] = t6;
166
- } else t6 = $[9];
165
+ $[6] = dataComponent;
166
+ $[7] = t3;
167
+ $[8] = t4;
168
+ $[9] = t5;
169
+ $[10] = t6;
170
+ } else t6 = $[10];
167
171
  return t6;
168
172
  });
169
173
  Root.displayName = "PageLayout";
@@ -562,174 +566,178 @@ const DragHandle = /*#__PURE__*/ memo(function DragHandle(t0) {
562
566
  return t13;
563
567
  });
564
568
  const Header = (t0) => {
565
- const $ = c(28);
566
- const { "aria-label": label, "aria-labelledby": labelledBy, padding: t1, divider: t2, dividerWhenNarrow: t3, hidden: t4, children, style, className } = t0;
569
+ const $ = c(29);
570
+ const { "aria-label": label, "aria-labelledby": labelledBy, padding: t1, divider: t2, dividerWhenNarrow: t3, hidden: t4, children, style, className, "data-component": t5 } = t0;
567
571
  const padding = t1 === void 0 ? "none" : t1;
568
572
  const divider = t2 === void 0 ? "none" : t2;
569
573
  const dividerWhenNarrow = t3 === void 0 ? "inherit" : t3;
570
574
  const hidden = t4 === void 0 ? false : t4;
571
- let t5;
575
+ const dataComponent = t5 === void 0 ? "PageLayout.Header" : t5;
576
+ let t6;
572
577
  if ($[0] !== divider || $[1] !== dividerWhenNarrow) {
573
- t5 = !isResponsiveValue(divider) && dividerWhenNarrow !== "inherit" ? {
578
+ t6 = !isResponsiveValue(divider) && dividerWhenNarrow !== "inherit" ? {
574
579
  regular: divider,
575
580
  narrow: dividerWhenNarrow
576
581
  } : divider;
577
582
  $[0] = divider;
578
583
  $[1] = dividerWhenNarrow;
579
- $[2] = t5;
580
- } else t5 = $[2];
581
- const dividerProp = t5;
584
+ $[2] = t6;
585
+ } else t6 = $[2];
586
+ const dividerProp = t6;
582
587
  const { rowGap } = React.useContext(PageLayoutContext);
583
- let t6;
588
+ let t7;
584
589
  if ($[3] !== hidden) {
585
- t6 = getResponsiveAttributes("hidden", hidden);
590
+ t7 = getResponsiveAttributes("hidden", hidden);
586
591
  $[3] = hidden;
587
- $[4] = t6;
588
- } else t6 = $[4];
589
- let t7;
592
+ $[4] = t7;
593
+ } else t7 = $[4];
594
+ let t8;
590
595
  if ($[5] !== className) {
591
- t7 = clsx(PageLayout_module_css_default.Header, className);
596
+ t8 = clsx(PageLayout_module_css_default.Header, className);
592
597
  $[5] = className;
593
- $[6] = t7;
594
- } else t7 = $[6];
595
- const t8 = `var(--spacing-${rowGap})`;
596
- let t9;
597
- if ($[7] !== style || $[8] !== t8) {
598
- t9 = {
599
- "--spacing": t8,
598
+ $[6] = t8;
599
+ } else t8 = $[6];
600
+ const t9 = `var(--spacing-${rowGap})`;
601
+ let t10;
602
+ if ($[7] !== style || $[8] !== t9) {
603
+ t10 = {
604
+ "--spacing": t9,
600
605
  ...style
601
606
  };
602
607
  $[7] = style;
603
- $[8] = t8;
604
- $[9] = t9;
605
- } else t9 = $[9];
606
- const t10 = t9;
607
- const t11 = `var(--spacing-${padding})`;
608
- let t12;
609
- if ($[10] !== t11) {
610
- t12 = { "--spacing": t11 };
611
- $[10] = t11;
612
- $[11] = t12;
613
- } else t12 = $[11];
614
- const t13 = t12;
615
- let t14;
616
- if ($[12] !== children || $[13] !== t13) {
617
- t14 = /*#__PURE__*/ jsx("div", {
608
+ $[8] = t9;
609
+ $[9] = t10;
610
+ } else t10 = $[9];
611
+ const t11 = t10;
612
+ const t12 = `var(--spacing-${padding})`;
613
+ let t13;
614
+ if ($[10] !== t12) {
615
+ t13 = { "--spacing": t12 };
616
+ $[10] = t12;
617
+ $[11] = t13;
618
+ } else t13 = $[11];
619
+ const t14 = t13;
620
+ let t15;
621
+ if ($[12] !== children || $[13] !== t14) {
622
+ t15 = /*#__PURE__*/ jsx("div", {
618
623
  className: PageLayout_module_css_default.HeaderContent,
619
- style: t13,
624
+ style: t14,
620
625
  children
621
626
  });
622
627
  $[12] = children;
623
- $[13] = t13;
624
- $[14] = t14;
625
- } else t14 = $[14];
626
- const t15 = `var(--spacing-${rowGap})`;
627
- let t16;
628
- if ($[15] !== t15) {
629
- t16 = { "--spacing": t15 };
630
- $[15] = t15;
631
- $[16] = t16;
632
- } else t16 = $[16];
633
- const t17 = t16;
634
- let t18;
635
- if ($[17] !== dividerProp || $[18] !== t17) {
636
- t18 = /*#__PURE__*/ jsx(HorizontalDivider, {
628
+ $[13] = t14;
629
+ $[14] = t15;
630
+ } else t15 = $[14];
631
+ const t16 = `var(--spacing-${rowGap})`;
632
+ let t17;
633
+ if ($[15] !== t16) {
634
+ t17 = { "--spacing": t16 };
635
+ $[15] = t16;
636
+ $[16] = t17;
637
+ } else t17 = $[16];
638
+ const t18 = t17;
639
+ let t19;
640
+ if ($[17] !== dividerProp || $[18] !== t18) {
641
+ t19 = /*#__PURE__*/ jsx(HorizontalDivider, {
637
642
  variant: dividerProp,
638
643
  className: PageLayout_module_css_default.HeaderHorizontalDivider,
639
- style: t17
644
+ style: t18
640
645
  });
641
646
  $[17] = dividerProp;
642
- $[18] = t17;
643
- $[19] = t18;
644
- } else t18 = $[19];
645
- let t19;
646
- if ($[20] !== label || $[21] !== labelledBy || $[22] !== t10 || $[23] !== t14 || $[24] !== t18 || $[25] !== t6 || $[26] !== t7) {
647
- t19 = /*#__PURE__*/ jsxs("header", {
647
+ $[18] = t18;
648
+ $[19] = t19;
649
+ } else t19 = $[19];
650
+ let t20;
651
+ if ($[20] !== dataComponent || $[21] !== label || $[22] !== labelledBy || $[23] !== t11 || $[24] !== t15 || $[25] !== t19 || $[26] !== t7 || $[27] !== t8) {
652
+ t20 = /*#__PURE__*/ jsxs("header", {
648
653
  "aria-label": label,
649
654
  "aria-labelledby": labelledBy,
650
- "data-component": "PageLayout.Header",
651
- ...t6,
652
- className: t7,
653
- style: t10,
654
- children: [t14, t18]
655
+ "data-component": dataComponent,
656
+ ...t7,
657
+ className: t8,
658
+ style: t11,
659
+ children: [t15, t19]
655
660
  });
656
- $[20] = label;
657
- $[21] = labelledBy;
658
- $[22] = t10;
659
- $[23] = t14;
660
- $[24] = t18;
661
- $[25] = t6;
661
+ $[20] = dataComponent;
662
+ $[21] = label;
663
+ $[22] = labelledBy;
664
+ $[23] = t11;
665
+ $[24] = t15;
666
+ $[25] = t19;
662
667
  $[26] = t7;
663
- $[27] = t19;
664
- } else t19 = $[27];
665
- return t19;
668
+ $[27] = t8;
669
+ $[28] = t20;
670
+ } else t20 = $[28];
671
+ return t20;
666
672
  };
667
673
  Header.displayName = "PageLayout.Header";
668
674
  const Content = (t0) => {
669
- const $ = c(19);
670
- const { as: t1, "aria-label": label, "aria-labelledby": labelledBy, width: t2, padding: t3, hidden: t4, children, className, style } = t0;
675
+ const $ = c(20);
676
+ const { as: t1, "aria-label": label, "aria-labelledby": labelledBy, width: t2, padding: t3, hidden: t4, children, className, style, "data-component": t5 } = t0;
671
677
  const as = t1 === void 0 ? "main" : t1;
672
678
  const width = t2 === void 0 ? "full" : t2;
673
679
  const padding = t3 === void 0 ? "none" : t3;
674
680
  const hidden = t4 === void 0 ? false : t4;
681
+ const dataComponent = t5 === void 0 ? "PageLayout.Content" : t5;
675
682
  const Component = as;
676
683
  const { contentWrapperRef } = React.useContext(PageLayoutContext);
677
- let t5;
684
+ let t6;
678
685
  if ($[0] !== className) {
679
- t5 = clsx(PageLayout_module_css_default.ContentWrapper, className);
686
+ t6 = clsx(PageLayout_module_css_default.ContentWrapper, className);
680
687
  $[0] = className;
681
- $[1] = t5;
682
- } else t5 = $[1];
683
- let t6;
688
+ $[1] = t6;
689
+ } else t6 = $[1];
690
+ let t7;
684
691
  if ($[2] !== hidden) {
685
- t6 = getResponsiveAttributes("is-hidden", hidden);
692
+ t7 = getResponsiveAttributes("is-hidden", hidden);
686
693
  $[2] = hidden;
687
- $[3] = t6;
688
- } else t6 = $[3];
689
- const t7 = `var(--spacing-${padding})`;
690
- let t8;
691
- if ($[4] !== t7) {
692
- t8 = { "--spacing": t7 };
693
- $[4] = t7;
694
- $[5] = t8;
695
- } else t8 = $[5];
696
- const t9 = t8;
697
- let t10;
698
- if ($[6] !== children || $[7] !== t9 || $[8] !== width) {
699
- t10 = /*#__PURE__*/ jsx("div", {
694
+ $[3] = t7;
695
+ } else t7 = $[3];
696
+ const t8 = `var(--spacing-${padding})`;
697
+ let t9;
698
+ if ($[4] !== t8) {
699
+ t9 = { "--spacing": t8 };
700
+ $[4] = t8;
701
+ $[5] = t9;
702
+ } else t9 = $[5];
703
+ const t10 = t9;
704
+ let t11;
705
+ if ($[6] !== children || $[7] !== t10 || $[8] !== width) {
706
+ t11 = /*#__PURE__*/ jsx("div", {
700
707
  className: PageLayout_module_css_default.Content,
701
708
  "data-width": width,
702
- style: t9,
709
+ style: t10,
703
710
  children
704
711
  });
705
712
  $[6] = children;
706
- $[7] = t9;
713
+ $[7] = t10;
707
714
  $[8] = width;
708
- $[9] = t10;
709
- } else t10 = $[9];
710
- let t11;
711
- if ($[10] !== Component || $[11] !== contentWrapperRef || $[12] !== label || $[13] !== labelledBy || $[14] !== style || $[15] !== t10 || $[16] !== t5 || $[17] !== t6) {
712
- t11 = /*#__PURE__*/ jsx(Component, {
715
+ $[9] = t11;
716
+ } else t11 = $[9];
717
+ let t12;
718
+ if ($[10] !== Component || $[11] !== contentWrapperRef || $[12] !== dataComponent || $[13] !== label || $[14] !== labelledBy || $[15] !== style || $[16] !== t11 || $[17] !== t6 || $[18] !== t7) {
719
+ t12 = /*#__PURE__*/ jsx(Component, {
713
720
  ref: contentWrapperRef,
714
721
  "aria-label": label,
715
722
  "aria-labelledby": labelledBy,
716
- "data-component": "PageLayout.Content",
723
+ "data-component": dataComponent,
717
724
  style,
718
- className: t5,
719
- ...t6,
720
- children: t10
725
+ className: t6,
726
+ ...t7,
727
+ children: t11
721
728
  });
722
729
  $[10] = Component;
723
730
  $[11] = contentWrapperRef;
724
- $[12] = label;
725
- $[13] = labelledBy;
726
- $[14] = style;
727
- $[15] = t10;
728
- $[16] = t5;
731
+ $[12] = dataComponent;
732
+ $[13] = label;
733
+ $[14] = labelledBy;
734
+ $[15] = style;
735
+ $[16] = t11;
729
736
  $[17] = t6;
730
- $[18] = t11;
731
- } else t11 = $[18];
732
- return t11;
737
+ $[18] = t7;
738
+ $[19] = t12;
739
+ } else t12 = $[19];
740
+ return t12;
733
741
  };
734
742
  Content.displayName = "PageLayout.Content";
735
743
  const overflowProps = {
@@ -737,8 +745,8 @@ const overflowProps = {
737
745
  role: "region"
738
746
  };
739
747
  const Pane = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
740
- const $ = c(96);
741
- const { "aria-label": label, "aria-labelledby": labelledBy, position: t1, positionWhenNarrow: t2, width: t3, minWidth: t4, currentWidth: controlledWidth, onResizeEnd, padding: t5, resizable: t6, widthStorageKey: t7, divider: t8, dividerWhenNarrow: t9, sticky: t10, offsetHeader: t11, hidden: t12, children, id, className, style } = t0;
748
+ const $ = c(97);
749
+ const { "aria-label": label, "aria-labelledby": labelledBy, position: t1, positionWhenNarrow: t2, width: t3, minWidth: t4, currentWidth: controlledWidth, onResizeEnd, padding: t5, resizable: t6, widthStorageKey: t7, divider: t8, dividerWhenNarrow: t9, sticky: t10, offsetHeader: t11, hidden: t12, children, id, className, style, "data-component": t13 } = t0;
742
750
  const responsivePosition = t1 === void 0 ? "end" : t1;
743
751
  const positionWhenNarrow = t2 === void 0 ? "inherit" : t2;
744
752
  const width = t3 === void 0 ? "medium" : t3;
@@ -751,50 +759,51 @@ const Pane = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
751
759
  const sticky = t10 === void 0 ? false : t10;
752
760
  const offsetHeader = t11 === void 0 ? 0 : t11;
753
761
  const responsiveHidden = t12 === void 0 ? false : t12;
754
- let t13;
762
+ const dataComponent = t13 === void 0 ? "PageLayout.Pane" : t13;
763
+ let t14;
755
764
  if ($[0] !== positionWhenNarrow || $[1] !== responsivePosition) {
756
- t13 = !isResponsiveValue(responsivePosition) && positionWhenNarrow !== "inherit" ? {
765
+ t14 = !isResponsiveValue(responsivePosition) && positionWhenNarrow !== "inherit" ? {
757
766
  regular: responsivePosition,
758
767
  narrow: positionWhenNarrow
759
768
  } : responsivePosition;
760
769
  $[0] = positionWhenNarrow;
761
770
  $[1] = responsivePosition;
762
- $[2] = t13;
763
- } else t13 = $[2];
764
- const positionProp = t13;
765
- let t14;
771
+ $[2] = t14;
772
+ } else t14 = $[2];
773
+ const positionProp = t14;
774
+ let t15;
766
775
  if ($[3] !== dividerWhenNarrow || $[4] !== responsiveDivider) {
767
- t14 = !isResponsiveValue(responsiveDivider) && dividerWhenNarrow !== "inherit" ? {
776
+ t15 = !isResponsiveValue(responsiveDivider) && dividerWhenNarrow !== "inherit" ? {
768
777
  regular: responsiveDivider,
769
778
  narrow: dividerWhenNarrow
770
779
  } : responsiveDivider;
771
780
  $[3] = dividerWhenNarrow;
772
781
  $[4] = responsiveDivider;
773
- $[5] = t14;
774
- } else t14 = $[5];
775
- const dividerProp = t14;
776
- let t15;
782
+ $[5] = t15;
783
+ } else t15 = $[5];
784
+ const dividerProp = t15;
785
+ let t16;
777
786
  if ($[6] !== positionProp) {
778
- t15 = isResponsiveValue(positionProp) ? "end" : positionProp;
787
+ t16 = isResponsiveValue(positionProp) ? "end" : positionProp;
779
788
  $[6] = positionProp;
780
- $[7] = t15;
781
- } else t15 = $[7];
782
- const position = t15;
783
- let t16;
789
+ $[7] = t16;
790
+ } else t16 = $[7];
791
+ const position = t16;
792
+ let t17;
784
793
  if ($[8] !== dividerProp) {
785
- t16 = isResponsiveValue(dividerProp) ? "none" : dividerProp;
794
+ t17 = isResponsiveValue(dividerProp) ? "none" : dividerProp;
786
795
  $[8] = dividerProp;
787
- $[9] = t16;
788
- } else t16 = $[9];
789
- const dividerVariant = t16;
796
+ $[9] = t17;
797
+ } else t17 = $[9];
798
+ const dividerVariant = t17;
790
799
  const { rowGap, columnGap, paneRef, contentWrapperRef } = React.useContext(PageLayoutContext);
791
800
  const handleRef = React.useRef(null);
792
801
  const dragStartClientXRef = React.useRef(0);
793
802
  const dragStartWidthRef = React.useRef(0);
794
803
  const dragMaxWidthRef = React.useRef(0);
795
- let t17;
804
+ let t18;
796
805
  if ($[10] !== contentWrapperRef || $[11] !== controlledWidth || $[12] !== minWidth || $[13] !== onResizeEnd || $[14] !== paneRef || $[15] !== resizable || $[16] !== width || $[17] !== widthStorageKey) {
797
- t17 = {
806
+ t18 = {
798
807
  width,
799
808
  minWidth,
800
809
  resizable,
@@ -813,9 +822,9 @@ const Pane = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
813
822
  $[15] = resizable;
814
823
  $[16] = width;
815
824
  $[17] = widthStorageKey;
816
- $[18] = t17;
817
- } else t17 = $[18];
818
- const { currentWidth, currentWidthRef, minPaneWidth, maxPaneWidth, getMaxPaneWidth, saveWidth, getDefaultWidth } = usePaneWidth(t17);
825
+ $[18] = t18;
826
+ } else t18 = $[18];
827
+ const { currentWidth, currentWidthRef, minPaneWidth, maxPaneWidth, getMaxPaneWidth, saveWidth, getDefaultWidth } = usePaneWidth(t18);
819
828
  const mergedPaneRef = useMergedRefs(forwardRef, paneRef);
820
829
  const hasOverflow = useOverflow(paneRef);
821
830
  const paneId = useId$1(id);
@@ -832,141 +841,142 @@ const Pane = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
832
841
  $[21] = labelledBy;
833
842
  $[22] = labelProp;
834
843
  } else labelProp = $[22];
835
- let t18;
844
+ let t19;
836
845
  if ($[23] !== className) {
837
- t18 = clsx(PageLayout_module_css_default.PaneWrapper, className);
846
+ t19 = clsx(PageLayout_module_css_default.PaneWrapper, className);
838
847
  $[23] = className;
839
- $[24] = t18;
840
- } else t18 = $[24];
841
- const t19 = typeof offsetHeader === "number" ? `${offsetHeader}px` : offsetHeader;
842
- const t20 = `var(--spacing-${rowGap})`;
843
- const t21 = `var(--spacing-${columnGap})`;
844
- let t22;
845
- if ($[25] !== style || $[26] !== t19 || $[27] !== t20 || $[28] !== t21) {
846
- t22 = {
847
- "--offset-header": t19,
848
- "--spacing-row": t20,
849
- "--spacing-column": t21,
848
+ $[24] = t19;
849
+ } else t19 = $[24];
850
+ const t20 = typeof offsetHeader === "number" ? `${offsetHeader}px` : offsetHeader;
851
+ const t21 = `var(--spacing-${rowGap})`;
852
+ const t22 = `var(--spacing-${columnGap})`;
853
+ let t23;
854
+ if ($[25] !== style || $[26] !== t20 || $[27] !== t21 || $[28] !== t22) {
855
+ t23 = {
856
+ "--offset-header": t20,
857
+ "--spacing-row": t21,
858
+ "--spacing-column": t22,
850
859
  ...style
851
860
  };
852
861
  $[25] = style;
853
- $[26] = t19;
854
- $[27] = t20;
855
- $[28] = t21;
856
- $[29] = t22;
857
- } else t22 = $[29];
858
- const t23 = t22;
859
- let t24;
862
+ $[26] = t20;
863
+ $[27] = t21;
864
+ $[28] = t22;
865
+ $[29] = t23;
866
+ } else t23 = $[29];
867
+ const t24 = t23;
868
+ let t25;
860
869
  if ($[30] !== responsiveHidden) {
861
- t24 = getResponsiveAttributes("is-hidden", responsiveHidden);
870
+ t25 = getResponsiveAttributes("is-hidden", responsiveHidden);
862
871
  $[30] = responsiveHidden;
863
- $[31] = t24;
864
- } else t24 = $[31];
865
- let t25;
872
+ $[31] = t25;
873
+ } else t25 = $[31];
874
+ let t26;
866
875
  if ($[32] !== positionProp) {
867
- t25 = getResponsiveAttributes("position", positionProp);
876
+ t26 = getResponsiveAttributes("position", positionProp);
868
877
  $[32] = positionProp;
869
- $[33] = t25;
870
- } else t25 = $[33];
871
- const t26 = sticky || void 0;
872
- let t27;
878
+ $[33] = t26;
879
+ } else t26 = $[33];
880
+ const t27 = sticky || void 0;
881
+ let t28;
873
882
  if ($[34] !== dividerProp || $[35] !== dividerVariant) {
874
- t27 = isResponsiveValue(dividerProp) ? dividerProp : {
883
+ t28 = isResponsiveValue(dividerProp) ? dividerProp : {
875
884
  narrow: dividerVariant,
876
885
  regular: "none"
877
886
  };
878
887
  $[34] = dividerProp;
879
888
  $[35] = dividerVariant;
880
- $[36] = t27;
881
- } else t27 = $[36];
882
- const t28 = `var(--spacing-${rowGap})`;
883
- let t29;
884
- if ($[37] !== t28) {
885
- t29 = { "--spacing": t28 };
886
- $[37] = t28;
887
- $[38] = t29;
888
- } else t29 = $[38];
889
- const t30 = t29;
890
- let t31;
891
- if ($[39] !== positionProp || $[40] !== t27 || $[41] !== t30) {
892
- t31 = /*#__PURE__*/ jsx(HorizontalDivider, {
893
- variant: t27,
889
+ $[36] = t28;
890
+ } else t28 = $[36];
891
+ const t29 = `var(--spacing-${rowGap})`;
892
+ let t30;
893
+ if ($[37] !== t29) {
894
+ t30 = { "--spacing": t29 };
895
+ $[37] = t29;
896
+ $[38] = t30;
897
+ } else t30 = $[38];
898
+ const t31 = t30;
899
+ let t32;
900
+ if ($[39] !== positionProp || $[40] !== t28 || $[41] !== t31) {
901
+ t32 = /*#__PURE__*/ jsx(HorizontalDivider, {
902
+ variant: t28,
894
903
  className: PageLayout_module_css_default.PaneHorizontalDivider,
895
- style: t30,
904
+ style: t31,
896
905
  position: positionProp
897
906
  });
898
907
  $[39] = positionProp;
899
- $[40] = t27;
900
- $[41] = t30;
901
- $[42] = t31;
902
- } else t31 = $[42];
903
- const t32 = resizable === true && !onResizeEnd;
904
- let t33;
908
+ $[40] = t28;
909
+ $[41] = t31;
910
+ $[42] = t32;
911
+ } else t32 = $[42];
912
+ const t33 = resizable === true && !onResizeEnd;
913
+ let t34;
905
914
  if ($[43] !== hasOverflow) {
906
- t33 = hasOverflow ? overflowProps : {};
915
+ t34 = hasOverflow ? overflowProps : {};
907
916
  $[43] = hasOverflow;
908
- $[44] = t33;
909
- } else t33 = $[44];
910
- let t34;
917
+ $[44] = t34;
918
+ } else t34 = $[44];
919
+ let t35;
911
920
  if ($[45] !== id || $[46] !== paneId) {
912
- t34 = id && { id: paneId };
921
+ t35 = id && { id: paneId };
913
922
  $[45] = id;
914
923
  $[46] = paneId;
915
- $[47] = t34;
916
- } else t34 = $[47];
917
- const t35 = resizable || void 0;
918
- const t36 = `var(--spacing-${padding})`;
919
- const t37 = isCustomWidthOptions(width) ? width.min : `${minWidth}px`;
920
- const t38 = isCustomWidthOptions(width) ? width.max : "calc(100vw - var(--pane-max-width-diff))";
921
- const t39 = isCustomWidthOptions(width) ? width.default : void 0;
922
- const t40 = `var(--pane-width-${isPaneWidth(width) ? width : "custom"})`;
923
- const t41 = `${currentWidth}px`;
924
- let t42;
925
- if ($[48] !== t36 || $[49] !== t37 || $[50] !== t38 || $[51] !== t39 || $[52] !== t40 || $[53] !== t41) {
926
- t42 = {
927
- "--spacing": t36,
928
- "--pane-min-width": t37,
929
- "--pane-max-width": t38,
930
- "--pane-width-custom": t39,
931
- "--pane-width-size": t40,
932
- "--pane-width": t41
924
+ $[47] = t35;
925
+ } else t35 = $[47];
926
+ const t36 = resizable || void 0;
927
+ const t37 = `var(--spacing-${padding})`;
928
+ const t38 = isCustomWidthOptions(width) ? width.min : `${minWidth}px`;
929
+ const t39 = isCustomWidthOptions(width) ? width.max : "calc(100vw - var(--pane-max-width-diff))";
930
+ const t40 = isCustomWidthOptions(width) ? width.default : void 0;
931
+ const t41 = `var(--pane-width-${isPaneWidth(width) ? width : "custom"})`;
932
+ const t42 = `${currentWidth}px`;
933
+ let t43;
934
+ if ($[48] !== t37 || $[49] !== t38 || $[50] !== t39 || $[51] !== t40 || $[52] !== t41 || $[53] !== t42) {
935
+ t43 = {
936
+ "--spacing": t37,
937
+ "--pane-min-width": t38,
938
+ "--pane-max-width": t39,
939
+ "--pane-width-custom": t40,
940
+ "--pane-width-size": t41,
941
+ "--pane-width": t42
933
942
  };
934
- $[48] = t36;
935
- $[49] = t37;
936
- $[50] = t38;
937
- $[51] = t39;
938
- $[52] = t40;
939
- $[53] = t41;
940
- $[54] = t42;
941
- } else t42 = $[54];
942
- const t43 = t42;
943
- let t44;
944
- if ($[55] !== children || $[56] !== labelProp || $[57] !== mergedPaneRef || $[58] !== t32 || $[59] !== t33 || $[60] !== t34 || $[61] !== t35 || $[62] !== t43) {
945
- t44 = /*#__PURE__*/ jsx("div", {
943
+ $[48] = t37;
944
+ $[49] = t38;
945
+ $[50] = t39;
946
+ $[51] = t40;
947
+ $[52] = t41;
948
+ $[53] = t42;
949
+ $[54] = t43;
950
+ } else t43 = $[54];
951
+ const t44 = t43;
952
+ let t45;
953
+ if ($[55] !== children || $[56] !== dataComponent || $[57] !== labelProp || $[58] !== mergedPaneRef || $[59] !== t33 || $[60] !== t34 || $[61] !== t35 || $[62] !== t36 || $[63] !== t44) {
954
+ t45 = /*#__PURE__*/ jsx("div", {
946
955
  ref: mergedPaneRef,
947
- suppressHydrationWarning: t32,
948
- ...t33,
949
- ...labelProp,
956
+ suppressHydrationWarning: t33,
950
957
  ...t34,
958
+ ...labelProp,
959
+ ...t35,
951
960
  className: PageLayout_module_css_default.Pane,
952
- "data-component": "PageLayout.Pane",
953
- "data-resizable": t35,
954
- style: t43,
961
+ "data-component": dataComponent,
962
+ "data-resizable": t36,
963
+ style: t44,
955
964
  children
956
965
  });
957
966
  $[55] = children;
958
- $[56] = labelProp;
959
- $[57] = mergedPaneRef;
960
- $[58] = t32;
967
+ $[56] = dataComponent;
968
+ $[57] = labelProp;
969
+ $[58] = mergedPaneRef;
961
970
  $[59] = t33;
962
971
  $[60] = t34;
963
972
  $[61] = t35;
964
- $[62] = t43;
973
+ $[62] = t36;
965
974
  $[63] = t44;
966
- } else t44 = $[63];
967
- let t45;
968
- if ($[64] !== dividerProp || $[65] !== dividerVariant || $[66] !== resizable) {
969
- t45 = isResponsiveValue(dividerProp) ? {
975
+ $[64] = t45;
976
+ } else t45 = $[64];
977
+ let t46;
978
+ if ($[65] !== dividerProp || $[66] !== dividerVariant || $[67] !== resizable) {
979
+ t46 = isResponsiveValue(dividerProp) ? {
970
980
  narrow: "none",
971
981
  regular: resizable ? "line" : dividerProp.regular || "none",
972
982
  wide: resizable ? "line" : dividerProp.wide || dividerProp.regular || "none"
@@ -974,22 +984,22 @@ const Pane = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
974
984
  narrow: "none",
975
985
  regular: resizable ? "line" : dividerVariant
976
986
  };
977
- $[64] = dividerProp;
978
- $[65] = dividerVariant;
979
- $[66] = resizable;
980
- $[67] = t45;
981
- } else t45 = $[67];
982
- const t46 = `var(--spacing-${columnGap})`;
983
- let t47;
984
- if ($[68] !== t46) {
985
- t47 = { "--spacing": t46 };
987
+ $[65] = dividerProp;
988
+ $[66] = dividerVariant;
989
+ $[67] = resizable;
986
990
  $[68] = t46;
991
+ } else t46 = $[68];
992
+ const t47 = `var(--spacing-${columnGap})`;
993
+ let t48;
994
+ if ($[69] !== t47) {
995
+ t48 = { "--spacing": t47 };
987
996
  $[69] = t47;
988
- } else t47 = $[69];
989
- const t48 = t47;
990
- let t49;
991
- if ($[70] !== currentWidth || $[71] !== currentWidthRef || $[72] !== getDefaultWidth || $[73] !== getMaxPaneWidth || $[74] !== maxPaneWidth || $[75] !== minPaneWidth || $[76] !== paneRef || $[77] !== position || $[78] !== resizable || $[79] !== saveWidth) {
992
- t49 = resizable ? /*#__PURE__*/ jsx(DragHandle, {
997
+ $[70] = t48;
998
+ } else t48 = $[70];
999
+ const t49 = t48;
1000
+ let t50;
1001
+ if ($[71] !== currentWidth || $[72] !== currentWidthRef || $[73] !== getDefaultWidth || $[74] !== getMaxPaneWidth || $[75] !== maxPaneWidth || $[76] !== minPaneWidth || $[77] !== paneRef || $[78] !== position || $[79] !== resizable || $[80] !== saveWidth) {
1002
+ t50 = resizable ? /*#__PURE__*/ jsx(DragHandle, {
993
1003
  handleRef,
994
1004
  "aria-valuemin": minPaneWidth,
995
1005
  "aria-valuemax": maxPaneWidth,
@@ -1042,65 +1052,65 @@ const Pane = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
1042
1052
  saveWidth(resetWidth);
1043
1053
  }
1044
1054
  }) : null;
1045
- $[70] = currentWidth;
1046
- $[71] = currentWidthRef;
1047
- $[72] = getDefaultWidth;
1048
- $[73] = getMaxPaneWidth;
1049
- $[74] = maxPaneWidth;
1050
- $[75] = minPaneWidth;
1051
- $[76] = paneRef;
1052
- $[77] = position;
1053
- $[78] = resizable;
1054
- $[79] = saveWidth;
1055
- $[80] = t49;
1056
- } else t49 = $[80];
1057
- let t50;
1058
- if ($[81] !== positionProp || $[82] !== resizable || $[83] !== t45 || $[84] !== t48 || $[85] !== t49) {
1059
- t50 = /*#__PURE__*/ jsx(VerticalDivider, {
1060
- variant: t45,
1055
+ $[71] = currentWidth;
1056
+ $[72] = currentWidthRef;
1057
+ $[73] = getDefaultWidth;
1058
+ $[74] = getMaxPaneWidth;
1059
+ $[75] = maxPaneWidth;
1060
+ $[76] = minPaneWidth;
1061
+ $[77] = paneRef;
1062
+ $[78] = position;
1063
+ $[79] = resizable;
1064
+ $[80] = saveWidth;
1065
+ $[81] = t50;
1066
+ } else t50 = $[81];
1067
+ let t51;
1068
+ if ($[82] !== positionProp || $[83] !== resizable || $[84] !== t46 || $[85] !== t49 || $[86] !== t50) {
1069
+ t51 = /*#__PURE__*/ jsx(VerticalDivider, {
1070
+ variant: t46,
1061
1071
  draggable: resizable,
1062
1072
  position: positionProp,
1063
1073
  className: PageLayout_module_css_default.PaneVerticalDivider,
1064
- style: t48,
1065
- children: t49
1074
+ style: t49,
1075
+ children: t50
1066
1076
  });
1067
- $[81] = positionProp;
1068
- $[82] = resizable;
1069
- $[83] = t45;
1070
- $[84] = t48;
1077
+ $[82] = positionProp;
1078
+ $[83] = resizable;
1079
+ $[84] = t46;
1071
1080
  $[85] = t49;
1072
1081
  $[86] = t50;
1073
- } else t50 = $[86];
1074
- let t51;
1075
- if ($[87] !== t18 || $[88] !== t23 || $[89] !== t24 || $[90] !== t25 || $[91] !== t26 || $[92] !== t31 || $[93] !== t44 || $[94] !== t50) {
1076
- t51 = /*#__PURE__*/ jsxs("div", {
1077
- className: t18,
1078
- style: t23,
1079
- ...t24,
1082
+ $[87] = t51;
1083
+ } else t51 = $[87];
1084
+ let t52;
1085
+ if ($[88] !== t19 || $[89] !== t24 || $[90] !== t25 || $[91] !== t26 || $[92] !== t27 || $[93] !== t32 || $[94] !== t45 || $[95] !== t51) {
1086
+ t52 = /*#__PURE__*/ jsxs("div", {
1087
+ className: t19,
1088
+ style: t24,
1080
1089
  ...t25,
1081
- "data-sticky": t26,
1090
+ ...t26,
1091
+ "data-sticky": t27,
1082
1092
  children: [
1083
- t31,
1084
- t44,
1085
- t50
1093
+ t32,
1094
+ t45,
1095
+ t51
1086
1096
  ]
1087
1097
  });
1088
- $[87] = t18;
1089
- $[88] = t23;
1098
+ $[88] = t19;
1090
1099
  $[89] = t24;
1091
1100
  $[90] = t25;
1092
1101
  $[91] = t26;
1093
- $[92] = t31;
1094
- $[93] = t44;
1095
- $[94] = t50;
1102
+ $[92] = t27;
1103
+ $[93] = t32;
1104
+ $[94] = t45;
1096
1105
  $[95] = t51;
1097
- } else t51 = $[95];
1098
- return t51;
1106
+ $[96] = t52;
1107
+ } else t52 = $[96];
1108
+ return t52;
1099
1109
  });
1100
1110
  Pane.displayName = "PageLayout.Pane";
1101
1111
  const Sidebar = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
1102
- const $ = c(75);
1103
- const { "aria-label": label, "aria-labelledby": labelledBy, position: t1, width: t2, minWidth: t3, currentWidth: controlledWidth, onResizeEnd, padding: t4, resizable: t5, widthStorageKey, divider: t6, sticky: t7, responsiveVariant: t8, hidden: t9, children, id, className, style } = t0;
1112
+ const $ = c(76);
1113
+ const { "aria-label": label, "aria-labelledby": labelledBy, position: t1, width: t2, minWidth: t3, currentWidth: controlledWidth, onResizeEnd, padding: t4, resizable: t5, widthStorageKey, divider: t6, sticky: t7, responsiveVariant: t8, hidden: t9, children, id, className, style, "data-component": t10 } = t0;
1104
1114
  const position = t1 === void 0 ? "start" : t1;
1105
1115
  const width = t2 === void 0 ? "medium" : t2;
1106
1116
  const minWidth = t3 === void 0 ? 256 : t3;
@@ -1110,14 +1120,15 @@ const Sidebar = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
1110
1120
  const sticky = t7 === void 0 ? false : t7;
1111
1121
  const responsiveVariant = t8 === void 0 ? "default" : t8;
1112
1122
  const responsiveHidden = t9 === void 0 ? false : t9;
1123
+ const dataComponent = t10 === void 0 ? "PageLayout.Sidebar" : t10;
1113
1124
  const { columnGap, sidebarRef, sidebarContentWrapperRef } = React.useContext(PageLayoutContext);
1114
1125
  const handleRef = React.useRef(null);
1115
1126
  const dragStartClientXRef = React.useRef(0);
1116
1127
  const dragStartWidthRef = React.useRef(0);
1117
1128
  const dragMaxWidthRef = React.useRef(0);
1118
- let t10;
1129
+ let t11;
1119
1130
  if ($[0] !== controlledWidth || $[1] !== minWidth || $[2] !== onResizeEnd || $[3] !== resizable || $[4] !== sidebarContentWrapperRef || $[5] !== sidebarRef || $[6] !== width || $[7] !== widthStorageKey) {
1120
- t10 = {
1131
+ t11 = {
1121
1132
  width,
1122
1133
  minWidth,
1123
1134
  resizable,
@@ -1137,9 +1148,9 @@ const Sidebar = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
1137
1148
  $[5] = sidebarRef;
1138
1149
  $[6] = width;
1139
1150
  $[7] = widthStorageKey;
1140
- $[8] = t10;
1141
- } else t10 = $[8];
1142
- const { currentWidth, currentWidthRef, minPaneWidth, maxPaneWidth, getMaxPaneWidth, saveWidth, getDefaultWidth } = usePaneWidth(t10);
1151
+ $[8] = t11;
1152
+ } else t11 = $[8];
1153
+ const { currentWidth, currentWidthRef, minPaneWidth, maxPaneWidth, getMaxPaneWidth, saveWidth, getDefaultWidth } = usePaneWidth(t11);
1143
1154
  const mergedSidebarRef = useMergedRefs(forwardRef, sidebarRef);
1144
1155
  const hasOverflow = useOverflow(sidebarRef);
1145
1156
  const sidebarId = useId$1(id);
@@ -1156,35 +1167,35 @@ const Sidebar = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
1156
1167
  $[11] = labelledBy;
1157
1168
  $[12] = labelProp;
1158
1169
  } else labelProp = $[12];
1159
- let t11;
1170
+ let t12;
1160
1171
  if ($[13] !== className) {
1161
- t11 = clsx(PageLayout_module_css_default.SidebarWrapper, className);
1172
+ t12 = clsx(PageLayout_module_css_default.SidebarWrapper, className);
1162
1173
  $[13] = className;
1163
- $[14] = t11;
1164
- } else t11 = $[14];
1165
- const t12 = `var(--spacing-${columnGap})`;
1166
- let t13;
1167
- if ($[15] !== style || $[16] !== t12) {
1168
- t13 = {
1169
- "--spacing-column": t12,
1174
+ $[14] = t12;
1175
+ } else t12 = $[14];
1176
+ const t13 = `var(--spacing-${columnGap})`;
1177
+ let t14;
1178
+ if ($[15] !== style || $[16] !== t13) {
1179
+ t14 = {
1180
+ "--spacing-column": t13,
1170
1181
  ...style
1171
1182
  };
1172
1183
  $[15] = style;
1173
- $[16] = t12;
1174
- $[17] = t13;
1175
- } else t13 = $[17];
1176
- const t14 = t13;
1177
- let t15;
1184
+ $[16] = t13;
1185
+ $[17] = t14;
1186
+ } else t14 = $[17];
1187
+ const t15 = t14;
1188
+ let t16;
1178
1189
  if ($[18] !== responsiveHidden) {
1179
- t15 = getResponsiveAttributes("is-hidden", responsiveHidden);
1190
+ t16 = getResponsiveAttributes("is-hidden", responsiveHidden);
1180
1191
  $[18] = responsiveHidden;
1181
- $[19] = t15;
1182
- } else t15 = $[19];
1183
- const t16 = sticky || void 0;
1184
- const t17 = responsiveVariant !== "default" ? responsiveVariant : void 0;
1185
- let t18;
1192
+ $[19] = t16;
1193
+ } else t16 = $[19];
1194
+ const t17 = sticky || void 0;
1195
+ const t18 = responsiveVariant !== "default" ? responsiveVariant : void 0;
1196
+ let t19;
1186
1197
  if ($[20] !== currentWidth || $[21] !== currentWidthRef || $[22] !== divider || $[23] !== getDefaultWidth || $[24] !== getMaxPaneWidth || $[25] !== maxPaneWidth || $[26] !== minPaneWidth || $[27] !== position || $[28] !== resizable || $[29] !== saveWidth || $[30] !== sidebarRef) {
1187
- t18 = position === "end" && /*#__PURE__*/ jsx(SidebarDivider, {
1198
+ t19 = position === "end" && /*#__PURE__*/ jsx(SidebarDivider, {
1188
1199
  position,
1189
1200
  divider,
1190
1201
  resizable,
@@ -1212,75 +1223,76 @@ const Sidebar = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
1212
1223
  $[28] = resizable;
1213
1224
  $[29] = saveWidth;
1214
1225
  $[30] = sidebarRef;
1215
- $[31] = t18;
1216
- } else t18 = $[31];
1217
- const t19 = resizable === true && !!widthStorageKey && !onResizeEnd;
1218
- let t20;
1226
+ $[31] = t19;
1227
+ } else t19 = $[31];
1228
+ const t20 = resizable === true && !!widthStorageKey && !onResizeEnd;
1229
+ let t21;
1219
1230
  if ($[32] !== hasOverflow) {
1220
- t20 = hasOverflow ? overflowProps : {};
1231
+ t21 = hasOverflow ? overflowProps : {};
1221
1232
  $[32] = hasOverflow;
1222
- $[33] = t20;
1223
- } else t20 = $[33];
1224
- let t21;
1233
+ $[33] = t21;
1234
+ } else t21 = $[33];
1235
+ let t22;
1225
1236
  if ($[34] !== id || $[35] !== sidebarId) {
1226
- t21 = id && { id: sidebarId };
1237
+ t22 = id && { id: sidebarId };
1227
1238
  $[34] = id;
1228
1239
  $[35] = sidebarId;
1229
- $[36] = t21;
1230
- } else t21 = $[36];
1231
- const t22 = resizable || void 0;
1232
- const t23 = `var(--spacing-${padding})`;
1233
- const t24 = isCustomWidthOptions(width) ? width.min : `${minWidth}px`;
1234
- const t25 = isCustomWidthOptions(width) ? width.max : "calc(100vw - var(--sidebar-max-width-diff))";
1235
- const t26 = isCustomWidthOptions(width) ? width.default : void 0;
1236
- const t27 = `var(--pane-width-${isPaneWidth(width) ? width : "custom"})`;
1237
- const t28 = `${currentWidth}px`;
1238
- let t29;
1239
- if ($[37] !== t23 || $[38] !== t24 || $[39] !== t25 || $[40] !== t26 || $[41] !== t27 || $[42] !== t28) {
1240
- t29 = {
1241
- "--spacing": t23,
1242
- "--pane-min-width": t24,
1243
- "--pane-max-width": t25,
1244
- "--pane-width-custom": t26,
1245
- "--pane-width-size": t27,
1246
- "--pane-width": t28
1240
+ $[36] = t22;
1241
+ } else t22 = $[36];
1242
+ const t23 = resizable || void 0;
1243
+ const t24 = `var(--spacing-${padding})`;
1244
+ const t25 = isCustomWidthOptions(width) ? width.min : `${minWidth}px`;
1245
+ const t26 = isCustomWidthOptions(width) ? width.max : "calc(100vw - var(--sidebar-max-width-diff))";
1246
+ const t27 = isCustomWidthOptions(width) ? width.default : void 0;
1247
+ const t28 = `var(--pane-width-${isPaneWidth(width) ? width : "custom"})`;
1248
+ const t29 = `${currentWidth}px`;
1249
+ let t30;
1250
+ if ($[37] !== t24 || $[38] !== t25 || $[39] !== t26 || $[40] !== t27 || $[41] !== t28 || $[42] !== t29) {
1251
+ t30 = {
1252
+ "--spacing": t24,
1253
+ "--pane-min-width": t25,
1254
+ "--pane-max-width": t26,
1255
+ "--pane-width-custom": t27,
1256
+ "--pane-width-size": t28,
1257
+ "--pane-width": t29
1247
1258
  };
1248
- $[37] = t23;
1249
- $[38] = t24;
1250
- $[39] = t25;
1251
- $[40] = t26;
1252
- $[41] = t27;
1253
- $[42] = t28;
1254
- $[43] = t29;
1255
- } else t29 = $[43];
1256
- const t30 = t29;
1257
- let t31;
1258
- if ($[44] !== children || $[45] !== labelProp || $[46] !== mergedSidebarRef || $[47] !== t19 || $[48] !== t20 || $[49] !== t21 || $[50] !== t22 || $[51] !== t30) {
1259
- t31 = /*#__PURE__*/ jsx("div", {
1259
+ $[37] = t24;
1260
+ $[38] = t25;
1261
+ $[39] = t26;
1262
+ $[40] = t27;
1263
+ $[41] = t28;
1264
+ $[42] = t29;
1265
+ $[43] = t30;
1266
+ } else t30 = $[43];
1267
+ const t31 = t30;
1268
+ let t32;
1269
+ if ($[44] !== children || $[45] !== dataComponent || $[46] !== labelProp || $[47] !== mergedSidebarRef || $[48] !== t20 || $[49] !== t21 || $[50] !== t22 || $[51] !== t23 || $[52] !== t31) {
1270
+ t32 = /*#__PURE__*/ jsx("div", {
1260
1271
  ref: mergedSidebarRef,
1261
- suppressHydrationWarning: t19,
1262
- ...t20,
1263
- ...labelProp,
1272
+ suppressHydrationWarning: t20,
1264
1273
  ...t21,
1274
+ ...labelProp,
1275
+ ...t22,
1265
1276
  className: PageLayout_module_css_default.Sidebar,
1266
- "data-component": "PageLayout.Sidebar",
1267
- "data-resizable": t22,
1268
- style: t30,
1277
+ "data-component": dataComponent,
1278
+ "data-resizable": t23,
1279
+ style: t31,
1269
1280
  children
1270
1281
  });
1271
1282
  $[44] = children;
1272
- $[45] = labelProp;
1273
- $[46] = mergedSidebarRef;
1274
- $[47] = t19;
1283
+ $[45] = dataComponent;
1284
+ $[46] = labelProp;
1285
+ $[47] = mergedSidebarRef;
1275
1286
  $[48] = t20;
1276
1287
  $[49] = t21;
1277
1288
  $[50] = t22;
1278
- $[51] = t30;
1289
+ $[51] = t23;
1279
1290
  $[52] = t31;
1280
- } else t31 = $[52];
1281
- let t32;
1282
- if ($[53] !== currentWidth || $[54] !== currentWidthRef || $[55] !== divider || $[56] !== getDefaultWidth || $[57] !== getMaxPaneWidth || $[58] !== maxPaneWidth || $[59] !== minPaneWidth || $[60] !== position || $[61] !== resizable || $[62] !== saveWidth || $[63] !== sidebarRef) {
1283
- t32 = position === "start" && /*#__PURE__*/ jsx(SidebarDivider, {
1291
+ $[53] = t32;
1292
+ } else t32 = $[53];
1293
+ let t33;
1294
+ if ($[54] !== currentWidth || $[55] !== currentWidthRef || $[56] !== divider || $[57] !== getDefaultWidth || $[58] !== getMaxPaneWidth || $[59] !== maxPaneWidth || $[60] !== minPaneWidth || $[61] !== position || $[62] !== resizable || $[63] !== saveWidth || $[64] !== sidebarRef) {
1295
+ t33 = position === "start" && /*#__PURE__*/ jsx(SidebarDivider, {
1284
1296
  position,
1285
1297
  divider,
1286
1298
  resizable,
@@ -1297,150 +1309,152 @@ const Sidebar = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
1297
1309
  getDefaultWidth,
1298
1310
  saveWidth
1299
1311
  });
1300
- $[53] = currentWidth;
1301
- $[54] = currentWidthRef;
1302
- $[55] = divider;
1303
- $[56] = getDefaultWidth;
1304
- $[57] = getMaxPaneWidth;
1305
- $[58] = maxPaneWidth;
1306
- $[59] = minPaneWidth;
1307
- $[60] = position;
1308
- $[61] = resizable;
1309
- $[62] = saveWidth;
1310
- $[63] = sidebarRef;
1311
- $[64] = t32;
1312
- } else t32 = $[64];
1313
- let t33;
1314
- if ($[65] !== position || $[66] !== t11 || $[67] !== t14 || $[68] !== t15 || $[69] !== t16 || $[70] !== t17 || $[71] !== t18 || $[72] !== t31 || $[73] !== t32) {
1315
- t33 = /*#__PURE__*/ jsxs("div", {
1316
- className: t11,
1317
- style: t14,
1318
- ...t15,
1312
+ $[54] = currentWidth;
1313
+ $[55] = currentWidthRef;
1314
+ $[56] = divider;
1315
+ $[57] = getDefaultWidth;
1316
+ $[58] = getMaxPaneWidth;
1317
+ $[59] = maxPaneWidth;
1318
+ $[60] = minPaneWidth;
1319
+ $[61] = position;
1320
+ $[62] = resizable;
1321
+ $[63] = saveWidth;
1322
+ $[64] = sidebarRef;
1323
+ $[65] = t33;
1324
+ } else t33 = $[65];
1325
+ let t34;
1326
+ if ($[66] !== position || $[67] !== t12 || $[68] !== t15 || $[69] !== t16 || $[70] !== t17 || $[71] !== t18 || $[72] !== t19 || $[73] !== t32 || $[74] !== t33) {
1327
+ t34 = /*#__PURE__*/ jsxs("div", {
1328
+ className: t12,
1329
+ style: t15,
1330
+ ...t16,
1319
1331
  "data-position": position,
1320
- "data-sticky": t16,
1321
- "data-responsive-variant": t17,
1332
+ "data-sticky": t17,
1333
+ "data-responsive-variant": t18,
1322
1334
  children: [
1323
- t18,
1324
- t31,
1325
- t32
1335
+ t19,
1336
+ t32,
1337
+ t33
1326
1338
  ]
1327
1339
  });
1328
- $[65] = position;
1329
- $[66] = t11;
1330
- $[67] = t14;
1340
+ $[66] = position;
1341
+ $[67] = t12;
1331
1342
  $[68] = t15;
1332
1343
  $[69] = t16;
1333
1344
  $[70] = t17;
1334
1345
  $[71] = t18;
1335
- $[72] = t31;
1346
+ $[72] = t19;
1336
1347
  $[73] = t32;
1337
1348
  $[74] = t33;
1338
- } else t33 = $[74];
1339
- return t33;
1349
+ $[75] = t34;
1350
+ } else t34 = $[75];
1351
+ return t34;
1340
1352
  });
1341
1353
  Sidebar.displayName = "PageLayout.Sidebar";
1342
1354
  const Footer = (t0) => {
1343
- const $ = c(28);
1344
- const { "aria-label": label, "aria-labelledby": labelledBy, padding: t1, divider: t2, dividerWhenNarrow: t3, hidden: t4, children, className, style } = t0;
1355
+ const $ = c(29);
1356
+ const { "aria-label": label, "aria-labelledby": labelledBy, padding: t1, divider: t2, dividerWhenNarrow: t3, hidden: t4, children, className, style, "data-component": t5 } = t0;
1345
1357
  const padding = t1 === void 0 ? "none" : t1;
1346
1358
  const divider = t2 === void 0 ? "none" : t2;
1347
1359
  const dividerWhenNarrow = t3 === void 0 ? "inherit" : t3;
1348
1360
  const hidden = t4 === void 0 ? false : t4;
1349
- let t5;
1361
+ const dataComponent = t5 === void 0 ? "PageLayout.Footer" : t5;
1362
+ let t6;
1350
1363
  if ($[0] !== divider || $[1] !== dividerWhenNarrow) {
1351
- t5 = !isResponsiveValue(divider) && dividerWhenNarrow !== "inherit" ? {
1364
+ t6 = !isResponsiveValue(divider) && dividerWhenNarrow !== "inherit" ? {
1352
1365
  regular: divider,
1353
1366
  narrow: dividerWhenNarrow
1354
1367
  } : divider;
1355
1368
  $[0] = divider;
1356
1369
  $[1] = dividerWhenNarrow;
1357
- $[2] = t5;
1358
- } else t5 = $[2];
1359
- const dividerProp = t5;
1370
+ $[2] = t6;
1371
+ } else t6 = $[2];
1372
+ const dividerProp = t6;
1360
1373
  const { rowGap } = React.useContext(PageLayoutContext);
1361
- let t6;
1374
+ let t7;
1362
1375
  if ($[3] !== hidden) {
1363
- t6 = getResponsiveAttributes("hidden", hidden);
1376
+ t7 = getResponsiveAttributes("hidden", hidden);
1364
1377
  $[3] = hidden;
1365
- $[4] = t6;
1366
- } else t6 = $[4];
1367
- let t7;
1378
+ $[4] = t7;
1379
+ } else t7 = $[4];
1380
+ let t8;
1368
1381
  if ($[5] !== className) {
1369
- t7 = clsx(PageLayout_module_css_default.FooterWrapper, className);
1382
+ t8 = clsx(PageLayout_module_css_default.FooterWrapper, className);
1370
1383
  $[5] = className;
1371
- $[6] = t7;
1372
- } else t7 = $[6];
1373
- const t8 = `var(--spacing-${rowGap})`;
1374
- let t9;
1375
- if ($[7] !== style || $[8] !== t8) {
1376
- t9 = {
1377
- "--spacing": t8,
1384
+ $[6] = t8;
1385
+ } else t8 = $[6];
1386
+ const t9 = `var(--spacing-${rowGap})`;
1387
+ let t10;
1388
+ if ($[7] !== style || $[8] !== t9) {
1389
+ t10 = {
1390
+ "--spacing": t9,
1378
1391
  ...style
1379
1392
  };
1380
1393
  $[7] = style;
1381
- $[8] = t8;
1382
- $[9] = t9;
1383
- } else t9 = $[9];
1384
- const t10 = t9;
1385
- const t11 = `var(--spacing-${rowGap})`;
1386
- let t12;
1387
- if ($[10] !== t11) {
1388
- t12 = { "--spacing": t11 };
1389
- $[10] = t11;
1390
- $[11] = t12;
1391
- } else t12 = $[11];
1392
- const t13 = t12;
1393
- let t14;
1394
- if ($[12] !== dividerProp || $[13] !== t13) {
1395
- t14 = /*#__PURE__*/ jsx(HorizontalDivider, {
1394
+ $[8] = t9;
1395
+ $[9] = t10;
1396
+ } else t10 = $[9];
1397
+ const t11 = t10;
1398
+ const t12 = `var(--spacing-${rowGap})`;
1399
+ let t13;
1400
+ if ($[10] !== t12) {
1401
+ t13 = { "--spacing": t12 };
1402
+ $[10] = t12;
1403
+ $[11] = t13;
1404
+ } else t13 = $[11];
1405
+ const t14 = t13;
1406
+ let t15;
1407
+ if ($[12] !== dividerProp || $[13] !== t14) {
1408
+ t15 = /*#__PURE__*/ jsx(HorizontalDivider, {
1396
1409
  className: PageLayout_module_css_default.FooterHorizontalDivider,
1397
- style: t13,
1410
+ style: t14,
1398
1411
  variant: dividerProp
1399
1412
  });
1400
1413
  $[12] = dividerProp;
1401
- $[13] = t13;
1402
- $[14] = t14;
1403
- } else t14 = $[14];
1404
- const t15 = `var(--spacing-${padding})`;
1405
- let t16;
1406
- if ($[15] !== t15) {
1407
- t16 = { "--spacing": t15 };
1408
- $[15] = t15;
1409
- $[16] = t16;
1410
- } else t16 = $[16];
1411
- const t17 = t16;
1412
- let t18;
1413
- if ($[17] !== children || $[18] !== t17) {
1414
- t18 = /*#__PURE__*/ jsx("div", {
1414
+ $[13] = t14;
1415
+ $[14] = t15;
1416
+ } else t15 = $[14];
1417
+ const t16 = `var(--spacing-${padding})`;
1418
+ let t17;
1419
+ if ($[15] !== t16) {
1420
+ t17 = { "--spacing": t16 };
1421
+ $[15] = t16;
1422
+ $[16] = t17;
1423
+ } else t17 = $[16];
1424
+ const t18 = t17;
1425
+ let t19;
1426
+ if ($[17] !== children || $[18] !== t18) {
1427
+ t19 = /*#__PURE__*/ jsx("div", {
1415
1428
  className: PageLayout_module_css_default.FooterContent,
1416
- style: t17,
1429
+ style: t18,
1417
1430
  children
1418
1431
  });
1419
1432
  $[17] = children;
1420
- $[18] = t17;
1421
- $[19] = t18;
1422
- } else t18 = $[19];
1423
- let t19;
1424
- if ($[20] !== label || $[21] !== labelledBy || $[22] !== t10 || $[23] !== t14 || $[24] !== t18 || $[25] !== t6 || $[26] !== t7) {
1425
- t19 = /*#__PURE__*/ jsxs("footer", {
1433
+ $[18] = t18;
1434
+ $[19] = t19;
1435
+ } else t19 = $[19];
1436
+ let t20;
1437
+ if ($[20] !== dataComponent || $[21] !== label || $[22] !== labelledBy || $[23] !== t11 || $[24] !== t15 || $[25] !== t19 || $[26] !== t7 || $[27] !== t8) {
1438
+ t20 = /*#__PURE__*/ jsxs("footer", {
1426
1439
  "aria-label": label,
1427
1440
  "aria-labelledby": labelledBy,
1428
- "data-component": "PageLayout.Footer",
1429
- ...t6,
1430
- className: t7,
1431
- style: t10,
1432
- children: [t14, t18]
1441
+ "data-component": dataComponent,
1442
+ ...t7,
1443
+ className: t8,
1444
+ style: t11,
1445
+ children: [t15, t19]
1433
1446
  });
1434
- $[20] = label;
1435
- $[21] = labelledBy;
1436
- $[22] = t10;
1437
- $[23] = t14;
1438
- $[24] = t18;
1439
- $[25] = t6;
1447
+ $[20] = dataComponent;
1448
+ $[21] = label;
1449
+ $[22] = labelledBy;
1450
+ $[23] = t11;
1451
+ $[24] = t15;
1452
+ $[25] = t19;
1440
1453
  $[26] = t7;
1441
- $[27] = t19;
1442
- } else t19 = $[27];
1443
- return t19;
1454
+ $[27] = t8;
1455
+ $[28] = t20;
1456
+ } else t20 = $[28];
1457
+ return t20;
1444
1458
  };
1445
1459
  Footer.displayName = "PageLayout.Footer";
1446
1460
  const PageLayout = Object.assign(Root, {