@primer/react 0.0.0-20260915174622 → 0.0.0-20261105032740
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 +124 -4
- package/dist/ActionBar/ActionBar.js +502 -169
- package/dist/ActionBar/index.d.ts +2 -2
- 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 +3 -3
- package/dist/ActionList/Divider.js +1 -1
- package/dist/ActionList/Group.js +16 -17
- package/dist/ActionList/GroupHeadingTrailingAction.js +1 -10
- package/dist/ActionList/Heading.js +1 -1
- package/dist/ActionList/Item.js +123 -122
- 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 +5 -18
- package/dist/ActionList/shared.d.ts +1 -1
- package/dist/ActionMenu/ActionMenu.js +20 -19
- 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-e6a99916.css → AvatarStack-937ec7c1.css} +2 -2
- package/dist/AvatarStack/{AvatarStack-e6a99916.css.map → AvatarStack-937ec7c1.css.map} +1 -1
- package/dist/AvatarStack/AvatarStack.js +3 -3
- package/dist/AvatarStack/AvatarStack.module.css.js +1 -1
- package/dist/Banner/Banner.js +24 -26
- package/dist/BaseStyles.js +1 -1
- package/dist/Blankslate/Blankslate.js +10 -11
- package/dist/BranchName/BranchName.d.ts +1 -1
- package/dist/BranchName/BranchName.js +1 -1
- package/dist/Breadcrumbs/{Breadcrumbs-16d81430.css → Breadcrumbs-13089350.css} +2 -2
- package/dist/Breadcrumbs/Breadcrumbs-13089350.css.map +1 -0
- package/dist/Breadcrumbs/Breadcrumbs.d.ts +2 -2
- package/dist/Breadcrumbs/Breadcrumbs.js +365 -407
- package/dist/Breadcrumbs/Breadcrumbs.module.css.js +1 -1
- 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 +14 -10
- package/dist/Button/ButtonBase.module.css.js +1 -1
- package/dist/Button/IconButton.js +6 -7
- package/dist/Button/LinkButton.js +1 -1
- package/dist/Button/types.d.ts +2 -2
- package/dist/ButtonGroup/ButtonGroup.js +2 -3
- package/dist/Card/Card.js +17 -18
- package/dist/Card/index.d.ts +1 -1
- package/dist/Checkbox/Checkbox.js +145 -41
- 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 +80 -18
- package/dist/DataTable/DataTable.d.ts +76 -22
- package/dist/DataTable/DataTable.js +239 -73
- package/dist/DataTable/ErrorDialog.js +1 -1
- package/dist/DataTable/Pagination.js +23 -23
- package/dist/DataTable/Table-7f0e985b.css +2 -0
- package/dist/DataTable/Table-7f0e985b.css.map +1 -0
- package/dist/DataTable/Table.d.ts +77 -1
- package/dist/DataTable/Table.js +269 -55
- package/dist/DataTable/Table.module.css.js +8 -5
- package/dist/DataTable/TableBulkActions-aca5618a.css +2 -0
- package/dist/DataTable/TableBulkActions-aca5618a.css.map +1 -0
- package/dist/DataTable/TableBulkActions.d.ts +15 -0
- package/dist/DataTable/TableBulkActions.js +217 -0
- package/dist/DataTable/TableBulkActions.module.css.js +12 -0
- package/dist/DataTable/TableGroup.d.ts +25 -1
- package/dist/DataTable/TableGroup.js +197 -117
- package/dist/DataTable/index.d.ts +8 -4
- package/dist/DataTable/index.js +6 -2
- package/dist/DataTable/row.d.ts +26 -2
- package/dist/DataTable/useTable.js +354 -90
- package/dist/DataTable/utils.d.ts +4 -2
- package/dist/Details/Details.js +4 -6
- package/dist/Dialog/Dialog.js +20 -23
- package/dist/FeatureFlags/DefaultFeatureFlags.js +3 -1
- package/dist/FeatureFlags/FeatureFlagScope.js +1 -0
- package/dist/FeatureFlags/FeatureFlags.js +1 -1
- package/dist/FilteredActionList/FilteredActionList.js +27 -22
- package/dist/FilteredActionList/FilteredActionListInput.d.ts +5 -1
- package/dist/FilteredActionList/FilteredActionListInput.js +61 -40
- package/dist/FilteredActionList/FilteredActionListLoaders.js +10 -11
- package/dist/FilteredActionList/constants.js +2 -0
- package/dist/FilteredActionList/useAnnouncements.js +160 -71
- package/dist/Flash/Flash.js +1 -4
- package/dist/FormControl/FormControl.js +58 -83
- package/dist/FormControl/FormControlCaption.js +1 -1
- package/dist/FormControl/FormControlLabel.js +2 -3
- package/dist/FormControl/FormControlLeadingVisual.js +1 -1
- package/dist/FormControl/_FormControlContext.js +1 -2
- package/dist/FormControl/_FormControlContextProvider.js +5 -0
- 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 +12 -13
- 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.d.ts +1 -1
- package/dist/Link/Link.js +1 -1
- package/dist/NavList/NavList.d.ts +1 -1
- package/dist/NavList/NavList.js +27 -28
- package/dist/Octicon/Octicon.js +1 -4
- package/dist/Overlay/Overlay.d.ts +2 -0
- package/dist/Overlay/Overlay.js +300 -63
- 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 +2 -7
- package/dist/Pagehead/Pagehead.js +1 -1
- package/dist/Pagination/Pagination.js +9 -10
- package/dist/Popover/Popover.js +6 -8
- package/dist/ProgressBar/ProgressBar.js +4 -5
- 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-99b8e34e.css +2 -0
- package/dist/SegmentedControl/SegmentedControl-99b8e34e.css.map +1 -0
- package/dist/SegmentedControl/SegmentedControl.js +13 -13
- package/dist/SegmentedControl/SegmentedControl.module.css.js +1 -1
- package/dist/SegmentedControl/SegmentedControlAction.js +6 -6
- package/dist/SegmentedControl/SegmentedControlButton.js +9 -10
- package/dist/SegmentedControl/SegmentedControlDivider.js +1 -1
- package/dist/SegmentedControl/SegmentedControlIconButton.js +5 -5
- package/dist/Select/Select.js +11 -11
- package/dist/SelectPanel/SelectPanel.d.ts +1 -1
- package/dist/SelectPanel/SelectPanel.js +117 -68
- 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 +6 -7
- 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.d.ts +1 -1
- package/dist/Text/Text.js +1 -1
- package/dist/TextInput/TextInput.js +246 -91
- package/dist/TextInputWithTokens/TextInputWithTokens.js +12 -15
- package/dist/Textarea/Textarea.d.ts +2 -2
- 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 +20 -21
- 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 +115 -21
- package/dist/Token/_TokenTextContainer.js +1 -1
- package/dist/Tooltip/Tooltip.js +98 -20
- package/dist/TooltipV2/Tooltip.js +304 -137
- package/dist/TopicTag/TopicTag.js +2 -3
- 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 +4 -3
- package/dist/Truncate/Truncate.d.ts +9 -4
- package/dist/Truncate/Truncate.js +92 -16
- package/dist/Truncate/index.d.ts +2 -2
- package/dist/UnderlineNav/UnderlineNav.js +18 -18
- package/dist/UnderlineNav/UnderlineNavItem.js +53 -47
- 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 +18 -21
- package/dist/deprecated/ActionList/List.js +5 -14
- 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.d.ts +1 -1
- package/dist/experimental/SelectPanel2/SelectPanel.js +42 -49
- package/dist/experimental/Tabs/Tabs.js +1 -1
- package/dist/experimental/UnderlinePanels/UnderlinePanels.js +417 -124
- package/dist/experimental/index.d.ts +5 -4
- package/dist/experimental/index.js +1 -1
- package/dist/hooks/useControllableState.js +70 -19
- package/dist/hooks/useMergedRefs.js +0 -12
- package/dist/hooks/useOnOutsideClick.js +48 -21
- package/dist/hooks/useOpenAndCloseFocus.d.ts +3 -1
- package/dist/hooks/useOpenAndCloseFocus.js +28 -16
- package/dist/hooks/useOverlay.d.ts +3 -1
- package/dist/hooks/useOverlay.js +24 -22
- package/dist/hooks/useResponsiveValue.js +0 -5
- package/dist/hooks/useSafeTimeout.js +54 -19
- package/dist/hooks/useSlots.js +0 -48
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- 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 +4 -5
- package/dist/internal/components/InputValidation.js +4 -4
- package/dist/internal/components/OverflowObserverProvider.js +1 -1
- package/dist/internal/components/TextInputInnerAction.js +7 -8
- package/dist/internal/components/TextInputInnerVisualSlot.js +5 -5
- package/dist/internal/components/TextInputWrapper.d.ts +3 -0
- 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/useDevOnlyEffect.js +3 -8
- package/dist/internal/hooks/useOverflowObserver.js +1 -2
- package/dist/internal/hooks/useThemeProvider.js +3 -3
- 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.d.ts +1 -1
- package/dist/utils/descendant-registry.js +94 -82
- package/dist/utils/modern-polymorphic.d.ts +2 -1
- package/dist/utils/modern-polymorphic.js +0 -10
- package/generated/components.json +290 -28
- package/generated/hooks.json +13 -1
- package/package.json +16 -17
- package/dist/ActionList/ActionList-1ff5220c.css.map +0 -1
- package/dist/Breadcrumbs/Breadcrumbs-16d81430.css.map +0 -1
- package/dist/Button/ButtonBase-b44e29d1.css +0 -2
- package/dist/Button/ButtonBase-b44e29d1.css.map +0 -1
- package/dist/DataTable/Table-50e68700.css +0 -2
- package/dist/DataTable/Table-50e68700.css.map +0 -1
- package/dist/SegmentedControl/SegmentedControl-e68d4197.css +0 -2
- package/dist/SegmentedControl/SegmentedControl-e68d4197.css.map +0 -1
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
|
|
@@ -138,7 +138,7 @@ const listRoleTypes = [
|
|
|
138
138
|
"tree"
|
|
139
139
|
];
|
|
140
140
|
const UnwrappedItem = (t0, forwardedRef) => {
|
|
141
|
-
var _slots$trailingVisual, _slots$description$pr, _slots$description, _slots$trailingAction
|
|
141
|
+
var _slots$trailingVisual, _slots$description$pr, _slots$description, _slots$trailingAction;
|
|
142
142
|
const $ = c(162);
|
|
143
143
|
let _PrivateItemWrapper;
|
|
144
144
|
let _PrivateTooltipText;
|
|
@@ -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];
|
|
@@ -470,34 +470,35 @@ const UnwrappedItem = (t0, forwardedRef) => {
|
|
|
470
470
|
$[91] = className;
|
|
471
471
|
$[92] = t35;
|
|
472
472
|
} else t35 = $[92];
|
|
473
|
-
const t36 =
|
|
474
|
-
|
|
473
|
+
const t36 = _PrivateTooltipText !== null && _PrivateTooltipText !== void 0 ? _PrivateTooltipText : truncatedText;
|
|
474
|
+
const t37 = listSemantics ? null : forwardedRef;
|
|
475
475
|
let t38;
|
|
476
|
+
let t39;
|
|
476
477
|
if ($[93] === Symbol.for("react.memo_cache_sentinel")) {
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
$[93] =
|
|
480
|
-
$[94] =
|
|
478
|
+
t38 = {};
|
|
479
|
+
t39 = /* @__PURE__ */ jsx("span", { className: ActionList_module_css_default.Spacer });
|
|
480
|
+
$[93] = t38;
|
|
481
|
+
$[94] = t39;
|
|
481
482
|
} else {
|
|
482
|
-
|
|
483
|
-
|
|
483
|
+
t38 = $[93];
|
|
484
|
+
t39 = $[94];
|
|
484
485
|
}
|
|
485
|
-
let
|
|
486
|
+
let t40;
|
|
486
487
|
if ($[95] !== selected) {
|
|
487
|
-
|
|
488
|
+
t40 = /* @__PURE__ */ jsx(Selection, {
|
|
488
489
|
selected,
|
|
489
490
|
className: ActionList_module_css_default.LeadingAction
|
|
490
491
|
});
|
|
491
492
|
$[95] = selected;
|
|
492
|
-
$[96] =
|
|
493
|
-
} else
|
|
494
|
-
const
|
|
495
|
-
const
|
|
496
|
-
let
|
|
497
|
-
if ($[97] !== labelId || $[98] !== loading || $[99] !== slots.leadingVisual || $[100] !==
|
|
498
|
-
|
|
499
|
-
inactiveText:
|
|
500
|
-
itemHasLeadingVisual:
|
|
493
|
+
$[96] = t40;
|
|
494
|
+
} else t40 = $[96];
|
|
495
|
+
const t41 = showInactiveIndicator ? inactiveText : void 0;
|
|
496
|
+
const t42 = Boolean(slots.leadingVisual);
|
|
497
|
+
let t43;
|
|
498
|
+
if ($[97] !== labelId || $[98] !== loading || $[99] !== slots.leadingVisual || $[100] !== t41 || $[101] !== t42) {
|
|
499
|
+
t43 = /* @__PURE__ */ jsx(VisualOrIndicator, {
|
|
500
|
+
inactiveText: t41,
|
|
501
|
+
itemHasLeadingVisual: t42,
|
|
501
502
|
labelId,
|
|
502
503
|
loading,
|
|
503
504
|
position: "leading",
|
|
@@ -506,52 +507,52 @@ const UnwrappedItem = (t0, forwardedRef) => {
|
|
|
506
507
|
$[97] = labelId;
|
|
507
508
|
$[98] = loading;
|
|
508
509
|
$[99] = slots.leadingVisual;
|
|
509
|
-
$[100] =
|
|
510
|
-
$[101] =
|
|
511
|
-
$[102] =
|
|
512
|
-
} else
|
|
513
|
-
const
|
|
514
|
-
let
|
|
510
|
+
$[100] = t41;
|
|
511
|
+
$[101] = t42;
|
|
512
|
+
$[102] = t43;
|
|
513
|
+
} else t43 = $[102];
|
|
514
|
+
const t44 = !!slots.description;
|
|
515
|
+
let t45;
|
|
515
516
|
if ($[103] !== inactive || $[104] !== loading) {
|
|
516
|
-
|
|
517
|
+
t45 = loading === true && !inactive && /* @__PURE__ */ jsx(VisuallyHidden, { children: "Loading" });
|
|
517
518
|
$[103] = inactive;
|
|
518
519
|
$[104] = loading;
|
|
519
|
-
$[105] =
|
|
520
|
-
} else
|
|
521
|
-
let
|
|
522
|
-
if ($[106] !== childrenWithoutSlots || $[107] !== labelId || $[108] !==
|
|
523
|
-
|
|
520
|
+
$[105] = t45;
|
|
521
|
+
} else t45 = $[105];
|
|
522
|
+
let t46;
|
|
523
|
+
if ($[106] !== childrenWithoutSlots || $[107] !== labelId || $[108] !== t45) {
|
|
524
|
+
t46 = /* @__PURE__ */ jsxs("span", {
|
|
524
525
|
id: labelId,
|
|
525
526
|
className: ActionList_module_css_default.ItemLabel,
|
|
526
527
|
"data-component": "ActionList.Item.Label",
|
|
527
|
-
children: [childrenWithoutSlots,
|
|
528
|
+
children: [childrenWithoutSlots, t45]
|
|
528
529
|
});
|
|
529
530
|
$[106] = childrenWithoutSlots;
|
|
530
531
|
$[107] = labelId;
|
|
531
|
-
$[108] =
|
|
532
|
-
$[109] =
|
|
533
|
-
} else
|
|
534
|
-
let
|
|
535
|
-
if ($[110] !== descriptionVariant || $[111] !== slots.description || $[112] !==
|
|
536
|
-
|
|
537
|
-
if:
|
|
532
|
+
$[108] = t45;
|
|
533
|
+
$[109] = t46;
|
|
534
|
+
} else t46 = $[109];
|
|
535
|
+
let t47;
|
|
536
|
+
if ($[110] !== descriptionVariant || $[111] !== slots.description || $[112] !== t44 || $[113] !== t46) {
|
|
537
|
+
t47 = /* @__PURE__ */ jsxs(ConditionalWrapper, {
|
|
538
|
+
if: t44,
|
|
538
539
|
className: ActionList_module_css_default.ItemDescriptionWrap,
|
|
539
540
|
"data-description-variant": descriptionVariant,
|
|
540
|
-
children: [
|
|
541
|
+
children: [t46, slots.description]
|
|
541
542
|
});
|
|
542
543
|
$[110] = descriptionVariant;
|
|
543
544
|
$[111] = slots.description;
|
|
544
|
-
$[112] =
|
|
545
|
-
$[113] =
|
|
546
|
-
$[114] =
|
|
547
|
-
} else
|
|
548
|
-
const
|
|
549
|
-
const
|
|
550
|
-
let
|
|
551
|
-
if ($[115] !== labelId || $[116] !== loading || $[117] !==
|
|
552
|
-
|
|
553
|
-
inactiveText:
|
|
554
|
-
itemHasLeadingVisual:
|
|
545
|
+
$[112] = t44;
|
|
546
|
+
$[113] = t46;
|
|
547
|
+
$[114] = t47;
|
|
548
|
+
} else t47 = $[114];
|
|
549
|
+
const t48 = showInactiveIndicator ? inactiveText : void 0;
|
|
550
|
+
const t49 = Boolean(slots.leadingVisual);
|
|
551
|
+
let t50;
|
|
552
|
+
if ($[115] !== labelId || $[116] !== loading || $[117] !== t48 || $[118] !== t49 || $[119] !== trailingVisual) {
|
|
553
|
+
t50 = /* @__PURE__ */ jsx(VisualOrIndicator, {
|
|
554
|
+
inactiveText: t48,
|
|
555
|
+
itemHasLeadingVisual: t49,
|
|
555
556
|
labelId,
|
|
556
557
|
loading,
|
|
557
558
|
position: "trailing",
|
|
@@ -559,14 +560,14 @@ const UnwrappedItem = (t0, forwardedRef) => {
|
|
|
559
560
|
});
|
|
560
561
|
$[115] = labelId;
|
|
561
562
|
$[116] = loading;
|
|
562
|
-
$[117] =
|
|
563
|
-
$[118] =
|
|
563
|
+
$[117] = t48;
|
|
564
|
+
$[118] = t49;
|
|
564
565
|
$[119] = trailingVisual;
|
|
565
|
-
$[120] =
|
|
566
|
-
} else
|
|
567
|
-
let
|
|
566
|
+
$[120] = t50;
|
|
567
|
+
} else t50 = $[120];
|
|
568
|
+
let t51;
|
|
568
569
|
if ($[121] !== inactiveText || $[122] !== inactiveWarningId || $[123] !== showInactiveIndicator) {
|
|
569
|
-
|
|
570
|
+
t51 = !showInactiveIndicator && inactiveText ? /* @__PURE__ */ jsx("span", {
|
|
570
571
|
className: ActionList_module_css_default.InactiveWarning,
|
|
571
572
|
id: inactiveWarningId,
|
|
572
573
|
children: inactiveText
|
|
@@ -574,74 +575,74 @@ const UnwrappedItem = (t0, forwardedRef) => {
|
|
|
574
575
|
$[121] = inactiveText;
|
|
575
576
|
$[122] = inactiveWarningId;
|
|
576
577
|
$[123] = showInactiveIndicator;
|
|
577
|
-
$[124] =
|
|
578
|
-
} else
|
|
579
|
-
let
|
|
580
|
-
if ($[125] !==
|
|
581
|
-
|
|
578
|
+
$[124] = t51;
|
|
579
|
+
} else t51 = $[124];
|
|
580
|
+
let t52;
|
|
581
|
+
if ($[125] !== t47 || $[126] !== t50 || $[127] !== t51) {
|
|
582
|
+
t52 = /* @__PURE__ */ jsxs("span", {
|
|
582
583
|
className: ActionList_module_css_default.ActionListSubContent,
|
|
583
584
|
"data-component": "ActionList.Item--DividerContainer",
|
|
584
585
|
children: [
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
586
|
+
t47,
|
|
587
|
+
t50,
|
|
588
|
+
t51
|
|
588
589
|
]
|
|
589
590
|
});
|
|
590
|
-
$[125] =
|
|
591
|
-
$[126] =
|
|
592
|
-
$[127] =
|
|
593
|
-
$[128] =
|
|
594
|
-
} else
|
|
595
|
-
let
|
|
596
|
-
if ($[129] !==
|
|
597
|
-
|
|
598
|
-
value:
|
|
591
|
+
$[125] = t47;
|
|
592
|
+
$[126] = t50;
|
|
593
|
+
$[127] = t51;
|
|
594
|
+
$[128] = t52;
|
|
595
|
+
} else t52 = $[128];
|
|
596
|
+
let t53;
|
|
597
|
+
if ($[129] !== t40 || $[130] !== t43 || $[131] !== t52) {
|
|
598
|
+
t53 = /* @__PURE__ */ jsxs(TooltipContext.Provider, {
|
|
599
|
+
value: t38,
|
|
599
600
|
children: [
|
|
600
|
-
t38,
|
|
601
601
|
t39,
|
|
602
|
-
|
|
603
|
-
|
|
602
|
+
t40,
|
|
603
|
+
t43,
|
|
604
|
+
t52
|
|
604
605
|
]
|
|
605
606
|
});
|
|
606
|
-
$[129] =
|
|
607
|
-
$[130] =
|
|
608
|
-
$[131] =
|
|
609
|
-
$[132] =
|
|
610
|
-
} else
|
|
611
|
-
let
|
|
612
|
-
if ($[133] !== ItemWrapper || $[134] !==
|
|
613
|
-
|
|
607
|
+
$[129] = t40;
|
|
608
|
+
$[130] = t43;
|
|
609
|
+
$[131] = t52;
|
|
610
|
+
$[132] = t53;
|
|
611
|
+
} else t53 = $[132];
|
|
612
|
+
let t54;
|
|
613
|
+
if ($[133] !== ItemWrapper || $[134] !== size || $[135] !== t37 || $[136] !== t53 || $[137] !== wrapperProps) {
|
|
614
|
+
t54 = /* @__PURE__ */ jsx(ItemWrapper, {
|
|
614
615
|
...wrapperProps,
|
|
615
616
|
className: ActionList_module_css_default.ActionListContent,
|
|
616
617
|
"data-size": size,
|
|
617
|
-
ref:
|
|
618
|
-
children:
|
|
618
|
+
ref: t37,
|
|
619
|
+
children: t53
|
|
619
620
|
});
|
|
620
621
|
$[133] = ItemWrapper;
|
|
621
|
-
$[134] =
|
|
622
|
-
$[135] =
|
|
623
|
-
$[136] =
|
|
622
|
+
$[134] = size;
|
|
623
|
+
$[135] = t37;
|
|
624
|
+
$[136] = t53;
|
|
624
625
|
$[137] = wrapperProps;
|
|
625
|
-
$[138] =
|
|
626
|
-
} else
|
|
627
|
-
let
|
|
628
|
-
if ($[139] !== buttonSemantics || $[140] !== forwardedRef || $[141] !== t36 || $[142] !==
|
|
629
|
-
|
|
626
|
+
$[138] = t54;
|
|
627
|
+
} else t54 = $[138];
|
|
628
|
+
let t55;
|
|
629
|
+
if ($[139] !== buttonSemantics || $[140] !== forwardedRef || $[141] !== t36 || $[142] !== t54) {
|
|
630
|
+
t55 = /* @__PURE__ */ jsx(ConditionalTooltip, {
|
|
630
631
|
ref: forwardedRef,
|
|
631
632
|
text: t36,
|
|
632
633
|
enabled: buttonSemantics,
|
|
633
|
-
children:
|
|
634
|
+
children: t54
|
|
634
635
|
});
|
|
635
636
|
$[139] = buttonSemantics;
|
|
636
637
|
$[140] = forwardedRef;
|
|
637
638
|
$[141] = t36;
|
|
638
|
-
$[142] =
|
|
639
|
-
$[143] =
|
|
640
|
-
} else
|
|
641
|
-
const
|
|
642
|
-
let
|
|
643
|
-
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] !==
|
|
644
|
-
|
|
639
|
+
$[142] = t54;
|
|
640
|
+
$[143] = t55;
|
|
641
|
+
} else t55 = $[143];
|
|
642
|
+
const t56 = !inactive && !loading && !menuContext && Boolean(slots.trailingAction) && slots.trailingAction;
|
|
643
|
+
let t57;
|
|
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 = /* @__PURE__ */ jsxs("li", {
|
|
645
646
|
...containerProps,
|
|
646
647
|
ref: t26,
|
|
647
648
|
"data-component": "ActionList.Item",
|
|
@@ -655,8 +656,8 @@ const UnwrappedItem = (t0, forwardedRef) => {
|
|
|
655
656
|
"data-trailing-action-loading": t34,
|
|
656
657
|
className: t35,
|
|
657
658
|
children: [
|
|
658
|
-
t54,
|
|
659
659
|
t55,
|
|
660
|
+
t56,
|
|
660
661
|
slots.subItem
|
|
661
662
|
]
|
|
662
663
|
});
|
|
@@ -672,21 +673,21 @@ const UnwrappedItem = (t0, forwardedRef) => {
|
|
|
672
673
|
$[153] = t33;
|
|
673
674
|
$[154] = t34;
|
|
674
675
|
$[155] = t35;
|
|
675
|
-
$[156] =
|
|
676
|
-
$[157] =
|
|
677
|
-
$[158] =
|
|
678
|
-
} else
|
|
679
|
-
let
|
|
680
|
-
if ($[159] !== itemContextValue || $[160] !==
|
|
681
|
-
|
|
676
|
+
$[156] = t55;
|
|
677
|
+
$[157] = t56;
|
|
678
|
+
$[158] = t57;
|
|
679
|
+
} else t57 = $[158];
|
|
680
|
+
let t58;
|
|
681
|
+
if ($[159] !== itemContextValue || $[160] !== t57) {
|
|
682
|
+
t58 = /* @__PURE__ */ jsx(ItemContext.Provider, {
|
|
682
683
|
value: itemContextValue,
|
|
683
|
-
children:
|
|
684
|
+
children: t57
|
|
684
685
|
});
|
|
685
686
|
$[159] = itemContextValue;
|
|
686
|
-
$[160] =
|
|
687
|
-
$[161] =
|
|
688
|
-
} else
|
|
689
|
-
return
|
|
687
|
+
$[160] = t57;
|
|
688
|
+
$[161] = t58;
|
|
689
|
+
} else t58 = $[161];
|
|
690
|
+
return t58;
|
|
690
691
|
};
|
|
691
692
|
const Item = Object.assign(fixedForwardRef(UnwrappedItem), {
|
|
692
693
|
displayName: "ActionList.Item",
|
|
@@ -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
|
|
@@ -51,7 +51,7 @@ const TrailingAction = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
|
51
51
|
} else t4 = $[11];
|
|
52
52
|
let t5;
|
|
53
53
|
if ($[12] !== as || $[13] !== forwardedRef || $[14] !== href || $[15] !== icon || $[16] !== label || $[17] !== loading || $[18] !== props || $[19] !== tooltipDirection) {
|
|
54
|
-
t5 = icon ?
|
|
54
|
+
t5 = icon ? /* @__PURE__ */ jsx(IconButton, {
|
|
55
55
|
as,
|
|
56
56
|
"aria-label": label,
|
|
57
57
|
icon,
|
|
@@ -63,7 +63,7 @@ const TrailingAction = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
|
63
63
|
ref: forwardedRef,
|
|
64
64
|
className: ActionList_module_css_default.TrailingActionButton,
|
|
65
65
|
...props
|
|
66
|
-
}) :
|
|
66
|
+
}) : /* @__PURE__ */ jsx(ButtonComponent, {
|
|
67
67
|
variant: "invisible",
|
|
68
68
|
as,
|
|
69
69
|
href,
|
|
@@ -87,7 +87,7 @@ const TrailingAction = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
|
87
87
|
} else t5 = $[20];
|
|
88
88
|
let t6;
|
|
89
89
|
if ($[21] !== style || $[22] !== t4 || $[23] !== t5) {
|
|
90
|
-
t6 =
|
|
90
|
+
t6 = /* @__PURE__ */ jsx("span", {
|
|
91
91
|
className: t4,
|
|
92
92
|
"data-component": "ActionList.TrailingAction",
|
|
93
93
|
style,
|
|
@@ -29,7 +29,7 @@ const VisualContainer = (t0) => {
|
|
|
29
29
|
} else t1 = $[4];
|
|
30
30
|
let t2;
|
|
31
31
|
if ($[5] !== props || $[6] !== t1) {
|
|
32
|
-
t2 =
|
|
32
|
+
t2 = /* @__PURE__ */ jsx("span", {
|
|
33
33
|
className: t1,
|
|
34
34
|
...props
|
|
35
35
|
});
|
|
@@ -60,7 +60,7 @@ const LeadingVisual = (t0) => {
|
|
|
60
60
|
} else t1 = $[4];
|
|
61
61
|
let t2;
|
|
62
62
|
if ($[5] !== props || $[6] !== t1) {
|
|
63
|
-
t2 =
|
|
63
|
+
t2 = /* @__PURE__ */ jsx(VisualContainer, {
|
|
64
64
|
className: t1,
|
|
65
65
|
"data-component": "ActionList.LeadingVisual",
|
|
66
66
|
...props,
|
|
@@ -94,7 +94,7 @@ const TrailingVisual = (t0) => {
|
|
|
94
94
|
} else t1 = $[4];
|
|
95
95
|
let t2;
|
|
96
96
|
if ($[5] !== props || $[6] !== t1 || $[7] !== trailingVisualId) {
|
|
97
|
-
t2 =
|
|
97
|
+
t2 = /* @__PURE__ */ jsx(VisualContainer, {
|
|
98
98
|
className: t1,
|
|
99
99
|
"data-component": "ActionList.TrailingVisual",
|
|
100
100
|
id: trailingVisualId,
|
|
@@ -116,22 +116,22 @@ const VisualOrIndicator = (t0) => {
|
|
|
116
116
|
if (itemHasLeadingVisual && position === "trailing" || !itemHasLeadingVisual && position === "leading") return children;
|
|
117
117
|
let t1;
|
|
118
118
|
if ($[0] !== VisualComponent || $[1] !== className || $[2] !== inactiveText || $[3] !== labelId || $[4] !== position) {
|
|
119
|
-
t1 = inactiveText ?
|
|
119
|
+
t1 = inactiveText ? /* @__PURE__ */ jsx("span", {
|
|
120
120
|
className: ActionList_module_css_default.InactiveButtonWrap,
|
|
121
121
|
"data-position": position,
|
|
122
|
-
children:
|
|
122
|
+
children: /* @__PURE__ */ jsx(Tooltip, {
|
|
123
123
|
text: inactiveText,
|
|
124
124
|
type: "description",
|
|
125
|
-
children:
|
|
125
|
+
children: /* @__PURE__ */ jsx("button", {
|
|
126
126
|
type: "button",
|
|
127
127
|
className: ActionList_module_css_default.InactiveButtonReset,
|
|
128
128
|
"aria-labelledby": labelId,
|
|
129
|
-
children:
|
|
129
|
+
children: /* @__PURE__ */ jsx(VisualComponent, { children: /* @__PURE__ */ jsx(AlertIcon, {}) })
|
|
130
130
|
})
|
|
131
131
|
})
|
|
132
|
-
}) :
|
|
132
|
+
}) : /* @__PURE__ */ jsx(VisualComponent, {
|
|
133
133
|
className,
|
|
134
|
-
children:
|
|
134
|
+
children: /* @__PURE__ */ jsx(Spinner, { size: "small" })
|
|
135
135
|
});
|
|
136
136
|
$[0] = VisualComponent;
|
|
137
137
|
$[1] = className;
|
|
@@ -7,15 +7,15 @@ import { ActionListGroupHeadingTrailingActionProps } from "./GroupHeadingTrailin
|
|
|
7
7
|
import { ActionListItemProps, ActionListProps } from "./shared.js";
|
|
8
8
|
import { ActionListHeadingProps } from "./Heading.js";
|
|
9
9
|
import { ActionListGroupHeadingProps, ActionListGroupProps } from "./Group.js";
|
|
10
|
+
import { ActionListLinkItemProps } from "./LinkItem.js";
|
|
10
11
|
import { ActionListDividerProps } from "./Divider.js";
|
|
11
12
|
import { ActionListDescriptionProps } from "./Description.js";
|
|
12
13
|
import { ActionListLeadingVisualProps, ActionListTrailingVisualProps, VisualProps } from "./Visuals.js";
|
|
13
|
-
import { ActionListLinkItemProps } from "./LinkItem.js";
|
|
14
14
|
//#region src/ActionList/index.d.ts
|
|
15
15
|
/**
|
|
16
16
|
* Collection of list-related components.
|
|
17
17
|
*/
|
|
18
|
-
declare const ActionList: (<As extends React.ElementType = "ul">(props: DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "ul" : As> & {
|
|
18
|
+
declare const ActionList: (<As extends React.ElementType = "ul">(props: DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "ul" : As>, "as"> & Omit<import("react").PropsWithChildren<{
|
|
19
19
|
variant?: "inset" | "horizontal-inset" | "full";
|
|
20
20
|
selectionVariant?: "single" | "radio" | "multiple";
|
|
21
21
|
showDividers?: boolean;
|
|
@@ -23,9 +23,7 @@ declare const ActionList: (<As extends React.ElementType = "ul">(props: Distribu
|
|
|
23
23
|
disableFocusZone?: boolean;
|
|
24
24
|
className?: string;
|
|
25
25
|
disableItemGap?: boolean;
|
|
26
|
-
} & {
|
|
27
|
-
children?: import("react").ReactNode | undefined;
|
|
28
|
-
}, "as"> & {
|
|
26
|
+
}>, "as"> & {
|
|
29
27
|
as?: As | undefined;
|
|
30
28
|
} & import("react").RefAttributes<unknown>) => React.ReactNode) & {
|
|
31
29
|
/** Context for the `ActionList` container. */ContainerContext: import("react").Context<{
|
|
@@ -45,7 +43,7 @@ declare const ActionList: (<As extends React.ElementType = "ul">(props: Distribu
|
|
|
45
43
|
selected?: boolean;
|
|
46
44
|
active?: boolean;
|
|
47
45
|
variant?: "default" | "danger";
|
|
48
|
-
size?: "medium" | "large";
|
|
46
|
+
size?: "small" | "medium" | "large";
|
|
49
47
|
disabled?: boolean;
|
|
50
48
|
role?: AriaRole;
|
|
51
49
|
id?: string;
|
|
@@ -89,18 +87,7 @@ declare const ActionList: (<As extends React.ElementType = "ul">(props: Distribu
|
|
|
89
87
|
displayName: string;
|
|
90
88
|
__SLOT__: symbol;
|
|
91
89
|
}; /** A `Item` that renders a full-size anchor inside ListItem */
|
|
92
|
-
LinkItem: WithSlotMarker<(<As extends React.ElementType = "a">(props: DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "a" : As> &
|
|
93
|
-
download?: string;
|
|
94
|
-
href?: string;
|
|
95
|
-
hrefLang?: string;
|
|
96
|
-
media?: string;
|
|
97
|
-
ping?: string;
|
|
98
|
-
rel?: string;
|
|
99
|
-
target?: string;
|
|
100
|
-
type?: string;
|
|
101
|
-
referrerPolicy?: React.AnchorHTMLAttributes<HTMLAnchorElement>["referrerPolicy"];
|
|
102
|
-
className?: string;
|
|
103
|
-
}, "as"> & {
|
|
90
|
+
LinkItem: WithSlotMarker<(<As extends React.ElementType = "a">(props: DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "a" : As>, "as"> & Omit<ActionListLinkItemProps, "as"> & {
|
|
104
91
|
as?: As | undefined;
|
|
105
92
|
} & {
|
|
106
93
|
_PrivateTooltipText?: string;
|
|
@@ -29,7 +29,7 @@ type ActionListItemProps<As extends React.ElementType = 'li'> = ExcludeSelectEve
|
|
|
29
29
|
* - `"danger"` - A destructive action `Item`.
|
|
30
30
|
*/
|
|
31
31
|
variant?: 'default' | 'danger';
|
|
32
|
-
size?: 'medium' | 'large';
|
|
32
|
+
size?: 'small' | 'medium' | 'large';
|
|
33
33
|
/**
|
|
34
34
|
* Items that are disabled can not be clicked, selected, or navigated through.
|
|
35
35
|
*/
|