@primer/react 0.0.0-20260831205533 → 0.0.0-20260915162741

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 (218) hide show
  1. package/CHANGELOG.md +39 -3
  2. package/dist/ActionBar/ActionBar.js +2 -2
  3. package/dist/ActionList/Description.js +3 -3
  4. package/dist/ActionList/Divider.js +2 -2
  5. package/dist/ActionList/Group.js +4 -4
  6. package/dist/ActionList/GroupHeadingTrailingAction.js +2 -2
  7. package/dist/ActionList/Heading.js +3 -3
  8. package/dist/ActionList/Item.js +4 -4
  9. package/dist/ActionList/List.js +3 -3
  10. package/dist/ActionList/Selection.js +2 -2
  11. package/dist/ActionList/TrailingAction.js +3 -3
  12. package/dist/ActionList/Visuals.js +3 -3
  13. package/dist/ActionMenu/ActionMenu.js +2 -2
  14. package/dist/AnchoredOverlay/AnchoredOverlay.js +3 -3
  15. package/dist/Autocomplete/Autocomplete.js +2 -2
  16. package/dist/Autocomplete/AutocompleteInput.js +1 -1
  17. package/dist/Autocomplete/AutocompleteMenu.js +3 -3
  18. package/dist/Autocomplete/AutocompleteOverlay.js +3 -3
  19. package/dist/Avatar/Avatar.js +3 -3
  20. package/dist/AvatarStack/AvatarStack.js +3 -3
  21. package/dist/Banner/Banner.js +3 -3
  22. package/dist/BaseStyles.js +2 -2
  23. package/dist/Blankslate/Blankslate.js +3 -3
  24. package/dist/BranchName/BranchName.js +2 -2
  25. package/dist/Breadcrumbs/Breadcrumbs.js +3 -3
  26. package/dist/Button/Button.js +2 -2
  27. package/dist/Button/{ButtonBase-b44e29d1.css → ButtonBase-faef2674.css} +2 -2
  28. package/dist/Button/ButtonBase-faef2674.css.map +1 -0
  29. package/dist/Button/ButtonBase.js +4 -4
  30. package/dist/Button/ButtonBase.module.css.js +1 -1
  31. package/dist/Button/IconButton.js +3 -3
  32. package/dist/Button/LinkButton.js +2 -2
  33. package/dist/ButtonGroup/ButtonGroup.js +3 -3
  34. package/dist/Card/Card.js +3 -3
  35. package/dist/Checkbox/Checkbox.js +2 -2
  36. package/dist/CheckboxGroup/CheckboxGroup.js +2 -2
  37. package/dist/CircleBadge/CircleBadge.js +2 -2
  38. package/dist/ConfirmationDialog/ConfirmationDialog.js +2 -2
  39. package/dist/CounterLabel/CounterLabel.js +3 -3
  40. package/dist/DataTable/DataTable.d.ts +20 -20
  41. package/dist/DataTable/DataTable.js +42 -27
  42. package/dist/DataTable/ErrorDialog.js +1 -1
  43. package/dist/DataTable/Pagination.js +5 -5
  44. package/dist/DataTable/Table-50e68700.css +2 -0
  45. package/dist/DataTable/Table-50e68700.css.map +1 -0
  46. package/dist/DataTable/Table.d.ts +1 -0
  47. package/dist/DataTable/Table.js +74 -44
  48. package/dist/DataTable/Table.module.css.js +7 -2
  49. package/dist/DataTable/TableGroup.d.ts +41 -0
  50. package/dist/DataTable/TableGroup.js +159 -0
  51. package/dist/DataTable/TableGroupContext.js +5 -0
  52. package/dist/DataTable/index.d.ts +4 -2
  53. package/dist/DataTable/index.js +2 -0
  54. package/dist/DataTable/row.d.ts +24 -1
  55. package/dist/DataTable/useTable.js +157 -80
  56. package/dist/DataTable/utils.d.ts +4 -2
  57. package/dist/Details/Details.js +3 -3
  58. package/dist/Dialog/Dialog.js +3 -3
  59. package/dist/FeatureFlags/DefaultFeatureFlags.js +1 -2
  60. package/dist/FeatureFlags/FeatureFlags.js +2 -2
  61. package/dist/FeatureFlags/useFeatureFlag.js +1 -1
  62. package/dist/FilteredActionList/FilteredActionList.js +2 -2
  63. package/dist/FilteredActionList/FilteredActionListInput.js +2 -2
  64. package/dist/FilteredActionList/FilteredActionListLoaders.js +1 -1
  65. package/dist/Flash/Flash.js +3 -3
  66. package/dist/FormControl/FormControl.js +4 -4
  67. package/dist/FormControl/FormControlCaption.js +2 -2
  68. package/dist/FormControl/FormControlLabel.js +1 -1
  69. package/dist/FormControl/FormControlLeadingVisual.js +1 -1
  70. package/dist/FormControl/_FormControlContext.js +1 -1
  71. package/dist/FormControl/_FormControlValidation.js +1 -1
  72. package/dist/Header/Header.js +3 -3
  73. package/dist/Heading/Heading.js +3 -3
  74. package/dist/Hidden/Hidden.js +2 -2
  75. package/dist/InlineMessage/InlineMessage.js +2 -2
  76. package/dist/KeybindingHint/KeybindingHint.js +3 -3
  77. package/dist/KeybindingHint/components/Chord.js +4 -4
  78. package/dist/KeybindingHint/components/Key.js +1 -1
  79. package/dist/KeybindingHint/components/Sequence.js +3 -3
  80. package/dist/Label/Label.js +3 -3
  81. package/dist/LabelGroup/LabelGroup.js +2 -2
  82. package/dist/Link/Link.js +3 -3
  83. package/dist/NavList/NavList.js +6 -6
  84. package/dist/Octicon/Octicon.js +2 -2
  85. package/dist/Overlay/Overlay.js +2 -2
  86. package/dist/PageHeader/PageHeader.js +4 -4
  87. package/dist/PageLayout/DragHandle.js +2 -2
  88. package/dist/PageLayout/PageLayout.js +3 -3
  89. package/dist/PageLayout/usePaneWidth.js +1 -1
  90. package/dist/Pagehead/Pagehead.js +2 -2
  91. package/dist/Pagination/Pagination.js +4 -4
  92. package/dist/Popover/Popover.js +3 -3
  93. package/dist/Portal/Portal.js +1 -1
  94. package/dist/ProgressBar/ProgressBar.js +3 -3
  95. package/dist/Radio/Radio.js +3 -3
  96. package/dist/RadioGroup/RadioGroup.js +1 -1
  97. package/dist/RelativeTime/RelativeTime.js +1 -1
  98. package/dist/ScrollableRegion/ScrollableRegion.js +3 -3
  99. package/dist/SegmentedControl/SegmentedControl-e68d4197.css +2 -0
  100. package/dist/SegmentedControl/SegmentedControl-e68d4197.css.map +1 -0
  101. package/dist/SegmentedControl/SegmentedControl.d.ts +5 -1
  102. package/dist/SegmentedControl/SegmentedControl.js +204 -167
  103. package/dist/SegmentedControl/SegmentedControl.module.css.js +8 -4
  104. package/dist/SegmentedControl/SegmentedControlAction.d.ts +12 -0
  105. package/dist/SegmentedControl/SegmentedControlAction.js +111 -0
  106. package/dist/SegmentedControl/SegmentedControlActionContext.js +5 -0
  107. package/dist/SegmentedControl/SegmentedControlButton.js +2 -2
  108. package/dist/SegmentedControl/SegmentedControlDivider.d.ts +9 -0
  109. package/dist/SegmentedControl/SegmentedControlDivider.js +24 -0
  110. package/dist/SegmentedControl/SegmentedControlIconButton.js +2 -2
  111. package/dist/SegmentedControl/index.d.ts +3 -1
  112. package/dist/Select/Select.js +3 -3
  113. package/dist/SelectPanel/SelectPanel.js +3 -3
  114. package/dist/SelectPanel/SelectPanelMessage.js +2 -2
  115. package/dist/SideNav.js +2 -2
  116. package/dist/Skeleton/SkeletonBox.js +3 -3
  117. package/dist/SkeletonAvatar/SkeletonAvatar.js +2 -2
  118. package/dist/SkeletonText/SkeletonText.js +2 -2
  119. package/dist/Spinner/Spinner.js +3 -3
  120. package/dist/SplitPageLayout/SplitPageLayout.js +1 -1
  121. package/dist/Stack/Stack.js +3 -3
  122. package/dist/StateLabel/StateLabel.js +3 -3
  123. package/dist/SubNav/SubNav.js +3 -3
  124. package/dist/TabNav/TabNav.js +3 -3
  125. package/dist/Text/Text.js +2 -2
  126. package/dist/TextInput/TextInput.js +5 -5
  127. package/dist/TextInputWithTokens/TextInputWithTokens.js +3 -3
  128. package/dist/Textarea/Textarea.js +4 -4
  129. package/dist/ThemeProvider.js +2 -2
  130. package/dist/Timeline/Timeline.js +3 -3
  131. package/dist/ToggleSwitch/ToggleSwitch.js +4 -4
  132. package/dist/Token/IssueLabelToken.js +3 -3
  133. package/dist/Token/Token.js +3 -3
  134. package/dist/Token/TokenBase.js +3 -3
  135. package/dist/Token/_RemoveTokenButton.js +1 -1
  136. package/dist/Token/_TokenTextContainer.js +2 -2
  137. package/dist/Tooltip/Tooltip.js +2 -2
  138. package/dist/TooltipV2/Tooltip.js +21 -11
  139. package/dist/TopicTag/TopicTag.js +2 -2
  140. package/dist/TopicTag/TopicTagGroup.js +2 -2
  141. package/dist/TreeView/TreeView.js +9 -9
  142. package/dist/TreeView/useRovingTabIndex.js +1 -1
  143. package/dist/TreeView/useTreeItemCache.js +1 -1
  144. package/dist/TreeView/useTypeahead.js +1 -1
  145. package/dist/Truncate/Truncate.js +2 -2
  146. package/dist/UnderlineNav/UnderlineNav.js +3 -3
  147. package/dist/UnderlineNav/UnderlineNavItem.js +2 -2
  148. package/dist/VisuallyHidden/VisuallyHidden.js +2 -2
  149. package/dist/_VisuallyHidden.js +2 -2
  150. package/dist/deprecated/ActionList/Divider.js +1 -1
  151. package/dist/deprecated/ActionList/Group.js +1 -1
  152. package/dist/deprecated/ActionList/Header.js +2 -2
  153. package/dist/deprecated/ActionList/Item.js +4 -4
  154. package/dist/deprecated/ActionList/List.js +3 -3
  155. package/dist/deprecated/ActionMenu.js +2 -2
  156. package/dist/deprecated/DialogV1/Dialog.js +4 -4
  157. package/dist/deprecated/FilteredSearch/FilteredSearch.js +2 -2
  158. package/dist/deprecated/UnderlineNav/UnderlineNav.js +3 -3
  159. package/dist/experimental/IssueLabel/IssueLabel.js +2 -2
  160. package/dist/experimental/SelectPanel2/SelectPanel.js +5 -5
  161. package/dist/experimental/Tabs/Tabs.js +23 -26
  162. package/dist/experimental/Tabs/useTab.js +1 -1
  163. package/dist/experimental/Tabs/useTabList.js +17 -21
  164. package/dist/experimental/Tabs/useTabPanel.js +1 -1
  165. package/dist/experimental/UnderlinePanels/UnderlinePanels.js +10 -15
  166. package/dist/experimental/index.d.ts +6 -5
  167. package/dist/experimental/index.js +1 -1
  168. package/dist/hooks/useDetails.js +1 -1
  169. package/dist/hooks/useDialog.js +1 -1
  170. package/dist/hooks/useMedia.js +1 -1
  171. package/dist/hooks/useMenuInitialFocus.js +1 -1
  172. package/dist/hooks/useMenuKeyboardNavigation.js +1 -1
  173. package/dist/hooks/useMergedRefs.js +1 -1
  174. package/dist/hooks/useMnemonics.js +1 -1
  175. package/dist/hooks/useOpenAndCloseFocus.js +1 -1
  176. package/dist/hooks/useOverflow.js +5 -5
  177. package/dist/hooks/useOverlay.js +1 -1
  178. package/dist/hooks/useProvidedStateOrCreate.js +1 -1
  179. package/dist/hooks/useRefObjectAsForwardedRef.js +1 -1
  180. package/dist/hooks/useRenderForcingRef.js +1 -1
  181. package/dist/hooks/useScrollFlash.js +1 -1
  182. package/dist/hooks/useSyncedState.js +1 -1
  183. package/dist/index.d.ts +5 -1
  184. package/dist/index.js +3 -1
  185. package/dist/internal/components/ButtonReset.js +2 -2
  186. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js +4 -4
  187. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupCaption.js +3 -3
  188. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.js +3 -3
  189. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.js +2 -2
  190. package/dist/internal/components/ConditionalWrapper.js +1 -1
  191. package/dist/internal/components/InputLabel.js +2 -2
  192. package/dist/internal/components/InputValidation.js +2 -2
  193. package/dist/internal/components/OverflowObserverProvider.js +2 -2
  194. package/dist/internal/components/TextInputInnerAction.js +4 -4
  195. package/dist/internal/components/TextInputInnerVisualSlot.js +2 -2
  196. package/dist/internal/components/TextInputWrapper.js +3 -3
  197. package/dist/internal/components/ThemeProviderBase.js +1 -1
  198. package/dist/internal/components/UnderlineTabbedInterface.js +3 -3
  199. package/dist/internal/components/UnstyledTextInput.js +3 -3
  200. package/dist/internal/components/ValidationAnimationContainer.js +2 -2
  201. package/dist/internal/hooks/useEffectCallback.js +1 -1
  202. package/dist/internal/hooks/useEffectOnce.js +1 -1
  203. package/dist/internal/hooks/useOverflowObserver.js +1 -1
  204. package/dist/internal/hooks/useThemeProvider.js +1 -1
  205. package/dist/live-region/Announce.js +2 -2
  206. package/dist/live-region/AriaAlert.d.ts +1 -1
  207. package/dist/live-region/AriaAlert.js +1 -1
  208. package/dist/live-region/AriaStatus.js +1 -1
  209. package/dist/next/ThemeProvider.js +1 -1
  210. package/dist/utils/descendant-registry.js +2 -2
  211. package/dist/utils/react-compiler-runtime.js +32 -0
  212. package/generated/components.json +185 -10
  213. package/package.json +8 -8
  214. package/dist/Button/ButtonBase-b44e29d1.css.map +0 -1
  215. package/dist/DataTable/Table-7f5cb3e4.css +0 -2
  216. package/dist/DataTable/Table-7f5cb3e4.css.map +0 -1
  217. package/dist/SegmentedControl/SegmentedControl-4ef72733.css +0 -2
  218. package/dist/SegmentedControl/SegmentedControl-4ef72733.css.map +0 -1
