@primer/react 38.31.1-rc.db2c6d5fe → 38.32.0-rc.07044f1e1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -1
- package/dist/ActionList/{ActionList-65f7daac.css → ActionList-1ff5220c.css} +2 -2
- package/dist/ActionList/ActionList-1ff5220c.css.map +1 -0
- package/dist/ActionList/ActionList.module.css.js +1 -1
- package/dist/Breadcrumbs/{Breadcrumbs-54395fc6.css → Breadcrumbs-16d81430.css} +2 -2
- package/dist/Breadcrumbs/{Breadcrumbs-54395fc6.css.map → Breadcrumbs-16d81430.css.map} +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.js +1 -0
- package/dist/Breadcrumbs/Breadcrumbs.module.css.js +2 -2
- package/dist/PageHeader/PageHeader-b12247c8.css +2 -0
- package/dist/PageHeader/PageHeader-b12247c8.css.map +1 -0
- package/dist/PageHeader/PageHeader.js +64 -23
- package/dist/PageHeader/PageHeader.module.css.js +1 -1
- package/dist/PageLayout/PageLayout.d.ts +6 -0
- package/dist/PageLayout/PageLayout.js +549 -535
- package/dist/SegmentedControl/SegmentedControl-a004561f.css +2 -0
- package/dist/SegmentedControl/SegmentedControl-a004561f.css.map +1 -0
- package/dist/SegmentedControl/SegmentedControl.module.css.js +1 -1
- package/dist/SplitPageLayout/SplitPageLayout.js +11 -0
- package/dist/Stack/Stack.js +2 -0
- package/dist/StateLabel/StateLabel.js +1 -0
- package/dist/SubNav/SubNav.js +3 -0
- package/dist/TabNav/TabNav.js +3 -1
- package/dist/Text/Text.js +1 -0
- package/dist/Textarea/Textarea.js +1 -0
- package/dist/ThemeProvider.js +1 -0
- package/dist/ToggleSwitch/ToggleSwitch.js +167 -186
- package/dist/experimental/SelectPanel2/SelectPanel-917fdaef.css +2 -0
- package/dist/experimental/SelectPanel2/{SelectPanel-608e207e.css.map → SelectPanel-917fdaef.css.map} +1 -1
- package/dist/experimental/SelectPanel2/SelectPanel.module.css.js +1 -1
- package/dist/hooks/useMedia.js +44 -43
- package/package.json +3 -3
- package/dist/ActionList/ActionList-65f7daac.css.map +0 -1
- package/dist/PageHeader/PageHeader-5e969745.css +0 -2
- package/dist/PageHeader/PageHeader-5e969745.css.map +0 -1
- package/dist/SegmentedControl/SegmentedControl-622e61a4.css +0 -2
- package/dist/SegmentedControl/SegmentedControl-622e61a4.css.map +0 -1
- 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(
|
|
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
|
|
39
|
+
let t6;
|
|
39
40
|
if ($[0] !== slotsConfig) {
|
|
40
|
-
|
|
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] =
|
|
47
|
-
} else
|
|
48
|
-
const [slots, rest] = useSlots(children,
|
|
49
|
-
let
|
|
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
|
-
|
|
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] =
|
|
64
|
-
} else
|
|
65
|
-
const memoizedContextValue =
|
|
66
|
-
const
|
|
67
|
-
const
|
|
68
|
-
const
|
|
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
|
-
|
|
77
|
-
className:
|
|
77
|
+
t12 = /*#__PURE__*/ jsx("div", {
|
|
78
|
+
className: t11,
|
|
78
79
|
children: rest
|
|
79
80
|
});
|
|
80
81
|
$[7] = rest;
|
|
81
|
-
$[8] =
|
|
82
|
-
} else
|
|
83
|
-
let
|
|
84
|
-
if ($[9] !== containerWidth || $[10] !== slots.footer || $[11] !== slots.header || $[12] !==
|
|
85
|
-
|
|
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
|
-
|
|
91
|
-
|
|
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] =
|
|
99
|
-
$[13] =
|
|
100
|
-
} else
|
|
101
|
-
let
|
|
102
|
-
if ($[14] !== className || $[15] !==
|
|
103
|
-
|
|
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:
|
|
108
|
-
|
|
108
|
+
hasSidebar: t8,
|
|
109
|
+
dataComponent,
|
|
110
|
+
children: [t9, t13]
|
|
109
111
|
});
|
|
110
112
|
$[14] = className;
|
|
111
|
-
$[15] =
|
|
112
|
-
$[16] =
|
|
113
|
-
$[17] =
|
|
114
|
-
$[18] =
|
|
115
|
-
$[19] =
|
|
116
|
-
$[20] =
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
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:
|
|
125
|
+
children: t14
|
|
123
126
|
});
|
|
124
|
-
$[
|
|
125
|
-
$[22] = t13;
|
|
127
|
+
$[22] = memoizedContextValue;
|
|
126
128
|
$[23] = t14;
|
|
127
|
-
|
|
128
|
-
|
|
129
|
+
$[24] = t15;
|
|
130
|
+
} else t15 = $[24];
|
|
131
|
+
return t15;
|
|
129
132
|
};
|
|
130
133
|
const RootWrapper = /*#__PURE__*/ memo((t0) => {
|
|
131
|
-
const $ = c(
|
|
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] !==
|
|
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":
|
|
160
|
+
"data-component": dataComponent,
|
|
158
161
|
"data-has-sidebar": t5,
|
|
159
162
|
children
|
|
160
163
|
});
|
|
161
164
|
$[5] = children;
|
|
162
|
-
$[6] =
|
|
163
|
-
$[7] =
|
|
164
|
-
$[8] =
|
|
165
|
-
$[9] =
|
|
166
|
-
|
|
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(
|
|
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
|
-
|
|
575
|
+
const dataComponent = t5 === void 0 ? "PageLayout.Header" : t5;
|
|
576
|
+
let t6;
|
|
572
577
|
if ($[0] !== divider || $[1] !== dividerWhenNarrow) {
|
|
573
|
-
|
|
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] =
|
|
580
|
-
} else
|
|
581
|
-
const dividerProp =
|
|
584
|
+
$[2] = t6;
|
|
585
|
+
} else t6 = $[2];
|
|
586
|
+
const dividerProp = t6;
|
|
582
587
|
const { rowGap } = React.useContext(PageLayoutContext);
|
|
583
|
-
let
|
|
588
|
+
let t7;
|
|
584
589
|
if ($[3] !== hidden) {
|
|
585
|
-
|
|
590
|
+
t7 = getResponsiveAttributes("hidden", hidden);
|
|
586
591
|
$[3] = hidden;
|
|
587
|
-
$[4] =
|
|
588
|
-
} else
|
|
589
|
-
let
|
|
592
|
+
$[4] = t7;
|
|
593
|
+
} else t7 = $[4];
|
|
594
|
+
let t8;
|
|
590
595
|
if ($[5] !== className) {
|
|
591
|
-
|
|
596
|
+
t8 = clsx(PageLayout_module_css_default.Header, className);
|
|
592
597
|
$[5] = className;
|
|
593
|
-
$[6] =
|
|
594
|
-
} else
|
|
595
|
-
const
|
|
596
|
-
let
|
|
597
|
-
if ($[7] !== style || $[8] !==
|
|
598
|
-
|
|
599
|
-
"--spacing":
|
|
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] =
|
|
604
|
-
$[9] =
|
|
605
|
-
} else
|
|
606
|
-
const
|
|
607
|
-
const
|
|
608
|
-
let
|
|
609
|
-
if ($[10] !==
|
|
610
|
-
|
|
611
|
-
$[10] =
|
|
612
|
-
$[11] =
|
|
613
|
-
} else
|
|
614
|
-
const
|
|
615
|
-
let
|
|
616
|
-
if ($[12] !== children || $[13] !==
|
|
617
|
-
|
|
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:
|
|
624
|
+
style: t14,
|
|
620
625
|
children
|
|
621
626
|
});
|
|
622
627
|
$[12] = children;
|
|
623
|
-
$[13] =
|
|
624
|
-
$[14] =
|
|
625
|
-
} else
|
|
626
|
-
const
|
|
627
|
-
let
|
|
628
|
-
if ($[15] !==
|
|
629
|
-
|
|
630
|
-
$[15] =
|
|
631
|
-
$[16] =
|
|
632
|
-
} else
|
|
633
|
-
const
|
|
634
|
-
let
|
|
635
|
-
if ($[17] !== dividerProp || $[18] !==
|
|
636
|
-
|
|
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:
|
|
644
|
+
style: t18
|
|
640
645
|
});
|
|
641
646
|
$[17] = dividerProp;
|
|
642
|
-
$[18] =
|
|
643
|
-
$[19] =
|
|
644
|
-
} else
|
|
645
|
-
let
|
|
646
|
-
if ($[20] !==
|
|
647
|
-
|
|
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":
|
|
651
|
-
...
|
|
652
|
-
className:
|
|
653
|
-
style:
|
|
654
|
-
children: [
|
|
655
|
+
"data-component": dataComponent,
|
|
656
|
+
...t7,
|
|
657
|
+
className: t8,
|
|
658
|
+
style: t11,
|
|
659
|
+
children: [t15, t19]
|
|
655
660
|
});
|
|
656
|
-
$[20] =
|
|
657
|
-
$[21] =
|
|
658
|
-
$[22] =
|
|
659
|
-
$[23] =
|
|
660
|
-
$[24] =
|
|
661
|
-
$[25] =
|
|
661
|
+
$[20] = dataComponent;
|
|
662
|
+
$[21] = label;
|
|
663
|
+
$[22] = labelledBy;
|
|
664
|
+
$[23] = t11;
|
|
665
|
+
$[24] = t15;
|
|
666
|
+
$[25] = t19;
|
|
662
667
|
$[26] = t7;
|
|
663
|
-
$[27] =
|
|
664
|
-
|
|
665
|
-
|
|
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(
|
|
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
|
|
684
|
+
let t6;
|
|
678
685
|
if ($[0] !== className) {
|
|
679
|
-
|
|
686
|
+
t6 = clsx(PageLayout_module_css_default.ContentWrapper, className);
|
|
680
687
|
$[0] = className;
|
|
681
|
-
$[1] =
|
|
682
|
-
} else
|
|
683
|
-
let
|
|
688
|
+
$[1] = t6;
|
|
689
|
+
} else t6 = $[1];
|
|
690
|
+
let t7;
|
|
684
691
|
if ($[2] !== hidden) {
|
|
685
|
-
|
|
692
|
+
t7 = getResponsiveAttributes("is-hidden", hidden);
|
|
686
693
|
$[2] = hidden;
|
|
687
|
-
$[3] =
|
|
688
|
-
} else
|
|
689
|
-
const
|
|
690
|
-
let
|
|
691
|
-
if ($[4] !==
|
|
692
|
-
|
|
693
|
-
$[4] =
|
|
694
|
-
$[5] =
|
|
695
|
-
} else
|
|
696
|
-
const
|
|
697
|
-
let
|
|
698
|
-
if ($[6] !== children || $[7] !==
|
|
699
|
-
|
|
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:
|
|
709
|
+
style: t10,
|
|
703
710
|
children
|
|
704
711
|
});
|
|
705
712
|
$[6] = children;
|
|
706
|
-
$[7] =
|
|
713
|
+
$[7] = t10;
|
|
707
714
|
$[8] = width;
|
|
708
|
-
$[9] =
|
|
709
|
-
} else
|
|
710
|
-
let
|
|
711
|
-
if ($[10] !== Component || $[11] !== contentWrapperRef || $[12] !==
|
|
712
|
-
|
|
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":
|
|
723
|
+
"data-component": dataComponent,
|
|
717
724
|
style,
|
|
718
|
-
className:
|
|
719
|
-
...
|
|
720
|
-
children:
|
|
725
|
+
className: t6,
|
|
726
|
+
...t7,
|
|
727
|
+
children: t11
|
|
721
728
|
});
|
|
722
729
|
$[10] = Component;
|
|
723
730
|
$[11] = contentWrapperRef;
|
|
724
|
-
$[12] =
|
|
725
|
-
$[13] =
|
|
726
|
-
$[14] =
|
|
727
|
-
$[15] =
|
|
728
|
-
$[16] =
|
|
731
|
+
$[12] = dataComponent;
|
|
732
|
+
$[13] = label;
|
|
733
|
+
$[14] = labelledBy;
|
|
734
|
+
$[15] = style;
|
|
735
|
+
$[16] = t11;
|
|
729
736
|
$[17] = t6;
|
|
730
|
-
$[18] =
|
|
731
|
-
|
|
732
|
-
|
|
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(
|
|
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
|
-
|
|
762
|
+
const dataComponent = t13 === void 0 ? "PageLayout.Pane" : t13;
|
|
763
|
+
let t14;
|
|
755
764
|
if ($[0] !== positionWhenNarrow || $[1] !== responsivePosition) {
|
|
756
|
-
|
|
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] =
|
|
763
|
-
} else
|
|
764
|
-
const positionProp =
|
|
765
|
-
let
|
|
771
|
+
$[2] = t14;
|
|
772
|
+
} else t14 = $[2];
|
|
773
|
+
const positionProp = t14;
|
|
774
|
+
let t15;
|
|
766
775
|
if ($[3] !== dividerWhenNarrow || $[4] !== responsiveDivider) {
|
|
767
|
-
|
|
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] =
|
|
774
|
-
} else
|
|
775
|
-
const dividerProp =
|
|
776
|
-
let
|
|
782
|
+
$[5] = t15;
|
|
783
|
+
} else t15 = $[5];
|
|
784
|
+
const dividerProp = t15;
|
|
785
|
+
let t16;
|
|
777
786
|
if ($[6] !== positionProp) {
|
|
778
|
-
|
|
787
|
+
t16 = isResponsiveValue(positionProp) ? "end" : positionProp;
|
|
779
788
|
$[6] = positionProp;
|
|
780
|
-
$[7] =
|
|
781
|
-
} else
|
|
782
|
-
const position =
|
|
783
|
-
let
|
|
789
|
+
$[7] = t16;
|
|
790
|
+
} else t16 = $[7];
|
|
791
|
+
const position = t16;
|
|
792
|
+
let t17;
|
|
784
793
|
if ($[8] !== dividerProp) {
|
|
785
|
-
|
|
794
|
+
t17 = isResponsiveValue(dividerProp) ? "none" : dividerProp;
|
|
786
795
|
$[8] = dividerProp;
|
|
787
|
-
$[9] =
|
|
788
|
-
} else
|
|
789
|
-
const dividerVariant =
|
|
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
|
|
804
|
+
let t18;
|
|
796
805
|
if ($[10] !== contentWrapperRef || $[11] !== controlledWidth || $[12] !== minWidth || $[13] !== onResizeEnd || $[14] !== paneRef || $[15] !== resizable || $[16] !== width || $[17] !== widthStorageKey) {
|
|
797
|
-
|
|
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] =
|
|
817
|
-
} else
|
|
818
|
-
const { currentWidth, currentWidthRef, minPaneWidth, maxPaneWidth, getMaxPaneWidth, saveWidth, getDefaultWidth } = usePaneWidth(
|
|
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
|
|
844
|
+
let t19;
|
|
836
845
|
if ($[23] !== className) {
|
|
837
|
-
|
|
846
|
+
t19 = clsx(PageLayout_module_css_default.PaneWrapper, className);
|
|
838
847
|
$[23] = className;
|
|
839
|
-
$[24] =
|
|
840
|
-
} else
|
|
841
|
-
const
|
|
842
|
-
const
|
|
843
|
-
const
|
|
844
|
-
let
|
|
845
|
-
if ($[25] !== style || $[26] !==
|
|
846
|
-
|
|
847
|
-
"--offset-header":
|
|
848
|
-
"--spacing-row":
|
|
849
|
-
"--spacing-column":
|
|
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] =
|
|
854
|
-
$[27] =
|
|
855
|
-
$[28] =
|
|
856
|
-
$[29] =
|
|
857
|
-
} else
|
|
858
|
-
const
|
|
859
|
-
let
|
|
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
|
-
|
|
870
|
+
t25 = getResponsiveAttributes("is-hidden", responsiveHidden);
|
|
862
871
|
$[30] = responsiveHidden;
|
|
863
|
-
$[31] =
|
|
864
|
-
} else
|
|
865
|
-
let
|
|
872
|
+
$[31] = t25;
|
|
873
|
+
} else t25 = $[31];
|
|
874
|
+
let t26;
|
|
866
875
|
if ($[32] !== positionProp) {
|
|
867
|
-
|
|
876
|
+
t26 = getResponsiveAttributes("position", positionProp);
|
|
868
877
|
$[32] = positionProp;
|
|
869
|
-
$[33] =
|
|
870
|
-
} else
|
|
871
|
-
const
|
|
872
|
-
let
|
|
878
|
+
$[33] = t26;
|
|
879
|
+
} else t26 = $[33];
|
|
880
|
+
const t27 = sticky || void 0;
|
|
881
|
+
let t28;
|
|
873
882
|
if ($[34] !== dividerProp || $[35] !== dividerVariant) {
|
|
874
|
-
|
|
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] =
|
|
881
|
-
} else
|
|
882
|
-
const
|
|
883
|
-
let
|
|
884
|
-
if ($[37] !==
|
|
885
|
-
|
|
886
|
-
$[37] =
|
|
887
|
-
$[38] =
|
|
888
|
-
} else
|
|
889
|
-
const
|
|
890
|
-
let
|
|
891
|
-
if ($[39] !== positionProp || $[40] !==
|
|
892
|
-
|
|
893
|
-
variant:
|
|
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:
|
|
904
|
+
style: t31,
|
|
896
905
|
position: positionProp
|
|
897
906
|
});
|
|
898
907
|
$[39] = positionProp;
|
|
899
|
-
$[40] =
|
|
900
|
-
$[41] =
|
|
901
|
-
$[42] =
|
|
902
|
-
} else
|
|
903
|
-
const
|
|
904
|
-
let
|
|
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
|
-
|
|
915
|
+
t34 = hasOverflow ? overflowProps : {};
|
|
907
916
|
$[43] = hasOverflow;
|
|
908
|
-
$[44] =
|
|
909
|
-
} else
|
|
910
|
-
let
|
|
917
|
+
$[44] = t34;
|
|
918
|
+
} else t34 = $[44];
|
|
919
|
+
let t35;
|
|
911
920
|
if ($[45] !== id || $[46] !== paneId) {
|
|
912
|
-
|
|
921
|
+
t35 = id && { id: paneId };
|
|
913
922
|
$[45] = id;
|
|
914
923
|
$[46] = paneId;
|
|
915
|
-
$[47] =
|
|
916
|
-
} else
|
|
917
|
-
const
|
|
918
|
-
const
|
|
919
|
-
const
|
|
920
|
-
const
|
|
921
|
-
const
|
|
922
|
-
const
|
|
923
|
-
const
|
|
924
|
-
let
|
|
925
|
-
if ($[48] !==
|
|
926
|
-
|
|
927
|
-
"--spacing":
|
|
928
|
-
"--pane-min-width":
|
|
929
|
-
"--pane-max-width":
|
|
930
|
-
"--pane-width-custom":
|
|
931
|
-
"--pane-width-size":
|
|
932
|
-
"--pane-width":
|
|
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] =
|
|
935
|
-
$[49] =
|
|
936
|
-
$[50] =
|
|
937
|
-
$[51] =
|
|
938
|
-
$[52] =
|
|
939
|
-
$[53] =
|
|
940
|
-
$[54] =
|
|
941
|
-
} else
|
|
942
|
-
const
|
|
943
|
-
let
|
|
944
|
-
if ($[55] !== children || $[56] !==
|
|
945
|
-
|
|
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:
|
|
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":
|
|
953
|
-
"data-resizable":
|
|
954
|
-
style:
|
|
961
|
+
"data-component": dataComponent,
|
|
962
|
+
"data-resizable": t36,
|
|
963
|
+
style: t44,
|
|
955
964
|
children
|
|
956
965
|
});
|
|
957
966
|
$[55] = children;
|
|
958
|
-
$[56] =
|
|
959
|
-
$[57] =
|
|
960
|
-
$[58] =
|
|
967
|
+
$[56] = dataComponent;
|
|
968
|
+
$[57] = labelProp;
|
|
969
|
+
$[58] = mergedPaneRef;
|
|
961
970
|
$[59] = t33;
|
|
962
971
|
$[60] = t34;
|
|
963
972
|
$[61] = t35;
|
|
964
|
-
$[62] =
|
|
973
|
+
$[62] = t36;
|
|
965
974
|
$[63] = t44;
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
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
|
-
$[
|
|
978
|
-
$[
|
|
979
|
-
$[
|
|
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
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
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
|
-
$[
|
|
1046
|
-
$[
|
|
1047
|
-
$[
|
|
1048
|
-
$[
|
|
1049
|
-
$[
|
|
1050
|
-
$[
|
|
1051
|
-
$[
|
|
1052
|
-
$[
|
|
1053
|
-
$[
|
|
1054
|
-
$[
|
|
1055
|
-
$[
|
|
1056
|
-
} else
|
|
1057
|
-
let
|
|
1058
|
-
if ($[
|
|
1059
|
-
|
|
1060
|
-
variant:
|
|
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:
|
|
1065
|
-
children:
|
|
1074
|
+
style: t49,
|
|
1075
|
+
children: t50
|
|
1066
1076
|
});
|
|
1067
|
-
$[
|
|
1068
|
-
$[
|
|
1069
|
-
$[
|
|
1070
|
-
$[84] = t48;
|
|
1077
|
+
$[82] = positionProp;
|
|
1078
|
+
$[83] = resizable;
|
|
1079
|
+
$[84] = t46;
|
|
1071
1080
|
$[85] = t49;
|
|
1072
1081
|
$[86] = t50;
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
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
|
-
|
|
1090
|
+
...t26,
|
|
1091
|
+
"data-sticky": t27,
|
|
1082
1092
|
children: [
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1093
|
+
t32,
|
|
1094
|
+
t45,
|
|
1095
|
+
t51
|
|
1086
1096
|
]
|
|
1087
1097
|
});
|
|
1088
|
-
$[
|
|
1089
|
-
$[88] = t23;
|
|
1098
|
+
$[88] = t19;
|
|
1090
1099
|
$[89] = t24;
|
|
1091
1100
|
$[90] = t25;
|
|
1092
1101
|
$[91] = t26;
|
|
1093
|
-
$[92] =
|
|
1094
|
-
$[93] =
|
|
1095
|
-
$[94] =
|
|
1102
|
+
$[92] = t27;
|
|
1103
|
+
$[93] = t32;
|
|
1104
|
+
$[94] = t45;
|
|
1096
1105
|
$[95] = t51;
|
|
1097
|
-
|
|
1098
|
-
|
|
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(
|
|
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
|
|
1129
|
+
let t11;
|
|
1119
1130
|
if ($[0] !== controlledWidth || $[1] !== minWidth || $[2] !== onResizeEnd || $[3] !== resizable || $[4] !== sidebarContentWrapperRef || $[5] !== sidebarRef || $[6] !== width || $[7] !== widthStorageKey) {
|
|
1120
|
-
|
|
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] =
|
|
1141
|
-
} else
|
|
1142
|
-
const { currentWidth, currentWidthRef, minPaneWidth, maxPaneWidth, getMaxPaneWidth, saveWidth, getDefaultWidth } = usePaneWidth(
|
|
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
|
|
1170
|
+
let t12;
|
|
1160
1171
|
if ($[13] !== className) {
|
|
1161
|
-
|
|
1172
|
+
t12 = clsx(PageLayout_module_css_default.SidebarWrapper, className);
|
|
1162
1173
|
$[13] = className;
|
|
1163
|
-
$[14] =
|
|
1164
|
-
} else
|
|
1165
|
-
const
|
|
1166
|
-
let
|
|
1167
|
-
if ($[15] !== style || $[16] !==
|
|
1168
|
-
|
|
1169
|
-
"--spacing-column":
|
|
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] =
|
|
1174
|
-
$[17] =
|
|
1175
|
-
} else
|
|
1176
|
-
const
|
|
1177
|
-
let
|
|
1184
|
+
$[16] = t13;
|
|
1185
|
+
$[17] = t14;
|
|
1186
|
+
} else t14 = $[17];
|
|
1187
|
+
const t15 = t14;
|
|
1188
|
+
let t16;
|
|
1178
1189
|
if ($[18] !== responsiveHidden) {
|
|
1179
|
-
|
|
1190
|
+
t16 = getResponsiveAttributes("is-hidden", responsiveHidden);
|
|
1180
1191
|
$[18] = responsiveHidden;
|
|
1181
|
-
$[19] =
|
|
1182
|
-
} else
|
|
1183
|
-
const
|
|
1184
|
-
const
|
|
1185
|
-
let
|
|
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
|
-
|
|
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] =
|
|
1216
|
-
} else
|
|
1217
|
-
const
|
|
1218
|
-
let
|
|
1226
|
+
$[31] = t19;
|
|
1227
|
+
} else t19 = $[31];
|
|
1228
|
+
const t20 = resizable === true && !!widthStorageKey && !onResizeEnd;
|
|
1229
|
+
let t21;
|
|
1219
1230
|
if ($[32] !== hasOverflow) {
|
|
1220
|
-
|
|
1231
|
+
t21 = hasOverflow ? overflowProps : {};
|
|
1221
1232
|
$[32] = hasOverflow;
|
|
1222
|
-
$[33] =
|
|
1223
|
-
} else
|
|
1224
|
-
let
|
|
1233
|
+
$[33] = t21;
|
|
1234
|
+
} else t21 = $[33];
|
|
1235
|
+
let t22;
|
|
1225
1236
|
if ($[34] !== id || $[35] !== sidebarId) {
|
|
1226
|
-
|
|
1237
|
+
t22 = id && { id: sidebarId };
|
|
1227
1238
|
$[34] = id;
|
|
1228
1239
|
$[35] = sidebarId;
|
|
1229
|
-
$[36] =
|
|
1230
|
-
} else
|
|
1231
|
-
const
|
|
1232
|
-
const
|
|
1233
|
-
const
|
|
1234
|
-
const
|
|
1235
|
-
const
|
|
1236
|
-
const
|
|
1237
|
-
const
|
|
1238
|
-
let
|
|
1239
|
-
if ($[37] !==
|
|
1240
|
-
|
|
1241
|
-
"--spacing":
|
|
1242
|
-
"--pane-min-width":
|
|
1243
|
-
"--pane-max-width":
|
|
1244
|
-
"--pane-width-custom":
|
|
1245
|
-
"--pane-width-size":
|
|
1246
|
-
"--pane-width":
|
|
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] =
|
|
1249
|
-
$[38] =
|
|
1250
|
-
$[39] =
|
|
1251
|
-
$[40] =
|
|
1252
|
-
$[41] =
|
|
1253
|
-
$[42] =
|
|
1254
|
-
$[43] =
|
|
1255
|
-
} else
|
|
1256
|
-
const
|
|
1257
|
-
let
|
|
1258
|
-
if ($[44] !== children || $[45] !==
|
|
1259
|
-
|
|
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:
|
|
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":
|
|
1267
|
-
"data-resizable":
|
|
1268
|
-
style:
|
|
1277
|
+
"data-component": dataComponent,
|
|
1278
|
+
"data-resizable": t23,
|
|
1279
|
+
style: t31,
|
|
1269
1280
|
children
|
|
1270
1281
|
});
|
|
1271
1282
|
$[44] = children;
|
|
1272
|
-
$[45] =
|
|
1273
|
-
$[46] =
|
|
1274
|
-
$[47] =
|
|
1283
|
+
$[45] = dataComponent;
|
|
1284
|
+
$[46] = labelProp;
|
|
1285
|
+
$[47] = mergedSidebarRef;
|
|
1275
1286
|
$[48] = t20;
|
|
1276
1287
|
$[49] = t21;
|
|
1277
1288
|
$[50] = t22;
|
|
1278
|
-
$[51] =
|
|
1289
|
+
$[51] = t23;
|
|
1279
1290
|
$[52] = t31;
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
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
|
-
$[
|
|
1301
|
-
$[
|
|
1302
|
-
$[
|
|
1303
|
-
$[
|
|
1304
|
-
$[
|
|
1305
|
-
$[
|
|
1306
|
-
$[
|
|
1307
|
-
$[
|
|
1308
|
-
$[
|
|
1309
|
-
$[
|
|
1310
|
-
$[
|
|
1311
|
-
$[
|
|
1312
|
-
} else
|
|
1313
|
-
let
|
|
1314
|
-
if ($[
|
|
1315
|
-
|
|
1316
|
-
className:
|
|
1317
|
-
style:
|
|
1318
|
-
...
|
|
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":
|
|
1321
|
-
"data-responsive-variant":
|
|
1332
|
+
"data-sticky": t17,
|
|
1333
|
+
"data-responsive-variant": t18,
|
|
1322
1334
|
children: [
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1335
|
+
t19,
|
|
1336
|
+
t32,
|
|
1337
|
+
t33
|
|
1326
1338
|
]
|
|
1327
1339
|
});
|
|
1328
|
-
$[
|
|
1329
|
-
$[
|
|
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] =
|
|
1346
|
+
$[72] = t19;
|
|
1336
1347
|
$[73] = t32;
|
|
1337
1348
|
$[74] = t33;
|
|
1338
|
-
|
|
1339
|
-
|
|
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(
|
|
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
|
-
|
|
1361
|
+
const dataComponent = t5 === void 0 ? "PageLayout.Footer" : t5;
|
|
1362
|
+
let t6;
|
|
1350
1363
|
if ($[0] !== divider || $[1] !== dividerWhenNarrow) {
|
|
1351
|
-
|
|
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] =
|
|
1358
|
-
} else
|
|
1359
|
-
const dividerProp =
|
|
1370
|
+
$[2] = t6;
|
|
1371
|
+
} else t6 = $[2];
|
|
1372
|
+
const dividerProp = t6;
|
|
1360
1373
|
const { rowGap } = React.useContext(PageLayoutContext);
|
|
1361
|
-
let
|
|
1374
|
+
let t7;
|
|
1362
1375
|
if ($[3] !== hidden) {
|
|
1363
|
-
|
|
1376
|
+
t7 = getResponsiveAttributes("hidden", hidden);
|
|
1364
1377
|
$[3] = hidden;
|
|
1365
|
-
$[4] =
|
|
1366
|
-
} else
|
|
1367
|
-
let
|
|
1378
|
+
$[4] = t7;
|
|
1379
|
+
} else t7 = $[4];
|
|
1380
|
+
let t8;
|
|
1368
1381
|
if ($[5] !== className) {
|
|
1369
|
-
|
|
1382
|
+
t8 = clsx(PageLayout_module_css_default.FooterWrapper, className);
|
|
1370
1383
|
$[5] = className;
|
|
1371
|
-
$[6] =
|
|
1372
|
-
} else
|
|
1373
|
-
const
|
|
1374
|
-
let
|
|
1375
|
-
if ($[7] !== style || $[8] !==
|
|
1376
|
-
|
|
1377
|
-
"--spacing":
|
|
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] =
|
|
1382
|
-
$[9] =
|
|
1383
|
-
} else
|
|
1384
|
-
const
|
|
1385
|
-
const
|
|
1386
|
-
let
|
|
1387
|
-
if ($[10] !==
|
|
1388
|
-
|
|
1389
|
-
$[10] =
|
|
1390
|
-
$[11] =
|
|
1391
|
-
} else
|
|
1392
|
-
const
|
|
1393
|
-
let
|
|
1394
|
-
if ($[12] !== dividerProp || $[13] !==
|
|
1395
|
-
|
|
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:
|
|
1410
|
+
style: t14,
|
|
1398
1411
|
variant: dividerProp
|
|
1399
1412
|
});
|
|
1400
1413
|
$[12] = dividerProp;
|
|
1401
|
-
$[13] =
|
|
1402
|
-
$[14] =
|
|
1403
|
-
} else
|
|
1404
|
-
const
|
|
1405
|
-
let
|
|
1406
|
-
if ($[15] !==
|
|
1407
|
-
|
|
1408
|
-
$[15] =
|
|
1409
|
-
$[16] =
|
|
1410
|
-
} else
|
|
1411
|
-
const
|
|
1412
|
-
let
|
|
1413
|
-
if ($[17] !== children || $[18] !==
|
|
1414
|
-
|
|
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:
|
|
1429
|
+
style: t18,
|
|
1417
1430
|
children
|
|
1418
1431
|
});
|
|
1419
1432
|
$[17] = children;
|
|
1420
|
-
$[18] =
|
|
1421
|
-
$[19] =
|
|
1422
|
-
} else
|
|
1423
|
-
let
|
|
1424
|
-
if ($[20] !==
|
|
1425
|
-
|
|
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":
|
|
1429
|
-
...
|
|
1430
|
-
className:
|
|
1431
|
-
style:
|
|
1432
|
-
children: [
|
|
1441
|
+
"data-component": dataComponent,
|
|
1442
|
+
...t7,
|
|
1443
|
+
className: t8,
|
|
1444
|
+
style: t11,
|
|
1445
|
+
children: [t15, t19]
|
|
1433
1446
|
});
|
|
1434
|
-
$[20] =
|
|
1435
|
-
$[21] =
|
|
1436
|
-
$[22] =
|
|
1437
|
-
$[23] =
|
|
1438
|
-
$[24] =
|
|
1439
|
-
$[25] =
|
|
1447
|
+
$[20] = dataComponent;
|
|
1448
|
+
$[21] = label;
|
|
1449
|
+
$[22] = labelledBy;
|
|
1450
|
+
$[23] = t11;
|
|
1451
|
+
$[24] = t15;
|
|
1452
|
+
$[25] = t19;
|
|
1440
1453
|
$[26] = t7;
|
|
1441
|
-
$[27] =
|
|
1442
|
-
|
|
1443
|
-
|
|
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, {
|