@primer/react 38.40.2-rc.fdfbe71e5 → 38.41.0-rc.61d283273
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 +11 -1
- package/dist/ActionBar/ActionBar.js +30 -33
- package/dist/ActionList/{ActionList-1ff5220c.css → ActionList-64885d7a.css} +2 -2
- package/dist/ActionList/ActionList-64885d7a.css.map +1 -0
- package/dist/ActionList/ActionList.module.css.js +1 -1
- 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/ActionList/index.d.ts +1 -1
- package/dist/ActionList/shared.d.ts +1 -1
- 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-c8dab214.css +2 -0
- package/dist/Button/ButtonBase-c8dab214.css.map +1 -0
- package/dist/Button/ButtonBase.js +12 -9
- package/dist/Button/ButtonBase.module.css.js +1 -1
- 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/DefaultFeatureFlags.js +2 -1
- 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/useRovingTabIndex.js +1 -0
- 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/experimental/index.js +1 -1
- 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/generated/components.json +13 -3
- package/generated/hooks.json +1 -1
- package/package.json +3 -3
- package/dist/ActionList/ActionList-1ff5220c.css.map +0 -1
- package/dist/Button/ButtonBase-014fae23.css +0 -2
- package/dist/Button/ButtonBase-014fae23.css.map +0 -1
|
@@ -18,7 +18,7 @@ const Kbd = (t0) => {
|
|
|
18
18
|
} else t1 = $[1];
|
|
19
19
|
let t2;
|
|
20
20
|
if ($[2] !== children || $[3] !== t1) {
|
|
21
|
-
t2 =
|
|
21
|
+
t2 = /* @__PURE__ */ jsx(Text_default, {
|
|
22
22
|
as: "kbd",
|
|
23
23
|
className: t1,
|
|
24
24
|
"data-testid": "keybinding-hint",
|
|
@@ -47,13 +47,13 @@ const KeybindingHint = /*#__PURE__*/ memo((t0) => {
|
|
|
47
47
|
}
|
|
48
48
|
let t1;
|
|
49
49
|
if ($[3] !== props) {
|
|
50
|
-
t1 =
|
|
50
|
+
t1 = /* @__PURE__ */ jsx(Sequence, { ...props });
|
|
51
51
|
$[3] = props;
|
|
52
52
|
$[4] = t1;
|
|
53
53
|
} else t1 = $[4];
|
|
54
54
|
let t2;
|
|
55
55
|
if ($[5] !== className || $[6] !== t1) {
|
|
56
|
-
t2 =
|
|
56
|
+
t2 = /* @__PURE__ */ jsx(Kbd, {
|
|
57
57
|
className,
|
|
58
58
|
children: t1
|
|
59
59
|
});
|
|
@@ -35,10 +35,10 @@ const Chord = (t0) => {
|
|
|
35
35
|
if ($[5] !== format || $[6] !== keys) {
|
|
36
36
|
let t10;
|
|
37
37
|
if ($[8] !== format) {
|
|
38
|
-
t10 = (k, i) =>
|
|
38
|
+
t10 = (k, i) => /* @__PURE__ */ jsxs(Fragment, { children: [i > 0 && format === "full" ? /* @__PURE__ */ jsx("span", {
|
|
39
39
|
"aria-hidden": true,
|
|
40
40
|
children: " + "
|
|
41
|
-
}) : " ",
|
|
41
|
+
}) : " ", /* @__PURE__ */ jsx(Key, {
|
|
42
42
|
name: k,
|
|
43
43
|
format
|
|
44
44
|
})] }, i);
|
|
@@ -52,7 +52,7 @@ const Chord = (t0) => {
|
|
|
52
52
|
} else t9 = $[7];
|
|
53
53
|
let t10;
|
|
54
54
|
if ($[10] !== t8 || $[11] !== t9) {
|
|
55
|
-
t10 =
|
|
55
|
+
t10 = /* @__PURE__ */ jsx(Text_default, {
|
|
56
56
|
"data-kbd-chord": true,
|
|
57
57
|
className: t8,
|
|
58
58
|
children: t9
|
|
@@ -18,7 +18,7 @@ const Key = (t0) => {
|
|
|
18
18
|
} else t1 = $[2];
|
|
19
19
|
let t2;
|
|
20
20
|
if ($[3] !== t1) {
|
|
21
|
-
t2 =
|
|
21
|
+
t2 = /* @__PURE__ */ jsx(VisuallyHidden, { children: t1 });
|
|
22
22
|
$[3] = t1;
|
|
23
23
|
$[4] = t2;
|
|
24
24
|
} else t2 = $[4];
|
|
@@ -32,7 +32,7 @@ const Key = (t0) => {
|
|
|
32
32
|
} else t3 = $[8];
|
|
33
33
|
let t4;
|
|
34
34
|
if ($[9] !== t3) {
|
|
35
|
-
t4 =
|
|
35
|
+
t4 = /* @__PURE__ */ jsx("span", {
|
|
36
36
|
"aria-hidden": true,
|
|
37
37
|
children: t3
|
|
38
38
|
});
|
|
@@ -41,7 +41,7 @@ const Key = (t0) => {
|
|
|
41
41
|
} else t4 = $[10];
|
|
42
42
|
let t5;
|
|
43
43
|
if ($[11] !== t2 || $[12] !== t4) {
|
|
44
|
-
t5 =
|
|
44
|
+
t5 = /* @__PURE__ */ jsxs(Fragment, { children: [t2, t4] });
|
|
45
45
|
$[11] = t2;
|
|
46
46
|
$[12] = t4;
|
|
47
47
|
$[13] = t5;
|
|
@@ -4,7 +4,7 @@ import { Fragment } from "react";
|
|
|
4
4
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region src/KeybindingHint/components/Sequence.tsx
|
|
6
6
|
const splitSequence = (sequence) => sequence.split(" ");
|
|
7
|
-
const Sequence = ({ keys, ...chordProps }) => splitSequence(keys).map((c, i) =>
|
|
7
|
+
const Sequence = ({ keys, ...chordProps }) => splitSequence(keys).map((c, i) => /* @__PURE__ */ jsxs(Fragment, { children: [i > 0 && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(VisuallyHidden, { children: "then" }), " "] }), /* @__PURE__ */ jsx(Chord, {
|
|
8
8
|
keys: c,
|
|
9
9
|
...chordProps
|
|
10
10
|
})] }, i));
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import { createContext, useContext, useSyncExternalStore } from "react";
|
|
2
2
|
import { isMacOS } from "@primer/behaviors/utils";
|
|
3
3
|
//#region src/KeybindingHint/platform.ts
|
|
4
|
-
/**
|
|
5
|
-
* The platform categories that affect how keyboard shortcut keys are displayed.
|
|
6
|
-
*
|
|
7
|
-
* - `apple`: Apple platforms (macOS and iOS/iPadOS), which use the Command and Option keys.
|
|
8
|
-
* - `windows`: Windows, which uses the Windows (Meta) key.
|
|
9
|
-
* - `other`: Any other platform (e.g. Linux, Android), where the Meta key does not map to a
|
|
10
|
-
* consistent label.
|
|
11
|
-
*/
|
|
12
4
|
const subscribe = () => () => {};
|
|
13
5
|
/** SSR-unsafe detection of iOS/iPadOS (in addition to macOS, which is detected separately). */
|
|
14
6
|
const ssrUnsafeIsIOS = () => {
|
package/dist/Label/Label.js
CHANGED
|
@@ -37,7 +37,7 @@ const Label = /*#__PURE__*/ React.forwardRef(function Label(t0, ref) {
|
|
|
37
37
|
} else t4 = $[7];
|
|
38
38
|
let t5;
|
|
39
39
|
if ($[8] !== Component || $[9] !== ref || $[10] !== rest || $[11] !== size || $[12] !== t4 || $[13] !== variant) {
|
|
40
|
-
t5 =
|
|
40
|
+
t5 = /* @__PURE__ */ jsx(Component, {
|
|
41
41
|
className: t4,
|
|
42
42
|
"data-size": size,
|
|
43
43
|
"data-variant": variant,
|
|
@@ -13,27 +13,27 @@ const getOverlayWidth = (buttonClientRect, containerRef, overlayPaddingPx) => {
|
|
|
13
13
|
var _containerRef$current;
|
|
14
14
|
return overlayPaddingPx + buttonClientRect.right - (((_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.getBoundingClientRect().left) || 0);
|
|
15
15
|
};
|
|
16
|
-
const InlineToggle = ({ collapseButtonRef, collapseInlineExpandedChildren, expandButtonRef, hiddenItemIds, isOverflowShown, showAllTokensInline }) => isOverflowShown ?
|
|
16
|
+
const InlineToggle = ({ collapseButtonRef, collapseInlineExpandedChildren, expandButtonRef, hiddenItemIds, isOverflowShown, showAllTokensInline }) => isOverflowShown ? /* @__PURE__ */ jsx(ButtonComponent, {
|
|
17
17
|
ref: collapseButtonRef,
|
|
18
18
|
onClick: collapseInlineExpandedChildren,
|
|
19
19
|
size: "small",
|
|
20
20
|
variant: "invisible",
|
|
21
21
|
children: "Show less"
|
|
22
|
-
}) : hiddenItemIds.length ?
|
|
22
|
+
}) : hiddenItemIds.length ? /* @__PURE__ */ jsxs(ButtonComponent, {
|
|
23
23
|
ref: expandButtonRef,
|
|
24
24
|
variant: "invisible",
|
|
25
25
|
size: "small",
|
|
26
26
|
onClick: showAllTokensInline,
|
|
27
|
-
children: [
|
|
27
|
+
children: [/* @__PURE__ */ jsxs(VisuallyHidden, { children: [
|
|
28
28
|
"Show +",
|
|
29
29
|
hiddenItemIds.length,
|
|
30
30
|
" more"
|
|
31
|
-
] }),
|
|
31
|
+
] }), /* @__PURE__ */ jsxs("span", {
|
|
32
32
|
"aria-hidden": "true",
|
|
33
33
|
children: ["+", hiddenItemIds.length]
|
|
34
34
|
})]
|
|
35
35
|
}) : null;
|
|
36
|
-
const OverlayToggle = ({ children, closeOverflowOverlay, expandButtonRef, hiddenItemIds, isOverflowShown, openOverflowOverlay, overlayPaddingPx, overlayWidth, totalLength }) => hiddenItemIds.length ?
|
|
36
|
+
const OverlayToggle = ({ children, closeOverflowOverlay, expandButtonRef, hiddenItemIds, isOverflowShown, openOverflowOverlay, overlayPaddingPx, overlayWidth, totalLength }) => hiddenItemIds.length ? /* @__PURE__ */ jsx(AnchoredOverlay, {
|
|
37
37
|
open: isOverflowShown,
|
|
38
38
|
onOpen: openOverflowOverlay,
|
|
39
39
|
onClose: closeOverflowOverlay,
|
|
@@ -44,16 +44,16 @@ const OverlayToggle = ({ children, closeOverflowOverlay, expandButtonRef, hidden
|
|
|
44
44
|
anchorRef: expandButtonRef,
|
|
45
45
|
anchorOffset: overlayPaddingPx * -1,
|
|
46
46
|
alignmentOffset: overlayPaddingPx * -1,
|
|
47
|
-
renderAnchor: (props) =>
|
|
47
|
+
renderAnchor: (props) => /* @__PURE__ */ jsxs(ButtonComponent, {
|
|
48
48
|
variant: "invisible",
|
|
49
49
|
size: "small",
|
|
50
50
|
...props,
|
|
51
51
|
ref: expandButtonRef,
|
|
52
|
-
children: [
|
|
52
|
+
children: [/* @__PURE__ */ jsxs(VisuallyHidden, { children: [
|
|
53
53
|
"Show +",
|
|
54
54
|
hiddenItemIds.length,
|
|
55
55
|
" more"
|
|
56
|
-
] }),
|
|
56
|
+
] }), /* @__PURE__ */ jsxs("span", {
|
|
57
57
|
"aria-hidden": "true",
|
|
58
58
|
children: ["+", hiddenItemIds.length]
|
|
59
59
|
})]
|
|
@@ -64,16 +64,16 @@ const OverlayToggle = ({ children, closeOverflowOverlay, expandButtonRef, hidden
|
|
|
64
64
|
"aria-label": `All ${totalLength} labels`,
|
|
65
65
|
"aria-modal": true
|
|
66
66
|
},
|
|
67
|
-
children:
|
|
67
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
68
68
|
className: LabelGroup_module_css_default.OverlayContainer,
|
|
69
69
|
style: {
|
|
70
70
|
width: overlayWidth,
|
|
71
71
|
padding: `${overlayPaddingPx}px`
|
|
72
72
|
},
|
|
73
|
-
children: [
|
|
73
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
74
74
|
className: LabelGroup_module_css_default.OverlayInner,
|
|
75
75
|
children
|
|
76
|
-
}),
|
|
76
|
+
}), /* @__PURE__ */ jsx(IconButton, {
|
|
77
77
|
onClick: closeOverflowOverlay,
|
|
78
78
|
icon: XIcon,
|
|
79
79
|
"aria-label": "Close",
|
|
@@ -192,19 +192,19 @@ const LabelGroup = ({ children, visibleChildCount, overflowStyle = "overlay", as
|
|
|
192
192
|
const isList = Component === "ul" || Component === "ol";
|
|
193
193
|
const ToggleWrapper = isList ? "li" : "span";
|
|
194
194
|
const ItemWrapperComponent = isList ? "li" : "span";
|
|
195
|
-
return visibleChildCount ?
|
|
195
|
+
return visibleChildCount ? /* @__PURE__ */ jsxs(Component, {
|
|
196
196
|
ref: containerRef,
|
|
197
197
|
"data-overflow": overflowStyle === "inline" && isOverflowShown ? "inline" : void 0,
|
|
198
198
|
"data-list": isList || void 0,
|
|
199
199
|
className: clsx(className, LabelGroup_module_css_default.Container),
|
|
200
200
|
"data-component": "LabelGroup",
|
|
201
|
-
children: [React.Children.map(children, (child, index) =>
|
|
201
|
+
children: [React.Children.map(children, (child, index) => /* @__PURE__ */ jsx(ItemWrapperComponent, {
|
|
202
202
|
"data-index": index,
|
|
203
203
|
className: clsx(LabelGroup_module_css_default.ItemWrapper, { [LabelGroup_module_css_default["ItemWrapper--hidden"]]: hiddenItemIds.includes(index.toString()) }),
|
|
204
204
|
children: child
|
|
205
|
-
}, index)),
|
|
205
|
+
}, index)), /* @__PURE__ */ jsx(ToggleWrapper, {
|
|
206
206
|
"data-component": "LabelGroup.Toggle",
|
|
207
|
-
children: overflowStyle === "inline" ?
|
|
207
|
+
children: overflowStyle === "inline" ? /* @__PURE__ */ jsx(InlineToggle, {
|
|
208
208
|
collapseButtonRef,
|
|
209
209
|
collapseInlineExpandedChildren,
|
|
210
210
|
expandButtonRef,
|
|
@@ -212,7 +212,7 @@ const LabelGroup = ({ children, visibleChildCount, overflowStyle = "overlay", as
|
|
|
212
212
|
isOverflowShown,
|
|
213
213
|
showAllTokensInline,
|
|
214
214
|
totalLength: React.Children.toArray(children).length
|
|
215
|
-
}) :
|
|
215
|
+
}) : /* @__PURE__ */ jsx(OverlayToggle, {
|
|
216
216
|
closeOverflowOverlay,
|
|
217
217
|
expandButtonRef,
|
|
218
218
|
hiddenItemIds,
|
|
@@ -224,13 +224,13 @@ const LabelGroup = ({ children, visibleChildCount, overflowStyle = "overlay", as
|
|
|
224
224
|
children
|
|
225
225
|
})
|
|
226
226
|
})]
|
|
227
|
-
}) :
|
|
227
|
+
}) : /* @__PURE__ */ jsx(Component, {
|
|
228
228
|
"data-overflow": "inline",
|
|
229
229
|
"data-list": isList || void 0,
|
|
230
230
|
className: clsx(className, LabelGroup_module_css_default.Container),
|
|
231
231
|
"data-component": "LabelGroup",
|
|
232
232
|
children: isList ? React.Children.map(children, (child, index) => {
|
|
233
|
-
return
|
|
233
|
+
return /* @__PURE__ */ jsx("li", { children: child }, index);
|
|
234
234
|
}) : children
|
|
235
235
|
});
|
|
236
236
|
};
|
package/dist/Link/Link.js
CHANGED
|
@@ -60,7 +60,7 @@ const UnwrappedLink = (props, ref) => {
|
|
|
60
60
|
const t4 = mergedRef;
|
|
61
61
|
let t5;
|
|
62
62
|
if ($[10] !== Component || $[11] !== inline || $[12] !== muted || $[13] !== restProps || $[14] !== t3 || $[15] !== t4) {
|
|
63
|
-
t5 =
|
|
63
|
+
t5 = /* @__PURE__ */ jsx(Component, {
|
|
64
64
|
className: t3,
|
|
65
65
|
"data-component": "Link",
|
|
66
66
|
"data-muted": muted,
|
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,
|