@primer/react 38.6.3-rc.f8f5fddc3 → 38.7.0-rc.b626e5d83
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.
Potentially problematic release.
This version of @primer/react might be problematic. Click here for more details.
- package/CHANGELOG.md +48 -1
- package/dist/ActionBar/ActionBar.d.ts +8 -0
- package/dist/ActionBar/ActionBar.d.ts.map +1 -1
- package/dist/ActionBar/ActionBar.js +83 -53
- package/dist/ActionBar/index.d.ts +1 -0
- package/dist/ActionBar/index.d.ts.map +1 -1
- package/dist/Autocomplete/Autocomplete.d.ts +0 -3
- package/dist/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/Autocomplete/Autocomplete.js +69 -23
- package/dist/Autocomplete/AutocompleteContext.d.ts +23 -3
- package/dist/Autocomplete/AutocompleteContext.d.ts.map +1 -1
- package/dist/Autocomplete/AutocompleteContext.js +20 -1
- package/dist/Autocomplete/AutocompleteInput.d.ts.map +1 -1
- package/dist/Autocomplete/AutocompleteInput.js +8 -5
- package/dist/Autocomplete/AutocompleteMenu.d.ts.map +1 -1
- package/dist/Autocomplete/AutocompleteMenu.js +123 -121
- package/dist/{BaseStyles-79fd37c4.css → BaseStyles-7e59cc50.css} +2 -2
- package/dist/BaseStyles-7e59cc50.css.map +1 -0
- package/dist/BaseStyles.module.css.js +1 -1
- package/dist/Dialog/{Dialog-1a61e61a.css → Dialog-92b5e3b7.css} +2 -2
- package/dist/Dialog/Dialog-92b5e3b7.css.map +1 -0
- package/dist/Dialog/Dialog.d.ts.map +1 -1
- package/dist/Dialog/Dialog.js +21 -5
- package/dist/Dialog/Dialog.module.css.js +1 -1
- package/dist/FeatureFlags/DefaultFeatureFlags.d.ts.map +1 -1
- package/dist/FeatureFlags/DefaultFeatureFlags.js +1 -0
- package/dist/FeatureFlags/FeatureFlags.d.ts +6 -0
- package/dist/FeatureFlags/FeatureFlags.d.ts.map +1 -1
- package/dist/FeatureFlags/FeatureFlags.js +41 -32
- package/dist/FilteredActionList/FilteredActionList.d.ts +6 -1
- package/dist/FilteredActionList/FilteredActionList.d.ts.map +1 -1
- package/dist/FilteredActionList/FilteredActionList.js +4 -2
- package/dist/PageLayout/{PageLayout-c092f3db.css → PageLayout-51007c87.css} +2 -2
- package/dist/PageLayout/PageLayout-51007c87.css.map +1 -0
- package/dist/PageLayout/PageLayout.d.ts.map +1 -1
- package/dist/PageLayout/PageLayout.js +399 -313
- package/dist/PageLayout/PageLayout.module.css.js +1 -1
- package/dist/PageLayout/paneUtils.d.ts +11 -0
- package/dist/PageLayout/paneUtils.d.ts.map +1 -0
- package/dist/PageLayout/paneUtils.js +34 -0
- package/dist/PageLayout/usePaneWidth.d.ts +2 -1
- package/dist/PageLayout/usePaneWidth.d.ts.map +1 -1
- package/dist/PageLayout/usePaneWidth.js +56 -44
- package/dist/SelectPanel/SelectPanel.d.ts +6 -1
- package/dist/SelectPanel/SelectPanel.d.ts.map +1 -1
- package/dist/SelectPanel/SelectPanel.js +3 -1
- package/dist/TextInput/TextInput-dff8f842.css +2 -0
- package/dist/TextInput/TextInput-dff8f842.css.map +1 -0
- package/dist/TextInput/TextInput.d.ts +5 -0
- package/dist/TextInput/TextInput.d.ts.map +1 -1
- package/dist/TextInput/TextInput.js +125 -51
- package/dist/TextInput/TextInput.module.css.js +5 -0
- package/dist/Textarea/{TextArea-54099020.css → TextArea-53e27580.css} +2 -2
- package/dist/Textarea/TextArea-53e27580.css.map +1 -0
- package/dist/Textarea/TextArea.module.css.js +2 -2
- package/dist/Textarea/Textarea.d.ts +10 -0
- package/dist/Textarea/Textarea.d.ts.map +1 -1
- package/dist/Textarea/Textarea.js +215 -69
- package/dist/ToggleSwitch/ToggleSwitch-40bab513.css +2 -0
- package/dist/ToggleSwitch/ToggleSwitch-40bab513.css.map +1 -0
- package/dist/ToggleSwitch/ToggleSwitch.module.css.js +1 -1
- package/dist/hooks/useFocusZone.d.ts +4 -0
- package/dist/hooks/useFocusZone.d.ts.map +1 -1
- package/dist/internal/utils/hasInteractiveNodes.d.ts.map +1 -1
- package/dist/internal/utils/hasInteractiveNodes.js +22 -16
- package/dist/utils/__tests__/character-counter.test.d.ts +2 -0
- package/dist/utils/__tests__/character-counter.test.d.ts.map +1 -0
- package/dist/utils/character-counter.d.ts +27 -0
- package/dist/utils/character-counter.d.ts.map +1 -0
- package/dist/utils/character-counter.js +65 -0
- package/generated/components.json +16 -0
- package/package.json +9 -9
- package/dist/BaseStyles-79fd37c4.css.map +0 -1
- package/dist/Dialog/Dialog-1a61e61a.css.map +0 -1
- package/dist/PageLayout/PageLayout-c092f3db.css.map +0 -1
- package/dist/Textarea/TextArea-54099020.css.map +0 -1
- package/dist/ToggleSwitch/ToggleSwitch-d1bd60b0.css +0 -2
- package/dist/ToggleSwitch/ToggleSwitch-d1bd60b0.css.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c } from 'react-compiler-runtime';
|
|
2
|
-
import React, { useRef } from 'react';
|
|
2
|
+
import React, { useRef, memo } from 'react';
|
|
3
3
|
import { clsx } from 'clsx';
|
|
4
4
|
import { useId } from '../hooks/useId.js';
|
|
5
5
|
import { useRefObjectAsForwardedRef } from '../hooks/useRefObjectAsForwardedRef.js';
|
|
@@ -10,8 +10,11 @@ import { warning } from '../utils/warning.js';
|
|
|
10
10
|
import { getResponsiveAttributes } from '../internal/utils/getResponsiveAttributes.js';
|
|
11
11
|
import classes from './PageLayout.module.css.js';
|
|
12
12
|
import { usePaneWidth, isCustomWidthOptions, isPaneWidth, updateAriaValues, ARROW_KEY_STEP } from './usePaneWidth.js';
|
|
13
|
+
import { setDraggingStyles, removeDraggingStyles } from './paneUtils.js';
|
|
13
14
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
14
15
|
|
|
16
|
+
const isArrowKey = key => key === 'ArrowLeft' || key === 'ArrowRight' || key === 'ArrowUp' || key === 'ArrowDown';
|
|
17
|
+
const isShrinkKey = key => key === 'ArrowLeft' || key === 'ArrowDown';
|
|
15
18
|
const PageLayoutContext = /*#__PURE__*/React.createContext({
|
|
16
19
|
padding: 'normal',
|
|
17
20
|
rowGap: 'normal',
|
|
@@ -19,14 +22,14 @@ const PageLayoutContext = /*#__PURE__*/React.createContext({
|
|
|
19
22
|
paneRef: {
|
|
20
23
|
current: null
|
|
21
24
|
},
|
|
22
|
-
|
|
25
|
+
contentWrapperRef: {
|
|
23
26
|
current: null
|
|
24
27
|
}
|
|
25
28
|
});
|
|
26
29
|
|
|
27
30
|
// TODO: refs
|
|
28
31
|
const Root = t0 => {
|
|
29
|
-
const $ = c(
|
|
32
|
+
const $ = c(22);
|
|
30
33
|
const {
|
|
31
34
|
containerWidth: t1,
|
|
32
35
|
padding: t2,
|
|
@@ -42,7 +45,7 @@ const Root = t0 => {
|
|
|
42
45
|
const rowGap = t3 === undefined ? "normal" : t3;
|
|
43
46
|
const columnGap = t4 === undefined ? "normal" : t4;
|
|
44
47
|
const paneRef = useRef(null);
|
|
45
|
-
const
|
|
48
|
+
const contentWrapperRef = useRef(null);
|
|
46
49
|
let t5;
|
|
47
50
|
if ($[0] !== slotsConfig) {
|
|
48
51
|
t5 = slotsConfig !== null && slotsConfig !== void 0 ? slotsConfig : {
|
|
@@ -62,7 +65,7 @@ const Root = t0 => {
|
|
|
62
65
|
rowGap,
|
|
63
66
|
columnGap,
|
|
64
67
|
paneRef,
|
|
65
|
-
|
|
68
|
+
contentWrapperRef
|
|
66
69
|
};
|
|
67
70
|
$[2] = columnGap;
|
|
68
71
|
$[3] = padding;
|
|
@@ -72,97 +75,122 @@ const Root = t0 => {
|
|
|
72
75
|
t6 = $[5];
|
|
73
76
|
}
|
|
74
77
|
const memoizedContextValue = t6;
|
|
75
|
-
const t7 =
|
|
78
|
+
const t7 = slots.header;
|
|
76
79
|
let t8;
|
|
77
|
-
if ($[6]
|
|
78
|
-
t8 =
|
|
79
|
-
|
|
80
|
-
...style
|
|
81
|
-
};
|
|
82
|
-
$[6] = style;
|
|
83
|
-
$[7] = t7;
|
|
84
|
-
$[8] = t8;
|
|
85
|
-
} else {
|
|
86
|
-
t8 = $[8];
|
|
87
|
-
}
|
|
88
|
-
const t9 = t8;
|
|
89
|
-
let t10;
|
|
90
|
-
if ($[9] !== className) {
|
|
91
|
-
t10 = clsx(classes.PageLayoutRoot, className);
|
|
92
|
-
$[9] = className;
|
|
93
|
-
$[10] = t10;
|
|
94
|
-
} else {
|
|
95
|
-
t10 = $[10];
|
|
96
|
-
}
|
|
97
|
-
const t11 = slots.header;
|
|
98
|
-
let t12;
|
|
99
|
-
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
100
|
-
t12 = clsx(classes.PageLayoutContent);
|
|
101
|
-
$[11] = t12;
|
|
80
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
81
|
+
t8 = clsx(classes.PageLayoutContent);
|
|
82
|
+
$[6] = t8;
|
|
102
83
|
} else {
|
|
103
|
-
|
|
84
|
+
t8 = $[6];
|
|
104
85
|
}
|
|
105
|
-
let
|
|
106
|
-
if ($[
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
className: t12,
|
|
86
|
+
let t9;
|
|
87
|
+
if ($[7] !== rest) {
|
|
88
|
+
t9 = /*#__PURE__*/jsx("div", {
|
|
89
|
+
className: t8,
|
|
110
90
|
children: rest
|
|
111
91
|
});
|
|
112
|
-
$[
|
|
113
|
-
$[
|
|
92
|
+
$[7] = rest;
|
|
93
|
+
$[8] = t9;
|
|
114
94
|
} else {
|
|
115
|
-
|
|
95
|
+
t9 = $[8];
|
|
116
96
|
}
|
|
117
|
-
let
|
|
118
|
-
if ($[
|
|
119
|
-
|
|
97
|
+
let t10;
|
|
98
|
+
if ($[9] !== containerWidth || $[10] !== slots.footer || $[11] !== slots.header || $[12] !== t9) {
|
|
99
|
+
t10 = /*#__PURE__*/jsxs("div", {
|
|
120
100
|
className: classes.PageLayoutWrapper,
|
|
121
101
|
"data-width": containerWidth,
|
|
122
|
-
children: [
|
|
102
|
+
children: [t7, t9, slots.footer]
|
|
123
103
|
});
|
|
124
|
-
$[
|
|
125
|
-
$[
|
|
126
|
-
$[
|
|
127
|
-
$[
|
|
128
|
-
$[
|
|
104
|
+
$[9] = containerWidth;
|
|
105
|
+
$[10] = slots.footer;
|
|
106
|
+
$[11] = slots.header;
|
|
107
|
+
$[12] = t9;
|
|
108
|
+
$[13] = t10;
|
|
129
109
|
} else {
|
|
130
|
-
|
|
110
|
+
t10 = $[13];
|
|
131
111
|
}
|
|
132
|
-
let
|
|
133
|
-
if ($[
|
|
134
|
-
|
|
135
|
-
style:
|
|
136
|
-
|
|
137
|
-
|
|
112
|
+
let t11;
|
|
113
|
+
if ($[14] !== className || $[15] !== padding || $[16] !== style || $[17] !== t10) {
|
|
114
|
+
t11 = /*#__PURE__*/jsx(RootWrapper, {
|
|
115
|
+
style: style,
|
|
116
|
+
padding: padding,
|
|
117
|
+
className: className,
|
|
118
|
+
children: t10
|
|
138
119
|
});
|
|
139
|
-
$[
|
|
140
|
-
$[
|
|
141
|
-
$[
|
|
142
|
-
$[
|
|
120
|
+
$[14] = className;
|
|
121
|
+
$[15] = padding;
|
|
122
|
+
$[16] = style;
|
|
123
|
+
$[17] = t10;
|
|
124
|
+
$[18] = t11;
|
|
143
125
|
} else {
|
|
144
|
-
|
|
126
|
+
t11 = $[18];
|
|
145
127
|
}
|
|
146
|
-
let
|
|
147
|
-
if ($[
|
|
148
|
-
|
|
128
|
+
let t12;
|
|
129
|
+
if ($[19] !== memoizedContextValue || $[20] !== t11) {
|
|
130
|
+
t12 = /*#__PURE__*/jsx(PageLayoutContext.Provider, {
|
|
149
131
|
value: memoizedContextValue,
|
|
150
|
-
children:
|
|
132
|
+
children: t11
|
|
151
133
|
});
|
|
152
|
-
$[
|
|
153
|
-
$[
|
|
154
|
-
$[
|
|
134
|
+
$[19] = memoizedContextValue;
|
|
135
|
+
$[20] = t11;
|
|
136
|
+
$[21] = t12;
|
|
155
137
|
} else {
|
|
156
|
-
|
|
138
|
+
t12 = $[21];
|
|
157
139
|
}
|
|
158
|
-
return
|
|
140
|
+
return t12;
|
|
159
141
|
};
|
|
142
|
+
const RootWrapper = /*#__PURE__*/memo(t0 => {
|
|
143
|
+
const $ = c(9);
|
|
144
|
+
const {
|
|
145
|
+
style,
|
|
146
|
+
padding,
|
|
147
|
+
children,
|
|
148
|
+
className
|
|
149
|
+
} = t0;
|
|
150
|
+
const t1 = `var(--spacing-${padding})`;
|
|
151
|
+
let t2;
|
|
152
|
+
if ($[0] !== style || $[1] !== t1) {
|
|
153
|
+
t2 = {
|
|
154
|
+
"--spacing": t1,
|
|
155
|
+
...style
|
|
156
|
+
};
|
|
157
|
+
$[0] = style;
|
|
158
|
+
$[1] = t1;
|
|
159
|
+
$[2] = t2;
|
|
160
|
+
} else {
|
|
161
|
+
t2 = $[2];
|
|
162
|
+
}
|
|
163
|
+
const t3 = t2;
|
|
164
|
+
let t4;
|
|
165
|
+
if ($[3] !== className) {
|
|
166
|
+
t4 = clsx(classes.PageLayoutRoot, className);
|
|
167
|
+
$[3] = className;
|
|
168
|
+
$[4] = t4;
|
|
169
|
+
} else {
|
|
170
|
+
t4 = $[4];
|
|
171
|
+
}
|
|
172
|
+
let t5;
|
|
173
|
+
if ($[5] !== children || $[6] !== t3 || $[7] !== t4) {
|
|
174
|
+
t5 = /*#__PURE__*/jsx("div", {
|
|
175
|
+
style: t3,
|
|
176
|
+
className: t4,
|
|
177
|
+
children: children
|
|
178
|
+
});
|
|
179
|
+
$[5] = children;
|
|
180
|
+
$[6] = t3;
|
|
181
|
+
$[7] = t4;
|
|
182
|
+
$[8] = t5;
|
|
183
|
+
} else {
|
|
184
|
+
t5 = $[8];
|
|
185
|
+
}
|
|
186
|
+
return t5;
|
|
187
|
+
});
|
|
160
188
|
Root.displayName = 'PageLayout';
|
|
161
189
|
|
|
162
190
|
// ----------------------------------------------------------------------------
|
|
163
191
|
// Divider (internal)
|
|
164
192
|
|
|
165
|
-
const HorizontalDivider = t0 => {
|
|
193
|
+
const HorizontalDivider = /*#__PURE__*/memo(t0 => {
|
|
166
194
|
const $ = c(14);
|
|
167
195
|
const {
|
|
168
196
|
variant: t1,
|
|
@@ -229,8 +257,9 @@ const HorizontalDivider = t0 => {
|
|
|
229
257
|
t8 = $[13];
|
|
230
258
|
}
|
|
231
259
|
return t8;
|
|
232
|
-
};
|
|
233
|
-
|
|
260
|
+
});
|
|
261
|
+
HorizontalDivider.displayName = 'HorizontalDivider';
|
|
262
|
+
const VerticalDivider = /*#__PURE__*/memo(t0 => {
|
|
234
263
|
const $ = c(12);
|
|
235
264
|
const {
|
|
236
265
|
variant: t1,
|
|
@@ -283,19 +312,15 @@ const VerticalDivider = t0 => {
|
|
|
283
312
|
t5 = $[11];
|
|
284
313
|
}
|
|
285
314
|
return t5;
|
|
286
|
-
};
|
|
287
|
-
|
|
288
|
-
const isDragging = handle => {
|
|
289
|
-
return (handle === null || handle === void 0 ? void 0 : handle.getAttribute(DATA_DRAGGING_ATTR)) === 'true';
|
|
290
|
-
};
|
|
291
|
-
|
|
315
|
+
});
|
|
316
|
+
VerticalDivider.displayName = 'VerticalDivider';
|
|
292
317
|
/**
|
|
293
318
|
* DragHandle - handles all pointer and keyboard interactions for resizing
|
|
294
319
|
* ARIA values are set in JSX for SSR accessibility,
|
|
295
320
|
* then updated via DOM manipulation during drag for performance
|
|
296
321
|
*/
|
|
297
|
-
const DragHandle = t0
|
|
298
|
-
const $ = c(
|
|
322
|
+
const DragHandle = /*#__PURE__*/memo(function DragHandle(t0) {
|
|
323
|
+
const $ = c(35);
|
|
299
324
|
const {
|
|
300
325
|
handleRef,
|
|
301
326
|
onDragStart,
|
|
@@ -326,130 +351,185 @@ const DragHandle = t0 => {
|
|
|
326
351
|
React.useEffect(t1);
|
|
327
352
|
const {
|
|
328
353
|
paneRef,
|
|
329
|
-
|
|
354
|
+
contentWrapperRef
|
|
330
355
|
} = React.useContext(PageLayoutContext);
|
|
356
|
+
const isDraggingRef = React.useRef(false);
|
|
331
357
|
let t2;
|
|
332
|
-
if ($[4] !==
|
|
333
|
-
t2 =
|
|
334
|
-
if (
|
|
335
|
-
|
|
336
|
-
(_handleRef$current = handleRef.current) === null || _handleRef$current === void 0 ? void 0 : _handleRef$current.setAttribute(DATA_DRAGGING_ATTR, "true");
|
|
337
|
-
(_contentRef$current = contentRef.current) === null || _contentRef$current === void 0 ? void 0 : _contentRef$current.setAttribute(DATA_DRAGGING_ATTR, "true");
|
|
338
|
-
} else {
|
|
339
|
-
var _handleRef$current2, _contentRef$current2;
|
|
340
|
-
(_handleRef$current2 = handleRef.current) === null || _handleRef$current2 === void 0 ? void 0 : _handleRef$current2.removeAttribute(DATA_DRAGGING_ATTR);
|
|
341
|
-
(_contentRef$current2 = contentRef.current) === null || _contentRef$current2 === void 0 ? void 0 : _contentRef$current2.removeAttribute(DATA_DRAGGING_ATTR);
|
|
358
|
+
if ($[4] !== contentWrapperRef || $[5] !== handleRef || $[6] !== paneRef) {
|
|
359
|
+
t2 = () => {
|
|
360
|
+
if (isDraggingRef.current) {
|
|
361
|
+
return;
|
|
342
362
|
}
|
|
363
|
+
setDraggingStyles({
|
|
364
|
+
handle: handleRef.current,
|
|
365
|
+
pane: paneRef.current,
|
|
366
|
+
contentWrapper: contentWrapperRef.current
|
|
367
|
+
});
|
|
368
|
+
isDraggingRef.current = true;
|
|
343
369
|
};
|
|
344
|
-
$[4] =
|
|
370
|
+
$[4] = contentWrapperRef;
|
|
345
371
|
$[5] = handleRef;
|
|
346
|
-
$[6] =
|
|
372
|
+
$[6] = paneRef;
|
|
373
|
+
$[7] = t2;
|
|
347
374
|
} else {
|
|
348
|
-
t2 = $[
|
|
375
|
+
t2 = $[7];
|
|
349
376
|
}
|
|
350
|
-
const
|
|
377
|
+
const startDragging = t2;
|
|
351
378
|
let t3;
|
|
352
|
-
if ($[
|
|
353
|
-
t3 =
|
|
354
|
-
if (
|
|
379
|
+
if ($[8] !== contentWrapperRef || $[9] !== handleRef || $[10] !== paneRef) {
|
|
380
|
+
t3 = () => {
|
|
381
|
+
if (!isDraggingRef.current) {
|
|
355
382
|
return;
|
|
356
383
|
}
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
384
|
+
removeDraggingStyles({
|
|
385
|
+
handle: handleRef.current,
|
|
386
|
+
pane: paneRef.current,
|
|
387
|
+
contentWrapper: contentWrapperRef.current
|
|
388
|
+
});
|
|
389
|
+
isDraggingRef.current = false;
|
|
362
390
|
};
|
|
363
|
-
$[
|
|
364
|
-
$[
|
|
391
|
+
$[8] = contentWrapperRef;
|
|
392
|
+
$[9] = handleRef;
|
|
393
|
+
$[10] = paneRef;
|
|
394
|
+
$[11] = t3;
|
|
365
395
|
} else {
|
|
366
|
-
t3 = $[
|
|
396
|
+
t3 = $[11];
|
|
367
397
|
}
|
|
368
|
-
const
|
|
398
|
+
const endDragging = t3;
|
|
369
399
|
let t4;
|
|
370
|
-
if ($[
|
|
371
|
-
t4 =
|
|
372
|
-
if (
|
|
400
|
+
if ($[12] !== startDragging) {
|
|
401
|
+
t4 = event => {
|
|
402
|
+
if (event.button !== 0) {
|
|
373
403
|
return;
|
|
374
404
|
}
|
|
375
|
-
|
|
376
|
-
|
|
405
|
+
event.preventDefault();
|
|
406
|
+
const target = event.currentTarget;
|
|
407
|
+
try {
|
|
408
|
+
target.setPointerCapture(event.pointerId);
|
|
409
|
+
} catch {}
|
|
410
|
+
stableOnDragStart.current(event.clientX);
|
|
411
|
+
startDragging();
|
|
377
412
|
};
|
|
378
|
-
$[
|
|
379
|
-
$[
|
|
413
|
+
$[12] = startDragging;
|
|
414
|
+
$[13] = t4;
|
|
380
415
|
} else {
|
|
381
|
-
t4 = $[
|
|
416
|
+
t4 = $[13];
|
|
382
417
|
}
|
|
383
|
-
const
|
|
418
|
+
const handlePointerDown = t4;
|
|
419
|
+
const rafIdRef = React.useRef(null);
|
|
420
|
+
const pendingClientXRef = React.useRef(null);
|
|
384
421
|
let t5;
|
|
385
|
-
if ($[
|
|
386
|
-
t5 =
|
|
387
|
-
if (!
|
|
422
|
+
if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
|
|
423
|
+
t5 = event_0 => {
|
|
424
|
+
if (!isDraggingRef.current) {
|
|
388
425
|
return;
|
|
389
426
|
}
|
|
390
|
-
|
|
427
|
+
event_0.preventDefault();
|
|
428
|
+
pendingClientXRef.current = event_0.clientX;
|
|
429
|
+
if (rafIdRef.current === null) {
|
|
430
|
+
rafIdRef.current = requestAnimationFrame(() => {
|
|
431
|
+
rafIdRef.current = null;
|
|
432
|
+
if (pendingClientXRef.current !== null) {
|
|
433
|
+
stableOnDrag.current(pendingClientXRef.current, false);
|
|
434
|
+
pendingClientXRef.current = null;
|
|
435
|
+
}
|
|
436
|
+
});
|
|
437
|
+
}
|
|
391
438
|
};
|
|
392
|
-
$[
|
|
393
|
-
$[12] = t5;
|
|
439
|
+
$[14] = t5;
|
|
394
440
|
} else {
|
|
395
|
-
t5 = $[
|
|
441
|
+
t5 = $[14];
|
|
396
442
|
}
|
|
397
|
-
const
|
|
443
|
+
const handlePointerMove = t5;
|
|
398
444
|
let t6;
|
|
399
|
-
if ($[
|
|
400
|
-
t6 =
|
|
401
|
-
if (!
|
|
445
|
+
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
446
|
+
t6 = event_1 => {
|
|
447
|
+
if (!isDraggingRef.current) {
|
|
402
448
|
return;
|
|
403
449
|
}
|
|
404
|
-
|
|
405
|
-
stableOnDragEnd.current();
|
|
450
|
+
event_1.preventDefault();
|
|
406
451
|
};
|
|
407
|
-
$[13] = handleRef;
|
|
408
|
-
$[14] = setDragging;
|
|
409
452
|
$[15] = t6;
|
|
410
453
|
} else {
|
|
411
454
|
t6 = $[15];
|
|
412
455
|
}
|
|
413
|
-
const
|
|
456
|
+
const handlePointerUp = t6;
|
|
414
457
|
let t7;
|
|
415
|
-
if ($[16] !==
|
|
416
|
-
t7 =
|
|
417
|
-
if (
|
|
418
|
-
|
|
419
|
-
if (!paneRef.current) {
|
|
420
|
-
return;
|
|
421
|
-
}
|
|
422
|
-
const delta = event_2.key === "ArrowLeft" || event_2.key === "ArrowDown" ? -ARROW_KEY_STEP : ARROW_KEY_STEP;
|
|
423
|
-
setDragging(true);
|
|
424
|
-
stableOnDrag.current(delta, true);
|
|
458
|
+
if ($[16] !== endDragging) {
|
|
459
|
+
t7 = () => {
|
|
460
|
+
if (!isDraggingRef.current) {
|
|
461
|
+
return;
|
|
425
462
|
}
|
|
463
|
+
if (rafIdRef.current !== null) {
|
|
464
|
+
cancelAnimationFrame(rafIdRef.current);
|
|
465
|
+
rafIdRef.current = null;
|
|
466
|
+
pendingClientXRef.current = null;
|
|
467
|
+
}
|
|
468
|
+
endDragging();
|
|
469
|
+
stableOnDragEnd.current();
|
|
426
470
|
};
|
|
427
|
-
$[16] =
|
|
428
|
-
$[17] =
|
|
429
|
-
$[18] = t7;
|
|
471
|
+
$[16] = endDragging;
|
|
472
|
+
$[17] = t7;
|
|
430
473
|
} else {
|
|
431
|
-
t7 = $[
|
|
474
|
+
t7 = $[17];
|
|
432
475
|
}
|
|
433
|
-
const
|
|
476
|
+
const handleLostPointerCapture = t7;
|
|
434
477
|
let t8;
|
|
435
|
-
if ($[
|
|
436
|
-
t8 =
|
|
437
|
-
if (
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
478
|
+
if ($[18] !== startDragging) {
|
|
479
|
+
t8 = event_2 => {
|
|
480
|
+
if (!isArrowKey(event_2.key)) {
|
|
481
|
+
return;
|
|
482
|
+
}
|
|
483
|
+
event_2.preventDefault();
|
|
484
|
+
const delta = isShrinkKey(event_2.key) ? -ARROW_KEY_STEP : ARROW_KEY_STEP;
|
|
485
|
+
if (!isDraggingRef.current) {
|
|
486
|
+
startDragging();
|
|
441
487
|
}
|
|
488
|
+
stableOnDrag.current(delta, true);
|
|
442
489
|
};
|
|
443
|
-
$[
|
|
444
|
-
$[
|
|
490
|
+
$[18] = startDragging;
|
|
491
|
+
$[19] = t8;
|
|
445
492
|
} else {
|
|
446
|
-
t8 = $[
|
|
493
|
+
t8 = $[19];
|
|
447
494
|
}
|
|
448
|
-
const
|
|
449
|
-
|
|
495
|
+
const handleKeyDown = t8;
|
|
496
|
+
let t9;
|
|
497
|
+
if ($[20] !== endDragging) {
|
|
498
|
+
t9 = event_3 => {
|
|
499
|
+
if (!isArrowKey(event_3.key)) {
|
|
500
|
+
return;
|
|
501
|
+
}
|
|
502
|
+
event_3.preventDefault();
|
|
503
|
+
endDragging();
|
|
504
|
+
stableOnDragEnd.current();
|
|
505
|
+
};
|
|
506
|
+
$[20] = endDragging;
|
|
507
|
+
$[21] = t9;
|
|
508
|
+
} else {
|
|
509
|
+
t9 = $[21];
|
|
510
|
+
}
|
|
511
|
+
const handleKeyUp = t9;
|
|
450
512
|
let t10;
|
|
451
|
-
|
|
452
|
-
|
|
513
|
+
let t11;
|
|
514
|
+
if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
|
|
515
|
+
t10 = () => () => {
|
|
516
|
+
if (rafIdRef.current !== null) {
|
|
517
|
+
cancelAnimationFrame(rafIdRef.current);
|
|
518
|
+
rafIdRef.current = null;
|
|
519
|
+
}
|
|
520
|
+
};
|
|
521
|
+
t11 = [];
|
|
522
|
+
$[22] = t10;
|
|
523
|
+
$[23] = t11;
|
|
524
|
+
} else {
|
|
525
|
+
t10 = $[22];
|
|
526
|
+
t11 = $[23];
|
|
527
|
+
}
|
|
528
|
+
React.useEffect(t10, t11);
|
|
529
|
+
const t12 = ariaValueNow !== undefined ? `Pane width ${ariaValueNow} pixels` : undefined;
|
|
530
|
+
let t13;
|
|
531
|
+
if ($[24] !== ariaValueMax || $[25] !== ariaValueMin || $[26] !== ariaValueNow || $[27] !== handleKeyDown || $[28] !== handleKeyUp || $[29] !== handleLostPointerCapture || $[30] !== handlePointerDown || $[31] !== handleRef || $[32] !== onDoubleClick || $[33] !== t12) {
|
|
532
|
+
t13 = /*#__PURE__*/jsx("div", {
|
|
453
533
|
ref: handleRef,
|
|
454
534
|
className: classes.DraggableHandle,
|
|
455
535
|
role: "slider",
|
|
@@ -457,7 +537,7 @@ const DragHandle = t0 => {
|
|
|
457
537
|
"aria-valuemin": ariaValueMin,
|
|
458
538
|
"aria-valuemax": ariaValueMax,
|
|
459
539
|
"aria-valuenow": ariaValueNow,
|
|
460
|
-
"aria-valuetext":
|
|
540
|
+
"aria-valuetext": t12,
|
|
461
541
|
tabIndex: 0,
|
|
462
542
|
onPointerDown: handlePointerDown,
|
|
463
543
|
onPointerMove: handlePointerMove,
|
|
@@ -467,24 +547,22 @@ const DragHandle = t0 => {
|
|
|
467
547
|
onKeyUp: handleKeyUp,
|
|
468
548
|
onDoubleClick: onDoubleClick
|
|
469
549
|
});
|
|
470
|
-
$[
|
|
471
|
-
$[
|
|
472
|
-
$[
|
|
473
|
-
$[
|
|
474
|
-
$[
|
|
475
|
-
$[
|
|
476
|
-
$[
|
|
477
|
-
$[
|
|
478
|
-
$[
|
|
479
|
-
$[
|
|
480
|
-
$[
|
|
481
|
-
|
|
482
|
-
$[
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
return t10;
|
|
487
|
-
};
|
|
550
|
+
$[24] = ariaValueMax;
|
|
551
|
+
$[25] = ariaValueMin;
|
|
552
|
+
$[26] = ariaValueNow;
|
|
553
|
+
$[27] = handleKeyDown;
|
|
554
|
+
$[28] = handleKeyUp;
|
|
555
|
+
$[29] = handleLostPointerCapture;
|
|
556
|
+
$[30] = handlePointerDown;
|
|
557
|
+
$[31] = handleRef;
|
|
558
|
+
$[32] = onDoubleClick;
|
|
559
|
+
$[33] = t12;
|
|
560
|
+
$[34] = t13;
|
|
561
|
+
} else {
|
|
562
|
+
t13 = $[34];
|
|
563
|
+
}
|
|
564
|
+
return t13;
|
|
565
|
+
});
|
|
488
566
|
|
|
489
567
|
// ----------------------------------------------------------------------------
|
|
490
568
|
// PageLayout.Header
|
|
@@ -627,7 +705,7 @@ const Header = t0 => {
|
|
|
627
705
|
};
|
|
628
706
|
Header.displayName = 'PageLayout.Header';
|
|
629
707
|
const Content = t0 => {
|
|
630
|
-
const $ = c(
|
|
708
|
+
const $ = c(19);
|
|
631
709
|
const {
|
|
632
710
|
as: t1,
|
|
633
711
|
"aria-label": label,
|
|
@@ -644,6 +722,9 @@ const Content = t0 => {
|
|
|
644
722
|
const padding = t3 === undefined ? "none" : t3;
|
|
645
723
|
const hidden = t4 === undefined ? false : t4;
|
|
646
724
|
const Component = as;
|
|
725
|
+
const {
|
|
726
|
+
contentWrapperRef
|
|
727
|
+
} = React.useContext(PageLayoutContext);
|
|
647
728
|
let t5;
|
|
648
729
|
if ($[0] !== className) {
|
|
649
730
|
t5 = clsx(classes.ContentWrapper, className);
|
|
@@ -688,8 +769,9 @@ const Content = t0 => {
|
|
|
688
769
|
t10 = $[9];
|
|
689
770
|
}
|
|
690
771
|
let t11;
|
|
691
|
-
if ($[10] !== Component || $[11] !==
|
|
772
|
+
if ($[10] !== Component || $[11] !== contentWrapperRef || $[12] !== label || $[13] !== labelledBy || $[14] !== style || $[15] !== t10 || $[16] !== t5 || $[17] !== t6) {
|
|
692
773
|
t11 = /*#__PURE__*/jsx(Component, {
|
|
774
|
+
ref: contentWrapperRef,
|
|
693
775
|
"aria-label": label,
|
|
694
776
|
"aria-labelledby": labelledBy,
|
|
695
777
|
style: style,
|
|
@@ -698,15 +780,16 @@ const Content = t0 => {
|
|
|
698
780
|
children: t10
|
|
699
781
|
});
|
|
700
782
|
$[10] = Component;
|
|
701
|
-
$[11] =
|
|
702
|
-
$[12] =
|
|
703
|
-
$[13] =
|
|
704
|
-
$[14] =
|
|
705
|
-
$[15] =
|
|
706
|
-
$[16] =
|
|
707
|
-
$[17] =
|
|
783
|
+
$[11] = contentWrapperRef;
|
|
784
|
+
$[12] = label;
|
|
785
|
+
$[13] = labelledBy;
|
|
786
|
+
$[14] = style;
|
|
787
|
+
$[15] = t10;
|
|
788
|
+
$[16] = t5;
|
|
789
|
+
$[17] = t6;
|
|
790
|
+
$[18] = t11;
|
|
708
791
|
} else {
|
|
709
|
-
t11 = $[
|
|
792
|
+
t11 = $[18];
|
|
710
793
|
}
|
|
711
794
|
return t11;
|
|
712
795
|
};
|
|
@@ -716,7 +799,7 @@ const overflowProps = {
|
|
|
716
799
|
role: 'region'
|
|
717
800
|
};
|
|
718
801
|
const Pane = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
719
|
-
const $ = c(
|
|
802
|
+
const $ = c(93);
|
|
720
803
|
const {
|
|
721
804
|
"aria-label": label,
|
|
722
805
|
"aria-labelledby": labelledBy,
|
|
@@ -796,30 +879,33 @@ const Pane = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
|
796
879
|
const {
|
|
797
880
|
rowGap,
|
|
798
881
|
columnGap,
|
|
799
|
-
paneRef
|
|
882
|
+
paneRef,
|
|
883
|
+
contentWrapperRef
|
|
800
884
|
} = React.useContext(PageLayoutContext);
|
|
801
885
|
const handleRef = React.useRef(null);
|
|
802
886
|
const dragStartClientXRef = React.useRef(0);
|
|
803
887
|
const dragStartWidthRef = React.useRef(0);
|
|
804
888
|
const dragMaxWidthRef = React.useRef(0);
|
|
805
889
|
let t17;
|
|
806
|
-
if ($[10] !==
|
|
890
|
+
if ($[10] !== contentWrapperRef || $[11] !== minWidth || $[12] !== paneRef || $[13] !== resizable || $[14] !== width || $[15] !== widthStorageKey) {
|
|
807
891
|
t17 = {
|
|
808
892
|
width,
|
|
809
893
|
minWidth,
|
|
810
894
|
resizable,
|
|
811
895
|
widthStorageKey,
|
|
812
896
|
paneRef,
|
|
813
|
-
handleRef
|
|
897
|
+
handleRef,
|
|
898
|
+
contentWrapperRef
|
|
814
899
|
};
|
|
815
|
-
$[10] =
|
|
816
|
-
$[11] =
|
|
817
|
-
$[12] =
|
|
818
|
-
$[13] =
|
|
819
|
-
$[14] =
|
|
820
|
-
$[15] =
|
|
900
|
+
$[10] = contentWrapperRef;
|
|
901
|
+
$[11] = minWidth;
|
|
902
|
+
$[12] = paneRef;
|
|
903
|
+
$[13] = resizable;
|
|
904
|
+
$[14] = width;
|
|
905
|
+
$[15] = widthStorageKey;
|
|
906
|
+
$[16] = t17;
|
|
821
907
|
} else {
|
|
822
|
-
t17 = $[
|
|
908
|
+
t17 = $[16];
|
|
823
909
|
}
|
|
824
910
|
const {
|
|
825
911
|
currentWidth,
|
|
@@ -834,7 +920,7 @@ const Pane = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
|
834
920
|
const hasOverflow = useOverflow(paneRef);
|
|
835
921
|
const paneId = useId(id);
|
|
836
922
|
let labelProp;
|
|
837
|
-
if ($[
|
|
923
|
+
if ($[17] !== hasOverflow || $[18] !== label || $[19] !== labelledBy) {
|
|
838
924
|
labelProp = {};
|
|
839
925
|
if (hasOverflow) {
|
|
840
926
|
process.env.NODE_ENV !== "production" ? warning(label === undefined && labelledBy === undefined, "The <PageLayout.Pane> has overflow and `aria-label` or `aria-labelledby` has not been set. Please provide `aria-label` or `aria-labelledby` to <PageLayout.Pane> in order to label this region.") : void 0;
|
|
@@ -846,115 +932,115 @@ const Pane = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
|
846
932
|
}
|
|
847
933
|
}
|
|
848
934
|
}
|
|
849
|
-
$[
|
|
850
|
-
$[
|
|
851
|
-
$[
|
|
852
|
-
$[
|
|
935
|
+
$[17] = hasOverflow;
|
|
936
|
+
$[18] = label;
|
|
937
|
+
$[19] = labelledBy;
|
|
938
|
+
$[20] = labelProp;
|
|
853
939
|
} else {
|
|
854
|
-
labelProp = $[
|
|
940
|
+
labelProp = $[20];
|
|
855
941
|
}
|
|
856
942
|
let t18;
|
|
857
|
-
if ($[
|
|
943
|
+
if ($[21] !== className) {
|
|
858
944
|
t18 = clsx(classes.PaneWrapper, className);
|
|
859
|
-
$[
|
|
860
|
-
$[
|
|
945
|
+
$[21] = className;
|
|
946
|
+
$[22] = t18;
|
|
861
947
|
} else {
|
|
862
|
-
t18 = $[
|
|
948
|
+
t18 = $[22];
|
|
863
949
|
}
|
|
864
950
|
const t19 = typeof offsetHeader === "number" ? `${offsetHeader}px` : offsetHeader;
|
|
865
951
|
const t20 = `var(--spacing-${rowGap})`;
|
|
866
952
|
const t21 = `var(--spacing-${columnGap})`;
|
|
867
953
|
let t22;
|
|
868
|
-
if ($[
|
|
954
|
+
if ($[23] !== style || $[24] !== t19 || $[25] !== t20 || $[26] !== t21) {
|
|
869
955
|
t22 = {
|
|
870
956
|
"--offset-header": t19,
|
|
871
957
|
"--spacing-row": t20,
|
|
872
958
|
"--spacing-column": t21,
|
|
873
959
|
...style
|
|
874
960
|
};
|
|
875
|
-
$[
|
|
876
|
-
$[
|
|
877
|
-
$[
|
|
878
|
-
$[
|
|
879
|
-
$[
|
|
961
|
+
$[23] = style;
|
|
962
|
+
$[24] = t19;
|
|
963
|
+
$[25] = t20;
|
|
964
|
+
$[26] = t21;
|
|
965
|
+
$[27] = t22;
|
|
880
966
|
} else {
|
|
881
|
-
t22 = $[
|
|
967
|
+
t22 = $[27];
|
|
882
968
|
}
|
|
883
969
|
const t23 = t22;
|
|
884
970
|
let t24;
|
|
885
|
-
if ($[
|
|
971
|
+
if ($[28] !== responsiveHidden) {
|
|
886
972
|
t24 = getResponsiveAttributes("is-hidden", responsiveHidden);
|
|
887
|
-
$[
|
|
888
|
-
$[
|
|
973
|
+
$[28] = responsiveHidden;
|
|
974
|
+
$[29] = t24;
|
|
889
975
|
} else {
|
|
890
|
-
t24 = $[
|
|
976
|
+
t24 = $[29];
|
|
891
977
|
}
|
|
892
978
|
let t25;
|
|
893
|
-
if ($[
|
|
979
|
+
if ($[30] !== positionProp) {
|
|
894
980
|
t25 = getResponsiveAttributes("position", positionProp);
|
|
895
|
-
$[
|
|
896
|
-
$[
|
|
981
|
+
$[30] = positionProp;
|
|
982
|
+
$[31] = t25;
|
|
897
983
|
} else {
|
|
898
|
-
t25 = $[
|
|
984
|
+
t25 = $[31];
|
|
899
985
|
}
|
|
900
986
|
const t26 = sticky || undefined;
|
|
901
987
|
let t27;
|
|
902
|
-
if ($[
|
|
988
|
+
if ($[32] !== dividerProp || $[33] !== dividerVariant) {
|
|
903
989
|
t27 = isResponsiveValue(dividerProp) ? dividerProp : {
|
|
904
990
|
narrow: dividerVariant,
|
|
905
991
|
regular: "none"
|
|
906
992
|
};
|
|
907
|
-
$[
|
|
908
|
-
$[
|
|
909
|
-
$[
|
|
993
|
+
$[32] = dividerProp;
|
|
994
|
+
$[33] = dividerVariant;
|
|
995
|
+
$[34] = t27;
|
|
910
996
|
} else {
|
|
911
|
-
t27 = $[
|
|
997
|
+
t27 = $[34];
|
|
912
998
|
}
|
|
913
999
|
const t28 = `var(--spacing-${rowGap})`;
|
|
914
1000
|
let t29;
|
|
915
|
-
if ($[
|
|
1001
|
+
if ($[35] !== t28) {
|
|
916
1002
|
t29 = {
|
|
917
1003
|
"--spacing": t28
|
|
918
1004
|
};
|
|
919
|
-
$[
|
|
920
|
-
$[
|
|
1005
|
+
$[35] = t28;
|
|
1006
|
+
$[36] = t29;
|
|
921
1007
|
} else {
|
|
922
|
-
t29 = $[
|
|
1008
|
+
t29 = $[36];
|
|
923
1009
|
}
|
|
924
1010
|
const t30 = t29;
|
|
925
1011
|
let t31;
|
|
926
|
-
if ($[
|
|
1012
|
+
if ($[37] !== positionProp || $[38] !== t27 || $[39] !== t30) {
|
|
927
1013
|
t31 = /*#__PURE__*/jsx(HorizontalDivider, {
|
|
928
1014
|
variant: t27,
|
|
929
1015
|
className: classes.PaneHorizontalDivider,
|
|
930
1016
|
style: t30,
|
|
931
1017
|
position: positionProp
|
|
932
1018
|
});
|
|
933
|
-
$[
|
|
934
|
-
$[
|
|
935
|
-
$[
|
|
936
|
-
$[
|
|
1019
|
+
$[37] = positionProp;
|
|
1020
|
+
$[38] = t27;
|
|
1021
|
+
$[39] = t30;
|
|
1022
|
+
$[40] = t31;
|
|
937
1023
|
} else {
|
|
938
|
-
t31 = $[
|
|
1024
|
+
t31 = $[40];
|
|
939
1025
|
}
|
|
940
1026
|
let t32;
|
|
941
|
-
if ($[
|
|
1027
|
+
if ($[41] !== hasOverflow) {
|
|
942
1028
|
t32 = hasOverflow ? overflowProps : {};
|
|
943
|
-
$[
|
|
944
|
-
$[
|
|
1029
|
+
$[41] = hasOverflow;
|
|
1030
|
+
$[42] = t32;
|
|
945
1031
|
} else {
|
|
946
|
-
t32 = $[
|
|
1032
|
+
t32 = $[42];
|
|
947
1033
|
}
|
|
948
1034
|
let t33;
|
|
949
|
-
if ($[
|
|
1035
|
+
if ($[43] !== id || $[44] !== paneId) {
|
|
950
1036
|
t33 = id && {
|
|
951
1037
|
id: paneId
|
|
952
1038
|
};
|
|
953
|
-
$[
|
|
954
|
-
$[
|
|
955
|
-
$[
|
|
1039
|
+
$[43] = id;
|
|
1040
|
+
$[44] = paneId;
|
|
1041
|
+
$[45] = t33;
|
|
956
1042
|
} else {
|
|
957
|
-
t33 = $[
|
|
1043
|
+
t33 = $[45];
|
|
958
1044
|
}
|
|
959
1045
|
const t34 = resizable || undefined;
|
|
960
1046
|
const t35 = `var(--spacing-${padding})`;
|
|
@@ -964,7 +1050,7 @@ const Pane = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
|
964
1050
|
const t39 = `var(--pane-width-${isPaneWidth(width) ? width : "custom"})`;
|
|
965
1051
|
const t40 = `${currentWidth}px`;
|
|
966
1052
|
let t41;
|
|
967
|
-
if ($[
|
|
1053
|
+
if ($[46] !== t35 || $[47] !== t36 || $[48] !== t37 || $[49] !== t38 || $[50] !== t39 || $[51] !== t40) {
|
|
968
1054
|
t41 = {
|
|
969
1055
|
"--spacing": t35,
|
|
970
1056
|
"--pane-min-width": t36,
|
|
@@ -973,19 +1059,19 @@ const Pane = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
|
973
1059
|
"--pane-width-size": t39,
|
|
974
1060
|
"--pane-width": t40
|
|
975
1061
|
};
|
|
976
|
-
$[
|
|
977
|
-
$[
|
|
978
|
-
$[
|
|
979
|
-
$[
|
|
980
|
-
$[
|
|
981
|
-
$[
|
|
982
|
-
$[
|
|
1062
|
+
$[46] = t35;
|
|
1063
|
+
$[47] = t36;
|
|
1064
|
+
$[48] = t37;
|
|
1065
|
+
$[49] = t38;
|
|
1066
|
+
$[50] = t39;
|
|
1067
|
+
$[51] = t40;
|
|
1068
|
+
$[52] = t41;
|
|
983
1069
|
} else {
|
|
984
|
-
t41 = $[
|
|
1070
|
+
t41 = $[52];
|
|
985
1071
|
}
|
|
986
1072
|
const t42 = t41;
|
|
987
1073
|
let t43;
|
|
988
|
-
if ($[
|
|
1074
|
+
if ($[53] !== children || $[54] !== labelProp || $[55] !== paneRef || $[56] !== t32 || $[57] !== t33 || $[58] !== t34 || $[59] !== t42) {
|
|
989
1075
|
t43 = /*#__PURE__*/jsx("div", {
|
|
990
1076
|
ref: paneRef,
|
|
991
1077
|
suppressHydrationWarning: true,
|
|
@@ -997,19 +1083,19 @@ const Pane = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
|
997
1083
|
style: t42,
|
|
998
1084
|
children: children
|
|
999
1085
|
});
|
|
1000
|
-
$[
|
|
1001
|
-
$[
|
|
1002
|
-
$[
|
|
1003
|
-
$[
|
|
1004
|
-
$[
|
|
1005
|
-
$[
|
|
1006
|
-
$[
|
|
1007
|
-
$[
|
|
1086
|
+
$[53] = children;
|
|
1087
|
+
$[54] = labelProp;
|
|
1088
|
+
$[55] = paneRef;
|
|
1089
|
+
$[56] = t32;
|
|
1090
|
+
$[57] = t33;
|
|
1091
|
+
$[58] = t34;
|
|
1092
|
+
$[59] = t42;
|
|
1093
|
+
$[60] = t43;
|
|
1008
1094
|
} else {
|
|
1009
|
-
t43 = $[
|
|
1095
|
+
t43 = $[60];
|
|
1010
1096
|
}
|
|
1011
1097
|
let t44;
|
|
1012
|
-
if ($[
|
|
1098
|
+
if ($[61] !== dividerProp || $[62] !== dividerVariant || $[63] !== resizable) {
|
|
1013
1099
|
t44 = isResponsiveValue(dividerProp) ? {
|
|
1014
1100
|
narrow: "none",
|
|
1015
1101
|
regular: resizable ? "line" : dividerProp.regular || "none",
|
|
@@ -1018,27 +1104,27 @@ const Pane = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
|
1018
1104
|
narrow: "none",
|
|
1019
1105
|
regular: resizable ? "line" : dividerVariant
|
|
1020
1106
|
};
|
|
1021
|
-
$[
|
|
1022
|
-
$[
|
|
1023
|
-
$[
|
|
1024
|
-
$[
|
|
1107
|
+
$[61] = dividerProp;
|
|
1108
|
+
$[62] = dividerVariant;
|
|
1109
|
+
$[63] = resizable;
|
|
1110
|
+
$[64] = t44;
|
|
1025
1111
|
} else {
|
|
1026
|
-
t44 = $[
|
|
1112
|
+
t44 = $[64];
|
|
1027
1113
|
}
|
|
1028
1114
|
const t45 = `var(--spacing-${columnGap})`;
|
|
1029
1115
|
let t46;
|
|
1030
|
-
if ($[
|
|
1116
|
+
if ($[65] !== t45) {
|
|
1031
1117
|
t46 = {
|
|
1032
1118
|
"--spacing": t45
|
|
1033
1119
|
};
|
|
1034
|
-
$[
|
|
1035
|
-
$[
|
|
1120
|
+
$[65] = t45;
|
|
1121
|
+
$[66] = t46;
|
|
1036
1122
|
} else {
|
|
1037
|
-
t46 = $[
|
|
1123
|
+
t46 = $[66];
|
|
1038
1124
|
}
|
|
1039
1125
|
const t47 = t46;
|
|
1040
1126
|
let t48;
|
|
1041
|
-
if ($[
|
|
1127
|
+
if ($[67] !== currentWidth || $[68] !== currentWidthRef || $[69] !== getDefaultWidth || $[70] !== getMaxPaneWidth || $[71] !== maxPaneWidth || $[72] !== minPaneWidth || $[73] !== paneRef || $[74] !== position || $[75] !== resizable || $[76] !== saveWidth) {
|
|
1042
1128
|
t48 = resizable ? /*#__PURE__*/jsx(DragHandle, {
|
|
1043
1129
|
handleRef: handleRef,
|
|
1044
1130
|
"aria-valuemin": minPaneWidth,
|
|
@@ -1096,22 +1182,22 @@ const Pane = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
|
1096
1182
|
saveWidth(resetWidth);
|
|
1097
1183
|
}
|
|
1098
1184
|
}) : null;
|
|
1099
|
-
$[
|
|
1100
|
-
$[
|
|
1101
|
-
$[
|
|
1102
|
-
$[
|
|
1103
|
-
$[
|
|
1104
|
-
$[
|
|
1105
|
-
$[
|
|
1106
|
-
$[
|
|
1107
|
-
$[
|
|
1108
|
-
$[
|
|
1109
|
-
$[
|
|
1110
|
-
} else {
|
|
1111
|
-
t48 = $[
|
|
1185
|
+
$[67] = currentWidth;
|
|
1186
|
+
$[68] = currentWidthRef;
|
|
1187
|
+
$[69] = getDefaultWidth;
|
|
1188
|
+
$[70] = getMaxPaneWidth;
|
|
1189
|
+
$[71] = maxPaneWidth;
|
|
1190
|
+
$[72] = minPaneWidth;
|
|
1191
|
+
$[73] = paneRef;
|
|
1192
|
+
$[74] = position;
|
|
1193
|
+
$[75] = resizable;
|
|
1194
|
+
$[76] = saveWidth;
|
|
1195
|
+
$[77] = t48;
|
|
1196
|
+
} else {
|
|
1197
|
+
t48 = $[77];
|
|
1112
1198
|
}
|
|
1113
1199
|
let t49;
|
|
1114
|
-
if ($[
|
|
1200
|
+
if ($[78] !== positionProp || $[79] !== resizable || $[80] !== t44 || $[81] !== t47 || $[82] !== t48) {
|
|
1115
1201
|
t49 = /*#__PURE__*/jsx(VerticalDivider, {
|
|
1116
1202
|
variant: t44,
|
|
1117
1203
|
draggable: resizable,
|
|
@@ -1120,17 +1206,17 @@ const Pane = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
|
1120
1206
|
style: t47,
|
|
1121
1207
|
children: t48
|
|
1122
1208
|
});
|
|
1123
|
-
$[
|
|
1124
|
-
$[
|
|
1125
|
-
$[
|
|
1126
|
-
$[
|
|
1127
|
-
$[
|
|
1128
|
-
$[
|
|
1209
|
+
$[78] = positionProp;
|
|
1210
|
+
$[79] = resizable;
|
|
1211
|
+
$[80] = t44;
|
|
1212
|
+
$[81] = t47;
|
|
1213
|
+
$[82] = t48;
|
|
1214
|
+
$[83] = t49;
|
|
1129
1215
|
} else {
|
|
1130
|
-
t49 = $[
|
|
1216
|
+
t49 = $[83];
|
|
1131
1217
|
}
|
|
1132
1218
|
let t50;
|
|
1133
|
-
if ($[
|
|
1219
|
+
if ($[84] !== t18 || $[85] !== t23 || $[86] !== t24 || $[87] !== t25 || $[88] !== t26 || $[89] !== t31 || $[90] !== t43 || $[91] !== t49) {
|
|
1134
1220
|
t50 = /*#__PURE__*/jsxs("div", {
|
|
1135
1221
|
className: t18,
|
|
1136
1222
|
style: t23,
|
|
@@ -1139,17 +1225,17 @@ const Pane = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
|
1139
1225
|
"data-sticky": t26,
|
|
1140
1226
|
children: [t31, t43, t49]
|
|
1141
1227
|
});
|
|
1142
|
-
$[
|
|
1143
|
-
$[
|
|
1144
|
-
$[
|
|
1145
|
-
$[
|
|
1146
|
-
$[
|
|
1147
|
-
$[
|
|
1148
|
-
$[
|
|
1149
|
-
$[
|
|
1150
|
-
$[
|
|
1151
|
-
} else {
|
|
1152
|
-
t50 = $[
|
|
1228
|
+
$[84] = t18;
|
|
1229
|
+
$[85] = t23;
|
|
1230
|
+
$[86] = t24;
|
|
1231
|
+
$[87] = t25;
|
|
1232
|
+
$[88] = t26;
|
|
1233
|
+
$[89] = t31;
|
|
1234
|
+
$[90] = t43;
|
|
1235
|
+
$[91] = t49;
|
|
1236
|
+
$[92] = t50;
|
|
1237
|
+
} else {
|
|
1238
|
+
t50 = $[92];
|
|
1153
1239
|
}
|
|
1154
1240
|
return t50;
|
|
1155
1241
|
});
|