@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.
Files changed (146) hide show
  1. package/CHANGELOG.md +9 -1
  2. package/dist/ActionBar/ActionBar.js +2 -2
  3. package/dist/ActionList/Description.js +2 -2
  4. package/dist/ActionList/Divider.js +1 -1
  5. package/dist/ActionList/Group.js +3 -3
  6. package/dist/ActionList/GroupHeadingTrailingAction.js +1 -1
  7. package/dist/ActionList/Heading.js +2 -2
  8. package/dist/ActionList/Item.js +3 -3
  9. package/dist/ActionList/List.js +2 -2
  10. package/dist/ActionList/Selection.js +1 -1
  11. package/dist/ActionList/TrailingAction.js +2 -2
  12. package/dist/ActionList/Visuals.js +2 -2
  13. package/dist/ActionMenu/ActionMenu.js +2 -2
  14. package/dist/AnchoredOverlay/AnchoredOverlay.js +3 -3
  15. package/dist/Autocomplete/Autocomplete.js +1 -1
  16. package/dist/Autocomplete/AutocompleteInput.js +1 -1
  17. package/dist/Autocomplete/AutocompleteMenu.js +2 -2
  18. package/dist/Autocomplete/AutocompleteOverlay.js +2 -2
  19. package/dist/Avatar/Avatar.js +2 -2
  20. package/dist/AvatarStack/AvatarStack.js +2 -2
  21. package/dist/Banner/Banner.js +2 -2
  22. package/dist/BaseStyles.js +1 -1
  23. package/dist/Blankslate/Blankslate.js +2 -2
  24. package/dist/BranchName/BranchName.js +1 -1
  25. package/dist/Breadcrumbs/Breadcrumbs.js +2 -2
  26. package/dist/Button/Button.js +1 -1
  27. package/dist/Button/ButtonBase.js +4 -4
  28. package/dist/Button/IconButton.js +2 -2
  29. package/dist/Button/LinkButton.js +1 -1
  30. package/dist/ButtonGroup/ButtonGroup.js +2 -2
  31. package/dist/Card/Card.js +2 -2
  32. package/dist/Checkbox/Checkbox.js +2 -2
  33. package/dist/CheckboxGroup/CheckboxGroup.js +1 -1
  34. package/dist/CircleBadge/CircleBadge.js +1 -1
  35. package/dist/ConfirmationDialog/ConfirmationDialog.js +1 -1
  36. package/dist/CounterLabel/CounterLabel.js +3 -3
  37. package/dist/DataTable/Pagination.js +4 -4
  38. package/dist/DataTable/Table.js +3 -3
  39. package/dist/Details/Details.js +2 -2
  40. package/dist/Dialog/Dialog.js +3 -3
  41. package/dist/FeatureFlags/FeatureFlags.js +1 -1
  42. package/dist/FilteredActionList/FilteredActionList.js +2 -2
  43. package/dist/FilteredActionList/FilteredActionListInput.js +1 -1
  44. package/dist/FilteredActionList/useAnnouncements.js +1 -1
  45. package/dist/Flash/Flash.js +2 -2
  46. package/dist/FormControl/FormControl.js +3 -3
  47. package/dist/FormControl/FormControlCaption.js +1 -1
  48. package/dist/Header/Header.js +2 -2
  49. package/dist/Heading/Heading.js +2 -2
  50. package/dist/Hidden/Hidden.js +1 -1
  51. package/dist/InlineMessage/InlineMessage.js +1 -1
  52. package/dist/KeybindingHint/KeybindingHint.js +2 -2
  53. package/dist/KeybindingHint/components/Chord.js +3 -3
  54. package/dist/KeybindingHint/components/Sequence.js +3 -3
  55. package/dist/Label/Label.js +2 -2
  56. package/dist/LabelGroup/LabelGroup.js +2 -2
  57. package/dist/Link/Link.js +2 -2
  58. package/dist/NavList/NavList.js +5 -5
  59. package/dist/Octicon/Octicon.js +1 -1
  60. package/dist/Overlay/Overlay.js +2 -2
  61. package/dist/PageHeader/PageHeader.js +3 -3
  62. package/dist/PageLayout/DragHandle.js +1 -1
  63. package/dist/PageLayout/PageLayout.js +2 -2
  64. package/dist/Pagehead/Pagehead.js +1 -1
  65. package/dist/Pagination/Pagination.js +3 -3
  66. package/dist/Popover/Popover.js +2 -2
  67. package/dist/ProgressBar/ProgressBar.js +2 -2
  68. package/dist/Radio/Radio.js +2 -2
  69. package/dist/RelativeTime/RelativeTime.js +2 -1
  70. package/dist/ScrollableRegion/ScrollableRegion.js +2 -2
  71. package/dist/SegmentedControl/SegmentedControl.js +3 -3
  72. package/dist/SegmentedControl/SegmentedControlButton.js +1 -1
  73. package/dist/SegmentedControl/SegmentedControlIconButton.js +1 -1
  74. package/dist/Select/Select.js +2 -2
  75. package/dist/SelectPanel/SelectPanel.js +4 -4
  76. package/dist/SelectPanel/SelectPanelMessage.js +1 -1
  77. package/dist/SideNav.js +1 -1
  78. package/dist/Skeleton/SkeletonBox.js +2 -2
  79. package/dist/SkeletonAvatar/SkeletonAvatar.js +1 -1
  80. package/dist/SkeletonText/SkeletonText.js +1 -1
  81. package/dist/Spinner/Spinner.js +2 -2
  82. package/dist/Stack/Stack.js +2 -2
  83. package/dist/StateLabel/StateLabel.js +2 -2
  84. package/dist/SubNav/SubNav.js +2 -2
  85. package/dist/TabNav/TabNav.js +2 -2
  86. package/dist/Text/Text.js +1 -1
  87. package/dist/TextInput/TextInput.js +5 -5
  88. package/dist/TextInputWithTokens/TextInputWithTokens.js +2 -2
  89. package/dist/Textarea/Textarea.js +3 -3
  90. package/dist/ThemeProvider.js +1 -1
  91. package/dist/Timeline/Timeline.js +2 -2
  92. package/dist/ToggleSwitch/ToggleSwitch.js +3 -3
  93. package/dist/Token/IssueLabelToken.js +2 -2
  94. package/dist/Token/Token.js +2 -2
  95. package/dist/Token/TokenBase.js +2 -2
  96. package/dist/Token/_RemoveTokenButton.js +1 -1
  97. package/dist/Token/_TokenTextContainer.js +1 -1
  98. package/dist/Tooltip/Tooltip.js +2 -2
  99. package/dist/TooltipV2/Tooltip.js +4 -4
  100. package/dist/TopicTag/TopicTag.js +1 -1
  101. package/dist/TopicTag/TopicTagGroup.js +1 -1
  102. package/dist/TreeView/TreeView.js +9 -9
  103. package/dist/Truncate/Truncate.js +2 -2
  104. package/dist/UnderlineNav/UnderlineNav.js +2 -2
  105. package/dist/UnderlineNav/UnderlineNavItem.js +1 -1
  106. package/dist/VisuallyHidden/VisuallyHidden.js +1 -1
  107. package/dist/_VisuallyHidden.js +1 -1
  108. package/dist/deprecated/ActionList/Header.js +1 -1
  109. package/dist/deprecated/ActionList/Item.js +3 -3
  110. package/dist/deprecated/ActionList/List.js +2 -2
  111. package/dist/deprecated/ActionMenu.js +1 -1
  112. package/dist/deprecated/DialogV1/Dialog.js +3 -3
  113. package/dist/deprecated/FilteredSearch/FilteredSearch.js +1 -1
  114. package/dist/deprecated/UnderlineNav/UnderlineNav.js +2 -2
  115. package/dist/experimental/IssueLabel/IssueLabel.js +1 -1
  116. package/dist/experimental/SelectPanel2/SelectPanel.js +5 -5
  117. package/dist/experimental/Tabs/Tabs.js +1 -1
  118. package/dist/experimental/UnderlinePanels/UnderlinePanels.js +2 -2
  119. package/dist/experimental/index.d.ts +3 -3
  120. package/dist/experimental/index.js +1 -1
  121. package/dist/index.d.ts +3 -1
  122. package/dist/index.js +3 -1
  123. package/dist/internal/components/ButtonReset.js +1 -1
  124. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js +3 -3
  125. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupCaption.js +2 -2
  126. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.js +2 -2
  127. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.js +1 -1
  128. package/dist/internal/components/InputLabel.js +1 -1
  129. package/dist/internal/components/InputValidation.js +1 -1
  130. package/dist/internal/components/OverflowObserverProvider.js +1 -1
  131. package/dist/internal/components/TextInputInnerAction.js +3 -3
  132. package/dist/internal/components/TextInputInnerVisualSlot.js +1 -1
  133. package/dist/internal/components/TextInputWrapper.js +2 -2
  134. package/dist/internal/components/UnderlineTabbedInterface-a5cd75c0.css +2 -0
  135. package/dist/internal/components/UnderlineTabbedInterface-a5cd75c0.css.map +1 -0
  136. package/dist/internal/components/UnderlineTabbedInterface.js +2 -2
  137. package/dist/internal/components/UnderlineTabbedInterface.module.css.js +1 -1
  138. package/dist/internal/components/UnstyledTextInput.js +2 -2
  139. package/dist/internal/components/ValidationAnimationContainer.js +1 -1
  140. package/dist/live-region/Announce.js +2 -2
  141. package/dist/live-region/AriaAlert.d.ts +1 -1
  142. package/dist/utils/descendant-registry.js +1 -1
  143. package/generated/components.json +73 -0
  144. package/package.json +1 -1
  145. package/dist/internal/components/UnderlineTabbedInterface-8a52007f.css +0 -2
  146. package/dist/internal/components/UnderlineTabbedInterface-8a52007f.css.map +0 -1
