@primer/react 38.37.1-rc.f1c7ced7b → 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 +9 -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 +3 -3
- package/dist/ActionList/GroupHeadingTrailingAction.js +1 -1
- package/dist/ActionList/Heading.js +2 -2
- 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 +1 -1
- package/dist/Autocomplete/AutocompleteMenu.js +2 -2
- 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 +5 -5
- package/dist/experimental/Tabs/Tabs.js +1 -1
- package/dist/experimental/UnderlinePanels/UnderlinePanels.js +2 -2
- 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 +1 -1
- package/dist/internal/components/UnderlineTabbedInterface-8a52007f.css +0 -2
- package/dist/internal/components/UnderlineTabbedInterface-8a52007f.css.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
# @primer/react
|
|
2
2
|
|
|
3
|
-
## 38.
|
|
3
|
+
## 38.38.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#8300](https://github.com/primer/react/pull/8300) [`3a32d6f`](https://github.com/primer/react/commit/3a32d6ff015b11dd2ac9bf299f8f558bb1e46ef5) Thanks [@joshblack](https://github.com/joshblack)! - Promote AriaStatus and AriaAlert from experimental to stable
|
|
4
8
|
|
|
5
9
|
### Patch Changes
|
|
6
10
|
|
|
7
11
|
- [#8343](https://github.com/primer/react/pull/8343) [`7034e1f`](https://github.com/primer/react/commit/7034e1fbb754883b29a05fdf75eea8704359e7bb) Thanks [@llastflowers](https://github.com/llastflowers)! - Don't focus Autocomplete menu items while menu is closed: fix SR announcement bug and menu item skipping bug
|
|
8
12
|
|
|
13
|
+
- [#8330](https://github.com/primer/react/pull/8330) [`f7329dc`](https://github.com/primer/react/commit/f7329dc8224166fad2698ae7d6c518dc97d89754) Thanks [@mattcosta7](https://github.com/mattcosta7)! - RelativeTime: Prevent hydration errors when the server and client use different time zones
|
|
14
|
+
|
|
9
15
|
- [#8339](https://github.com/primer/react/pull/8339) [`1f5b99e`](https://github.com/primer/react/commit/1f5b99edc63e3989eb470d258c4d7b8703540f6b) Thanks [@ShiyunXu](https://github.com/ShiyunXu)! - Pin `box-sizing` with `!important` on the underline tabbed interface wrapper in wrap mode so external overrides can no longer offset its height budget and incorrectly trigger the overflow "more" menu
|
|
10
16
|
|
|
17
|
+
- [#8340](https://github.com/primer/react/pull/8340) [`a79d6c6`](https://github.com/primer/react/commit/a79d6c60ca23abce6f85502e1db78458f5fc3e90) Thanks [@ShiyunXu](https://github.com/ShiyunXu)! - UnderlineNav: Prevent external borders from incorrectly triggering the overflow menu
|
|
18
|
+
|
|
11
19
|
## 38.37.0
|
|
12
20
|
|
|
13
21
|
### Minor Changes
|
|
@@ -8,9 +8,9 @@ import { useIsClipped } from "../internal/hooks/useOverflowObserver.js";
|
|
|
8
8
|
import { OverflowObserverProvider } from "../internal/components/OverflowObserverProvider.js";
|
|
9
9
|
import { createDescendantRegistry } from "../utils/descendant-registry.js";
|
|
10
10
|
import ActionBar_module_css_default from "./ActionBar.module.css.js";
|
|
11
|
-
import { clsx } from "clsx";
|
|
12
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
11
|
import React, { forwardRef, useCallback, useContext, useMemo, useRef, useState } from "react";
|
|
12
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { clsx } from "clsx";
|
|
14
14
|
import { KebabHorizontalIcon } from "@primer/octicons-react";
|
|
15
15
|
//#region src/ActionBar/ActionBar.tsx
|
|
16
16
|
const ActionBarContext = /*#__PURE__*/ React.createContext({ size: "medium" });
|
|
@@ -2,9 +2,9 @@ import { ItemContext } from "./shared.js";
|
|
|
2
2
|
import ActionList_module_css_default from "./ActionList.module.css.js";
|
|
3
3
|
import Truncate from "../Truncate/Truncate.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 from "react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { clsx } from "clsx";
|
|
8
8
|
//#region src/ActionList/Description.tsx
|
|
9
9
|
const Description = (t0) => {
|
|
10
10
|
const $ = c(26);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import ActionList_module_css_default from "./ActionList.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/ActionList/Divider.tsx
|
|
6
6
|
/**
|
|
7
7
|
* Visually separates `Items` or `Groups` in an `ActionList`.
|
package/dist/ActionList/Group.js
CHANGED
|
@@ -8,9 +8,9 @@ import Group_module_css_default from "./Group.module.css.js";
|
|
|
8
8
|
import { GroupHeadingTrailingAction } from "./GroupHeadingTrailingAction.js";
|
|
9
9
|
import { GroupContext } from "./GroupContext.js";
|
|
10
10
|
import { c } from "react-compiler-runtime";
|
|
11
|
-
import { clsx } from "clsx";
|
|
12
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
13
11
|
import React from "react";
|
|
12
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { clsx } from "clsx";
|
|
14
14
|
//#region src/ActionList/Group.tsx
|
|
15
15
|
const GROUP_HEADING_TRAILING_ACTION_FEATURE_FLAG = "primer_react_action_list_group_heading_trailing_action";
|
|
16
16
|
const Heading = (t0) => {
|
|
@@ -255,7 +255,7 @@ const GroupHeadingImpl = (t0) => {
|
|
|
255
255
|
let t4;
|
|
256
256
|
if ($[10] !== _internalBackwardCompatibleTitle || $[11] !== as || $[12] !== auxiliaryText || $[13] !== className || $[14] !== groupHeadingId || $[15] !== headingChildren || $[16] !== headingWrapElement || $[17] !== listRole || $[18] !== props || $[19] !== trailingAction || $[20] !== variant) {
|
|
257
257
|
var _internalBackwardComp, _internalBackwardComp2;
|
|
258
|
-
t4 = /*#__PURE__*/ jsx(Fragment, { children: listRole && listRole !== "list" ? /*#__PURE__*/ jsxs(HeadingWrap, {
|
|
258
|
+
t4 = /*#__PURE__*/ jsx(Fragment$1, { children: listRole && listRole !== "list" ? /*#__PURE__*/ jsxs(HeadingWrap, {
|
|
259
259
|
role: "presentation",
|
|
260
260
|
className: Group_module_css_default.GroupHeadingWrap,
|
|
261
261
|
"aria-hidden": "true",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IconButton } from "../Button/IconButton.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/ActionList/GroupHeadingTrailingAction.tsx
|
|
6
6
|
/**
|
|
7
7
|
* Props for `ActionList.GroupHeading.TrailingAction`.
|
|
@@ -6,9 +6,9 @@ import Heading$1 from "../Heading/Heading.js";
|
|
|
6
6
|
import { ListContext } from "./shared.js";
|
|
7
7
|
import Heading_module_css_default from "./Heading.module.css.js";
|
|
8
8
|
import { c } from "react-compiler-runtime";
|
|
9
|
-
import { clsx } from "clsx";
|
|
10
|
-
import { jsx } from "react/jsx-runtime";
|
|
11
9
|
import React, { forwardRef } from "react";
|
|
10
|
+
import { jsx } from "react/jsx-runtime";
|
|
11
|
+
import { clsx } from "clsx";
|
|
12
12
|
//#region src/ActionList/Heading.tsx
|
|
13
13
|
const Heading = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
14
14
|
var _props$id;
|
package/dist/ActionList/Item.js
CHANGED
|
@@ -15,9 +15,9 @@ import { LeadingVisual, TrailingVisual, VisualOrIndicator } from "./Visuals.js";
|
|
|
15
15
|
import { Selection } from "./Selection.js";
|
|
16
16
|
import { TrailingAction } from "./TrailingAction.js";
|
|
17
17
|
import { c } from "react-compiler-runtime";
|
|
18
|
-
import { clsx } from "clsx";
|
|
19
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
20
18
|
import React from "react";
|
|
19
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
20
|
+
import { clsx } from "clsx";
|
|
21
21
|
//#region src/ActionList/Item.tsx
|
|
22
22
|
/**
|
|
23
23
|
* Wraps button-semantic items with Tooltip, disabled when not truncated
|
|
@@ -49,7 +49,7 @@ const SubItem = (t0) => {
|
|
|
49
49
|
const { children } = t0;
|
|
50
50
|
let t1;
|
|
51
51
|
if ($[0] !== children) {
|
|
52
|
-
t1 = /*#__PURE__*/ jsx(Fragment, { children });
|
|
52
|
+
t1 = /*#__PURE__*/ jsx(Fragment$1, { children });
|
|
53
53
|
$[0] = children;
|
|
54
54
|
$[1] = t1;
|
|
55
55
|
} else t1 = $[1];
|
package/dist/ActionList/List.js
CHANGED
|
@@ -11,9 +11,9 @@ import { ListContext } from "./shared.js";
|
|
|
11
11
|
import { Heading } from "./Heading.js";
|
|
12
12
|
import ActionList_module_css_default from "./ActionList.module.css.js";
|
|
13
13
|
import { c } from "react-compiler-runtime";
|
|
14
|
-
import { clsx } from "clsx";
|
|
15
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
14
|
import React, { useRef } from "react";
|
|
15
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
+
import { clsx } from "clsx";
|
|
17
17
|
//#region src/ActionList/List.tsx
|
|
18
18
|
const UnwrappedList = (props, forwardedRef) => {
|
|
19
19
|
var _slots$heading$props$;
|
|
@@ -5,8 +5,8 @@ import ActionList_module_css_default from "./ActionList.module.css.js";
|
|
|
5
5
|
import { GroupContext } from "./GroupContext.js";
|
|
6
6
|
import { VisualContainer } from "./Visuals.js";
|
|
7
7
|
import { c } from "react-compiler-runtime";
|
|
8
|
-
import { jsx } from "react/jsx-runtime";
|
|
9
8
|
import React from "react";
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
10
|
import { CheckIcon } from "@primer/octicons-react";
|
|
11
11
|
//#region src/ActionList/Selection.tsx
|
|
12
12
|
const Selection = (t0) => {
|
|
@@ -2,9 +2,9 @@ import { IconButton } from "../Button/IconButton.js";
|
|
|
2
2
|
import { ButtonComponent } from "../Button/Button.js";
|
|
3
3
|
import ActionList_module_css_default from "./ActionList.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 { forwardRef } from "react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { clsx } from "clsx";
|
|
8
8
|
//#region src/ActionList/TrailingAction.tsx
|
|
9
9
|
const TrailingAction = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
10
10
|
const $ = c(25);
|
|
@@ -3,9 +3,9 @@ import { Tooltip } from "../TooltipV2/Tooltip.js";
|
|
|
3
3
|
import { ItemContext } from "./shared.js";
|
|
4
4
|
import ActionList_module_css_default from "./ActionList.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
|
import { AlertIcon } from "@primer/octicons-react";
|
|
10
10
|
//#region src/ActionList/Visuals.tsx
|
|
11
11
|
const VisualContainer = (t0) => {
|
|
@@ -11,9 +11,9 @@ import { ActionListContainerContext } from "../ActionList/ActionListContainerCon
|
|
|
11
11
|
import { Divider } from "../ActionList/Divider.js";
|
|
12
12
|
import { AnchoredOverlay } from "../AnchoredOverlay/AnchoredOverlay.js";
|
|
13
13
|
import ActionMenu_module_css_default from "./ActionMenu.module.css.js";
|
|
14
|
-
import { clsx } from "clsx";
|
|
15
|
-
import { jsx } from "react/jsx-runtime";
|
|
16
14
|
import React, { useCallback, useContext, useEffect, useMemo, useState } from "react";
|
|
15
|
+
import { jsx } from "react/jsx-runtime";
|
|
16
|
+
import { clsx } from "clsx";
|
|
17
17
|
import { ChevronRightIcon, TriangleDownIcon } from "@primer/octicons-react";
|
|
18
18
|
//#region src/ActionMenu/ActionMenu.tsx
|
|
19
19
|
const MenuContext = /*#__PURE__*/ React.createContext({
|
|
@@ -11,9 +11,9 @@ import { useFocusZone } from "../hooks/useFocusZone.js";
|
|
|
11
11
|
import Overlay from "../Overlay/Overlay.js";
|
|
12
12
|
import AnchoredOverlay_module_css_default from "./AnchoredOverlay.module.css.js";
|
|
13
13
|
import { widthMap } from "../Overlay/constants.js";
|
|
14
|
-
import { clsx } from "clsx";
|
|
15
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
16
14
|
import { useCallback, useEffect, useState } from "react";
|
|
15
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
+
import { clsx } from "clsx";
|
|
17
17
|
import { XIcon } from "@primer/octicons-react";
|
|
18
18
|
//#region src/AnchoredOverlay/AnchoredOverlay.tsx
|
|
19
19
|
const defaultVariant = {
|
|
@@ -164,7 +164,7 @@ const AnchoredOverlay = ({ renderAnchor, anchorRef: externalAnchorRef, anchorId:
|
|
|
164
164
|
const XButtonAriaLabelledBy = closeButtonProps["aria-labelledby"];
|
|
165
165
|
const XButtonAriaLabel = closeButtonProps["aria-label"];
|
|
166
166
|
const { className: overlayClassName, _PrivateDisablePortal, ...restOverlayProps } = overlayProps || {};
|
|
167
|
-
return /*#__PURE__*/ jsxs(Fragment, { children: [renderAnchor && renderAnchor({
|
|
167
|
+
return /*#__PURE__*/ jsxs(Fragment$1, { children: [renderAnchor && renderAnchor({
|
|
168
168
|
ref: anchorRef,
|
|
169
169
|
id: anchorId,
|
|
170
170
|
"aria-haspopup": "true",
|
|
@@ -4,8 +4,8 @@ import AutocompleteInput from "./AutocompleteInput.js";
|
|
|
4
4
|
import AutocompleteMenu from "./AutocompleteMenu.js";
|
|
5
5
|
import AutocompleteOverlay from "./AutocompleteOverlay.js";
|
|
6
6
|
import { c } from "react-compiler-runtime";
|
|
7
|
-
import { jsx } from "react/jsx-runtime";
|
|
8
7
|
import { useDeferredValue, useReducer, useRef } from "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/Autocomplete/Autocomplete.tsx
|
|
10
10
|
const initialState = {
|
|
11
11
|
inputValue: "",
|
|
@@ -2,8 +2,8 @@ import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
|
2
2
|
import useSafeTimeout from "../hooks/useSafeTimeout.js";
|
|
3
3
|
import { AutocompleteContext, AutocompleteInputContext } from "./AutocompleteContext.js";
|
|
4
4
|
import TextInput_default from "../TextInput/TextInput.js";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
5
|
import React, { useCallback, useContext, useEffect, useState } from "react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/Autocomplete/AutocompleteInput.tsx
|
|
8
8
|
const ARROW_KEYS_NAV = /* @__PURE__ */ new Set(["ArrowUp", "ArrowDown"]);
|
|
9
9
|
const AutocompleteInput = /*#__PURE__*/ React.forwardRef(({ as: Component = TextInput_default, onFocus, onBlur, onChange, onKeyDown, onKeyDownCapture, onKeyUp, onKeyPress, value, openOnFocus = false, ...props }, forwardedRef) => {
|
|
@@ -6,10 +6,10 @@ import { ActionList } from "../ActionList/index.js";
|
|
|
6
6
|
import { AutocompleteContext, AutocompleteDeferredInputContext } from "./AutocompleteContext.js";
|
|
7
7
|
import AutocompleteMenu_module_css_default from "./AutocompleteMenu.module.css.js";
|
|
8
8
|
import { c } from "react-compiler-runtime";
|
|
9
|
-
import {
|
|
9
|
+
import { announce } from "@primer/live-region-element";
|
|
10
10
|
import React, { useContext, useEffect, useRef, useState } from "react";
|
|
11
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
12
|
import { scrollIntoView } from "@primer/behaviors";
|
|
12
|
-
import { announce } from "@primer/live-region-element";
|
|
13
13
|
import { isElement } from "react-is";
|
|
14
14
|
import { PlusIcon } from "@primer/octicons-react";
|
|
15
15
|
import { debounce } from "@github/mini-throttle";
|
|
@@ -5,9 +5,9 @@ import Overlay from "../Overlay/Overlay.js";
|
|
|
5
5
|
import { AutocompleteContext } from "./AutocompleteContext.js";
|
|
6
6
|
import AutocompleteOverlay_module_css_default from "./AutocompleteOverlay.module.css.js";
|
|
7
7
|
import { c } from "react-compiler-runtime";
|
|
8
|
-
import { clsx } from "clsx";
|
|
9
|
-
import { jsx } from "react/jsx-runtime";
|
|
10
8
|
import { useContext, useEffect, useRef } from "react";
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
import { clsx } from "clsx";
|
|
11
11
|
//#region src/Autocomplete/AutocompleteOverlay.tsx
|
|
12
12
|
function AutocompleteOverlay(t0) {
|
|
13
13
|
const $ = c(29);
|
package/dist/Avatar/Avatar.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { isResponsiveValue } from "../hooks/useResponsiveValue.js";
|
|
2
2
|
import Avatar_module_css_default from "./Avatar.module.css.js";
|
|
3
3
|
import { c } from "react-compiler-runtime";
|
|
4
|
-
import { clsx } from "clsx";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
4
|
import React from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { clsx } from "clsx";
|
|
7
7
|
const Avatar = /*#__PURE__*/ React.forwardRef(function Avatar(t0, ref) {
|
|
8
8
|
const $ = c(29);
|
|
9
9
|
let className;
|
|
@@ -2,9 +2,9 @@ import { isResponsiveValue } from "../hooks/useResponsiveValue.js";
|
|
|
2
2
|
import AvatarStack_module_css_default from "./AvatarStack.module.css.js";
|
|
3
3
|
import { hasInteractiveNodes } from "../internal/utils/hasInteractiveNodes.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, { useEffect, useRef, useState } from "react";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { clsx } from "clsx";
|
|
8
8
|
//#region src/AvatarStack/AvatarStack.tsx
|
|
9
9
|
const transformChildren = (children, shape) => {
|
|
10
10
|
return React.Children.map(children, (child) => {
|
package/dist/Banner/Banner.js
CHANGED
|
@@ -6,9 +6,9 @@ import { ButtonComponent } from "../Button/Button.js";
|
|
|
6
6
|
import { useDevOnlyEffect } from "../internal/hooks/useDevOnlyEffect.js";
|
|
7
7
|
import Banner_module_css_default from "./Banner.module.css.js";
|
|
8
8
|
import { c } from "react-compiler-runtime";
|
|
9
|
-
import { clsx } from "clsx";
|
|
10
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
9
|
import React, { forwardRef } from "react";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { clsx } from "clsx";
|
|
12
12
|
import { AlertIcon, CheckCircleIcon, InfoIcon, StopIcon, XIcon } from "@primer/octicons-react";
|
|
13
13
|
//#region src/Banner/Banner.tsx
|
|
14
14
|
const BannerContext = /*#__PURE__*/ React.createContext(void 0);
|
package/dist/BaseStyles.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import BaseStyles_module_css_default from "./BaseStyles.module.css.js";
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import { clsx } from "clsx";
|
|
4
5
|
import "focus-visible";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/BaseStyles.tsx
|
|
7
7
|
function BaseStyles(t0) {
|
|
8
8
|
const $ = c(20);
|
|
@@ -3,9 +3,9 @@ import Link from "../Link/Link.js";
|
|
|
3
3
|
import { Provider, useBlankslate } from "./BlankslateContext.js";
|
|
4
4
|
import Blankslate_module_css_default from "./Blankslate.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";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
import { clsx } from "clsx";
|
|
9
9
|
//#region src/Blankslate/Blankslate.tsx
|
|
10
10
|
function Blankslate(t0) {
|
|
11
11
|
const $ = c(25);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { fixedForwardRef } from "../utils/modern-polymorphic.js";
|
|
2
2
|
import BranchName_module_css_default from "./BranchName.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/BranchName/BranchName.tsx
|
|
7
7
|
function BranchName(props, ref) {
|
|
8
8
|
const $ = c(13);
|
|
@@ -8,9 +8,9 @@ import { ActionList } from "../ActionList/index.js";
|
|
|
8
8
|
import Breadcrumbs_module_css_default from "./Breadcrumbs.module.css.js";
|
|
9
9
|
import Details from "../Details/Details.js";
|
|
10
10
|
import { c } from "react-compiler-runtime";
|
|
11
|
-
import { clsx } from "clsx";
|
|
12
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
11
|
import React, { useRef, useState } from "react";
|
|
12
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { clsx } from "clsx";
|
|
14
14
|
import { KebabHorizontalIcon } from "@primer/octicons-react";
|
|
15
15
|
//#region src/Breadcrumbs/Breadcrumbs.tsx
|
|
16
16
|
const BreadcrumbsList = (t0) => {
|
package/dist/Button/Button.js
CHANGED
|
@@ -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/Button.tsx
|
|
6
6
|
const ButtonComponent = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
7
7
|
const $ = c(7);
|
|
@@ -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";
|