@primer/react 38.37.1-rc.f8f4193e4 → 38.38.0-rc.1d4172bf2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -1
- package/dist/ActionBar/ActionBar.js +2 -2
- package/dist/ActionList/Description.js +2 -2
- package/dist/ActionList/Divider.js +1 -1
- package/dist/ActionList/Group.js +4 -4
- package/dist/ActionList/GroupHeadingTrailingAction.js +1 -1
- package/dist/ActionList/Heading.js +3 -3
- package/dist/ActionList/Item.js +3 -3
- package/dist/ActionList/List.js +2 -2
- package/dist/ActionList/Selection.js +1 -1
- package/dist/ActionList/TrailingAction.js +2 -2
- package/dist/ActionList/Visuals.js +2 -2
- package/dist/ActionMenu/ActionMenu.js +2 -2
- package/dist/AnchoredOverlay/AnchoredOverlay.js +3 -3
- package/dist/Autocomplete/Autocomplete.js +1 -1
- package/dist/Autocomplete/AutocompleteInput.js +7 -2
- package/dist/Autocomplete/AutocompleteMenu.js +81 -75
- package/dist/Autocomplete/AutocompleteOverlay.js +2 -2
- package/dist/Avatar/Avatar.js +2 -2
- package/dist/AvatarStack/AvatarStack.js +2 -2
- package/dist/Banner/Banner.js +2 -2
- package/dist/BaseStyles.js +1 -1
- package/dist/Blankslate/Blankslate.js +2 -2
- package/dist/BranchName/BranchName.js +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.js +2 -2
- package/dist/Button/Button.js +1 -1
- package/dist/Button/ButtonBase.js +4 -4
- package/dist/Button/IconButton.js +2 -2
- package/dist/Button/LinkButton.js +1 -1
- package/dist/ButtonGroup/ButtonGroup.js +2 -2
- package/dist/Card/Card.js +2 -2
- package/dist/Checkbox/Checkbox.js +2 -2
- package/dist/CheckboxGroup/CheckboxGroup.js +1 -1
- package/dist/CircleBadge/CircleBadge.js +1 -1
- package/dist/ConfirmationDialog/ConfirmationDialog.js +1 -1
- package/dist/CounterLabel/CounterLabel.js +3 -3
- package/dist/DataTable/Pagination.js +4 -4
- package/dist/DataTable/Table.js +3 -3
- package/dist/Details/Details.js +2 -2
- package/dist/Dialog/Dialog.js +3 -3
- package/dist/FeatureFlags/FeatureFlags.js +1 -1
- package/dist/FilteredActionList/FilteredActionList.js +2 -2
- package/dist/FilteredActionList/FilteredActionListInput.js +1 -1
- package/dist/FilteredActionList/useAnnouncements.js +1 -1
- package/dist/Flash/Flash.js +2 -2
- package/dist/FormControl/FormControl.js +3 -3
- package/dist/FormControl/FormControlCaption.js +1 -1
- package/dist/Header/Header.js +2 -2
- package/dist/Heading/Heading.js +2 -2
- package/dist/Hidden/Hidden.js +1 -1
- package/dist/InlineMessage/InlineMessage.js +1 -1
- package/dist/KeybindingHint/KeybindingHint.js +2 -2
- package/dist/KeybindingHint/components/Chord.js +3 -3
- package/dist/KeybindingHint/components/Sequence.js +3 -3
- package/dist/Label/Label.js +2 -2
- package/dist/LabelGroup/LabelGroup.js +2 -2
- package/dist/Link/Link.js +2 -2
- package/dist/NavList/NavList.js +5 -5
- package/dist/Octicon/Octicon.js +1 -1
- package/dist/Overlay/Overlay.js +2 -2
- package/dist/PageHeader/PageHeader.js +3 -3
- package/dist/PageLayout/DragHandle.js +1 -1
- package/dist/PageLayout/PageLayout.js +2 -2
- package/dist/Pagehead/Pagehead.js +1 -1
- package/dist/Pagination/Pagination.js +3 -3
- package/dist/Popover/Popover.js +2 -2
- package/dist/ProgressBar/ProgressBar.js +2 -2
- package/dist/Radio/Radio.js +2 -2
- package/dist/RelativeTime/RelativeTime.js +2 -1
- package/dist/ScrollableRegion/ScrollableRegion.js +2 -2
- package/dist/SegmentedControl/SegmentedControl.js +3 -3
- package/dist/SegmentedControl/SegmentedControlButton.js +1 -1
- package/dist/SegmentedControl/SegmentedControlIconButton.js +1 -1
- package/dist/Select/Select.js +2 -2
- package/dist/SelectPanel/SelectPanel.js +4 -4
- package/dist/SelectPanel/SelectPanelMessage.js +1 -1
- package/dist/SideNav.js +1 -1
- package/dist/Skeleton/SkeletonBox.js +2 -2
- package/dist/SkeletonAvatar/SkeletonAvatar.js +1 -1
- package/dist/SkeletonText/SkeletonText.js +1 -1
- package/dist/Spinner/Spinner.js +2 -2
- package/dist/Stack/Stack.js +2 -2
- package/dist/StateLabel/StateLabel.js +2 -2
- package/dist/SubNav/SubNav.js +2 -2
- package/dist/TabNav/TabNav.js +2 -2
- package/dist/Text/Text.js +1 -1
- package/dist/TextInput/TextInput.js +5 -5
- package/dist/TextInputWithTokens/TextInputWithTokens.js +2 -2
- package/dist/Textarea/Textarea.js +3 -3
- package/dist/ThemeProvider.js +1 -1
- package/dist/Timeline/Timeline.js +2 -2
- package/dist/ToggleSwitch/ToggleSwitch.js +3 -3
- package/dist/Token/IssueLabelToken.js +2 -2
- package/dist/Token/Token.js +2 -2
- package/dist/Token/TokenBase.js +2 -2
- package/dist/Token/_RemoveTokenButton.js +1 -1
- package/dist/Token/_TokenTextContainer.js +1 -1
- package/dist/Tooltip/Tooltip.js +2 -2
- package/dist/TooltipV2/Tooltip.js +4 -4
- package/dist/TopicTag/TopicTag.js +1 -1
- package/dist/TopicTag/TopicTagGroup.js +1 -1
- package/dist/TreeView/TreeView.js +9 -9
- package/dist/Truncate/Truncate.js +2 -2
- package/dist/UnderlineNav/UnderlineNav.js +2 -2
- package/dist/UnderlineNav/UnderlineNavItem.js +1 -1
- package/dist/VisuallyHidden/VisuallyHidden.js +1 -1
- package/dist/_VisuallyHidden.js +1 -1
- package/dist/deprecated/ActionList/Header.js +1 -1
- package/dist/deprecated/ActionList/Item.js +3 -3
- package/dist/deprecated/ActionList/List.js +2 -2
- package/dist/deprecated/ActionMenu.js +1 -1
- package/dist/deprecated/DialogV1/Dialog.js +3 -3
- package/dist/deprecated/FilteredSearch/FilteredSearch.js +1 -1
- package/dist/deprecated/UnderlineNav/UnderlineNav.js +2 -2
- package/dist/experimental/IssueLabel/IssueLabel.js +1 -1
- package/dist/experimental/SelectPanel2/SelectPanel.js +6 -6
- package/dist/experimental/Tabs/Tabs.js +1 -1
- package/dist/experimental/UnderlinePanels/UnderlinePanels.js +6 -6
- package/dist/experimental/index.d.ts +3 -3
- package/dist/experimental/index.js +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/internal/components/ButtonReset.js +1 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js +3 -3
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupCaption.js +2 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.js +2 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.js +1 -1
- package/dist/internal/components/InputLabel.js +1 -1
- package/dist/internal/components/InputValidation.js +1 -1
- package/dist/internal/components/OverflowObserverProvider.js +1 -1
- package/dist/internal/components/TextInputInnerAction.js +3 -3
- package/dist/internal/components/TextInputInnerVisualSlot.js +1 -1
- package/dist/internal/components/TextInputWrapper.js +2 -2
- package/dist/internal/components/UnderlineTabbedInterface-a5cd75c0.css +2 -0
- package/dist/internal/components/UnderlineTabbedInterface-a5cd75c0.css.map +1 -0
- package/dist/internal/components/UnderlineTabbedInterface.js +2 -2
- package/dist/internal/components/UnderlineTabbedInterface.module.css.js +1 -1
- package/dist/internal/components/UnstyledTextInput.js +2 -2
- package/dist/internal/components/ValidationAnimationContainer.js +1 -1
- package/dist/live-region/Announce.js +2 -2
- package/dist/live-region/AriaAlert.d.ts +1 -1
- package/dist/utils/descendant-registry.js +1 -1
- package/generated/components.json +73 -0
- package/package.json +2 -2
- package/dist/internal/components/UnderlineTabbedInterface-8a52007f.css +0 -2
- package/dist/internal/components/UnderlineTabbedInterface-8a52007f.css.map +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import { AriaStatus } from "../live-region/AriaStatus.js";
|
|
1
2
|
import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
2
3
|
import { VisuallyHidden } from "../VisuallyHidden/VisuallyHidden.js";
|
|
3
4
|
import { useId as useId$1 } from "../hooks/useId.js";
|
|
4
5
|
import Spinner from "../Spinner/Spinner.js";
|
|
5
6
|
import CounterLabel from "../CounterLabel/CounterLabel.js";
|
|
6
7
|
import { ConditionalWrapper } from "../internal/components/ConditionalWrapper.js";
|
|
7
|
-
import { AriaStatus } from "../live-region/AriaStatus.js";
|
|
8
8
|
import ButtonBase_module_css_default from "./ButtonBase.module.css.js";
|
|
9
|
-
import { clsx } from "clsx";
|
|
10
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
9
|
import React, { forwardRef } from "react";
|
|
10
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { clsx } from "clsx";
|
|
12
12
|
import { isElement } from "react-is";
|
|
13
13
|
//#region src/Button/ButtonBase.tsx
|
|
14
14
|
const renderModuleVisual = (Visual, loading, visualName, counterLabel) => /*#__PURE__*/ jsx("span", {
|
|
@@ -53,7 +53,7 @@ const ButtonBase = /*#__PURE__*/ forwardRef(({ children, as: Component = "button
|
|
|
53
53
|
"aria-labelledby": loading ? [`${uuid}-label`, ariaLabelledBy].filter((labelID) => Boolean(labelID)).join(" ") : ariaLabelledBy,
|
|
54
54
|
id,
|
|
55
55
|
onClick: loading ? void 0 : onClick,
|
|
56
|
-
children: Icon ? loading ? /*#__PURE__*/ jsx(Spinner, { size: "small" }) : isElement(Icon) ? Icon : /*#__PURE__*/ jsx(Icon, {}) : /*#__PURE__*/ jsxs(Fragment, { children: [/*#__PURE__*/ jsxs("span", {
|
|
56
|
+
children: Icon ? loading ? /*#__PURE__*/ jsx(Spinner, { size: "small" }) : isElement(Icon) ? Icon : /*#__PURE__*/ jsx(Icon, {}) : /*#__PURE__*/ jsxs(Fragment$1, { children: [/*#__PURE__*/ jsxs("span", {
|
|
57
57
|
"data-component": "buttonContent",
|
|
58
58
|
"data-align": alignContent,
|
|
59
59
|
className: ButtonBase_module_css_default.ButtonContent,
|
|
@@ -4,9 +4,9 @@ import { TooltipContext } from "../TooltipV2/TooltipContext.js";
|
|
|
4
4
|
import { Tooltip } from "../TooltipV2/Tooltip.js";
|
|
5
5
|
import { TooltipContext as TooltipContext$1 } from "../Tooltip/TooltipContext.js";
|
|
6
6
|
import { c } from "react-compiler-runtime";
|
|
7
|
-
import { clsx } from "clsx";
|
|
8
|
-
import { jsx } from "react/jsx-runtime";
|
|
9
7
|
import React, { forwardRef } from "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
import { clsx } from "clsx";
|
|
10
10
|
//#region src/Button/IconButton.tsx
|
|
11
11
|
const IconButton = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
12
12
|
const $ = c(36);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ButtonBase } from "./ButtonBase.js";
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { forwardRef } from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/Button/LinkButton.tsx
|
|
6
6
|
const LinkButton = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
7
7
|
const $ = c(9);
|
|
@@ -4,9 +4,9 @@ import { useFeatureFlag } from "../FeatureFlags/useFeatureFlag.js";
|
|
|
4
4
|
import { FocusKeys, useFocusZone } from "../hooks/useFocusZone.js";
|
|
5
5
|
import ButtonGroup_module_css_default from "./ButtonGroup.module.css.js";
|
|
6
6
|
import { c } from "react-compiler-runtime";
|
|
7
|
-
import { clsx } from "clsx";
|
|
8
|
-
import { jsx } from "react/jsx-runtime";
|
|
9
7
|
import React, { useRef } from "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
import { clsx } from "clsx";
|
|
10
10
|
//#region src/ButtonGroup/ButtonGroup.tsx
|
|
11
11
|
const ButtonGroup = /*#__PURE__*/ React.forwardRef(function ButtonGroup(t0, forwardRef) {
|
|
12
12
|
const $ = c(20);
|
package/dist/Card/Card.js
CHANGED
|
@@ -2,9 +2,9 @@ import { useId as useId$1 } from "../hooks/useId.js";
|
|
|
2
2
|
import { fixedForwardRef } from "../utils/modern-polymorphic.js";
|
|
3
3
|
import Card_module_css_default from "./Card.module.css.js";
|
|
4
4
|
import { c } from "react-compiler-runtime";
|
|
5
|
-
import { clsx } from "clsx";
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
5
|
import React, { createContext, forwardRef, useContext } from "react";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { clsx } from "clsx";
|
|
8
8
|
//#region src/Card/Card.tsx
|
|
9
9
|
const CardContext = /*#__PURE__*/ createContext({});
|
|
10
10
|
function CardComponent(props, ref) {
|
|
@@ -5,9 +5,9 @@ import { useFeatureFlag } from "../FeatureFlags/useFeatureFlag.js";
|
|
|
5
5
|
import shared_module_css_default from "./shared.module.css.js";
|
|
6
6
|
import { CheckboxGroupContext } from "../CheckboxGroup/CheckboxGroupContext.js";
|
|
7
7
|
import Checkbox_module_css_default from "./Checkbox.module.css.js";
|
|
8
|
-
import { clsx } from "clsx";
|
|
9
|
-
import { jsx } from "react/jsx-runtime";
|
|
10
8
|
import React, { useContext, useEffect, useRef } from "react";
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
import { clsx } from "clsx";
|
|
11
11
|
//#region src/Checkbox/Checkbox.tsx
|
|
12
12
|
/**
|
|
13
13
|
* An accessible, native checkbox component
|
|
@@ -8,8 +8,8 @@ import { CheckboxGroupContext } from "./CheckboxGroupContext.js";
|
|
|
8
8
|
import Checkbox from "../Checkbox/Checkbox.js";
|
|
9
9
|
import FormControl_default from "../FormControl/FormControl.js";
|
|
10
10
|
import { c } from "react-compiler-runtime";
|
|
11
|
-
import { jsx } from "react/jsx-runtime";
|
|
12
11
|
import React from "react";
|
|
12
|
+
import { jsx } from "react/jsx-runtime";
|
|
13
13
|
//#region src/CheckboxGroup/CheckboxGroup.tsx
|
|
14
14
|
const CheckboxGroup = (t0) => {
|
|
15
15
|
const $ = c(24);
|
|
@@ -2,8 +2,8 @@ import Octicon from "../Octicon/Octicon.js";
|
|
|
2
2
|
import isNumeric from "../utils/isNumeric.js";
|
|
3
3
|
import CircleBadge_module_css_default from "./CircleBadge.module.css.js";
|
|
4
4
|
import { c } from "react-compiler-runtime";
|
|
5
|
-
import { clsx } from "clsx";
|
|
6
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { clsx } from "clsx";
|
|
7
7
|
//#region src/CircleBadge/CircleBadge.tsx
|
|
8
8
|
const variantSizes = {
|
|
9
9
|
small: 56,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Dialog } from "../Dialog/Dialog.js";
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/ConfirmationDialog/ConfirmationDialog.tsx
|
|
6
6
|
/**
|
|
7
7
|
* Props to customize the ConfirmationDialog.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { VisuallyHidden } from "../VisuallyHidden/VisuallyHidden.js";
|
|
2
2
|
import CounterLabel_module_css_default from "./CounterLabel.module.css.js";
|
|
3
|
-
import { clsx } from "clsx";
|
|
4
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
3
|
import { forwardRef } from "react";
|
|
4
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
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
8
|
const label = /*#__PURE__*/ jsxs(VisuallyHidden, { children: [
|
|
@@ -17,7 +17,7 @@ const CounterLabel = /*#__PURE__*/ forwardRef(({ variant, scheme, className, chi
|
|
|
17
17
|
["data-variant"]: inferredVariant,
|
|
18
18
|
...rest
|
|
19
19
|
};
|
|
20
|
-
return /*#__PURE__*/ jsxs(Fragment, { children: [/*#__PURE__*/ jsx("span", {
|
|
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),
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import { AriaStatus } from "../live-region/AriaStatus.js";
|
|
1
2
|
import { VisuallyHidden } from "../VisuallyHidden/VisuallyHidden.js";
|
|
2
3
|
import { warning } from "../utils/warning.js";
|
|
3
|
-
import { AriaStatus } from "../live-region/AriaStatus.js";
|
|
4
4
|
import { viewportRanges } from "../hooks/useResponsiveValue.js";
|
|
5
5
|
import { buildPaginationModel } from "../Pagination/model.js";
|
|
6
6
|
import { Button } from "../internal/components/ButtonReset.js";
|
|
7
7
|
import Pagination_module_css_default from "./Pagination.module.css.js";
|
|
8
8
|
import { c } from "react-compiler-runtime";
|
|
9
|
-
import { clsx } from "clsx";
|
|
10
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
9
|
import { useState } from "react";
|
|
10
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { clsx } from "clsx";
|
|
12
12
|
import { ChevronLeftIcon, ChevronRightIcon } from "@primer/octicons-react";
|
|
13
13
|
//#region src/DataTable/Pagination.tsx
|
|
14
14
|
const defaultShowPages = { narrow: false };
|
|
@@ -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 = /*#__PURE__*/ jsxs(Fragment, { children: [t1, t5] });
|
|
312
|
+
t6 = /*#__PURE__*/ jsxs(Fragment$1, { children: [t1, t5] });
|
|
313
313
|
$[11] = t1;
|
|
314
314
|
$[12] = t5;
|
|
315
315
|
$[13] = t6;
|
package/dist/DataTable/Table.js
CHANGED
|
@@ -7,9 +7,9 @@ import { useTableLayout } from "./useTable.js";
|
|
|
7
7
|
import { Button } from "../internal/components/ButtonReset.js";
|
|
8
8
|
import Table_module_css_default from "./Table.module.css.js";
|
|
9
9
|
import { c } from "react-compiler-runtime";
|
|
10
|
-
import { clsx } from "clsx";
|
|
11
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
12
10
|
import React from "react";
|
|
11
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
+
import { clsx } from "clsx";
|
|
13
13
|
import { SortAscIcon, SortDescIcon } from "@primer/octicons-react";
|
|
14
14
|
//#region src/DataTable/Table.tsx
|
|
15
15
|
const Table = /*#__PURE__*/ React.forwardRef(function Table(t0, ref) {
|
|
@@ -205,7 +205,7 @@ function TableSortHeader(t0) {
|
|
|
205
205
|
} else t2 = $[8];
|
|
206
206
|
let t3;
|
|
207
207
|
if ($[9] !== direction) {
|
|
208
|
-
t3 = direction === SortDirection.NONE || direction === SortDirection.ASC ? /*#__PURE__*/ jsxs(Fragment, { children: [/*#__PURE__*/ jsx(SortAscIcon, { className: clsx("TableSortIcon", "TableSortIcon--ascending", Table_module_css_default.TableSortIcon, Table_module_css_default["TableSortIcon--ascending"]) }), direction === SortDirection.NONE ? /*#__PURE__*/ jsx(VisuallyHidden, { children: "sort ascending" }) : null] }) : null;
|
|
208
|
+
t3 = direction === SortDirection.NONE || direction === SortDirection.ASC ? /*#__PURE__*/ jsxs(Fragment$1, { children: [/*#__PURE__*/ jsx(SortAscIcon, { className: clsx("TableSortIcon", "TableSortIcon--ascending", Table_module_css_default.TableSortIcon, Table_module_css_default["TableSortIcon--ascending"]) }), direction === SortDirection.NONE ? /*#__PURE__*/ jsx(VisuallyHidden, { children: "sort ascending" }) : null] }) : null;
|
|
209
209
|
$[9] = direction;
|
|
210
210
|
$[10] = t3;
|
|
211
211
|
} else t3 = $[10];
|
package/dist/Details/Details.js
CHANGED
|
@@ -2,9 +2,9 @@ import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
|
2
2
|
import { warning } from "../utils/warning.js";
|
|
3
3
|
import Details_module_css_default from "./Details.module.css.js";
|
|
4
4
|
import { c } from "react-compiler-runtime";
|
|
5
|
-
import { clsx } from "clsx";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
5
|
import React, { useEffect } from "react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { clsx } from "clsx";
|
|
8
8
|
//#region src/Details/Details.tsx
|
|
9
9
|
const Root = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
|
|
10
10
|
var _dataComponent;
|
package/dist/Dialog/Dialog.js
CHANGED
|
@@ -13,9 +13,9 @@ import Portal_default from "../Portal/index.js";
|
|
|
13
13
|
import { ScrollableRegion } from "../ScrollableRegion/ScrollableRegion.js";
|
|
14
14
|
import Dialog_module_css_default from "./Dialog.module.css.js";
|
|
15
15
|
import { DialogContext } from "./DialogContext.js";
|
|
16
|
-
import { clsx } from "clsx";
|
|
17
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
18
16
|
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
17
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
18
|
+
import { clsx } from "clsx";
|
|
19
19
|
import { FocusKeys } from "@primer/behaviors";
|
|
20
20
|
import { XIcon } from "@primer/octicons-react";
|
|
21
21
|
//#region src/Dialog/Dialog.tsx
|
|
@@ -261,7 +261,7 @@ const Buttons = ({ buttons }) => {
|
|
|
261
261
|
(_readRef$current = readRef.current) === null || _readRef$current === void 0 || _readRef$current.focus();
|
|
262
262
|
} else setHasRendered(hasRendered + 1);
|
|
263
263
|
}, [readRef, hasRendered]);
|
|
264
|
-
return /*#__PURE__*/ jsx(Fragment, { children: buttons.map((dialogButtonProps, index) => {
|
|
264
|
+
return /*#__PURE__*/ jsx(Fragment$1, { children: buttons.map((dialogButtonProps, index) => {
|
|
265
265
|
const { content, buttonType = "default", autoFocus = false, ...buttonProps } = dialogButtonProps;
|
|
266
266
|
return /*#__PURE__*/ jsx(ButtonComponent, {
|
|
267
267
|
"data-component": "Dialog.FooterButton",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FeatureFlagScope } from "./FeatureFlagScope.js";
|
|
2
2
|
import { FeatureFlagContext } from "./FeatureFlagContext.js";
|
|
3
3
|
import { c } from "react-compiler-runtime";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { useContext } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/FeatureFlags/FeatureFlags.tsx
|
|
7
7
|
function FeatureFlags(t0) {
|
|
8
8
|
const $ = c(6);
|
|
@@ -14,9 +14,9 @@ import { FilteredActionListBodyLoader } from "./FilteredActionListLoaders.js";
|
|
|
14
14
|
import FilteredActionList_module_css_default from "./FilteredActionList.module.css.js";
|
|
15
15
|
import { useAnnouncements } from "./useAnnouncements.js";
|
|
16
16
|
import { FilteredActionListInput } from "./FilteredActionListInput.js";
|
|
17
|
-
import { clsx } from "clsx";
|
|
18
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
17
|
import { forwardRef, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
18
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
+
import { clsx } from "clsx";
|
|
20
20
|
import { FocusKeys, scrollIntoView } from "@primer/behaviors";
|
|
21
21
|
import { isValidElementType } from "react-is";
|
|
22
22
|
import { useVirtualizer } from "@tanstack/react-virtual";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import TextInput_default from "../TextInput/TextInput.js";
|
|
2
2
|
import FilteredActionList_module_css_default from "./FilteredActionList.module.css.js";
|
|
3
3
|
import { c } from "react-compiler-runtime";
|
|
4
|
-
import { clsx } from "clsx";
|
|
5
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { clsx } from "clsx";
|
|
6
6
|
//#region src/FilteredActionList/FilteredActionListInput.tsx
|
|
7
7
|
function FilteredActionListInput(t0) {
|
|
8
8
|
const $ = c(28);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useCallback, useEffect, useRef } from "react";
|
|
2
1
|
import { announce } from "@primer/live-region-element";
|
|
2
|
+
import { useCallback, useEffect, useRef } from "react";
|
|
3
3
|
//#region src/FilteredActionList/useAnnouncements.tsx
|
|
4
4
|
const delayMs = 500;
|
|
5
5
|
const useFirstRender = () => {
|
package/dist/Flash/Flash.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Flash_module_css_default from "./Flash.module.css.js";
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
|
-
import { clsx } from "clsx";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
3
|
import React from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { clsx } from "clsx";
|
|
6
6
|
//#region src/Flash/Flash.tsx
|
|
7
7
|
/**
|
|
8
8
|
* @deprecated Use `Banner` instead. If migration is not yet possible, import `Flash` from `@primer/react/deprecated`.
|
|
@@ -19,9 +19,9 @@ import FormControlLeadingVisual from "./FormControlLeadingVisual.js";
|
|
|
19
19
|
import FormControlValidation from "./_FormControlValidation.js";
|
|
20
20
|
import FormControl_module_css_default from "./FormControl.module.css.js";
|
|
21
21
|
import { c } from "react-compiler-runtime";
|
|
22
|
-
import { clsx } from "clsx";
|
|
23
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
24
22
|
import React, { useContext } from "react";
|
|
23
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
24
|
+
import { clsx } from "clsx";
|
|
25
25
|
var FormControl_default = Object.assign(/* @__PURE__ */ React.forwardRef((t0, ref) => {
|
|
26
26
|
var _slots$validation, _slots$label;
|
|
27
27
|
const $ = c(32);
|
|
@@ -125,7 +125,7 @@ var FormControl_default = Object.assign(/* @__PURE__ */ React.forwardRef((t0, re
|
|
|
125
125
|
} else t8 = $[15];
|
|
126
126
|
let t9;
|
|
127
127
|
if ($[16] !== t6 || $[17] !== t7 || $[18] !== t8) {
|
|
128
|
-
t9 = /*#__PURE__*/ jsxs(Fragment, { children: [
|
|
128
|
+
t9 = /*#__PURE__*/ jsxs(Fragment$1, { children: [
|
|
129
129
|
t6,
|
|
130
130
|
t7,
|
|
131
131
|
t8
|
|
@@ -2,8 +2,8 @@ import Text_default from "../Text/Text.js";
|
|
|
2
2
|
import { useFormControlContext } from "./_FormControlContext.js";
|
|
3
3
|
import FormControlCaption_module_css_default from "./FormControlCaption.module.css.js";
|
|
4
4
|
import { c } from "react-compiler-runtime";
|
|
5
|
-
import { clsx } from "clsx";
|
|
6
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { clsx } from "clsx";
|
|
7
7
|
//#region src/FormControl/FormControlCaption.tsx
|
|
8
8
|
function FormControlCaption(t0) {
|
|
9
9
|
const $ = c(8);
|
package/dist/Header/Header.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Header_module_css_default from "./Header.module.css.js";
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
|
-
import { clsx } from "clsx";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
3
|
import React from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { clsx } from "clsx";
|
|
6
6
|
//#region src/Header/Header.tsx
|
|
7
7
|
const Header = /*#__PURE__*/ React.forwardRef(function Header(t0, forwardRef) {
|
|
8
8
|
const $ = c(13);
|
package/dist/Heading/Heading.js
CHANGED
|
@@ -2,9 +2,9 @@ import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
|
2
2
|
import { useDevOnlyEffect } from "../internal/hooks/useDevOnlyEffect.js";
|
|
3
3
|
import Heading_module_css_default from "./Heading.module.css.js";
|
|
4
4
|
import { c } from "react-compiler-runtime";
|
|
5
|
-
import { clsx } from "clsx";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
5
|
import React, { forwardRef } from "react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { clsx } from "clsx";
|
|
8
8
|
//#region src/Heading/Heading.tsx
|
|
9
9
|
const Heading = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
10
10
|
const $ = c(15);
|
package/dist/Hidden/Hidden.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Hidden_module_css_default from "./Hidden.module.css.js";
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
|
-
import { clsx } from "clsx";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { clsx } from "clsx";
|
|
5
5
|
//#region src/Hidden/Hidden.tsx
|
|
6
6
|
function normalize(hiddenViewports) {
|
|
7
7
|
if (Array.isArray(hiddenViewports)) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import InlineMessage_module_css_default from "./InlineMessage.module.css.js";
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
|
-
import { clsx } from "clsx";
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { clsx } from "clsx";
|
|
5
5
|
import { isValidElementType } from "react-is";
|
|
6
6
|
import { AlertFillIcon, AlertIcon, CheckCircleFillIcon, CheckCircleIcon, InfoIcon } from "@primer/octicons-react";
|
|
7
7
|
//#region src/InlineMessage/InlineMessage.tsx
|
|
@@ -2,9 +2,9 @@ import Text_default from "../Text/Text.js";
|
|
|
2
2
|
import { Sequence } from "./components/Sequence.js";
|
|
3
3
|
import KeybindingHint_module_css_default from "./KeybindingHint.module.css.js";
|
|
4
4
|
import { c } from "react-compiler-runtime";
|
|
5
|
-
import { clsx } from "clsx";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
5
|
import { memo } from "react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { clsx } from "clsx";
|
|
8
8
|
//#region src/KeybindingHint/KeybindingHint.tsx
|
|
9
9
|
/** `kbd` element with style resets. */
|
|
10
10
|
const Kbd = (t0) => {
|
|
@@ -3,9 +3,9 @@ import { Key } from "./Key.js";
|
|
|
3
3
|
import Chord_module_css_default from "./Chord.module.css.js";
|
|
4
4
|
import { splitChord } from "./utils.js";
|
|
5
5
|
import { c } from "react-compiler-runtime";
|
|
6
|
-
import {
|
|
6
|
+
import { Fragment } from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
import {
|
|
8
|
+
import { clsx } from "clsx";
|
|
9
9
|
//#region src/KeybindingHint/components/Chord.tsx
|
|
10
10
|
const Chord = (t0) => {
|
|
11
11
|
const $ = c(13);
|
|
@@ -35,7 +35,7 @@ const Chord = (t0) => {
|
|
|
35
35
|
if ($[5] !== format || $[6] !== keys) {
|
|
36
36
|
let t10;
|
|
37
37
|
if ($[8] !== format) {
|
|
38
|
-
t10 = (k, i) => /*#__PURE__*/ jsxs(Fragment
|
|
38
|
+
t10 = (k, i) => /*#__PURE__*/ jsxs(Fragment, { children: [i > 0 && format === "full" ? /*#__PURE__*/ jsx("span", {
|
|
39
39
|
"aria-hidden": true,
|
|
40
40
|
children: " + "
|
|
41
41
|
}) : " ", /*#__PURE__*/ jsx(Key, {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import VisuallyHidden from "../../_VisuallyHidden.js";
|
|
2
2
|
import { Chord } from "./Chord.js";
|
|
3
|
-
import { Fragment
|
|
4
|
-
import { Fragment as Fragment$1 } from "react";
|
|
3
|
+
import { Fragment } from "react";
|
|
4
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region src/KeybindingHint/components/Sequence.tsx
|
|
6
6
|
const splitSequence = (sequence) => sequence.split(" ");
|
|
7
|
-
const Sequence = ({ keys, ...chordProps }) => splitSequence(keys).map((c, i) => /*#__PURE__*/ jsxs(Fragment
|
|
7
|
+
const Sequence = ({ keys, ...chordProps }) => splitSequence(keys).map((c, i) => /*#__PURE__*/ jsxs(Fragment, { children: [i > 0 && /*#__PURE__*/ jsxs(Fragment$1, { children: [/*#__PURE__*/ jsx(VisuallyHidden, { children: "then" }), " "] }), /*#__PURE__*/ jsx(Chord, {
|
|
8
8
|
keys: c,
|
|
9
9
|
...chordProps
|
|
10
10
|
})] }, i));
|
package/dist/Label/Label.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Label_module_css_default from "./Label.module.css.js";
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
|
-
import { clsx } from "clsx";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
3
|
import React from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { clsx } from "clsx";
|
|
6
6
|
//#region src/Label/Label.tsx
|
|
7
7
|
const Label = /*#__PURE__*/ React.forwardRef(function Label(t0, ref) {
|
|
8
8
|
const $ = c(15);
|
|
@@ -3,9 +3,9 @@ import { IconButton } from "../Button/IconButton.js";
|
|
|
3
3
|
import { ButtonComponent } from "../Button/Button.js";
|
|
4
4
|
import { AnchoredOverlay } from "../AnchoredOverlay/AnchoredOverlay.js";
|
|
5
5
|
import LabelGroup_module_css_default from "./LabelGroup.module.css.js";
|
|
6
|
-
import { clsx } from "clsx";
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
6
|
import React from "react";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { clsx } from "clsx";
|
|
9
9
|
import { getFocusableChild } from "@primer/behaviors/utils";
|
|
10
10
|
import { XIcon } from "@primer/octicons-react";
|
|
11
11
|
//#region src/LabelGroup/LabelGroup.tsx
|
package/dist/Link/Link.js
CHANGED
|
@@ -3,9 +3,9 @@ import { fixedForwardRef } from "../utils/modern-polymorphic.js";
|
|
|
3
3
|
import { useDevOnlyEffect } from "../internal/hooks/useDevOnlyEffect.js";
|
|
4
4
|
import Link_module_css_default from "./Link.module.css.js";
|
|
5
5
|
import { c } from "react-compiler-runtime";
|
|
6
|
-
import { clsx } from "clsx";
|
|
7
|
-
import { jsx } from "react/jsx-runtime";
|
|
8
6
|
import React from "react";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
import { clsx } from "clsx";
|
|
9
9
|
//#region src/Link/Link.tsx
|
|
10
10
|
const UnwrappedLink = (props, ref) => {
|
|
11
11
|
const $ = c(17);
|
package/dist/NavList/NavList.js
CHANGED
|
@@ -11,9 +11,9 @@ import { SubItem } from "../ActionList/Item.js";
|
|
|
11
11
|
import { ActionList } from "../ActionList/index.js";
|
|
12
12
|
import NavList_module_css_default from "./NavList.module.css.js";
|
|
13
13
|
import { c } from "react-compiler-runtime";
|
|
14
|
-
import { clsx } from "clsx";
|
|
15
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
16
14
|
import React, { createElement, isValidElement } from "react";
|
|
15
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
+
import { clsx } from "clsx";
|
|
17
17
|
import { ChevronDownIcon, PlusIcon } from "@primer/octicons-react";
|
|
18
18
|
import { flushSync } from "react-dom";
|
|
19
19
|
//#region src/NavList/NavList.tsx
|
|
@@ -472,7 +472,7 @@ const Group = (t0) => {
|
|
|
472
472
|
} else t7 = $[22];
|
|
473
473
|
let t8;
|
|
474
474
|
if ($[23] !== t5 || $[24] !== t7) {
|
|
475
|
-
t8 = /*#__PURE__*/ jsxs(Fragment, { children: [t5, t7] });
|
|
475
|
+
t8 = /*#__PURE__*/ jsxs(Fragment$1, { children: [t5, t7] });
|
|
476
476
|
$[23] = t5;
|
|
477
477
|
$[24] = t7;
|
|
478
478
|
$[25] = t8;
|
|
@@ -510,7 +510,7 @@ const GroupExpand = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) => {
|
|
|
510
510
|
const focusTargetIndex = currentPage === 1 ? 0 : amountToShow - Math.floor(itemsPerPage);
|
|
511
511
|
let t3;
|
|
512
512
|
if ($[6] !== amountToShow || $[7] !== currentPage || $[8] !== focusTargetIndex || $[9] !== groupId || $[10] !== items || $[11] !== renderItem) {
|
|
513
|
-
t3 = currentPage > 0 ? /*#__PURE__*/ jsx(Fragment, { children: items.map((itemArr, index) => {
|
|
513
|
+
t3 = currentPage > 0 ? /*#__PURE__*/ jsx(Fragment$1, { children: items.map((itemArr, index) => {
|
|
514
514
|
const { text, trailingVisual: TrailingVisualIcon, leadingVisual: LeadingVisualIcon, trailingAction, ...rest } = itemArr;
|
|
515
515
|
const { icon, label: actionLabel, ...actionProps } = trailingAction || {};
|
|
516
516
|
const focusTarget = index === focusTargetIndex ? groupId : void 0;
|
|
@@ -564,7 +564,7 @@ const GroupExpand = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) => {
|
|
|
564
564
|
} else t4 = $[19];
|
|
565
565
|
let t5;
|
|
566
566
|
if ($[20] !== t3 || $[21] !== t4) {
|
|
567
|
-
t5 = /*#__PURE__*/ jsxs(Fragment, { children: [t3, t4] });
|
|
567
|
+
t5 = /*#__PURE__*/ jsxs(Fragment$1, { children: [t3, t4] });
|
|
568
568
|
$[20] = t3;
|
|
569
569
|
$[21] = t4;
|
|
570
570
|
$[22] = t5;
|
package/dist/Octicon/Octicon.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c } from "react-compiler-runtime";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
2
|
import React from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/Octicon/Octicon.tsx
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated Use the icon component directly from `@primer/octicons-react` instead
|
package/dist/Overlay/Overlay.js
CHANGED
|
@@ -4,9 +4,9 @@ import { useOverlay } from "../hooks/useOverlay.js";
|
|
|
4
4
|
import { useFeatureFlag } from "../FeatureFlags/useFeatureFlag.js";
|
|
5
5
|
import Portal_default from "../Portal/index.js";
|
|
6
6
|
import Overlay_module_css_default from "./Overlay.module.css.js";
|
|
7
|
-
import { clsx } from "clsx";
|
|
8
|
-
import { jsx } from "react/jsx-runtime";
|
|
9
7
|
import React, { useEffect, useRef } from "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
import { clsx } from "clsx";
|
|
10
10
|
//#region src/Overlay/Overlay.tsx
|
|
11
11
|
const animationDuration = 200;
|
|
12
12
|
function getSlideAnimationStartingVector(anchorSide) {
|
|
@@ -10,9 +10,9 @@ import Link from "../Link/Link.js";
|
|
|
10
10
|
import { areAllValuesTheSame, haveRegularAndWideSameValue } from "../utils/getBreakpointDeclarations.js";
|
|
11
11
|
import PageHeader_module_css_default from "./PageHeader.module.css.js";
|
|
12
12
|
import { c } from "react-compiler-runtime";
|
|
13
|
-
import { clsx } from "clsx";
|
|
14
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
15
13
|
import React, { useEffect, useRef } from "react";
|
|
14
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
+
import { clsx } from "clsx";
|
|
16
16
|
import { ArrowLeftIcon } from "@primer/octicons-react";
|
|
17
17
|
//#region src/PageHeader/PageHeader.tsx
|
|
18
18
|
const hiddenOnRegularAndWide = {
|
|
@@ -211,7 +211,7 @@ const ParentLink = /*#__PURE__*/ React.forwardRef((t0, ref) => {
|
|
|
211
211
|
} else t6 = $[14];
|
|
212
212
|
let t7;
|
|
213
213
|
if ($[15] !== ariaLabel || $[16] !== as || $[17] !== href || $[18] !== ref || $[19] !== rest || $[20] !== t3 || $[21] !== t4 || $[22] !== t6) {
|
|
214
|
-
t7 = /*#__PURE__*/ jsx(Fragment, { children: /*#__PURE__*/ jsxs(Link, {
|
|
214
|
+
t7 = /*#__PURE__*/ jsx(Fragment$1, { children: /*#__PURE__*/ jsxs(Link, {
|
|
215
215
|
ref,
|
|
216
216
|
as,
|
|
217
217
|
"aria-label": ariaLabel,
|
|
@@ -2,8 +2,8 @@ import PageLayout_module_css_default from "./PageLayout.module.css.js";
|
|
|
2
2
|
import { defaultFormatValueText } from "./usePaneWidth.js";
|
|
3
3
|
import { removeDraggingStyles, setDraggingStyles } from "./paneUtils.js";
|
|
4
4
|
import { c } from "react-compiler-runtime";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
5
|
import React, { memo } from "react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/PageLayout/DragHandle.tsx
|
|
8
8
|
const isArrowKey = (key) => key === "ArrowLeft" || key === "ArrowRight" || key === "ArrowUp" || key === "ArrowDown";
|
|
9
9
|
const isShrinkKey = (key) => key === "ArrowLeft" || key === "ArrowDown";
|
|
@@ -9,9 +9,9 @@ import PageLayout_module_css_default from "./PageLayout.module.css.js";
|
|
|
9
9
|
import { isCustomWidthOptions, isPaneWidth, updateAriaValues, usePaneWidth } from "./usePaneWidth.js";
|
|
10
10
|
import { DragHandle } from "./DragHandle.js";
|
|
11
11
|
import { c } from "react-compiler-runtime";
|
|
12
|
-
import { clsx } from "clsx";
|
|
13
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
12
|
import React, { memo, useRef } from "react";
|
|
13
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
+
import { clsx } from "clsx";
|
|
15
15
|
//#region src/PageLayout/PageLayout.tsx
|
|
16
16
|
const PageLayoutContext = /*#__PURE__*/ React.createContext({
|
|
17
17
|
padding: "normal",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Pagehead_module_css_default from "./Pagehead.module.css.js";
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
|
-
import { clsx } from "clsx";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { clsx } from "clsx";
|
|
5
5
|
//#region src/Pagehead/Pagehead.tsx
|
|
6
6
|
const Pagehead = (t0) => {
|
|
7
7
|
const $ = c(10);
|
|
@@ -2,9 +2,9 @@ import { viewportRanges } from "../hooks/useResponsiveValue.js";
|
|
|
2
2
|
import { buildComponentData, buildPaginationModel } from "./model.js";
|
|
3
3
|
import Pagination_module_css_default from "./Pagination.module.css.js";
|
|
4
4
|
import { c } from "react-compiler-runtime";
|
|
5
|
-
import { clsx } from "clsx";
|
|
6
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
5
|
import "react";
|
|
6
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { clsx } from "clsx";
|
|
8
8
|
import { ChevronLeftIcon, ChevronRightIcon } from "@primer/octicons-react";
|
|
9
9
|
//#region src/Pagination/Pagination.tsx
|
|
10
10
|
const getViewportRangesToHidePages = (showPages) => {
|
|
@@ -29,7 +29,7 @@ const PageLabel = (t0) => {
|
|
|
29
29
|
} else t2 = $[3];
|
|
30
30
|
let t3;
|
|
31
31
|
if ($[4] !== children || $[5] !== t1 || $[6] !== t2) {
|
|
32
|
-
t3 = /*#__PURE__*/ jsxs(Fragment, { children: [
|
|
32
|
+
t3 = /*#__PURE__*/ jsxs(Fragment$1, { children: [
|
|
33
33
|
t1,
|
|
34
34
|
children,
|
|
35
35
|
t2
|
package/dist/Popover/Popover.js
CHANGED
|
@@ -2,9 +2,9 @@ import { useOnOutsideClick } from "../hooks/useOnOutsideClick.js";
|
|
|
2
2
|
import { useOnEscapePress } from "../hooks/useOnEscapePress.js";
|
|
3
3
|
import Popover_module_css_default from "./Popover.module.css.js";
|
|
4
4
|
import { c } from "react-compiler-runtime";
|
|
5
|
-
import { clsx } from "clsx";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
5
|
import React, { useRef } from "react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { clsx } from "clsx";
|
|
8
8
|
//#region src/Popover/Popover.tsx
|
|
9
9
|
const EMPTY_IGNORE_CLICK_REFS = [];
|
|
10
10
|
const PopoverContext = /*#__PURE__*/ React.createContext(false);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import ProgressBar_module_css_default from "./ProgressBar.module.css.js";
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
|
-
import { clsx } from "clsx";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
3
|
import React, { forwardRef } from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { clsx } from "clsx";
|
|
6
6
|
//#region src/ProgressBar/ProgressBar.tsx
|
|
7
7
|
const Item = /*#__PURE__*/ forwardRef((t0, forwardRef) => {
|
|
8
8
|
const $ = c(32);
|