@@ -1,9 +1,9 @@
1
+ import { c } from "../utils/react-compiler-runtime.js";
1
2
  import { TextInputWrapper } from "../internal/components/TextInputWrapper.js";
2
3
  import Select_module_css_default from "./Select.module.css.js";
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
19
  import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
22
20
  import { announce, announceFromElement } from "@primer/live-region-element";
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,
@@ -1,9 +1,9 @@
1
+ import { c } from "../utils/react-compiler-runtime.js";
1
2
  import Text_default from "../Text/Text.js";
2
3
  import Octicon from "../Octicon/Octicon.js";
3
4
  import SelectPanel_module_css_default from "./SelectPanel.module.css.js";
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
+ import { c } from "./utils/react-compiler-runtime.js";
1
2
  import Link from "./Link/Link.js";
2
3
  import SideNav_module_css_default from "./SideNav.module.css.js";
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
+ import { c } from "../utils/react-compiler-runtime.js";
1
2
  import SkeletonBox_module_css_default from "./SkeletonBox.module.css.js";
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);
@@ -1,9 +1,9 @@
1
+ import { c } from "../utils/react-compiler-runtime.js";
1
2
  import { isResponsiveValue } from "../hooks/useResponsiveValue.js";
2
3
  import { SkeletonBox } from "../Skeleton/SkeletonBox.js";
