@primer/react 0.0.0-20260225211348 → 0.0.0-20260225214420
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 +37 -5
- package/dist/ActionBar/ActionBar.d.ts.map +1 -1
- package/dist/ActionBar/ActionBar.js +431 -281
- package/dist/ActionList/ActionList-c04a02d6.css +2 -0
- package/dist/ActionList/ActionList-c04a02d6.css.map +1 -0
- package/dist/ActionList/ActionList.module.css.js +1 -1
- package/dist/ActionList/Item.d.ts.map +1 -1
- package/dist/ActionList/Item.js +1 -0
- package/dist/Autocomplete/Autocomplete.js +76 -159
- package/dist/Autocomplete/AutocompleteMenu.js +128 -333
- package/dist/Autocomplete/AutocompleteOverlay.js +49 -130
- package/dist/Banner/Banner.js +64 -238
- package/dist/Blankslate/{Blankslate-f5a9755a.css → Blankslate-a039d79a.css} +2 -2
- package/dist/Blankslate/Blankslate-a039d79a.css.map +1 -0
- package/dist/Blankslate/Blankslate.module.css.js +1 -1
- package/dist/Button/ButtonBase.d.ts.map +1 -1
- package/dist/Button/ButtonBase.js +9 -14
- package/dist/Checkbox/Checkbox.js +55 -163
- package/dist/Dialog/Dialog-1a86df19.css +2 -0
- package/dist/Dialog/Dialog-1a86df19.css.map +1 -0
- package/dist/Dialog/Dialog.d.ts +7 -0
- package/dist/Dialog/Dialog.d.ts.map +1 -1
- package/dist/Dialog/Dialog.js +112 -347
- package/dist/Dialog/Dialog.module.css.js +1 -1
- package/dist/FilteredActionList/FilteredActionList-02db90c6.css +2 -0
- package/dist/FilteredActionList/FilteredActionList-02db90c6.css.map +1 -0
- package/dist/FilteredActionList/FilteredActionList.d.ts +16 -1
- package/dist/FilteredActionList/FilteredActionList.d.ts.map +1 -1
- package/dist/FilteredActionList/FilteredActionList.js +147 -42
- package/dist/FilteredActionList/FilteredActionList.module.css.js +2 -2
- package/dist/Overlay/Overlay-15519c09.css +2 -0
- package/dist/Overlay/Overlay-15519c09.css.map +1 -0
- package/dist/Overlay/Overlay.module.css.js +1 -1
- package/dist/PageLayout/PageLayout-3444a142.css +2 -0
- package/dist/PageLayout/PageLayout-3444a142.css.map +1 -0
- package/dist/PageLayout/PageLayout.d.ts +72 -2
- package/dist/PageLayout/PageLayout.d.ts.map +1 -1
- package/dist/PageLayout/PageLayout.js +750 -1235
- package/dist/PageLayout/PageLayout.module.css.js +2 -2
- package/dist/PageLayout/usePaneWidth.d.ts +18 -6
- package/dist/PageLayout/usePaneWidth.d.ts.map +1 -1
- package/dist/PageLayout/usePaneWidth.js +126 -112
- package/dist/SelectPanel/SelectPanel.d.ts +1 -1
- package/dist/SelectPanel/SelectPanel.d.ts.map +1 -1
- package/dist/SelectPanel/SelectPanel.js +85 -33
- package/dist/SplitPageLayout/SplitPageLayout.d.ts +4 -1
- package/dist/SplitPageLayout/SplitPageLayout.d.ts.map +1 -1
- package/dist/SplitPageLayout/SplitPageLayout.js +54 -2
- package/dist/Text/Text.d.ts +1 -1
- package/dist/Text/Text.d.ts.map +1 -1
- package/dist/Text/Text.js +10 -13
- package/dist/UnderlineNav/UnderlineNavItem.js +56 -149
- package/dist/experimental/SelectPanel2/SelectPanel-f0c4b9ca.css +2 -0
- package/dist/experimental/SelectPanel2/{SelectPanel-1f8c23b5.css.map → SelectPanel-f0c4b9ca.css.map} +1 -1
- package/dist/experimental/SelectPanel2/SelectPanel.js +209 -593
- package/dist/experimental/SelectPanel2/SelectPanel.module.css.js +1 -1
- package/dist/hooks/useRefObjectAsForwardedRef.d.ts.map +1 -1
- package/dist/hooks/useRefObjectAsForwardedRef.js +10 -2
- package/dist/hooks/useScrollFlash.d.ts.map +1 -1
- package/dist/hooks/useScrollFlash.js +14 -22
- package/dist/hooks/useSlots.d.ts +50 -6
- package/dist/hooks/useSlots.d.ts.map +1 -1
- package/dist/hooks/useSlots.js +114 -36
- package/dist/live-region/Announce.d.ts.map +1 -1
- package/dist/live-region/Announce.js +7 -4
- package/dist/utils/environment.js +9 -0
- package/generated/components.json +216 -5
- package/package.json +4 -4
- package/dist/ActionList/ActionList-f4ac3b54.css +0 -2
- package/dist/ActionList/ActionList-f4ac3b54.css.map +0 -1
- package/dist/Blankslate/Blankslate-f5a9755a.css.map +0 -1
- package/dist/Dialog/Dialog-9e7a4691.css +0 -2
- package/dist/Dialog/Dialog-9e7a4691.css.map +0 -1
- package/dist/FilteredActionList/FilteredActionList-f6c2dc7a.css +0 -2
- package/dist/FilteredActionList/FilteredActionList-f6c2dc7a.css.map +0 -1
- package/dist/Overlay/Overlay-43cda449.css +0 -2
- package/dist/Overlay/Overlay-43cda449.css.map +0 -1
- package/dist/PageLayout/PageLayout-cb491b47.css +0 -2
- package/dist/PageLayout/PageLayout-cb491b47.css.map +0 -1
- package/dist/experimental/SelectPanel2/SelectPanel-1f8c23b5.css +0 -2
- package/dist/utils/descendant-registry.d.ts +0 -32
- package/dist/utils/descendant-registry.d.ts.map +0 -1
- package/dist/utils/descendant-registry.js +0 -222
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import './PageLayout-
|
|
1
|
+
import './PageLayout-3444a142.css';
|
|
2
2
|
|
|
3
|
-
var classes = {"paneMaxWidthDiffBreakpoint":"1280","paneMaxWidthDiffDefault":"511","PageLayoutRoot":"prc-PageLayout-PageLayoutRoot--KH-d","PageLayoutWrapper":"prc-PageLayout-PageLayoutWrapper-2BhU2","PageLayoutContent":"prc-PageLayout-PageLayoutContent-BneH9","HorizontalDivider":"prc-PageLayout-HorizontalDivider-JLVqp","VerticalDivider":"prc-PageLayout-VerticalDivider-9QRmK","Header":"prc-PageLayout-Header-0of-R","HeaderContent":"prc-PageLayout-HeaderContent-gdFfN","HeaderHorizontalDivider":"prc-PageLayout-HeaderHorizontalDivider-odAHl","ContentWrapper":"prc-PageLayout-ContentWrapper-gR9eG","Content":"prc-PageLayout-Content-xWL-A","PaneWrapper":"prc-PageLayout-PaneWrapper-pHPop","PaneVerticalDivider":"prc-PageLayout-PaneVerticalDivider-le57g","Pane":"prc-PageLayout-Pane-AyzHK","PaneHorizontalDivider":"prc-PageLayout-PaneHorizontalDivider-9tbnE","FooterWrapper":"prc-PageLayout-FooterWrapper-9cB8y","FooterHorizontalDivider":"prc-PageLayout-FooterHorizontalDivider-W-RaS","FooterContent":"prc-PageLayout-FooterContent-HUS0V","DraggableHandle":"prc-PageLayout-DraggableHandle-9s6B4"};
|
|
3
|
+
var classes = {"paneMaxWidthDiffBreakpoint":"1280","paneMaxWidthDiffDefault":"511","sidebarMaxWidthDiffDefault":"256","paneMaxWidthDiffWide":"959","PageLayoutRoot":"prc-PageLayout-PageLayoutRoot--KH-d","PageLayoutWrapper":"prc-PageLayout-PageLayoutWrapper-2BhU2","PageLayoutContent":"prc-PageLayout-PageLayoutContent-BneH9","HorizontalDivider":"prc-PageLayout-HorizontalDivider-JLVqp","VerticalDivider":"prc-PageLayout-VerticalDivider-9QRmK","Header":"prc-PageLayout-Header-0of-R","HeaderContent":"prc-PageLayout-HeaderContent-gdFfN","HeaderHorizontalDivider":"prc-PageLayout-HeaderHorizontalDivider-odAHl","ContentWrapper":"prc-PageLayout-ContentWrapper-gR9eG","Content":"prc-PageLayout-Content-xWL-A","PaneWrapper":"prc-PageLayout-PaneWrapper-pHPop","PaneVerticalDivider":"prc-PageLayout-PaneVerticalDivider-le57g","Pane":"prc-PageLayout-Pane-AyzHK","PaneHorizontalDivider":"prc-PageLayout-PaneHorizontalDivider-9tbnE","FooterWrapper":"prc-PageLayout-FooterWrapper-9cB8y","FooterHorizontalDivider":"prc-PageLayout-FooterHorizontalDivider-W-RaS","FooterContent":"prc-PageLayout-FooterContent-HUS0V","DraggableHandle":"prc-PageLayout-DraggableHandle-9s6B4","SidebarWrapper":"prc-PageLayout-SidebarWrapper-kLG4B","Sidebar":"prc-PageLayout-Sidebar-iciWg","SidebarVerticalDivider":"prc-PageLayout-SidebarVerticalDivider-0Rl0V"};
|
|
4
4
|
|
|
5
5
|
export { classes as default };
|
|
@@ -16,10 +16,17 @@ export type UsePaneWidthOptions = {
|
|
|
16
16
|
width: PaneWidthValue;
|
|
17
17
|
minWidth: number;
|
|
18
18
|
resizable: boolean;
|
|
19
|
-
|
|
19
|
+
/** localStorage key for persisting width. When undefined, localStorage is not used. */
|
|
20
|
+
widthStorageKey?: string;
|
|
20
21
|
paneRef: React.RefObject<HTMLDivElement | null>;
|
|
21
22
|
handleRef: React.RefObject<HTMLDivElement | null>;
|
|
22
23
|
contentWrapperRef: React.RefObject<HTMLDivElement | null>;
|
|
24
|
+
/**
|
|
25
|
+
* When true, custom max width values are capped to the viewport-based max.
|
|
26
|
+
* This prevents overflow in non-wrapping flex layouts (e.g., Sidebar).
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
constrainToViewport?: boolean;
|
|
23
30
|
/** Callback fired when a resize operation ends (drag release or keyboard key up) */
|
|
24
31
|
onResizeEnd?: (width: number) => void;
|
|
25
32
|
/** Current/controlled width value in pixels (used instead of internal state; default from `width` is still used for reset) */
|
|
@@ -46,6 +53,11 @@ export type UsePaneWidthResult = {
|
|
|
46
53
|
* Imported from CSS to ensure JS fallback matches the CSS default.
|
|
47
54
|
*/
|
|
48
55
|
export declare const DEFAULT_MAX_WIDTH_DIFF: number;
|
|
56
|
+
/**
|
|
57
|
+
* Default value for --sidebar-max-width-diff CSS variable.
|
|
58
|
+
* Unlike --pane-max-width-diff, this is constant across all viewport sizes.
|
|
59
|
+
*/
|
|
60
|
+
export declare const DEFAULT_SIDEBAR_MAX_WIDTH_DIFF: number;
|
|
49
61
|
/**
|
|
50
62
|
* Default max pane width for SSR when viewport is unknown.
|
|
51
63
|
* Updated to actual value in layout effect before paint.
|
|
@@ -62,11 +74,11 @@ export declare const isCustomWidthOptions: (width: PaneWidthValue) => width is C
|
|
|
62
74
|
export declare const isPaneWidth: (width: PaneWidthValue) => width is PaneWidth;
|
|
63
75
|
export declare const getDefaultPaneWidth: (w: PaneWidthValue) => number;
|
|
64
76
|
/**
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
77
|
+
* Derives the --pane-max-width-diff value from viewport width alone.
|
|
78
|
+
* Avoids the expensive getComputedStyle call that forces a synchronous layout recalc.
|
|
79
|
+
* The CSS only defines two breakpoint-dependent values, so a simple width check is equivalent.
|
|
68
80
|
*/
|
|
69
|
-
export declare function
|
|
81
|
+
export declare function getMaxWidthDiffFromViewport(): number;
|
|
70
82
|
export declare const updateAriaValues: (handle: HTMLElement | null, values: {
|
|
71
83
|
current?: number;
|
|
72
84
|
min?: number;
|
|
@@ -82,6 +94,6 @@ export declare const updateAriaValues: (handle: HTMLElement | null, values: {
|
|
|
82
94
|
* - When `onResizeEnd` is provided: Calls the callback instead of localStorage
|
|
83
95
|
* - When `resizable` is `false` or `undefined`: Not resizable, no persistence
|
|
84
96
|
*/
|
|
85
|
-
export declare function usePaneWidth({ width, minWidth, resizable, widthStorageKey, paneRef, handleRef, contentWrapperRef, onResizeEnd, currentWidth: controlledWidth, }: UsePaneWidthOptions): UsePaneWidthResult;
|
|
97
|
+
export declare function usePaneWidth({ width, minWidth, resizable, widthStorageKey, paneRef, handleRef, contentWrapperRef, constrainToViewport, onResizeEnd, currentWidth: controlledWidth, }: UsePaneWidthOptions): UsePaneWidthResult;
|
|
86
98
|
export {};
|
|
87
99
|
//# sourceMappingURL=usePaneWidth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePaneWidth.d.ts","sourceRoot":"","sources":["../../src/PageLayout/usePaneWidth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAiC,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"usePaneWidth.d.ts","sourceRoot":"","sources":["../../src/PageLayout/usePaneWidth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAiC,MAAM,OAAO,CAAA;AAQrD,KAAK,WAAW,GAAG,GAAG,MAAM,IAAI,CAAA;AAEhC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,GAAG,EAAE,WAAW,CAAA;IAChB,OAAO,E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AKD;;;GAGG;AACH,eAAO,MAAM,sBAAsB,QAA6C,CAAA;AAEhF;;;GAGG;AACH,eAAO,MAAM,8BAA8B,QAAgD,CAAA;AAO3F;;;GAGG;AACH,eAAO,MAAM,qBAAqB,MAAM,CAAA;AAExC;;;GAGG;AACH,eAAO,MAAM,cAAc,IAAI,CAAA;AAE/B,6CAA6C;AAC7C,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAAyC,CAAA;AAKhG,eAAO,MAAM,oBAAoB,GAAI,OAAO,cAAc,KAAG,KAAK,IAAI,kBAErE,CAAA;AAED,eAAO,MAAM,WAAW,GAAI,OAAO,cAAc,KAAG,KAAK,IAAI,SAE5D,CAAA;AAED,eAAO,MAAM,mBAAmB,GAAI,GAAG,cAAc,KAAG,MAOvD,CAAA;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,IAAI,MAAM,CAGpD;AAID,eAAO,MAAM,gBAAgB,GAC3B,QAAQ,WAAW,GAAG,IAAI,EAC1B,QAAQ;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAC,SASvD,CAAA;AA8BD;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,QAAQ,EACR,SAAS,EACT,eAAe,EACf,OAAO,EACP,SAAS,EACT,iBAAiB,EACjB,mBAA2B,EAC3B,WAAW,EACX,YAAY,EAAE,eAAe,GAC9B,EAAE,mBAAmB,GAAG,kBAAkB,CAyQ1C"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { c } from 'react-compiler-runtime';
|
|
2
2
|
import React, { startTransition } from 'react';
|
|
3
|
+
import { canUseDOM } from '../utils/environment.js';
|
|
3
4
|
import useIsomorphicLayoutEffect from '../utils/useIsomorphicLayoutEffect.js';
|
|
4
5
|
import classes from './PageLayout.module.css.js';
|
|
5
6
|
|
|
@@ -21,6 +22,15 @@ import classes from './PageLayout.module.css.js';
|
|
|
21
22
|
*/
|
|
22
23
|
const DEFAULT_MAX_WIDTH_DIFF = Number(classes.paneMaxWidthDiffDefault);
|
|
23
24
|
|
|
25
|
+
/**
|
|
26
|
+
* Default value for --sidebar-max-width-diff CSS variable.
|
|
27
|
+
* Unlike --pane-max-width-diff, this is constant across all viewport sizes.
|
|
28
|
+
*/
|
|
29
|
+
const DEFAULT_SIDEBAR_MAX_WIDTH_DIFF = Number(classes.sidebarMaxWidthDiffDefault);
|
|
30
|
+
|
|
31
|
+
// Value for --pane-max-width-diff at/above the wide breakpoint.
|
|
32
|
+
const WIDE_MAX_WIDTH_DIFF = Number(classes.paneMaxWidthDiffWide);
|
|
33
|
+
|
|
24
34
|
// --pane-max-width-diff changes at this breakpoint in PageLayout.module.css.
|
|
25
35
|
const DEFAULT_PANE_MAX_WIDTH_DIFF_BREAKPOINT = Number(classes.paneMaxWidthDiffBreakpoint);
|
|
26
36
|
/**
|
|
@@ -61,14 +71,13 @@ const getDefaultPaneWidth = w => {
|
|
|
61
71
|
};
|
|
62
72
|
|
|
63
73
|
/**
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
74
|
+
* Derives the --pane-max-width-diff value from viewport width alone.
|
|
75
|
+
* Avoids the expensive getComputedStyle call that forces a synchronous layout recalc.
|
|
76
|
+
* The CSS only defines two breakpoint-dependent values, so a simple width check is equivalent.
|
|
67
77
|
*/
|
|
68
|
-
function
|
|
69
|
-
if (!
|
|
70
|
-
|
|
71
|
-
return value > 0 ? value : DEFAULT_MAX_WIDTH_DIFF;
|
|
78
|
+
function getMaxWidthDiffFromViewport() {
|
|
79
|
+
if (!canUseDOM) return DEFAULT_MAX_WIDTH_DIFF;
|
|
80
|
+
return window.innerWidth >= DEFAULT_PANE_MAX_WIDTH_DIFF_BREAKPOINT ? WIDE_MAX_WIDTH_DIFF : DEFAULT_MAX_WIDTH_DIFF;
|
|
72
81
|
}
|
|
73
82
|
|
|
74
83
|
// Helper to update ARIA slider attributes via direct DOM manipulation
|
|
@@ -121,7 +130,7 @@ const localStoragePersister = {
|
|
|
121
130
|
* - When `resizable` is `false` or `undefined`: Not resizable, no persistence
|
|
122
131
|
*/
|
|
123
132
|
function usePaneWidth(t0) {
|
|
124
|
-
const $ = c(
|
|
133
|
+
const $ = c(42);
|
|
125
134
|
const {
|
|
126
135
|
width,
|
|
127
136
|
minWidth,
|
|
@@ -130,60 +139,64 @@ function usePaneWidth(t0) {
|
|
|
130
139
|
paneRef,
|
|
131
140
|
handleRef,
|
|
132
141
|
contentWrapperRef,
|
|
142
|
+
constrainToViewport: t1,
|
|
133
143
|
onResizeEnd,
|
|
134
144
|
currentWidth: controlledWidth
|
|
135
145
|
} = t0;
|
|
146
|
+
const constrainToViewport = t1 === undefined ? false : t1;
|
|
136
147
|
const isCustomWidth = isCustomWidthOptions(width);
|
|
137
148
|
const minPaneWidth = isCustomWidth ? parseInt(width.min, 10) : minWidth;
|
|
138
149
|
const customMaxWidth = isCustomWidth ? parseInt(width.max, 10) : null;
|
|
139
150
|
const widthStorageKeyRef = React.useRef(widthStorageKey);
|
|
140
151
|
const onResizeEndRef = React.useRef(onResizeEnd);
|
|
141
|
-
let
|
|
152
|
+
let t2;
|
|
142
153
|
if ($[0] !== onResizeEnd || $[1] !== widthStorageKey) {
|
|
143
|
-
|
|
154
|
+
t2 = () => {
|
|
144
155
|
widthStorageKeyRef.current = widthStorageKey;
|
|
145
156
|
onResizeEndRef.current = onResizeEnd;
|
|
146
157
|
};
|
|
147
158
|
$[0] = onResizeEnd;
|
|
148
159
|
$[1] = widthStorageKey;
|
|
149
|
-
$[2] =
|
|
160
|
+
$[2] = t2;
|
|
150
161
|
} else {
|
|
151
|
-
|
|
162
|
+
t2 = $[2];
|
|
152
163
|
}
|
|
153
|
-
useIsomorphicLayoutEffect(
|
|
154
|
-
const maxWidthDiffRef = React.useRef(DEFAULT_MAX_WIDTH_DIFF);
|
|
155
|
-
let
|
|
156
|
-
if ($[3] !==
|
|
157
|
-
|
|
164
|
+
useIsomorphicLayoutEffect(t2);
|
|
165
|
+
const maxWidthDiffRef = React.useRef(constrainToViewport ? DEFAULT_SIDEBAR_MAX_WIDTH_DIFF : DEFAULT_MAX_WIDTH_DIFF);
|
|
166
|
+
let t3;
|
|
167
|
+
if ($[3] !== constrainToViewport || $[4] !== customMaxWidth || $[5] !== minPaneWidth) {
|
|
168
|
+
t3 = () => {
|
|
169
|
+
const viewportWidth = window.innerWidth;
|
|
170
|
+
const viewportMax = viewportWidth > 0 ? Math.max(minPaneWidth, viewportWidth - maxWidthDiffRef.current) : minPaneWidth;
|
|
158
171
|
if (customMaxWidth !== null) {
|
|
159
|
-
return customMaxWidth;
|
|
172
|
+
return constrainToViewport ? Math.min(customMaxWidth, viewportMax) : customMaxWidth;
|
|
160
173
|
}
|
|
161
|
-
|
|
162
|
-
return viewportWidth > 0 ? Math.max(minPaneWidth, viewportWidth - maxWidthDiffRef.current) : minPaneWidth;
|
|
174
|
+
return viewportMax;
|
|
163
175
|
};
|
|
164
|
-
$[3] =
|
|
165
|
-
$[4] =
|
|
166
|
-
$[5] =
|
|
176
|
+
$[3] = constrainToViewport;
|
|
177
|
+
$[4] = customMaxWidth;
|
|
178
|
+
$[5] = minPaneWidth;
|
|
179
|
+
$[6] = t3;
|
|
167
180
|
} else {
|
|
168
|
-
|
|
181
|
+
t3 = $[6];
|
|
169
182
|
}
|
|
170
|
-
const getMaxPaneWidth =
|
|
171
|
-
let
|
|
172
|
-
if ($[
|
|
173
|
-
|
|
174
|
-
$[
|
|
175
|
-
$[
|
|
183
|
+
const getMaxPaneWidth = t3;
|
|
184
|
+
let t4;
|
|
185
|
+
if ($[7] !== width) {
|
|
186
|
+
t4 = getDefaultPaneWidth(width);
|
|
187
|
+
$[7] = width;
|
|
188
|
+
$[8] = t4;
|
|
176
189
|
} else {
|
|
177
|
-
|
|
190
|
+
t4 = $[8];
|
|
178
191
|
}
|
|
179
|
-
const defaultWidth =
|
|
180
|
-
let
|
|
181
|
-
if ($[
|
|
182
|
-
|
|
192
|
+
const defaultWidth = t4;
|
|
193
|
+
let t5;
|
|
194
|
+
if ($[9] !== controlledWidth || $[10] !== defaultWidth || $[11] !== onResizeEnd || $[12] !== resizable || $[13] !== widthStorageKey) {
|
|
195
|
+
t5 = () => {
|
|
183
196
|
if (typeof controlledWidth === "number") {
|
|
184
197
|
return controlledWidth;
|
|
185
198
|
}
|
|
186
|
-
const shouldUseLocalStorage = onResizeEnd === undefined && resizable === true;
|
|
199
|
+
const shouldUseLocalStorage = onResizeEnd === undefined && resizable === true && widthStorageKey !== undefined;
|
|
187
200
|
if (shouldUseLocalStorage) {
|
|
188
201
|
const storedWidth = localStoragePersister.get(widthStorageKey);
|
|
189
202
|
if (storedWidth !== null) {
|
|
@@ -192,16 +205,16 @@ function usePaneWidth(t0) {
|
|
|
192
205
|
}
|
|
193
206
|
return defaultWidth;
|
|
194
207
|
};
|
|
195
|
-
$[
|
|
196
|
-
$[
|
|
197
|
-
$[
|
|
198
|
-
$[
|
|
199
|
-
$[
|
|
200
|
-
$[
|
|
208
|
+
$[9] = controlledWidth;
|
|
209
|
+
$[10] = defaultWidth;
|
|
210
|
+
$[11] = onResizeEnd;
|
|
211
|
+
$[12] = resizable;
|
|
212
|
+
$[13] = widthStorageKey;
|
|
213
|
+
$[14] = t5;
|
|
201
214
|
} else {
|
|
202
|
-
|
|
215
|
+
t5 = $[14];
|
|
203
216
|
}
|
|
204
|
-
const [currentWidthState, setCurrentWidthState] = React.useState(
|
|
217
|
+
const [currentWidthState, setCurrentWidthState] = React.useState(t5);
|
|
205
218
|
const [prevDefaultWidth, setPrevDefaultWidth] = React.useState(defaultWidth);
|
|
206
219
|
const [prevControlledWidth, setPrevControlledWidth] = React.useState(controlledWidth);
|
|
207
220
|
const controlledWidthChanged = controlledWidth !== prevControlledWidth;
|
|
@@ -224,42 +237,42 @@ function usePaneWidth(t0) {
|
|
|
224
237
|
}
|
|
225
238
|
const currentWidth = controlledWidth !== null && controlledWidth !== void 0 ? controlledWidth : currentWidthState;
|
|
226
239
|
const currentWidthRef = React.useRef(currentWidth);
|
|
227
|
-
let
|
|
228
|
-
if ($[
|
|
229
|
-
|
|
230
|
-
$[
|
|
231
|
-
$[
|
|
240
|
+
let t6;
|
|
241
|
+
if ($[15] !== customMaxWidth) {
|
|
242
|
+
t6 = () => customMaxWidth !== null && customMaxWidth !== void 0 ? customMaxWidth : SSR_DEFAULT_MAX_WIDTH;
|
|
243
|
+
$[15] = customMaxWidth;
|
|
244
|
+
$[16] = t6;
|
|
232
245
|
} else {
|
|
233
|
-
|
|
246
|
+
t6 = $[16];
|
|
234
247
|
}
|
|
235
|
-
const [maxPaneWidth, setMaxPaneWidth] = React.useState(
|
|
236
|
-
let t6;
|
|
248
|
+
const [maxPaneWidth, setMaxPaneWidth] = React.useState(t6);
|
|
237
249
|
let t7;
|
|
238
|
-
|
|
239
|
-
|
|
250
|
+
let t8;
|
|
251
|
+
if ($[17] !== currentWidth) {
|
|
252
|
+
t7 = () => {
|
|
240
253
|
currentWidthRef.current = currentWidth;
|
|
241
254
|
};
|
|
242
|
-
|
|
243
|
-
$[
|
|
244
|
-
$[17] = t6;
|
|
255
|
+
t8 = [currentWidth];
|
|
256
|
+
$[17] = currentWidth;
|
|
245
257
|
$[18] = t7;
|
|
258
|
+
$[19] = t8;
|
|
246
259
|
} else {
|
|
247
|
-
t6 = $[17];
|
|
248
260
|
t7 = $[18];
|
|
261
|
+
t8 = $[19];
|
|
249
262
|
}
|
|
250
|
-
useIsomorphicLayoutEffect(
|
|
251
|
-
let
|
|
252
|
-
if ($[
|
|
253
|
-
|
|
254
|
-
$[
|
|
255
|
-
$[
|
|
263
|
+
useIsomorphicLayoutEffect(t7, t8);
|
|
264
|
+
let t9;
|
|
265
|
+
if ($[20] !== width) {
|
|
266
|
+
t9 = () => getDefaultPaneWidth(width);
|
|
267
|
+
$[20] = width;
|
|
268
|
+
$[21] = t9;
|
|
256
269
|
} else {
|
|
257
|
-
|
|
270
|
+
t9 = $[21];
|
|
258
271
|
}
|
|
259
|
-
const getDefaultWidth =
|
|
260
|
-
let
|
|
261
|
-
if ($[
|
|
262
|
-
|
|
272
|
+
const getDefaultWidth = t9;
|
|
273
|
+
let t10;
|
|
274
|
+
if ($[22] !== resizable) {
|
|
275
|
+
t10 = value => {
|
|
263
276
|
const rounded = Math.round(value);
|
|
264
277
|
currentWidthRef.current = rounded;
|
|
265
278
|
startTransition(() => {
|
|
@@ -271,32 +284,32 @@ function usePaneWidth(t0) {
|
|
|
271
284
|
} catch {}
|
|
272
285
|
return;
|
|
273
286
|
}
|
|
274
|
-
if (resizable) {
|
|
287
|
+
if (resizable && widthStorageKeyRef.current) {
|
|
275
288
|
localStoragePersister.save(widthStorageKeyRef.current, rounded);
|
|
276
289
|
}
|
|
277
290
|
};
|
|
278
|
-
$[
|
|
279
|
-
$[
|
|
291
|
+
$[22] = resizable;
|
|
292
|
+
$[23] = t10;
|
|
280
293
|
} else {
|
|
281
|
-
|
|
294
|
+
t10 = $[23];
|
|
282
295
|
}
|
|
283
|
-
const saveWidth =
|
|
296
|
+
const saveWidth = t10;
|
|
284
297
|
const getMaxPaneWidthRef = React.useRef(getMaxPaneWidth);
|
|
285
|
-
let
|
|
286
|
-
if ($[
|
|
287
|
-
|
|
298
|
+
let t11;
|
|
299
|
+
if ($[24] !== getMaxPaneWidth) {
|
|
300
|
+
t11 = () => {
|
|
288
301
|
getMaxPaneWidthRef.current = getMaxPaneWidth;
|
|
289
302
|
};
|
|
290
|
-
$[
|
|
291
|
-
$[
|
|
303
|
+
$[24] = getMaxPaneWidth;
|
|
304
|
+
$[25] = t11;
|
|
292
305
|
} else {
|
|
293
|
-
|
|
306
|
+
t11 = $[25];
|
|
294
307
|
}
|
|
295
|
-
useIsomorphicLayoutEffect(
|
|
296
|
-
let t11;
|
|
308
|
+
useIsomorphicLayoutEffect(t11);
|
|
297
309
|
let t12;
|
|
298
|
-
|
|
299
|
-
|
|
310
|
+
let t13;
|
|
311
|
+
if ($[26] !== constrainToViewport || $[27] !== contentWrapperRef || $[28] !== customMaxWidth || $[29] !== handleRef || $[30] !== minPaneWidth || $[31] !== paneRef || $[32] !== resizable) {
|
|
312
|
+
t12 = () => {
|
|
300
313
|
var _paneRef$current3;
|
|
301
314
|
if (!resizable) {
|
|
302
315
|
return;
|
|
@@ -308,7 +321,7 @@ function usePaneWidth(t0) {
|
|
|
308
321
|
const crossedBreakpoint = lastViewportWidth < DEFAULT_PANE_MAX_WIDTH_DIFF_BREAKPOINT && currentViewportWidth >= DEFAULT_PANE_MAX_WIDTH_DIFF_BREAKPOINT || lastViewportWidth >= DEFAULT_PANE_MAX_WIDTH_DIFF_BREAKPOINT && currentViewportWidth < DEFAULT_PANE_MAX_WIDTH_DIFF_BREAKPOINT;
|
|
309
322
|
lastViewportWidth = currentViewportWidth;
|
|
310
323
|
if (crossedBreakpoint) {
|
|
311
|
-
maxWidthDiffRef.current =
|
|
324
|
+
maxWidthDiffRef.current = getMaxWidthDiffFromViewport();
|
|
312
325
|
}
|
|
313
326
|
const actualMax = getMaxPaneWidthRef.current();
|
|
314
327
|
(_paneRef$current = paneRef.current) === null || _paneRef$current === void 0 ? void 0 : _paneRef$current.style.setProperty("--pane-max-width", `${actualMax}px`);
|
|
@@ -329,7 +342,7 @@ function usePaneWidth(t0) {
|
|
|
329
342
|
}
|
|
330
343
|
});
|
|
331
344
|
};
|
|
332
|
-
maxWidthDiffRef.current =
|
|
345
|
+
maxWidthDiffRef.current = getMaxWidthDiffFromViewport();
|
|
333
346
|
const initialMax = getMaxPaneWidthRef.current();
|
|
334
347
|
setMaxPaneWidth(initialMax);
|
|
335
348
|
(_paneRef$current3 = paneRef.current) === null || _paneRef$current3 === void 0 ? void 0 : _paneRef$current3.style.setProperty("--pane-max-width", `${initialMax}px`);
|
|
@@ -338,7 +351,7 @@ function usePaneWidth(t0) {
|
|
|
338
351
|
max: initialMax,
|
|
339
352
|
current: currentWidthRef.current
|
|
340
353
|
});
|
|
341
|
-
if (customMaxWidth !== null) {
|
|
354
|
+
if (customMaxWidth !== null && !constrainToViewport) {
|
|
342
355
|
return;
|
|
343
356
|
}
|
|
344
357
|
let lastUpdateTime = 0;
|
|
@@ -401,23 +414,24 @@ function usePaneWidth(t0) {
|
|
|
401
414
|
window.removeEventListener("resize", handleResize);
|
|
402
415
|
};
|
|
403
416
|
};
|
|
404
|
-
|
|
405
|
-
$[
|
|
406
|
-
$[
|
|
407
|
-
$[
|
|
408
|
-
$[
|
|
409
|
-
$[
|
|
410
|
-
$[
|
|
411
|
-
$[
|
|
412
|
-
$[
|
|
417
|
+
t13 = [resizable, customMaxWidth, constrainToViewport, minPaneWidth, paneRef, handleRef, contentWrapperRef];
|
|
418
|
+
$[26] = constrainToViewport;
|
|
419
|
+
$[27] = contentWrapperRef;
|
|
420
|
+
$[28] = customMaxWidth;
|
|
421
|
+
$[29] = handleRef;
|
|
422
|
+
$[30] = minPaneWidth;
|
|
423
|
+
$[31] = paneRef;
|
|
424
|
+
$[32] = resizable;
|
|
425
|
+
$[33] = t12;
|
|
426
|
+
$[34] = t13;
|
|
413
427
|
} else {
|
|
414
|
-
|
|
415
|
-
|
|
428
|
+
t12 = $[33];
|
|
429
|
+
t13 = $[34];
|
|
416
430
|
}
|
|
417
|
-
useIsomorphicLayoutEffect(
|
|
418
|
-
let
|
|
419
|
-
if ($[
|
|
420
|
-
|
|
431
|
+
useIsomorphicLayoutEffect(t12, t13);
|
|
432
|
+
let t14;
|
|
433
|
+
if ($[35] !== currentWidth || $[36] !== getDefaultWidth || $[37] !== getMaxPaneWidth || $[38] !== maxPaneWidth || $[39] !== minPaneWidth || $[40] !== saveWidth) {
|
|
434
|
+
t14 = {
|
|
421
435
|
currentWidth,
|
|
422
436
|
currentWidthRef,
|
|
423
437
|
minPaneWidth,
|
|
@@ -426,17 +440,17 @@ function usePaneWidth(t0) {
|
|
|
426
440
|
saveWidth,
|
|
427
441
|
getDefaultWidth
|
|
428
442
|
};
|
|
429
|
-
$[
|
|
430
|
-
$[
|
|
431
|
-
$[
|
|
432
|
-
$[
|
|
433
|
-
$[
|
|
434
|
-
$[
|
|
435
|
-
$[
|
|
443
|
+
$[35] = currentWidth;
|
|
444
|
+
$[36] = getDefaultWidth;
|
|
445
|
+
$[37] = getMaxPaneWidth;
|
|
446
|
+
$[38] = maxPaneWidth;
|
|
447
|
+
$[39] = minPaneWidth;
|
|
448
|
+
$[40] = saveWidth;
|
|
449
|
+
$[41] = t14;
|
|
436
450
|
} else {
|
|
437
|
-
|
|
451
|
+
t14 = $[41];
|
|
438
452
|
}
|
|
439
|
-
return
|
|
453
|
+
return t14;
|
|
440
454
|
}
|
|
441
455
|
|
|
442
|
-
export { ARROW_KEY_STEP, DEFAULT_MAX_WIDTH_DIFF, SSR_DEFAULT_MAX_WIDTH, defaultPaneWidth, getDefaultPaneWidth,
|
|
456
|
+
export { ARROW_KEY_STEP, DEFAULT_MAX_WIDTH_DIFF, DEFAULT_SIDEBAR_MAX_WIDTH_DIFF, SSR_DEFAULT_MAX_WIDTH, defaultPaneWidth, getDefaultPaneWidth, getMaxWidthDiffFromViewport, isCustomWidthOptions, isPaneWidth, updateAriaValues, usePaneWidth };
|
|
@@ -64,7 +64,7 @@ type SelectPanelVariantProps = {
|
|
|
64
64
|
onCancel: () => void;
|
|
65
65
|
};
|
|
66
66
|
export type SelectPanelProps = SelectPanelBaseProps & Omit<FilteredActionListProps, 'selectionVariant' | 'variant' | 'message'> & Pick<AnchoredOverlayProps, 'open' | 'height' | 'width' | 'align'> & AnchoredOverlayWrapperAnchorProps & (SelectPanelSingleSelection | SelectPanelMultiSelection) & SelectPanelVariantProps;
|
|
67
|
-
declare function Panel({ open, onOpenChange, renderAnchor, anchorRef: externalAnchorRef, placeholder, placeholderText, inputLabel, selected, title, subtitle, onSelectedChange, filterValue: externalFilterValue, onFilterChange: externalOnFilterChange, items, footer, textInputProps, overlayProps, loading, initialLoadingType, className, height, width, id, message, notice, onCancel, variant, secondaryAction, showSelectedOptionsFirst, disableFullscreenOnNarrow, align, showSelectAll, focusPrependedElements, ...listProps }: SelectPanelProps): JSX.Element;
|
|
67
|
+
declare function Panel({ open, onOpenChange, renderAnchor, anchorRef: externalAnchorRef, placeholder, placeholderText, inputLabel, selected, title, subtitle, onSelectedChange, filterValue: externalFilterValue, onFilterChange: externalOnFilterChange, items, footer, textInputProps, overlayProps, loading, initialLoadingType, className, height, width, id, message, notice, onCancel, variant, secondaryAction, showSelectedOptionsFirst, disableFullscreenOnNarrow, align, showSelectAll, focusPrependedElements, virtualized, ...listProps }: SelectPanelProps): JSX.Element;
|
|
68
68
|
declare const SecondaryButton: React.FC<ButtonProps>;
|
|
69
69
|
declare const SecondaryLink: React.FC<LinkButtonProps & ButtonProps>;
|
|
70
70
|
export declare const SelectPanel: typeof Panel & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectPanel.d.ts","sourceRoot":"","sources":["../../src/SelectPanel/SelectPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsC,KAAK,SAAS,EAAC,MAAM,wBAAwB,CAAA;AAC1F,OAAO,KAAK,EAAE,EAA+E,KAAK,GAAG,EAAC,MAAM,OAAO,CAAA;AACnH,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,oBAAoB,CAAA;AAE5D,OAAO,KAAK,EAAC,iCAAiC,EAAC,MAAM,oCAAoC,CAAA;AACzF,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,uBAAuB,CAAA;AAGlE,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,YAAY,CAAA;AAE5C,OAAO,KAAK,EAAY,SAAS,EAAC,MAAM,IAAI,CAAA;AAiB5C,OAAO,KAAK,EAAC,WAAW,EAAE,eAAe,EAAC,MAAM,iBAAiB,CAAA;AAiCjE,UAAU,0BAA0B;IAClC,QAAQ,EAAE,SAAS,GAAG,SAAS,CAAA;IAC/B,gBAAgB,EAAE,CAAC,QAAQ,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