@primer/react 38.40.2-rc.e319faf65 → 38.41.0-rc.27afe233f
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 -1
- package/dist/ActionBar/ActionBar.js +30 -33
- package/dist/ActionList/Description.js +2 -2
- package/dist/ActionList/Divider.js +1 -1
- package/dist/ActionList/Group.js +12 -12
- package/dist/ActionList/GroupHeadingTrailingAction.js +1 -10
- package/dist/ActionList/Heading.js +1 -1
- package/dist/ActionList/Item.js +19 -19
- package/dist/ActionList/LinkItem.js +4 -4
- package/dist/ActionList/List.js +2 -2
- package/dist/ActionList/Selection.js +6 -6
- package/dist/ActionList/TrailingAction.js +3 -3
- package/dist/ActionList/Visuals.js +9 -9
- package/dist/ActionMenu/ActionMenu.js +8 -11
- package/dist/AnchoredOverlay/AnchoredOverlay.js +4 -4
- package/dist/Autocomplete/Autocomplete.js +3 -3
- package/dist/Autocomplete/AutocompleteInput.js +1 -1
- package/dist/Autocomplete/AutocompleteMenu.js +111 -106
- package/dist/Autocomplete/AutocompleteOverlay.js +2 -2
- package/dist/Avatar/Avatar.js +1 -1
- package/dist/AvatarStack/AvatarStack.js +3 -3
- package/dist/Banner/Banner.js +21 -21
- package/dist/BaseStyles.js +1 -1
- package/dist/Blankslate/Blankslate.js +10 -11
- package/dist/BranchName/BranchName.js +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.js +20 -29
- package/dist/Button/Button.js +1 -1
- package/dist/Button/ButtonBase.js +8 -9
- package/dist/Button/IconButton.js +3 -3
- package/dist/Button/LinkButton.js +1 -1
- package/dist/ButtonGroup/ButtonGroup.js +2 -3
- package/dist/Card/Card.js +16 -16
- package/dist/Checkbox/Checkbox.js +1 -1
- package/dist/CheckboxGroup/CheckboxGroup.js +2 -2
- package/dist/CircleBadge/CircleBadge.js +2 -2
- package/dist/ConfirmationDialog/ConfirmationDialog.js +1 -5
- package/dist/CounterLabel/CounterLabel.js +2 -2
- package/dist/DataTable/DataTable.js +7 -8
- package/dist/DataTable/ErrorDialog.js +1 -1
- package/dist/DataTable/Pagination.js +23 -23
- package/dist/DataTable/Table.js +25 -27
- package/dist/DataTable/TableGroup.js +10 -10
- package/dist/Details/Details.js +2 -2
- package/dist/Dialog/Dialog.js +20 -23
- package/dist/FeatureFlags/FeatureFlags.js +1 -1
- package/dist/FilteredActionList/FilteredActionList.js +18 -19
- package/dist/FilteredActionList/FilteredActionListInput.js +2 -2
- package/dist/FilteredActionList/FilteredActionListLoaders.js +10 -11
- package/dist/Flash/Flash.js +1 -4
- package/dist/FormControl/FormControl.js +8 -8
- package/dist/FormControl/FormControlCaption.js +1 -1
- package/dist/FormControl/FormControlLabel.js +1 -1
- package/dist/FormControl/FormControlLeadingVisual.js +1 -1
- package/dist/FormControl/_FormControlValidation.js +1 -1
- package/dist/Header/Header.js +3 -3
- package/dist/Heading/Heading.js +1 -1
- package/dist/Hidden/Hidden.js +1 -1
- package/dist/InlineMessage/InlineMessage.js +11 -11
- package/dist/KeybindingHint/KeybindingHint.js +3 -3
- package/dist/KeybindingHint/components/Chord.js +3 -3
- package/dist/KeybindingHint/components/Key.js +3 -3
- package/dist/KeybindingHint/components/Sequence.js +1 -1
- package/dist/KeybindingHint/platform.js +0 -8
- package/dist/Label/Label.js +1 -1
- package/dist/LabelGroup/LabelGroup.js +18 -18
- package/dist/Link/Link.js +1 -1
- package/dist/NavList/NavList.js +24 -24
- package/dist/Octicon/Octicon.js +1 -4
- package/dist/Overlay/Overlay.js +3 -3
- package/dist/PageHeader/PageHeader.js +21 -21
- package/dist/PageLayout/DragHandle.js +1 -1
- package/dist/PageLayout/PageLayout.js +26 -26
- package/dist/PageLayout/usePaneWidth.js +0 -5
- package/dist/Pagehead/Pagehead.js +1 -1
- package/dist/Pagination/Pagination.js +9 -10
- package/dist/Popover/Popover.js +3 -3
- package/dist/ProgressBar/ProgressBar.js +3 -3
- package/dist/Radio/Radio.js +1 -1
- package/dist/RadioGroup/RadioGroup.js +2 -2
- package/dist/RelativeTime/RelativeTime.js +1 -1
- package/dist/ScrollableRegion/ScrollableRegion.js +1 -1
- package/dist/SegmentedControl/SegmentedControl.js +13 -13
- package/dist/SegmentedControl/SegmentedControlAction.js +6 -6
- package/dist/SegmentedControl/SegmentedControlButton.js +8 -8
- package/dist/SegmentedControl/SegmentedControlDivider.js +1 -1
- package/dist/SegmentedControl/SegmentedControlIconButton.js +5 -5
- package/dist/Select/Select.js +9 -9
- package/dist/SelectPanel/SelectPanel.js +24 -27
- package/dist/SelectPanel/SelectPanelMessage.js +5 -5
- package/dist/SideNav.js +2 -2
- package/dist/Skeleton/SkeletonBox.js +1 -1
- package/dist/SkeletonAvatar/SkeletonAvatar.js +1 -1
- package/dist/SkeletonText/SkeletonText.js +3 -3
- package/dist/Spinner/Spinner.js +5 -5
- package/dist/SplitPageLayout/SplitPageLayout.js +6 -6
- package/dist/Stack/Stack.js +2 -2
- package/dist/StateLabel/StateLabel.js +2 -2
- package/dist/SubNav/SubNav.js +5 -5
- package/dist/TabNav/TabNav.js +4 -10
- package/dist/Text/Text.js +1 -1
- package/dist/TextInput/TextInput.js +13 -13
- package/dist/TextInputWithTokens/TextInputWithTokens.js +12 -15
- package/dist/Textarea/Textarea.js +7 -7
- package/dist/ThemeProvider.js +1 -2
- package/dist/Timeline/Timeline.js +11 -14
- package/dist/ToggleSwitch/ToggleSwitch.js +18 -18
- package/dist/Token/IssueLabelToken.js +3 -3
- package/dist/Token/Token.js +7 -7
- package/dist/Token/TokenBase.js +1 -1
- package/dist/Token/_RemoveTokenButton.js +4 -5
- package/dist/Token/_TokenTextContainer.js +1 -1
- package/dist/Tooltip/Tooltip.js +2 -5
- package/dist/TooltipV2/Tooltip.js +7 -7
- package/dist/TopicTag/TopicTag.js +1 -1
- package/dist/TopicTag/TopicTagGroup.js +1 -1
- package/dist/TreeView/TreeView.js +52 -59
- package/dist/TreeView/useTypeahead.js +3 -3
- package/dist/Truncate/Truncate.js +1 -2
- package/dist/UnderlineNav/UnderlineNav.js +18 -18
- package/dist/UnderlineNav/UnderlineNavItem.js +2 -2
- package/dist/VisuallyHidden/VisuallyHidden.js +1 -1
- package/dist/_VisuallyHidden.js +1 -1
- package/dist/deprecated/ActionList/Divider.js +1 -1
- package/dist/deprecated/ActionList/Group.js +2 -5
- package/dist/deprecated/ActionList/Header.js +2 -5
- package/dist/deprecated/ActionList/Item.js +17 -20
- package/dist/deprecated/ActionList/List.js +4 -13
- package/dist/deprecated/ActionMenu.js +4 -6
- package/dist/deprecated/DialogV1/Dialog.js +5 -5
- package/dist/deprecated/FilteredSearch/FilteredSearch.js +1 -1
- package/dist/deprecated/UnderlineNav/UnderlineNav.js +4 -4
- package/dist/experimental/IssueLabel/IssueLabel.js +4 -4
- package/dist/experimental/SelectPanel2/SelectPanel.js +42 -49
- package/dist/experimental/Tabs/Tabs.js +1 -1
- package/dist/experimental/UnderlinePanels/UnderlinePanels.js +6 -9
- package/dist/hooks/useMergedRefs.js +0 -12
- package/dist/hooks/useResponsiveValue.js +0 -5
- package/dist/hooks/useSlots.js +0 -48
- package/dist/internal/components/ButtonReset.js +1 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js +9 -9
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupCaption.js +1 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.js +4 -4
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.js +1 -1
- package/dist/internal/components/ConditionalWrapper.js +2 -2
- package/dist/internal/components/InputLabel.js +3 -3
- package/dist/internal/components/InputValidation.js +4 -4
- package/dist/internal/components/OverflowObserverProvider.js +1 -1
- package/dist/internal/components/TextInputInnerAction.js +6 -6
- package/dist/internal/components/TextInputInnerVisualSlot.js +5 -5
- package/dist/internal/components/TextInputWrapper.js +2 -2
- package/dist/internal/components/ThemeProviderBase.js +3 -3
- package/dist/internal/components/UnderlineTabbedInterface.js +11 -11
- package/dist/internal/components/UnstyledTextInput.js +1 -1
- package/dist/internal/components/ValidationAnimationContainer.js +2 -2
- package/dist/internal/hooks/useOverflowObserver.js +1 -2
- package/dist/live-region/Announce.js +1 -1
- package/dist/live-region/AriaAlert.js +1 -1
- package/dist/live-region/AriaStatus.js +1 -1
- package/dist/next/ThemeProvider.js +1 -1
- package/dist/utils/descendant-registry.js +1 -7
- package/dist/utils/modern-polymorphic.js +0 -10
- package/package.json +3 -3
package/dist/NavList/NavList.js
CHANGED
|
@@ -79,9 +79,9 @@ const Root = /*#__PURE__*/ React.forwardRef((t0, ref) => {
|
|
|
79
79
|
} else t4 = $[12];
|
|
80
80
|
let t5;
|
|
81
81
|
if ($[13] !== childrenWithoutHeading || $[14] !== disableItemGap) {
|
|
82
|
-
t5 =
|
|
82
|
+
t5 = /* @__PURE__ */ jsx(ActionListContainerContext.Provider, {
|
|
83
83
|
value: t4,
|
|
84
|
-
children:
|
|
84
|
+
children: /* @__PURE__ */ jsx(ActionList, {
|
|
85
85
|
disableItemGap,
|
|
86
86
|
children: childrenWithoutHeading
|
|
87
87
|
})
|
|
@@ -92,7 +92,7 @@ const Root = /*#__PURE__*/ React.forwardRef((t0, ref) => {
|
|
|
92
92
|
} else t5 = $[15];
|
|
93
93
|
let t6;
|
|
94
94
|
if ($[16] !== headingLevel || $[17] !== t3 || $[18] !== t5) {
|
|
95
|
-
t6 =
|
|
95
|
+
t6 = /* @__PURE__ */ jsxs(NavListHeadingLevelContext.Provider, {
|
|
96
96
|
value: headingLevel,
|
|
97
97
|
children: [t3, t5]
|
|
98
98
|
});
|
|
@@ -103,7 +103,7 @@ const Root = /*#__PURE__*/ React.forwardRef((t0, ref) => {
|
|
|
103
103
|
} else t6 = $[19];
|
|
104
104
|
let t7;
|
|
105
105
|
if ($[20] !== ariaLabel || $[21] !== navLabelledby || $[22] !== props || $[23] !== ref || $[24] !== t6) {
|
|
106
|
-
t7 =
|
|
106
|
+
t7 = /* @__PURE__ */ jsx("nav", {
|
|
107
107
|
...props,
|
|
108
108
|
"aria-label": ariaLabel,
|
|
109
109
|
"aria-labelledby": navLabelledby,
|
|
@@ -154,7 +154,7 @@ const Heading = (t0) => {
|
|
|
154
154
|
} else t4 = $[8];
|
|
155
155
|
let t5;
|
|
156
156
|
if ($[9] !== as || $[10] !== children || $[11] !== props || $[12] !== t4) {
|
|
157
|
-
t5 =
|
|
157
|
+
t5 = /* @__PURE__ */ jsx(Heading$1, {
|
|
158
158
|
as,
|
|
159
159
|
variant: "small",
|
|
160
160
|
className: t4,
|
|
@@ -180,7 +180,7 @@ const ItemComponent = fixedForwardRef(({ "aria-current": ariaCurrent, children,
|
|
|
180
180
|
});
|
|
181
181
|
const subNav = slots.subNav;
|
|
182
182
|
if (!/*#__PURE__*/ isValidElement(subNav) && defaultOpen) console.error("NavList.Item must have a NavList.SubNav to use defaultOpen.");
|
|
183
|
-
if (subNav && /*#__PURE__*/ isValidElement(subNav)) return
|
|
183
|
+
if (subNav && /*#__PURE__*/ isValidElement(subNav)) return /* @__PURE__ */ jsx(ItemWithSubNav, {
|
|
184
184
|
subNav,
|
|
185
185
|
depth,
|
|
186
186
|
defaultOpen,
|
|
@@ -189,7 +189,7 @@ const ItemComponent = fixedForwardRef(({ "aria-current": ariaCurrent, children,
|
|
|
189
189
|
children: childrenWithoutSubNavOrTrailingAction
|
|
190
190
|
});
|
|
191
191
|
const InternalLinkItem = ActionList.LinkItem;
|
|
192
|
-
return
|
|
192
|
+
return /* @__PURE__ */ jsx(InternalLinkItem, {
|
|
193
193
|
ref,
|
|
194
194
|
as: Component,
|
|
195
195
|
"aria-current": ariaCurrent,
|
|
@@ -269,7 +269,7 @@ function ItemWithSubNav(t0) {
|
|
|
269
269
|
} else t6 = $[11];
|
|
270
270
|
let t7;
|
|
271
271
|
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
272
|
-
t7 =
|
|
272
|
+
t7 = /* @__PURE__ */ jsx(ActionList.TrailingVisual, { children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: ActionList_module_css_default.ExpandIcon }) });
|
|
273
273
|
$[12] = t7;
|
|
274
274
|
} else t7 = $[12];
|
|
275
275
|
let t8;
|
|
@@ -285,13 +285,13 @@ function ItemWithSubNav(t0) {
|
|
|
285
285
|
} else t8 = $[14];
|
|
286
286
|
let t9;
|
|
287
287
|
if ($[16] !== t8) {
|
|
288
|
-
t9 =
|
|
288
|
+
t9 = /* @__PURE__ */ jsx(SubItem, { children: t8 });
|
|
289
289
|
$[16] = t8;
|
|
290
290
|
$[17] = t9;
|
|
291
291
|
} else t9 = $[17];
|
|
292
292
|
let t10;
|
|
293
293
|
if ($[18] !== buttonId || $[19] !== children || $[20] !== isOpen || $[21] !== style || $[22] !== subNavId || $[23] !== t5 || $[24] !== t9 || $[25] !== tooltipText) {
|
|
294
|
-
t10 =
|
|
294
|
+
t10 = /* @__PURE__ */ jsxs(ActionList.Item, {
|
|
295
295
|
id: buttonId,
|
|
296
296
|
"aria-expanded": isOpen,
|
|
297
297
|
"aria-controls": subNavId,
|
|
@@ -318,7 +318,7 @@ function ItemWithSubNav(t0) {
|
|
|
318
318
|
} else t10 = $[26];
|
|
319
319
|
let t11;
|
|
320
320
|
if ($[27] !== t10 || $[28] !== t4) {
|
|
321
|
-
t11 =
|
|
321
|
+
t11 = /* @__PURE__ */ jsx(ItemWithSubNavContext.Provider, {
|
|
322
322
|
value: t4,
|
|
323
323
|
children: t10
|
|
324
324
|
});
|
|
@@ -351,7 +351,7 @@ const SubNav = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) => {
|
|
|
351
351
|
} else t2 = $[1];
|
|
352
352
|
let t3;
|
|
353
353
|
if ($[2] !== buttonId || $[3] !== children || $[4] !== forwardedRef || $[5] !== subNavId) {
|
|
354
|
-
t3 =
|
|
354
|
+
t3 = /* @__PURE__ */ jsx("ul", {
|
|
355
355
|
className: ActionList_module_css_default.SubGroup,
|
|
356
356
|
id: subNavId,
|
|
357
357
|
"aria-labelledby": buttonId,
|
|
@@ -367,7 +367,7 @@ const SubNav = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) => {
|
|
|
367
367
|
} else t3 = $[6];
|
|
368
368
|
let t4;
|
|
369
369
|
if ($[7] !== t2 || $[8] !== t3) {
|
|
370
|
-
t4 =
|
|
370
|
+
t4 = /* @__PURE__ */ jsx(SubNavContext.Provider, {
|
|
371
371
|
value: t2,
|
|
372
372
|
children: t3
|
|
373
373
|
});
|
|
@@ -450,13 +450,13 @@ const Group = (t0) => {
|
|
|
450
450
|
const groupHeadingAs = t4;
|
|
451
451
|
let t5;
|
|
452
452
|
if ($[13] !== hideDivider) {
|
|
453
|
-
t5 = !hideDivider &&
|
|
453
|
+
t5 = !hideDivider && /* @__PURE__ */ jsx(ActionList.Divider, {});
|
|
454
454
|
$[13] = hideDivider;
|
|
455
455
|
$[14] = t5;
|
|
456
456
|
} else t5 = $[14];
|
|
457
457
|
let t6;
|
|
458
458
|
if ($[15] !== groupHeadingAs || $[16] !== slots.groupHeading || $[17] !== title) {
|
|
459
|
-
t6 = slots.groupHeading ? /*#__PURE__*/ React.cloneElement(slots.groupHeading, { headingWrapElement: "div" }) : title ?
|
|
459
|
+
t6 = slots.groupHeading ? /*#__PURE__*/ React.cloneElement(slots.groupHeading, { headingWrapElement: "div" }) : title ? /* @__PURE__ */ jsx(ActionList.GroupHeading, {
|
|
460
460
|
as: groupHeadingAs,
|
|
461
461
|
"data-component": "ActionList.GroupHeading",
|
|
462
462
|
children: title
|
|
@@ -468,7 +468,7 @@ const Group = (t0) => {
|
|
|
468
468
|
} else t6 = $[18];
|
|
469
469
|
let t7;
|
|
470
470
|
if ($[19] !== childrenWithoutHeading || $[20] !== props || $[21] !== t6) {
|
|
471
|
-
t7 =
|
|
471
|
+
t7 = /* @__PURE__ */ jsxs(ActionList.Group, {
|
|
472
472
|
...props,
|
|
473
473
|
children: [t6, childrenWithoutHeading]
|
|
474
474
|
});
|
|
@@ -479,7 +479,7 @@ const Group = (t0) => {
|
|
|
479
479
|
} else t7 = $[22];
|
|
480
480
|
let t8;
|
|
481
481
|
if ($[23] !== t5 || $[24] !== t7) {
|
|
482
|
-
t8 =
|
|
482
|
+
t8 = /* @__PURE__ */ jsxs(Fragment$1, { children: [t5, t7] });
|
|
483
483
|
$[23] = t5;
|
|
484
484
|
$[24] = t7;
|
|
485
485
|
$[25] = t8;
|
|
@@ -517,7 +517,7 @@ const GroupExpand = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) => {
|
|
|
517
517
|
const focusTargetIndex = currentPage === 1 ? 0 : amountToShow - Math.floor(itemsPerPage);
|
|
518
518
|
let t3;
|
|
519
519
|
if ($[6] !== amountToShow || $[7] !== currentPage || $[8] !== focusTargetIndex || $[9] !== groupId || $[10] !== items || $[11] !== renderItem) {
|
|
520
|
-
t3 = currentPage > 0 ?
|
|
520
|
+
t3 = currentPage > 0 ? /* @__PURE__ */ jsx(Fragment$1, { children: items.map((itemArr, index) => {
|
|
521
521
|
const { text, trailingVisual: TrailingVisualIcon, leadingVisual: LeadingVisualIcon, trailingAction, ...rest } = itemArr;
|
|
522
522
|
const { icon, label: actionLabel, ...actionProps } = trailingAction || {};
|
|
523
523
|
const focusTarget = index === focusTargetIndex ? groupId : void 0;
|
|
@@ -526,11 +526,11 @@ const GroupExpand = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) => {
|
|
|
526
526
|
...itemArr,
|
|
527
527
|
"data-expand-focus-target": focusTarget
|
|
528
528
|
});
|
|
529
|
-
return
|
|
529
|
+
return /* @__PURE__ */ createElement(Item, {
|
|
530
530
|
...rest,
|
|
531
531
|
key: index,
|
|
532
532
|
"data-expand-focus-target": focusTarget
|
|
533
|
-
}, LeadingVisualIcon ?
|
|
533
|
+
}, LeadingVisualIcon ? /* @__PURE__ */ jsx(LeadingVisual, { children: /* @__PURE__ */ jsx(LeadingVisualIcon, {}) }) : null, text, TrailingVisualIcon ? /* @__PURE__ */ jsx(TrailingVisual, { children: /* @__PURE__ */ jsx(TrailingVisualIcon, {}) }) : null, trailingAction ? /* @__PURE__ */ jsx(TrailingAction, {
|
|
534
534
|
...actionProps,
|
|
535
535
|
icon,
|
|
536
536
|
label: actionLabel || ""
|
|
@@ -547,7 +547,7 @@ const GroupExpand = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) => {
|
|
|
547
547
|
} else t3 = $[12];
|
|
548
548
|
let t4;
|
|
549
549
|
if ($[13] !== currentPage || $[14] !== forwardedRef || $[15] !== groupId || $[16] !== label || $[17] !== pages || $[18] !== props) {
|
|
550
|
-
t4 = currentPage < pages || currentPage === 0 ?
|
|
550
|
+
t4 = currentPage < pages || currentPage === 0 ? /* @__PURE__ */ jsxs(ActionList.Item, {
|
|
551
551
|
as: "button",
|
|
552
552
|
"aria-expanded": "false",
|
|
553
553
|
ref: forwardedRef,
|
|
@@ -559,7 +559,7 @@ const GroupExpand = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) => {
|
|
|
559
559
|
if (focusTarget_0.length > 0) focusTarget_0[focusTarget_0.length - 1].focus();
|
|
560
560
|
},
|
|
561
561
|
...props,
|
|
562
|
-
children: [label,
|
|
562
|
+
children: [label, /* @__PURE__ */ jsx(TrailingVisual, { children: /* @__PURE__ */ jsx(PlusIcon, {}) })]
|
|
563
563
|
}) : null;
|
|
564
564
|
$[13] = currentPage;
|
|
565
565
|
$[14] = forwardedRef;
|
|
@@ -571,7 +571,7 @@ const GroupExpand = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) => {
|
|
|
571
571
|
} else t4 = $[19];
|
|
572
572
|
let t5;
|
|
573
573
|
if ($[20] !== t3 || $[21] !== t4) {
|
|
574
|
-
t5 =
|
|
574
|
+
t5 = /* @__PURE__ */ jsxs(Fragment$1, { children: [t3, t4] });
|
|
575
575
|
$[20] = t3;
|
|
576
576
|
$[21] = t4;
|
|
577
577
|
$[22] = t5;
|
|
@@ -616,7 +616,7 @@ const GroupHeadingImpl = (t0) => {
|
|
|
616
616
|
} else t2 = $[8];
|
|
617
617
|
let t3;
|
|
618
618
|
if ($[9] !== resolvedAs || $[10] !== rest || $[11] !== t2) {
|
|
619
|
-
t3 =
|
|
619
|
+
t3 = /* @__PURE__ */ jsx(ActionList.GroupHeading, {
|
|
620
620
|
as: resolvedAs,
|
|
621
621
|
className: t2,
|
|
622
622
|
"data-component": "NavList.GroupHeading",
|
package/dist/Octicon/Octicon.js
CHANGED
|
@@ -5,9 +5,6 @@ import { jsx } from "react/jsx-runtime";
|
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated Use the icon component directly from `@primer/octicons-react` instead
|
|
7
7
|
*/
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated Use the icon component directly from `@primer/octicons-react` instead
|
|
10
|
-
*/
|
|
11
8
|
const Octicon = /*#__PURE__*/ React.forwardRef((props, ref) => {
|
|
12
9
|
const $ = c(7);
|
|
13
10
|
let IconComponent;
|
|
@@ -23,7 +20,7 @@ const Octicon = /*#__PURE__*/ React.forwardRef((props, ref) => {
|
|
|
23
20
|
}
|
|
24
21
|
let t0;
|
|
25
22
|
if ($[3] !== IconComponent || $[4] !== ref || $[5] !== rest) {
|
|
26
|
-
t0 =
|
|
23
|
+
t0 = /* @__PURE__ */ jsx(IconComponent, {
|
|
27
24
|
...rest,
|
|
28
25
|
ref
|
|
29
26
|
});
|
package/dist/Overlay/Overlay.js
CHANGED
|
@@ -45,7 +45,7 @@ function getSlideAnimationStartingVector(anchorSide) {
|
|
|
45
45
|
* @param position Optional. Sets how an element is positioned in a document. Defaults to `absolute` positioning.
|
|
46
46
|
*/
|
|
47
47
|
const BaseOverlay = /*#__PURE__*/ React.forwardRef(({ visibility, height, width, top, left, right, bottom, position, style: styleFromProps, className, maxHeight, maxWidth, as: Component = "div", ...rest }, forwardedRef) => {
|
|
48
|
-
return
|
|
48
|
+
return /* @__PURE__ */ jsx(Component, {
|
|
49
49
|
...rest,
|
|
50
50
|
ref: forwardedRef,
|
|
51
51
|
style: {
|
|
@@ -114,7 +114,7 @@ const Overlay = /*#__PURE__*/ React.forwardRef(({ anchorSide, _PrivateDisablePor
|
|
|
114
114
|
slideAnimationEasing,
|
|
115
115
|
visibility
|
|
116
116
|
]);
|
|
117
|
-
const overlayContent =
|
|
117
|
+
const overlayContent = /* @__PURE__ */ jsx(BaseOverlay, {
|
|
118
118
|
role,
|
|
119
119
|
width,
|
|
120
120
|
"data-reflow-container": !preventOverflow ? true : void 0,
|
|
@@ -127,7 +127,7 @@ const Overlay = /*#__PURE__*/ React.forwardRef(({ anchorSide, _PrivateDisablePor
|
|
|
127
127
|
...props
|
|
128
128
|
});
|
|
129
129
|
if (_PrivateDisablePortal && cssAnchorPositioning) return overlayContent;
|
|
130
|
-
return
|
|
130
|
+
return /* @__PURE__ */ jsx(Portal_default, {
|
|
131
131
|
containerName: portalContainerName,
|
|
132
132
|
children: overlayContent
|
|
133
133
|
});
|
|
@@ -47,12 +47,12 @@ const Root = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) => {
|
|
|
47
47
|
result.navigationHidden = nested.navigationHidden;
|
|
48
48
|
}
|
|
49
49
|
} else if (child.type === TitleArea) {
|
|
50
|
-
var
|
|
51
|
-
result.titleVariant = (
|
|
50
|
+
var _child$props$variant;
|
|
51
|
+
result.titleVariant = (_child$props$variant = child.props.variant) !== null && _child$props$variant !== void 0 ? _child$props$variant : "medium";
|
|
52
52
|
} else if (child.type === Navigation) {
|
|
53
|
-
var
|
|
53
|
+
var _child$props$hidden;
|
|
54
54
|
result.hasNavigation = true;
|
|
55
|
-
result.navigationHidden = (
|
|
55
|
+
result.navigationHidden = (_child$props$hidden = child.props.hidden) !== null && _child$props$hidden !== void 0 ? _child$props$hidden : false;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
return result;
|
|
@@ -98,7 +98,7 @@ const Root = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) => {
|
|
|
98
98
|
const t9 = getNavHiddenDataAttributes(navigationHidden);
|
|
99
99
|
let t10;
|
|
100
100
|
if ($[6] !== BaseComponent || $[7] !== appliedRef || $[8] !== ariaLabel || $[9] !== children || $[10] !== role || $[11] !== t4 || $[12] !== t6 || $[13] !== t7 || $[14] !== t8 || $[15] !== t9) {
|
|
101
|
-
t10 =
|
|
101
|
+
t10 = /* @__PURE__ */ jsx(BaseComponent, {
|
|
102
102
|
ref: appliedRef,
|
|
103
103
|
className: t4,
|
|
104
104
|
"data-component": t5,
|
|
@@ -142,7 +142,7 @@ const ContextArea = (t0) => {
|
|
|
142
142
|
} else t3 = $[3];
|
|
143
143
|
let t4;
|
|
144
144
|
if ($[4] !== children || $[5] !== t2 || $[6] !== t3) {
|
|
145
|
-
t4 =
|
|
145
|
+
t4 = /* @__PURE__ */ jsx("div", {
|
|
146
146
|
className: t2,
|
|
147
147
|
"data-component": "PageHeader.ContextArea",
|
|
148
148
|
...t3,
|
|
@@ -200,18 +200,18 @@ const ParentLink = /*#__PURE__*/ React.forwardRef((t0, ref) => {
|
|
|
200
200
|
} else t4 = $[11];
|
|
201
201
|
let t5;
|
|
202
202
|
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
203
|
-
t5 =
|
|
203
|
+
t5 = /* @__PURE__ */ jsx(ArrowLeftIcon, {});
|
|
204
204
|
$[12] = t5;
|
|
205
205
|
} else t5 = $[12];
|
|
206
206
|
let t6;
|
|
207
207
|
if ($[13] !== children) {
|
|
208
|
-
t6 =
|
|
208
|
+
t6 = /* @__PURE__ */ jsx("div", { children });
|
|
209
209
|
$[13] = children;
|
|
210
210
|
$[14] = t6;
|
|
211
211
|
} else t6 = $[14];
|
|
212
212
|
let t7;
|
|
213
213
|
if ($[15] !== ariaLabel || $[16] !== as || $[17] !== href || $[18] !== ref || $[19] !== rest || $[20] !== t3 || $[21] !== t4 || $[22] !== t6) {
|
|
214
|
-
t7 =
|
|
214
|
+
t7 = /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsxs(Link, {
|
|
215
215
|
ref,
|
|
216
216
|
as,
|
|
217
217
|
"aria-label": ariaLabel,
|
|
@@ -254,7 +254,7 @@ const ContextBar = (t0) => {
|
|
|
254
254
|
} else t3 = $[3];
|
|
255
255
|
let t4;
|
|
256
256
|
if ($[4] !== children || $[5] !== t2 || $[6] !== t3) {
|
|
257
|
-
t4 =
|
|
257
|
+
t4 = /* @__PURE__ */ jsx("div", {
|
|
258
258
|
className: t2,
|
|
259
259
|
"data-component": "PageHeader.ContextBar",
|
|
260
260
|
...t3,
|
|
@@ -285,7 +285,7 @@ const ContextAreaActions = (t0) => {
|
|
|
285
285
|
} else t3 = $[3];
|
|
286
286
|
let t4;
|
|
287
287
|
if ($[4] !== children || $[5] !== t2 || $[6] !== t3) {
|
|
288
|
-
t4 =
|
|
288
|
+
t4 = /* @__PURE__ */ jsx("div", {
|
|
289
289
|
className: t2,
|
|
290
290
|
"data-component": "PageHeader.ContextAreaActions",
|
|
291
291
|
...t3,
|
|
@@ -326,7 +326,7 @@ const TitleArea = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) => {
|
|
|
326
326
|
} else t5 = $[5];
|
|
327
327
|
let t6;
|
|
328
328
|
if ($[6] !== appliedRef || $[7] !== children || $[8] !== t3 || $[9] !== t4 || $[10] !== t5) {
|
|
329
|
-
t6 =
|
|
329
|
+
t6 = /* @__PURE__ */ jsx("div", {
|
|
330
330
|
className: t3,
|
|
331
331
|
ref: appliedRef,
|
|
332
332
|
"data-component": "TitleArea",
|
|
@@ -362,7 +362,7 @@ const LeadingAction = (t0) => {
|
|
|
362
362
|
} else t3 = $[3];
|
|
363
363
|
let t4;
|
|
364
364
|
if ($[4] !== children || $[5] !== t2 || $[6] !== t3) {
|
|
365
|
-
t4 =
|
|
365
|
+
t4 = /* @__PURE__ */ jsx("div", {
|
|
366
366
|
className: t2,
|
|
367
367
|
"data-component": "PH_LeadingAction",
|
|
368
368
|
...t3,
|
|
@@ -394,7 +394,7 @@ const Breadcrumbs = (t0) => {
|
|
|
394
394
|
} else t3 = $[3];
|
|
395
395
|
let t4;
|
|
396
396
|
if ($[4] !== children || $[5] !== t2 || $[6] !== t3) {
|
|
397
|
-
t4 =
|
|
397
|
+
t4 = /* @__PURE__ */ jsx("div", {
|
|
398
398
|
className: t2,
|
|
399
399
|
"data-component": "PH_Breadcrumbs",
|
|
400
400
|
...t3,
|
|
@@ -425,7 +425,7 @@ const LeadingVisual = (t0) => {
|
|
|
425
425
|
} else t3 = $[3];
|
|
426
426
|
let t4;
|
|
427
427
|
if ($[4] !== children || $[5] !== t2 || $[6] !== t3) {
|
|
428
|
-
t4 =
|
|
428
|
+
t4 = /* @__PURE__ */ jsx("div", {
|
|
429
429
|
className: t2,
|
|
430
430
|
"data-component": "PH_LeadingVisual",
|
|
431
431
|
...t3,
|
|
@@ -457,7 +457,7 @@ const Title = (t0) => {
|
|
|
457
457
|
} else t4 = $[3];
|
|
458
458
|
let t5;
|
|
459
459
|
if ($[4] !== as || $[5] !== children || $[6] !== hidden || $[7] !== t3 || $[8] !== t4) {
|
|
460
|
-
t5 =
|
|
460
|
+
t5 = /* @__PURE__ */ jsx(Heading, {
|
|
461
461
|
className: t3,
|
|
462
462
|
"data-component": "PH_Title",
|
|
463
463
|
"data-hidden": hidden,
|
|
@@ -492,7 +492,7 @@ const TrailingVisual = (t0) => {
|
|
|
492
492
|
} else t3 = $[3];
|
|
493
493
|
let t4;
|
|
494
494
|
if ($[4] !== children || $[5] !== t2 || $[6] !== t3) {
|
|
495
|
-
t4 =
|
|
495
|
+
t4 = /* @__PURE__ */ jsx("div", {
|
|
496
496
|
className: t2,
|
|
497
497
|
"data-component": "PH_TrailingVisual",
|
|
498
498
|
...t3,
|
|
@@ -523,7 +523,7 @@ const TrailingAction = (t0) => {
|
|
|
523
523
|
} else t3 = $[3];
|
|
524
524
|
let t4;
|
|
525
525
|
if ($[4] !== children || $[5] !== t2 || $[6] !== t3) {
|
|
526
|
-
t4 =
|
|
526
|
+
t4 = /* @__PURE__ */ jsx("div", {
|
|
527
527
|
className: t2,
|
|
528
528
|
"data-component": "PH_TrailingAction",
|
|
529
529
|
...t3,
|
|
@@ -554,7 +554,7 @@ const Actions = (t0) => {
|
|
|
554
554
|
} else t3 = $[3];
|
|
555
555
|
let t4;
|
|
556
556
|
if ($[4] !== children || $[5] !== t2 || $[6] !== t3) {
|
|
557
|
-
t4 =
|
|
557
|
+
t4 = /* @__PURE__ */ jsx("div", {
|
|
558
558
|
className: t2,
|
|
559
559
|
"data-component": "PH_Actions",
|
|
560
560
|
...t3,
|
|
@@ -585,7 +585,7 @@ const Description = (t0) => {
|
|
|
585
585
|
} else t3 = $[3];
|
|
586
586
|
let t4;
|
|
587
587
|
if ($[4] !== children || $[5] !== t2 || $[6] !== t3) {
|
|
588
|
-
t4 =
|
|
588
|
+
t4 = /* @__PURE__ */ jsx("div", {
|
|
589
589
|
className: t2,
|
|
590
590
|
"data-component": "PageHeader.Description",
|
|
591
591
|
...t3,
|
|
@@ -620,7 +620,7 @@ const Navigation = (t0) => {
|
|
|
620
620
|
} else t6 = $[3];
|
|
621
621
|
let t7;
|
|
622
622
|
if ($[4] !== BaseComponent || $[5] !== children || $[6] !== t3 || $[7] !== t4 || $[8] !== t5 || $[9] !== t6) {
|
|
623
|
-
t7 =
|
|
623
|
+
t7 = /* @__PURE__ */ jsx(BaseComponent, {
|
|
624
624
|
"aria-label": t3,
|
|
625
625
|
"aria-labelledby": t4,
|
|
626
626
|
className: t5,
|
|
@@ -183,7 +183,7 @@ const DragHandle = /*#__PURE__*/ memo(function DragHandle(t0) {
|
|
|
183
183
|
} else t15 = $[26];
|
|
184
184
|
let t16;
|
|
185
185
|
if ($[27] !== ariaLabelledBy || $[28] !== ariaValueMax || $[29] !== ariaValueMin || $[30] !== ariaValueNow || $[31] !== dataComponent || $[32] !== handleKeyDown || $[33] !== handleKeyUp || $[34] !== handleLostPointerCapture || $[35] !== handlePointerDown || $[36] !== handleRef || $[37] !== onDoubleClick || $[38] !== t14 || $[39] !== t15) {
|
|
186
|
-
t16 =
|
|
186
|
+
t16 = /* @__PURE__ */ jsx("div", {
|
|
187
187
|
ref: handleRef,
|
|
188
188
|
className: PageLayout_module_css_default.DraggableHandle,
|
|
189
189
|
"data-component": dataComponent,
|
|
@@ -72,7 +72,7 @@ const Root = (t0) => {
|
|
|
72
72
|
} else t11 = $[6];
|
|
73
73
|
let t12;
|
|
74
74
|
if ($[7] !== rest) {
|
|
75
|
-
t12 =
|
|
75
|
+
t12 = /* @__PURE__ */ jsx("div", {
|
|
76
76
|
className: t11,
|
|
77
77
|
children: rest
|
|
78
78
|
});
|
|
@@ -81,7 +81,7 @@ const Root = (t0) => {
|
|
|
81
81
|
} else t12 = $[8];
|
|
82
82
|
let t13;
|
|
83
83
|
if ($[9] !== containerWidth || $[10] !== slots.footer || $[11] !== slots.header || $[12] !== t12) {
|
|
84
|
-
t13 =
|
|
84
|
+
t13 = /* @__PURE__ */ jsxs("div", {
|
|
85
85
|
ref: sidebarContentWrapperRef,
|
|
86
86
|
className: PageLayout_module_css_default.PageLayoutWrapper,
|
|
87
87
|
"data-width": containerWidth,
|
|
@@ -99,7 +99,7 @@ const Root = (t0) => {
|
|
|
99
99
|
} else t13 = $[13];
|
|
100
100
|
let t14;
|
|
101
101
|
if ($[14] !== className || $[15] !== dataComponent || $[16] !== padding || $[17] !== slots.sidebar || $[18] !== style || $[19] !== t13 || $[20] !== t8) {
|
|
102
|
-
t14 =
|
|
102
|
+
t14 = /* @__PURE__ */ jsxs(RootWrapper, {
|
|
103
103
|
style,
|
|
104
104
|
padding,
|
|
105
105
|
className,
|
|
@@ -118,7 +118,7 @@ const Root = (t0) => {
|
|
|
118
118
|
} else t14 = $[21];
|
|
119
119
|
let t15;
|
|
120
120
|
if ($[22] !== memoizedContextValue || $[23] !== t14) {
|
|
121
|
-
t15 =
|
|
121
|
+
t15 = /* @__PURE__ */ jsx(PageLayoutContext.Provider, {
|
|
122
122
|
value: memoizedContextValue,
|
|
123
123
|
children: t14
|
|
124
124
|
});
|
|
@@ -152,7 +152,7 @@ const RootWrapper = /*#__PURE__*/ memo((t0) => {
|
|
|
152
152
|
const t5 = hasSidebar || void 0;
|
|
153
153
|
let t6;
|
|
154
154
|
if ($[5] !== children || $[6] !== dataComponent || $[7] !== t3 || $[8] !== t4 || $[9] !== t5) {
|
|
155
|
-
t6 =
|
|
155
|
+
t6 = /* @__PURE__ */ jsx("div", {
|
|
156
156
|
style: t3,
|
|
157
157
|
className: t4,
|
|
158
158
|
"data-component": dataComponent,
|
|
@@ -206,7 +206,7 @@ const HorizontalDivider = /*#__PURE__*/ memo((t0) => {
|
|
|
206
206
|
const t7 = t6;
|
|
207
207
|
let t8;
|
|
208
208
|
if ($[9] !== t2 || $[10] !== t3 || $[11] !== t4 || $[12] !== t7) {
|
|
209
|
-
t8 =
|
|
209
|
+
t8 = /* @__PURE__ */ jsx("div", {
|
|
210
210
|
className: t2,
|
|
211
211
|
"data-component": "PageLayout.HorizontalDivider",
|
|
212
212
|
...t3,
|
|
@@ -246,7 +246,7 @@ const VerticalDivider = /*#__PURE__*/ memo((t0) => {
|
|
|
246
246
|
} else t4 = $[5];
|
|
247
247
|
let t5;
|
|
248
248
|
if ($[6] !== children || $[7] !== style || $[8] !== t2 || $[9] !== t3 || $[10] !== t4) {
|
|
249
|
-
t5 =
|
|
249
|
+
t5 = /* @__PURE__ */ jsx("div", {
|
|
250
250
|
className: t2,
|
|
251
251
|
"data-component": "PageLayout.VerticalDivider",
|
|
252
252
|
...t3,
|
|
@@ -279,7 +279,7 @@ const SidebarDivider = /*#__PURE__*/ memo(function SidebarDivider(t0) {
|
|
|
279
279
|
const t4 = t3;
|
|
280
280
|
let t5;
|
|
281
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] !== sidebarContentWrapperRef || $[16] !== sidebarRef) {
|
|
282
|
-
t5 = resizable ?
|
|
282
|
+
t5 = resizable ? /* @__PURE__ */ jsx(DragHandle, {
|
|
283
283
|
handleRef,
|
|
284
284
|
dragTargetRef: sidebarRef,
|
|
285
285
|
contentWrapperRef: sidebarContentWrapperRef,
|
|
@@ -353,7 +353,7 @@ const SidebarDivider = /*#__PURE__*/ memo(function SidebarDivider(t0) {
|
|
|
353
353
|
} else t5 = $[17];
|
|
354
354
|
let t6;
|
|
355
355
|
if ($[18] !== position || $[19] !== t1 || $[20] !== t4 || $[21] !== t5) {
|
|
356
|
-
t6 =
|
|
356
|
+
t6 = /* @__PURE__ */ jsx(VerticalDivider, {
|
|
357
357
|
variant: t1,
|
|
358
358
|
position,
|
|
359
359
|
className: PageLayout_module_css_default.SidebarVerticalDivider,
|
|
@@ -422,7 +422,7 @@ const Header = (t0) => {
|
|
|
422
422
|
const t14 = t13;
|
|
423
423
|
let t15;
|
|
424
424
|
if ($[12] !== children || $[13] !== t14) {
|
|
425
|
-
t15 =
|
|
425
|
+
t15 = /* @__PURE__ */ jsx("div", {
|
|
426
426
|
className: PageLayout_module_css_default.HeaderContent,
|
|
427
427
|
style: t14,
|
|
428
428
|
children
|
|
@@ -441,7 +441,7 @@ const Header = (t0) => {
|
|
|
441
441
|
const t18 = t17;
|
|
442
442
|
let t19;
|
|
443
443
|
if ($[17] !== dividerProp || $[18] !== t18) {
|
|
444
|
-
t19 =
|
|
444
|
+
t19 = /* @__PURE__ */ jsx(HorizontalDivider, {
|
|
445
445
|
variant: dividerProp,
|
|
446
446
|
className: PageLayout_module_css_default.HeaderHorizontalDivider,
|
|
447
447
|
style: t18
|
|
@@ -452,7 +452,7 @@ const Header = (t0) => {
|
|
|
452
452
|
} else t19 = $[19];
|
|
453
453
|
let t20;
|
|
454
454
|
if ($[20] !== dataComponent || $[21] !== label || $[22] !== labelledBy || $[23] !== t11 || $[24] !== t15 || $[25] !== t19 || $[26] !== t7 || $[27] !== t8) {
|
|
455
|
-
t20 =
|
|
455
|
+
t20 = /* @__PURE__ */ jsxs("header", {
|
|
456
456
|
"aria-label": label,
|
|
457
457
|
"aria-labelledby": labelledBy,
|
|
458
458
|
"data-component": dataComponent,
|
|
@@ -506,7 +506,7 @@ const Content = (t0) => {
|
|
|
506
506
|
const t10 = t9;
|
|
507
507
|
let t11;
|
|
508
508
|
if ($[6] !== children || $[7] !== t10 || $[8] !== width) {
|
|
509
|
-
t11 =
|
|
509
|
+
t11 = /* @__PURE__ */ jsx("div", {
|
|
510
510
|
className: PageLayout_module_css_default.Content,
|
|
511
511
|
"data-width": width,
|
|
512
512
|
style: t10,
|
|
@@ -519,7 +519,7 @@ const Content = (t0) => {
|
|
|
519
519
|
} else t11 = $[9];
|
|
520
520
|
let t12;
|
|
521
521
|
if ($[10] !== Component || $[11] !== contentWrapperRef || $[12] !== dataComponent || $[13] !== label || $[14] !== labelledBy || $[15] !== style || $[16] !== t11 || $[17] !== t6 || $[18] !== t7) {
|
|
522
|
-
t12 =
|
|
522
|
+
t12 = /* @__PURE__ */ jsx(Component, {
|
|
523
523
|
ref: contentWrapperRef,
|
|
524
524
|
"aria-label": label,
|
|
525
525
|
"aria-labelledby": labelledBy,
|
|
@@ -701,7 +701,7 @@ const Pane = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
|
|
|
701
701
|
const t31 = t30;
|
|
702
702
|
let t32;
|
|
703
703
|
if ($[39] !== positionProp || $[40] !== t28 || $[41] !== t31) {
|
|
704
|
-
t32 =
|
|
704
|
+
t32 = /* @__PURE__ */ jsx(HorizontalDivider, {
|
|
705
705
|
variant: t28,
|
|
706
706
|
className: PageLayout_module_css_default.PaneHorizontalDivider,
|
|
707
707
|
style: t31,
|
|
@@ -754,7 +754,7 @@ const Pane = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
|
|
|
754
754
|
const t44 = t43;
|
|
755
755
|
let t45;
|
|
756
756
|
if ($[55] !== children || $[56] !== dataComponent || $[57] !== labelProp || $[58] !== mergedPaneRef || $[59] !== t33 || $[60] !== t34 || $[61] !== t35 || $[62] !== t36 || $[63] !== t44) {
|
|
757
|
-
t45 =
|
|
757
|
+
t45 = /* @__PURE__ */ jsx("div", {
|
|
758
758
|
ref: mergedPaneRef,
|
|
759
759
|
suppressHydrationWarning: t33,
|
|
760
760
|
...t34,
|
|
@@ -802,7 +802,7 @@ const Pane = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
|
|
|
802
802
|
const t49 = t48;
|
|
803
803
|
let t50;
|
|
804
804
|
if ($[71] !== contentWrapperRef || $[72] !== currentWidth || $[73] !== currentWidthRef || $[74] !== getDefaultWidth || $[75] !== getMaxPaneWidth || $[76] !== maxPaneWidth || $[77] !== minPaneWidth || $[78] !== paneRef || $[79] !== position || $[80] !== resizable || $[81] !== saveWidth) {
|
|
805
|
-
t50 = resizable ?
|
|
805
|
+
t50 = resizable ? /* @__PURE__ */ jsx(DragHandle, {
|
|
806
806
|
handleRef,
|
|
807
807
|
dragTargetRef: paneRef,
|
|
808
808
|
contentWrapperRef,
|
|
@@ -872,7 +872,7 @@ const Pane = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
|
|
|
872
872
|
} else t50 = $[82];
|
|
873
873
|
let t51;
|
|
874
874
|
if ($[83] !== positionProp || $[84] !== resizable || $[85] !== t46 || $[86] !== t49 || $[87] !== t50) {
|
|
875
|
-
t51 =
|
|
875
|
+
t51 = /* @__PURE__ */ jsx(VerticalDivider, {
|
|
876
876
|
variant: t46,
|
|
877
877
|
draggable: resizable,
|
|
878
878
|
position: positionProp,
|
|
@@ -889,7 +889,7 @@ const Pane = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
|
|
|
889
889
|
} else t51 = $[88];
|
|
890
890
|
let t52;
|
|
891
891
|
if ($[89] !== t19 || $[90] !== t24 || $[91] !== t25 || $[92] !== t26 || $[93] !== t27 || $[94] !== t32 || $[95] !== t45 || $[96] !== t51) {
|
|
892
|
-
t52 =
|
|
892
|
+
t52 = /* @__PURE__ */ jsxs("div", {
|
|
893
893
|
className: t19,
|
|
894
894
|
style: t24,
|
|
895
895
|
...t25,
|
|
@@ -1001,7 +1001,7 @@ const Sidebar = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
|
|
|
1001
1001
|
const t18 = responsiveVariant !== "default" ? responsiveVariant : void 0;
|
|
1002
1002
|
let t19;
|
|
1003
1003
|
if ($[20] !== currentWidth || $[21] !== currentWidthRef || $[22] !== divider || $[23] !== getDefaultWidth || $[24] !== getMaxPaneWidth || $[25] !== maxPaneWidth || $[26] !== minPaneWidth || $[27] !== position || $[28] !== resizable || $[29] !== saveWidth || $[30] !== sidebarRef) {
|
|
1004
|
-
t19 = position === "end" &&
|
|
1004
|
+
t19 = position === "end" && /* @__PURE__ */ jsx(SidebarDivider, {
|
|
1005
1005
|
position,
|
|
1006
1006
|
divider,
|
|
1007
1007
|
resizable,
|
|
@@ -1073,7 +1073,7 @@ const Sidebar = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
|
|
|
1073
1073
|
const t31 = t30;
|
|
1074
1074
|
let t32;
|
|
1075
1075
|
if ($[44] !== children || $[45] !== dataComponent || $[46] !== labelProp || $[47] !== mergedSidebarRef || $[48] !== t20 || $[49] !== t21 || $[50] !== t22 || $[51] !== t23 || $[52] !== t31) {
|
|
1076
|
-
t32 =
|
|
1076
|
+
t32 = /* @__PURE__ */ jsx("div", {
|
|
1077
1077
|
ref: mergedSidebarRef,
|
|
1078
1078
|
suppressHydrationWarning: t20,
|
|
1079
1079
|
...t21,
|
|
@@ -1098,7 +1098,7 @@ const Sidebar = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
|
|
|
1098
1098
|
} else t32 = $[53];
|
|
1099
1099
|
let t33;
|
|
1100
1100
|
if ($[54] !== currentWidth || $[55] !== currentWidthRef || $[56] !== divider || $[57] !== getDefaultWidth || $[58] !== getMaxPaneWidth || $[59] !== maxPaneWidth || $[60] !== minPaneWidth || $[61] !== position || $[62] !== resizable || $[63] !== saveWidth || $[64] !== sidebarRef) {
|
|
1101
|
-
t33 = position === "start" &&
|
|
1101
|
+
t33 = position === "start" && /* @__PURE__ */ jsx(SidebarDivider, {
|
|
1102
1102
|
position,
|
|
1103
1103
|
divider,
|
|
1104
1104
|
resizable,
|
|
@@ -1130,7 +1130,7 @@ const Sidebar = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
|
|
|
1130
1130
|
} else t33 = $[65];
|
|
1131
1131
|
let t34;
|
|
1132
1132
|
if ($[66] !== position || $[67] !== t12 || $[68] !== t15 || $[69] !== t16 || $[70] !== t17 || $[71] !== t18 || $[72] !== t19 || $[73] !== t32 || $[74] !== t33) {
|
|
1133
|
-
t34 =
|
|
1133
|
+
t34 = /* @__PURE__ */ jsxs("div", {
|
|
1134
1134
|
className: t12,
|
|
1135
1135
|
style: t15,
|
|
1136
1136
|
...t16,
|
|
@@ -1211,7 +1211,7 @@ const Footer = (t0) => {
|
|
|
1211
1211
|
const t14 = t13;
|
|
1212
1212
|
let t15;
|
|
1213
1213
|
if ($[12] !== dividerProp || $[13] !== t14) {
|
|
1214
|
-
t15 =
|
|
1214
|
+
t15 = /* @__PURE__ */ jsx(HorizontalDivider, {
|
|
1215
1215
|
className: PageLayout_module_css_default.FooterHorizontalDivider,
|
|
1216
1216
|
style: t14,
|
|
1217
1217
|
variant: dividerProp
|
|
@@ -1230,7 +1230,7 @@ const Footer = (t0) => {
|
|
|
1230
1230
|
const t18 = t17;
|
|
1231
1231
|
let t19;
|
|
1232
1232
|
if ($[17] !== children || $[18] !== t18) {
|
|
1233
|
-
t19 =
|
|
1233
|
+
t19 = /* @__PURE__ */ jsx("div", {
|
|
1234
1234
|
className: PageLayout_module_css_default.FooterContent,
|
|
1235
1235
|
style: t18,
|
|
1236
1236
|
children
|
|
@@ -1241,7 +1241,7 @@ const Footer = (t0) => {
|
|
|
1241
1241
|
} else t19 = $[19];
|
|
1242
1242
|
let t20;
|
|
1243
1243
|
if ($[20] !== dataComponent || $[21] !== label || $[22] !== labelledBy || $[23] !== t11 || $[24] !== t15 || $[25] !== t19 || $[26] !== t7 || $[27] !== t8) {
|
|
1244
|
-
t20 =
|
|
1244
|
+
t20 = /* @__PURE__ */ jsxs("footer", {
|
|
1245
1245
|
"aria-label": label,
|
|
1246
1246
|
"aria-labelledby": labelledBy,
|
|
1247
1247
|
"data-component": dataComponent,
|
|
@@ -5,11 +5,6 @@ import PageLayout_module_css_default from "./PageLayout.module.css.js";
|
|
|
5
5
|
import React, { startTransition } from "react";
|
|
6
6
|
//#region src/PageLayout/usePaneWidth.ts
|
|
7
7
|
/**
|
|
8
|
-
* Width value for the pane - defines constraints and defaults only.
|
|
9
|
-
* - `PaneWidth`: Preset size ('small' | 'medium' | 'large')
|
|
10
|
-
* - `CustomWidthOptions`: Explicit min/default/max constraints
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
8
|
* Default value for --pane-max-width-diff CSS variable.
|
|
14
9
|
* Imported from CSS to ensure JS fallback matches the CSS default.
|
|
15
10
|
*/
|
|
@@ -28,7 +28,7 @@ const Pagehead = (t0) => {
|
|
|
28
28
|
} else t2 = $[5];
|
|
29
29
|
let t3;
|
|
30
30
|
if ($[6] !== BaseComponent || $[7] !== rest || $[8] !== t2) {
|
|
31
|
-
t3 =
|
|
31
|
+
t3 = /* @__PURE__ */ jsx(BaseComponent, {
|
|
32
32
|
className: t2,
|
|
33
33
|
"data-component": "Pagehead",
|
|
34
34
|
...rest
|