@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/dist/DataTable/Table.js
CHANGED
|
@@ -57,7 +57,7 @@ const Table = /*#__PURE__*/ React.forwardRef(function Table(t0, ref) {
|
|
|
57
57
|
const t5 = t4;
|
|
58
58
|
let t6;
|
|
59
59
|
if ($[11] !== cellPadding || $[12] !== labelledby || $[13] !== ref || $[14] !== rest || $[15] !== t3 || $[16] !== t5) {
|
|
60
|
-
t6 =
|
|
60
|
+
t6 = /* @__PURE__ */ jsx("table", {
|
|
61
61
|
...rest,
|
|
62
62
|
"aria-labelledby": labelledby,
|
|
63
63
|
"data-cell-padding": cellPadding,
|
|
@@ -77,7 +77,7 @@ const Table = /*#__PURE__*/ React.forwardRef(function Table(t0, ref) {
|
|
|
77
77
|
} else t6 = $[17];
|
|
78
78
|
let t7;
|
|
79
79
|
if ($[18] !== labelledby || $[19] !== t6) {
|
|
80
|
-
t7 =
|
|
80
|
+
t7 = /* @__PURE__ */ jsx(ScrollableRegion, {
|
|
81
81
|
"aria-labelledby": labelledby,
|
|
82
82
|
className: t2,
|
|
83
83
|
children: t6
|
|
@@ -89,7 +89,7 @@ const Table = /*#__PURE__*/ React.forwardRef(function Table(t0, ref) {
|
|
|
89
89
|
const table = t7;
|
|
90
90
|
let t8;
|
|
91
91
|
if ($[21] !== inheritedGroup || $[22] !== table) {
|
|
92
|
-
t8 = inheritedGroup ?
|
|
92
|
+
t8 = inheritedGroup ? /* @__PURE__ */ jsx(TableGroupContext.Provider, {
|
|
93
93
|
value: void 0,
|
|
94
94
|
children: table
|
|
95
95
|
}) : table;
|
|
@@ -109,7 +109,7 @@ function TableHead(t0) {
|
|
|
109
109
|
} else t1 = $[0];
|
|
110
110
|
let t2;
|
|
111
111
|
if ($[1] !== children) {
|
|
112
|
-
t2 =
|
|
112
|
+
t2 = /* @__PURE__ */ jsx("thead", {
|
|
113
113
|
className: t1,
|
|
114
114
|
role: "rowgroup",
|
|
115
115
|
"data-component": "Table.Head",
|
|
@@ -130,7 +130,7 @@ function TableBody(t0) {
|
|
|
130
130
|
} else t1 = $[0];
|
|
131
131
|
let t2;
|
|
132
132
|
if ($[1] !== children) {
|
|
133
|
-
t2 =
|
|
133
|
+
t2 = /* @__PURE__ */ jsx("tbody", {
|
|
134
134
|
className: t1,
|
|
135
135
|
role: "rowgroup",
|
|
136
136
|
"data-component": "Table.Body",
|
|
@@ -164,7 +164,7 @@ function TableHeader(t0) {
|
|
|
164
164
|
} else t1 = $[4];
|
|
165
165
|
let t2;
|
|
166
166
|
if ($[5] !== align || $[6] !== children || $[7] !== rest) {
|
|
167
|
-
t2 =
|
|
167
|
+
t2 = /* @__PURE__ */ jsx("th", {
|
|
168
168
|
"data-component": "Table.Header",
|
|
169
169
|
...rest,
|
|
170
170
|
className: t1,
|
|
@@ -219,19 +219,19 @@ function TableSortHeader(t0) {
|
|
|
219
219
|
} else t2 = $[8];
|
|
220
220
|
let t3;
|
|
221
221
|
if ($[9] !== direction) {
|
|
222
|
-
t3 = direction === SortDirection.NONE || direction === SortDirection.ASC ?
|
|
222
|
+
t3 = direction === SortDirection.NONE || direction === SortDirection.ASC ? /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx(SortAscIcon, { className: clsx("TableSortIcon", "TableSortIcon--ascending", Table_module_css_default.TableSortIcon, Table_module_css_default["TableSortIcon--ascending"]) }) }) : null;
|
|
223
223
|
$[9] = direction;
|
|
224
224
|
$[10] = t3;
|
|
225
225
|
} else t3 = $[10];
|
|
226
226
|
let t4;
|
|
227
227
|
if ($[11] !== direction) {
|
|
228
|
-
t4 = direction === SortDirection.DESC ?
|
|
228
|
+
t4 = direction === SortDirection.DESC ? /* @__PURE__ */ jsx(SortDescIcon, { className: clsx("TableSortIcon", "TableSortIcon--descending", Table_module_css_default.TableSortIcon, Table_module_css_default["TableSortIcon--descending"]) }) : null;
|
|
229
229
|
$[11] = direction;
|
|
230
230
|
$[12] = t4;
|
|
231
231
|
} else t4 = $[12];
|
|
232
232
|
let t5;
|
|
233
233
|
if ($[13] !== children || $[14] !== sortAction || $[15] !== t2 || $[16] !== t3 || $[17] !== t4) {
|
|
234
|
-
t5 =
|
|
234
|
+
t5 = /* @__PURE__ */ jsxs(Button, {
|
|
235
235
|
type: "button",
|
|
236
236
|
className: t1,
|
|
237
237
|
"data-component": "Table.SortHeader.Button",
|
|
@@ -252,7 +252,7 @@ function TableSortHeader(t0) {
|
|
|
252
252
|
} else t5 = $[18];
|
|
253
253
|
let t6;
|
|
254
254
|
if ($[19] !== align || $[20] !== ariaSort || $[21] !== rest || $[22] !== t5) {
|
|
255
|
-
t6 =
|
|
255
|
+
t6 = /* @__PURE__ */ jsx(TableHeader, {
|
|
256
256
|
...rest,
|
|
257
257
|
"aria-sort": ariaSort,
|
|
258
258
|
align,
|
|
@@ -287,7 +287,7 @@ function TableRow(t0) {
|
|
|
287
287
|
} else t1 = $[3];
|
|
288
288
|
let t2;
|
|
289
289
|
if ($[4] !== children || $[5] !== rest) {
|
|
290
|
-
t2 =
|
|
290
|
+
t2 = /* @__PURE__ */ jsx("tr", {
|
|
291
291
|
...rest,
|
|
292
292
|
className: t1,
|
|
293
293
|
role: "row",
|
|
@@ -344,7 +344,7 @@ function TableCell(t0) {
|
|
|
344
344
|
} else t2 = $[11];
|
|
345
345
|
let t3;
|
|
346
346
|
if ($[12] !== BaseComponent || $[13] !== align || $[14] !== children || $[15] !== resolvedHeaders || $[16] !== rest || $[17] !== role || $[18] !== scope || $[19] !== t2) {
|
|
347
|
-
t3 =
|
|
347
|
+
t3 = /* @__PURE__ */ jsx(BaseComponent, {
|
|
348
348
|
...rest,
|
|
349
349
|
className: t2,
|
|
350
350
|
scope,
|
|
@@ -371,7 +371,7 @@ function TableCellPlaceholder(t0) {
|
|
|
371
371
|
const { children } = t0;
|
|
372
372
|
let t1;
|
|
373
373
|
if ($[0] !== children) {
|
|
374
|
-
t1 =
|
|
374
|
+
t1 = /* @__PURE__ */ jsx(Text_default, {
|
|
375
375
|
className: Table_module_css_default.PlaceholderText,
|
|
376
376
|
"data-component": "Table.CellPlaceholder",
|
|
377
377
|
children
|
|
@@ -409,7 +409,7 @@ function TableContainer(t0) {
|
|
|
409
409
|
} else t1 = $[6];
|
|
410
410
|
let t2;
|
|
411
411
|
if ($[7] !== Component || $[8] !== children || $[9] !== rest || $[10] !== t1) {
|
|
412
|
-
t2 =
|
|
412
|
+
t2 = /* @__PURE__ */ jsx(Component, {
|
|
413
413
|
...rest,
|
|
414
414
|
className: t1,
|
|
415
415
|
"data-component": "Table.Container",
|
|
@@ -434,7 +434,7 @@ const TableTitle = /*#__PURE__*/ React.forwardRef(function TableTitle(t0, ref) {
|
|
|
434
434
|
} else t2 = $[0];
|
|
435
435
|
let t3;
|
|
436
436
|
if ($[1] !== BaseComponent || $[2] !== children || $[3] !== id || $[4] !== ref) {
|
|
437
|
-
t3 =
|
|
437
|
+
t3 = /* @__PURE__ */ jsx(BaseComponent, {
|
|
438
438
|
className: t2,
|
|
439
439
|
id,
|
|
440
440
|
ref,
|
|
@@ -460,7 +460,7 @@ function TableSubtitle(t0) {
|
|
|
460
460
|
} else t2 = $[0];
|
|
461
461
|
let t3;
|
|
462
462
|
if ($[1] !== BaseComponent || $[2] !== children || $[3] !== id) {
|
|
463
|
-
t3 =
|
|
463
|
+
t3 = /* @__PURE__ */ jsx(BaseComponent, {
|
|
464
464
|
className: t2,
|
|
465
465
|
id,
|
|
466
466
|
"data-component": "Table.Subtitle",
|
|
@@ -477,7 +477,7 @@ function TableDivider() {
|
|
|
477
477
|
const $ = c(1);
|
|
478
478
|
let t0;
|
|
479
479
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
480
|
-
t0 =
|
|
480
|
+
t0 = /* @__PURE__ */ jsx("div", {
|
|
481
481
|
className: clsx("TableDivider", Table_module_css_default.TableDivider),
|
|
482
482
|
role: "presentation",
|
|
483
483
|
"data-component": "Table.Divider"
|
|
@@ -496,7 +496,7 @@ function TableActions(t0) {
|
|
|
496
496
|
} else t1 = $[0];
|
|
497
497
|
let t2;
|
|
498
498
|
if ($[1] !== children) {
|
|
499
|
-
t2 =
|
|
499
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
500
500
|
className: t1,
|
|
501
501
|
"data-component": "Table.Actions",
|
|
502
502
|
children
|
|
@@ -535,7 +535,7 @@ function TableSkeleton(t0) {
|
|
|
535
535
|
} else t2 = $[6];
|
|
536
536
|
let t3;
|
|
537
537
|
if ($[7] !== t2) {
|
|
538
|
-
t3 =
|
|
538
|
+
t3 = /* @__PURE__ */ jsx(TableHead, { children: /* @__PURE__ */ jsx(TableRow, { children: t2 }) });
|
|
539
539
|
$[7] = t2;
|
|
540
540
|
$[8] = t3;
|
|
541
541
|
} else t3 = $[8];
|
|
@@ -547,9 +547,9 @@ function TableSkeleton(t0) {
|
|
|
547
547
|
} else t4 = $[10];
|
|
548
548
|
let t5;
|
|
549
549
|
if ($[11] !== rows || $[12] !== t4) {
|
|
550
|
-
t5 =
|
|
550
|
+
t5 = /* @__PURE__ */ jsx(TableBody, { children: /* @__PURE__ */ jsx(TableRow, { children: t4.map((_, i_0) => /* @__PURE__ */ jsxs(TableCell, {
|
|
551
551
|
className: clsx("TableCellSkeleton", Table_module_css_default.TableCellSkeleton),
|
|
552
|
-
children: [
|
|
552
|
+
children: [/* @__PURE__ */ jsx(VisuallyHidden, { children: "Loading" }), /* @__PURE__ */ jsx("div", {
|
|
553
553
|
className: clsx("TableCellSkeletonItems", Table_module_css_default.TableCellSkeletonItems),
|
|
554
554
|
children: Array.from({ length: rows }).map(_temp2)
|
|
555
555
|
})]
|
|
@@ -560,7 +560,7 @@ function TableSkeleton(t0) {
|
|
|
560
560
|
} else t5 = $[13];
|
|
561
561
|
let t6;
|
|
562
562
|
if ($[14] !== cellPadding || $[15] !== gridTemplateColumns || $[16] !== rest || $[17] !== t3 || $[18] !== t5) {
|
|
563
|
-
t6 =
|
|
563
|
+
t6 = /* @__PURE__ */ jsxs(Table, {
|
|
564
564
|
...rest,
|
|
565
565
|
cellPadding,
|
|
566
566
|
gridTemplateColumns,
|
|
@@ -576,15 +576,13 @@ function TableSkeleton(t0) {
|
|
|
576
576
|
return t6;
|
|
577
577
|
}
|
|
578
578
|
function _temp2(__0, i_1) {
|
|
579
|
-
return
|
|
579
|
+
return /* @__PURE__ */ jsx("div", {
|
|
580
580
|
className: clsx("TableCellSkeletonItem", Table_module_css_default.TableCellSkeletonItem),
|
|
581
|
-
children:
|
|
581
|
+
children: /* @__PURE__ */ jsx(SkeletonText, {})
|
|
582
582
|
}, i_1);
|
|
583
583
|
}
|
|
584
|
-
_temp2.displayName = "_temp2";
|
|
585
584
|
function _temp(column, i) {
|
|
586
|
-
return
|
|
585
|
+
return /* @__PURE__ */ jsx(TableHeader, { children: typeof column.header === "string" ? column.header : column.header() }, i);
|
|
587
586
|
}
|
|
588
|
-
_temp.displayName = "_temp";
|
|
589
587
|
//#endregion
|
|
590
588
|
export { Table, TableActions, TableBody, TableCell, TableCellPlaceholder, TableContainer, TableDivider, TableHead, TableHeader, TableRow, TableSkeleton, TableSortHeader, TableSubtitle, TableTitle };
|
|
@@ -42,12 +42,12 @@ function TableGroup(t0) {
|
|
|
42
42
|
}
|
|
43
43
|
let t6;
|
|
44
44
|
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
45
|
-
t6 =
|
|
45
|
+
t6 = /* @__PURE__ */ jsx(VisuallyHidden, { children: "," });
|
|
46
46
|
$[7] = t6;
|
|
47
47
|
} else t6 = $[7];
|
|
48
48
|
let t7;
|
|
49
49
|
if ($[8] !== label) {
|
|
50
|
-
t7 =
|
|
50
|
+
t7 = /* @__PURE__ */ jsxs("span", {
|
|
51
51
|
className: t5,
|
|
52
52
|
children: [label, t6]
|
|
53
53
|
});
|
|
@@ -62,13 +62,13 @@ function TableGroup(t0) {
|
|
|
62
62
|
const t9 = rowCount === 1 ? " row" : " rows";
|
|
63
63
|
let t10;
|
|
64
64
|
if ($[11] !== t9) {
|
|
65
|
-
t10 =
|
|
65
|
+
t10 = /* @__PURE__ */ jsx(VisuallyHidden, { children: t9 });
|
|
66
66
|
$[11] = t9;
|
|
67
67
|
$[12] = t10;
|
|
68
68
|
} else t10 = $[12];
|
|
69
69
|
let t11;
|
|
70
70
|
if ($[13] !== rowCount || $[14] !== t10) {
|
|
71
|
-
t11 =
|
|
71
|
+
t11 = /* @__PURE__ */ jsxs("span", {
|
|
72
72
|
className: t8,
|
|
73
73
|
children: [rowCount, t10]
|
|
74
74
|
});
|
|
@@ -78,7 +78,7 @@ function TableGroup(t0) {
|
|
|
78
78
|
} else t11 = $[15];
|
|
79
79
|
let t12;
|
|
80
80
|
if ($[16] !== t11 || $[17] !== t7) {
|
|
81
|
-
t12 =
|
|
81
|
+
t12 = /* @__PURE__ */ jsxs("span", {
|
|
82
82
|
className: t4,
|
|
83
83
|
children: [t7, t11]
|
|
84
84
|
});
|
|
@@ -88,7 +88,7 @@ function TableGroup(t0) {
|
|
|
88
88
|
} else t12 = $[18];
|
|
89
89
|
let t13;
|
|
90
90
|
if ($[19] !== ariaLabel || $[20] !== colSpan || $[21] !== headerId || $[22] !== t12) {
|
|
91
|
-
t13 =
|
|
91
|
+
t13 = /* @__PURE__ */ jsx(TableRow, { children: /* @__PURE__ */ jsx("th", {
|
|
92
92
|
id: headerId,
|
|
93
93
|
className: t3,
|
|
94
94
|
scope: "colgroup",
|
|
@@ -106,7 +106,7 @@ function TableGroup(t0) {
|
|
|
106
106
|
} else t13 = $[23];
|
|
107
107
|
let t14;
|
|
108
108
|
if ($[24] !== id || $[25] !== t13 || $[26] !== t2) {
|
|
109
|
-
t14 =
|
|
109
|
+
t14 = /* @__PURE__ */ jsx("tbody", {
|
|
110
110
|
className: t2,
|
|
111
111
|
role: "rowgroup",
|
|
112
112
|
"data-component": "Table.Group",
|
|
@@ -125,7 +125,7 @@ function TableGroup(t0) {
|
|
|
125
125
|
} else t15 = $[28];
|
|
126
126
|
let t16;
|
|
127
127
|
if ($[29] !== children || $[30] !== contextValue) {
|
|
128
|
-
t16 =
|
|
128
|
+
t16 = /* @__PURE__ */ jsx(TableGroupContext.Provider, {
|
|
129
129
|
value: contextValue,
|
|
130
130
|
children
|
|
131
131
|
});
|
|
@@ -135,7 +135,7 @@ function TableGroup(t0) {
|
|
|
135
135
|
} else t16 = $[31];
|
|
136
136
|
let t17;
|
|
137
137
|
if ($[32] !== id || $[33] !== t16) {
|
|
138
|
-
t17 =
|
|
138
|
+
t17 = /* @__PURE__ */ jsx("tbody", {
|
|
139
139
|
className: t15,
|
|
140
140
|
role: "rowgroup",
|
|
141
141
|
"data-component": "Table.Group.Body",
|
|
@@ -148,7 +148,7 @@ function TableGroup(t0) {
|
|
|
148
148
|
} else t17 = $[34];
|
|
149
149
|
let t18;
|
|
150
150
|
if ($[35] !== t14 || $[36] !== t17) {
|
|
151
|
-
t18 =
|
|
151
|
+
t18 = /* @__PURE__ */ jsxs(Fragment$1, { children: [t14, t17] });
|
|
152
152
|
$[35] = t14;
|
|
153
153
|
$[36] = t17;
|
|
154
154
|
$[37] = t18;
|
package/dist/Details/Details.js
CHANGED
|
@@ -54,7 +54,7 @@ const Root = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
|
|
|
54
54
|
const t4 = (_dataComponent = dataComponent) !== null && _dataComponent !== void 0 ? _dataComponent : "Details";
|
|
55
55
|
let t5;
|
|
56
56
|
if ($[9] !== children || $[10] !== ref || $[11] !== rest || $[12] !== t3 || $[13] !== t4) {
|
|
57
|
-
t5 =
|
|
57
|
+
t5 = /* @__PURE__ */ jsx("details", {
|
|
58
58
|
className: t3,
|
|
59
59
|
...rest,
|
|
60
60
|
ref,
|
|
@@ -92,7 +92,7 @@ function Summary(t0) {
|
|
|
92
92
|
const t1 = Component === "summary" ? null : "summary";
|
|
93
93
|
let t2;
|
|
94
94
|
if ($[4] !== Component || $[5] !== children || $[6] !== props || $[7] !== t1) {
|
|
95
|
-
t2 =
|
|
95
|
+
t2 = /* @__PURE__ */ jsx(Component, {
|
|
96
96
|
as: t1,
|
|
97
97
|
...props,
|
|
98
98
|
"data-component": "Details.Summary",
|
package/dist/Dialog/Dialog.js
CHANGED
|
@@ -43,36 +43,34 @@ const DefaultHeader = ({ dialogLabelId, title, subtitle, dialogDescriptionId, on
|
|
|
43
43
|
onClose("escape");
|
|
44
44
|
}
|
|
45
45
|
}, [onClose]);
|
|
46
|
-
return
|
|
46
|
+
return /* @__PURE__ */ jsx(Dialog.Header, { children: /* @__PURE__ */ jsxs("div", {
|
|
47
47
|
className: Dialog_module_css_default.HeaderInner,
|
|
48
|
-
children: [
|
|
48
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
49
49
|
className: Dialog_module_css_default.HeaderContent,
|
|
50
|
-
children: [
|
|
50
|
+
children: [/* @__PURE__ */ jsx(Dialog.Title, {
|
|
51
51
|
id: dialogLabelId,
|
|
52
52
|
children: title !== null && title !== void 0 ? title : "Dialog"
|
|
53
|
-
}), subtitle &&
|
|
53
|
+
}), subtitle && /* @__PURE__ */ jsx(Dialog.Subtitle, {
|
|
54
54
|
id: dialogDescriptionId,
|
|
55
55
|
children: subtitle
|
|
56
56
|
})]
|
|
57
|
-
}),
|
|
57
|
+
}), /* @__PURE__ */ jsx(Dialog.CloseButton, {
|
|
58
58
|
onClose: onCloseClick,
|
|
59
59
|
onKeyDown: onCloseKeyDown
|
|
60
60
|
})]
|
|
61
61
|
}) });
|
|
62
62
|
};
|
|
63
|
-
DefaultHeader.displayName = "DefaultHeader";
|
|
64
63
|
const DefaultBody = ({ children }) => {
|
|
65
|
-
return
|
|
64
|
+
return /* @__PURE__ */ jsx(Dialog.Body, { children });
|
|
66
65
|
};
|
|
67
|
-
DefaultBody.displayName = "DefaultBody";
|
|
68
66
|
const DefaultFooter = ({ footerButtons }) => {
|
|
69
67
|
const { containerRef: footerRef } = useFocusZone({
|
|
70
68
|
bindKeys: FocusKeys.ArrowHorizontal | FocusKeys.Tab,
|
|
71
69
|
focusInStrategy: "closest"
|
|
72
70
|
});
|
|
73
|
-
return footerButtons ?
|
|
71
|
+
return footerButtons ? /* @__PURE__ */ jsx(Dialog.Footer, {
|
|
74
72
|
ref: footerRef,
|
|
75
|
-
children:
|
|
73
|
+
children: /* @__PURE__ */ jsx(Dialog.Buttons, { buttons: footerButtons })
|
|
76
74
|
}) : null;
|
|
77
75
|
};
|
|
78
76
|
const defaultPosition = {
|
|
@@ -156,9 +154,9 @@ const _Dialog = /*#__PURE__*/ React.forwardRef((props, forwardedRef) => {
|
|
|
156
154
|
return [`data-position-${key}`, value];
|
|
157
155
|
}));
|
|
158
156
|
const dataComponent = dataComponentProp !== null && dataComponentProp !== void 0 ? dataComponentProp : "Dialog";
|
|
159
|
-
return
|
|
157
|
+
return /* @__PURE__ */ jsx(DialogContext.Provider, {
|
|
160
158
|
value: DIALOG_CONTEXT_VALUE,
|
|
161
|
-
children:
|
|
159
|
+
children: /* @__PURE__ */ jsx(Portal_default, { children: /* @__PURE__ */ jsx("div", {
|
|
162
160
|
ref: backdropRef,
|
|
163
161
|
className: Dialog_module_css_default.Backdrop,
|
|
164
162
|
...positionDataAttributes,
|
|
@@ -167,7 +165,7 @@ const _Dialog = /*#__PURE__*/ React.forwardRef((props, forwardedRef) => {
|
|
|
167
165
|
onMouseDown: (e) => {
|
|
168
166
|
setLastMouseDownIsBackdrop(e.target === e.currentTarget);
|
|
169
167
|
},
|
|
170
|
-
children:
|
|
168
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
171
169
|
ref: mergedDialogRef,
|
|
172
170
|
role,
|
|
173
171
|
"aria-labelledby": dialogLabelId,
|
|
@@ -187,7 +185,7 @@ const _Dialog = /*#__PURE__*/ React.forwardRef((props, forwardedRef) => {
|
|
|
187
185
|
"data-component": dataComponent,
|
|
188
186
|
children: [
|
|
189
187
|
header,
|
|
190
|
-
|
|
188
|
+
/* @__PURE__ */ jsx(ScrollableRegion, {
|
|
191
189
|
"aria-labelledby": dialogLabelId,
|
|
192
190
|
className: Dialog_module_css_default.DialogOverflowWrapper,
|
|
193
191
|
children: body
|
|
@@ -200,7 +198,7 @@ const _Dialog = /*#__PURE__*/ React.forwardRef((props, forwardedRef) => {
|
|
|
200
198
|
});
|
|
201
199
|
_Dialog.displayName = "Dialog";
|
|
202
200
|
const Header = /*#__PURE__*/ React.forwardRef(function Header({ className, ...rest }, forwardRef) {
|
|
203
|
-
return
|
|
201
|
+
return /* @__PURE__ */ jsx("div", {
|
|
204
202
|
ref: forwardRef,
|
|
205
203
|
className: clsx(className, Dialog_module_css_default.Header),
|
|
206
204
|
...rest,
|
|
@@ -209,7 +207,7 @@ const Header = /*#__PURE__*/ React.forwardRef(function Header({ className, ...re
|
|
|
209
207
|
});
|
|
210
208
|
Header.displayName = "Dialog.Header";
|
|
211
209
|
const Title = /*#__PURE__*/ React.forwardRef(function Title({ className, ...rest }, forwardRef) {
|
|
212
|
-
return
|
|
210
|
+
return /* @__PURE__ */ jsx("h1", {
|
|
213
211
|
ref: forwardRef,
|
|
214
212
|
className: clsx(className, Dialog_module_css_default.Title),
|
|
215
213
|
...rest,
|
|
@@ -218,7 +216,7 @@ const Title = /*#__PURE__*/ React.forwardRef(function Title({ className, ...rest
|
|
|
218
216
|
});
|
|
219
217
|
Title.displayName = "Dialog.Title";
|
|
220
218
|
const Subtitle = /*#__PURE__*/ React.forwardRef(function Subtitle({ className, ...rest }, forwardRef) {
|
|
221
|
-
return
|
|
219
|
+
return /* @__PURE__ */ jsx("h2", {
|
|
222
220
|
ref: forwardRef,
|
|
223
221
|
className: clsx(className, Dialog_module_css_default.Subtitle),
|
|
224
222
|
...rest,
|
|
@@ -227,7 +225,7 @@ const Subtitle = /*#__PURE__*/ React.forwardRef(function Subtitle({ className, .
|
|
|
227
225
|
});
|
|
228
226
|
Subtitle.displayName = "Dialog.Subtitle";
|
|
229
227
|
const Body = /*#__PURE__*/ React.forwardRef(function Body({ className, ...rest }, forwardRef) {
|
|
230
|
-
return
|
|
228
|
+
return /* @__PURE__ */ jsx("div", {
|
|
231
229
|
ref: forwardRef,
|
|
232
230
|
className: clsx(className, Dialog_module_css_default.Body),
|
|
233
231
|
...rest,
|
|
@@ -236,7 +234,7 @@ const Body = /*#__PURE__*/ React.forwardRef(function Body({ className, ...rest }
|
|
|
236
234
|
});
|
|
237
235
|
Body.displayName = "Dialog.Body";
|
|
238
236
|
const Footer = /*#__PURE__*/ React.forwardRef(function Footer({ className, ...rest }, forwardRef) {
|
|
239
|
-
return
|
|
237
|
+
return /* @__PURE__ */ jsx("div", {
|
|
240
238
|
ref: forwardRef,
|
|
241
239
|
className: clsx(className, Dialog_module_css_default.Footer),
|
|
242
240
|
...rest,
|
|
@@ -261,9 +259,9 @@ const Buttons = ({ buttons }) => {
|
|
|
261
259
|
(_readRef$current = readRef.current) === null || _readRef$current === void 0 || _readRef$current.focus();
|
|
262
260
|
} else setHasRendered(hasRendered + 1);
|
|
263
261
|
}, [readRef, hasRendered]);
|
|
264
|
-
return
|
|
262
|
+
return /* @__PURE__ */ jsx(Fragment$1, { children: buttons.map((dialogButtonProps, index) => {
|
|
265
263
|
const { content, buttonType = "default", autoFocus = false, ...buttonProps } = dialogButtonProps;
|
|
266
|
-
return
|
|
264
|
+
return /* @__PURE__ */ jsx(ButtonComponent, {
|
|
267
265
|
"data-component": "Dialog.FooterButton",
|
|
268
266
|
...buttonProps,
|
|
269
267
|
variant: buttonType === "normal" ? "default" : buttonType,
|
|
@@ -273,7 +271,7 @@ const Buttons = ({ buttons }) => {
|
|
|
273
271
|
}) });
|
|
274
272
|
};
|
|
275
273
|
const CloseButton = ({ onClose, onKeyDown }) => {
|
|
276
|
-
return
|
|
274
|
+
return /* @__PURE__ */ jsx(IconButton, {
|
|
277
275
|
icon: XIcon,
|
|
278
276
|
"aria-label": "Close",
|
|
279
277
|
onClick: onClose,
|
|
@@ -282,7 +280,6 @@ const CloseButton = ({ onClose, onKeyDown }) => {
|
|
|
282
280
|
"data-component": "Dialog.CloseButton"
|
|
283
281
|
});
|
|
284
282
|
};
|
|
285
|
-
CloseButton.displayName = "CloseButton";
|
|
286
283
|
/**
|
|
287
284
|
* A dialog is a type of overlay that can be used for confirming actions, asking
|
|
288
285
|
* for disambiguation, and presenting small forms. They generally allow the user
|
|
@@ -8,7 +8,8 @@ const DefaultFeatureFlags = FeatureFlagScope.create({
|
|
|
8
8
|
primer_react_action_list_group_heading_trailing_action: false,
|
|
9
9
|
primer_react_action_list_item_gap: false,
|
|
10
10
|
primer_react_timeline_list_semantics: false,
|
|
11
|
-
primer_react_merged_forwarded_refs: false
|
|
11
|
+
primer_react_merged_forwarded_refs: false,
|
|
12
|
+
primer_react_button_loading_disabled_styles: false
|
|
12
13
|
});
|
|
13
14
|
//#endregion
|
|
14
15
|
export { DefaultFeatureFlags };
|
|
@@ -208,7 +208,7 @@ function FilteredActionList({ loading = false, placeholderText, filterValue: ext
|
|
|
208
208
|
if (onSelectAllChange) onSelectAllChange(e.target.checked);
|
|
209
209
|
}, [onSelectAllChange]);
|
|
210
210
|
function getBodyContent() {
|
|
211
|
-
if (loading && readScrollContainerRef.current && loadingType.appearsInBody) return
|
|
211
|
+
if (loading && readScrollContainerRef.current && loadingType.appearsInBody) return /* @__PURE__ */ jsx(FilteredActionListBodyLoader, {
|
|
212
212
|
loadingType,
|
|
213
213
|
height: readScrollContainerRef.current.clientHeight
|
|
214
214
|
});
|
|
@@ -218,13 +218,13 @@ function FilteredActionList({ loading = false, placeholderText, filterValue: ext
|
|
|
218
218
|
if (groupMetadata !== null && groupMetadata !== void 0 && groupMetadata.length) return groupMetadata.map((group, index) => {
|
|
219
219
|
var _group$header, _group$header2;
|
|
220
220
|
if (index === firstGroupIndex && getItemListForEachGroup(group.groupId).length === 0) firstGroupIndex++;
|
|
221
|
-
return
|
|
221
|
+
return /* @__PURE__ */ jsxs(ActionList.Group, { children: [/* @__PURE__ */ jsx(ActionList.GroupHeading, {
|
|
222
222
|
variant: (_group$header = group.header) !== null && _group$header !== void 0 && _group$header.variant ? group.header.variant : void 0,
|
|
223
223
|
children: (_group$header2 = group.header) !== null && _group$header2 !== void 0 && _group$header2.title ? group.header.title : `Group ${group.groupId}`
|
|
224
224
|
}), getItemListForEachGroup(group.groupId).map(({ key: itemKey, ...item }, itemIndex) => {
|
|
225
225
|
var _ref2, _item$id2;
|
|
226
226
|
const key = (_ref2 = itemKey !== null && itemKey !== void 0 ? itemKey : (_item$id2 = item.id) === null || _item$id2 === void 0 ? void 0 : _item$id2.toString()) !== null && _ref2 !== void 0 ? _ref2 : itemIndex.toString();
|
|
227
|
-
return
|
|
227
|
+
return /* @__PURE__ */ jsx(MappedActionListItem, {
|
|
228
228
|
className: clsx(FilteredActionList_module_css_default.ActionListItem, "className" in item ? item.className : void 0),
|
|
229
229
|
"data-input-focused": isInputFocused ? "" : void 0,
|
|
230
230
|
"data-first-child": index === firstGroupIndex && itemIndex === 0 ? "" : void 0,
|
|
@@ -236,7 +236,7 @@ function FilteredActionList({ loading = false, placeholderText, filterValue: ext
|
|
|
236
236
|
if (isVirtualized && virtualizedItemEntries) return virtualizedItemEntries.map(({ virtualItem, item: { key: itemKey, ...item }, index }) => {
|
|
237
237
|
var _ref3, _item$id3;
|
|
238
238
|
const key = (_ref3 = itemKey !== null && itemKey !== void 0 ? itemKey : (_item$id3 = item.id) === null || _item$id3 === void 0 ? void 0 : _item$id3.toString()) !== null && _ref3 !== void 0 ? _ref3 : index.toString();
|
|
239
|
-
return
|
|
239
|
+
return /* @__PURE__ */ jsx(MappedActionListItem, {
|
|
240
240
|
className: clsx(FilteredActionList_module_css_default.ActionListItem, "className" in item ? item.className : void 0),
|
|
241
241
|
"data-input-focused": isInputFocused ? "" : void 0,
|
|
242
242
|
"data-first-child": index === 0 ? "" : void 0,
|
|
@@ -258,7 +258,7 @@ function FilteredActionList({ loading = false, placeholderText, filterValue: ext
|
|
|
258
258
|
return items.map(({ key: itemKey, ...item }, index) => {
|
|
259
259
|
var _ref4, _item$id4;
|
|
260
260
|
const key = (_ref4 = itemKey !== null && itemKey !== void 0 ? itemKey : (_item$id4 = item.id) === null || _item$id4 === void 0 ? void 0 : _item$id4.toString()) !== null && _ref4 !== void 0 ? _ref4 : index.toString();
|
|
261
|
-
return
|
|
261
|
+
return /* @__PURE__ */ jsx(MappedActionListItem, {
|
|
262
262
|
className: clsx(FilteredActionList_module_css_default.ActionListItem, "className" in item ? item.className : void 0),
|
|
263
263
|
"data-input-focused": isInputFocused ? "" : void 0,
|
|
264
264
|
"data-first-child": index === 0 ? "" : void 0,
|
|
@@ -267,7 +267,7 @@ function FilteredActionList({ loading = false, placeholderText, filterValue: ext
|
|
|
267
267
|
}, key);
|
|
268
268
|
});
|
|
269
269
|
};
|
|
270
|
-
const actionListContent =
|
|
270
|
+
const actionListContent = /* @__PURE__ */ jsx(ActionList, {
|
|
271
271
|
ref: usingRovingTabindex ? listRef : listContainerRefCallback,
|
|
272
272
|
showDividers: showItemDividers,
|
|
273
273
|
selectionVariant,
|
|
@@ -283,7 +283,7 @@ function FilteredActionList({ loading = false, placeholderText, filterValue: ext
|
|
|
283
283
|
} : actionListProps === null || actionListProps === void 0 ? void 0 : actionListProps.style,
|
|
284
284
|
children: renderListItems()
|
|
285
285
|
});
|
|
286
|
-
if (usingRovingTabindex) return
|
|
286
|
+
if (usingRovingTabindex) return /* @__PURE__ */ jsx(ActionListContainerContext.Provider, {
|
|
287
287
|
value: {
|
|
288
288
|
container: "FilteredActionList",
|
|
289
289
|
listRole: "listbox",
|
|
@@ -295,13 +295,13 @@ function FilteredActionList({ loading = false, placeholderText, filterValue: ext
|
|
|
295
295
|
});
|
|
296
296
|
else return actionListContent;
|
|
297
297
|
}
|
|
298
|
-
return
|
|
298
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
299
299
|
ref: inputAndListContainerRef,
|
|
300
300
|
className: clsx(className, FilteredActionList_module_css_default.Root),
|
|
301
301
|
"data-testid": "filtered-action-list",
|
|
302
302
|
"data-component": "FilteredActionList",
|
|
303
303
|
children: [
|
|
304
|
-
|
|
304
|
+
/* @__PURE__ */ jsx(FilteredActionListInput, {
|
|
305
305
|
inputRef: appliedInputRef,
|
|
306
306
|
onInputFocus,
|
|
307
307
|
value: filterValue,
|
|
@@ -315,28 +315,28 @@ function FilteredActionList({ loading = false, placeholderText, filterValue: ext
|
|
|
315
315
|
fullScreenOnNarrow,
|
|
316
316
|
...textInputProps
|
|
317
317
|
}),
|
|
318
|
-
|
|
318
|
+
/* @__PURE__ */ jsx(VisuallyHidden, {
|
|
319
319
|
id: inputDescriptionTextId,
|
|
320
320
|
children: "Items will be filtered as you type"
|
|
321
321
|
}),
|
|
322
|
-
onSelectAllChange !== void 0 &&
|
|
322
|
+
onSelectAllChange !== void 0 && /* @__PURE__ */ jsxs("div", {
|
|
323
323
|
className: FilteredActionList_module_css_default.SelectAllContainer,
|
|
324
324
|
"data-component": "FilteredActionList.SelectAll",
|
|
325
|
-
children: [
|
|
325
|
+
children: [/* @__PURE__ */ jsx(Checkbox, {
|
|
326
326
|
id: "select-all-checkbox",
|
|
327
327
|
className: FilteredActionList_module_css_default.SelectAllCheckbox,
|
|
328
328
|
checked: selectAllChecked,
|
|
329
329
|
indeterminate: selectAllIndeterminate,
|
|
330
330
|
onChange: handleSelectAllChange,
|
|
331
331
|
"data-component": "FilteredActionList.SelectAllCheckbox"
|
|
332
|
-
}),
|
|
332
|
+
}), /* @__PURE__ */ jsx("label", {
|
|
333
333
|
className: FilteredActionList_module_css_default.SelectAllLabel,
|
|
334
334
|
htmlFor: "select-all-checkbox",
|
|
335
335
|
"data-component": "FilteredActionList.SelectAllLabel",
|
|
336
336
|
children: selectAllLabelText
|
|
337
337
|
})]
|
|
338
338
|
}),
|
|
339
|
-
|
|
339
|
+
/* @__PURE__ */ jsx("div", {
|
|
340
340
|
ref: appliedScrollContainerRef,
|
|
341
341
|
className: FilteredActionList_module_css_default.Container,
|
|
342
342
|
children: getBodyContent()
|
|
@@ -344,11 +344,10 @@ function FilteredActionList({ loading = false, placeholderText, filterValue: ext
|
|
|
344
344
|
]
|
|
345
345
|
});
|
|
346
346
|
}
|
|
347
|
-
FilteredActionList.displayName = "FilteredActionList";
|
|
348
347
|
const MappedActionListItem = /*#__PURE__*/ forwardRef((item, ref) => {
|
|
349
348
|
if (typeof item.renderItem === "function") return item.renderItem(item);
|
|
350
349
|
const { id, description, descriptionVariant, text, trailingVisual: TrailingVisual, leadingVisual: LeadingVisual, trailingText, trailingIcon: TrailingIcon, onAction, children, ...rest } = item;
|
|
351
|
-
return
|
|
350
|
+
return /* @__PURE__ */ jsxs(ActionList.Item, {
|
|
352
351
|
role: "option",
|
|
353
352
|
onSelect: (e) => {
|
|
354
353
|
if (typeof onAction === "function") onAction(item, e);
|
|
@@ -357,14 +356,14 @@ const MappedActionListItem = /*#__PURE__*/ forwardRef((item, ref) => {
|
|
|
357
356
|
ref,
|
|
358
357
|
...rest,
|
|
359
358
|
children: [
|
|
360
|
-
LeadingVisual ?
|
|
359
|
+
LeadingVisual ? /* @__PURE__ */ jsx(ActionList.LeadingVisual, { children: /* @__PURE__ */ jsx(LeadingVisual, {}) }) : null,
|
|
361
360
|
children,
|
|
362
361
|
text,
|
|
363
|
-
description ?
|
|
362
|
+
description ? /* @__PURE__ */ jsx(ActionList.Description, {
|
|
364
363
|
variant: descriptionVariant,
|
|
365
364
|
children: description
|
|
366
365
|
}) : null,
|
|
367
|
-
TrailingVisual ?
|
|
366
|
+
TrailingVisual ? /* @__PURE__ */ jsx(ActionList.TrailingVisual, { children: typeof TrailingVisual !== "string" && isValidElementType(TrailingVisual) ? /* @__PURE__ */ jsx(TrailingVisual, {}) : TrailingVisual }) : TrailingIcon || trailingText ? /* @__PURE__ */ jsxs(ActionList.TrailingVisual, { children: [trailingText, TrailingIcon && /* @__PURE__ */ jsx(TrailingIcon, {})] }) : null
|
|
368
367
|
]
|
|
369
368
|
});
|
|
370
369
|
});
|
|
@@ -73,10 +73,10 @@ function FilteredActionListInput(t0) {
|
|
|
73
73
|
} else t2 = $[20];
|
|
74
74
|
let t3;
|
|
75
75
|
if ($[21] !== inputDescriptionTextId || $[22] !== inputRef || $[23] !== listId || $[24] !== loading || $[25] !== onInputChange || $[26] !== onInputKeyDown || $[27] !== onInputKeyPress || $[28] !== placeholderText || $[29] !== restTextInputProps || $[30] !== t1 || $[31] !== t2 || $[32] !== value) {
|
|
76
|
-
t3 =
|
|
76
|
+
t3 = /* @__PURE__ */ jsx("div", {
|
|
77
77
|
className: FilteredActionList_module_css_default.Header,
|
|
78
78
|
"data-component": "FilteredActionList.Header",
|
|
79
|
-
children:
|
|
79
|
+
children: /* @__PURE__ */ jsx(TextInput_default, {
|
|
80
80
|
ref: inputRef,
|
|
81
81
|
block: true,
|
|
82
82
|
width: "auto",
|