@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
|
@@ -6,21 +6,23 @@ import Spinner from "../Spinner/Spinner.js";
|
|
|
6
6
|
import CounterLabel from "../CounterLabel/CounterLabel.js";
|
|
7
7
|
import { ConditionalWrapper } from "../internal/components/ConditionalWrapper.js";
|
|
8
8
|
import ButtonBase_module_css_default from "./ButtonBase.module.css.js";
|
|
9
|
+
import { useFeatureFlag } from "../FeatureFlags/useFeatureFlag.js";
|
|
9
10
|
import React, { forwardRef } from "react";
|
|
10
11
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
11
12
|
import { clsx } from "clsx";
|
|
12
13
|
import { isElement } from "react-is";
|
|
13
14
|
//#region src/Button/ButtonBase.tsx
|
|
14
|
-
const
|
|
15
|
+
const BUTTON_LOADING_DISABLED_STYLES_FEATURE_FLAG = "primer_react_button_loading_disabled_styles";
|
|
16
|
+
const renderModuleVisual = (Visual, loading, visualName, counterLabel) => /* @__PURE__ */ jsx("span", {
|
|
15
17
|
"data-component": visualName,
|
|
16
18
|
className: clsx(!counterLabel && ButtonBase_module_css_default.Visual, visualName === "leadingVisual" && ButtonBase_module_css_default.LeadingVisual, loading ? ButtonBase_module_css_default.LoadingSpinner : ButtonBase_module_css_default.VisualWrap),
|
|
17
|
-
children: loading ?
|
|
19
|
+
children: loading ? /* @__PURE__ */ jsx(Spinner, { size: "small" }) : isElement(Visual) ? Visual : /* @__PURE__ */ jsx(Visual, {})
|
|
18
20
|
});
|
|
19
|
-
renderModuleVisual.displayName = "renderModuleVisual";
|
|
20
21
|
const ButtonBase = /*#__PURE__*/ forwardRef(({ children, as: Component = "button", ...props }, forwardedRef) => {
|
|
21
22
|
const { leadingVisual: LeadingVisual, trailingVisual: TrailingVisual, trailingAction: TrailingAction, ["aria-describedby"]: ariaDescribedBy, ["aria-labelledby"]: ariaLabelledBy, count, icon: Icon, id, variant = "default", size = "medium", alignContent = "center", block = false, loading, loadingAnnouncement = "Loading", inactive, onClick, labelWrap, notificationIndicator, className, ...rest } = props;
|
|
22
23
|
const innerRef = React.useRef(null);
|
|
23
24
|
const mergedRef = useMergedRefs(forwardedRef, innerRef);
|
|
25
|
+
const loadingDisabledStylesEnabled = useFeatureFlag(BUTTON_LOADING_DISABLED_STYLES_FEATURE_FLAG);
|
|
24
26
|
const uuid = useId$1(id);
|
|
25
27
|
const loadingAnnouncementID = `${uuid}-loading-announcement`;
|
|
26
28
|
const ariaDescribedByIds = loading ? [loadingAnnouncementID, ariaDescribedBy] : [ariaDescribedBy];
|
|
@@ -29,11 +31,11 @@ const ButtonBase = /*#__PURE__*/ forwardRef(({ children, as: Component = "button
|
|
|
29
31
|
const el = innerRef.current;
|
|
30
32
|
if (el && !(el instanceof HTMLButtonElement) && !(el instanceof HTMLAnchorElement) && !(el.tagName === "SUMMARY")) console.warn("This component should be an instanceof a semantic button or anchor");
|
|
31
33
|
}
|
|
32
|
-
return
|
|
34
|
+
return /* @__PURE__ */ jsxs(ConditionalWrapper, {
|
|
33
35
|
if: typeof loading !== "undefined",
|
|
34
36
|
className: block ? ButtonBase_module_css_default.ConditionalWrapper : variant === "link" ? ButtonBase_module_css_default.ConditionalWrapperLink : void 0,
|
|
35
37
|
"data-loading-wrapper": true,
|
|
36
|
-
children: [
|
|
38
|
+
children: [/* @__PURE__ */ jsx(Component, {
|
|
37
39
|
"aria-disabled": loading ? true : void 0,
|
|
38
40
|
"data-component": "Button",
|
|
39
41
|
...rest,
|
|
@@ -42,6 +44,7 @@ const ButtonBase = /*#__PURE__*/ forwardRef(({ children, as: Component = "button
|
|
|
42
44
|
"data-block": block ? "block" : null,
|
|
43
45
|
"data-inactive": inactive ? true : void 0,
|
|
44
46
|
"data-loading": Boolean(loading),
|
|
47
|
+
"data-loading-disabled-styles": loadingDisabledStylesEnabled ? true : void 0,
|
|
45
48
|
"data-no-visuals": !LeadingVisual && !TrailingVisual && !TrailingAction ? true : void 0,
|
|
46
49
|
"data-size": size,
|
|
47
50
|
"data-variant": variant,
|
|
@@ -53,27 +56,27 @@ const ButtonBase = /*#__PURE__*/ forwardRef(({ children, as: Component = "button
|
|
|
53
56
|
"aria-labelledby": loading ? [`${uuid}-label`, ariaLabelledBy].filter((labelID) => Boolean(labelID)).join(" ") : ariaLabelledBy,
|
|
54
57
|
id,
|
|
55
58
|
onClick: loading ? void 0 : onClick,
|
|
56
|
-
children: Icon ? loading ?
|
|
59
|
+
children: Icon ? loading ? /* @__PURE__ */ jsx(Spinner, { size: "small" }) : isElement(Icon) ? Icon : /* @__PURE__ */ jsx(Icon, {}) : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("span", {
|
|
57
60
|
"data-component": "buttonContent",
|
|
58
61
|
"data-align": alignContent,
|
|
59
62
|
className: ButtonBase_module_css_default.ButtonContent,
|
|
60
63
|
children: [
|
|
61
64
|
loading && !LeadingVisual && !TrailingVisual && !TrailingAction && count === void 0 && renderModuleVisual(Spinner, loading, "loadingSpinner", false),
|
|
62
65
|
LeadingVisual && renderModuleVisual(LeadingVisual, Boolean(loading), "leadingVisual", false),
|
|
63
|
-
children &&
|
|
66
|
+
children && /* @__PURE__ */ jsx("span", {
|
|
64
67
|
"data-component": "text",
|
|
65
68
|
className: ButtonBase_module_css_default.Label,
|
|
66
69
|
id: loading ? `${uuid}-label` : void 0,
|
|
67
70
|
children
|
|
68
71
|
}),
|
|
69
|
-
count !== void 0 && !TrailingVisual ? renderModuleVisual(
|
|
72
|
+
count !== void 0 && !TrailingVisual ? renderModuleVisual(/* @__PURE__ */ jsx(CounterLabel, {
|
|
70
73
|
className: ButtonBase_module_css_default.CounterLabel,
|
|
71
74
|
"data-component": "ButtonCounter",
|
|
72
75
|
children: count
|
|
73
76
|
}), Boolean(loading) && !LeadingVisual, "trailingVisual", true) : TrailingVisual ? renderModuleVisual(TrailingVisual, Boolean(loading) && !LeadingVisual, "trailingVisual", false) : null
|
|
74
77
|
]
|
|
75
78
|
}), TrailingAction && renderModuleVisual(TrailingAction, Boolean(loading) && !LeadingVisual && !TrailingVisual, "trailingAction", false)] })
|
|
76
|
-
}), loading &&
|
|
79
|
+
}), loading && /* @__PURE__ */ jsx(VisuallyHidden, { children: /* @__PURE__ */ jsx(AriaStatus, {
|
|
77
80
|
id: loadingAnnouncementID,
|
|
78
81
|
children: loadingAnnouncement
|
|
79
82
|
}) })]
|
|
@@ -60,7 +60,7 @@ const IconButton = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
|
60
60
|
} else t2 = $[12];
|
|
61
61
|
let t3;
|
|
62
62
|
if ($[13] !== Icon || $[14] !== ariaLabel || $[15] !== disabled || $[16] !== forwardedRef || $[17] !== props || $[18] !== t2) {
|
|
63
|
-
t3 =
|
|
63
|
+
t3 = /* @__PURE__ */ jsx(ButtonBase, {
|
|
64
64
|
icon: Icon,
|
|
65
65
|
className: t2,
|
|
66
66
|
"data-component": "IconButton",
|
|
@@ -94,7 +94,7 @@ const IconButton = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
|
94
94
|
const t6 = description ? ariaLabel : void 0;
|
|
95
95
|
let t7;
|
|
96
96
|
if ($[22] !== Icon || $[23] !== props || $[24] !== t4 || $[25] !== t5 || $[26] !== t6) {
|
|
97
|
-
t7 =
|
|
97
|
+
t7 = /* @__PURE__ */ jsx(ButtonBase, {
|
|
98
98
|
icon: Icon,
|
|
99
99
|
className: t4,
|
|
100
100
|
"data-component": "IconButton",
|
|
@@ -112,7 +112,7 @@ const IconButton = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
|
112
112
|
} else t7 = $[27];
|
|
113
113
|
let t8;
|
|
114
114
|
if ($[28] !== forwardedRef || $[29] !== hasActivePopup || $[30] !== t2 || $[31] !== t3 || $[32] !== t7 || $[33] !== tooltipDirection || $[34] !== tooltipText) {
|
|
115
|
-
t8 =
|
|
115
|
+
t8 = /* @__PURE__ */ jsx(Tooltip, {
|
|
116
116
|
ref: forwardedRef,
|
|
117
117
|
text: tooltipText,
|
|
118
118
|
type: t2,
|
|
@@ -22,7 +22,7 @@ const LinkButton = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
|
22
22
|
const Component = t1 === void 0 ? "a" : t1;
|
|
23
23
|
let t2;
|
|
24
24
|
if ($[4] !== Component || $[5] !== children || $[6] !== forwardedRef || $[7] !== props) {
|
|
25
|
-
t2 =
|
|
25
|
+
t2 = /* @__PURE__ */ jsx(ButtonBase, {
|
|
26
26
|
as: Component,
|
|
27
27
|
ref: forwardedRef,
|
|
28
28
|
"data-component": "LinkButton",
|
|
@@ -66,7 +66,7 @@ const ButtonGroup = /*#__PURE__*/ React.forwardRef(function ButtonGroup(t0, forw
|
|
|
66
66
|
} else t5 = $[12];
|
|
67
67
|
let t6;
|
|
68
68
|
if ($[13] !== BaseComponent || $[14] !== appliedRef || $[15] !== buttons || $[16] !== rest || $[17] !== role || $[18] !== t5) {
|
|
69
|
-
t6 =
|
|
69
|
+
t6 = /* @__PURE__ */ jsx(BaseComponent, {
|
|
70
70
|
ref: appliedRef,
|
|
71
71
|
className: t5,
|
|
72
72
|
role,
|
|
@@ -86,11 +86,10 @@ const ButtonGroup = /*#__PURE__*/ React.forwardRef(function ButtonGroup(t0, forw
|
|
|
86
86
|
});
|
|
87
87
|
ButtonGroup.displayName = "ButtonGroup";
|
|
88
88
|
function _temp(child, index) {
|
|
89
|
-
return
|
|
89
|
+
return /* @__PURE__ */ jsx("div", {
|
|
90
90
|
className: ButtonGroup_module_css_default.Item,
|
|
91
91
|
children: child
|
|
92
92
|
}, index);
|
|
93
93
|
}
|
|
94
|
-
_temp.displayName = "_temp";
|
|
95
94
|
//#endregion
|
|
96
95
|
export { ButtonGroup as default };
|
package/dist/Card/Card.js
CHANGED
|
@@ -73,7 +73,7 @@ function CardComponent(props, ref) {
|
|
|
73
73
|
} else t15 = $[28];
|
|
74
74
|
let t16;
|
|
75
75
|
if ($[29] !== Component || $[30] !== borderRadius || $[31] !== children || $[32] !== layout || $[33] !== padding || $[34] !== ref || $[35] !== rest || $[36] !== t15) {
|
|
76
|
-
t16 =
|
|
76
|
+
t16 = /* @__PURE__ */ jsx(Component, {
|
|
77
77
|
ref,
|
|
78
78
|
className: t15,
|
|
79
79
|
"data-component": "Card",
|
|
@@ -95,7 +95,7 @@ function CardComponent(props, ref) {
|
|
|
95
95
|
} else t16 = $[37];
|
|
96
96
|
let t17;
|
|
97
97
|
if ($[38] !== t14 || $[39] !== t16) {
|
|
98
|
-
t17 =
|
|
98
|
+
t17 = /* @__PURE__ */ jsx(CardContext.Provider, {
|
|
99
99
|
value: t14,
|
|
100
100
|
children: t16
|
|
101
101
|
});
|
|
@@ -124,7 +124,7 @@ function CardComponent(props, ref) {
|
|
|
124
124
|
t8 = borderRadius;
|
|
125
125
|
t9 = layout;
|
|
126
126
|
t10 = rest;
|
|
127
|
-
t11 = (image || icon) &&
|
|
127
|
+
t11 = (image || icon) && /* @__PURE__ */ jsx("div", {
|
|
128
128
|
className: clsx(Card_module_css_default.CardHeader, image && Card_module_css_default.CardHeaderEdgeToEdge),
|
|
129
129
|
children: image || icon
|
|
130
130
|
});
|
|
@@ -175,7 +175,7 @@ function CardComponent(props, ref) {
|
|
|
175
175
|
if (t13 !== Symbol.for("react.early_return_sentinel")) return t13;
|
|
176
176
|
let t14;
|
|
177
177
|
if ($[45] !== description || $[46] !== heading) {
|
|
178
|
-
t14 =
|
|
178
|
+
t14 = /* @__PURE__ */ jsxs("div", {
|
|
179
179
|
className: Card_module_css_default.CardContent,
|
|
180
180
|
children: [heading, description]
|
|
181
181
|
});
|
|
@@ -185,7 +185,7 @@ function CardComponent(props, ref) {
|
|
|
185
185
|
} else t14 = $[47];
|
|
186
186
|
let t15;
|
|
187
187
|
if ($[48] !== metadata) {
|
|
188
|
-
t15 = metadata ?
|
|
188
|
+
t15 = metadata ? /* @__PURE__ */ jsx("div", {
|
|
189
189
|
className: Card_module_css_default.CardMetadataContainer,
|
|
190
190
|
children: metadata
|
|
191
191
|
}) : null;
|
|
@@ -194,7 +194,7 @@ function CardComponent(props, ref) {
|
|
|
194
194
|
} else t15 = $[49];
|
|
195
195
|
let t16;
|
|
196
196
|
if ($[50] !== t14 || $[51] !== t15) {
|
|
197
|
-
t16 =
|
|
197
|
+
t16 = /* @__PURE__ */ jsxs("div", {
|
|
198
198
|
className: Card_module_css_default.CardBody,
|
|
199
199
|
children: [t14, t15]
|
|
200
200
|
});
|
|
@@ -204,7 +204,7 @@ function CardComponent(props, ref) {
|
|
|
204
204
|
} else t16 = $[52];
|
|
205
205
|
let t17;
|
|
206
206
|
if ($[53] !== menu) {
|
|
207
|
-
t17 = menu ?
|
|
207
|
+
t17 = menu ? /* @__PURE__ */ jsx("div", {
|
|
208
208
|
className: Card_module_css_default.CardAction,
|
|
209
209
|
children: menu
|
|
210
210
|
}) : null;
|
|
@@ -213,7 +213,7 @@ function CardComponent(props, ref) {
|
|
|
213
213
|
} else t17 = $[54];
|
|
214
214
|
let t18;
|
|
215
215
|
if ($[55] !== T0 || $[56] !== t10 || $[57] !== t11 || $[58] !== t16 || $[59] !== t17 || $[60] !== t4 || $[61] !== t5 || $[62] !== t6 || $[63] !== t7 || $[64] !== t8 || $[65] !== t9) {
|
|
216
|
-
t18 =
|
|
216
|
+
t18 = /* @__PURE__ */ jsxs(T0, {
|
|
217
217
|
ref: t4,
|
|
218
218
|
className: t5,
|
|
219
219
|
"data-component": t6,
|
|
@@ -242,7 +242,7 @@ function CardComponent(props, ref) {
|
|
|
242
242
|
} else t18 = $[66];
|
|
243
243
|
let t19;
|
|
244
244
|
if ($[67] !== T1 || $[68] !== t12 || $[69] !== t18) {
|
|
245
|
-
t19 =
|
|
245
|
+
t19 = /* @__PURE__ */ jsx(T1, {
|
|
246
246
|
value: t12,
|
|
247
247
|
children: t18
|
|
248
248
|
});
|
|
@@ -268,13 +268,13 @@ function CardIcon(t0) {
|
|
|
268
268
|
const t3 = !ariaLabel;
|
|
269
269
|
let t4;
|
|
270
270
|
if ($[2] !== IconComponent) {
|
|
271
|
-
t4 =
|
|
271
|
+
t4 = /* @__PURE__ */ jsx(IconComponent, {});
|
|
272
272
|
$[2] = IconComponent;
|
|
273
273
|
$[3] = t4;
|
|
274
274
|
} else t4 = $[3];
|
|
275
275
|
let t5;
|
|
276
276
|
if ($[4] !== ariaLabel || $[5] !== t1 || $[6] !== t2 || $[7] !== t3 || $[8] !== t4) {
|
|
277
|
-
t5 =
|
|
277
|
+
t5 = /* @__PURE__ */ jsx("span", {
|
|
278
278
|
className: t1,
|
|
279
279
|
"data-component": "Card.Icon",
|
|
280
280
|
role: t2,
|
|
@@ -320,7 +320,7 @@ function CardImage(t0) {
|
|
|
320
320
|
} else t2 = $[6];
|
|
321
321
|
let t3;
|
|
322
322
|
if ($[7] !== alt || $[8] !== rest || $[9] !== src || $[10] !== t2) {
|
|
323
|
-
t3 =
|
|
323
|
+
t3 = /* @__PURE__ */ jsx("img", {
|
|
324
324
|
...rest,
|
|
325
325
|
src,
|
|
326
326
|
alt,
|
|
@@ -376,7 +376,7 @@ const CardHeading = /*#__PURE__*/ forwardRef(function CardHeading(t0, ref) {
|
|
|
376
376
|
} else t3 = $[7];
|
|
377
377
|
let t4;
|
|
378
378
|
if ($[8] !== Component || $[9] !== children || $[10] !== ref || $[11] !== rest || $[12] !== t2 || $[13] !== t3) {
|
|
379
|
-
t4 =
|
|
379
|
+
t4 = /* @__PURE__ */ jsx(Component, {
|
|
380
380
|
...rest,
|
|
381
381
|
ref,
|
|
382
382
|
id: t2,
|
|
@@ -419,7 +419,7 @@ const CardDescription = /*#__PURE__*/ forwardRef(function CardDescription(t0, re
|
|
|
419
419
|
} else t1 = $[5];
|
|
420
420
|
let t2;
|
|
421
421
|
if ($[6] !== children || $[7] !== ref || $[8] !== rest || $[9] !== t1) {
|
|
422
|
-
t2 =
|
|
422
|
+
t2 = /* @__PURE__ */ jsx("p", {
|
|
423
423
|
...rest,
|
|
424
424
|
ref,
|
|
425
425
|
className: t1,
|
|
@@ -447,7 +447,7 @@ function CardAction(t0) {
|
|
|
447
447
|
const { children } = t0;
|
|
448
448
|
let t1;
|
|
449
449
|
if ($[0] !== children) {
|
|
450
|
-
t1 =
|
|
450
|
+
t1 = /* @__PURE__ */ jsx("div", {
|
|
451
451
|
"data-component": "Card.Action",
|
|
452
452
|
children
|
|
453
453
|
});
|
|
@@ -481,7 +481,7 @@ const CardMetadata = /*#__PURE__*/ forwardRef(function CardMetadata(t0, ref) {
|
|
|
481
481
|
} else t1 = $[5];
|
|
482
482
|
let t2;
|
|
483
483
|
if ($[6] !== children || $[7] !== ref || $[8] !== rest || $[9] !== t1) {
|
|
484
|
-
t2 =
|
|
484
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
485
485
|
...rest,
|
|
486
486
|
ref,
|
|
487
487
|
className: t1,
|
|
@@ -55,7 +55,7 @@ const Checkbox = /*#__PURE__*/ React.forwardRef(({ checked, className, defaultCh
|
|
|
55
55
|
if (indeterminate) checkbox.setAttribute("aria-checked", "mixed");
|
|
56
56
|
else checkbox.setAttribute("aria-checked", checkbox.checked ? "true" : "false");
|
|
57
57
|
});
|
|
58
|
-
return
|
|
58
|
+
return /* @__PURE__ */ jsx("input", {
|
|
59
59
|
...inputProps,
|
|
60
60
|
"data-component": dataComponent !== null && dataComponent !== void 0 ? dataComponent : "Checkbox",
|
|
61
61
|
className: clsx(className, shared_module_css_default.Input, Checkbox_module_css_default.Checkbox)
|
|
@@ -78,7 +78,7 @@ const CheckboxGroup = (t0) => {
|
|
|
78
78
|
} else t4 = $[16];
|
|
79
79
|
let t5;
|
|
80
80
|
if ($[17] !== children || $[18] !== disabled || $[19] !== rest) {
|
|
81
|
-
t5 =
|
|
81
|
+
t5 = /* @__PURE__ */ jsx(CheckboxOrRadioGroup_default, {
|
|
82
82
|
"data-component": "CheckboxGroup",
|
|
83
83
|
disabled,
|
|
84
84
|
...rest,
|
|
@@ -91,7 +91,7 @@ const CheckboxGroup = (t0) => {
|
|
|
91
91
|
} else t5 = $[20];
|
|
92
92
|
let t6;
|
|
93
93
|
if ($[21] !== t4 || $[22] !== t5) {
|
|
94
|
-
t6 =
|
|
94
|
+
t6 = /* @__PURE__ */ jsx(CheckboxGroupContext.Provider, {
|
|
95
95
|
value: t4,
|
|
96
96
|
children: t5
|
|
97
97
|
});
|
|
@@ -50,7 +50,7 @@ const CircleBadge = (t0) => {
|
|
|
50
50
|
}
|
|
51
51
|
let t6;
|
|
52
52
|
if ($[7] !== T0 || $[8] !== t1 || $[9] !== t2 || $[10] !== t3 || $[11] !== t4 || $[12] !== t5) {
|
|
53
|
-
t6 =
|
|
53
|
+
t6 = /* @__PURE__ */ jsx(T0, {
|
|
54
54
|
...t1,
|
|
55
55
|
"data-component": t2,
|
|
56
56
|
className: t3,
|
|
@@ -77,7 +77,7 @@ const CircleBadgeIcon = (props) => {
|
|
|
77
77
|
} else t0 = $[1];
|
|
78
78
|
let t1;
|
|
79
79
|
if ($[2] !== props || $[3] !== t0) {
|
|
80
|
-
t1 =
|
|
80
|
+
t1 = /* @__PURE__ */ jsx(Octicon, {
|
|
81
81
|
...props,
|
|
82
82
|
"data-component": "CircleBadge.Icon",
|
|
83
83
|
className: t0
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
2
|
import { Dialog } from "../Dialog/Dialog.js";
|
|
3
|
-
import "react";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
//#region src/ConfirmationDialog/ConfirmationDialog.tsx
|
|
6
5
|
/**
|
|
7
|
-
* Props to customize the ConfirmationDialog.
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
6
|
* A ConfirmationDialog is a special kind of dialog with more rigid behavior. It
|
|
11
7
|
* is used to confirm a user action. ConfirmationDialogs always have exactly
|
|
12
8
|
* two buttons: one to cancel the action and one to confirm it. No custom
|
|
@@ -84,7 +80,7 @@ const ConfirmationDialog = (props) => {
|
|
|
84
80
|
const footerButtons = t12;
|
|
85
81
|
let t13;
|
|
86
82
|
if ($[18] !== children || $[19] !== className || $[20] !== footerButtons || $[21] !== height || $[22] !== onClose || $[23] !== title || $[24] !== width) {
|
|
87
|
-
t13 =
|
|
83
|
+
t13 = /* @__PURE__ */ jsx(Dialog, {
|
|
88
84
|
"data-component": "ConfirmationDialog",
|
|
89
85
|
onClose,
|
|
90
86
|
title,
|
|
@@ -5,7 +5,7 @@ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
6
|
//#region src/CounterLabel/CounterLabel.tsx
|
|
7
7
|
const CounterLabel = /*#__PURE__*/ forwardRef(({ variant, scheme, className, children, ["data-component"]: dataComponent, ...rest }, forwardedRef) => {
|
|
8
|
-
const label =
|
|
8
|
+
const label = /* @__PURE__ */ jsxs(VisuallyHidden, { children: [
|
|
9
9
|
"\xA0(",
|
|
10
10
|
children,
|
|
11
11
|
")"
|
|
@@ -17,7 +17,7 @@ const CounterLabel = /*#__PURE__*/ forwardRef(({ variant, scheme, className, chi
|
|
|
17
17
|
["data-variant"]: inferredVariant,
|
|
18
18
|
...rest
|
|
19
19
|
};
|
|
20
|
-
return
|
|
20
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
|
|
21
21
|
...counterProps,
|
|
22
22
|
"data-component": dataComponent !== null && dataComponent !== void 0 ? dataComponent : "CounterLabel",
|
|
23
23
|
className: clsx(className, CounterLabel_module_css_default.CounterLabel),
|
|
@@ -36,7 +36,7 @@ function DataTableImplementation(t0) {
|
|
|
36
36
|
let t4;
|
|
37
37
|
if ($[11] !== actions || $[12] !== onToggleSort) {
|
|
38
38
|
t4 = (header) => {
|
|
39
|
-
if (header.isSortable()) return
|
|
39
|
+
if (header.isSortable()) return /* @__PURE__ */ jsx(TableSortHeader, {
|
|
40
40
|
id: header.domId,
|
|
41
41
|
align: header.column.align,
|
|
42
42
|
direction: header.getSortDirection(),
|
|
@@ -47,7 +47,7 @@ function DataTableImplementation(t0) {
|
|
|
47
47
|
},
|
|
48
48
|
children: typeof header.column.header === "string" ? header.column.header : header.column.header()
|
|
49
49
|
}, header.id);
|
|
50
|
-
return
|
|
50
|
+
return /* @__PURE__ */ jsx(TableHeader, {
|
|
51
51
|
id: header.domId,
|
|
52
52
|
align: header.column.align,
|
|
53
53
|
children: typeof header.column.header === "string" ? header.column.header : header.column.header()
|
|
@@ -65,7 +65,7 @@ function DataTableImplementation(t0) {
|
|
|
65
65
|
} else t3 = $[10];
|
|
66
66
|
let t4;
|
|
67
67
|
if ($[14] !== t3) {
|
|
68
|
-
t4 =
|
|
68
|
+
t4 = /* @__PURE__ */ jsx(TableHead, { children: /* @__PURE__ */ jsx(TableRow, { children: t3 }) });
|
|
69
69
|
$[14] = t3;
|
|
70
70
|
$[15] = t4;
|
|
71
71
|
} else t4 = $[15];
|
|
@@ -73,14 +73,14 @@ function DataTableImplementation(t0) {
|
|
|
73
73
|
if ($[16] !== bodies || $[17] !== headers.length) {
|
|
74
74
|
let t6;
|
|
75
75
|
if ($[19] !== headers.length) {
|
|
76
|
-
t6 = (body) => body.type === "row-group" ?
|
|
76
|
+
t6 = (body) => body.type === "row-group" ? /* @__PURE__ */ jsx(TableGroup, {
|
|
77
77
|
id: body.id,
|
|
78
78
|
label: body.label,
|
|
79
79
|
rowCount: body.rows.length,
|
|
80
80
|
colSpan: headers.length,
|
|
81
81
|
"aria-label": body["aria-label"],
|
|
82
82
|
children: body.rows.map(renderRow)
|
|
83
|
-
}, body.key) :
|
|
83
|
+
}, body.key) : /* @__PURE__ */ jsx(TableBody, { children: body.rows.map(renderRow) }, body.key);
|
|
84
84
|
$[19] = headers.length;
|
|
85
85
|
$[20] = t6;
|
|
86
86
|
} else t6 = $[20];
|
|
@@ -91,7 +91,7 @@ function DataTableImplementation(t0) {
|
|
|
91
91
|
} else t5 = $[18];
|
|
92
92
|
let t6;
|
|
93
93
|
if ($[21] !== cellPadding || $[22] !== describedby || $[23] !== gridTemplateColumns || $[24] !== labelledby || $[25] !== t4 || $[26] !== t5) {
|
|
94
|
-
t6 =
|
|
94
|
+
t6 = /* @__PURE__ */ jsxs(Table, {
|
|
95
95
|
"aria-labelledby": labelledby,
|
|
96
96
|
"aria-describedby": describedby,
|
|
97
97
|
cellPadding,
|
|
@@ -109,7 +109,7 @@ function DataTableImplementation(t0) {
|
|
|
109
109
|
return t6;
|
|
110
110
|
}
|
|
111
111
|
function _temp(row) {
|
|
112
|
-
return
|
|
112
|
+
return /* @__PURE__ */ jsx(TableRow, { children: row.getCells().map((cell) => /* @__PURE__ */ jsx(TableCell, {
|
|
113
113
|
id: cell.domId,
|
|
114
114
|
scope: cell.rowHeader ? "row" : void 0,
|
|
115
115
|
align: cell.column.align,
|
|
@@ -117,7 +117,6 @@ function _temp(row) {
|
|
|
117
117
|
children: cell.column.renderCell ? cell.column.renderCell(row.getValue()) : cell.getValue()
|
|
118
118
|
}, cell.id)) }, row.id);
|
|
119
119
|
}
|
|
120
|
-
_temp.displayName = "_temp";
|
|
121
120
|
const DataTable = DataTableImplementation;
|
|
122
121
|
//#endregion
|
|
123
122
|
export { DataTable };
|
|
@@ -18,7 +18,7 @@ function ErrorDialog(t0) {
|
|
|
18
18
|
} else t2 = $[2];
|
|
19
19
|
let t3;
|
|
20
20
|
if ($[3] !== children || $[4] !== t2 || $[5] !== title) {
|
|
21
|
-
t3 =
|
|
21
|
+
t3 = /* @__PURE__ */ jsx(ConfirmationDialog, {
|
|
22
22
|
title,
|
|
23
23
|
onClose: t2,
|
|
24
24
|
confirmButtonContent: "Retry",
|
|
@@ -61,7 +61,7 @@ function Pagination(t0) {
|
|
|
61
61
|
} else t8 = $[11];
|
|
62
62
|
let t9;
|
|
63
63
|
if ($[12] !== pageEnd || $[13] !== pageStart || $[14] !== totalCount) {
|
|
64
|
-
t9 =
|
|
64
|
+
t9 = /* @__PURE__ */ jsx(Range, {
|
|
65
65
|
pageStart,
|
|
66
66
|
pageEnd,
|
|
67
67
|
totalCount
|
|
@@ -102,15 +102,15 @@ function Pagination(t0) {
|
|
|
102
102
|
} else t16 = $[22];
|
|
103
103
|
let t17;
|
|
104
104
|
if ($[23] !== hasPreviousPage) {
|
|
105
|
-
t17 = hasPreviousPage ?
|
|
105
|
+
t17 = hasPreviousPage ? /* @__PURE__ */ jsx(ChevronLeftIcon, {}) : null;
|
|
106
106
|
$[23] = hasPreviousPage;
|
|
107
107
|
$[24] = t17;
|
|
108
108
|
} else t17 = $[24];
|
|
109
109
|
let t18;
|
|
110
110
|
let t19;
|
|
111
111
|
if ($[25] === Symbol.for("react.memo_cache_sentinel")) {
|
|
112
|
-
t18 =
|
|
113
|
-
t19 =
|
|
112
|
+
t18 = /* @__PURE__ */ jsx("span", { children: "Previous" });
|
|
113
|
+
t19 = /* @__PURE__ */ jsx(VisuallyHidden, { children: "\xA0page" });
|
|
114
114
|
$[25] = t18;
|
|
115
115
|
$[26] = t19;
|
|
116
116
|
} else {
|
|
@@ -119,7 +119,7 @@ function Pagination(t0) {
|
|
|
119
119
|
}
|
|
120
120
|
let t20;
|
|
121
121
|
if ($[27] !== t14 || $[28] !== t15 || $[29] !== t16 || $[30] !== t17) {
|
|
122
|
-
t20 =
|
|
122
|
+
t20 = /* @__PURE__ */ jsx(Step, { children: /* @__PURE__ */ jsxs(Button, {
|
|
123
123
|
className: t13,
|
|
124
124
|
type: "button",
|
|
125
125
|
"data-has-page": t14,
|
|
@@ -143,13 +143,13 @@ function Pagination(t0) {
|
|
|
143
143
|
let t22;
|
|
144
144
|
if ($[35] !== selectPage) {
|
|
145
145
|
t22 = (page, i) => {
|
|
146
|
-
if (page.type === "BREAK") return
|
|
147
|
-
else if (page.type === "NUM") return
|
|
146
|
+
if (page.type === "BREAK") return /* @__PURE__ */ jsx(TruncationStep, {}, `truncation-${i}`);
|
|
147
|
+
else if (page.type === "NUM") return /* @__PURE__ */ jsx(Step, { children: /* @__PURE__ */ jsxs(Page, {
|
|
148
148
|
active: !!page.selected,
|
|
149
149
|
onClick: () => {
|
|
150
150
|
selectPage(page.num - 1);
|
|
151
151
|
},
|
|
152
|
-
children: [page.num, page.precedesBreak ?
|
|
152
|
+
children: [page.num, page.precedesBreak ? /* @__PURE__ */ jsx(VisuallyHidden, { children: "…" }) : null]
|
|
153
153
|
}) }, i);
|
|
154
154
|
};
|
|
155
155
|
$[35] = selectPage;
|
|
@@ -180,8 +180,8 @@ function Pagination(t0) {
|
|
|
180
180
|
let t26;
|
|
181
181
|
let t27;
|
|
182
182
|
if ($[41] === Symbol.for("react.memo_cache_sentinel")) {
|
|
183
|
-
t26 =
|
|
184
|
-
t27 =
|
|
183
|
+
t26 = /* @__PURE__ */ jsx("span", { children: "Next" });
|
|
184
|
+
t27 = /* @__PURE__ */ jsx(VisuallyHidden, { children: "\xA0page" });
|
|
185
185
|
$[41] = t26;
|
|
186
186
|
$[42] = t27;
|
|
187
187
|
} else {
|
|
@@ -190,13 +190,13 @@ function Pagination(t0) {
|
|
|
190
190
|
}
|
|
191
191
|
let t28;
|
|
192
192
|
if ($[43] !== hasNextPage) {
|
|
193
|
-
t28 = hasNextPage ?
|
|
193
|
+
t28 = hasNextPage ? /* @__PURE__ */ jsx(ChevronRightIcon, {}) : null;
|
|
194
194
|
$[43] = hasNextPage;
|
|
195
195
|
$[44] = t28;
|
|
196
196
|
} else t28 = $[44];
|
|
197
197
|
let t29;
|
|
198
198
|
if ($[45] !== t23 || $[46] !== t24 || $[47] !== t25 || $[48] !== t28) {
|
|
199
|
-
t29 =
|
|
199
|
+
t29 = /* @__PURE__ */ jsx(Step, { children: /* @__PURE__ */ jsxs(Button, {
|
|
200
200
|
className: t22,
|
|
201
201
|
type: "button",
|
|
202
202
|
"data-has-page": t23,
|
|
@@ -217,7 +217,7 @@ function Pagination(t0) {
|
|
|
217
217
|
} else t29 = $[49];
|
|
218
218
|
let t30;
|
|
219
219
|
if ($[50] !== t12 || $[51] !== t20 || $[52] !== t21 || $[53] !== t29) {
|
|
220
|
-
t30 =
|
|
220
|
+
t30 = /* @__PURE__ */ jsxs("ol", {
|
|
221
221
|
className: t10,
|
|
222
222
|
"data-hidden-viewport-ranges": t12,
|
|
223
223
|
children: [
|
|
@@ -234,7 +234,7 @@ function Pagination(t0) {
|
|
|
234
234
|
} else t30 = $[54];
|
|
235
235
|
let t31;
|
|
236
236
|
if ($[55] !== id || $[56] !== label || $[57] !== t30 || $[58] !== t9) {
|
|
237
|
-
t31 =
|
|
237
|
+
t31 = /* @__PURE__ */ jsxs("nav", {
|
|
238
238
|
"aria-label": label,
|
|
239
239
|
className: t8,
|
|
240
240
|
id,
|
|
@@ -256,7 +256,7 @@ function Range(t0) {
|
|
|
256
256
|
const end = pageEnd;
|
|
257
257
|
let t1;
|
|
258
258
|
if ($[0] !== end || $[1] !== start || $[2] !== totalCount) {
|
|
259
|
-
t1 =
|
|
259
|
+
t1 = /* @__PURE__ */ jsx(VisuallyHidden, { children: /* @__PURE__ */ jsxs(AriaStatus, { children: [
|
|
260
260
|
"Showing ",
|
|
261
261
|
start,
|
|
262
262
|
" through ",
|
|
@@ -277,8 +277,8 @@ function Range(t0) {
|
|
|
277
277
|
let t3;
|
|
278
278
|
let t4;
|
|
279
279
|
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
280
|
-
t3 =
|
|
281
|
-
t4 =
|
|
280
|
+
t3 = /* @__PURE__ */ jsx(VisuallyHidden, { children: "\xA0through\xA0" });
|
|
281
|
+
t4 = /* @__PURE__ */ jsx("span", {
|
|
282
282
|
"aria-hidden": "true",
|
|
283
283
|
children: "‒"
|
|
284
284
|
});
|
|
@@ -290,7 +290,7 @@ function Range(t0) {
|
|
|
290
290
|
}
|
|
291
291
|
let t5;
|
|
292
292
|
if ($[7] !== end || $[8] !== start || $[9] !== totalCount) {
|
|
293
|
-
t5 =
|
|
293
|
+
t5 = /* @__PURE__ */ jsxs("p", {
|
|
294
294
|
className: t2,
|
|
295
295
|
"data-component": "Table.Pagination.Range",
|
|
296
296
|
children: [
|
|
@@ -309,7 +309,7 @@ function Range(t0) {
|
|
|
309
309
|
} else t5 = $[10];
|
|
310
310
|
let t6;
|
|
311
311
|
if ($[11] !== t1 || $[12] !== t5) {
|
|
312
|
-
t6 =
|
|
312
|
+
t6 = /* @__PURE__ */ jsxs(Fragment$1, { children: [t1, t5] });
|
|
313
313
|
$[11] = t1;
|
|
314
314
|
$[12] = t5;
|
|
315
315
|
$[13] = t6;
|
|
@@ -320,7 +320,7 @@ function TruncationStep() {
|
|
|
320
320
|
const $ = c(1);
|
|
321
321
|
let t0;
|
|
322
322
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
323
|
-
t0 =
|
|
323
|
+
t0 = /* @__PURE__ */ jsx("li", {
|
|
324
324
|
"aria-hidden": "true",
|
|
325
325
|
className: clsx("TablePaginationTruncationStep", Pagination_module_css_default.TablePaginationTruncationStep),
|
|
326
326
|
"data-component": "Table.Pagination.TruncationStep",
|
|
@@ -340,7 +340,7 @@ function Step(t0) {
|
|
|
340
340
|
} else t1 = $[0];
|
|
341
341
|
let t2;
|
|
342
342
|
if ($[1] !== children) {
|
|
343
|
-
t2 =
|
|
343
|
+
t2 = /* @__PURE__ */ jsx("li", {
|
|
344
344
|
className: t1,
|
|
345
345
|
"data-component": "Table.Pagination.Step",
|
|
346
346
|
children
|
|
@@ -362,12 +362,12 @@ function Page(t0) {
|
|
|
362
362
|
const t3 = active ? true : void 0;
|
|
363
363
|
let t4;
|
|
364
364
|
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
365
|
-
t4 =
|
|
365
|
+
t4 = /* @__PURE__ */ jsx(VisuallyHidden, { children: "Page\xA0" });
|
|
366
366
|
$[1] = t4;
|
|
367
367
|
} else t4 = $[1];
|
|
368
368
|
let t5;
|
|
369
369
|
if ($[2] !== children || $[3] !== onClick || $[4] !== t2 || $[5] !== t3) {
|
|
370
|
-
t5 =
|
|
370
|
+
t5 = /* @__PURE__ */ jsxs(Button, {
|
|
371
371
|
className: t1,
|
|
372
372
|
type: "button",
|
|
373
373
|
"data-active": t2,
|