@primer/react 0.0.0-20260715132248 → 0.0.0-20260715132440
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 +5 -5
- package/dist/ActionBar/ActionBar-3767d551.css +2 -0
- package/dist/ActionBar/ActionBar-3767d551.css.map +1 -0
- package/dist/ActionBar/ActionBar.module.css.js +1 -1
- package/dist/ActionList/Group.js +1 -1
- package/dist/ActionList/Item.js +1 -1
- package/dist/ActionList/List.js +1 -1
- package/dist/ActionMenu/ActionMenu.js +1 -1
- package/dist/AnchoredOverlay/AnchoredOverlay.js +2 -1
- package/dist/Autocomplete/AutocompleteMenu.js +3 -2
- package/dist/Breadcrumbs/Breadcrumbs.js +4 -1
- package/dist/Dialog/Dialog.js +1 -1
- package/dist/FilteredActionList/useAnnouncements.js +20 -14
- package/dist/LabelGroup/LabelGroup-db41f443.css +2 -0
- package/dist/LabelGroup/LabelGroup-db41f443.css.map +1 -0
- package/dist/LabelGroup/LabelGroup.module.css.js +1 -1
- package/dist/NavList/NavList.js +1 -1
- package/dist/PageHeader/PageHeader.js +1 -1
- package/dist/PageLayout/PageLayout.js +248 -54
- package/dist/PageLayout/index.d.ts +1 -3
- package/dist/PageLayout/usePaneWidth.d.ts +1 -55
- package/dist/PageLayout/usePaneWidth.js +5 -10
- package/dist/TextInputWithTokens/TextInputWithTokens.js +1 -1
- package/dist/TooltipV2/Tooltip.js +2 -1
- package/dist/TreeView/TreeView.js +6 -3
- package/dist/experimental/SelectPanel2/SelectPanel.js +2 -2
- package/dist/experimental/UnderlinePanels/UnderlinePanels.js +1 -1
- package/dist/experimental/index.js +1 -1
- package/dist/hooks/useDialog.js +2 -1
- package/dist/hooks/useScrollFlash.js +2 -1
- package/dist/index.d.ts +1 -3
- package/dist/index.js +5 -7
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js +1 -1
- package/dist/internal/components/UnderlineTabbedInterface-1d2ecace.css +2 -0
- package/dist/internal/components/UnderlineTabbedInterface-1d2ecace.css.map +1 -0
- package/dist/internal/components/UnderlineTabbedInterface.module.css.js +1 -1
- package/dist/utils/warning.js +3 -2
- package/package.json +2 -2
- package/dist/ActionBar/ActionBar-e63def3c.css +0 -2
- package/dist/ActionBar/ActionBar-e63def3c.css.map +0 -1
- package/dist/LabelGroup/LabelGroup-7d19205a.css +0 -2
- package/dist/LabelGroup/LabelGroup-7d19205a.css.map +0 -1
- package/dist/PageLayout/DragHandle.d.ts +0 -38
- package/dist/PageLayout/DragHandle.js +0 -220
- package/dist/internal/components/UnderlineTabbedInterface-25587345.css +0 -2
- package/dist/internal/components/UnderlineTabbedInterface-25587345.css.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
# @primer/react
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
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`.
|
|
3
|
+
## 0.0.0-20260715132440
|
|
8
4
|
|
|
9
5
|
### Patch Changes
|
|
10
6
|
|
|
11
7
|
- [#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
8
|
|
|
9
|
+
- [#8166](https://github.com/primer/react/pull/8166) [`46e4d47`](https://github.com/primer/react/commit/46e4d4749f07526477df1cb96015c3bfbb0323fd) Thanks [@mattcosta7](https://github.com/mattcosta7)! - Add `contain: layout` to high-churn overflow containers (`ActionBar`, `UnderlineNav`, `UnderlinePanels`, and `LabelGroup`) so their frequent reflows no longer invalidate ancestor layout.
|
|
10
|
+
|
|
13
11
|
- Fake entry to force publishing
|
|
14
12
|
|
|
15
13
|
- [#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
14
|
|
|
15
|
+
- [#8164](https://github.com/primer/react/pull/8164) [`f86e5a6`](https://github.com/primer/react/commit/f86e5a6420e857e7476c3954d419f4e228bdcf1a) Thanks [@jonrohan](https://github.com/jonrohan)! - Fix `UnderlineNav` tab list not filling the full width of the underline nav in Safari
|
|
16
|
+
|
|
17
17
|
## 38.32.0
|
|
18
18
|
|
|
19
19
|
### Minor Changes
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
.prc-ActionBar-List-9uz46{align-items:flex-start;animation:prc-ActionBar-detect-overflow-mAuJu linear;display:flex;gap:var(--actionbar-gap,var(--stack-gap-condensed,.5rem));height:var(--actionbar-height,var(--control-small-size,1.75rem));list-style:none;margin-bottom:-1px;min-width:0;overflow:hidden;position:relative;animation-timeline:scroll(self block);contain:layout}.prc-ActionBar-List-9uz46[data-has-overflow=true]{--morebutton-display:flex}.prc-ActionBar-List-9uz46:where([data-size=small]){--actionbar-height:var(--control-small-size,1.75rem)}.prc-ActionBar-List-9uz46:where([data-size=medium]){--actionbar-height:var(--control-medium-size,2rem)}.prc-ActionBar-List-9uz46:where([data-size=large]){--actionbar-height:var(--control-large-size,2.5rem)}.prc-ActionBar-List-9uz46:where([data-gap=none]){--actionbar-gap:0}.prc-ActionBar-List-9uz46:where([data-gap=none]) .prc-ActionBar-Divider-6V8yH{padding:0 var(--base-size-8,.5rem)}.prc-ActionBar-List-9uz46:where([data-gap=condensed]){--actionbar-gap:var(--stack-gap-condensed,0.5rem)}.prc-ActionBar-List-9uz46 [data-overflowing]{visibility:hidden!important}@keyframes prc-ActionBar-detect-overflow-mAuJu{0%,to{--morebutton-display:flex}}.prc-ActionBar-Nav-9spON{align-items:center;display:flex;justify-content:flex-end;padding-inline:var(--base-size-16,1rem)}.prc-ActionBar-Nav-9spON:where([data-flush=true]){padding-inline:0}.prc-ActionBar-Divider-6V8yH:before{background:var(--borderColor-muted,#d1d9e0b3);content:"";display:block;height:var(--base-size-20,1.25rem);margin-top:calc((var(--actionbar-height) - var(--base-size-20,1.25rem))/2);width:var(--borderWidth-thin,.0625rem)}.prc-ActionBar-Group-peNCk,.prc-ActionBar-OverflowContainer-AkYZs{display:flex;gap:inherit}.prc-ActionBar-OverflowContainer-AkYZs{contain:layout;flex-wrap:wrap;justify-content:flex-end;overflow:hidden}.prc-ActionBar-OverflowContainer-AkYZs .prc-ActionBar-OverflowSpacer-tbHkV{height:var(--actionbar-height)}.prc-ActionBar-MoreButton-RHqpx{display:var(--morebutton-display,none)}
|
|
2
|
+
/*# sourceMappingURL=ActionBar-3767d551.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ActionBar/ActionBar.module.css.js"],"names":[],"mappings":"AAAA,0BASE,sBAAuB,CASvB,oDAAiC,CAhBjC,YAAa,CAQb,yDAAqD,CAGrD,gEAA0D,CAL1D,eAAgB,CADhB,kBAAmB,CAJnB,WAAY,CAQZ,eAAgB,CAVhB,iBAAkB,CAkBlB,qCAAsC,CAKtC,cAsCF,CAnCE,kDACE,yBACF,CAEA,mDACE,oDACF,CAEA,oDACE,kDACF,CAEA,mDACE,mDACF,CAGA,iDACE,iBAKF,CAHE,8EACE,kCACF,CAGF,sDACE,iDACF,CAEA,6CAIE,2BACF,CAGF,+CACE,MAEE,yBACF,CACF,CAEA,yBAIE,kBAAmB,CAHnB,YAAa,CAEb,wBAAyB,CADzB,uCAOF,CAHE,kDACE,gBACF,CAIA,oCAME,6CAAoC,CAFpC,UAAW,CAHX,aAAc,CAEd,kCAA2B,CAK3B,0EAAqE,CANrE,sCAOF,CAQF,kEAJE,YAAa,CACb,WAgBF,CAbA,uCAQE,cAAe,CANf,cAAe,CAEf,wBAAyB,CACzB,eAQF,CAHE,2EACE,8BACF,CAGF,gCACE,sCACF","file":"ActionBar-3767d551.css","sourcesContent":[".List {\n position: relative;\n display: flex;\n min-width: 0;\n\n /* wonder why this is here */\n /* stylelint-disable-next-line primer/spacing */\n margin-bottom: -1px;\n list-style: none;\n align-items: flex-start;\n gap: var(--actionbar-gap, var(--stack-gap-condensed));\n overflow: hidden;\n /* Explicit height is required to clip wrapped items */\n height: var(--actionbar-height, var(--control-small-size));\n\n /* Scroll-based animations have no effect unless the container is scrollable (has overflow, even with overflow:hidden)\n so we can use them to detect overflow. It would be cleaner to use scroll-state container queries for this, but\n browser support for scroll-driven animations is slightly better. */\n animation: detect-overflow linear;\n animation-timeline: scroll(self block);\n\n /* Isolate the frequent overflow-driven reflows (JS visibility toggling + item wrapping) so they\n can't invalidate ancestor layout. Safe because the list already clips (overflow: hidden) and the\n More menu is portaled, so it isn't affected by the new containing block/stacking context. */\n contain: layout;\n\n /* After initial render, JS is used to control visibility which provides progressive enhancement for unsupported browsers */\n &[data-has-overflow='true'] {\n --morebutton-display: flex;\n }\n\n &:where([data-size='small']) {\n --actionbar-height: var(--control-small-size);\n }\n\n &:where([data-size='medium']) {\n --actionbar-height: var(--control-medium-size);\n }\n\n &:where([data-size='large']) {\n --actionbar-height: var(--control-large-size);\n }\n\n /* Gap scale (mirrors Stack) */\n &:where([data-gap='none']) {\n --actionbar-gap: 0;\n\n .Divider {\n padding: 0 var(--base-size-8);\n }\n }\n\n &:where([data-gap='condensed']) {\n --actionbar-gap: var(--stack-gap-condensed);\n }\n\n & [data-overflowing] {\n /* Hide overflowing items. Even though they are clipped by `overflow: hidden`, setting `visibility: hidden` ensures\n they can't accidentally be shown and also hides them from screen readers / keyboard nav. `!important` prevents\n consumers from unintentionally overriding this and breaking accessibility. */\n visibility: hidden !important;\n }\n}\n\n@keyframes detect-overflow {\n 0%,\n 100% {\n --morebutton-display: flex;\n }\n}\n\n.Nav {\n display: flex;\n padding-inline: var(--base-size-16);\n justify-content: flex-end;\n align-items: center;\n\n &:where([data-flush='true']) {\n padding-inline: 0;\n }\n}\n\n.Divider {\n &::before {\n display: block;\n width: var(--borderWidth-thin);\n height: var(--base-size-20);\n content: '';\n /* stylelint-disable-next-line primer/colors */\n background: var(--borderColor-muted);\n /* stylelint-disable-next-line primer/spacing */\n margin-top: calc((var(--actionbar-height) - var(--base-size-20)) / 2);\n }\n}\n\n.Group {\n display: flex;\n gap: inherit;\n}\n\n.OverflowContainer {\n display: flex;\n flex-wrap: wrap;\n gap: inherit;\n justify-content: flex-end;\n overflow: hidden;\n\n /* Contain the wrap/measure reflows to this subtree. */\n contain: layout;\n\n .OverflowSpacer {\n height: var(--actionbar-height);\n }\n}\n\n.MoreButton {\n display: var(--morebutton-display, none);\n}\n"]}
|
package/dist/ActionList/Group.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useId as useId$1 } from "../hooks/useId.js";
|
|
2
|
-
import { invariant } from "../utils/invariant.js";
|
|
3
2
|
import { useSlots } from "../hooks/useSlots.js";
|
|
3
|
+
import { invariant } from "../utils/invariant.js";
|
|
4
4
|
import { ListContext } from "./shared.js";
|
|
5
5
|
import ActionList_module_css_default from "./ActionList.module.css.js";
|
|
6
6
|
import { useFeatureFlag } from "../FeatureFlags/useFeatureFlag.js";
|
package/dist/ActionList/Item.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useId as useId$1 } from "../hooks/useId.js";
|
|
2
|
+
import { useSlots } from "../hooks/useSlots.js";
|
|
2
3
|
import { ConditionalWrapper } from "../internal/components/ConditionalWrapper.js";
|
|
3
4
|
import { invariant } from "../utils/invariant.js";
|
|
4
5
|
import { fixedForwardRef } from "../utils/modern-polymorphic.js";
|
|
5
6
|
import VisuallyHidden from "../_VisuallyHidden.js";
|
|
6
7
|
import { TooltipContext } from "../TooltipV2/TooltipContext.js";
|
|
7
8
|
import { Tooltip } from "../TooltipV2/Tooltip.js";
|
|
8
|
-
import { useSlots } from "../hooks/useSlots.js";
|
|
9
9
|
import { ActionListContainerContext } from "./ActionListContainerContext.js";
|
|
10
10
|
import { ItemContext, ListContext } from "./shared.js";
|
|
11
11
|
import ActionList_module_css_default from "./ActionList.module.css.js";
|
package/dist/ActionList/List.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useProvidedRefOrCreate } from "../hooks/useProvidedRefOrCreate.js";
|
|
2
2
|
import useIsomorphicLayoutEffect from "../utils/useIsomorphicLayoutEffect.js";
|
|
3
3
|
import { useId as useId$1 } from "../hooks/useId.js";
|
|
4
|
-
import { fixedForwardRef } from "../utils/modern-polymorphic.js";
|
|
5
4
|
import { useSlots } from "../hooks/useSlots.js";
|
|
5
|
+
import { fixedForwardRef } from "../utils/modern-polymorphic.js";
|
|
6
6
|
import { FocusKeys, useFocusZone } from "../hooks/useFocusZone.js";
|
|
7
7
|
import { ActionListContainerContext } from "./ActionListContainerContext.js";
|
|
8
8
|
import { ListContext } from "./shared.js";
|
|
@@ -2,10 +2,10 @@ import { useProvidedRefOrCreate } from "../hooks/useProvidedRefOrCreate.js";
|
|
|
2
2
|
import { useProvidedStateOrCreate } from "../hooks/useProvidedStateOrCreate.js";
|
|
3
3
|
import { useMenuKeyboardNavigation } from "../hooks/useMenuKeyboardNavigation.js";
|
|
4
4
|
import { useId as useId$1 } from "../hooks/useId.js";
|
|
5
|
+
import { isSlot } from "../utils/is-slot.js";
|
|
5
6
|
import { Tooltip } from "../TooltipV2/Tooltip.js";
|
|
6
7
|
import { ButtonComponent } from "../Button/Button.js";
|
|
7
8
|
import { useResponsiveValue } from "../hooks/useResponsiveValue.js";
|
|
8
|
-
import { isSlot } from "../utils/is-slot.js";
|
|
9
9
|
import { DialogContext } from "../Dialog/DialogContext.js";
|
|
10
10
|
import { ActionListContainerContext } from "../ActionList/ActionListContainerContext.js";
|
|
11
11
|
import { Divider } from "../ActionList/Divider.js";
|
|
@@ -122,7 +122,8 @@ const AnchoredOverlay = ({ renderAnchor, anchorRef: externalAnchorRef, anchorId:
|
|
|
122
122
|
else currentOverlay.style.removeProperty("position-try-fallbacks");
|
|
123
123
|
pendingPositionFrame = requestAnimationFrame(() => {
|
|
124
124
|
pendingPositionFrame = null;
|
|
125
|
-
const
|
|
125
|
+
const fallbackWidth = width ? parseInt(widthMap[width]) : parseInt(widthMap.small);
|
|
126
|
+
const result = getDefaultPosition(anchorElement, currentOverlay, fallbackWidth);
|
|
126
127
|
currentOverlay.setAttribute("data-align", result.horizontal);
|
|
127
128
|
if (result.suggestedSide) currentOverlay.setAttribute("data-side", result.suggestedSide);
|
|
128
129
|
const offset = result.horizontal === "left" ? result.leftOffset : result.rightOffset;
|
|
@@ -193,10 +193,11 @@ function AutocompleteMenu(props) {
|
|
|
193
193
|
t12 = (current, _previous, directlyActivated) => {
|
|
194
194
|
activeDescendantRef.current = current || null;
|
|
195
195
|
if (current) {
|
|
196
|
-
|
|
196
|
+
const selectedItem = allItemsToRenderRef.current.find((item_1) => {
|
|
197
197
|
var _current$closest;
|
|
198
198
|
return item_1.id === ((_current$closest = current.closest("li")) === null || _current$closest === void 0 ? void 0 : _current$closest.getAttribute("data-id"));
|
|
199
|
-
})
|
|
199
|
+
});
|
|
200
|
+
setHighlightedItem(selectedItem);
|
|
200
201
|
setIsMenuDirectlyActivated(directlyActivated);
|
|
201
202
|
}
|
|
202
203
|
if (current && customScrollContainerRef && customScrollContainerRef.current && directlyActivated) scrollIntoView(current, customScrollContainerRef.current, menuScrollMargins);
|
|
@@ -250,7 +250,10 @@ function Breadcrumbs(t0) {
|
|
|
250
250
|
const measuredContainerWidth = containerElement.offsetWidth;
|
|
251
251
|
setContainerWidth((prev_0) => prev_0 === measuredContainerWidth ? prev_0 : measuredContainerWidth);
|
|
252
252
|
const listElement = containerElement.querySelector("ol");
|
|
253
|
-
if (listElement && listElement.children.length > 0 && listElement.children.length === childArray.length)
|
|
253
|
+
if (listElement && listElement.children.length > 0 && listElement.children.length === childArray.length) {
|
|
254
|
+
const widths = Array.from(listElement.children).map(_temp3);
|
|
255
|
+
setChildArrayWidths(widths);
|
|
256
|
+
}
|
|
254
257
|
};
|
|
255
258
|
$[3] = childArray.length;
|
|
256
259
|
$[4] = overflow;
|
package/dist/Dialog/Dialog.js
CHANGED
|
@@ -3,9 +3,9 @@ import { useProvidedRefOrCreate } from "../hooks/useProvidedRefOrCreate.js";
|
|
|
3
3
|
import { useOnEscapePress } from "../hooks/useOnEscapePress.js";
|
|
4
4
|
import { useResizeObserver } from "../hooks/useResizeObserver.js";
|
|
5
5
|
import { useId as useId$1 } from "../hooks/useId.js";
|
|
6
|
+
import { useSlots } from "../hooks/useSlots.js";
|
|
6
7
|
import { IconButton } from "../Button/IconButton.js";
|
|
7
8
|
import { ButtonComponent } from "../Button/Button.js";
|
|
8
|
-
import { useSlots } from "../hooks/useSlots.js";
|
|
9
9
|
import { useFocusTrap } from "../hooks/useFocusTrap.js";
|
|
10
10
|
import { useFocusZone } from "../hooks/useFocusZone.js";
|
|
11
11
|
import Portal_default from "../Portal/index.js";
|
|
@@ -31,20 +31,23 @@ const useAnnouncements = (items, listContainerRef, inputRef, enabled = true, loa
|
|
|
31
31
|
}, [enabled]);
|
|
32
32
|
useEffect(function announceInitialFocus() {
|
|
33
33
|
const focusHandler = () => {
|
|
34
|
-
if (usingRovingTabindex)
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
if (usingRovingTabindex) {
|
|
35
|
+
const announcementText = `${items.length} item${items.length > 1 ? "s" : ""} available, ${selectedItems} selected.`;
|
|
36
|
+
announce$1(announcementText, {
|
|
37
|
+
delayMs,
|
|
38
|
+
from: liveRegion ? liveRegion : void 0
|
|
39
|
+
});
|
|
40
|
+
} else window.requestAnimationFrame(() => {
|
|
39
41
|
const activeItem = getItemWithActiveDescendant(listContainerRef, items);
|
|
40
42
|
if (!activeItem) return;
|
|
41
43
|
const { index, text, selected } = activeItem;
|
|
42
|
-
|
|
44
|
+
const announcementText = [
|
|
43
45
|
`Focus on filter text box and list of items`,
|
|
44
46
|
`Focused item: ${text}`,
|
|
45
47
|
`${selected ? "selected" : "not selected"}`,
|
|
46
48
|
`${index + 1} of ${items.length}`
|
|
47
|
-
].join(", ")
|
|
49
|
+
].join(", ");
|
|
50
|
+
announce$1(announcementText, {
|
|
48
51
|
delayMs,
|
|
49
52
|
from: liveRegion ? liveRegion : void 0
|
|
50
53
|
});
|
|
@@ -70,20 +73,23 @@ const useAnnouncements = (items, listContainerRef, inputRef, enabled = true, loa
|
|
|
70
73
|
announce$1(`${message === null || message === void 0 ? void 0 : message.title}. ${message === null || message === void 0 ? void 0 : message.description}`, { delayMs });
|
|
71
74
|
return;
|
|
72
75
|
}
|
|
73
|
-
if (usingRovingTabindex)
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
if (usingRovingTabindex) {
|
|
77
|
+
const announcementText = `${items.length} item${items.length > 1 ? "s" : ""} available, ${selectedItems} selected.`;
|
|
78
|
+
announce$1(announcementText, {
|
|
79
|
+
delayMs,
|
|
80
|
+
from: liveRegion ? liveRegion : void 0
|
|
81
|
+
});
|
|
82
|
+
} else window.requestAnimationFrame(() => {
|
|
78
83
|
const activeItem = getItemWithActiveDescendant(listContainerRef, items);
|
|
79
84
|
if (!activeItem) return;
|
|
80
85
|
const { index, text, selected } = activeItem;
|
|
81
|
-
|
|
86
|
+
const announcementText = [
|
|
82
87
|
`List updated`,
|
|
83
88
|
`Focused item: ${text}`,
|
|
84
89
|
`${selected ? "selected" : "not selected"}`,
|
|
85
90
|
`${index + 1} of ${items.length}`
|
|
86
|
-
].join(", ")
|
|
91
|
+
].join(", ");
|
|
92
|
+
announce$1(announcementText, {
|
|
87
93
|
delayMs,
|
|
88
94
|
from: liveRegion ? liveRegion : void 0
|
|
89
95
|
});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
.prc-LabelGroup-Container-E-ePP{contain:layout;display:flex;flex-wrap:nowrap;gap:var(--base-size-4,.25rem);line-height:1;max-width:100%;overflow:hidden}.prc-LabelGroup-Container-E-ePP:where([data-overflow=inline]){flex-wrap:wrap}.prc-LabelGroup-Container-E-ePP:where([data-list]){list-style-type:none;margin-block-end:0;margin-block-start:0;padding-inline-start:0}.prc-LabelGroup-ItemWrapper-GkO4t{align-items:center;display:flex;min-height:28px}.prc-LabelGroup-ItemWrapper--hidden-mdrB0{order:9999;pointer-events:none;visibility:hidden}.prc-LabelGroup-OverlayContainer-duQvd{align-items:flex-start;display:flex}.prc-LabelGroup-OverlayInner-nDXRC{display:flex;flex-wrap:wrap;gap:var(--base-size-4,.25rem)}.prc-LabelGroup-CloseButton-IyLno{flex-shrink:0}
|
|
2
|
+
/*# sourceMappingURL=LabelGroup-db41f443.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/LabelGroup/LabelGroup.module.css.js"],"names":[],"mappings":"AAAA,gCAYE,cAAe,CAXf,YAAa,CACb,gBAAiB,CACjB,6BAAuB,CAEvB,aAAc,CACd,cAAe,CACf,eAiBF,CAVE,8DACE,cACF,CAEA,mDAIE,oBAAqB,CADrB,kBAAmB,CADnB,oBAAqB,CADrB,sBAIF,CAGF,kCAEE,kBAAmB,CADnB,YAAa,CAOb,eACF,CAEA,0CACE,UAAW,CACX,mBAAoB,CACpB,iBACF,CAEA,uCACE,sBAAuB,CACvB,YACF,CAEA,mCACE,YAAa,CACb,cAAe,CACf,6BACF,CAEA,kCACE,aACF","file":"LabelGroup-db41f443.css","sourcesContent":[".Container {\n display: flex;\n flex-wrap: nowrap;\n gap: var(--base-size-4);\n /* stylelint-disable-next-line primer/typography */\n line-height: 1;\n max-width: 100%;\n overflow: hidden;\n\n /* Isolate the IntersectionObserver-driven show/hide of overflowing labels so it can't invalidate\n ancestor layout. Safe because the row already clips (overflow: hidden) and the expanded overlay is\n rendered separately, so it isn't affected by the new containing block/stacking context. */\n contain: layout;\n\n &:where([data-overflow='inline']) {\n flex-wrap: wrap;\n }\n\n &:where([data-list]) {\n padding-inline-start: 0;\n margin-block-start: 0;\n margin-block-end: 0;\n list-style-type: none;\n }\n}\n\n.ItemWrapper {\n display: flex;\n align-items: center;\n /* This min-height matches the height of the expand/collapse button.\n Without it, the labels/tokens will do a slight layout shift when expanded.\n This is because the height of the first row will match the token sizes,\n but the height of the second row will be the height of the collapse button.\n */\n min-height: 28px;\n}\n\n.ItemWrapper--hidden {\n order: 9999;\n pointer-events: none;\n visibility: hidden;\n}\n\n.OverlayContainer {\n align-items: flex-start;\n display: flex;\n}\n\n.OverlayInner {\n display: flex;\n flex-wrap: wrap;\n gap: var(--base-size-4);\n}\n\n.CloseButton {\n flex-shrink: 0;\n}\n"]}
|
package/dist/NavList/NavList.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import useIsomorphicLayoutEffect from "../utils/useIsomorphicLayoutEffect.js";
|
|
2
2
|
import { useId as useId$1 } from "../hooks/useId.js";
|
|
3
|
+
import { useSlots } from "../hooks/useSlots.js";
|
|
3
4
|
import { fixedForwardRef } from "../utils/modern-polymorphic.js";
|
|
4
5
|
import _VisuallyHidden_module_css_default from "../_VisuallyHidden.module.css.js";
|
|
5
|
-
import { useSlots } from "../hooks/useSlots.js";
|
|
6
6
|
import { ActionListContainerContext } from "../ActionList/ActionListContainerContext.js";
|
|
7
7
|
import Heading$1 from "../Heading/Heading.js";
|
|
8
8
|
import ActionList_module_css_default from "../ActionList/ActionList.module.css.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useProvidedRefOrCreate } from "../hooks/useProvidedRefOrCreate.js";
|
|
2
2
|
import { warning } from "../utils/warning.js";
|
|
3
|
-
import { isResponsiveValue } from "../hooks/useResponsiveValue.js";
|
|
4
3
|
import { isSlot } from "../utils/is-slot.js";
|
|
4
|
+
import { isResponsiveValue } from "../hooks/useResponsiveValue.js";
|
|
5
5
|
import { getResponsiveAttributes } from "../internal/utils/getResponsiveAttributes.js";
|
|
6
6
|
import Heading from "../Heading/Heading.js";
|
|
7
7
|
import Link from "../Link/Link.js";
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
2
2
|
import { useId as useId$1 } from "../hooks/useId.js";
|
|
3
3
|
import { warning } from "../utils/warning.js";
|
|
4
|
-
import { isResponsiveValue } from "../hooks/useResponsiveValue.js";
|
|
5
4
|
import { useSlots } from "../hooks/useSlots.js";
|
|
5
|
+
import { isResponsiveValue } from "../hooks/useResponsiveValue.js";
|
|
6
6
|
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 { removeDraggingStyles, setDraggingStyles } from "./paneUtils.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";
|
|
16
18
|
const PageLayoutContext = /*#__PURE__*/ React.createContext({
|
|
17
19
|
padding: "normal",
|
|
18
20
|
rowGap: "normal",
|
|
@@ -265,9 +267,9 @@ const VerticalDivider = /*#__PURE__*/ memo((t0) => {
|
|
|
265
267
|
});
|
|
266
268
|
VerticalDivider.displayName = "VerticalDivider";
|
|
267
269
|
const SidebarDivider = /*#__PURE__*/ memo(function SidebarDivider(t0) {
|
|
268
|
-
const $ = c(
|
|
270
|
+
const $ = c(22);
|
|
269
271
|
const { position, divider, resizable, minPaneWidth, maxPaneWidth, currentWidth, currentWidthRef, handleRef, sidebarRef, dragStartClientXRef, dragStartWidthRef, dragMaxWidthRef, getMaxPaneWidth, getDefaultWidth, saveWidth } = t0;
|
|
270
|
-
const { columnGap
|
|
272
|
+
const { columnGap } = React.useContext(PageLayoutContext);
|
|
271
273
|
const t1 = resizable ? "line" : divider;
|
|
272
274
|
const t2 = `var(--spacing-${columnGap})`;
|
|
273
275
|
let t3;
|
|
@@ -278,11 +280,9 @@ const SidebarDivider = /*#__PURE__*/ memo(function SidebarDivider(t0) {
|
|
|
278
280
|
} else t3 = $[1];
|
|
279
281
|
const t4 = t3;
|
|
280
282
|
let t5;
|
|
281
|
-
if ($[2] !== currentWidth || $[3] !== currentWidthRef || $[4] !== dragMaxWidthRef || $[5] !== dragStartClientXRef || $[6] !== dragStartWidthRef || $[7] !== getDefaultWidth || $[8] !== getMaxPaneWidth || $[9] !== handleRef || $[10] !== maxPaneWidth || $[11] !== minPaneWidth || $[12] !== position || $[13] !== resizable || $[14] !== saveWidth || $[15] !==
|
|
283
|
+
if ($[2] !== currentWidth || $[3] !== currentWidthRef || $[4] !== dragMaxWidthRef || $[5] !== dragStartClientXRef || $[6] !== dragStartWidthRef || $[7] !== getDefaultWidth || $[8] !== getMaxPaneWidth || $[9] !== handleRef || $[10] !== maxPaneWidth || $[11] !== minPaneWidth || $[12] !== position || $[13] !== resizable || $[14] !== saveWidth || $[15] !== sidebarRef) {
|
|
282
284
|
t5 = resizable ? /*#__PURE__*/ jsx(DragHandle, {
|
|
283
285
|
handleRef,
|
|
284
|
-
dragTargetRef: sidebarRef,
|
|
285
|
-
contentWrapperRef: sidebarContentWrapperRef,
|
|
286
286
|
"aria-valuemin": minPaneWidth,
|
|
287
287
|
"aria-valuemax": maxPaneWidth,
|
|
288
288
|
"aria-valuenow": currentWidth,
|
|
@@ -347,12 +347,11 @@ const SidebarDivider = /*#__PURE__*/ memo(function SidebarDivider(t0) {
|
|
|
347
347
|
$[12] = position;
|
|
348
348
|
$[13] = resizable;
|
|
349
349
|
$[14] = saveWidth;
|
|
350
|
-
$[15] =
|
|
351
|
-
$[16] =
|
|
352
|
-
|
|
353
|
-
} else t5 = $[17];
|
|
350
|
+
$[15] = sidebarRef;
|
|
351
|
+
$[16] = t5;
|
|
352
|
+
} else t5 = $[16];
|
|
354
353
|
let t6;
|
|
355
|
-
if ($[
|
|
354
|
+
if ($[17] !== position || $[18] !== t1 || $[19] !== t4 || $[20] !== t5) {
|
|
356
355
|
t6 = /*#__PURE__*/ jsx(VerticalDivider, {
|
|
357
356
|
variant: t1,
|
|
358
357
|
position,
|
|
@@ -360,14 +359,212 @@ const SidebarDivider = /*#__PURE__*/ memo(function SidebarDivider(t0) {
|
|
|
360
359
|
style: t4,
|
|
361
360
|
children: t5
|
|
362
361
|
});
|
|
363
|
-
$[
|
|
364
|
-
$[
|
|
365
|
-
$[
|
|
366
|
-
$[
|
|
367
|
-
$[
|
|
368
|
-
} else t6 = $[
|
|
362
|
+
$[17] = position;
|
|
363
|
+
$[18] = t1;
|
|
364
|
+
$[19] = t4;
|
|
365
|
+
$[20] = t5;
|
|
366
|
+
$[21] = t6;
|
|
367
|
+
} else t6 = $[21];
|
|
369
368
|
return t6;
|
|
370
369
|
});
|
|
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
|
+
});
|
|
371
568
|
const Header = (t0) => {
|
|
372
569
|
const $ = c(29);
|
|
373
570
|
const { "aria-label": label, "aria-labelledby": labelledBy, padding: t1, divider: t2, dividerWhenNarrow: t3, hidden: t4, children, style, className, "data-component": t5 } = t0;
|
|
@@ -548,7 +745,7 @@ const overflowProps = {
|
|
|
548
745
|
role: "region"
|
|
549
746
|
};
|
|
550
747
|
const Pane = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
|
|
551
|
-
const $ = c(
|
|
748
|
+
const $ = c(97);
|
|
552
749
|
const { "aria-label": label, "aria-labelledby": labelledBy, position: t1, positionWhenNarrow: t2, width: t3, minWidth: t4, currentWidth: controlledWidth, onResizeEnd, padding: t5, resizable: t6, widthStorageKey: t7, divider: t8, dividerWhenNarrow: t9, sticky: t10, offsetHeader: t11, hidden: t12, children, id, className, style, "data-component": t13 } = t0;
|
|
553
750
|
const responsivePosition = t1 === void 0 ? "end" : t1;
|
|
554
751
|
const positionWhenNarrow = t2 === void 0 ? "inherit" : t2;
|
|
@@ -801,11 +998,9 @@ const Pane = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
|
|
|
801
998
|
} else t48 = $[70];
|
|
802
999
|
const t49 = t48;
|
|
803
1000
|
let t50;
|
|
804
|
-
if ($[71] !==
|
|
1001
|
+
if ($[71] !== currentWidth || $[72] !== currentWidthRef || $[73] !== getDefaultWidth || $[74] !== getMaxPaneWidth || $[75] !== maxPaneWidth || $[76] !== minPaneWidth || $[77] !== paneRef || $[78] !== position || $[79] !== resizable || $[80] !== saveWidth) {
|
|
805
1002
|
t50 = resizable ? /*#__PURE__*/ jsx(DragHandle, {
|
|
806
1003
|
handleRef,
|
|
807
|
-
dragTargetRef: paneRef,
|
|
808
|
-
contentWrapperRef,
|
|
809
1004
|
"aria-valuemin": minPaneWidth,
|
|
810
1005
|
"aria-valuemax": maxPaneWidth,
|
|
811
1006
|
"aria-valuenow": currentWidth,
|
|
@@ -857,21 +1052,20 @@ const Pane = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
|
|
|
857
1052
|
saveWidth(resetWidth);
|
|
858
1053
|
}
|
|
859
1054
|
}) : null;
|
|
860
|
-
$[71] =
|
|
861
|
-
$[72] =
|
|
862
|
-
$[73] =
|
|
863
|
-
$[74] =
|
|
864
|
-
$[75] =
|
|
865
|
-
$[76] =
|
|
866
|
-
$[77] =
|
|
867
|
-
$[78] =
|
|
868
|
-
$[79] =
|
|
869
|
-
$[80] =
|
|
870
|
-
$[81] =
|
|
871
|
-
|
|
872
|
-
} else t50 = $[82];
|
|
1055
|
+
$[71] = currentWidth;
|
|
1056
|
+
$[72] = currentWidthRef;
|
|
1057
|
+
$[73] = getDefaultWidth;
|
|
1058
|
+
$[74] = getMaxPaneWidth;
|
|
1059
|
+
$[75] = maxPaneWidth;
|
|
1060
|
+
$[76] = minPaneWidth;
|
|
1061
|
+
$[77] = paneRef;
|
|
1062
|
+
$[78] = position;
|
|
1063
|
+
$[79] = resizable;
|
|
1064
|
+
$[80] = saveWidth;
|
|
1065
|
+
$[81] = t50;
|
|
1066
|
+
} else t50 = $[81];
|
|
873
1067
|
let t51;
|
|
874
|
-
if ($[
|
|
1068
|
+
if ($[82] !== positionProp || $[83] !== resizable || $[84] !== t46 || $[85] !== t49 || $[86] !== t50) {
|
|
875
1069
|
t51 = /*#__PURE__*/ jsx(VerticalDivider, {
|
|
876
1070
|
variant: t46,
|
|
877
1071
|
draggable: resizable,
|
|
@@ -880,15 +1074,15 @@ const Pane = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
|
|
|
880
1074
|
style: t49,
|
|
881
1075
|
children: t50
|
|
882
1076
|
});
|
|
883
|
-
$[
|
|
884
|
-
$[
|
|
885
|
-
$[
|
|
886
|
-
$[
|
|
887
|
-
$[
|
|
888
|
-
$[
|
|
889
|
-
} else t51 = $[
|
|
1077
|
+
$[82] = positionProp;
|
|
1078
|
+
$[83] = resizable;
|
|
1079
|
+
$[84] = t46;
|
|
1080
|
+
$[85] = t49;
|
|
1081
|
+
$[86] = t50;
|
|
1082
|
+
$[87] = t51;
|
|
1083
|
+
} else t51 = $[87];
|
|
890
1084
|
let t52;
|
|
891
|
-
if ($[
|
|
1085
|
+
if ($[88] !== t19 || $[89] !== t24 || $[90] !== t25 || $[91] !== t26 || $[92] !== t27 || $[93] !== t32 || $[94] !== t45 || $[95] !== t51) {
|
|
892
1086
|
t52 = /*#__PURE__*/ jsxs("div", {
|
|
893
1087
|
className: t19,
|
|
894
1088
|
style: t24,
|
|
@@ -901,16 +1095,16 @@ const Pane = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
|
|
|
901
1095
|
t51
|
|
902
1096
|
]
|
|
903
1097
|
});
|
|
904
|
-
$[
|
|
905
|
-
$[
|
|
906
|
-
$[
|
|
907
|
-
$[
|
|
908
|
-
$[
|
|
909
|
-
$[
|
|
910
|
-
$[
|
|
911
|
-
$[
|
|
912
|
-
$[
|
|
913
|
-
} else t52 = $[
|
|
1098
|
+
$[88] = t19;
|
|
1099
|
+
$[89] = t24;
|
|
1100
|
+
$[90] = t25;
|
|
1101
|
+
$[91] = t26;
|
|
1102
|
+
$[92] = t27;
|
|
1103
|
+
$[93] = t32;
|
|
1104
|
+
$[94] = t45;
|
|
1105
|
+
$[95] = t51;
|
|
1106
|
+
$[96] = t52;
|
|
1107
|
+
} else t52 = $[96];
|
|
914
1108
|
return t52;
|
|
915
1109
|
});
|
|
916
1110
|
Pane.displayName = "PageLayout.Pane";
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import { CustomWidthOptions, PaneWidth, PaneWidthValue, UsePaneWidthOptions, UsePaneWidthResult, defaultPaneWidth, usePaneWidth } from "./usePaneWidth.js";
|
|
2
1
|
import { PageLayout, PageLayoutContentProps, PageLayoutFooterProps, PageLayoutHeaderProps, PageLayoutPaneBaseProps, PageLayoutPaneProps, PageLayoutProps, PageLayoutSidebarBaseProps, PageLayoutSidebarProps } from "./PageLayout.js";
|
|
3
|
-
|
|
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 };
|
|
2
|
+
export { PageLayout, PageLayoutContentProps, PageLayoutFooterProps, PageLayoutHeaderProps, PageLayoutPaneBaseProps, PageLayoutPaneProps, PageLayoutProps, PageLayoutSidebarBaseProps, PageLayoutSidebarProps };
|