@primer/react 0.0.0-20260710212146 → 0.0.0-20260714134147
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 +15 -5
- package/dist/ActionBar/ActionBar.js +1 -1
- package/dist/PageLayout/DragHandle.d.ts +38 -0
- package/dist/PageLayout/DragHandle.js +220 -0
- package/dist/PageLayout/PageLayout.js +67 -260
- package/dist/PageLayout/index.d.ts +3 -1
- package/dist/PageLayout/usePaneWidth.d.ts +55 -1
- package/dist/PageLayout/usePaneWidth.js +10 -5
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
# @primer/react
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
3
|
+
## 0.0.0-20260714134147
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#8160](https://github.com/primer/react/pull/8160) [`74c731b`](https://github.com/primer/react/commit/74c731b16478bd328eb44ca87d4eb66d43f56fd8) Thanks [@TylerJDev](https://github.com/TylerJDev)! - PageLayout: Export the resize primitives `usePaneWidth` and `DragHandle` (with `defaultPaneWidth` and related types) so pane-resize behavior can be reused outside of `PageLayout`.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [#8064](https://github.com/primer/react/pull/8064) [`eb447fe`](https://github.com/primer/react/commit/eb447fef0f1565934dc38d09df21d8063957aa9d) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Update the ActionBar overflow menu anchor label to `More items`
|
|
12
|
+
|
|
13
|
+
- Fake entry to force publishing
|
|
14
|
+
|
|
15
|
+
- [#8116](https://github.com/primer/react/pull/8116) [`cade4af`](https://github.com/primer/react/commit/cade4af9a70f3fd2622031af585dc07dccd79e11) Thanks [@mattcosta7](https://github.com/mattcosta7)! - `useAnchoredPosition`: improve performance by caching the scrollable-ancestor walk per anchor, reducing repositioning work for overlays, menus, and tooltips.
|
|
16
|
+
|
|
17
|
+
## 38.32.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
6
20
|
|
|
@@ -19,10 +33,6 @@
|
|
|
19
33
|
|
|
20
34
|
### Patch Changes
|
|
21
35
|
|
|
22
|
-
- Fake entry to force publishing
|
|
23
|
-
|
|
24
|
-
- [#8116](https://github.com/primer/react/pull/8116) [`064b105`](https://github.com/primer/react/commit/064b105604e31486806b8f4ab432540aaca10465) Thanks [@mattcosta7](https://github.com/mattcosta7)! - `useAnchoredPosition`: improve performance by caching the scrollable-ancestor walk per anchor, reducing repositioning work for overlays, menus, and tooltips.
|
|
25
|
-
|
|
26
36
|
- [#7901](https://github.com/primer/react/pull/7901) [`8288ed9`](https://github.com/primer/react/commit/8288ed9d88668f93cf3b1eb70ee61edac6217367) Thanks [@mattcosta7](https://github.com/mattcosta7)! - PageHeader: improve rendering performance by removing expensive `:has()` selectors. No visual or API changes.
|
|
27
37
|
|
|
28
38
|
- [#8115](https://github.com/primer/react/pull/8115) [`07c530a`](https://github.com/primer/react/commit/07c530a1686ef16b68b2f2fe692b7a3327bdc02b) Thanks [@mattcosta7](https://github.com/mattcosta7)! - Improve rendering performance in Safari by removing expensive `:has()` selectors from ActionList/NavList, Breadcrumbs, SelectPanel, and SegmentedControl. No visual or API changes.
|
|
@@ -74,7 +74,7 @@ const ActionBar = ({ size = "medium", children, "aria-label": ariaLabel, "aria-l
|
|
|
74
74
|
})]
|
|
75
75
|
}), /*#__PURE__*/ jsxs(ActionMenu, { children: [/*#__PURE__*/ jsx(ActionMenu.Anchor, { children: /*#__PURE__*/ jsx(IconButton, {
|
|
76
76
|
variant: "invisible",
|
|
77
|
-
"aria-label":
|
|
77
|
+
"aria-label": "More items",
|
|
78
78
|
icon: KebabHorizontalIcon,
|
|
79
79
|
className: ActionBar_module_css_default.MoreButton,
|
|
80
80
|
"data-more-button-inactive": overflowItems !== null && overflowItems !== void 0 && overflowItems.length ? void 0 : true,
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/PageLayout/DragHandle.d.ts
|
|
4
|
+
type DragHandleProps = {
|
|
5
|
+
/** Ref for imperative ARIA updates during drag */handleRef: React.RefObject<HTMLDivElement>; /** Called once when drag starts with initial cursor X position */
|
|
6
|
+
onDragStart: (clientX: number) => void; /** Called on each drag tick with cursor position (pointer) or delta (keyboard) */
|
|
7
|
+
onDrag: (value: number, isKeyboard: boolean) => void; /** Called when drag operation completes */
|
|
8
|
+
onDragEnd: () => void; /** Reset width on double-click */
|
|
9
|
+
onDoubleClick?: React.MouseEventHandler<HTMLDivElement>; /** ARIA slider min value */
|
|
10
|
+
'aria-valuemin'?: number; /** ARIA slider max value */
|
|
11
|
+
'aria-valuemax'?: number; /** ARIA slider current value */
|
|
12
|
+
'aria-valuenow'?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Ref to the element that receives drag-time styling/containment optimizations
|
|
15
|
+
* (e.g. the resizable pane). When omitted, those side effects are skipped.
|
|
16
|
+
*/
|
|
17
|
+
dragTargetRef?: React.RefObject<HTMLElement | null>;
|
|
18
|
+
/**
|
|
19
|
+
* Ref to a content wrapper element that receives drag-time containment.
|
|
20
|
+
* Only needed for layouts (like PageLayout) that optimize sibling content during drag.
|
|
21
|
+
*/
|
|
22
|
+
contentWrapperRef?: React.RefObject<HTMLElement | null>;
|
|
23
|
+
/**
|
|
24
|
+
* Formats the `aria-valuetext` announced for the current width.
|
|
25
|
+
* @default valueNow => `Pane width ${valueNow} pixels`
|
|
26
|
+
*/
|
|
27
|
+
formatValueText?: (valueNow: number) => string; /** Value for the `data-component` attribute. */
|
|
28
|
+
'data-component'?: string;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* DragHandle - handles all pointer and keyboard interactions for resizing.
|
|
32
|
+
* ARIA values are set in JSX for SSR accessibility, then updated via DOM
|
|
33
|
+
* manipulation during drag for performance. The consumer owns writing the width
|
|
34
|
+
* (via the `onDrag` callback); this component only reports interactions.
|
|
35
|
+
*/
|
|
36
|
+
declare const DragHandle: React.NamedExoticComponent<DragHandleProps>;
|
|
37
|
+
//#endregion
|
|
38
|
+
export { DragHandle, DragHandleProps };
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import PageLayout_module_css_default from "./PageLayout.module.css.js";
|
|
2
|
+
import { defaultFormatValueText } from "./usePaneWidth.js";
|
|
3
|
+
import { removeDraggingStyles, setDraggingStyles } from "./paneUtils.js";
|
|
4
|
+
import { c } from "react-compiler-runtime";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import React, { memo } from "react";
|
|
7
|
+
//#region src/PageLayout/DragHandle.tsx
|
|
8
|
+
const isArrowKey = (key) => key === "ArrowLeft" || key === "ArrowRight" || key === "ArrowUp" || key === "ArrowDown";
|
|
9
|
+
const isShrinkKey = (key) => key === "ArrowLeft" || key === "ArrowDown";
|
|
10
|
+
/**
|
|
11
|
+
* DragHandle - handles all pointer and keyboard interactions for resizing.
|
|
12
|
+
* ARIA values are set in JSX for SSR accessibility, then updated via DOM
|
|
13
|
+
* manipulation during drag for performance. The consumer owns writing the width
|
|
14
|
+
* (via the `onDrag` callback); this component only reports interactions.
|
|
15
|
+
*/
|
|
16
|
+
const DragHandle = /*#__PURE__*/ memo(function DragHandle(t0) {
|
|
17
|
+
const $ = c(39);
|
|
18
|
+
const { handleRef, onDragStart, onDrag, onDragEnd, onDoubleClick, "aria-valuemin": ariaValueMin, "aria-valuemax": ariaValueMax, "aria-valuenow": ariaValueNow, dragTargetRef, contentWrapperRef, formatValueText: t1, "data-component": t2 } = t0;
|
|
19
|
+
const formatValueText = t1 === void 0 ? defaultFormatValueText : t1;
|
|
20
|
+
const dataComponent = t2 === void 0 ? "PageLayout.DragHandle" : t2;
|
|
21
|
+
const stableOnDragStart = React.useRef(onDragStart);
|
|
22
|
+
const stableOnDrag = React.useRef(onDrag);
|
|
23
|
+
const stableOnDragEnd = React.useRef(onDragEnd);
|
|
24
|
+
let t3;
|
|
25
|
+
if ($[0] !== onDrag || $[1] !== onDragEnd || $[2] !== onDragStart) {
|
|
26
|
+
t3 = () => {
|
|
27
|
+
stableOnDragStart.current = onDragStart;
|
|
28
|
+
stableOnDrag.current = onDrag;
|
|
29
|
+
stableOnDragEnd.current = onDragEnd;
|
|
30
|
+
};
|
|
31
|
+
$[0] = onDrag;
|
|
32
|
+
$[1] = onDragEnd;
|
|
33
|
+
$[2] = onDragStart;
|
|
34
|
+
$[3] = t3;
|
|
35
|
+
} else t3 = $[3];
|
|
36
|
+
React.useEffect(t3);
|
|
37
|
+
const isDraggingRef = React.useRef(false);
|
|
38
|
+
let t4;
|
|
39
|
+
if ($[4] !== contentWrapperRef || $[5] !== dragTargetRef || $[6] !== handleRef) {
|
|
40
|
+
t4 = () => {
|
|
41
|
+
var _dragTargetRef$curren, _contentWrapperRef$cu;
|
|
42
|
+
if (isDraggingRef.current) return;
|
|
43
|
+
setDraggingStyles({
|
|
44
|
+
handle: handleRef.current,
|
|
45
|
+
pane: (_dragTargetRef$curren = dragTargetRef === null || dragTargetRef === void 0 ? void 0 : dragTargetRef.current) !== null && _dragTargetRef$curren !== void 0 ? _dragTargetRef$curren : null,
|
|
46
|
+
contentWrapper: (_contentWrapperRef$cu = contentWrapperRef === null || contentWrapperRef === void 0 ? void 0 : contentWrapperRef.current) !== null && _contentWrapperRef$cu !== void 0 ? _contentWrapperRef$cu : null
|
|
47
|
+
});
|
|
48
|
+
isDraggingRef.current = true;
|
|
49
|
+
};
|
|
50
|
+
$[4] = contentWrapperRef;
|
|
51
|
+
$[5] = dragTargetRef;
|
|
52
|
+
$[6] = handleRef;
|
|
53
|
+
$[7] = t4;
|
|
54
|
+
} else t4 = $[7];
|
|
55
|
+
const startDragging = t4;
|
|
56
|
+
let t5;
|
|
57
|
+
if ($[8] !== contentWrapperRef || $[9] !== dragTargetRef || $[10] !== handleRef) {
|
|
58
|
+
t5 = () => {
|
|
59
|
+
var _dragTargetRef$curren2, _contentWrapperRef$cu2;
|
|
60
|
+
if (!isDraggingRef.current) return;
|
|
61
|
+
removeDraggingStyles({
|
|
62
|
+
handle: handleRef.current,
|
|
63
|
+
pane: (_dragTargetRef$curren2 = dragTargetRef === null || dragTargetRef === void 0 ? void 0 : dragTargetRef.current) !== null && _dragTargetRef$curren2 !== void 0 ? _dragTargetRef$curren2 : null,
|
|
64
|
+
contentWrapper: (_contentWrapperRef$cu2 = contentWrapperRef === null || contentWrapperRef === void 0 ? void 0 : contentWrapperRef.current) !== null && _contentWrapperRef$cu2 !== void 0 ? _contentWrapperRef$cu2 : null
|
|
65
|
+
});
|
|
66
|
+
isDraggingRef.current = false;
|
|
67
|
+
};
|
|
68
|
+
$[8] = contentWrapperRef;
|
|
69
|
+
$[9] = dragTargetRef;
|
|
70
|
+
$[10] = handleRef;
|
|
71
|
+
$[11] = t5;
|
|
72
|
+
} else t5 = $[11];
|
|
73
|
+
const endDragging = t5;
|
|
74
|
+
let t6;
|
|
75
|
+
if ($[12] !== startDragging) {
|
|
76
|
+
t6 = (event) => {
|
|
77
|
+
if (event.button !== 0) return;
|
|
78
|
+
event.preventDefault();
|
|
79
|
+
const target = event.currentTarget;
|
|
80
|
+
try {
|
|
81
|
+
target.setPointerCapture(event.pointerId);
|
|
82
|
+
} catch {}
|
|
83
|
+
stableOnDragStart.current(event.clientX);
|
|
84
|
+
startDragging();
|
|
85
|
+
};
|
|
86
|
+
$[12] = startDragging;
|
|
87
|
+
$[13] = t6;
|
|
88
|
+
} else t6 = $[13];
|
|
89
|
+
const handlePointerDown = t6;
|
|
90
|
+
const rafIdRef = React.useRef(null);
|
|
91
|
+
const pendingClientXRef = React.useRef(null);
|
|
92
|
+
let t7;
|
|
93
|
+
if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
|
|
94
|
+
t7 = (event_0) => {
|
|
95
|
+
if (!isDraggingRef.current) return;
|
|
96
|
+
event_0.preventDefault();
|
|
97
|
+
pendingClientXRef.current = event_0.clientX;
|
|
98
|
+
if (rafIdRef.current === null) rafIdRef.current = requestAnimationFrame(() => {
|
|
99
|
+
rafIdRef.current = null;
|
|
100
|
+
if (pendingClientXRef.current !== null) {
|
|
101
|
+
stableOnDrag.current(pendingClientXRef.current, false);
|
|
102
|
+
pendingClientXRef.current = null;
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
};
|
|
106
|
+
$[14] = t7;
|
|
107
|
+
} else t7 = $[14];
|
|
108
|
+
const handlePointerMove = t7;
|
|
109
|
+
let t8;
|
|
110
|
+
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
111
|
+
t8 = (event_1) => {
|
|
112
|
+
if (!isDraggingRef.current) return;
|
|
113
|
+
event_1.preventDefault();
|
|
114
|
+
};
|
|
115
|
+
$[15] = t8;
|
|
116
|
+
} else t8 = $[15];
|
|
117
|
+
const handlePointerUp = t8;
|
|
118
|
+
let t9;
|
|
119
|
+
if ($[16] !== endDragging) {
|
|
120
|
+
t9 = () => {
|
|
121
|
+
if (!isDraggingRef.current) return;
|
|
122
|
+
if (rafIdRef.current !== null) {
|
|
123
|
+
cancelAnimationFrame(rafIdRef.current);
|
|
124
|
+
rafIdRef.current = null;
|
|
125
|
+
pendingClientXRef.current = null;
|
|
126
|
+
}
|
|
127
|
+
endDragging();
|
|
128
|
+
stableOnDragEnd.current();
|
|
129
|
+
};
|
|
130
|
+
$[16] = endDragging;
|
|
131
|
+
$[17] = t9;
|
|
132
|
+
} else t9 = $[17];
|
|
133
|
+
const handleLostPointerCapture = t9;
|
|
134
|
+
let t10;
|
|
135
|
+
if ($[18] !== startDragging) {
|
|
136
|
+
t10 = (event_2) => {
|
|
137
|
+
if (!isArrowKey(event_2.key)) return;
|
|
138
|
+
event_2.preventDefault();
|
|
139
|
+
const delta = isShrinkKey(event_2.key) ? -3 : 3;
|
|
140
|
+
if (!isDraggingRef.current) startDragging();
|
|
141
|
+
stableOnDrag.current(delta, true);
|
|
142
|
+
};
|
|
143
|
+
$[18] = startDragging;
|
|
144
|
+
$[19] = t10;
|
|
145
|
+
} else t10 = $[19];
|
|
146
|
+
const handleKeyDown = t10;
|
|
147
|
+
let t11;
|
|
148
|
+
if ($[20] !== endDragging) {
|
|
149
|
+
t11 = (event_3) => {
|
|
150
|
+
if (!isArrowKey(event_3.key)) return;
|
|
151
|
+
event_3.preventDefault();
|
|
152
|
+
endDragging();
|
|
153
|
+
stableOnDragEnd.current();
|
|
154
|
+
};
|
|
155
|
+
$[20] = endDragging;
|
|
156
|
+
$[21] = t11;
|
|
157
|
+
} else t11 = $[21];
|
|
158
|
+
const handleKeyUp = t11;
|
|
159
|
+
let t12;
|
|
160
|
+
let t13;
|
|
161
|
+
if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
|
|
162
|
+
t12 = () => () => {
|
|
163
|
+
if (rafIdRef.current !== null) {
|
|
164
|
+
cancelAnimationFrame(rafIdRef.current);
|
|
165
|
+
rafIdRef.current = null;
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
t13 = [];
|
|
169
|
+
$[22] = t12;
|
|
170
|
+
$[23] = t13;
|
|
171
|
+
} else {
|
|
172
|
+
t12 = $[22];
|
|
173
|
+
t13 = $[23];
|
|
174
|
+
}
|
|
175
|
+
React.useEffect(t12, t13);
|
|
176
|
+
let t14;
|
|
177
|
+
if ($[24] !== ariaValueNow || $[25] !== formatValueText) {
|
|
178
|
+
t14 = ariaValueNow !== void 0 ? formatValueText(ariaValueNow) : void 0;
|
|
179
|
+
$[24] = ariaValueNow;
|
|
180
|
+
$[25] = formatValueText;
|
|
181
|
+
$[26] = t14;
|
|
182
|
+
} else t14 = $[26];
|
|
183
|
+
let t15;
|
|
184
|
+
if ($[27] !== ariaValueMax || $[28] !== ariaValueMin || $[29] !== ariaValueNow || $[30] !== dataComponent || $[31] !== handleKeyDown || $[32] !== handleKeyUp || $[33] !== handleLostPointerCapture || $[34] !== handlePointerDown || $[35] !== handleRef || $[36] !== onDoubleClick || $[37] !== t14) {
|
|
185
|
+
t15 = /*#__PURE__*/ jsx("div", {
|
|
186
|
+
ref: handleRef,
|
|
187
|
+
className: PageLayout_module_css_default.DraggableHandle,
|
|
188
|
+
"data-component": dataComponent,
|
|
189
|
+
role: "slider",
|
|
190
|
+
"aria-label": "Draggable pane splitter",
|
|
191
|
+
"aria-valuemin": ariaValueMin,
|
|
192
|
+
"aria-valuemax": ariaValueMax,
|
|
193
|
+
"aria-valuenow": ariaValueNow,
|
|
194
|
+
"aria-valuetext": t14,
|
|
195
|
+
tabIndex: 0,
|
|
196
|
+
onPointerDown: handlePointerDown,
|
|
197
|
+
onPointerMove: handlePointerMove,
|
|
198
|
+
onPointerUp: handlePointerUp,
|
|
199
|
+
onLostPointerCapture: handleLostPointerCapture,
|
|
200
|
+
onKeyDown: handleKeyDown,
|
|
201
|
+
onKeyUp: handleKeyUp,
|
|
202
|
+
onDoubleClick
|
|
203
|
+
});
|
|
204
|
+
$[27] = ariaValueMax;
|
|
205
|
+
$[28] = ariaValueMin;
|
|
206
|
+
$[29] = ariaValueNow;
|
|
207
|
+
$[30] = dataComponent;
|
|
208
|
+
$[31] = handleKeyDown;
|
|
209
|
+
$[32] = handleKeyUp;
|
|
210
|
+
$[33] = handleLostPointerCapture;
|
|
211
|
+
$[34] = handlePointerDown;
|
|
212
|
+
$[35] = handleRef;
|
|
213
|
+
$[36] = onDoubleClick;
|
|
214
|
+
$[37] = t14;
|
|
215
|
+
$[38] = t15;
|
|
216
|
+
} else t15 = $[38];
|
|
217
|
+
return t15;
|
|
218
|
+
});
|
|
219
|
+
//#endregion
|
|
220
|
+
export { DragHandle };
|
|
@@ -7,14 +7,12 @@ import { useOverflow } from "../hooks/useOverflow.js";
|
|
|
7
7
|
import { getResponsiveAttributes } from "../internal/utils/getResponsiveAttributes.js";
|
|
8
8
|
import PageLayout_module_css_default from "./PageLayout.module.css.js";
|
|
9
9
|
import { isCustomWidthOptions, isPaneWidth, updateAriaValues, usePaneWidth } from "./usePaneWidth.js";
|
|
10
|
-
import {
|
|
10
|
+
import { DragHandle } from "./DragHandle.js";
|
|
11
11
|
import { c } from "react-compiler-runtime";
|
|
12
12
|
import { clsx } from "clsx";
|
|
13
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
import React, { memo, useRef } from "react";
|
|
15
15
|
//#region src/PageLayout/PageLayout.tsx
|
|
16
|
-
const isArrowKey = (key) => key === "ArrowLeft" || key === "ArrowRight" || key === "ArrowUp" || key === "ArrowDown";
|
|
17
|
-
const isShrinkKey = (key) => key === "ArrowLeft" || key === "ArrowDown";
|
|
18
16
|
const PageLayoutContext = /*#__PURE__*/ React.createContext({
|
|
19
17
|
padding: "normal",
|
|
20
18
|
rowGap: "normal",
|
|
@@ -267,9 +265,9 @@ const VerticalDivider = /*#__PURE__*/ memo((t0) => {
|
|
|
267
265
|
});
|
|
268
266
|
VerticalDivider.displayName = "VerticalDivider";
|
|
269
267
|
const SidebarDivider = /*#__PURE__*/ memo(function SidebarDivider(t0) {
|
|
270
|
-
const $ = c(
|
|
268
|
+
const $ = c(24);
|
|
271
269
|
const { position, divider, resizable, minPaneWidth, maxPaneWidth, currentWidth, currentWidthRef, handleRef, sidebarRef, dragStartClientXRef, dragStartWidthRef, dragMaxWidthRef, getMaxPaneWidth, getDefaultWidth, saveWidth } = t0;
|
|
272
|
-
const { columnGap } = React.useContext(PageLayoutContext);
|
|
270
|
+
const { columnGap, paneRef, contentWrapperRef } = React.useContext(PageLayoutContext);
|
|
273
271
|
const t1 = resizable ? "line" : divider;
|
|
274
272
|
const t2 = `var(--spacing-${columnGap})`;
|
|
275
273
|
let t3;
|
|
@@ -280,9 +278,11 @@ const SidebarDivider = /*#__PURE__*/ memo(function SidebarDivider(t0) {
|
|
|
280
278
|
} else t3 = $[1];
|
|
281
279
|
const t4 = t3;
|
|
282
280
|
let t5;
|
|
283
|
-
if ($[2] !==
|
|
281
|
+
if ($[2] !== contentWrapperRef || $[3] !== currentWidth || $[4] !== currentWidthRef || $[5] !== dragMaxWidthRef || $[6] !== dragStartClientXRef || $[7] !== dragStartWidthRef || $[8] !== getDefaultWidth || $[9] !== getMaxPaneWidth || $[10] !== handleRef || $[11] !== maxPaneWidth || $[12] !== minPaneWidth || $[13] !== paneRef || $[14] !== position || $[15] !== resizable || $[16] !== saveWidth || $[17] !== sidebarRef) {
|
|
284
282
|
t5 = resizable ? /*#__PURE__*/ jsx(DragHandle, {
|
|
285
283
|
handleRef,
|
|
284
|
+
dragTargetRef: paneRef,
|
|
285
|
+
contentWrapperRef,
|
|
286
286
|
"aria-valuemin": minPaneWidth,
|
|
287
287
|
"aria-valuemax": maxPaneWidth,
|
|
288
288
|
"aria-valuenow": currentWidth,
|
|
@@ -334,24 +334,26 @@ const SidebarDivider = /*#__PURE__*/ memo(function SidebarDivider(t0) {
|
|
|
334
334
|
saveWidth(resetWidth);
|
|
335
335
|
}
|
|
336
336
|
}) : null;
|
|
337
|
-
$[2] =
|
|
338
|
-
$[3] =
|
|
339
|
-
$[4] =
|
|
340
|
-
$[5] =
|
|
341
|
-
$[6] =
|
|
342
|
-
$[7] =
|
|
343
|
-
$[8] =
|
|
344
|
-
$[9] =
|
|
345
|
-
$[10] =
|
|
346
|
-
$[11] =
|
|
347
|
-
$[12] =
|
|
348
|
-
$[13] =
|
|
349
|
-
$[14] =
|
|
350
|
-
$[15] =
|
|
351
|
-
$[16] =
|
|
352
|
-
|
|
337
|
+
$[2] = contentWrapperRef;
|
|
338
|
+
$[3] = currentWidth;
|
|
339
|
+
$[4] = currentWidthRef;
|
|
340
|
+
$[5] = dragMaxWidthRef;
|
|
341
|
+
$[6] = dragStartClientXRef;
|
|
342
|
+
$[7] = dragStartWidthRef;
|
|
343
|
+
$[8] = getDefaultWidth;
|
|
344
|
+
$[9] = getMaxPaneWidth;
|
|
345
|
+
$[10] = handleRef;
|
|
346
|
+
$[11] = maxPaneWidth;
|
|
347
|
+
$[12] = minPaneWidth;
|
|
348
|
+
$[13] = paneRef;
|
|
349
|
+
$[14] = position;
|
|
350
|
+
$[15] = resizable;
|
|
351
|
+
$[16] = saveWidth;
|
|
352
|
+
$[17] = sidebarRef;
|
|
353
|
+
$[18] = t5;
|
|
354
|
+
} else t5 = $[18];
|
|
353
355
|
let t6;
|
|
354
|
-
if ($[
|
|
356
|
+
if ($[19] !== position || $[20] !== t1 || $[21] !== t4 || $[22] !== t5) {
|
|
355
357
|
t6 = /*#__PURE__*/ jsx(VerticalDivider, {
|
|
356
358
|
variant: t1,
|
|
357
359
|
position,
|
|
@@ -359,212 +361,14 @@ const SidebarDivider = /*#__PURE__*/ memo(function SidebarDivider(t0) {
|
|
|
359
361
|
style: t4,
|
|
360
362
|
children: t5
|
|
361
363
|
});
|
|
362
|
-
$[
|
|
363
|
-
$[
|
|
364
|
-
$[
|
|
365
|
-
$[
|
|
366
|
-
$[
|
|
367
|
-
} else t6 = $[
|
|
364
|
+
$[19] = position;
|
|
365
|
+
$[20] = t1;
|
|
366
|
+
$[21] = t4;
|
|
367
|
+
$[22] = t5;
|
|
368
|
+
$[23] = t6;
|
|
369
|
+
} else t6 = $[23];
|
|
368
370
|
return t6;
|
|
369
371
|
});
|
|
370
|
-
/**
|
|
371
|
-
* DragHandle - handles all pointer and keyboard interactions for resizing
|
|
372
|
-
* ARIA values are set in JSX for SSR accessibility,
|
|
373
|
-
* then updated via DOM manipulation during drag for performance
|
|
374
|
-
*/
|
|
375
|
-
const DragHandle = /*#__PURE__*/ memo(function DragHandle(t0) {
|
|
376
|
-
const $ = c(35);
|
|
377
|
-
const { handleRef, onDragStart, onDrag, onDragEnd, onDoubleClick, "aria-valuemin": ariaValueMin, "aria-valuemax": ariaValueMax, "aria-valuenow": ariaValueNow } = t0;
|
|
378
|
-
const stableOnDragStart = React.useRef(onDragStart);
|
|
379
|
-
const stableOnDrag = React.useRef(onDrag);
|
|
380
|
-
const stableOnDragEnd = React.useRef(onDragEnd);
|
|
381
|
-
let t1;
|
|
382
|
-
if ($[0] !== onDrag || $[1] !== onDragEnd || $[2] !== onDragStart) {
|
|
383
|
-
t1 = () => {
|
|
384
|
-
stableOnDragStart.current = onDragStart;
|
|
385
|
-
stableOnDrag.current = onDrag;
|
|
386
|
-
stableOnDragEnd.current = onDragEnd;
|
|
387
|
-
};
|
|
388
|
-
$[0] = onDrag;
|
|
389
|
-
$[1] = onDragEnd;
|
|
390
|
-
$[2] = onDragStart;
|
|
391
|
-
$[3] = t1;
|
|
392
|
-
} else t1 = $[3];
|
|
393
|
-
React.useEffect(t1);
|
|
394
|
-
const { paneRef, contentWrapperRef } = React.useContext(PageLayoutContext);
|
|
395
|
-
const isDraggingRef = React.useRef(false);
|
|
396
|
-
let t2;
|
|
397
|
-
if ($[4] !== contentWrapperRef || $[5] !== handleRef || $[6] !== paneRef) {
|
|
398
|
-
t2 = () => {
|
|
399
|
-
if (isDraggingRef.current) return;
|
|
400
|
-
setDraggingStyles({
|
|
401
|
-
handle: handleRef.current,
|
|
402
|
-
pane: paneRef.current,
|
|
403
|
-
contentWrapper: contentWrapperRef.current
|
|
404
|
-
});
|
|
405
|
-
isDraggingRef.current = true;
|
|
406
|
-
};
|
|
407
|
-
$[4] = contentWrapperRef;
|
|
408
|
-
$[5] = handleRef;
|
|
409
|
-
$[6] = paneRef;
|
|
410
|
-
$[7] = t2;
|
|
411
|
-
} else t2 = $[7];
|
|
412
|
-
const startDragging = t2;
|
|
413
|
-
let t3;
|
|
414
|
-
if ($[8] !== contentWrapperRef || $[9] !== handleRef || $[10] !== paneRef) {
|
|
415
|
-
t3 = () => {
|
|
416
|
-
if (!isDraggingRef.current) return;
|
|
417
|
-
removeDraggingStyles({
|
|
418
|
-
handle: handleRef.current,
|
|
419
|
-
pane: paneRef.current,
|
|
420
|
-
contentWrapper: contentWrapperRef.current
|
|
421
|
-
});
|
|
422
|
-
isDraggingRef.current = false;
|
|
423
|
-
};
|
|
424
|
-
$[8] = contentWrapperRef;
|
|
425
|
-
$[9] = handleRef;
|
|
426
|
-
$[10] = paneRef;
|
|
427
|
-
$[11] = t3;
|
|
428
|
-
} else t3 = $[11];
|
|
429
|
-
const endDragging = t3;
|
|
430
|
-
let t4;
|
|
431
|
-
if ($[12] !== startDragging) {
|
|
432
|
-
t4 = (event) => {
|
|
433
|
-
if (event.button !== 0) return;
|
|
434
|
-
event.preventDefault();
|
|
435
|
-
const target = event.currentTarget;
|
|
436
|
-
try {
|
|
437
|
-
target.setPointerCapture(event.pointerId);
|
|
438
|
-
} catch {}
|
|
439
|
-
stableOnDragStart.current(event.clientX);
|
|
440
|
-
startDragging();
|
|
441
|
-
};
|
|
442
|
-
$[12] = startDragging;
|
|
443
|
-
$[13] = t4;
|
|
444
|
-
} else t4 = $[13];
|
|
445
|
-
const handlePointerDown = t4;
|
|
446
|
-
const rafIdRef = React.useRef(null);
|
|
447
|
-
const pendingClientXRef = React.useRef(null);
|
|
448
|
-
let t5;
|
|
449
|
-
if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
|
|
450
|
-
t5 = (event_0) => {
|
|
451
|
-
if (!isDraggingRef.current) return;
|
|
452
|
-
event_0.preventDefault();
|
|
453
|
-
pendingClientXRef.current = event_0.clientX;
|
|
454
|
-
if (rafIdRef.current === null) rafIdRef.current = requestAnimationFrame(() => {
|
|
455
|
-
rafIdRef.current = null;
|
|
456
|
-
if (pendingClientXRef.current !== null) {
|
|
457
|
-
stableOnDrag.current(pendingClientXRef.current, false);
|
|
458
|
-
pendingClientXRef.current = null;
|
|
459
|
-
}
|
|
460
|
-
});
|
|
461
|
-
};
|
|
462
|
-
$[14] = t5;
|
|
463
|
-
} else t5 = $[14];
|
|
464
|
-
const handlePointerMove = t5;
|
|
465
|
-
let t6;
|
|
466
|
-
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
467
|
-
t6 = (event_1) => {
|
|
468
|
-
if (!isDraggingRef.current) return;
|
|
469
|
-
event_1.preventDefault();
|
|
470
|
-
};
|
|
471
|
-
$[15] = t6;
|
|
472
|
-
} else t6 = $[15];
|
|
473
|
-
const handlePointerUp = t6;
|
|
474
|
-
let t7;
|
|
475
|
-
if ($[16] !== endDragging) {
|
|
476
|
-
t7 = () => {
|
|
477
|
-
if (!isDraggingRef.current) return;
|
|
478
|
-
if (rafIdRef.current !== null) {
|
|
479
|
-
cancelAnimationFrame(rafIdRef.current);
|
|
480
|
-
rafIdRef.current = null;
|
|
481
|
-
pendingClientXRef.current = null;
|
|
482
|
-
}
|
|
483
|
-
endDragging();
|
|
484
|
-
stableOnDragEnd.current();
|
|
485
|
-
};
|
|
486
|
-
$[16] = endDragging;
|
|
487
|
-
$[17] = t7;
|
|
488
|
-
} else t7 = $[17];
|
|
489
|
-
const handleLostPointerCapture = t7;
|
|
490
|
-
let t8;
|
|
491
|
-
if ($[18] !== startDragging) {
|
|
492
|
-
t8 = (event_2) => {
|
|
493
|
-
if (!isArrowKey(event_2.key)) return;
|
|
494
|
-
event_2.preventDefault();
|
|
495
|
-
const delta = isShrinkKey(event_2.key) ? -3 : 3;
|
|
496
|
-
if (!isDraggingRef.current) startDragging();
|
|
497
|
-
stableOnDrag.current(delta, true);
|
|
498
|
-
};
|
|
499
|
-
$[18] = startDragging;
|
|
500
|
-
$[19] = t8;
|
|
501
|
-
} else t8 = $[19];
|
|
502
|
-
const handleKeyDown = t8;
|
|
503
|
-
let t9;
|
|
504
|
-
if ($[20] !== endDragging) {
|
|
505
|
-
t9 = (event_3) => {
|
|
506
|
-
if (!isArrowKey(event_3.key)) return;
|
|
507
|
-
event_3.preventDefault();
|
|
508
|
-
endDragging();
|
|
509
|
-
stableOnDragEnd.current();
|
|
510
|
-
};
|
|
511
|
-
$[20] = endDragging;
|
|
512
|
-
$[21] = t9;
|
|
513
|
-
} else t9 = $[21];
|
|
514
|
-
const handleKeyUp = t9;
|
|
515
|
-
let t10;
|
|
516
|
-
let t11;
|
|
517
|
-
if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
|
|
518
|
-
t10 = () => () => {
|
|
519
|
-
if (rafIdRef.current !== null) {
|
|
520
|
-
cancelAnimationFrame(rafIdRef.current);
|
|
521
|
-
rafIdRef.current = null;
|
|
522
|
-
}
|
|
523
|
-
};
|
|
524
|
-
t11 = [];
|
|
525
|
-
$[22] = t10;
|
|
526
|
-
$[23] = t11;
|
|
527
|
-
} else {
|
|
528
|
-
t10 = $[22];
|
|
529
|
-
t11 = $[23];
|
|
530
|
-
}
|
|
531
|
-
React.useEffect(t10, t11);
|
|
532
|
-
const t12 = ariaValueNow !== void 0 ? `Pane width ${ariaValueNow} pixels` : void 0;
|
|
533
|
-
let t13;
|
|
534
|
-
if ($[24] !== ariaValueMax || $[25] !== ariaValueMin || $[26] !== ariaValueNow || $[27] !== handleKeyDown || $[28] !== handleKeyUp || $[29] !== handleLostPointerCapture || $[30] !== handlePointerDown || $[31] !== handleRef || $[32] !== onDoubleClick || $[33] !== t12) {
|
|
535
|
-
t13 = /*#__PURE__*/ jsx("div", {
|
|
536
|
-
ref: handleRef,
|
|
537
|
-
className: PageLayout_module_css_default.DraggableHandle,
|
|
538
|
-
"data-component": "PageLayout.DragHandle",
|
|
539
|
-
role: "slider",
|
|
540
|
-
"aria-label": "Draggable pane splitter",
|
|
541
|
-
"aria-valuemin": ariaValueMin,
|
|
542
|
-
"aria-valuemax": ariaValueMax,
|
|
543
|
-
"aria-valuenow": ariaValueNow,
|
|
544
|
-
"aria-valuetext": t12,
|
|
545
|
-
tabIndex: 0,
|
|
546
|
-
onPointerDown: handlePointerDown,
|
|
547
|
-
onPointerMove: handlePointerMove,
|
|
548
|
-
onPointerUp: handlePointerUp,
|
|
549
|
-
onLostPointerCapture: handleLostPointerCapture,
|
|
550
|
-
onKeyDown: handleKeyDown,
|
|
551
|
-
onKeyUp: handleKeyUp,
|
|
552
|
-
onDoubleClick
|
|
553
|
-
});
|
|
554
|
-
$[24] = ariaValueMax;
|
|
555
|
-
$[25] = ariaValueMin;
|
|
556
|
-
$[26] = ariaValueNow;
|
|
557
|
-
$[27] = handleKeyDown;
|
|
558
|
-
$[28] = handleKeyUp;
|
|
559
|
-
$[29] = handleLostPointerCapture;
|
|
560
|
-
$[30] = handlePointerDown;
|
|
561
|
-
$[31] = handleRef;
|
|
562
|
-
$[32] = onDoubleClick;
|
|
563
|
-
$[33] = t12;
|
|
564
|
-
$[34] = t13;
|
|
565
|
-
} else t13 = $[34];
|
|
566
|
-
return t13;
|
|
567
|
-
});
|
|
568
372
|
const Header = (t0) => {
|
|
569
373
|
const $ = c(29);
|
|
570
374
|
const { "aria-label": label, "aria-labelledby": labelledBy, padding: t1, divider: t2, dividerWhenNarrow: t3, hidden: t4, children, style, className, "data-component": t5 } = t0;
|
|
@@ -745,7 +549,7 @@ const overflowProps = {
|
|
|
745
549
|
role: "region"
|
|
746
550
|
};
|
|
747
551
|
const Pane = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
|
|
748
|
-
const $ = c(
|
|
552
|
+
const $ = c(98);
|
|
749
553
|
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;
|
|
750
554
|
const responsivePosition = t1 === void 0 ? "end" : t1;
|
|
751
555
|
const positionWhenNarrow = t2 === void 0 ? "inherit" : t2;
|
|
@@ -998,9 +802,11 @@ const Pane = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
|
|
|
998
802
|
} else t48 = $[70];
|
|
999
803
|
const t49 = t48;
|
|
1000
804
|
let t50;
|
|
1001
|
-
if ($[71] !==
|
|
805
|
+
if ($[71] !== contentWrapperRef || $[72] !== currentWidth || $[73] !== currentWidthRef || $[74] !== getDefaultWidth || $[75] !== getMaxPaneWidth || $[76] !== maxPaneWidth || $[77] !== minPaneWidth || $[78] !== paneRef || $[79] !== position || $[80] !== resizable || $[81] !== saveWidth) {
|
|
1002
806
|
t50 = resizable ? /*#__PURE__*/ jsx(DragHandle, {
|
|
1003
807
|
handleRef,
|
|
808
|
+
dragTargetRef: paneRef,
|
|
809
|
+
contentWrapperRef,
|
|
1004
810
|
"aria-valuemin": minPaneWidth,
|
|
1005
811
|
"aria-valuemax": maxPaneWidth,
|
|
1006
812
|
"aria-valuenow": currentWidth,
|
|
@@ -1052,20 +858,21 @@ const Pane = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
|
|
|
1052
858
|
saveWidth(resetWidth);
|
|
1053
859
|
}
|
|
1054
860
|
}) : null;
|
|
1055
|
-
$[71] =
|
|
1056
|
-
$[72] =
|
|
1057
|
-
$[73] =
|
|
1058
|
-
$[74] =
|
|
1059
|
-
$[75] =
|
|
1060
|
-
$[76] =
|
|
1061
|
-
$[77] =
|
|
1062
|
-
$[78] =
|
|
1063
|
-
$[79] =
|
|
1064
|
-
$[80] =
|
|
1065
|
-
$[81] =
|
|
1066
|
-
|
|
861
|
+
$[71] = contentWrapperRef;
|
|
862
|
+
$[72] = currentWidth;
|
|
863
|
+
$[73] = currentWidthRef;
|
|
864
|
+
$[74] = getDefaultWidth;
|
|
865
|
+
$[75] = getMaxPaneWidth;
|
|
866
|
+
$[76] = maxPaneWidth;
|
|
867
|
+
$[77] = minPaneWidth;
|
|
868
|
+
$[78] = paneRef;
|
|
869
|
+
$[79] = position;
|
|
870
|
+
$[80] = resizable;
|
|
871
|
+
$[81] = saveWidth;
|
|
872
|
+
$[82] = t50;
|
|
873
|
+
} else t50 = $[82];
|
|
1067
874
|
let t51;
|
|
1068
|
-
if ($[
|
|
875
|
+
if ($[83] !== positionProp || $[84] !== resizable || $[85] !== t46 || $[86] !== t49 || $[87] !== t50) {
|
|
1069
876
|
t51 = /*#__PURE__*/ jsx(VerticalDivider, {
|
|
1070
877
|
variant: t46,
|
|
1071
878
|
draggable: resizable,
|
|
@@ -1074,15 +881,15 @@ const Pane = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
|
|
|
1074
881
|
style: t49,
|
|
1075
882
|
children: t50
|
|
1076
883
|
});
|
|
1077
|
-
$[
|
|
1078
|
-
$[
|
|
1079
|
-
$[
|
|
1080
|
-
$[
|
|
1081
|
-
$[
|
|
1082
|
-
$[
|
|
1083
|
-
} else t51 = $[
|
|
884
|
+
$[83] = positionProp;
|
|
885
|
+
$[84] = resizable;
|
|
886
|
+
$[85] = t46;
|
|
887
|
+
$[86] = t49;
|
|
888
|
+
$[87] = t50;
|
|
889
|
+
$[88] = t51;
|
|
890
|
+
} else t51 = $[88];
|
|
1084
891
|
let t52;
|
|
1085
|
-
if ($[
|
|
892
|
+
if ($[89] !== t19 || $[90] !== t24 || $[91] !== t25 || $[92] !== t26 || $[93] !== t27 || $[94] !== t32 || $[95] !== t45 || $[96] !== t51) {
|
|
1086
893
|
t52 = /*#__PURE__*/ jsxs("div", {
|
|
1087
894
|
className: t19,
|
|
1088
895
|
style: t24,
|
|
@@ -1095,16 +902,16 @@ const Pane = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
|
|
|
1095
902
|
t51
|
|
1096
903
|
]
|
|
1097
904
|
});
|
|
1098
|
-
$[
|
|
1099
|
-
$[
|
|
1100
|
-
$[
|
|
1101
|
-
$[
|
|
1102
|
-
$[
|
|
1103
|
-
$[
|
|
1104
|
-
$[
|
|
1105
|
-
$[
|
|
1106
|
-
$[
|
|
1107
|
-
} else t52 = $[
|
|
905
|
+
$[89] = t19;
|
|
906
|
+
$[90] = t24;
|
|
907
|
+
$[91] = t25;
|
|
908
|
+
$[92] = t26;
|
|
909
|
+
$[93] = t27;
|
|
910
|
+
$[94] = t32;
|
|
911
|
+
$[95] = t45;
|
|
912
|
+
$[96] = t51;
|
|
913
|
+
$[97] = t52;
|
|
914
|
+
} else t52 = $[97];
|
|
1108
915
|
return t52;
|
|
1109
916
|
});
|
|
1110
917
|
Pane.displayName = "PageLayout.Pane";
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
+
import { CustomWidthOptions, PaneWidth, PaneWidthValue, UsePaneWidthOptions, UsePaneWidthResult, defaultPaneWidth, usePaneWidth } from "./usePaneWidth.js";
|
|
1
2
|
import { PageLayout, PageLayoutContentProps, PageLayoutFooterProps, PageLayoutHeaderProps, PageLayoutPaneBaseProps, PageLayoutPaneProps, PageLayoutProps, PageLayoutSidebarBaseProps, PageLayoutSidebarProps } from "./PageLayout.js";
|
|
2
|
-
|
|
3
|
+
import { DragHandle, DragHandleProps } from "./DragHandle.js";
|
|
4
|
+
export { type CustomWidthOptions, DragHandle, type DragHandleProps, PageLayout, PageLayoutContentProps, PageLayoutFooterProps, PageLayoutHeaderProps, PageLayoutPaneBaseProps, PageLayoutPaneProps, PageLayoutProps, PageLayoutSidebarBaseProps, PageLayoutSidebarProps, type PaneWidth, type PaneWidthValue, type UsePaneWidthOptions, type UsePaneWidthResult, defaultPaneWidth, usePaneWidth };
|
|
@@ -14,5 +14,59 @@ type PaneWidth = 'small' | 'medium' | 'large';
|
|
|
14
14
|
* - `CustomWidthOptions`: Explicit min/default/max constraints
|
|
15
15
|
*/
|
|
16
16
|
type PaneWidthValue = PaneWidth | CustomWidthOptions;
|
|
17
|
+
type UsePaneWidthOptions = {
|
|
18
|
+
width: PaneWidthValue;
|
|
19
|
+
minWidth: number;
|
|
20
|
+
resizable: boolean; /** localStorage key for persisting width. When undefined, localStorage is not used. */
|
|
21
|
+
widthStorageKey?: string;
|
|
22
|
+
paneRef: React.RefObject<HTMLDivElement | null>;
|
|
23
|
+
handleRef: React.RefObject<HTMLDivElement | null>;
|
|
24
|
+
/**
|
|
25
|
+
* Optional ref to the content wrapper element. Only used by PageLayout for its
|
|
26
|
+
* viewport/content math during resize. Standalone consumers can omit this.
|
|
27
|
+
*/
|
|
28
|
+
contentWrapperRef?: React.RefObject<HTMLDivElement | null>;
|
|
29
|
+
/**
|
|
30
|
+
* When true, custom max width values are capped to the viewport-based max.
|
|
31
|
+
* This prevents overflow in non-wrapping flex layouts (e.g., Sidebar).
|
|
32
|
+
* @default false
|
|
33
|
+
*/
|
|
34
|
+
constrainToViewport?: boolean; /** Callback fired when a resize operation ends (drag release or keyboard key up) */
|
|
35
|
+
onResizeEnd?: (width: number) => void; /** Current/controlled width value in pixels (used instead of internal state; default from `width` is still used for reset) */
|
|
36
|
+
currentWidth?: number;
|
|
37
|
+
};
|
|
38
|
+
type UsePaneWidthResult = {
|
|
39
|
+
/** Current width for React state (used in ARIA attributes) */currentWidth: number; /** Mutable ref tracking width during drag operations */
|
|
40
|
+
currentWidthRef: React.MutableRefObject<number>; /** Minimum allowed pane width */
|
|
41
|
+
minPaneWidth: number; /** Maximum allowed pane width (updates on viewport resize) */
|
|
42
|
+
maxPaneWidth: number; /** Calculate current max width constraint */
|
|
43
|
+
getMaxPaneWidth: () => number; /** Persist width to localStorage and sync React state */
|
|
44
|
+
saveWidth: (value: number) => void; /** Reset to default width */
|
|
45
|
+
getDefaultWidth: () => number;
|
|
46
|
+
};
|
|
47
|
+
/** Default widths for preset size options */
|
|
48
|
+
declare const defaultPaneWidth: Record<PaneWidth, number>;
|
|
49
|
+
/**
|
|
50
|
+
* Manages pane width state with storage persistence and viewport constraints.
|
|
51
|
+
* Handles initialization from storage, clamping on viewport resize, and provides
|
|
52
|
+
* functions to save and reset width.
|
|
53
|
+
*
|
|
54
|
+
* Storage behavior:
|
|
55
|
+
* - When `resizable` is `true` and `onResizeEnd` is not provided: Uses localStorage
|
|
56
|
+
* - When `onResizeEnd` is provided: Calls the callback instead of localStorage
|
|
57
|
+
* - When `resizable` is `false` or `undefined`: Not resizable, no persistence
|
|
58
|
+
*/
|
|
59
|
+
declare function usePaneWidth({
|
|
60
|
+
width,
|
|
61
|
+
minWidth,
|
|
62
|
+
resizable,
|
|
63
|
+
widthStorageKey,
|
|
64
|
+
paneRef,
|
|
65
|
+
handleRef,
|
|
66
|
+
contentWrapperRef,
|
|
67
|
+
constrainToViewport,
|
|
68
|
+
onResizeEnd,
|
|
69
|
+
currentWidth: controlledWidth
|
|
70
|
+
}: UsePaneWidthOptions): UsePaneWidthResult;
|
|
17
71
|
//#endregion
|
|
18
|
-
export { CustomWidthOptions, PaneWidth, PaneWidthValue };
|
|
72
|
+
export { CustomWidthOptions, PaneWidth, PaneWidthValue, UsePaneWidthOptions, UsePaneWidthResult, defaultPaneWidth, usePaneWidth };
|
|
@@ -47,13 +47,18 @@ function getMaxWidthDiffFromViewport() {
|
|
|
47
47
|
if (!canUseDOM) return DEFAULT_MAX_WIDTH_DIFF;
|
|
48
48
|
return window.innerWidth >= DEFAULT_PANE_MAX_WIDTH_DIFF_BREAKPOINT ? WIDE_MAX_WIDTH_DIFF : DEFAULT_MAX_WIDTH_DIFF;
|
|
49
49
|
}
|
|
50
|
-
|
|
50
|
+
/**
|
|
51
|
+
* Default formatter for the drag handle's `aria-valuetext`.
|
|
52
|
+
* Kept in sync between the rendered attribute and drag-time DOM writes.
|
|
53
|
+
*/
|
|
54
|
+
const defaultFormatValueText = (valueNow) => `Pane width ${valueNow} pixels`;
|
|
55
|
+
const updateAriaValues = (handle, values, formatValueText = defaultFormatValueText) => {
|
|
51
56
|
if (!handle) return;
|
|
52
57
|
if (values.min !== void 0) handle.setAttribute("aria-valuemin", String(values.min));
|
|
53
58
|
if (values.max !== void 0) handle.setAttribute("aria-valuemax", String(values.max));
|
|
54
59
|
if (values.current !== void 0) {
|
|
55
60
|
handle.setAttribute("aria-valuenow", String(values.current));
|
|
56
|
-
handle.setAttribute("aria-valuetext",
|
|
61
|
+
handle.setAttribute("aria-valuetext", formatValueText(values.current));
|
|
57
62
|
}
|
|
58
63
|
};
|
|
59
64
|
const localStoragePersister = {
|
|
@@ -274,14 +279,14 @@ function usePaneWidth(t0) {
|
|
|
274
279
|
if (isResizing) return;
|
|
275
280
|
isResizing = true;
|
|
276
281
|
(_paneRef$current4 = paneRef.current) === null || _paneRef$current4 === void 0 || _paneRef$current4.setAttribute("data-dragging", "true");
|
|
277
|
-
|
|
282
|
+
contentWrapperRef === null || contentWrapperRef === void 0 || (_contentWrapperRef$cu = contentWrapperRef.current) == null || _contentWrapperRef$cu.setAttribute("data-dragging", "true");
|
|
278
283
|
};
|
|
279
284
|
const endResizeOptimizations = () => {
|
|
280
285
|
var _paneRef$current5, _contentWrapperRef$cu2;
|
|
281
286
|
if (!isResizing) return;
|
|
282
287
|
isResizing = false;
|
|
283
288
|
(_paneRef$current5 = paneRef.current) === null || _paneRef$current5 === void 0 || _paneRef$current5.removeAttribute("data-dragging");
|
|
284
|
-
|
|
289
|
+
contentWrapperRef === null || contentWrapperRef === void 0 || (_contentWrapperRef$cu2 = contentWrapperRef.current) == null || _contentWrapperRef$cu2.removeAttribute("data-dragging");
|
|
285
290
|
};
|
|
286
291
|
const handleResize = () => {
|
|
287
292
|
startResizeOptimizations();
|
|
@@ -357,4 +362,4 @@ function usePaneWidth(t0) {
|
|
|
357
362
|
return t14;
|
|
358
363
|
}
|
|
359
364
|
//#endregion
|
|
360
|
-
export { DEFAULT_MAX_WIDTH_DIFF, DEFAULT_SIDEBAR_MAX_WIDTH_DIFF, defaultPaneWidth, getDefaultPaneWidth, getMaxWidthDiffFromViewport, isCustomWidthOptions, isPaneWidth, updateAriaValues, usePaneWidth };
|
|
365
|
+
export { DEFAULT_MAX_WIDTH_DIFF, DEFAULT_SIDEBAR_MAX_WIDTH_DIFF, defaultFormatValueText, defaultPaneWidth, getDefaultPaneWidth, getMaxWidthDiffFromViewport, isCustomWidthOptions, isPaneWidth, updateAriaValues, usePaneWidth };
|
package/dist/index.d.ts
CHANGED
|
@@ -16,7 +16,9 @@ import { LinkButton, LinkButtonProps } from "./Button/LinkButton.js";
|
|
|
16
16
|
import { ButtonComponent } from "./Button/Button.js";
|
|
17
17
|
import { ButtonBase } from "./Button/ButtonBase.js";
|
|
18
18
|
import { ResponsiveValue, useResponsiveValue } from "./hooks/useResponsiveValue.js";
|
|
19
|
+
import { CustomWidthOptions, PaneWidth, PaneWidthValue, UsePaneWidthOptions, UsePaneWidthResult, defaultPaneWidth, usePaneWidth } from "./PageLayout/usePaneWidth.js";
|
|
19
20
|
import { PageLayout, PageLayoutContentProps, PageLayoutFooterProps, PageLayoutHeaderProps, PageLayoutPaneProps, PageLayoutProps } from "./PageLayout/PageLayout.js";
|
|
21
|
+
import { DragHandle, DragHandleProps } from "./PageLayout/DragHandle.js";
|
|
20
22
|
import { SplitPageLayout, SplitPageLayoutContentProps, SplitPageLayoutFooterProps, SplitPageLayoutHeaderProps, SplitPageLayoutPaneProps, SplitPageLayoutProps } from "./SplitPageLayout/SplitPageLayout.js";
|
|
21
23
|
import useDetails from "./hooks/useDetails.js";
|
|
22
24
|
import useSafeTimeout from "./hooks/useSafeTimeout.js";
|
|
@@ -117,4 +119,4 @@ import { ActionsProps, ChildrenPropTypes, PageHeader, PageHeaderProps, TitleArea
|
|
|
117
119
|
import { SkeletonBox, SkeletonBoxProps } from "./Skeleton/SkeletonBox.js";
|
|
118
120
|
import { ActionMenu, ActionMenuAnchorProps, ActionMenuButtonProps, ActionMenuProps } from "./ActionMenu/ActionMenu.js";
|
|
119
121
|
import Overlay, { OverlayProps } from "./Overlay/Overlay.js";
|
|
120
|
-
export { ActionBar, type ActionBarProps, ActionList, type ActionListDescriptionProps, type ActionListDividerProps, type ActionListGroupHeadingProps, type ActionListGroupHeadingTrailingActionProps, type ActionListGroupProps, type ActionListItemProps, type ActionListLeadingVisualProps, type ActionListLinkItemProps, type ActionListProps, type ActionListTrailingActionProps, type ActionListTrailingVisualProps, ActionMenu, type ActionMenuAnchorProps, type ActionMenuButtonProps, type ActionMenuProps, AnchoredOverlay, type AnchoredOverlayProps, type AnchoredPositionHookSettings, _default as Autocomplete, type AutocompleteInputProps, type AutocompleteMenuProps, type AutocompleteOverlayProps, Avatar, type AvatarProps, AvatarStack, type AvatarStackProps, Banner, type BannerProps, BaseStyles, type BaseStylesProps, _default$1 as BranchName, type BranchNameProps, Breadcrumb, type BreadcrumbItemProps, type BreadcrumbProps, _default$2 as Breadcrumbs, type BreadcrumbsItemProps, type BreadcrumbsProps, ButtonComponent as Button, ButtonBase, type ButtonBaseProps, ButtonGroup, type ButtonGroupProps, type ButtonProps, _default$3 as Checkbox, _default$4 as CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, _default$5 as CircleBadge, type CircleBadgeIconProps, type CircleBadgeProps, ConfirmationDialog, type ConfirmationDialogProps, CounterLabel, type CounterLabelProps, Details, type DetailsProps, Dialog, type DialogButtonProps, type DialogHeaderProps, type DialogHeight, type DialogProps, type DialogWidth, type FCWithSlotMarker, Flash, type FlashProps, FocusKeys, type FocusTrapHookSettings, type FocusZoneHookSettings, _default$6 as FormControl, type FormControlCaptionProps, type Props as FormControlLabelProps, type FormControlProps, type FormControlValidationProps, _default$7 as Header, type HeaderItemProps, type HeaderLinkProps, type HeaderProps, Heading, type HeadingProps, IconButton, type IconButtonProps, IssueLabelToken, type IssueLabelTokenProps, Label, type LabelColorOptions, LabelGroup, type LabelGroupProps, type LabelProps, Link, LinkButton, type LinkButtonProps, type LinkProps, NavList, type NavListDividerProps, type NavListGroupHeadingProps, type NavListGroupProps, type NavListItemProps, type NavListLeadingVisualProps, type NavListProps, type NavListSubNavProps, type NavListTrailingVisualProps, Overlay, type OverlayProps, PageHeader, type ActionsProps as PageHeaderActionsProps, type ChildrenPropTypes as PageHeaderChildrenPropTypes, type PageHeaderProps, type TitleAreaProps as PageHeaderTitleAreaProps, type TitleProps as PageHeaderTitleProps, PageLayout, type PageLayoutContentProps, type PageLayoutFooterProps, type PageLayoutHeaderProps, type PageLayoutPaneProps, type PageLayoutProps, Pagination, type PaginationProps, _default$8 as Popover, type PopoverContentProps, type PopoverProps, Portal, PortalContext, type PortalProps, ProgressBar, type ProgressBarItemProps, type ProgressBarProps, _default$9 as Radio, _default$10 as RadioGroup, type RadioGroupProps, type RadioProps, RelativeTime, type RelativeTimeProps, type ResponsiveValue, SegmentedControl, type SegmentedControlButtonProps, type SegmentedControlIconButtonProps, type SegmentedControlProps, _default$11 as Select, SelectPanel, type GroupedListProps as SelectPanelGroupedListProps, type ItemInput as SelectPanelItemInput, type FilteredActionListItemProps as SelectPanelItemProps, type SelectPanelProps, type SelectProps, _default$12 as SideNav, type SideNavLinkProps, type SideNavProps, SkeletonBox, type SkeletonBoxProps, type SlotMarker, Spinner, type SpinnerProps, SplitPageLayout, type SplitPageLayoutContentProps, type SplitPageLayoutFooterProps, type SplitPageLayoutHeaderProps, type SplitPageLayoutPaneProps, type SplitPageLayoutProps, Stack, type StackItemProps, type StackProps, StateLabel, type StateLabelProps, _default$13 as SubNav, type SubNavLinkProps, type SubNavLinksProps, type SubNavProps, _default$14 as Text, _default$15 as TextInput, type TextInputActionProps, type TextInputProps, _default$16 as TextInputWithTokens, type TextInputWithTokensProps, type TextProps, _default$17 as Textarea, type TextareaProps, type ThemeColorPaths, ThemeProvider, type ThemeProviderProps, type ThemeShadowPaths, _default$18 as Timeline, type TimelineActionsProps, type TimelineAvatarProps, type TimelineBadgeProps, type TimelineBadgeVariant, type TimelineBodyProps, type TimelineBreakProps, type TimelineItemProps, type TimelineItemsProps, type TimelineProps, ToggleSwitch, type ToggleSwitchProps, Token, type TokenProps, Tooltip, type TooltipProps, type TouchOrMouseEvent, TreeView, type TreeViewErrorDialogProps, type TreeViewItemProps, type TreeViewProps, type TreeViewSubTreeProps, type TreeViewVisualProps, Truncate, type TruncateProps, UnderlineNav, type UnderlineNavItemProps, type UnderlineNavProps, VisuallyHidden, type VisuallyHiddenProps, type WithSlotMarker, asSlot, createComponent, isSlot, registerPortalRoot, theme, useAnchoredPosition, useColorSchemeVar, useConfirm, useDetails, useFocusTrap, useFocusZone, useFormControlForwardedProps, useId, useIsomorphicLayoutEffect, useMergedRefs, useOnEscapePress, useOnOutsideClick, useOpenAndCloseFocus, useOverlay, useProvidedRefOrCreate, useRefObjectAsForwardedRef, useResizeObserver, useResponsiveValue, useRovingTabIndex, useSafeTimeout, useSlots, useSyncedState, useTheme };
|
|
122
|
+
export { ActionBar, type ActionBarProps, ActionList, type ActionListDescriptionProps, type ActionListDividerProps, type ActionListGroupHeadingProps, type ActionListGroupHeadingTrailingActionProps, type ActionListGroupProps, type ActionListItemProps, type ActionListLeadingVisualProps, type ActionListLinkItemProps, type ActionListProps, type ActionListTrailingActionProps, type ActionListTrailingVisualProps, ActionMenu, type ActionMenuAnchorProps, type ActionMenuButtonProps, type ActionMenuProps, AnchoredOverlay, type AnchoredOverlayProps, type AnchoredPositionHookSettings, _default as Autocomplete, type AutocompleteInputProps, type AutocompleteMenuProps, type AutocompleteOverlayProps, Avatar, type AvatarProps, AvatarStack, type AvatarStackProps, Banner, type BannerProps, BaseStyles, type BaseStylesProps, _default$1 as BranchName, type BranchNameProps, Breadcrumb, type BreadcrumbItemProps, type BreadcrumbProps, _default$2 as Breadcrumbs, type BreadcrumbsItemProps, type BreadcrumbsProps, ButtonComponent as Button, ButtonBase, type ButtonBaseProps, ButtonGroup, type ButtonGroupProps, type ButtonProps, _default$3 as Checkbox, _default$4 as CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, _default$5 as CircleBadge, type CircleBadgeIconProps, type CircleBadgeProps, ConfirmationDialog, type ConfirmationDialogProps, CounterLabel, type CounterLabelProps, type CustomWidthOptions, Details, type DetailsProps, Dialog, type DialogButtonProps, type DialogHeaderProps, type DialogHeight, type DialogProps, type DialogWidth, DragHandle, type DragHandleProps, type FCWithSlotMarker, Flash, type FlashProps, FocusKeys, type FocusTrapHookSettings, type FocusZoneHookSettings, _default$6 as FormControl, type FormControlCaptionProps, type Props as FormControlLabelProps, type FormControlProps, type FormControlValidationProps, _default$7 as Header, type HeaderItemProps, type HeaderLinkProps, type HeaderProps, Heading, type HeadingProps, IconButton, type IconButtonProps, IssueLabelToken, type IssueLabelTokenProps, Label, type LabelColorOptions, LabelGroup, type LabelGroupProps, type LabelProps, Link, LinkButton, type LinkButtonProps, type LinkProps, NavList, type NavListDividerProps, type NavListGroupHeadingProps, type NavListGroupProps, type NavListItemProps, type NavListLeadingVisualProps, type NavListProps, type NavListSubNavProps, type NavListTrailingVisualProps, Overlay, type OverlayProps, PageHeader, type ActionsProps as PageHeaderActionsProps, type ChildrenPropTypes as PageHeaderChildrenPropTypes, type PageHeaderProps, type TitleAreaProps as PageHeaderTitleAreaProps, type TitleProps as PageHeaderTitleProps, PageLayout, type PageLayoutContentProps, type PageLayoutFooterProps, type PageLayoutHeaderProps, type PageLayoutPaneProps, type PageLayoutProps, Pagination, type PaginationProps, type PaneWidth, type PaneWidthValue, _default$8 as Popover, type PopoverContentProps, type PopoverProps, Portal, PortalContext, type PortalProps, ProgressBar, type ProgressBarItemProps, type ProgressBarProps, _default$9 as Radio, _default$10 as RadioGroup, type RadioGroupProps, type RadioProps, RelativeTime, type RelativeTimeProps, type ResponsiveValue, SegmentedControl, type SegmentedControlButtonProps, type SegmentedControlIconButtonProps, type SegmentedControlProps, _default$11 as Select, SelectPanel, type GroupedListProps as SelectPanelGroupedListProps, type ItemInput as SelectPanelItemInput, type FilteredActionListItemProps as SelectPanelItemProps, type SelectPanelProps, type SelectProps, _default$12 as SideNav, type SideNavLinkProps, type SideNavProps, SkeletonBox, type SkeletonBoxProps, type SlotMarker, Spinner, type SpinnerProps, SplitPageLayout, type SplitPageLayoutContentProps, type SplitPageLayoutFooterProps, type SplitPageLayoutHeaderProps, type SplitPageLayoutPaneProps, type SplitPageLayoutProps, Stack, type StackItemProps, type StackProps, StateLabel, type StateLabelProps, _default$13 as SubNav, type SubNavLinkProps, type SubNavLinksProps, type SubNavProps, _default$14 as Text, _default$15 as TextInput, type TextInputActionProps, type TextInputProps, _default$16 as TextInputWithTokens, type TextInputWithTokensProps, type TextProps, _default$17 as Textarea, type TextareaProps, type ThemeColorPaths, ThemeProvider, type ThemeProviderProps, type ThemeShadowPaths, _default$18 as Timeline, type TimelineActionsProps, type TimelineAvatarProps, type TimelineBadgeProps, type TimelineBadgeVariant, type TimelineBodyProps, type TimelineBreakProps, type TimelineItemProps, type TimelineItemsProps, type TimelineProps, ToggleSwitch, type ToggleSwitchProps, Token, type TokenProps, Tooltip, type TooltipProps, type TouchOrMouseEvent, TreeView, type TreeViewErrorDialogProps, type TreeViewItemProps, type TreeViewProps, type TreeViewSubTreeProps, type TreeViewVisualProps, Truncate, type TruncateProps, UnderlineNav, type UnderlineNavItemProps, type UnderlineNavProps, type UsePaneWidthOptions, type UsePaneWidthResult, VisuallyHidden, type VisuallyHiddenProps, type WithSlotMarker, asSlot, createComponent, defaultPaneWidth, isSlot, registerPortalRoot, theme, useAnchoredPosition, useColorSchemeVar, useConfirm, useDetails, useFocusTrap, useFocusZone, useFormControlForwardedProps, useId, useIsomorphicLayoutEffect, useMergedRefs, useOnEscapePress, useOnOutsideClick, useOpenAndCloseFocus, useOverlay, usePaneWidth, useProvidedRefOrCreate, useRefObjectAsForwardedRef, useResizeObserver, useResponsiveValue, useRovingTabIndex, useSafeTimeout, useSlots, useSyncedState, useTheme };
|
package/dist/index.js
CHANGED
|
@@ -27,6 +27,8 @@ import { ButtonComponent } from "./Button/Button.js";
|
|
|
27
27
|
import { useResponsiveValue } from "./hooks/useResponsiveValue.js";
|
|
28
28
|
import { isSlot } from "./utils/is-slot.js";
|
|
29
29
|
import { useSlots } from "./hooks/useSlots.js";
|
|
30
|
+
import { defaultPaneWidth, usePaneWidth } from "./PageLayout/usePaneWidth.js";
|
|
31
|
+
import { DragHandle } from "./PageLayout/DragHandle.js";
|
|
30
32
|
import { PageLayout } from "./PageLayout/PageLayout.js";
|
|
31
33
|
import { SplitPageLayout } from "./SplitPageLayout/SplitPageLayout.js";
|
|
32
34
|
import useDetails from "./hooks/useDetails.js";
|
|
@@ -92,4 +94,4 @@ import { TreeView } from "./TreeView/TreeView.js";
|
|
|
92
94
|
import { UnderlineNav } from "./UnderlineNav/index.js";
|
|
93
95
|
import { ActionBar } from "./ActionBar/index.js";
|
|
94
96
|
import { PageHeader } from "./PageHeader/PageHeader.js";
|
|
95
|
-
export { ActionBar, ActionList, ActionMenu, AnchoredOverlay, Autocomplete_default as Autocomplete, Avatar, AvatarStack, Banner, BaseStyles, BranchName_default as BranchName, Breadcrumb, Breadcrumbs_default as Breadcrumbs, ButtonComponent as Button, ButtonBase, ButtonGroup, Checkbox, CheckboxGroup_default as CheckboxGroup, CircleBadge_default as CircleBadge, ConfirmationDialog, CounterLabel, Details, Dialog, Flash, FocusKeys, FormControl_default as FormControl, Header_default as Header, Heading, IconButton, IssueLabelToken, Label_default as Label, LabelGroup, Link, LinkButton, NavList, Overlay, PageHeader, PageLayout, Pagination_default as Pagination, Popover_default as Popover, Portal_default as Portal, PortalContext, ProgressBar, Radio, RadioGroup_default as RadioGroup, RelativeTime, SegmentedControl, Select_default as Select, SelectPanel, SideNav_default as SideNav, SkeletonBox, Spinner, SplitPageLayout, Stack, StateLabel, SubNav_default as SubNav, Text_default as Text, TextInput_default as TextInput, TextInputWithTokens, Textarea, ThemeProvider, Timeline_default as Timeline, ToggleSwitch, Token, Tooltip, TreeView, Truncate, UnderlineNav, VisuallyHidden, asSlot, createComponent, isSlot, registerPortalRoot, theme, useAnchoredPosition, useColorSchemeVar, useConfirm, useDetails, useFocusTrap, useFocusZone, useFormControlForwardedProps, useId, useIsomorphicLayoutEffect, useMergedRefs, useOnEscapePress, useOnOutsideClick, useOpenAndCloseFocus, useOverlay, useProvidedRefOrCreate, useRefObjectAsForwardedRef, useResizeObserver, useResponsiveValue, useRovingTabIndex, useSafeTimeout, useSlots, useSyncedState, useTheme };
|
|
97
|
+
export { ActionBar, ActionList, ActionMenu, AnchoredOverlay, Autocomplete_default as Autocomplete, Avatar, AvatarStack, Banner, BaseStyles, BranchName_default as BranchName, Breadcrumb, Breadcrumbs_default as Breadcrumbs, ButtonComponent as Button, ButtonBase, ButtonGroup, Checkbox, CheckboxGroup_default as CheckboxGroup, CircleBadge_default as CircleBadge, ConfirmationDialog, CounterLabel, Details, Dialog, DragHandle, Flash, FocusKeys, FormControl_default as FormControl, Header_default as Header, Heading, IconButton, IssueLabelToken, Label_default as Label, LabelGroup, Link, LinkButton, NavList, Overlay, PageHeader, PageLayout, Pagination_default as Pagination, Popover_default as Popover, Portal_default as Portal, PortalContext, ProgressBar, Radio, RadioGroup_default as RadioGroup, RelativeTime, SegmentedControl, Select_default as Select, SelectPanel, SideNav_default as SideNav, SkeletonBox, Spinner, SplitPageLayout, Stack, StateLabel, SubNav_default as SubNav, Text_default as Text, TextInput_default as TextInput, TextInputWithTokens, Textarea, ThemeProvider, Timeline_default as Timeline, ToggleSwitch, Token, Tooltip, TreeView, Truncate, UnderlineNav, VisuallyHidden, asSlot, createComponent, defaultPaneWidth, isSlot, registerPortalRoot, theme, useAnchoredPosition, useColorSchemeVar, useConfirm, useDetails, useFocusTrap, useFocusZone, useFormControlForwardedProps, useId, useIsomorphicLayoutEffect, useMergedRefs, useOnEscapePress, useOnOutsideClick, useOpenAndCloseFocus, useOverlay, usePaneWidth, useProvidedRefOrCreate, useRefObjectAsForwardedRef, useResizeObserver, useResponsiveValue, useRovingTabIndex, useSafeTimeout, useSlots, useSyncedState, useTheme };
|
package/package.json
CHANGED