@primer/react 0.0.0-20260220141131 → 0.0.0-20260220143956
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 +4 -12
- package/dist/ActionList/ActionList-f4ac3b54.css +2 -0
- package/dist/ActionList/ActionList-f4ac3b54.css.map +1 -0
- package/dist/ActionList/ActionList.module.css.js +1 -1
- package/dist/ActionList/Item.d.ts.map +1 -1
- package/dist/ActionList/Item.js +0 -1
- package/dist/Blankslate/{Blankslate-a039d79a.css → Blankslate-f5a9755a.css} +2 -2
- package/dist/Blankslate/Blankslate-f5a9755a.css.map +1 -0
- package/dist/Blankslate/Blankslate.module.css.js +1 -1
- package/dist/PageLayout/PageLayout-cb491b47.css +2 -0
- package/dist/PageLayout/PageLayout-cb491b47.css.map +1 -0
- package/dist/PageLayout/PageLayout.d.ts +2 -72
- package/dist/PageLayout/PageLayout.d.ts.map +1 -1
- package/dist/PageLayout/PageLayout.js +44 -497
- package/dist/PageLayout/PageLayout.module.css.js +2 -2
- package/dist/PageLayout/usePaneWidth.d.ts +5 -18
- package/dist/PageLayout/usePaneWidth.d.ts.map +1 -1
- package/dist/PageLayout/usePaneWidth.js +111 -125
- package/dist/Spinner/Spinner.d.ts.map +1 -1
- package/dist/Spinner/Spinner.js +106 -152
- package/dist/SplitPageLayout/SplitPageLayout.d.ts +1 -4
- package/dist/SplitPageLayout/SplitPageLayout.d.ts.map +1 -1
- package/dist/SplitPageLayout/SplitPageLayout.js +2 -54
- package/generated/components.json +1 -187
- package/package.json +1 -1
- package/dist/ActionList/ActionList-c04a02d6.css +0 -2
- package/dist/ActionList/ActionList-c04a02d6.css.map +0 -1
- package/dist/Blankslate/Blankslate-a039d79a.css.map +0 -1
- package/dist/PageLayout/PageLayout-06f4c069.css +0 -2
- package/dist/PageLayout/PageLayout-06f4c069.css.map +0 -1
package/dist/Spinner/Spinner.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c } from 'react-compiler-runtime';
|
|
2
2
|
import { clsx } from 'clsx';
|
|
3
|
-
import { useState, useEffect
|
|
3
|
+
import { useState, useEffect } from 'react';
|
|
4
4
|
import classes from './Spinner.module.css.js';
|
|
5
5
|
import { useMedia } from '../hooks/useMedia.js';
|
|
6
6
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
@@ -8,6 +8,7 @@ import { useFeatureFlag } from '../FeatureFlags/useFeatureFlag.js';
|
|
|
8
8
|
import { useId } from '../hooks/useId.js';
|
|
9
9
|
import { VisuallyHidden } from '../VisuallyHidden/VisuallyHidden.js';
|
|
10
10
|
|
|
11
|
+
const ANIMATION_DURATION_MS = 1000;
|
|
11
12
|
const sizeMap = {
|
|
12
13
|
small: '16px',
|
|
13
14
|
medium: '32px',
|
|
@@ -15,7 +16,7 @@ const sizeMap = {
|
|
|
15
16
|
};
|
|
16
17
|
function Spinner(t0) {
|
|
17
18
|
var _ariaLabel;
|
|
18
|
-
const $ = c(
|
|
19
|
+
const $ = c(35);
|
|
19
20
|
let ariaLabel;
|
|
20
21
|
let className;
|
|
21
22
|
let props;
|
|
@@ -54,50 +55,82 @@ function Spinner(t0) {
|
|
|
54
55
|
const srText = t2 === undefined ? "Loading" : t2;
|
|
55
56
|
const delay = t3 === undefined ? false : t3;
|
|
56
57
|
const syncAnimationsEnabled = useFeatureFlag("primer_react_spinner_synchronize_animations");
|
|
57
|
-
const
|
|
58
|
+
const noMotionPreference = useMedia("(prefers-reduced-motion: no-preference)", false);
|
|
58
59
|
const size = sizeMap[sizeKey];
|
|
59
60
|
const hasHiddenLabel = srText !== null && ariaLabel === undefined;
|
|
60
61
|
const labelId = useId();
|
|
61
|
-
const [isVisible, setIsVisible] = useState(!delay);
|
|
62
62
|
let t4;
|
|
63
|
-
let t5;
|
|
64
63
|
if ($[8] !== delay) {
|
|
65
|
-
t4 = () => {
|
|
64
|
+
t4 = () => ({
|
|
65
|
+
isVisible: !delay,
|
|
66
|
+
syncDelay: !delay ? computeSyncDelay() : 0
|
|
67
|
+
});
|
|
68
|
+
$[8] = delay;
|
|
69
|
+
$[9] = t4;
|
|
70
|
+
} else {
|
|
71
|
+
t4 = $[9];
|
|
72
|
+
}
|
|
73
|
+
const [t5, setVisibleState] = useState(t4);
|
|
74
|
+
const {
|
|
75
|
+
isVisible,
|
|
76
|
+
syncDelay
|
|
77
|
+
} = t5;
|
|
78
|
+
let t6;
|
|
79
|
+
let t7;
|
|
80
|
+
if ($[10] !== delay) {
|
|
81
|
+
t6 = () => {
|
|
66
82
|
if (delay) {
|
|
67
83
|
const delayDuration = typeof delay === "number" ? delay : delay === "short" ? 300 : 1000;
|
|
68
84
|
const timeoutId = setTimeout(() => {
|
|
69
|
-
|
|
85
|
+
setVisibleState({
|
|
86
|
+
isVisible: true,
|
|
87
|
+
syncDelay: computeSyncDelay()
|
|
88
|
+
});
|
|
70
89
|
}, delayDuration);
|
|
71
90
|
return () => clearTimeout(timeoutId);
|
|
72
91
|
}
|
|
73
92
|
};
|
|
74
|
-
|
|
75
|
-
$[
|
|
76
|
-
$[
|
|
77
|
-
$[
|
|
93
|
+
t7 = [delay];
|
|
94
|
+
$[10] = delay;
|
|
95
|
+
$[11] = t6;
|
|
96
|
+
$[12] = t7;
|
|
78
97
|
} else {
|
|
79
|
-
|
|
80
|
-
|
|
98
|
+
t6 = $[11];
|
|
99
|
+
t7 = $[12];
|
|
81
100
|
}
|
|
82
|
-
useEffect(
|
|
101
|
+
useEffect(t6, t7);
|
|
83
102
|
if (!isVisible) {
|
|
84
103
|
return null;
|
|
85
104
|
}
|
|
86
|
-
const
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
$[
|
|
105
|
+
const shouldSync = syncAnimationsEnabled && noMotionPreference;
|
|
106
|
+
let t8;
|
|
107
|
+
if ($[13] !== shouldSync || $[14] !== style || $[15] !== syncDelay) {
|
|
108
|
+
t8 = shouldSync ? {
|
|
109
|
+
...style,
|
|
110
|
+
animationDelay: `${syncDelay}ms`
|
|
111
|
+
} : style;
|
|
112
|
+
$[13] = shouldSync;
|
|
113
|
+
$[14] = style;
|
|
114
|
+
$[15] = syncDelay;
|
|
115
|
+
$[16] = t8;
|
|
94
116
|
} else {
|
|
95
|
-
|
|
117
|
+
t8 = $[16];
|
|
96
118
|
}
|
|
97
|
-
|
|
119
|
+
const mergedStyle = t8;
|
|
120
|
+
const t9 = (_ariaLabel = ariaLabel) !== null && _ariaLabel !== void 0 ? _ariaLabel : undefined;
|
|
121
|
+
const t10 = hasHiddenLabel ? labelId : undefined;
|
|
98
122
|
let t11;
|
|
99
|
-
if ($[
|
|
100
|
-
|
|
123
|
+
if ($[17] !== className) {
|
|
124
|
+
t11 = clsx(className, classes.SpinnerAnimation);
|
|
125
|
+
$[17] = className;
|
|
126
|
+
$[18] = t11;
|
|
127
|
+
} else {
|
|
128
|
+
t11 = $[18];
|
|
129
|
+
}
|
|
130
|
+
let t12;
|
|
131
|
+
let t13;
|
|
132
|
+
if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
|
|
133
|
+
t12 = /*#__PURE__*/jsx("circle", {
|
|
101
134
|
cx: "8",
|
|
102
135
|
cy: "8",
|
|
103
136
|
r: "7",
|
|
@@ -106,163 +139,84 @@ function Spinner(t0) {
|
|
|
106
139
|
strokeWidth: "2",
|
|
107
140
|
vectorEffect: "non-scaling-stroke"
|
|
108
141
|
});
|
|
109
|
-
|
|
142
|
+
t13 = /*#__PURE__*/jsx("path", {
|
|
110
143
|
d: "M15 8a7.002 7.002 0 00-7-7",
|
|
111
144
|
stroke: "currentColor",
|
|
112
145
|
strokeWidth: "2",
|
|
113
146
|
strokeLinecap: "round",
|
|
114
147
|
vectorEffect: "non-scaling-stroke"
|
|
115
148
|
});
|
|
116
|
-
$[
|
|
117
|
-
$[
|
|
149
|
+
$[19] = t12;
|
|
150
|
+
$[20] = t13;
|
|
118
151
|
} else {
|
|
119
|
-
|
|
120
|
-
|
|
152
|
+
t12 = $[19];
|
|
153
|
+
t13 = $[20];
|
|
121
154
|
}
|
|
122
|
-
let
|
|
123
|
-
if ($[
|
|
124
|
-
|
|
125
|
-
ref: t6,
|
|
155
|
+
let t14;
|
|
156
|
+
if ($[21] !== mergedStyle || $[22] !== props || $[23] !== size || $[24] !== t10 || $[25] !== t11 || $[26] !== t9) {
|
|
157
|
+
t14 = /*#__PURE__*/jsxs("svg", {
|
|
126
158
|
height: size,
|
|
127
159
|
width: size,
|
|
128
160
|
viewBox: "0 0 16 16",
|
|
129
161
|
fill: "none",
|
|
130
162
|
"aria-hidden": true,
|
|
131
|
-
"aria-label":
|
|
132
|
-
"aria-labelledby":
|
|
133
|
-
className:
|
|
134
|
-
style:
|
|
163
|
+
"aria-label": t9,
|
|
164
|
+
"aria-labelledby": t10,
|
|
165
|
+
className: t11,
|
|
166
|
+
style: mergedStyle,
|
|
135
167
|
...props,
|
|
136
|
-
children: [
|
|
168
|
+
children: [t12, t13]
|
|
137
169
|
});
|
|
138
|
-
$[
|
|
139
|
-
$[
|
|
140
|
-
$[
|
|
141
|
-
$[
|
|
142
|
-
$[
|
|
143
|
-
$[
|
|
144
|
-
$[
|
|
145
|
-
$[22] = t12;
|
|
170
|
+
$[21] = mergedStyle;
|
|
171
|
+
$[22] = props;
|
|
172
|
+
$[23] = size;
|
|
173
|
+
$[24] = t10;
|
|
174
|
+
$[25] = t11;
|
|
175
|
+
$[26] = t9;
|
|
176
|
+
$[27] = t14;
|
|
146
177
|
} else {
|
|
147
|
-
|
|
178
|
+
t14 = $[27];
|
|
148
179
|
}
|
|
149
|
-
let
|
|
150
|
-
if ($[
|
|
151
|
-
|
|
180
|
+
let t15;
|
|
181
|
+
if ($[28] !== hasHiddenLabel || $[29] !== labelId || $[30] !== srText) {
|
|
182
|
+
t15 = hasHiddenLabel ? /*#__PURE__*/jsx(VisuallyHidden, {
|
|
152
183
|
id: labelId,
|
|
153
184
|
children: srText
|
|
154
185
|
}) : null;
|
|
155
|
-
$[
|
|
156
|
-
$[
|
|
157
|
-
$[
|
|
158
|
-
$[
|
|
186
|
+
$[28] = hasHiddenLabel;
|
|
187
|
+
$[29] = labelId;
|
|
188
|
+
$[30] = srText;
|
|
189
|
+
$[31] = t15;
|
|
159
190
|
} else {
|
|
160
|
-
|
|
191
|
+
t15 = $[31];
|
|
161
192
|
}
|
|
162
|
-
let
|
|
163
|
-
if ($[
|
|
164
|
-
|
|
193
|
+
let t16;
|
|
194
|
+
if ($[32] !== t14 || $[33] !== t15) {
|
|
195
|
+
t16 = /*#__PURE__*/jsxs("span", {
|
|
165
196
|
className: classes.Box,
|
|
166
|
-
children: [
|
|
197
|
+
children: [t14, t15]
|
|
167
198
|
});
|
|
168
|
-
$[
|
|
169
|
-
$[
|
|
170
|
-
$[
|
|
199
|
+
$[32] = t14;
|
|
200
|
+
$[33] = t15;
|
|
201
|
+
$[34] = t16;
|
|
171
202
|
} else {
|
|
172
|
-
|
|
203
|
+
t16 = $[34];
|
|
173
204
|
}
|
|
174
|
-
return
|
|
205
|
+
return t16;
|
|
175
206
|
}
|
|
176
207
|
Spinner.displayName = 'Spinner';
|
|
177
|
-
const animationTimingStore = {
|
|
178
|
-
subscribers: new Set(),
|
|
179
|
-
value: {
|
|
180
|
-
startTime: null
|
|
181
|
-
},
|
|
182
|
-
update(startTime) {
|
|
183
|
-
const value = {
|
|
184
|
-
startTime
|
|
185
|
-
};
|
|
186
|
-
animationTimingStore.value = value;
|
|
187
|
-
for (const subscriber of animationTimingStore.subscribers) {
|
|
188
|
-
subscriber();
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
subscribe(subscriber) {
|
|
192
|
-
animationTimingStore.subscribers.add(subscriber);
|
|
193
|
-
return () => {
|
|
194
|
-
animationTimingStore.subscribers.delete(subscriber);
|
|
195
|
-
};
|
|
196
|
-
},
|
|
197
|
-
getSnapshot() {
|
|
198
|
-
return animationTimingStore.value;
|
|
199
|
-
},
|
|
200
|
-
getServerSnapshot() {
|
|
201
|
-
return animationTimingStore.value;
|
|
202
|
-
}
|
|
203
|
-
};
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* A utility hook for reading a common `startTime` value so that all animations
|
|
207
|
-
* are in sync. This is a global value and is coordinated through `useSyncExternalStore`.
|
|
208
|
-
*/
|
|
209
|
-
function useAnimationTiming() {
|
|
210
|
-
return useSyncExternalStore(animationTimingStore.subscribe, animationTimingStore.getSnapshot, animationTimingStore.getServerSnapshot);
|
|
211
|
-
}
|
|
212
208
|
|
|
213
209
|
/**
|
|
214
|
-
*
|
|
215
|
-
*
|
|
210
|
+
* Computes a negative animation-delay so all spinners land at the same
|
|
211
|
+
* rotation angle regardless of when they mount. Because every instance
|
|
212
|
+
* references the same clock (performance.now()), the CSS animation engine
|
|
213
|
+
* keeps them visually in sync without any Web Animations API calls
|
|
214
|
+
* (getAnimations, element.animate, startTime), which are significantly
|
|
215
|
+
* slower in Safari/WebKit.
|
|
216
216
|
*/
|
|
217
|
-
function
|
|
218
|
-
const
|
|
219
|
-
|
|
220
|
-
const noMotionPreference = useMedia("(prefers-reduced-motion: no-preference)", false);
|
|
221
|
-
const animationTiming = useAnimationTiming();
|
|
222
|
-
let t0;
|
|
223
|
-
if ($[0] !== animationTiming || $[1] !== noMotionPreference) {
|
|
224
|
-
t0 = element => {
|
|
225
|
-
if (!element) {
|
|
226
|
-
return;
|
|
227
|
-
}
|
|
228
|
-
if (ref.current !== null) {
|
|
229
|
-
return;
|
|
230
|
-
}
|
|
231
|
-
if (noMotionPreference) {
|
|
232
|
-
const cssAnimation = element.getAnimations().find(_temp);
|
|
233
|
-
cssAnimation === null || cssAnimation === void 0 ? void 0 : cssAnimation.pause();
|
|
234
|
-
ref.current = element.animate([{
|
|
235
|
-
transform: "rotate(0deg)"
|
|
236
|
-
}, {
|
|
237
|
-
transform: "rotate(360deg)"
|
|
238
|
-
}], {
|
|
239
|
-
duration: 1000,
|
|
240
|
-
easing: "cubic-bezier(0,0,1,1)",
|
|
241
|
-
iterations: Infinity
|
|
242
|
-
});
|
|
243
|
-
if (animationTiming.startTime === null) {
|
|
244
|
-
var _cssAnimation$startTi;
|
|
245
|
-
const startTime = (_cssAnimation$startTi = cssAnimation === null || cssAnimation === void 0 ? void 0 : cssAnimation.startTime) !== null && _cssAnimation$startTi !== void 0 ? _cssAnimation$startTi : 0;
|
|
246
|
-
animationTimingStore.update(startTime);
|
|
247
|
-
ref.current.startTime = startTime;
|
|
248
|
-
} else {
|
|
249
|
-
ref.current.startTime = animationTiming.startTime;
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
};
|
|
253
|
-
$[0] = animationTiming;
|
|
254
|
-
$[1] = noMotionPreference;
|
|
255
|
-
$[2] = t0;
|
|
256
|
-
} else {
|
|
257
|
-
t0 = $[2];
|
|
258
|
-
}
|
|
259
|
-
return t0;
|
|
260
|
-
}
|
|
261
|
-
function _temp(animation) {
|
|
262
|
-
if (animation instanceof CSSAnimation) {
|
|
263
|
-
return animation.animationName.startsWith("Spinner") && animation.animationName.endsWith("rotate-keyframes");
|
|
264
|
-
}
|
|
265
|
-
return false;
|
|
217
|
+
function computeSyncDelay() {
|
|
218
|
+
const now = typeof performance !== 'undefined' ? performance.now() : 0;
|
|
219
|
+
return -(now % ANIMATION_DURATION_MS);
|
|
266
220
|
}
|
|
267
221
|
|
|
268
222
|
export { Spinner as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import type { PageLayoutContentProps, PageLayoutFooterProps, PageLayoutHeaderProps, PageLayoutPaneProps
|
|
2
|
+
import type { PageLayoutContentProps, PageLayoutFooterProps, PageLayoutHeaderProps, PageLayoutPaneProps } from '../PageLayout';
|
|
3
3
|
export type SplitPageLayoutProps = {
|
|
4
4
|
className?: string;
|
|
5
5
|
};
|
|
@@ -10,15 +10,12 @@ export type SplitPageLayoutContentProps = PageLayoutContentProps;
|
|
|
10
10
|
export declare const Content: React.FC<React.PropsWithChildren<SplitPageLayoutContentProps>>;
|
|
11
11
|
export type SplitPageLayoutPaneProps = PageLayoutPaneProps;
|
|
12
12
|
export declare const Pane: React.FC<React.PropsWithChildren<SplitPageLayoutPaneProps>>;
|
|
13
|
-
export type SplitPageLayoutSidebarProps = PageLayoutSidebarProps;
|
|
14
|
-
export declare const Sidebar: React.FC<React.PropsWithChildren<SplitPageLayoutSidebarProps>>;
|
|
15
13
|
export type SplitPageLayoutFooterProps = PageLayoutFooterProps;
|
|
16
14
|
export declare const Footer: React.FC<React.PropsWithChildren<SplitPageLayoutFooterProps>>;
|
|
17
15
|
export declare const SplitPageLayout: React.FC<React.PropsWithChildren<SplitPageLayoutProps>> & {
|
|
18
16
|
Header: React.FC<React.PropsWithChildren<PageLayoutHeaderProps>>;
|
|
19
17
|
Content: React.FC<React.PropsWithChildren<PageLayoutContentProps>>;
|
|
20
18
|
Pane: React.FC<React.PropsWithChildren<PageLayoutPaneProps>>;
|
|
21
|
-
Sidebar: React.FC<React.PropsWithChildren<PageLayoutSidebarProps>>;
|
|
22
19
|
Footer: React.FC<React.PropsWithChildren<PageLayoutFooterProps>>;
|
|
23
20
|
};
|
|
24
21
|
//# sourceMappingURL=SplitPageLayout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SplitPageLayout.d.ts","sourceRoot":"","sources":["../../src/SplitPageLayout/SplitPageLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EACV,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"SplitPageLayout.d.ts","sourceRoot":"","sources":["../../src/SplitPageLayout/SplitPageLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EACV,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACpB,MAAM,eAAe,CAAA;AAMtB,MAAM,MAAM,oBAAoB,GAAG;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAC,CAAA;AAEvD,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,CAcxE,CAAA;AAOD,MAAM,MAAM,0BAA0B,GAAG,qBAAqB,CAAA;AAE9D,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,0BAA0B,CAAC,CAOhF,CAAA;AAOD,MAAM,MAAM,2BAA2B,GAAG,sBAAsB,CAAA;AAEhE,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,2BAA2B,CAAC,CAMlF,CAAA;AAOD,MAAM,MAAM,wBAAwB,GAAG,mBAAmB,CAAA;AAE1D,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,wBAAwB,CAAC,CAgB5E,CAAA;AAMD,MAAM,MAAM,0BAA0B,GAAG,qBAAqB,CAAA;AAE9D,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,0BAA0B,CAAC,CAOhF,CAAA;AAOD,eAAO,MAAM,eAAe;;;;;CAK1B,CAAA"}
|
|
@@ -8,8 +8,7 @@ const Root = props => {
|
|
|
8
8
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
9
9
|
t0 = {
|
|
10
10
|
header: Header,
|
|
11
|
-
footer: Footer
|
|
12
|
-
sidebar: Sidebar
|
|
11
|
+
footer: Footer
|
|
13
12
|
};
|
|
14
13
|
$[0] = t0;
|
|
15
14
|
} else {
|
|
@@ -177,56 +176,6 @@ const Pane = t0 => {
|
|
|
177
176
|
};
|
|
178
177
|
Pane.displayName = 'SplitPageLayout.Pane';
|
|
179
178
|
|
|
180
|
-
// ----------------------------------------------------------------------------
|
|
181
|
-
// SplitPageLayout.Sidebar
|
|
182
|
-
|
|
183
|
-
const Sidebar = t0 => {
|
|
184
|
-
const $ = c(10);
|
|
185
|
-
let props;
|
|
186
|
-
let t1;
|
|
187
|
-
let t2;
|
|
188
|
-
let t3;
|
|
189
|
-
if ($[0] !== t0) {
|
|
190
|
-
({
|
|
191
|
-
position: t1,
|
|
192
|
-
padding: t2,
|
|
193
|
-
divider: t3,
|
|
194
|
-
...props
|
|
195
|
-
} = t0);
|
|
196
|
-
$[0] = t0;
|
|
197
|
-
$[1] = props;
|
|
198
|
-
$[2] = t1;
|
|
199
|
-
$[3] = t2;
|
|
200
|
-
$[4] = t3;
|
|
201
|
-
} else {
|
|
202
|
-
props = $[1];
|
|
203
|
-
t1 = $[2];
|
|
204
|
-
t2 = $[3];
|
|
205
|
-
t3 = $[4];
|
|
206
|
-
}
|
|
207
|
-
const position = t1 === undefined ? "start" : t1;
|
|
208
|
-
const padding = t2 === undefined ? "normal" : t2;
|
|
209
|
-
const divider = t3 === undefined ? "line" : t3;
|
|
210
|
-
let t4;
|
|
211
|
-
if ($[5] !== divider || $[6] !== padding || $[7] !== position || $[8] !== props) {
|
|
212
|
-
t4 = /*#__PURE__*/jsx(PageLayout.Sidebar, {
|
|
213
|
-
position: position,
|
|
214
|
-
padding: padding,
|
|
215
|
-
divider: divider,
|
|
216
|
-
...props
|
|
217
|
-
});
|
|
218
|
-
$[5] = divider;
|
|
219
|
-
$[6] = padding;
|
|
220
|
-
$[7] = position;
|
|
221
|
-
$[8] = props;
|
|
222
|
-
$[9] = t4;
|
|
223
|
-
} else {
|
|
224
|
-
t4 = $[9];
|
|
225
|
-
}
|
|
226
|
-
return t4;
|
|
227
|
-
};
|
|
228
|
-
Sidebar.displayName = 'SplitPageLayout.Sidebar';
|
|
229
|
-
|
|
230
179
|
// ----------------------------------------------------------------------------
|
|
231
180
|
// SplitPageLayout.Footer
|
|
232
181
|
|
|
@@ -277,8 +226,7 @@ const SplitPageLayout = Object.assign(Root, {
|
|
|
277
226
|
Header,
|
|
278
227
|
Content,
|
|
279
228
|
Pane,
|
|
280
|
-
Sidebar,
|
|
281
229
|
Footer
|
|
282
230
|
});
|
|
283
231
|
|
|
284
|
-
export { Content, Footer, Header, Pane, Root,
|
|
232
|
+
export { Content, Footer, Header, Pane, Root, SplitPageLayout };
|