@@ -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 = () => {
@@ -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);
@@ -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);
@@ -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);
@@ -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 { clsx } from "clsx";
6
+ import { Fragment } from "react";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
- import { Fragment as Fragment$1 } from "react";
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$1, { children: [i > 0 && format === "full" ? /*#__PURE__*/ jsx("span", {
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, jsx, jsxs } from "react/jsx-runtime";
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$1, { children: [i > 0 && /*#__PURE__*/ jsxs(Fragment, { children: [/*#__PURE__*/ jsx(VisuallyHidden, { children: "then" }), " "] }), /*#__PURE__*/ jsx(Chord, {
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));
@@ -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);
@@ -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;
@@ -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
@@ -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
@@ -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);
@@ -2,9 +2,9 @@ import { RadioGroupContext } from "../RadioGroup/RadioGroupContext.js";
2
2
  import shared_module_css_default from "../Checkbox/shared.module.css.js";
3
3
  import Radio_module_css_default from "./Radio.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, { useContext } from "react";
6
+ import { jsx } from "react/jsx-runtime";
7
+ import { clsx } from "clsx";
8
8
  //#region src/Radio/Radio.tsx
9
9
  /**
10
10
  * An accessible, native radio component for selecting one option from a list.
@@ -7,7 +7,8 @@ const RelativeTimeComponent = createComponent(RelativeTimeElement, "relative-tim
7
7
  const localeOptions = {
8
8
  month: "short",
9
9
  day: "numeric",
10
- year: "numeric"
10
+ year: "numeric",
11
+ timeZone: "UTC"
11
12
  };
12
13
  function RelativeTime(t0) {
13
14
  const $ = c(16);
@@ -1,9 +1,9 @@
1
1
  import { useOverflow } from "../hooks/useOverflow.js";
2
2
  import ScrollableRegion_module_css_default from "./ScrollableRegion.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
  //#region src/ScrollableRegion/ScrollableRegion.tsx
8
8
  function ScrollableRegion(t0) {
9
9
  const $ = c(17);
@@ -6,9 +6,9 @@ import SegmentedControl_module_css_default from "./SegmentedControl.module.css.j
6
6
  import SegmentedControlButton from "./SegmentedControlButton.js";
7
7
  import { SegmentedControlIconButton } from "./SegmentedControlIconButton.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 React, { useRef, useState } 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/SegmentedControl/SegmentedControl.tsx
14
14
  const Root = (t0) => {
@@ -209,7 +209,7 @@ const Root = (t0) => {
209
209
  const segmentedControlContent = t9;
210
210
  let t10;
211
211
  if ($[50] !== dropdownContent || $[51] !== hasDropdownVariant || $[52] !== segmentedControlContent) {
212
- t10 = hasDropdownVariant ? /*#__PURE__*/ jsxs(Fragment, { children: [dropdownContent, segmentedControlContent] }) : segmentedControlContent;
212
+ t10 = hasDropdownVariant ? /*#__PURE__*/ jsxs(Fragment$1, { children: [dropdownContent, segmentedControlContent] }) : segmentedControlContent;
213
213
  $[50] = dropdownContent;
214
214
  $[51] = hasDropdownVariant;
215
215
  $[52] = segmentedControlContent;
@@ -1,8 +1,8 @@
1
1
  import CounterLabel from "../CounterLabel/CounterLabel.js";
2
2
  import SegmentedControl_module_css_default from "./SegmentedControl.module.css.js";
3
3
  import { c } from "react-compiler-runtime";
4
- import { clsx } from "clsx";
5
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
+ import { clsx } from "clsx";
6
6
  import { isElement } from "react-is";
7
7
  //#region src/SegmentedControl/SegmentedControlButton.tsx
8
8
  const SegmentedControlButton = (t0) => {
@@ -1,8 +1,8 @@
1
1
  import { Tooltip } from "../TooltipV2/Tooltip.js";
2
2
  import SegmentedControl_module_css_default from "./SegmentedControl.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
  import { isElement } from "react-is";
7
7
  //#region src/SegmentedControl/SegmentedControlIconButton.tsx
8
8
  const SegmentedControlIconButton = (t0) => {
@@ -1,9 +1,9 @@
1
1
  import { TextInputWrapper } from "../internal/components/TextInputWrapper.js";
2
2
  import Select_module_css_default from "./Select.module.css.js";
3
3
  import { c } from "react-compiler-runtime";
4
- import { clsx } from "clsx";
5
- import { jsx, jsxs } from "react/jsx-runtime";
6
4
  import React from "react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { clsx } from "clsx";
7
7
  //#region src/Select/Select.tsx
8
8
  const ArrowIndicatorSVG = (t0) => {
9
9
  const $ = c(3);
@@ -16,10 +16,10 @@ import { FilteredActionListLoadingTypes } from "../FilteredActionList/constants.
16
16
  import { FilteredActionList } from "../FilteredActionList/index.js";
17
17
  import SelectPanel_module_css_default from "./SelectPanel.module.css.js";
18
18
  import { SelectPanelMessage } from "./SelectPanelMessage.js";
19
- import { clsx } from "clsx";
20
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
21
- import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
22
19
  import { announce, announceFromElement } from "@primer/live-region-element";
20
+ import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
21
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
22
+ import { clsx } from "clsx";
23
23
  import { SearchIcon, TriangleDownIcon, XIcon } from "@primer/octicons-react";
24
24
  import { debounce } from "@github/mini-throttle";
25
25
  //#region src/SelectPanel/SelectPanel.tsx
@@ -460,7 +460,7 @@ function Panel({ open, onOpenChange, renderAnchor = defaultRenderAnchor, anchorR
460
460
  availablePanelHeight,
461
461
  preventBubbling
462
462
  ]);
463
- return /*#__PURE__*/ jsxs(Fragment, { children: [/*#__PURE__*/ jsx(AnchoredOverlay, {
463
+ return /*#__PURE__*/ jsxs(Fragment$1, { children: [/*#__PURE__*/ jsx(AnchoredOverlay, {
464
464
  renderAnchor: renderMenuAnchor,
465
465
  anchorRef,
466
466
  align,
@@ -2,8 +2,8 @@ import Text_default from "../Text/Text.js";
2
2
  import Octicon from "../Octicon/Octicon.js";
3
3
  import SelectPanel_module_css_default from "./SelectPanel.module.css.js";
4
4
  import { c } from "react-compiler-runtime";
5
- import { clsx } from "clsx";
6
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { clsx } from "clsx";
7
7
  import { AlertIcon } from "@primer/octicons-react";
8
8
  //#region src/SelectPanel/SelectPanelMessage.tsx
9
9
  const SelectPanelMessage = (t0) => {
package/dist/SideNav.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import Link from "./Link/Link.js";
2
2
  import SideNav_module_css_default from "./SideNav.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/SideNav.tsx
7
7
  function SideNav(t0) {
8
8
  const $ = c(10);
@@ -1,8 +1,8 @@
1
1
  import SkeletonBox_module_css_default from "./SkeletonBox.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, { useEffect, useState } from "react";
4
+ import { jsx } from "react/jsx-runtime";
5
+ import { clsx } from "clsx";
6
6
  //#region src/Skeleton/SkeletonBox.tsx
7
7
  const SkeletonBox = /*#__PURE__*/ React.forwardRef(function SkeletonBox(t0, ref) {
8
8
  const $ = c(25);
@@ -2,8 +2,8 @@ import { isResponsiveValue } from "../hooks/useResponsiveValue.js";
2
2
  import { SkeletonBox } from "../Skeleton/SkeletonBox.js";
3
3
  import SkeletonAvatar_module_css_default from "./SkeletonAvatar.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/SkeletonAvatar/SkeletonAvatar.tsx
8
8
  function SkeletonAvatar(t0) {
9
9
  const $ = c(26);
@@ -1,8 +1,8 @@
1
1
  import { SkeletonBox } from "../Skeleton/SkeletonBox.js";
2
2
  import SkeletonText_module_css_default from "./SkeletonText.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/SkeletonText/SkeletonText.tsx
7
7
  function SkeletonText(t0) {
8
8
  const $ = c(32);
@@ -3,9 +3,9 @@ import { useId as useId$1 } from "../hooks/useId.js";
3
3
  import Spinner_module_css_default from "./Spinner.module.css.js";
4
4
  import { useMedia } from "../hooks/useMedia.js";
5
5
  import { c } from "react-compiler-runtime";
6
- import { clsx } from "clsx";
7
- import { jsx, jsxs } from "react/jsx-runtime";
8
6
  import { useEffect, useState } from "react";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
+ import { clsx } from "clsx";
9
9
  //#region src/Spinner/Spinner.tsx
10
10
  const ANIMATION_DURATION_MS = 1e3;
11
11
  const sizeMap = {
@@ -1,9 +1,9 @@
1
1
  import { getResponsiveAttributes } from "../internal/utils/getResponsiveAttributes.js";
2
2
  import Stack_module_css_default from "./Stack.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 { forwardRef } from "react";
5
+ import { jsx } from "react/jsx-runtime";
6
+ import { clsx } from "clsx";
7
7
  //#region src/Stack/Stack.tsx
8
8
  const Stack = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
9
9
  const $ = c(45);
@@ -1,9 +1,9 @@
1
1
  import Octicon from "../Octicon/Octicon.js";
2
2
  import StateLabel_module_css_default from "./StateLabel.module.css.js";
3
3
  import { c } from "react-compiler-runtime";
4
- import { clsx } from "clsx";
5
- import { jsx, jsxs } from "react/jsx-runtime";
6
4
  import { forwardRef } from "react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { clsx } from "clsx";
7
7
  import { AlertIcon, ArchiveIcon, GitMergeIcon, GitMergeQueueIcon, GitPullRequestClosedIcon, GitPullRequestDraftIcon, GitPullRequestIcon, IssueClosedIcon, IssueDraftIcon, IssueOpenedIcon, ShieldCheckIcon, ShieldIcon, ShieldSlashIcon, ShieldXIcon, SkipIcon } from "@primer/octicons-react";
8
8
  //#region src/StateLabel/StateLabel.tsx
9
9
  const octiconMap = {
@@ -1,8 +1,8 @@
1
1
  import SubNav_module_css_default from "./SubNav.module.css.js";
2
2
  import { c } from "react-compiler-runtime";
3
- import { clsx } from "clsx";
4
- import { jsx, jsxs } from "react/jsx-runtime";
5
3
  import React from "react";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+ import { clsx } from "clsx";
6
6
  //#region src/SubNav/SubNav.tsx
7
7
  const SubNav = /*#__PURE__*/ React.forwardRef(function SubNav(t0, forwardRef) {
8
8
  const $ = c(20);
@@ -1,9 +1,9 @@
1
1
  import { FocusKeys, useFocusZone } from "../hooks/useFocusZone.js";
2
2
  import TabNav_module_css_default from "./TabNav.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, { useRef, useState } from "react";
5
+ import { jsx } from "react/jsx-runtime";
6
+ import { clsx } from "clsx";
7
7
  //#region src/TabNav/TabNav.tsx
8
8
  /**
9
9
  * @deprecated
package/dist/Text/Text.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import Text_module_css_default from "./Text.module.css.js";
2
2
  import { fixedForwardRef } from "../utils/modern-polymorphic.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/Text/Text.tsx
7
7
  function Text(props, ref) {
8
8
  const $ = c(17);