3
4
  import SkeletonAvatar_module_css_default from "./SkeletonAvatar.module.css.js";
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
+ import { c } from "../utils/react-compiler-runtime.js";
1
2
  import { SkeletonBox } from "../Skeleton/SkeletonBox.js";
2
3
  import SkeletonText_module_css_default from "./SkeletonText.module.css.js";
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);
@@ -1,11 +1,11 @@
1
+ import { c } from "../utils/react-compiler-runtime.js";
1
2
  import { VisuallyHidden } from "../VisuallyHidden/VisuallyHidden.js";
2
3
  import { useId as useId$1 } from "../hooks/useId.js";
3
4
  import Spinner_module_css_default from "./Spinner.module.css.js";
4
5
  import { useMedia } from "../hooks/useMedia.js";
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,5 +1,5 @@
1
+ import { c } from "../utils/react-compiler-runtime.js";
1
2
  import { PageLayout } from "../PageLayout/PageLayout.js";
2
- import { c } from "react-compiler-runtime";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  //#region src/SplitPageLayout/SplitPageLayout.tsx
5
5
  const Root = (props) => {
@@ -1,9 +1,9 @@
1
+ import { c } from "../utils/react-compiler-runtime.js";
1
2
  import { getResponsiveAttributes } from "../internal/utils/getResponsiveAttributes.js";
2
3
  import Stack_module_css_default from "./Stack.module.css.js";
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
+ import { c } from "../utils/react-compiler-runtime.js";
1
2
  import Octicon from "../Octicon/Octicon.js";
2
3
  import StateLabel_module_css_default from "./StateLabel.module.css.js";
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
+ import { c } from "../utils/react-compiler-runtime.js";
1
2
  import SubNav_module_css_default from "./SubNav.module.css.js";
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
+ import { c } from "../utils/react-compiler-runtime.js";
1
2
  import { FocusKeys, useFocusZone } from "../hooks/useFocusZone.js";
2
3
  import TabNav_module_css_default from "./TabNav.module.css.js";
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
+ import { c } from "../utils/react-compiler-runtime.js";
1
2
  import Text_module_css_default from "./Text.module.css.js";
2
3
  import { fixedForwardRef } from "../utils/modern-polymorphic.js";
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);
@@ -1,6 +1,6 @@
1
+ import { AriaStatus } from "../live-region/AriaStatus.js";
1
2
  import { useMergedRefs } from "../hooks/useMergedRefs.js";
