@primer/react 38.40.2-rc.fdfbe71e5 → 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 +9 -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-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 +1 -1
- package/generated/hooks.json +1 -1
- package/package.json +3 -3
- package/dist/Button/ButtonBase-014fae23.css +0 -2
- package/dist/Button/ButtonBase-014fae23.css.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
# @primer/react
|
|
2
2
|
|
|
3
|
-
## 38.
|
|
3
|
+
## 38.41.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#8504](https://github.com/primer/react/pull/8504) [`c9419e7`](https://github.com/primer/react/commit/c9419e75d7084b62096b50fb54f6a94e96592a9a) Thanks [@joshblack](https://github.com/joshblack)! - React Compiler: Switch from Babel to Oxc.
|
|
4
8
|
|
|
5
9
|
### Patch Changes
|
|
6
10
|
|
|
11
|
+
- [#8484](https://github.com/primer/react/pull/8484) [`da3be09`](https://github.com/primer/react/commit/da3be09cc9b28cd95e9117db0a422ab08a7e37b2) Thanks [@tay1orjones](https://github.com/tay1orjones)! - TreeView: Prevent keyboard navigation errors when nested controls have focus
|
|
12
|
+
|
|
7
13
|
- [#8473](https://github.com/primer/react/pull/8473) [`53ed545`](https://github.com/primer/react/commit/53ed54524aac9c3e829c239afdb4f63de160f873) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - LiveRegion: Upgrade `@primer/live-region-element` to 0.8.1
|
|
8
14
|
|
|
15
|
+
- [#8412](https://github.com/primer/react/pull/8412) [`3d8f32f`](https://github.com/primer/react/commit/3d8f32fcce51a40db8e3091027714673d4a48617) Thanks [@anishtsudo](https://github.com/anishtsudo)! - Button: Add opt-in disabled styling for loading buttons so they look non-interactive while staying focusable
|
|
16
|
+
|
|
9
17
|
- [#8463](https://github.com/primer/react/pull/8463) [`f710336`](https://github.com/primer/react/commit/f7103363ce5c916b8aa27a3fd5d4c9d564d3a13f) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Truncate: Infer accepted props from the `as` prop and forward `inline` to custom `as` components (e.g. `Link`).
|
|
10
18
|
|
|
11
19
|
## 38.40.1
|
|
@@ -17,29 +17,28 @@ const ActionBarContext = /*#__PURE__*/ React.createContext({ size: "medium" });
|
|
|
17
17
|
const ActionBarItemsRegistry = createDescendantRegistry();
|
|
18
18
|
const FOCUSABLE_ITEM_SELECTOR = ":is(button, a, input, [tabindex]):not(:disabled):not([data-overflowing]):not([data-more-button-inactive])";
|
|
19
19
|
const renderMenuItem = (item, index) => {
|
|
20
|
-
if (item.type === "divider") return
|
|
20
|
+
if (item.type === "divider") return /* @__PURE__ */ jsx(ActionList.Divider, {}, index);
|
|
21
21
|
const { label, onClick, disabled, trailingVisual: TrailingIcon, leadingVisual: LeadingIcon, items, variant } = item;
|
|
22
|
-
if (items && items.length > 0) return
|
|
22
|
+
if (items && items.length > 0) return /* @__PURE__ */ jsxs(ActionMenu, { children: [/* @__PURE__ */ jsx(ActionMenu.Anchor, { children: /* @__PURE__ */ jsxs(ActionList.Item, {
|
|
23
23
|
disabled,
|
|
24
24
|
variant,
|
|
25
25
|
children: [
|
|
26
|
-
LeadingIcon ?
|
|
26
|
+
LeadingIcon ? /* @__PURE__ */ jsx(ActionList.LeadingVisual, { children: /* @__PURE__ */ jsx(LeadingIcon, {}) }) : null,
|
|
27
27
|
label,
|
|
28
|
-
TrailingIcon ?
|
|
28
|
+
TrailingIcon ? /* @__PURE__ */ jsx(ActionList.TrailingVisual, { children: typeof TrailingIcon === "string" ? /* @__PURE__ */ jsx("span", { children: TrailingIcon }) : /* @__PURE__ */ jsx(TrailingIcon, {}) }) : null
|
|
29
29
|
]
|
|
30
|
-
}) }),
|
|
31
|
-
return
|
|
30
|
+
}) }), /* @__PURE__ */ jsx(ActionMenu.Overlay, { children: /* @__PURE__ */ jsx(ActionList, { children: items.map((subItem, subIndex) => renderMenuItem(subItem, subIndex)) }) })] }, label);
|
|
31
|
+
return /* @__PURE__ */ jsxs(ActionList.Item, {
|
|
32
32
|
onSelect: onClick,
|
|
33
33
|
disabled,
|
|
34
34
|
variant,
|
|
35
35
|
children: [
|
|
36
|
-
LeadingIcon ?
|
|
36
|
+
LeadingIcon ? /* @__PURE__ */ jsx(ActionList.LeadingVisual, { children: /* @__PURE__ */ jsx(LeadingIcon, {}) }) : null,
|
|
37
37
|
label,
|
|
38
|
-
TrailingIcon ?
|
|
38
|
+
TrailingIcon ? /* @__PURE__ */ jsx(ActionList.TrailingVisual, { children: typeof TrailingIcon === "string" ? /* @__PURE__ */ jsx("span", { children: TrailingIcon }) : /* @__PURE__ */ jsx(TrailingIcon, {}) }) : null
|
|
39
39
|
]
|
|
40
40
|
}, label);
|
|
41
41
|
};
|
|
42
|
-
renderMenuItem.displayName = "renderMenuItem";
|
|
43
42
|
const ActionBar = ({ size = "medium", children, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, flush = false, className, gap = "condensed" }) => {
|
|
44
43
|
const [childRegistry, setChildRegistry] = ActionBarItemsRegistry.useRegistryState();
|
|
45
44
|
const overflowItems = useMemo(() => childRegistry && Array.from(childRegistry.entries()).filter((entry) => entry[1] !== null), [childRegistry]);
|
|
@@ -48,13 +47,13 @@ const ActionBar = ({ size = "medium", children, "aria-label": ariaLabel, "aria-l
|
|
|
48
47
|
focusOutBehavior: "wrap",
|
|
49
48
|
focusableElementFilter: (element) => element.matches(FOCUSABLE_ITEM_SELECTOR)
|
|
50
49
|
}, [overflowItems]);
|
|
51
|
-
return
|
|
50
|
+
return /* @__PURE__ */ jsx(ActionBarContext.Provider, {
|
|
52
51
|
value: { size },
|
|
53
|
-
children:
|
|
52
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
54
53
|
className: clsx(className, ActionBar_module_css_default.Nav),
|
|
55
54
|
"data-component": "ActionBar",
|
|
56
55
|
"data-flush": flush,
|
|
57
|
-
children:
|
|
56
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
58
57
|
ref: containerRef,
|
|
59
58
|
role: "toolbar",
|
|
60
59
|
className: ActionBar_module_css_default.List,
|
|
@@ -63,40 +62,40 @@ const ActionBar = ({ size = "medium", children, "aria-label": ariaLabel, "aria-l
|
|
|
63
62
|
"data-gap": gap,
|
|
64
63
|
"data-size": size,
|
|
65
64
|
"data-has-overflow": overflowItems ? overflowItems.length > 0 : void 0,
|
|
66
|
-
children: [
|
|
65
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
67
66
|
className: ActionBar_module_css_default.OverflowContainer,
|
|
68
|
-
children: [
|
|
67
|
+
children: [/* @__PURE__ */ jsx("div", { className: ActionBar_module_css_default.OverflowSpacer }), /* @__PURE__ */ jsx(OverflowObserverProvider, {
|
|
69
68
|
rootRef: containerRef,
|
|
70
|
-
children:
|
|
69
|
+
children: /* @__PURE__ */ jsx(ActionBarItemsRegistry.Provider, {
|
|
71
70
|
setRegistry: setChildRegistry,
|
|
72
71
|
children
|
|
73
72
|
})
|
|
74
73
|
})]
|
|
75
|
-
}),
|
|
74
|
+
}), /* @__PURE__ */ jsxs(ActionMenu, { children: [/* @__PURE__ */ jsx(ActionMenu.Anchor, { children: /* @__PURE__ */ jsx(IconButton, {
|
|
76
75
|
variant: "invisible",
|
|
77
76
|
"aria-label": "More items",
|
|
78
77
|
icon: KebabHorizontalIcon,
|
|
79
78
|
className: ActionBar_module_css_default.MoreButton,
|
|
80
79
|
"data-more-button-inactive": overflowItems !== null && overflowItems !== void 0 && overflowItems.length ? void 0 : true,
|
|
81
80
|
size
|
|
82
|
-
}) }),
|
|
83
|
-
if (menuItem.type === "divider") return
|
|
81
|
+
}) }), /* @__PURE__ */ jsx(ActionMenu.Overlay, { children: /* @__PURE__ */ jsx(ActionList, { children: overflowItems === null || overflowItems === void 0 ? void 0 : overflowItems.map(([id, menuItem]) => {
|
|
82
|
+
if (menuItem.type === "divider") return /* @__PURE__ */ jsx(ActionList.Divider, {}, id);
|
|
84
83
|
if (menuItem.type === "action") {
|
|
85
84
|
const { onClick, icon: Icon, label, disabled } = menuItem;
|
|
86
|
-
return
|
|
85
|
+
return /* @__PURE__ */ jsxs(ActionList.Item, {
|
|
87
86
|
onSelect: (event) => {
|
|
88
87
|
typeof onClick === "function" && onClick(event);
|
|
89
88
|
},
|
|
90
89
|
disabled,
|
|
91
|
-
children: [Icon ?
|
|
90
|
+
children: [Icon ? /* @__PURE__ */ jsx(ActionList.LeadingVisual, { children: /* @__PURE__ */ jsx(Icon, {}) }) : null, label]
|
|
92
91
|
}, id);
|
|
93
92
|
}
|
|
94
93
|
if (menuItem.type === "menu") {
|
|
95
94
|
const menuItems = menuItem.items;
|
|
96
95
|
const { icon: Icon, label, returnFocusRef } = menuItem;
|
|
97
|
-
return
|
|
96
|
+
return /* @__PURE__ */ jsxs(ActionMenu, { children: [/* @__PURE__ */ jsx(ActionMenu.Anchor, { children: /* @__PURE__ */ jsxs(ActionList.Item, { children: [Icon !== "none" ? /* @__PURE__ */ jsx(ActionList.LeadingVisual, { children: /* @__PURE__ */ jsx(Icon, {}) }) : null, label] }) }), /* @__PURE__ */ jsx(ActionMenu.Overlay, {
|
|
98
97
|
...returnFocusRef && { returnFocusRef },
|
|
99
|
-
children:
|
|
98
|
+
children: /* @__PURE__ */ jsx(ActionList, { children: menuItems.map((item, index) => renderMenuItem(item, index)) })
|
|
100
99
|
})] }, id);
|
|
101
100
|
}
|
|
102
101
|
}) }) })] })]
|
|
@@ -104,7 +103,6 @@ const ActionBar = ({ size = "medium", children, "aria-label": ariaLabel, "aria-l
|
|
|
104
103
|
})
|
|
105
104
|
});
|
|
106
105
|
};
|
|
107
|
-
ActionBar.displayName = "ActionBar";
|
|
108
106
|
function useActionBarItem(ref, registryProps) {
|
|
109
107
|
var _useContext;
|
|
110
108
|
const isGroupOverflowing = (_useContext = useContext(ActionBarGroupContext)) === null || _useContext === void 0 ? void 0 : _useContext.isOverflowing;
|
|
@@ -137,7 +135,7 @@ const ActionBarIconButton = /*#__PURE__*/ forwardRef(({ disabled, onClick, ...pr
|
|
|
137
135
|
if (disabled) return;
|
|
138
136
|
onClick === null || onClick === void 0 || onClick(event);
|
|
139
137
|
}, [disabled, onClick]);
|
|
140
|
-
return
|
|
138
|
+
return /* @__PURE__ */ jsx(IconButton, {
|
|
141
139
|
"aria-disabled": disabled,
|
|
142
140
|
ref: mergedRef,
|
|
143
141
|
size,
|
|
@@ -168,7 +166,7 @@ const ActionBarButton = /*#__PURE__*/ forwardRef(({ disabled, onClick, ...props
|
|
|
168
166
|
if (disabled) return;
|
|
169
167
|
onClick === null || onClick === void 0 || onClick(event);
|
|
170
168
|
}, [disabled, onClick]);
|
|
171
|
-
return
|
|
169
|
+
return /* @__PURE__ */ jsx(ButtonComponent, {
|
|
172
170
|
"aria-disabled": disabled,
|
|
173
171
|
ref: mergedRef,
|
|
174
172
|
size,
|
|
@@ -183,9 +181,9 @@ const ActionBarGroup = /*#__PURE__*/ forwardRef(({ children }, forwardedRef) =>
|
|
|
183
181
|
const backupRef = useRef(null);
|
|
184
182
|
const ref = forwardedRef !== null && forwardedRef !== void 0 ? forwardedRef : backupRef;
|
|
185
183
|
const { dataOverflowingAttr, isOverflowing } = useActionBarItem(ref, useMemo(() => ({ type: "group" }), []));
|
|
186
|
-
return
|
|
184
|
+
return /* @__PURE__ */ jsx(ActionBarGroupContext.Provider, {
|
|
187
185
|
value: { isOverflowing },
|
|
188
|
-
children:
|
|
186
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
189
187
|
className: ActionBar_module_css_default.Group,
|
|
190
188
|
"data-component": "ActionBar.Group",
|
|
191
189
|
ref,
|
|
@@ -211,27 +209,27 @@ const ActionBarMenu = /*#__PURE__*/ forwardRef(({ "aria-label": ariaLabel, icon,
|
|
|
211
209
|
items,
|
|
212
210
|
returnFocusRef
|
|
213
211
|
]));
|
|
214
|
-
return
|
|
212
|
+
return /* @__PURE__ */ jsxs(ActionMenu, {
|
|
215
213
|
anchorRef: ref,
|
|
216
214
|
open: menuOpen,
|
|
217
215
|
onOpenChange: setMenuOpen,
|
|
218
|
-
children: [
|
|
216
|
+
children: [/* @__PURE__ */ jsx(ActionMenu.Anchor, { children: /* @__PURE__ */ jsx(IconButton, {
|
|
219
217
|
variant: "invisible",
|
|
220
218
|
"aria-label": ariaLabel,
|
|
221
219
|
icon,
|
|
222
220
|
...props,
|
|
223
221
|
"data-overflowing": dataOverflowingAttr,
|
|
224
222
|
"data-component": "ActionBar.Menu.IconButton"
|
|
225
|
-
}) }),
|
|
223
|
+
}) }), /* @__PURE__ */ jsx(ActionMenu.Overlay, {
|
|
226
224
|
...returnFocusRef && { returnFocusRef },
|
|
227
|
-
children:
|
|
225
|
+
children: /* @__PURE__ */ jsx(ActionList, { children: items.map((item, index) => renderMenuItem(item, index)) })
|
|
228
226
|
})]
|
|
229
227
|
});
|
|
230
228
|
});
|
|
231
229
|
const VerticalDivider = () => {
|
|
232
230
|
const ref = useRef(null);
|
|
233
231
|
const { dataOverflowingAttr } = useActionBarItem(ref, useMemo(() => ({ type: "divider" }), []));
|
|
234
|
-
return
|
|
232
|
+
return /* @__PURE__ */ jsx("div", {
|
|
235
233
|
ref,
|
|
236
234
|
"data-component": "ActionBar.VerticalDivider",
|
|
237
235
|
"aria-hidden": "true",
|
|
@@ -239,6 +237,5 @@ const VerticalDivider = () => {
|
|
|
239
237
|
"data-overflowing": dataOverflowingAttr
|
|
240
238
|
});
|
|
241
239
|
};
|
|
242
|
-
VerticalDivider.displayName = "VerticalDivider";
|
|
243
240
|
//#endregion
|
|
244
241
|
export { ActionBar, ActionBarButton, ActionBarGroup, ActionBarIconButton, ActionBarMenu, VerticalDivider };
|
|
@@ -69,7 +69,7 @@ const Description = (t0) => {
|
|
|
69
69
|
} else t5 = $[12];
|
|
70
70
|
let t6;
|
|
71
71
|
if ($[13] !== props.children || $[14] !== style || $[15] !== t4 || $[16] !== t5) {
|
|
72
|
-
t6 =
|
|
72
|
+
t6 = /* @__PURE__ */ jsx("span", {
|
|
73
73
|
id: t4,
|
|
74
74
|
className: t5,
|
|
75
75
|
style,
|
|
@@ -93,7 +93,7 @@ const Description = (t0) => {
|
|
|
93
93
|
const t5 = setTruncatedText ? "" : effectiveTitle;
|
|
94
94
|
let t6;
|
|
95
95
|
if ($[20] !== inlineDescriptionId || $[21] !== props.children || $[22] !== style || $[23] !== t4 || $[24] !== t5) {
|
|
96
|
-
t6 =
|
|
96
|
+
t6 = /* @__PURE__ */ jsx(Truncate_default, {
|
|
97
97
|
ref: containerRef,
|
|
98
98
|
id: inlineDescriptionId,
|
|
99
99
|
className: t4,
|
package/dist/ActionList/Group.js
CHANGED
|
@@ -38,7 +38,7 @@ const Heading = (t0) => {
|
|
|
38
38
|
const Component = t1 === void 0 ? "h3" : t1;
|
|
39
39
|
let t2;
|
|
40
40
|
if ($[6] !== Component || $[7] !== children || $[8] !== className || $[9] !== id || $[10] !== rest) {
|
|
41
|
-
t2 =
|
|
41
|
+
t2 = /* @__PURE__ */ jsx(Component, {
|
|
42
42
|
className,
|
|
43
43
|
id,
|
|
44
44
|
...rest,
|
|
@@ -125,7 +125,7 @@ const Group = (t0) => {
|
|
|
125
125
|
} else t5 = $[14];
|
|
126
126
|
let t6;
|
|
127
127
|
if ($[15] !== auxiliaryText || $[16] !== slots.groupHeading || $[17] !== title || $[18] !== variant) {
|
|
128
|
-
t6 = title && !slots.groupHeading ?
|
|
128
|
+
t6 = title && !slots.groupHeading ? /* @__PURE__ */ jsx(GroupHeading, {
|
|
129
129
|
variant,
|
|
130
130
|
auxiliaryText,
|
|
131
131
|
_internalBackwardCompatibleTitle: title
|
|
@@ -149,7 +149,7 @@ const Group = (t0) => {
|
|
|
149
149
|
const t11 = slots.groupHeading ? childrenWithoutSlots : props.children;
|
|
150
150
|
let t12;
|
|
151
151
|
if ($[23] !== t10 || $[24] !== t11 || $[25] !== t8 || $[26] !== t9) {
|
|
152
|
-
t12 =
|
|
152
|
+
t12 = /* @__PURE__ */ jsx("ul", {
|
|
153
153
|
"aria-labelledby": t8,
|
|
154
154
|
"aria-label": t9,
|
|
155
155
|
role: t10,
|
|
@@ -164,7 +164,7 @@ const Group = (t0) => {
|
|
|
164
164
|
} else t12 = $[27];
|
|
165
165
|
let t13;
|
|
166
166
|
if ($[28] !== t12 || $[29] !== t5 || $[30] !== t6 || $[31] !== t7) {
|
|
167
|
-
t13 =
|
|
167
|
+
t13 = /* @__PURE__ */ jsxs(GroupContext.Provider, {
|
|
168
168
|
value: t5,
|
|
169
169
|
children: [
|
|
170
170
|
t6,
|
|
@@ -180,7 +180,7 @@ const Group = (t0) => {
|
|
|
180
180
|
} else t13 = $[32];
|
|
181
181
|
let t14;
|
|
182
182
|
if ($[33] !== props || $[34] !== t13 || $[35] !== t3 || $[36] !== t4) {
|
|
183
|
-
t14 =
|
|
183
|
+
t14 = /* @__PURE__ */ jsx("li", {
|
|
184
184
|
className: t3,
|
|
185
185
|
"data-component": "ActionList.Group",
|
|
186
186
|
role: t4,
|
|
@@ -255,7 +255,7 @@ const GroupHeadingImpl = (t0) => {
|
|
|
255
255
|
let t4;
|
|
256
256
|
if ($[10] !== _internalBackwardCompatibleTitle || $[11] !== as || $[12] !== auxiliaryText || $[13] !== className || $[14] !== groupHeadingId || $[15] !== headingChildren || $[16] !== headingWrapElement || $[17] !== listRole || $[18] !== props || $[19] !== trailingAction || $[20] !== variant) {
|
|
257
257
|
var _internalBackwardComp, _internalBackwardComp2;
|
|
258
|
-
t4 =
|
|
258
|
+
t4 = /* @__PURE__ */ jsx(Fragment$1, { children: listRole && listRole !== "list" ? /* @__PURE__ */ jsxs(HeadingWrap, {
|
|
259
259
|
role: "presentation",
|
|
260
260
|
className: Group_module_css_default.GroupHeadingWrap,
|
|
261
261
|
"aria-hidden": "true",
|
|
@@ -263,33 +263,33 @@ const GroupHeadingImpl = (t0) => {
|
|
|
263
263
|
"data-component": "GroupHeadingWrap",
|
|
264
264
|
as: headingWrapElement,
|
|
265
265
|
...props,
|
|
266
|
-
children: [
|
|
266
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
267
267
|
className: clsx(className, Group_module_css_default.GroupHeading),
|
|
268
268
|
id: groupHeadingId,
|
|
269
269
|
children: (_internalBackwardComp = _internalBackwardCompatibleTitle) !== null && _internalBackwardComp !== void 0 ? _internalBackwardComp : headingChildren
|
|
270
|
-
}), auxiliaryText &&
|
|
270
|
+
}), auxiliaryText && /* @__PURE__ */ jsx("div", {
|
|
271
271
|
className: ActionList_module_css_default.Description,
|
|
272
272
|
children: auxiliaryText
|
|
273
273
|
})]
|
|
274
|
-
}) :
|
|
274
|
+
}) : /* @__PURE__ */ jsxs(HeadingWrap, {
|
|
275
275
|
className: Group_module_css_default.GroupHeadingWrap,
|
|
276
276
|
"data-variant": variant,
|
|
277
277
|
"data-has-trailing-action": trailingAction ? "" : void 0,
|
|
278
278
|
as: headingWrapElement,
|
|
279
279
|
"data-component": "GroupHeadingWrap",
|
|
280
280
|
children: [
|
|
281
|
-
|
|
281
|
+
/* @__PURE__ */ jsx(Heading, {
|
|
282
282
|
className: clsx(className, Group_module_css_default.GroupHeading),
|
|
283
283
|
as: as || "h3",
|
|
284
284
|
id: groupHeadingId,
|
|
285
285
|
...props,
|
|
286
286
|
children: (_internalBackwardComp2 = _internalBackwardCompatibleTitle) !== null && _internalBackwardComp2 !== void 0 ? _internalBackwardComp2 : headingChildren
|
|
287
287
|
}),
|
|
288
|
-
auxiliaryText &&
|
|
288
|
+
auxiliaryText && /* @__PURE__ */ jsx("div", {
|
|
289
289
|
className: ActionList_module_css_default.Description,
|
|
290
290
|
children: auxiliaryText
|
|
291
291
|
}),
|
|
292
|
-
trailingAction ?
|
|
292
|
+
trailingAction ? /* @__PURE__ */ jsx("span", {
|
|
293
293
|
className: Group_module_css_default.GroupHeadingTrailingAction,
|
|
294
294
|
children: trailingAction
|
|
295
295
|
}) : null
|
|
@@ -3,15 +3,6 @@ import { IconButton } from "../Button/IconButton.js";
|
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/ActionList/GroupHeadingTrailingAction.tsx
|
|
6
|
-
/**
|
|
7
|
-
* Props for `ActionList.GroupHeading.TrailingAction`.
|
|
8
|
-
*
|
|
9
|
-
* Mirrors the shape of `ActionList.TrailingAction` so the API is consistent
|
|
10
|
-
* across `ActionList.Item` and `ActionList.GroupHeading`. The only
|
|
11
|
-
* difference is that `icon` is required here — group headings are not
|
|
12
|
-
* interactive on their own, so the action must always render as a square
|
|
13
|
-
* IconButton with a uniform hit target.
|
|
14
|
-
*/
|
|
15
6
|
const GroupHeadingTrailingActionImpl = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
16
7
|
const $ = c(15);
|
|
17
8
|
let icon;
|
|
@@ -42,7 +33,7 @@ const GroupHeadingTrailingActionImpl = /*#__PURE__*/ forwardRef((t0, forwardedRe
|
|
|
42
33
|
const tooltipDirection = t3 === void 0 ? "w" : t3;
|
|
43
34
|
let t4;
|
|
44
35
|
if ($[7] !== as || $[8] !== forwardedRef || $[9] !== href || $[10] !== icon || $[11] !== label || $[12] !== props || $[13] !== tooltipDirection) {
|
|
45
|
-
t4 =
|
|
36
|
+
t4 = /* @__PURE__ */ jsx(IconButton, {
|
|
46
37
|
as,
|
|
47
38
|
"aria-label": label,
|
|
48
39
|
icon,
|
|
@@ -52,7 +52,7 @@ const Heading = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
|
52
52
|
} else t3 = $[9];
|
|
53
53
|
let t4;
|
|
54
54
|
if ($[10] !== as || $[11] !== children || $[12] !== listVariant || $[13] !== mergedRef || $[14] !== props || $[15] !== size || $[16] !== t2 || $[17] !== t3) {
|
|
55
|
-
t4 =
|
|
55
|
+
t4 = /* @__PURE__ */ jsx(Heading$1, {
|
|
56
56
|
as,
|
|
57
57
|
variant: size,
|
|
58
58
|
ref: mergedRef,
|
package/dist/ActionList/Item.js
CHANGED
|
@@ -30,7 +30,7 @@ const ConditionalTooltip = /*#__PURE__*/ React.forwardRef(function ConditionalTo
|
|
|
30
30
|
const t1 = text || "";
|
|
31
31
|
let t2;
|
|
32
32
|
if ($[0] !== children || $[1] !== forwardedRef || $[2] !== t1) {
|
|
33
|
-
t2 =
|
|
33
|
+
t2 = /* @__PURE__ */ jsx(Tooltip, {
|
|
34
34
|
ref: forwardedRef,
|
|
35
35
|
text: t1,
|
|
36
36
|
direction: "e",
|
|
@@ -49,7 +49,7 @@ const SubItem = (t0) => {
|
|
|
49
49
|
const { children } = t0;
|
|
50
50
|
let t1;
|
|
51
51
|
if ($[0] !== children) {
|
|
52
|
-
t1 =
|
|
52
|
+
t1 = /* @__PURE__ */ jsx(Fragment$1, { children });
|
|
53
53
|
$[0] = children;
|
|
54
54
|
$[1] = t1;
|
|
55
55
|
} else t1 = $[1];
|
|
@@ -75,7 +75,7 @@ const ButtonItemContainer = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) =>
|
|
|
75
75
|
const t1 = forwardedRef;
|
|
76
76
|
let t2;
|
|
77
77
|
if ($[4] !== children || $[5] !== props || $[6] !== style || $[7] !== t1) {
|
|
78
|
-
t2 =
|
|
78
|
+
t2 = /* @__PURE__ */ jsx("button", {
|
|
79
79
|
type: "button",
|
|
80
80
|
ref: t1,
|
|
81
81
|
style,
|
|
@@ -106,7 +106,7 @@ const DivItemContainer = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) => {
|
|
|
106
106
|
const t1 = forwardedRef;
|
|
107
107
|
let t2;
|
|
108
108
|
if ($[3] !== children || $[4] !== props || $[5] !== t1) {
|
|
109
|
-
t2 =
|
|
109
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
110
110
|
ref: t1,
|
|
111
111
|
...props,
|
|
112
112
|
children
|
|
@@ -220,7 +220,7 @@ const UnwrappedItem = (t0, forwardedRef) => {
|
|
|
220
220
|
const { container, afterSelect, selectionAttribute, defaultTrailingVisual } = React.useContext(ActionListContainerContext);
|
|
221
221
|
let t7;
|
|
222
222
|
if ($[17] !== defaultTrailingVisual) {
|
|
223
|
-
t7 = defaultTrailingVisual ?
|
|
223
|
+
t7 = defaultTrailingVisual ? /* @__PURE__ */ jsx(TrailingVisual, { children: defaultTrailingVisual }) : null;
|
|
224
224
|
$[17] = defaultTrailingVisual;
|
|
225
225
|
$[18] = t7;
|
|
226
226
|
} else t7 = $[18];
|
|
@@ -476,7 +476,7 @@ const UnwrappedItem = (t0, forwardedRef) => {
|
|
|
476
476
|
let t39;
|
|
477
477
|
if ($[93] === Symbol.for("react.memo_cache_sentinel")) {
|
|
478
478
|
t38 = {};
|
|
479
|
-
t39 =
|
|
479
|
+
t39 = /* @__PURE__ */ jsx("span", { className: ActionList_module_css_default.Spacer });
|
|
480
480
|
$[93] = t38;
|
|
481
481
|
$[94] = t39;
|
|
482
482
|
} else {
|
|
@@ -485,7 +485,7 @@ const UnwrappedItem = (t0, forwardedRef) => {
|
|
|
485
485
|
}
|
|
486
486
|
let t40;
|
|
487
487
|
if ($[95] !== selected) {
|
|
488
|
-
t40 =
|
|
488
|
+
t40 = /* @__PURE__ */ jsx(Selection, {
|
|
489
489
|
selected,
|
|
490
490
|
className: ActionList_module_css_default.LeadingAction
|
|
491
491
|
});
|
|
@@ -496,7 +496,7 @@ const UnwrappedItem = (t0, forwardedRef) => {
|
|
|
496
496
|
const t42 = Boolean(slots.leadingVisual);
|
|
497
497
|
let t43;
|
|
498
498
|
if ($[97] !== labelId || $[98] !== loading || $[99] !== slots.leadingVisual || $[100] !== t41 || $[101] !== t42) {
|
|
499
|
-
t43 =
|
|
499
|
+
t43 = /* @__PURE__ */ jsx(VisualOrIndicator, {
|
|
500
500
|
inactiveText: t41,
|
|
501
501
|
itemHasLeadingVisual: t42,
|
|
502
502
|
labelId,
|
|
@@ -514,14 +514,14 @@ const UnwrappedItem = (t0, forwardedRef) => {
|
|
|
514
514
|
const t44 = !!slots.description;
|
|
515
515
|
let t45;
|
|
516
516
|
if ($[103] !== inactive || $[104] !== loading) {
|
|
517
|
-
t45 = loading === true && !inactive &&
|
|
517
|
+
t45 = loading === true && !inactive && /* @__PURE__ */ jsx(VisuallyHidden, { children: "Loading" });
|
|
518
518
|
$[103] = inactive;
|
|
519
519
|
$[104] = loading;
|
|
520
520
|
$[105] = t45;
|
|
521
521
|
} else t45 = $[105];
|
|
522
522
|
let t46;
|
|
523
523
|
if ($[106] !== childrenWithoutSlots || $[107] !== labelId || $[108] !== t45) {
|
|
524
|
-
t46 =
|
|
524
|
+
t46 = /* @__PURE__ */ jsxs("span", {
|
|
525
525
|
id: labelId,
|
|
526
526
|
className: ActionList_module_css_default.ItemLabel,
|
|
527
527
|
"data-component": "ActionList.Item.Label",
|
|
@@ -534,7 +534,7 @@ const UnwrappedItem = (t0, forwardedRef) => {
|
|
|
534
534
|
} else t46 = $[109];
|
|
535
535
|
let t47;
|
|
536
536
|
if ($[110] !== descriptionVariant || $[111] !== slots.description || $[112] !== t44 || $[113] !== t46) {
|
|
537
|
-
t47 =
|
|
537
|
+
t47 = /* @__PURE__ */ jsxs(ConditionalWrapper, {
|
|
538
538
|
if: t44,
|
|
539
539
|
className: ActionList_module_css_default.ItemDescriptionWrap,
|
|
540
540
|
"data-description-variant": descriptionVariant,
|
|
@@ -550,7 +550,7 @@ const UnwrappedItem = (t0, forwardedRef) => {
|
|
|
550
550
|
const t49 = Boolean(slots.leadingVisual);
|
|
551
551
|
let t50;
|
|
552
552
|
if ($[115] !== labelId || $[116] !== loading || $[117] !== t48 || $[118] !== t49 || $[119] !== trailingVisual) {
|
|
553
|
-
t50 =
|
|
553
|
+
t50 = /* @__PURE__ */ jsx(VisualOrIndicator, {
|
|
554
554
|
inactiveText: t48,
|
|
555
555
|
itemHasLeadingVisual: t49,
|
|
556
556
|
labelId,
|
|
@@ -567,7 +567,7 @@ const UnwrappedItem = (t0, forwardedRef) => {
|
|
|
567
567
|
} else t50 = $[120];
|
|
568
568
|
let t51;
|
|
569
569
|
if ($[121] !== inactiveText || $[122] !== inactiveWarningId || $[123] !== showInactiveIndicator) {
|
|
570
|
-
t51 = !showInactiveIndicator && inactiveText ?
|
|
570
|
+
t51 = !showInactiveIndicator && inactiveText ? /* @__PURE__ */ jsx("span", {
|
|
571
571
|
className: ActionList_module_css_default.InactiveWarning,
|
|
572
572
|
id: inactiveWarningId,
|
|
573
573
|
children: inactiveText
|
|
@@ -579,7 +579,7 @@ const UnwrappedItem = (t0, forwardedRef) => {
|
|
|
579
579
|
} else t51 = $[124];
|
|
580
580
|
let t52;
|
|
581
581
|
if ($[125] !== t47 || $[126] !== t50 || $[127] !== t51) {
|
|
582
|
-
t52 =
|
|
582
|
+
t52 = /* @__PURE__ */ jsxs("span", {
|
|
583
583
|
className: ActionList_module_css_default.ActionListSubContent,
|
|
584
584
|
"data-component": "ActionList.Item--DividerContainer",
|
|
585
585
|
children: [
|
|
@@ -595,7 +595,7 @@ const UnwrappedItem = (t0, forwardedRef) => {
|
|
|
595
595
|
} else t52 = $[128];
|
|
596
596
|
let t53;
|
|
597
597
|
if ($[129] !== t40 || $[130] !== t43 || $[131] !== t52) {
|
|
598
|
-
t53 =
|
|
598
|
+
t53 = /* @__PURE__ */ jsxs(TooltipContext.Provider, {
|
|
599
599
|
value: t38,
|
|
600
600
|
children: [
|
|
601
601
|
t39,
|
|
@@ -611,7 +611,7 @@ const UnwrappedItem = (t0, forwardedRef) => {
|
|
|
611
611
|
} else t53 = $[132];
|
|
612
612
|
let t54;
|
|
613
613
|
if ($[133] !== ItemWrapper || $[134] !== size || $[135] !== t37 || $[136] !== t53 || $[137] !== wrapperProps) {
|
|
614
|
-
t54 =
|
|
614
|
+
t54 = /* @__PURE__ */ jsx(ItemWrapper, {
|
|
615
615
|
...wrapperProps,
|
|
616
616
|
className: ActionList_module_css_default.ActionListContent,
|
|
617
617
|
"data-size": size,
|
|
@@ -627,7 +627,7 @@ const UnwrappedItem = (t0, forwardedRef) => {
|
|
|
627
627
|
} else t54 = $[138];
|
|
628
628
|
let t55;
|
|
629
629
|
if ($[139] !== buttonSemantics || $[140] !== forwardedRef || $[141] !== t36 || $[142] !== t54) {
|
|
630
|
-
t55 =
|
|
630
|
+
t55 = /* @__PURE__ */ jsx(ConditionalTooltip, {
|
|
631
631
|
ref: forwardedRef,
|
|
632
632
|
text: t36,
|
|
633
633
|
enabled: buttonSemantics,
|
|
@@ -642,7 +642,7 @@ const UnwrappedItem = (t0, forwardedRef) => {
|
|
|
642
642
|
const t56 = !inactive && !loading && !menuContext && Boolean(slots.trailingAction) && slots.trailingAction;
|
|
643
643
|
let t57;
|
|
644
644
|
if ($[144] !== containerProps || $[145] !== slots.subItem || $[146] !== t26 || $[147] !== t27 || $[148] !== t28 || $[149] !== t29 || $[150] !== t30 || $[151] !== t31 || $[152] !== t32 || $[153] !== t33 || $[154] !== t34 || $[155] !== t35 || $[156] !== t55 || $[157] !== t56) {
|
|
645
|
-
t57 =
|
|
645
|
+
t57 = /* @__PURE__ */ jsxs("li", {
|
|
646
646
|
...containerProps,
|
|
647
647
|
ref: t26,
|
|
648
648
|
"data-component": "ActionList.Item",
|
|
@@ -679,7 +679,7 @@ const UnwrappedItem = (t0, forwardedRef) => {
|
|
|
679
679
|
} else t57 = $[158];
|
|
680
680
|
let t58;
|
|
681
681
|
if ($[159] !== itemContextValue || $[160] !== t57) {
|
|
682
|
-
t58 =
|
|
682
|
+
t58 = /* @__PURE__ */ jsx(ItemContext.Provider, {
|
|
683
683
|
value: itemContextValue,
|
|
684
684
|
children: t57
|
|
685
685
|
});
|
|
@@ -5,7 +5,7 @@ import Link from "../Link/Link.js";
|
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/ActionList/LinkItem.tsx
|
|
7
7
|
const LinkItemComponent = fixedForwardRef(({ active, inactiveText, variant, size, as: Component, className, _PrivateTooltipText, ...props }, forwardedRef) => {
|
|
8
|
-
return
|
|
8
|
+
return /* @__PURE__ */ jsx(Item, {
|
|
9
9
|
className,
|
|
10
10
|
active,
|
|
11
11
|
inactiveText,
|
|
@@ -17,11 +17,11 @@ const LinkItemComponent = fixedForwardRef(({ active, inactiveText, variant, size
|
|
|
17
17
|
onClick && onClick(event);
|
|
18
18
|
props.onClick && props.onClick(event);
|
|
19
19
|
};
|
|
20
|
-
if (inactiveText) return
|
|
20
|
+
if (inactiveText) return /* @__PURE__ */ jsx("span", {
|
|
21
21
|
...rest,
|
|
22
22
|
children
|
|
23
23
|
});
|
|
24
|
-
const link =
|
|
24
|
+
const link = /* @__PURE__ */ jsx(Link, {
|
|
25
25
|
as: Component,
|
|
26
26
|
...rest,
|
|
27
27
|
...props,
|
|
@@ -29,7 +29,7 @@ const LinkItemComponent = fixedForwardRef(({ active, inactiveText, variant, size
|
|
|
29
29
|
ref: _PrivateTooltipText ? void 0 : forwardedRef,
|
|
30
30
|
children
|
|
31
31
|
});
|
|
32
|
-
return _PrivateTooltipText ?
|
|
32
|
+
return _PrivateTooltipText ? /* @__PURE__ */ jsx(Tooltip, {
|
|
33
33
|
ref: forwardedRef,
|
|
34
34
|
text: _PrivateTooltipText,
|
|
35
35
|
direction: "e",
|
package/dist/ActionList/List.js
CHANGED
|
@@ -144,7 +144,7 @@ const UnwrappedList = (props, forwardedRef) => {
|
|
|
144
144
|
const t14 = itemGapEnabled ? "" : void 0;
|
|
145
145
|
let t15;
|
|
146
146
|
if ($[26] !== Component || $[27] !== appliedRef || $[28] !== ariaLabelledBy || $[29] !== childrenWithoutSlots || $[30] !== listRole || $[31] !== restProps || $[32] !== showDividers || $[33] !== t13 || $[34] !== t14 || $[35] !== variant) {
|
|
147
|
-
t15 =
|
|
147
|
+
t15 = /* @__PURE__ */ jsx(Component, {
|
|
148
148
|
className: t13,
|
|
149
149
|
role: listRole,
|
|
150
150
|
"aria-labelledby": ariaLabelledBy,
|
|
@@ -170,7 +170,7 @@ const UnwrappedList = (props, forwardedRef) => {
|
|
|
170
170
|
} else t15 = $[36];
|
|
171
171
|
let t16;
|
|
172
172
|
if ($[37] !== listContextValue || $[38] !== slots.heading || $[39] !== t15) {
|
|
173
|
-
t16 =
|
|
173
|
+
t16 = /* @__PURE__ */ jsxs(ListContext.Provider, {
|
|
174
174
|
value: listContextValue,
|
|
175
175
|
children: [t12, t15]
|
|
176
176
|
});
|
|
@@ -24,7 +24,7 @@ const Selection = (t0) => {
|
|
|
24
24
|
if (selectionVariant === "radio") {
|
|
25
25
|
let t1;
|
|
26
26
|
if ($[0] !== selected) {
|
|
27
|
-
t1 =
|
|
27
|
+
t1 = /* @__PURE__ */ jsx(Radio, {
|
|
28
28
|
value: "unused",
|
|
29
29
|
checked: selected,
|
|
30
30
|
"aria-hidden": true,
|
|
@@ -35,7 +35,7 @@ const Selection = (t0) => {
|
|
|
35
35
|
} else t1 = $[1];
|
|
36
36
|
let t2;
|
|
37
37
|
if ($[2] !== className || $[3] !== t1) {
|
|
38
|
-
t2 =
|
|
38
|
+
t2 = /* @__PURE__ */ jsx(VisualContainer, {
|
|
39
39
|
className,
|
|
40
40
|
"data-component": "ActionList.Selection",
|
|
41
41
|
children: t1
|
|
@@ -49,12 +49,12 @@ const Selection = (t0) => {
|
|
|
49
49
|
if (selectionVariant === "single" || listRole === "menu") {
|
|
50
50
|
let t1;
|
|
51
51
|
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
52
|
-
t1 =
|
|
52
|
+
t1 = /* @__PURE__ */ jsx(CheckIcon, { className: ActionList_module_css_default.SingleSelectCheckmark });
|
|
53
53
|
$[5] = t1;
|
|
54
54
|
} else t1 = $[5];
|
|
55
55
|
let t2;
|
|
56
56
|
if ($[6] !== className) {
|
|
57
|
-
t2 =
|
|
57
|
+
t2 = /* @__PURE__ */ jsx(VisualContainer, {
|
|
58
58
|
className,
|
|
59
59
|
"data-component": "ActionList.Selection",
|
|
60
60
|
children: t1
|
|
@@ -66,12 +66,12 @@ const Selection = (t0) => {
|
|
|
66
66
|
}
|
|
67
67
|
let t1;
|
|
68
68
|
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
69
|
-
t1 =
|
|
69
|
+
t1 = /* @__PURE__ */ jsx("div", { className: ActionList_module_css_default.MultiSelectCheckbox });
|
|
70
70
|
$[8] = t1;
|
|
71
71
|
} else t1 = $[8];
|
|
72
72
|
let t2;
|
|
73
73
|
if ($[9] !== className) {
|
|
74
|
-
t2 =
|
|
74
|
+
t2 = /* @__PURE__ */ jsx(VisualContainer, {
|
|
75
75
|
className,
|
|
76
76
|
"data-component": "ActionList.Selection",
|
|
77
77
|
children: t1
|