2
3
  import { useProvidedRefOrCreate } from "../hooks/useProvidedRefOrCreate.js";
3
- import { AriaStatus } from "../live-region/AriaStatus.js";
4
4
  import { useFeatureFlag } from "../FeatureFlags/useFeatureFlag.js";
5
5
  import Text_default from "../Text/Text.js";
6
6
  import _VisuallyHidden_module_css_default from "../_VisuallyHidden.module.css.js";
@@ -11,9 +11,9 @@ import { TextInputWrapper } from "../internal/components/TextInputWrapper.js";
11
11
  import TextInputAction from "../internal/components/TextInputInnerAction.js";
12
12
  import UnstyledTextInput from "../internal/components/UnstyledTextInput.js";
13
13
  import { getCharacterCountState } from "../utils/character-counter.js";
14
- import { clsx } from "clsx";
15
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
16
14
  import React, { useCallback, useId, useRef, useState } from "react";
15
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
16
+ import { clsx } from "clsx";
17
17
  import { isValidElementType } from "react-is";
18
18
  import { AlertFillIcon } from "@primer/octicons-react";
19
19
  //#region src/TextInput/TextInput.tsx
@@ -64,7 +64,7 @@ const TextInput = /*#__PURE__*/ React.forwardRef(({ icon: IconComponent, leading
64
64
  const characterCountId = useId();
65
65
  const characterCountStaticMessageId = useId();
66
66
  const isValid = isOverLimit ? "error" : validationStatus;
67
- return /*#__PURE__*/ jsxs(Fragment, { children: [/*#__PURE__*/ jsxs(TextInputWrapper, {
67
+ return /*#__PURE__*/ jsxs(Fragment$1, { children: [/*#__PURE__*/ jsxs(TextInputWrapper, {
68
68
  block,
69
69
  className: wrapperClasses,
70
70
  validationStatus: isValid,
@@ -123,7 +123,7 @@ const TextInput = /*#__PURE__*/ React.forwardRef(({ icon: IconComponent, leading
123
123
  }),
124
124
  trailingAction
125
125
  ]
126
- }), characterLimit && /*#__PURE__*/ jsxs(Fragment, { children: [
126
+ }), characterLimit && /*#__PURE__*/ jsxs(Fragment$1, { children: [
127
127
  /*#__PURE__*/ jsx(AriaStatus, {
128
128
  announceOnShow: false,
129
129
  delayMs: 500,
@@ -1,3 +1,4 @@
1
+ import { c } from "../utils/react-compiler-runtime.js";
1
2
  import { useMergedRefs } from "../hooks/useMergedRefs.js";
2
3
  import { useId as useId$1 } from "../hooks/useId.js";
3
4
  import Text_default from "../Text/Text.js";
@@ -8,10 +9,9 @@ import { TextInputWrapper } from "../internal/components/TextInputWrapper.js";
8
9
  import UnstyledTextInput from "../internal/components/UnstyledTextInput.js";
9
10
  import Token from "../Token/Token.js";
10
11
  import TextInputWithTokens_module_css_default from "./TextInputWithTokens.module.css.js";
11
- import { c } from "react-compiler-runtime";
12
- import { clsx } from "clsx";
13
- import { jsx, jsxs } from "react/jsx-runtime";
14
12
  import React, { useRef, useState } from "react";
13
+ import { jsx, jsxs } from "react/jsx-runtime";
14
+ import { clsx } from "clsx";
15
15
  import { isFocusable } from "@primer/behaviors/utils";
16
16
  import { FocusKeys } from "@primer/behaviors";
17
17
  import { isValidElementType } from "react-is";
@@ -1,3 +1,4 @@
1
+ import { c } from "../utils/react-compiler-runtime.js";
1
2
  import { AriaStatus } from "../live-region/AriaStatus.js";
2
3
  import Text_default from "../Text/Text.js";
3
4
  import _VisuallyHidden_module_css_default from "../_VisuallyHidden.module.css.js";
@@ -5,10 +6,9 @@ import VisuallyHidden from "../_VisuallyHidden.js";
5
6
  import { TextInputBaseWrapper } from "../internal/components/TextInputWrapper.js";
6
7
  import { getCharacterCountState } from "../utils/character-counter.js";
7
8
  import TextArea_module_css_default from "./TextArea.module.css.js";
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, { useId, useState } from "react";
10
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
11
+ import { clsx } from "clsx";
12
12
  import { AlertFillIcon } from "@primer/octicons-react";
13
13
  const DEFAULT_TEXTAREA_RESIZE = "both";
14
14
  /**
@@ -185,7 +185,7 @@ const Textarea = /*#__PURE__*/ React.forwardRef((t0, ref) => {
185
185
  $[77] = t11;
186
186
  $[78] = t12;
187
187
  } else t12 = $[78];
188
- t5 = /*#__PURE__*/ jsxs(Fragment, { children: [t12, characterLimit && /*#__PURE__*/ jsxs(Fragment, { children: [
188
+ t5 = /*#__PURE__*/ jsxs(Fragment$1, { children: [t12, characterLimit && /*#__PURE__*/ jsxs(Fragment$1, { children: [
189
189
  /*#__PURE__*/ jsx(AriaStatus, {
190
190
  announceOnShow: false,
191
191
  delayMs: 500,
@@ -1,9 +1,9 @@
1
1
  import theme from "./theme.js";
2
+ import { c } from "./utils/react-compiler-runtime.js";
2
3
  import { ThemeProviderBase } from "./internal/components/ThemeProviderBase.js";
3
4
  import { useThemeProvider } from "./internal/hooks/useThemeProvider.js";
4
- import { c } from "react-compiler-runtime";
5
- import { jsx } from "react/jsx-runtime";
6
5
  import "react";
6
+ import { jsx } from "react/jsx-runtime";
7
7
  import deepmerge from "deepmerge";
8
8
  //#region src/ThemeProvider.tsx
9
9
  /**
@@ -1,9 +1,9 @@
1
+ import { c } from "../utils/react-compiler-runtime.js";
1
2
  import { useFeatureFlag } from "../FeatureFlags/useFeatureFlag.js";
2
3
  import Timeline_module_css_default from "./Timeline.module.css.js";
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/Timeline/Timeline.tsx
8
8
  function resolveClipSidebar(clipSidebar) {
9
9
  if (clipSidebar === true || clipSidebar === "both") return "both";
@@ -1,14 +1,14 @@
1
+ import { c } from "../utils/react-compiler-runtime.js";
2
+ import { AriaStatus } from "../live-region/AriaStatus.js";
1
3
  import { useProvidedStateOrCreate } from "../hooks/useProvidedStateOrCreate.js";
2
4
  import { useId as useId$1 } from "../hooks/useId.js";
3
5
  import Spinner from "../Spinner/Spinner.js";
4
- import { AriaStatus } from "../live-region/AriaStatus.js";
5
6
  import VisuallyHidden from "../_VisuallyHidden.js";
6
7
  import useSafeTimeout from "../hooks/useSafeTimeout.js";
7
8
  import ToggleSwitch_module_css_default from "./ToggleSwitch.module.css.js";
8
- import { c } from "react-compiler-runtime";
9
- import { clsx } from "clsx";
10
- import { jsx, jsxs } from "react/jsx-runtime";
11
9
  import React, { useEffect } from "react";
10
+ import { jsx, jsxs } from "react/jsx-runtime";
11
+ import { clsx } from "clsx";
12
12
  //#region src/ToggleSwitch/ToggleSwitch.tsx
13
13
  const CircleIcon = (t0) => {
14
14
  const $ = c(4);
@@ -1,13 +1,13 @@
1
+ import { c } from "../utils/react-compiler-runtime.js";
1
2
  import { defaultTokenSize } from "./constants.js";
2
3
  import { isTokenInteractive } from "./utils.js";
3
4
  import TokenBase from "./TokenBase.js";
4
5
  import RemoveTokenButton from "./_RemoveTokenButton.js";
5
6
  import TokenTextContainer from "./_TokenTextContainer.js";
6
7
  import IssueLabelToken_module_css_default from "./IssueLabelToken.module.css.js";
7
- import { c } from "react-compiler-runtime";
8
- import { clsx } from "clsx";
9
- import { jsx, jsxs } from "react/jsx-runtime";
10
8
  import { forwardRef } from "react";
9
+ import { jsx, jsxs } from "react/jsx-runtime";
10
+ import { clsx } from "clsx";
11
11
  import { parseToHsla, parseToRgba } from "color2k";
12
12
  //#region src/Token/IssueLabelToken.tsx
13
13
  const IssueLabelToken = /*#__PURE__*/ forwardRef((props, forwardedRef) => {
@@ -1,3 +1,4 @@
1
+ import { c } from "../utils/react-compiler-runtime.js";
1
2
  import VisuallyHidden from "../_VisuallyHidden.js";
2
3
  import { defaultTokenSize } from "./constants.js";
3
4
  import { isTokenInteractive } from "./utils.js";
@@ -5,10 +6,9 @@ import TokenBase from "./TokenBase.js";
5
6
  import RemoveTokenButton from "./_RemoveTokenButton.js";
6
7
  import TokenTextContainer from "./_TokenTextContainer.js";
7
8
  import Token_module_css_default from "./Token.module.css.js";
8
- import { c } from "react-compiler-runtime";
9
- import { clsx } from "clsx";
10
- import { jsx, jsxs } from "react/jsx-runtime";
11
9
  import { forwardRef } from "react";
10
+ import { jsx, jsxs } from "react/jsx-runtime";
11
+ import { clsx } from "clsx";
12
12
  //#region src/Token/Token.tsx
13
13
  const tokenBorderWidthPx = 1;
14
14
  const LeadingVisualContainer = (t0) => {
@@ -1,10 +1,10 @@
1
+ import { c } from "../utils/react-compiler-runtime.js";
1
2
  import TokenBase_module_css_default from "./TokenBase.module.css.js";
2
3
  import { defaultTokenSize } from "./constants.js";
3
4
  import { isTokenInteractive } from "./utils.js";
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/Token/TokenBase.tsx
9
9
  const TokenBase = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) => {
10
10
  const $ = c(25);
@@ -1,7 +1,7 @@
1
1
  import { defaultTokenSize } from "./constants.js";
2
2
  import _RemoveTokenButton_module_css_default from "./_RemoveTokenButton.module.css.js";
3
- import { clsx } from "clsx";
4
3
  import { jsx } from "react/jsx-runtime";
4
+ import { clsx } from "clsx";
5
5
  import { XIcon } from "@primer/octicons-react";
6
6
  //#region src/Token/_RemoveTokenButton.tsx
7
7
  const RemoveTokenButton = ({ "aria-label": ariaLabel, isParentInteractive, size = defaultTokenSize, className, borderOffset = 0, as: _as, children: _children, ...rest }) => {
@@ -1,7 +1,7 @@
1
+ import { c } from "../utils/react-compiler-runtime.js";
1
2
  import _TokenTextContainer_module_css_default from "./_TokenTextContainer.module.css.js";
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/Token/_TokenTextContainer.tsx
6
6
  const TokenTextContainer = (t0) => {
7
7
  const $ = c(13);
@@ -1,9 +1,9 @@
1
1
  import { useId as useId$1 } from "../hooks/useId.js";
2
2
  import { TooltipContext } from "./TooltipContext.js";
3
3
  import Tooltip_module_css_default from "./Tooltip.module.css.js";
4
- import { clsx } from "clsx";
5
- import { jsx } from "react/jsx-runtime";
6
4
  import React, { useMemo } from "react";
5
+ import { jsx } from "react/jsx-runtime";
6
+ import { clsx } from "clsx";
7
7
  //#region src/Tooltip/Tooltip.tsx
8
8
  /**
9
9
  * @deprecated
@@ -1,3 +1,4 @@
1
+ import { reactMajorVersion } from "../utils/environment.js";
1
2
  import { useMergedRefs } from "../hooks/useMergedRefs.js";
2
3
  import { useProvidedRefOrCreate } from "../hooks/useProvidedRefOrCreate.js";
3
4
  import { useOnEscapePress } from "../hooks/useOnEscapePress.js";
@@ -12,9 +13,9 @@ import { KeybindingHint } from "../KeybindingHint/KeybindingHint.js";
12
13
  import { getAccessibleKeybindingHintString } from "../KeybindingHint/utils.js";
13
14
  import useSafeTimeout from "../hooks/useSafeTimeout.js";
14
15
  import { TooltipContext } from "./TooltipContext.js";
15
- import { clsx } from "clsx";
16
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
17
16
  import React, { Children, useEffect, useMemo, useRef, useState } from "react";
17
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
18
+ import { clsx } from "clsx";
18
19
  import { getAnchoredPosition } from "@primer/behaviors";
19
20
  import { apply, isSupported } from "@oddbird/popover-polyfill/fn";
20
21
  //#region src/TooltipV2/Tooltip.tsx
@@ -82,10 +83,14 @@ const emptyKeybindingHints = [];
82
83
  const Tooltip = /*#__PURE__*/ React.forwardRef(({ direction = "s", text, type = "description", children, id, className, keybindingHint = emptyKeybindingHints, delay = "short", _privateDisableTooltip = false, ...rest }, forwardedRef) => {
83
84
  const tooltipId = useId$1(id);
84
85
  const child = Children.only(children);
86
+ const isFragmentTrigger = /*#__PURE__*/ React.isValidElement(child) && child.type === React.Fragment;
87
+ warning(isFragmentTrigger, "The `Tooltip` component does not support a React Fragment as its trigger. Pass a single interactive element instead.");
88
+ const elementChild = /*#__PURE__*/ React.isValidElement(child) ? child : void 0;
89
+ const childRef = reactMajorVersion > 18 ? elementChild === null || elementChild === void 0 ? void 0 : elementChild.props.ref : elementChild === null || elementChild === void 0 ? void 0 : elementChild.ref;
85
90
  const mergedRefEnabled = useFeatureFlag("primer_react_merged_forwarded_refs");
86
91
  const triggerRef = useRef(null);
87
- const mergedTriggerRef = useMergedRefs(triggerRef, forwardedRef);
88
- const providedOrCreatedRef = useProvidedRefOrCreate(forwardedRef);
92
+ const mergedTriggerRef = useMergedRefs(triggerRef, useMergedRefs(forwardedRef, childRef));
93
+ const providedOrCreatedRef = useProvidedRefOrCreate(forwardedRef !== null && forwardedRef !== void 0 ? forwardedRef : childRef);
89
94
  const readTriggerRef = mergedRefEnabled ? triggerRef : providedOrCreatedRef;
90
95
  const appliedTriggerRef = mergedRefEnabled ? mergedTriggerRef : providedOrCreatedRef;
91
96
  const tooltipElRef = useRef(null);
@@ -95,7 +100,7 @@ const Tooltip = /*#__PURE__*/ React.forwardRef(({ direction = "s", text, type =
95
100
  const { safeSetTimeout, safeClearTimeout } = useSafeTimeout();
96
101
  const openTooltip = () => {
97
102
  try {
98
- if (tooltipElRef.current && readTriggerRef.current && tooltipElRef.current.hasAttribute("popover") && !tooltipElRef.current.matches(":popover-open") && !_privateDisableTooltip) {
103
+ if (tooltipElRef.current && readTriggerRef.current instanceof HTMLElement && tooltipElRef.current.hasAttribute("popover") && !tooltipElRef.current.matches(":popover-open") && !_privateDisableTooltip) {
99
104
  const tooltip = tooltipElRef.current;
100
105
  const trigger = readTriggerRef.current;
101
106
  tooltip.showPopover();
@@ -131,15 +136,19 @@ const Tooltip = /*#__PURE__*/ React.forwardRef(({ direction = "s", text, type =
131
136
  const value = useMemo(() => ({ tooltipId }), [tooltipId]);
132
137
  useEffect(() => {
133
138
  if (!tooltipElRef.current || !readTriggerRef.current) return;
134
- const isTriggerInteractive = isInteractive(readTriggerRef.current);
135
- const triggerChildren = readTriggerRef.current.childNodes;
139
+ const trigger = readTriggerRef.current;
140
+ const isInvalidTrigger = !(trigger instanceof HTMLElement);
141
+ warning(isInvalidTrigger, "The `Tooltip` component expects its trigger ref to resolve to an HTML element. Ensure the trigger forwards its ref to a single interactive element instead of a React Fragment.");
142
+ if (isInvalidTrigger) return;
143
+ const isTriggerInteractive = isInteractive(trigger);
144
+ const triggerChildren = trigger.childNodes;
136
145
  const hasInteractiveDescendant = Array.from(triggerChildren).some((child) => {
137
146
  return child instanceof HTMLElement && isInteractive(child) || Array.from(child.childNodes).some((grandChild) => grandChild instanceof HTMLElement && isInteractive(grandChild));
138
147
  });
139
148
  !(isTriggerInteractive || hasInteractiveDescendant) && invariant(false, "The `Tooltip` component expects a single React element that contains interactive content. Consider using a `<button>` or equivalent interactive element instead.");
140
149
  if (type === "label") {
141
- const hasAriaLabel = readTriggerRef.current.hasAttribute("aria-label");
142
- const hasAriaLabelInChildren = Array.from(readTriggerRef.current.childNodes).some((child) => child instanceof HTMLElement && child.hasAttribute("aria-label"));
150
+ const hasAriaLabel = trigger.hasAttribute("aria-label");
151
+ const hasAriaLabelInChildren = Array.from(trigger.childNodes).some((child) => child instanceof HTMLElement && child.hasAttribute("aria-label"));
143
152
  warning(hasAriaLabel || hasAriaLabelInChildren, "The label type `Tooltip` is going to be used here to label the trigger element. Please remove the aria-label from the trigger element.");
144
153
  }
145
154
  if (typeof window !== "undefined") {
@@ -162,9 +171,10 @@ const Tooltip = /*#__PURE__*/ React.forwardRef(({ direction = "s", text, type =
162
171
  const platform = usePlatform();
163
172
  const hasAriaLabel = "aria-label" in rest;
164
173
  const keybindingHints = Array.isArray(keybindingHint) ? keybindingHint : [keybindingHint];
174
+ if (isFragmentTrigger) return child;
165
175
  return /*#__PURE__*/ jsx(TooltipContext.Provider, {
166
176
  value,
167
- children: /*#__PURE__*/ jsxs(Fragment, { children: [/*#__PURE__*/ React.isValidElement(child) && /*#__PURE__*/ React.cloneElement(child, {
177
+ children: /*#__PURE__*/ jsxs(Fragment$1, { children: [/*#__PURE__*/ React.isValidElement(child) && /*#__PURE__*/ React.cloneElement(child, {
168
178
  ref: appliedTriggerRef,
169
179
  "aria-describedby": (() => {
170
180
  if (type !== "description") return child.props["aria-describedby"];
@@ -216,7 +226,7 @@ const Tooltip = /*#__PURE__*/ React.forwardRef(({ direction = "s", text, type =
216
226
  onMouseEnter: openTooltip,
217
227
  onMouseLeave: closeTooltip,
218
228
  id: hasAriaLabel || keybindingHints.length === 0 ? tooltipId : void 0,
219
- children: keybindingHints.length > 0 ? /*#__PURE__*/ jsxs(Fragment, { children: [/*#__PURE__*/ jsxs("span", {
229
+ children: keybindingHints.length > 0 ? /*#__PURE__*/ jsxs(Fragment$1, { children: [/*#__PURE__*/ jsxs("span", {
220
230
  id: hasAriaLabel ? void 0 : tooltipId,
221
231
  children: [text, /*#__PURE__*/ jsxs(VisuallyHidden, { children: [
222
232
  "(",
@@ -1,7 +1,7 @@
1
+ import { c } from "../utils/react-compiler-runtime.js";
1
2
  import TopicTag_module_css_default from "./TopicTag.module.css.js";
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/TopicTag/TopicTag.tsx
6
6
  function TopicTag(t0) {
7
7
  var _as;
@@ -1,7 +1,7 @@
1
+ import { c } from "../utils/react-compiler-runtime.js";
1
2
  import TopicTagGroup_module_css_default from "./TopicTagGroup.module.css.js";
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/TopicTag/TopicTagGroup.tsx
6
6
  function TopicTagGroup(t0) {
7
7
  const $ = c(10);
@@ -1,8 +1,8 @@
1
+ import { AriaStatus } from "../live-region/AriaStatus.js";
1
2
  import { useId as useId$1 } from "../hooks/useId.js";
2
3
  import { isSlot } from "../utils/is-slot.js";
3
4
  import { useSlots } from "../hooks/useSlots.js";
4
5
  import Spinner from "../Spinner/Spinner.js";
5
- import { AriaStatus } from "../live-region/AriaStatus.js";
6
6
  import { fixedForwardRef } from "../utils/modern-polymorphic.js";
7
7
  import Text_default from "../Text/Text.js";
8
8
  import VisuallyHidden from "../_VisuallyHidden.js";
@@ -22,9 +22,9 @@ import { getFirstChildElement, useRovingTabIndex } from "./useRovingTabIndex.js"
22
22
  import { useTypeahead } from "./useTypeahead.js";
23
23
  import { SkeletonAvatar } from "../SkeletonAvatar/SkeletonAvatar.js";
24
24
  import { SkeletonText } from "../SkeletonText/SkeletonText.js";
25
- import { clsx } from "clsx";
26
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
27
25
  import React, { useCallback, useEffect } from "react";
26
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
27
+ import { clsx } from "clsx";
28
28
  import { ChevronDownIcon, ChevronRightIcon, FileDirectoryFillIcon, FileDirectoryOpenFillIcon } from "@primer/octicons-react";
29
29
  //#region src/TreeView/TreeView.tsx
30
30
  const RootContext = /*#__PURE__*/ React.createContext({
@@ -100,7 +100,7 @@ const Root = ({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, chil
100
100
  expandedStateCache,
101
101
  scrollElementIntoView
102
102
  },
103
- children: /*#__PURE__*/ jsxs(Fragment, { children: [/*#__PURE__*/ jsx(VisuallyHidden, { children: /*#__PURE__*/ jsx(AriaStatus, {
103
+ children: /*#__PURE__*/ jsxs(Fragment$1, { children: [/*#__PURE__*/ jsx(VisuallyHidden, { children: /*#__PURE__*/ jsx(AriaStatus, {
104
104
  announceOnShow: true,
105
105
  children: ariaLiveMessage
106
106
  }) }), /*#__PURE__*/ jsx("ul", {
@@ -269,7 +269,7 @@ const ItemImpl = fixedForwardRef(({ id: itemId, containIntrinsicSize, current: i
269
269
  slots.trailingVisual
270
270
  ]
271
271
  }),
272
- secondaryActions ? /*#__PURE__*/ jsxs(Fragment, { children: [/*#__PURE__*/ jsx(TrailingAction, {
272
+ secondaryActions ? /*#__PURE__*/ jsxs(Fragment$1, { children: [/*#__PURE__*/ jsx(TrailingAction, {
273
273
  items: secondaryActions,
274
274
  shortcutText: trailingActionShortcutText
275
275
  }), actionCommandPressed ? /*#__PURE__*/ jsx(ActionDialog, {
@@ -469,7 +469,7 @@ function useSubTree(children) {
469
469
  const LeadingVisual = (props) => {
470
470
  const { isExpanded, leadingVisualId } = React.useContext(ItemContext);
471
471
  const children = typeof props.children === "function" ? props.children({ isExpanded }) : props.children;
472
- return /*#__PURE__*/ jsxs(Fragment, { children: [/*#__PURE__*/ jsx("div", {
472
+ return /*#__PURE__*/ jsxs(Fragment$1, { children: [/*#__PURE__*/ jsx("div", {
473
473
  className: clsx("PRIVATE_VisuallyHidden", TreeView_module_css_default.TreeViewVisuallyHidden),
474
474
  "aria-hidden": true,
475
475
  id: leadingVisualId,
@@ -484,7 +484,7 @@ LeadingVisual.displayName = "TreeView.LeadingVisual";
484
484
  const TrailingVisual = (props) => {
485
485
  const { isExpanded, trailingVisualId } = React.useContext(ItemContext);
486
486
  const children = typeof props.children === "function" ? props.children({ isExpanded }) : props.children;
487
- return /*#__PURE__*/ jsxs(Fragment, { children: [/*#__PURE__*/ jsx("div", {
487
+ return /*#__PURE__*/ jsxs(Fragment$1, { children: [/*#__PURE__*/ jsx("div", {
488
488
  className: clsx("PRIVATE_VisuallyHidden", TreeView_module_css_default.TreeViewVisuallyHidden),
489
489
  "aria-hidden": true,
490
490
  id: trailingVisualId,
@@ -499,7 +499,7 @@ TrailingVisual.displayName = "TreeView.TrailingVisual";
499
499
  const LeadingAction = (props) => {
500
500
  const { isExpanded } = React.useContext(ItemContext);
501
501
  const children = typeof props.children === "function" ? props.children({ isExpanded }) : props.children;
502
- return /*#__PURE__*/ jsxs(Fragment, { children: [/*#__PURE__*/ jsx("div", {
502
+ return /*#__PURE__*/ jsxs(Fragment$1, { children: [/*#__PURE__*/ jsx("div", {
503
503
  className: clsx("PRIVATE_VisuallyHidden", TreeView_module_css_default.TreeViewVisuallyHidden),
504
504
  "aria-hidden": true,
505
505
  children: props.label
@@ -513,7 +513,7 @@ LeadingAction.displayName = "TreeView.LeadingAction";
513
513
  const TrailingAction = (props) => {
514
514
  const { trailingActionId, itemId } = React.useContext(ItemContext);
515
515
  const { items, shortcutText } = props;
516
- return /*#__PURE__*/ jsxs(Fragment, { children: [/*#__PURE__*/ jsxs("div", {
516
+ return /*#__PURE__*/ jsxs(Fragment$1, { children: [/*#__PURE__*/ jsxs("div", {
517
517
  id: trailingActionId,
518
518
  className: clsx("PRIVATE_VisuallyHidden", TreeView_module_css_default.TreeViewVisuallyHidden),
519
519
  children: ["- ", shortcutText]
@@ -1,6 +1,6 @@
1
+ import { c } from "../utils/react-compiler-runtime.js";
1
2
  import { FocusKeys, useFocusZone } from "../hooks/useFocusZone.js";
2
3
  import { getScrollContainer } from "../utils/scroll.js";
3
- import { c } from "react-compiler-runtime";
4
4
  //#region src/TreeView/useRovingTabIndex.ts
5
5
  function useRovingTabIndex(t0, t1) {
6
6
  const $ = c(12);
@@ -1,4 +1,4 @@
1
- import { c } from "react-compiler-runtime";
1
+ import { c } from "../utils/react-compiler-runtime.js";
2
2
  import React from "react";
3
3
  //#region src/TreeView/useTreeItemCache.ts
4
4
  /**
@@ -1,7 +1,7 @@
1
+ import { c } from "../utils/react-compiler-runtime.js";
1
2
  import useSafeTimeout from "../hooks/useSafeTimeout.js";
2
3
  import { getAccessibleName } from "./shared.js";
3
4
  import { useTreeItemCache } from "./useTreeItemCache.js";
4
- import { c } from "react-compiler-runtime";
5
5
  import React from "react";
6
6
  //#region src/TreeView/useTypeahead.ts
7
7
  function useTypeahead(t0) {
@@ -1,7 +1,7 @@
1
1
  import Truncate_module_css_default from "./Truncate.module.css.js";
2
- import { clsx } from "clsx";
3
- import { jsx } from "react/jsx-runtime";
4
2
  import React from "react";
3
+ import { jsx } from "react/jsx-runtime";
4
+ import { clsx } from "clsx";
5
5
  //#region src/Truncate/Truncate.tsx
6
6
  const Truncate = /*#__PURE__*/ React.forwardRef(function Truncate({ as: Component = "div", children, className, title, inline, expandable, maxWidth = 125, style, ...rest }, ref) {
7
7
  return /*#__PURE__*/ jsx(Component, {