@primer/react 38.37.1-rc.f8f4193e4 → 38.38.0-rc.8cc0fbde1

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 (145) 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 +4 -4
  6. package/dist/ActionList/GroupHeadingTrailingAction.js +1 -1
  7. package/dist/ActionList/Heading.js +3 -3
  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 +7 -2
  17. package/dist/Autocomplete/AutocompleteMenu.js +81 -75
  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/ScrollableRegion/ScrollableRegion.js +2 -2
  70. package/dist/SegmentedControl/SegmentedControl.js +3 -3
  71. package/dist/SegmentedControl/SegmentedControlButton.js +1 -1
  72. package/dist/SegmentedControl/SegmentedControlIconButton.js +1 -1
  73. package/dist/Select/Select.js +2 -2
  74. package/dist/SelectPanel/SelectPanel.js +4 -4
  75. package/dist/SelectPanel/SelectPanelMessage.js +1 -1
  76. package/dist/SideNav.js +1 -1
  77. package/dist/Skeleton/SkeletonBox.js +2 -2
  78. package/dist/SkeletonAvatar/SkeletonAvatar.js +1 -1
  79. package/dist/SkeletonText/SkeletonText.js +1 -1
  80. package/dist/Spinner/Spinner.js +2 -2
  81. package/dist/Stack/Stack.js +2 -2
  82. package/dist/StateLabel/StateLabel.js +2 -2
  83. package/dist/SubNav/SubNav.js +2 -2
  84. package/dist/TabNav/TabNav.js +2 -2
  85. package/dist/Text/Text.js +1 -1
  86. package/dist/TextInput/TextInput.js +5 -5
  87. package/dist/TextInputWithTokens/TextInputWithTokens.js +2 -2
  88. package/dist/Textarea/Textarea.js +3 -3
  89. package/dist/ThemeProvider.js +1 -1
  90. package/dist/Timeline/Timeline.js +2 -2
  91. package/dist/ToggleSwitch/ToggleSwitch.js +3 -3
  92. package/dist/Token/IssueLabelToken.js +2 -2
  93. package/dist/Token/Token.js +2 -2
  94. package/dist/Token/TokenBase.js +2 -2
  95. package/dist/Token/_RemoveTokenButton.js +1 -1
  96. package/dist/Token/_TokenTextContainer.js +1 -1
  97. package/dist/Tooltip/Tooltip.js +2 -2
  98. package/dist/TooltipV2/Tooltip.js +4 -4
  99. package/dist/TopicTag/TopicTag.js +1 -1
  100. package/dist/TopicTag/TopicTagGroup.js +1 -1
  101. package/dist/TreeView/TreeView.js +9 -9
  102. package/dist/Truncate/Truncate.js +2 -2
  103. package/dist/UnderlineNav/UnderlineNav.js +2 -2
  104. package/dist/UnderlineNav/UnderlineNavItem.js +1 -1
  105. package/dist/VisuallyHidden/VisuallyHidden.js +1 -1
  106. package/dist/_VisuallyHidden.js +1 -1
  107. package/dist/deprecated/ActionList/Header.js +1 -1
  108. package/dist/deprecated/ActionList/Item.js +3 -3
  109. package/dist/deprecated/ActionList/List.js +2 -2
  110. package/dist/deprecated/ActionMenu.js +1 -1
  111. package/dist/deprecated/DialogV1/Dialog.js +3 -3
  112. package/dist/deprecated/FilteredSearch/FilteredSearch.js +1 -1
  113. package/dist/deprecated/UnderlineNav/UnderlineNav.js +2 -2
  114. package/dist/experimental/IssueLabel/IssueLabel.js +1 -1
  115. package/dist/experimental/SelectPanel2/SelectPanel.js +6 -6
  116. package/dist/experimental/Tabs/Tabs.js +1 -1
  117. package/dist/experimental/UnderlinePanels/UnderlinePanels.js +6 -6
  118. package/dist/experimental/index.d.ts +3 -3
  119. package/dist/experimental/index.js +1 -1
  120. package/dist/index.d.ts +3 -1
  121. package/dist/index.js +3 -1
  122. package/dist/internal/components/ButtonReset.js +1 -1
  123. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js +3 -3
  124. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupCaption.js +2 -2
  125. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.js +2 -2
  126. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.js +1 -1
  127. package/dist/internal/components/InputLabel.js +1 -1
  128. package/dist/internal/components/InputValidation.js +1 -1
  129. package/dist/internal/components/OverflowObserverProvider.js +1 -1
  130. package/dist/internal/components/TextInputInnerAction.js +3 -3
  131. package/dist/internal/components/TextInputInnerVisualSlot.js +1 -1
  132. package/dist/internal/components/TextInputWrapper.js +2 -2
  133. package/dist/internal/components/UnderlineTabbedInterface-a5cd75c0.css +2 -0
  134. package/dist/internal/components/UnderlineTabbedInterface-a5cd75c0.css.map +1 -0
  135. package/dist/internal/components/UnderlineTabbedInterface.js +2 -2
  136. package/dist/internal/components/UnderlineTabbedInterface.module.css.js +1 -1
  137. package/dist/internal/components/UnstyledTextInput.js +2 -2
  138. package/dist/internal/components/ValidationAnimationContainer.js +1 -1
  139. package/dist/live-region/Announce.js +2 -2
  140. package/dist/live-region/AriaAlert.d.ts +1 -1
  141. package/dist/utils/descendant-registry.js +1 -1
  142. package/generated/components.json +73 -0
  143. package/package.json +2 -2
  144. package/dist/internal/components/UnderlineTabbedInterface-8a52007f.css +0 -2
  145. package/dist/internal/components/UnderlineTabbedInterface-8a52007f.css.map +0 -1
@@ -2,9 +2,9 @@ import { useId as useId$1 } from "../../hooks/useId.js";
2
2
  import Truncate from "../../Truncate/Truncate.js";
3
3
  import Item_module_css_default from "./Item.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 from "react";
6
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
7
+ import { clsx } from "clsx";
8
8
  import { isValidElementType } from "react-is";
9
9
  import { CheckIcon } from "@primer/octicons-react";
10
10
  //#region src/deprecated/ActionList/Item.tsx
@@ -140,7 +140,7 @@ const Item = /*#__PURE__*/ React.forwardRef((itemProps, ref) => {
140
140
  if ($[35] !== selected || $[36] !== selectionVariant) {
141
141
  t12 = !!selected === selected && /*#__PURE__*/ jsx("div", {
142
142
  className: Item_module_css_default.BaseVisualContainer,
143
- children: selectionVariant === "multiple" ? /*#__PURE__*/ jsx(Fragment, { children: /*#__PURE__*/ jsxs("svg", {
143
+ children: selectionVariant === "multiple" ? /*#__PURE__*/ jsx(Fragment$1, { children: /*#__PURE__*/ jsxs("svg", {
144
144
  className: Item_module_css_default.MultiSelectIcon,
145
145
  "data-selected": selected ? "" : void 0,
146
146
  width: "16",
@@ -3,9 +3,9 @@ import { Item } from "./Item.js";
3
3
  import { Divider } from "./Divider.js";
4
4
  import List_module_css_default from "./List.module.css.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 React, { createElement } from "react";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
+ import { clsx } from "clsx";
9
9
  //#region src/deprecated/ActionList/List.tsx
10
10
  /**
11
11
  * Contract for props passed to the `List` component.
@@ -6,8 +6,8 @@ import { Item } from "./ActionList/Item.js";
6
6
  import { Divider } from "./ActionList/Divider.js";
7
7
  import { List } from "./ActionList/List.js";
8
8
  import { c } from "react-compiler-runtime";
9
- import { jsx } from "react/jsx-runtime";
10
9
  import "react";
10
+ import { jsx } from "react/jsx-runtime";
11
11
  //#region src/deprecated/ActionMenu.tsx
12
12
  const ActionMenuItem = (props) => {
13
13
  const $ = c(2);
@@ -3,9 +3,9 @@ import { IconButton } from "../../Button/IconButton.js";
3
3
  import useDialog from "../../hooks/useDialog.js";
4
4
  import Dialog_module_css_default from "./Dialog.module.css.js";
5
5
  import { c } from "react-compiler-runtime";
6
- import { clsx } from "clsx";
7
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
8
6
  import React, { forwardRef, useRef } from "react";
7
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
8
+ import { clsx } from "clsx";
9
9
  import { XIcon } from "@primer/octicons-react";
10
10
  //#region src/deprecated/DialogV1/Dialog.tsx
11
11
  const noop = () => null;
@@ -134,7 +134,7 @@ const Dialog = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
134
134
  const { getDialogProps } = useDialog(t4);
135
135
  let t5;
136
136
  if ($[17] !== Component || $[18] !== children || $[19] !== className || $[20] !== getDialogProps || $[21] !== isOpen || $[22] !== mergedRef || $[23] !== onCloseClick || $[24] !== props) {
137
- t5 = isOpen ? /*#__PURE__*/ jsxs(Fragment, { children: [/*#__PURE__*/ jsx("span", {
137
+ t5 = isOpen ? /*#__PURE__*/ jsxs(Fragment$1, { children: [/*#__PURE__*/ jsx("span", {
138
138
  className: Dialog_module_css_default.Overlay,
139
139
  ref: overlayRef
140
140
  }), /*#__PURE__*/ jsxs(Component, {
@@ -1,7 +1,7 @@
1
1
  import FilteredSearch_module_css_default from "./FilteredSearch.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/deprecated/FilteredSearch/FilteredSearch.tsx
6
6
  /**
7
7
  * @deprecated A new filter component is in progress.
@@ -1,8 +1,8 @@
1
1
  import UnderlineNav_module_css_default from "./UnderlineNav.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/deprecated/UnderlineNav/UnderlineNav.tsx
7
7
  function UnderlineNav(t0) {
8
8
  const $ = c(24);
@@ -1,7 +1,7 @@
1
1
  import IssueLabel_module_css_default from "./IssueLabel.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
  import { readableColor } from "color2k";
6
6
  //#region src/experimental/IssueLabel/IssueLabel.tsx
7
7
  function IssueLabel(t0) {
@@ -1,10 +1,10 @@
1
+ import { AriaStatus } from "../../live-region/AriaStatus.js";
1
2
  import { useProvidedRefOrCreate } from "../../hooks/useProvidedRefOrCreate.js";
2
3
  import { useAnchoredPosition } from "../../hooks/useAnchoredPosition.js";
3
4
  import { useId as useId$1 } from "../../hooks/useId.js";
4
5
  import { isSlot } from "../../utils/is-slot.js";
5
6
  import { useSlots } from "../../hooks/useSlots.js";
6
7
  import Spinner from "../../Spinner/Spinner.js";
7
- import { AriaStatus } from "../../live-region/AriaStatus.js";
8
8
  import { invariant } from "../../utils/invariant.js";
9
9
  import { IconButton } from "../../Button/IconButton.js";
10
10
  import { ButtonComponent } from "../../Button/Button.js";
@@ -20,9 +20,9 @@ import Checkbox from "../../Checkbox/Checkbox.js";
20
20
  import Octicon from "../../Octicon/Octicon.js";
21
21
  import { InputLabel } from "../../internal/components/InputLabel.js";
22
22
  import SelectPanel_module_css_default from "./SelectPanel.module.css.js";
23
- import { clsx } from "clsx";
24
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
25
23
  import React, { useEffect, useState } from "react";
24
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
25
+ import { clsx } from "clsx";
26
26
  import { AlertIcon, ArrowLeftIcon, FilterRemoveIcon, SearchIcon, XCircleFillIcon, XIcon } from "@primer/octicons-react";
27
27
  //#region src/experimental/SelectPanel2/SelectPanel.tsx
28
28
  const SelectPanelContext = /*#__PURE__*/ React.createContext({
@@ -141,7 +141,7 @@ const Panel = ({ title, description, variant: propsVariant, selectionVariant = "
141
141
  let maxHeightValue = heightMap[maxHeight];
142
142
  if (currentVariant === "bottom-sheet") maxHeightValue = "calc(100vh - 64px)";
143
143
  else if (currentVariant === "full-screen") maxHeightValue = "100vh";
144
- return /*#__PURE__*/ jsxs(Fragment, { children: [Anchor, /*#__PURE__*/ jsx(BaseOverlay, {
144
+ return /*#__PURE__*/ jsxs(Fragment$1, { children: [Anchor, /*#__PURE__*/ jsx(BaseOverlay, {
145
145
  as: "dialog",
146
146
  ref: dialogRef,
147
147
  "aria-labelledby": `${panelId}--title`,
@@ -162,7 +162,7 @@ const Panel = ({ title, description, variant: propsVariant, selectionVariant = "
162
162
  onClick: (event) => {
163
163
  if (event.target === event.currentTarget) onClickOutside();
164
164
  },
165
- children: internalOpen && /*#__PURE__*/ jsx(Fragment, { children: /*#__PURE__*/ jsx(SelectPanelContext.Provider, {
165
+ children: internalOpen && /*#__PURE__*/ jsx(Fragment$1, { children: /*#__PURE__*/ jsx(SelectPanelContext.Provider, {
166
166
  value: {
167
167
  panelId,
168
168
  title,
@@ -374,7 +374,7 @@ SecondaryLink.displayName = "SecondaryLink";
374
374
  const SecondaryCheckbox = ({ id, children, className, ...props }) => {
375
375
  const checkboxId = useId$1(id);
376
376
  const { selectionVariant } = React.useContext(SelectPanelContext);
377
- !(selectionVariant !== "instant") && invariant(false, "Sorry! SelectPanel.SecondaryAction with variant=\"checkbox\" is not allowed inside selectionVariant=\"instant\"");
377
+ selectionVariant === "instant" && invariant(false, "Sorry! SelectPanel.SecondaryAction with variant=\"checkbox\" is not allowed inside selectionVariant=\"instant\"");
378
378
  return /*#__PURE__*/ jsxs("div", {
379
379
  className: SelectPanel_module_css_default.SecondaryCheckbox,
380
380
  children: [/*#__PURE__*/ jsx(Checkbox, {
@@ -3,8 +3,8 @@ import { useFeatureFlag } from "../../FeatureFlags/useFeatureFlag.js";
3
3
  import { useControllableState } from "../../hooks/useControllableState.js";
4
4
  import { TabsContext } from "./TabsContext.js";
5
5
  import { c } from "react-compiler-runtime";
6
- import { jsx } from "react/jsx-runtime";
7
6
  import React, { useId } from "react";
7
+ import { jsx } from "react/jsx-runtime";
8
8
  //#region src/experimental/Tabs/Tabs.tsx
9
9
  /**
10
10
  * The Tabs component provides the base structure for a tabbed interface, without providing any formal requirement on DOM structure or styling.
@@ -11,9 +11,9 @@ import { useTab } from "../Tabs/useTab.js";
11
11
  import { useTabList } from "../Tabs/useTabList.js";
12
12
  import { useTabPanel } from "../Tabs/useTabPanel.js";
13
13
  import { Tabs } from "../Tabs/Tabs.js";
14
- import { clsx } from "clsx";
15
- import { jsx, jsxs } from "react/jsx-runtime";
16
14
  import React, { Children, cloneElement, createContext, isValidElement, useContext, useMemo, useRef, useState } from "react";
15
+ import { jsx, jsxs } from "react/jsx-runtime";
16
+ import { clsx } from "clsx";
17
17
  //#region src/experimental/UnderlinePanels/UnderlinePanels.tsx
18
18
  const UnderlinePanelsContext = /*#__PURE__*/ createContext({
19
19
  iconsVisible: true,
@@ -121,13 +121,13 @@ const UnderlinePanels = ({ "aria-label": ariaLabel, "aria-labelledby": ariaLabel
121
121
  return ariaSelected === true || ariaSelected === "true";
122
122
  });
123
123
  !(selectedTabs.length <= 1) && invariant(false, "Only one tab can be selected at a time.");
124
- !(tabs.length === tabPanels.length) && invariant(false, `The number of tabs and panels must be equal. Counted ${tabs.length} tabs and ${tabPanels.length} panels.`);
124
+ tabs.length !== tabPanels.length && invariant(false, `The number of tabs and panels must be equal. Counted ${tabs.length} tabs and ${tabPanels.length} panels.`);
125
125
  const duplicateTabValue = tabValues.find((value, index) => tabValues.indexOf(value) !== index);
126
- !(duplicateTabValue === void 0) && invariant(false, `Every tab must have a unique \`value\`. Found duplicate "${duplicateTabValue}".`);
126
+ duplicateTabValue !== void 0 && invariant(false, `Every tab must have a unique \`value\`. Found duplicate "${duplicateTabValue}".`);
127
127
  const duplicatePanelValue = panelValues.find((value, index) => panelValues.indexOf(value) !== index);
128
- !(duplicatePanelValue === void 0) && invariant(false, `Every panel must have a unique \`value\`. Found duplicate "${duplicatePanelValue}".`);
128
+ duplicatePanelValue !== void 0 && invariant(false, `Every panel must have a unique \`value\`. Found duplicate "${duplicatePanelValue}".`);
129
129
  const unmatchedTabValue = tabValues.find((value) => !panelValues.includes(value));
130
- !(unmatchedTabValue === void 0) && invariant(false, `Tab with \`value\` "${unmatchedTabValue}" has no matching panel. Give a \`UnderlinePanels.Panel\` the same \`value\`.`);
130
+ unmatchedTabValue !== void 0 && invariant(false, `Tab with \`value\` "${unmatchedTabValue}" has no matching panel. Give a \`UnderlinePanels.Panel\` the same \`value\`.`);
131
131
  warning(isControlled && selectedTabs.length > 0, "UnderlinePanels: do not combine the controlled `value` prop with `aria-selected` on a tab. `value` takes precedence; use `value`/`onChange` (or `defaultValue`) to drive selection.");
132
132
  warning(controlledValue !== void 0 && defaultValue !== void 0, "UnderlinePanels: do not combine the controlled `value` prop with `defaultValue`. `value` takes precedence; use one or the other.");
133
133
  const providedValue = controlledValue !== null && controlledValue !== void 0 ? controlledValue : defaultValue;
@@ -1,3 +1,6 @@
1
+ import { Announce, AnnounceProps } from "../live-region/Announce.js";
2
+ import { AriaAlert, AriaAlertProps } from "../live-region/AriaAlert.js";
3
+ import { AriaStatus, AriaStatusProps } from "../live-region/AriaStatus.js";
1
4
  import { KeybindingHintProps } from "../KeybindingHint/props.js";
2
5
  import { KeybindingHint } from "../KeybindingHint/KeybindingHint.js";
3
6
  import { getAccessibleKeybindingHintString } from "../KeybindingHint/utils.js";
@@ -32,9 +35,6 @@ import { Hidden, HiddenProps } from "../Hidden/Hidden.js";
32
35
  import { useOverflow } from "../hooks/useOverflow.js";
33
36
  import { SelectPanel, SelectPanelMessageProps, SelectPanelProps, SelectPanelSecondaryActionProps } from "./SelectPanel2/SelectPanel.js";
34
37
  import { ScrollableRegion, ScrollableRegionProps } from "../ScrollableRegion/ScrollableRegion.js";
35
- import { Announce, AnnounceProps } from "../live-region/Announce.js";
36
- import { AriaAlert, AriaAlertProps } from "../live-region/AriaAlert.js";
37
- import { AriaStatus, AriaStatusProps } from "../live-region/AriaStatus.js";
38
38
  import _default, { PanelProps, TabProps as TabProps$1, UnderlinePanelsProps } from "./UnderlinePanels/UnderlinePanels.js";
39
39
  import { SkeletonText, SkeletonTextProps } from "../SkeletonText/SkeletonText.js";
40
40
  import { SkeletonAvatar, SkeletonAvatarProps } from "../SkeletonAvatar/SkeletonAvatar.js";
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { useSlots } from "../hooks/useSlots.js";
3
2
  import { Announce } from "../live-region/Announce.js";
4
3
  import { AriaAlert } from "../live-region/AriaAlert.js";
5
4
  import { AriaStatus } from "../live-region/AriaStatus.js";
5
+ import { useSlots } from "../hooks/useSlots.js";
6
6
  import { ButtonBase } from "../Button/ButtonBase.js";
7
7
  import { DefaultFeatureFlags } from "../FeatureFlags/DefaultFeatureFlags.js";
8
8
  import { FeatureFlags } from "../FeatureFlags/FeatureFlags.js";
package/dist/index.d.ts CHANGED
@@ -6,6 +6,8 @@ import { useOpenAndCloseFocus } from "./hooks/useOpenAndCloseFocus.js";
6
6
  import { AnchoredPositionHookSettings, useAnchoredPosition } from "./hooks/useAnchoredPosition.js";
7
7
  import { useOverlay } from "./hooks/useOverlay.js";
8
8
  import theme, { ThemeColorPaths, ThemeShadowPaths } from "./theme.js";
9
+ import { AriaAlert, AriaAlertProps } from "./live-region/AriaAlert.js";
10
+ import { AriaStatus, AriaStatusProps } from "./live-region/AriaStatus.js";
9
11
  import BaseStyles, { BaseStylesProps } from "./BaseStyles.js";
10
12
  import { ThemeProvider, ThemeProviderProps } from "./ThemeProvider.js";
11
13
  import { useColorSchemeVar, useTheme } from "./useTheme.js";
@@ -119,4 +121,4 @@ import { ActionsProps, ChildrenPropTypes, PageHeader, PageHeaderProps, TitleArea
119
121
  import { SkeletonBox, SkeletonBoxProps } from "./Skeleton/SkeletonBox.js";
120
122
  import { ActionMenu, ActionMenuAnchorProps, ActionMenuButtonProps, ActionMenuProps } from "./ActionMenu/ActionMenu.js";
121
123
  import Overlay, { OverlayProps } from "./Overlay/Overlay.js";
122
- export { ActionBar, type ActionBarProps, ActionList, type ActionListDescriptionProps, type ActionListDividerProps, type ActionListGroupHeadingProps, type ActionListGroupHeadingTrailingActionProps, type ActionListGroupProps, type ActionListItemProps, type ActionListLeadingVisualProps, type ActionListLinkItemProps, type ActionListProps, type ActionListTrailingActionProps, type ActionListTrailingVisualProps, ActionMenu, type ActionMenuAnchorProps, type ActionMenuButtonProps, type ActionMenuProps, AnchoredOverlay, type AnchoredOverlayProps, type AnchoredPositionHookSettings, _default as Autocomplete, type AutocompleteInputProps, type AutocompleteMenuProps, type AutocompleteOverlayProps, Avatar, type AvatarProps, AvatarStack, type AvatarStackProps, Banner, type BannerProps, BaseStyles, type BaseStylesProps, _default$1 as BranchName, type BranchNameProps, Breadcrumb, type BreadcrumbItemProps, type BreadcrumbProps, _default$2 as Breadcrumbs, type BreadcrumbsItemProps, type BreadcrumbsProps, ButtonComponent as Button, ButtonBase, type ButtonBaseProps, ButtonGroup, type ButtonGroupProps, type ButtonProps, _default$3 as Checkbox, _default$4 as CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, _default$5 as CircleBadge, type CircleBadgeIconProps, type CircleBadgeProps, ConfirmationDialog, type ConfirmationDialogProps, CounterLabel, type CounterLabelProps, type CustomWidthOptions, Details, type DetailsProps, Dialog, type DialogButtonProps, type DialogHeaderProps, type DialogHeight, type DialogProps, type DialogWidth, DragHandle, type DragHandleProps, type FCWithSlotMarker, Flash, type FlashProps, FocusKeys, type FocusTrapHookSettings, type FocusZoneHookSettings, _default$6 as FormControl, type FormControlCaptionProps, type Props as FormControlLabelProps, type FormControlProps, type FormControlValidationProps, _default$7 as Header, type HeaderItemProps, type HeaderLinkProps, type HeaderProps, Heading, type HeadingProps, IconButton, type IconButtonProps, IssueLabelToken, type IssueLabelTokenProps, Label, type LabelColorOptions, LabelGroup, type LabelGroupProps, type LabelProps, Link, LinkButton, type LinkButtonProps, type LinkProps, NavList, type NavListDividerProps, type NavListGroupHeadingProps, type NavListGroupProps, type NavListItemProps, type NavListLeadingVisualProps, type NavListProps, type NavListSubNavProps, type NavListTrailingVisualProps, Overlay, type OverlayProps, PageHeader, type ActionsProps as PageHeaderActionsProps, type ChildrenPropTypes as PageHeaderChildrenPropTypes, type PageHeaderProps, type TitleAreaProps as PageHeaderTitleAreaProps, type TitleProps as PageHeaderTitleProps, PageLayout, type PageLayoutContentProps, type PageLayoutFooterProps, type PageLayoutHeaderProps, type PageLayoutPaneProps, type PageLayoutProps, Pagination, type PaginationProps, type PaneWidth, type PaneWidthValue, _default$8 as Popover, type PopoverContentProps, type PopoverProps, Portal, PortalContext, type PortalProps, ProgressBar, type ProgressBarItemProps, type ProgressBarProps, _default$9 as Radio, _default$10 as RadioGroup, type RadioGroupProps, type RadioProps, RelativeTime, type RelativeTimeProps, type ResponsiveValue, SegmentedControl, type SegmentedControlButtonProps, type SegmentedControlIconButtonProps, type SegmentedControlProps, _default$11 as Select, SelectPanel, type GroupedListProps as SelectPanelGroupedListProps, type ItemInput as SelectPanelItemInput, type FilteredActionListItemProps as SelectPanelItemProps, type SelectPanelProps, type SelectProps, _default$12 as SideNav, type SideNavLinkProps, type SideNavProps, SkeletonBox, type SkeletonBoxProps, type SlotMarker, Spinner, type SpinnerProps, SplitPageLayout, type SplitPageLayoutContentProps, type SplitPageLayoutFooterProps, type SplitPageLayoutHeaderProps, type SplitPageLayoutPaneProps, type SplitPageLayoutProps, Stack, type StackItemProps, type StackProps, StateLabel, type StateLabelProps, _default$13 as SubNav, type SubNavLinkProps, type SubNavLinksProps, type SubNavProps, _default$14 as Text, _default$15 as TextInput, type TextInputActionProps, type TextInputProps, _default$16 as TextInputWithTokens, type TextInputWithTokensProps, type TextProps, _default$17 as Textarea, type TextareaProps, type ThemeColorPaths, ThemeProvider, type ThemeProviderProps, type ThemeShadowPaths, _default$18 as Timeline, type TimelineActionsProps, type TimelineAvatarProps, type TimelineBadgeProps, type TimelineBadgeVariant, type TimelineBodyProps, type TimelineBreakProps, type TimelineItemProps, type TimelineItemsProps, type TimelineProps, ToggleSwitch, type ToggleSwitchProps, Token, type TokenProps, Tooltip, type TooltipProps, type TouchOrMouseEvent, TreeView, type TreeViewErrorDialogProps, type TreeViewItemProps, type TreeViewProps, type TreeViewSubTreeProps, type TreeViewVisualProps, Truncate, type TruncateProps, UnderlineNav, type UnderlineNavItemProps, type UnderlineNavProps, type UsePaneWidthOptions, type UsePaneWidthResult, VisuallyHidden, type VisuallyHiddenProps, type WithSlotMarker, asSlot, createComponent, defaultPaneWidth, isSlot, registerPortalRoot, theme, useAnchoredPosition, useColorSchemeVar, useConfirm, useDetails, useFocusTrap, useFocusZone, useFormControlForwardedProps, useId, useIsomorphicLayoutEffect, useMergedRefs, useOnEscapePress, useOnOutsideClick, useOpenAndCloseFocus, useOverlay, usePaneWidth, useProvidedRefOrCreate, useRefObjectAsForwardedRef, useResizeObserver, useResponsiveValue, useRovingTabIndex, useSafeTimeout, useSlots, useSyncedState, useTheme };
124
+ export { ActionBar, type ActionBarProps, ActionList, type ActionListDescriptionProps, type ActionListDividerProps, type ActionListGroupHeadingProps, type ActionListGroupHeadingTrailingActionProps, type ActionListGroupProps, type ActionListItemProps, type ActionListLeadingVisualProps, type ActionListLinkItemProps, type ActionListProps, type ActionListTrailingActionProps, type ActionListTrailingVisualProps, ActionMenu, type ActionMenuAnchorProps, type ActionMenuButtonProps, type ActionMenuProps, AnchoredOverlay, type AnchoredOverlayProps, type AnchoredPositionHookSettings, AriaAlert, type AriaAlertProps, AriaStatus, type AriaStatusProps, _default as Autocomplete, type AutocompleteInputProps, type AutocompleteMenuProps, type AutocompleteOverlayProps, Avatar, type AvatarProps, AvatarStack, type AvatarStackProps, Banner, type BannerProps, BaseStyles, type BaseStylesProps, _default$1 as BranchName, type BranchNameProps, Breadcrumb, type BreadcrumbItemProps, type BreadcrumbProps, _default$2 as Breadcrumbs, type BreadcrumbsItemProps, type BreadcrumbsProps, ButtonComponent as Button, ButtonBase, type ButtonBaseProps, ButtonGroup, type ButtonGroupProps, type ButtonProps, _default$3 as Checkbox, _default$4 as CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, _default$5 as CircleBadge, type CircleBadgeIconProps, type CircleBadgeProps, ConfirmationDialog, type ConfirmationDialogProps, CounterLabel, type CounterLabelProps, type CustomWidthOptions, Details, type DetailsProps, Dialog, type DialogButtonProps, type DialogHeaderProps, type DialogHeight, type DialogProps, type DialogWidth, DragHandle, type DragHandleProps, type FCWithSlotMarker, Flash, type FlashProps, FocusKeys, type FocusTrapHookSettings, type FocusZoneHookSettings, _default$6 as FormControl, type FormControlCaptionProps, type Props as FormControlLabelProps, type FormControlProps, type FormControlValidationProps, _default$7 as Header, type HeaderItemProps, type HeaderLinkProps, type HeaderProps, Heading, type HeadingProps, IconButton, type IconButtonProps, IssueLabelToken, type IssueLabelTokenProps, Label, type LabelColorOptions, LabelGroup, type LabelGroupProps, type LabelProps, Link, LinkButton, type LinkButtonProps, type LinkProps, NavList, type NavListDividerProps, type NavListGroupHeadingProps, type NavListGroupProps, type NavListItemProps, type NavListLeadingVisualProps, type NavListProps, type NavListSubNavProps, type NavListTrailingVisualProps, Overlay, type OverlayProps, PageHeader, type ActionsProps as PageHeaderActionsProps, type ChildrenPropTypes as PageHeaderChildrenPropTypes, type PageHeaderProps, type TitleAreaProps as PageHeaderTitleAreaProps, type TitleProps as PageHeaderTitleProps, PageLayout, type PageLayoutContentProps, type PageLayoutFooterProps, type PageLayoutHeaderProps, type PageLayoutPaneProps, type PageLayoutProps, Pagination, type PaginationProps, type PaneWidth, type PaneWidthValue, _default$8 as Popover, type PopoverContentProps, type PopoverProps, Portal, PortalContext, type PortalProps, ProgressBar, type ProgressBarItemProps, type ProgressBarProps, _default$9 as Radio, _default$10 as RadioGroup, type RadioGroupProps, type RadioProps, RelativeTime, type RelativeTimeProps, type ResponsiveValue, SegmentedControl, type SegmentedControlButtonProps, type SegmentedControlIconButtonProps, type SegmentedControlProps, _default$11 as Select, SelectPanel, type GroupedListProps as SelectPanelGroupedListProps, type ItemInput as SelectPanelItemInput, type FilteredActionListItemProps as SelectPanelItemProps, type SelectPanelProps, type SelectProps, _default$12 as SideNav, type SideNavLinkProps, type SideNavProps, SkeletonBox, type SkeletonBoxProps, type SlotMarker, Spinner, type SpinnerProps, SplitPageLayout, type SplitPageLayoutContentProps, type SplitPageLayoutFooterProps, type SplitPageLayoutHeaderProps, type SplitPageLayoutPaneProps, type SplitPageLayoutProps, Stack, type StackItemProps, type StackProps, StateLabel, type StateLabelProps, _default$13 as SubNav, type SubNavLinkProps, type SubNavLinksProps, type SubNavProps, _default$14 as Text, _default$15 as TextInput, type TextInputActionProps, type TextInputProps, _default$16 as TextInputWithTokens, type TextInputWithTokensProps, type TextProps, _default$17 as Textarea, type TextareaProps, type ThemeColorPaths, ThemeProvider, type ThemeProviderProps, type ThemeShadowPaths, _default$18 as Timeline, type TimelineActionsProps, type TimelineAvatarProps, type TimelineBadgeProps, type TimelineBadgeVariant, type TimelineBodyProps, type TimelineBreakProps, type TimelineItemProps, type TimelineItemsProps, type TimelineProps, ToggleSwitch, type ToggleSwitchProps, Token, type TokenProps, Tooltip, type TooltipProps, type TouchOrMouseEvent, TreeView, type TreeViewErrorDialogProps, type TreeViewItemProps, type TreeViewProps, type TreeViewSubTreeProps, type TreeViewVisualProps, Truncate, type TruncateProps, UnderlineNav, type UnderlineNavItemProps, type UnderlineNavProps, type UsePaneWidthOptions, type UsePaneWidthResult, VisuallyHidden, type VisuallyHiddenProps, type WithSlotMarker, asSlot, createComponent, defaultPaneWidth, isSlot, registerPortalRoot, theme, useAnchoredPosition, useColorSchemeVar, useConfirm, useDetails, useFocusTrap, useFocusZone, useFormControlForwardedProps, useId, useIsomorphicLayoutEffect, useMergedRefs, useOnEscapePress, useOnOutsideClick, useOpenAndCloseFocus, useOverlay, usePaneWidth, useProvidedRefOrCreate, useRefObjectAsForwardedRef, useResizeObserver, useResponsiveValue, useRovingTabIndex, useSafeTimeout, useSlots, useSyncedState, useTheme };
package/dist/index.js CHANGED
@@ -1,5 +1,7 @@
1
1
  "use client";
2
2
  import theme from "./theme.js";
3
+ import { AriaAlert } from "./live-region/AriaAlert.js";
4
+ import { AriaStatus } from "./live-region/AriaStatus.js";
3
5
  import BaseStyles from "./BaseStyles.js";
4
6
  import { useSyncedState } from "./hooks/useSyncedState.js";
5
7
  import { useColorSchemeVar, useTheme } from "./useTheme.js";
@@ -94,4 +96,4 @@ import { TreeView } from "./TreeView/TreeView.js";
94
96
  import { UnderlineNav } from "./UnderlineNav/index.js";
95
97
  import { ActionBar } from "./ActionBar/index.js";
96
98
  import { PageHeader } from "./PageHeader/PageHeader.js";
97
- export { ActionBar, ActionList, ActionMenu, AnchoredOverlay, Autocomplete_default as Autocomplete, Avatar, AvatarStack, Banner, BaseStyles, BranchName_default as BranchName, Breadcrumb, Breadcrumbs_default as Breadcrumbs, ButtonComponent as Button, ButtonBase, ButtonGroup, Checkbox, CheckboxGroup_default as CheckboxGroup, CircleBadge_default as CircleBadge, ConfirmationDialog, CounterLabel, Details, Dialog, DragHandle, Flash, FocusKeys, FormControl_default as FormControl, Header_default as Header, Heading, IconButton, IssueLabelToken, Label_default as Label, LabelGroup, Link, LinkButton, NavList, Overlay, PageHeader, PageLayout, Pagination_default as Pagination, Popover_default as Popover, Portal_default as Portal, PortalContext, ProgressBar, Radio, RadioGroup_default as RadioGroup, RelativeTime, SegmentedControl, Select_default as Select, SelectPanel, SideNav_default as SideNav, SkeletonBox, Spinner, SplitPageLayout, Stack, StateLabel, SubNav_default as SubNav, Text_default as Text, TextInput_default as TextInput, TextInputWithTokens, Textarea, ThemeProvider, Timeline_default as Timeline, ToggleSwitch, Token, Tooltip, TreeView, Truncate, UnderlineNav, VisuallyHidden, asSlot, createComponent, defaultPaneWidth, isSlot, registerPortalRoot, theme, useAnchoredPosition, useColorSchemeVar, useConfirm, useDetails, useFocusTrap, useFocusZone, useFormControlForwardedProps, useId, useIsomorphicLayoutEffect, useMergedRefs, useOnEscapePress, useOnOutsideClick, useOpenAndCloseFocus, useOverlay, usePaneWidth, useProvidedRefOrCreate, useRefObjectAsForwardedRef, useResizeObserver, useResponsiveValue, useRovingTabIndex, useSafeTimeout, useSlots, useSyncedState, useTheme };
99
+ export { ActionBar, ActionList, ActionMenu, AnchoredOverlay, AriaAlert, AriaStatus, Autocomplete_default as Autocomplete, Avatar, AvatarStack, Banner, BaseStyles, BranchName_default as BranchName, Breadcrumb, Breadcrumbs_default as Breadcrumbs, ButtonComponent as Button, ButtonBase, ButtonGroup, Checkbox, CheckboxGroup_default as CheckboxGroup, CircleBadge_default as CircleBadge, ConfirmationDialog, CounterLabel, Details, Dialog, DragHandle, Flash, FocusKeys, FormControl_default as FormControl, Header_default as Header, Heading, IconButton, IssueLabelToken, Label_default as Label, LabelGroup, Link, LinkButton, NavList, Overlay, PageHeader, PageLayout, Pagination_default as Pagination, Popover_default as Popover, Portal_default as Portal, PortalContext, ProgressBar, Radio, RadioGroup_default as RadioGroup, RelativeTime, SegmentedControl, Select_default as Select, SelectPanel, SideNav_default as SideNav, SkeletonBox, Spinner, SplitPageLayout, Stack, StateLabel, SubNav_default as SubNav, Text_default as Text, TextInput_default as TextInput, TextInputWithTokens, Textarea, ThemeProvider, Timeline_default as Timeline, ToggleSwitch, Token, Tooltip, TreeView, Truncate, UnderlineNav, VisuallyHidden, asSlot, createComponent, defaultPaneWidth, isSlot, registerPortalRoot, theme, useAnchoredPosition, useColorSchemeVar, useConfirm, useDetails, useFocusTrap, useFocusZone, useFormControlForwardedProps, useId, useIsomorphicLayoutEffect, useMergedRefs, useOnEscapePress, useOnOutsideClick, useOpenAndCloseFocus, useOverlay, usePaneWidth, useProvidedRefOrCreate, useRefObjectAsForwardedRef, useResizeObserver, useResponsiveValue, useRovingTabIndex, useSafeTimeout, useSlots, useSyncedState, useTheme };
@@ -1,7 +1,7 @@
1
1
  import ButtonReset_module_css_default from "./ButtonReset.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/internal/components/ButtonReset.tsx
6
6
  /**
7
7
  * Provides an unstyled button that can be styled as-needed for components
@@ -8,9 +8,9 @@ import CheckboxOrRadioGroupCaption from "./CheckboxOrRadioGroupCaption.js";
8
8
  import CheckboxOrRadioGroupLabel from "./CheckboxOrRadioGroupLabel.js";
9
9
  import CheckboxOrRadioGroupValidation from "./CheckboxOrRadioGroupValidation.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/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.tsx
15
15
  const CheckboxOrRadioGroup = (t0) => {
16
16
  const $ = c(51);
@@ -84,7 +84,7 @@ const CheckboxOrRadioGroup = (t0) => {
84
84
  slots.caption,
85
85
  /*#__PURE__*/ React.isValidElement(slots.validation) && slots.validation.props.children && /*#__PURE__*/ jsx(VisuallyHidden, { children: slots.validation.props.children })
86
86
  ]
87
- }) : /*#__PURE__*/ jsxs(Fragment, { children: [slots.caption, required && requiredMessageId && /*#__PURE__*/ jsx(VisuallyHidden, {
87
+ }) : /*#__PURE__*/ jsxs(Fragment$1, { children: [slots.caption, required && requiredMessageId && /*#__PURE__*/ jsx(VisuallyHidden, {
88
88
  id: requiredMessageId,
89
89
  children: "Required"
90
90
  })] });
@@ -2,9 +2,9 @@ import Text_default from "../../../Text/Text.js";
2
2
  import CheckboxOrRadioGroupContext from "./CheckboxOrRadioGroupContext.js";
3
3
  import CheckboxOrRadioGroup_module_css_default from "./CheckboxOrRadioGroup.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 from "react";
6
+ import { jsx } from "react/jsx-runtime";
7
+ import { clsx } from "clsx";
8
8
  //#region src/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupCaption.tsx
9
9
  const CheckboxOrRadioGroupCaption = (t0) => {
10
10
  const $ = c(7);
@@ -3,9 +3,9 @@ import CheckboxOrRadioGroupContext from "./CheckboxOrRadioGroupContext.js";
3
3
  import CheckboxOrRadioGroup_module_css_default from "./CheckboxOrRadioGroup.module.css.js";
4
4
  import { Stack } from "../../../Stack/index.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 React from "react";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
+ import { clsx } from "clsx";
9
9
  //#region src/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.tsx
10
10
  const CheckboxOrRadioGroupLabel = (t0) => {
11
11
  const $ = c(12);
@@ -1,8 +1,8 @@
1
1
  import CheckboxOrRadioGroupContext from "./CheckboxOrRadioGroupContext.js";
2
2
  import InputValidation from "../InputValidation.js";
3
3
  import { c } from "react-compiler-runtime";
4
- import { jsx } from "react/jsx-runtime";
5
4
  import React from "react";
5
+ import { jsx } from "react/jsx-runtime";
6
6
  //#region src/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.tsx
7
7
  const CheckboxOrRadioGroupValidation = (t0) => {
8
8
  const $ = c(5);
@@ -1,7 +1,7 @@
1
1
  import InputLabel_module_css_default from "./InputLabel.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
  //#region src/internal/components/InputLabel.tsx
6
6
  function InputLabel(t0) {
7
7
  const $ = c(28);
@@ -1,8 +1,8 @@
1
1
  import Text_default from "../../Text/Text.js";
2
2
  import InputValidation_module_css_default from "./InputValidation.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 { AlertFillIcon, CheckCircleFillIcon } from "@primer/octicons-react";
7
7
  //#region src/internal/components/InputValidation.tsx
8
8
  const validationIconMap = {
@@ -1,8 +1,8 @@
1
1
  import useIsomorphicLayoutEffect from "../../utils/useIsomorphicLayoutEffect.js";
2
2
  import { OverflowObserverContext } from "../hooks/useOverflowObserver.js";
3
3
  import { c } from "react-compiler-runtime";
4
- import { jsx } from "react/jsx-runtime";
5
4
  import { useEffect, useRef } from "react";
5
+ import { jsx } from "react/jsx-runtime";
6
6
  //#region src/internal/components/OverflowObserverProvider.tsx
7
7
  /**
8
8
  * Owns a single `IntersectionObserver` shared by every descendant that calls `useIsClipped`, instead of each item
@@ -3,9 +3,9 @@ import { IconButton } from "../../Button/IconButton.js";
3
3
  import { ButtonComponent } from "../../Button/Button.js";
4
4
  import TextInputInnerAction_module_css_default from "./TextInputInnerAction.module.css.js";
5
5
  import { c } from "react-compiler-runtime";
6
- import { clsx } from "clsx";
7
- import { Fragment, jsx } from "react/jsx-runtime";
8
6
  import { forwardRef } from "react";
7
+ import { Fragment as Fragment$1, jsx } from "react/jsx-runtime";
8
+ import { clsx } from "clsx";
9
9
  //#region src/internal/components/TextInputInnerAction.tsx
10
10
  const ConditionalTooltip = (t0) => {
11
11
  const $ = c(6);
@@ -25,7 +25,7 @@ const ConditionalTooltip = (t0) => {
25
25
  } else t1 = $[3];
26
26
  let t2;
27
27
  if ($[4] !== t1) {
28
- t2 = /*#__PURE__*/ jsx(Fragment, { children: t1 });
28
+ t2 = /*#__PURE__*/ jsx(Fragment$1, { children: t1 });
29
29
  $[4] = t1;
30
30
  $[5] = t2;
31
31
  } else t2 = $[5];
@@ -1,8 +1,8 @@
1
1
  import Spinner from "../../Spinner/Spinner.js";
2
2
  import TextInputInnerVisualSlot_module_css_default from "./TextInputInnerVisualSlot.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
  //#region src/internal/components/TextInputInnerVisualSlot.tsx
7
7
  const TextInputInnerVisualSlot = (t0) => {
8
8
  const $ = c(21);
@@ -1,8 +1,8 @@
1
1
  import TextInputWrapper_module_css_default from "./TextInputWrapper.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/internal/components/TextInputWrapper.tsx
7
7
  const TextInputBaseWrapper = /*#__PURE__*/ React.forwardRef(function TextInputBaseWrapper(t0, forwardRef) {
8
8
  const $ = c(44);
@@ -0,0 +1,2 @@
1
+ .prc-components-UnderlineWrapper-eT-Yj{align-items:flex-start;box-shadow:inset 0 -1px var(--borderColor-muted,#d1d9e0b3);display:flex;justify-content:flex-start;min-height:var(--control-xlarge-size,3rem);padding-top:var(--base-size-8,.5rem);padding-inline:var(--stack-padding-normal,1rem)}.prc-components-UnderlineWrapper-eT-Yj[data-variant=flush]{padding-inline:unset}.prc-components-UnderlineWrapper-eT-Yj[data-overflow-mode=wrap]{border:0!important;box-sizing:border-box!important;max-height:var(--control-xlarge-size,3rem);overflow:hidden;padding-block:var(--base-size-8,.5rem) 0!important}.prc-components-UnderlineWrapper-eT-Yj[data-overflow-mode=wrap] .prc-components-UnderlineItemList-xKlKC{flex-grow:1;flex-wrap:wrap;overflow:hidden}.prc-components-UnderlineItemList-xKlKC{contain:layout;display:flex;gap:var(--stack-gap-condensed,.5rem);list-style:none;margin:0;padding:0;white-space:nowrap}.prc-components-UnderlineItem-7fP-n,.prc-components-UnderlineItemList-xKlKC{align-items:center;position:relative}.prc-components-UnderlineItem-7fP-n{appearance:none;background-color:transparent;border:0;border-radius:var(--borderRadius-medium,.375rem);color:var(--fgColor-default,#1f2328);cursor:pointer;display:inline-flex;font:inherit;font-size:var(--text-body-size-medium,.875rem);height:var(--base-size-32,2rem);line-height:var(--text-body-lineHeight-medium,1.4285);margin-bottom:var(--base-size-8,.5rem);max-width:100%;padding-block:var(--base-size-6,.375rem);padding-inline:var(--base-size-8,.5rem);text-align:center;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.prc-components-UnderlineItem-7fP-n:hover{background-color:var(--bgColor-neutral-muted,#818b981f);-webkit-text-decoration:none;text-decoration:none;transition:background-color .12s ease-out}}.prc-components-UnderlineItem-7fP-n:focus{box-shadow:inset 0 0 0 2px var(--fgColor-accent,#0969da);outline:2px solid transparent}.prc-components-UnderlineItem-7fP-n:focus:not(:focus-visible){box-shadow:none}.prc-components-UnderlineItem-7fP-n:focus-visible{box-shadow:inset 0 0 0 2px var(--fgColor-accent,#0969da);outline:2px solid transparent}.prc-components-UnderlineItem-7fP-n [data-content]:before{content:attr(data-content);display:block;font-weight:var(--base-text-weight-semibold,600);height:0;visibility:hidden;white-space:nowrap}.prc-components-UnderlineItem-7fP-n [data-component=icon]{align-items:center;color:var(--fgColor-muted,#59636e);display:inline-flex;margin-inline-end:var(--base-size-8,.5rem)}.prc-components-UnderlineItem-7fP-n [data-component=text]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.prc-components-UnderlineItem-7fP-n [data-component=counter]{align-items:center;display:flex;margin-inline-start:var(--base-size-8,.5rem)}.prc-components-UnderlineItem-7fP-n:after{background-color:transparent;content:"";height:2px;inset:auto 0 0;margin-bottom:calc(var(--base-size-8,.5rem)*-1);pointer-events:none;position:absolute}.prc-components-UnderlineItem-7fP-n[aria-current]:not([aria-current=false]) [data-component=text],.prc-components-UnderlineItem-7fP-n[aria-selected=true] [data-component=text]{font-weight:var(--base-text-weight-semibold,600)}.prc-components-UnderlineItem-7fP-n[aria-current]:not([aria-current=false]):after,.prc-components-UnderlineItem-7fP-n[aria-selected=true]:after{background-color:var(--underlineNav-borderColor-active,var(--color-primer-border-active,#fd8c73))}@media (forced-colors:active){.prc-components-UnderlineItem-7fP-n[aria-current]:not([aria-current=false]):after,.prc-components-UnderlineItem-7fP-n[aria-selected=true]:after{background-color:LinkText}}.prc-components-LoadingCounter-dBuLy{animation:prc-components-loadingCounterKeyFrames-8tMlf 1.2s ease-in-out infinite alternate;background-color:var(--bgColor-neutral-muted,#818b981f);border-color:var(--borderColor-default,#d1d9e0);border-radius:20px;display:inline-block;height:1rem;width:1.5rem}@keyframes prc-components-loadingCounterKeyFrames-8tMlf{0%{opacity:1}to{opacity:.2}}
2
+ /*# sourceMappingURL=UnderlineTabbedInterface-a5cd75c0.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/internal/components/UnderlineTabbedInterface.module.css.js"],"names":[],"mappings":"AAAA,uCAME,sBAAuB,CAOvB,0DAAiD,CAZjD,YAAa,CAIb,0BAA2B,CAI3B,0CAAsC,CAPtC,oCAA+B,CAE/B,+CAgCF,CArBE,2DAEE,oBACF,CAEA,gEAOE,kBAAoB,CADpB,+BAAiC,CAHjC,0CAAsC,CADtC,eAAgB,CAMhB,kDAOF,CALE,wGACE,WAAY,CACZ,cAAe,CACf,eACF,CAIJ,wCAaE,cAAe,CAXf,YAAa,CAMb,oCAA+B,CAF/B,eAAgB,CAFhB,QAAS,CADT,SAAU,CAEV,kBASF,CAEA,4EATE,kBAAmB,CANnB,iBA8CF,CA/BA,oCAmBE,eAAgB,CARhB,4BAA6B,CAC7B,QAAS,CACT,gDAAyC,CANzC,oCAA6B,CAG7B,cAAe,CAPf,mBAAoB,CACpB,YAAa,CACb,8CAAuC,CAWvC,+BAA2B,CAV3B,qDAAuD,CASvD,sCAAiC,CADjC,cAAe,CAOf,wCAAiC,CADjC,uCAAkC,CAZlC,iBAAkB,CAClB,4BAAqB,CAArB,oBAsBF,CAPE,qBACE,0CAEE,uDAA8C,CAD9C,4BAAqB,CAArB,oBAAqB,CAErB,yCACF,CACF,CAGF,0CAGE,wDAAiD,CAFjD,6BAQF,CAHE,8DACE,eACF,CAGF,kDAGE,wDAAiD,CAFjD,6BAGF,CAGA,0DAME,0BAA2B,CAL3B,aAAc,CAEd,gDAA6C,CAD7C,QAAS,CAGT,iBAAkB,CADlB,kBAGF,CAEA,0DAGE,kBAAmB,CADnB,kCAA2B,CAD3B,mBAAoB,CAGpB,0CACF,CAGA,0DACE,eAAgB,CAChB,sBAAuB,CACvB,kBACF,CAEA,6DAGE,kBAAmB,CADnB,YAAa,CADb,4CAGF,CAEA,0CAOE,4BAA6B,CAD7B,UAAW,CAFX,UAAW,CAFX,cAAe,CACf,+CAA4C,CAE5C,mBAAoB,CAJpB,iBAOF,CAEA,gLAEE,gDACF,CAEA,gJAGE,iGAMF,CAJE,8BALF,gJAOI,yBAEJ,CADE,CAGF,qCASE,0FAAsE,CAJtE,uDAA8C,CAC9C,+CAAwC,CAExC,kBAAmB,CAPnB,oBAAqB,CAErB,WAAY,CADZ,YAQF,CAEA,wDACE,GACE,SACF,CAEA,GACE,UACF,CACF","file":"UnderlineTabbedInterface-a5cd75c0.css","sourcesContent":[".UnderlineWrapper {\n display: flex;\n padding-top: var(--base-size-8);\n /* stylelint-disable-next-line primer/spacing */\n padding-inline: var(--stack-padding-normal);\n justify-content: flex-start;\n align-items: flex-start;\n\n /* make space for the underline */\n min-height: var(--control-xlarge-size);\n\n /* using a box-shadow instead of a border to accommodate 'overflow-y: hidden' on UnderlinePanels */\n /* stylelint-disable-next-line primer/box-shadow */\n box-shadow: inset 0 -1px var(--borderColor-muted);\n\n &[data-variant='flush'] {\n /* stylelint-disable-next-line primer/spacing */\n padding-inline: unset;\n }\n\n &[data-overflow-mode='wrap'] {\n /* Wrap items onto hidden next lines */\n overflow: hidden;\n max-height: var(--control-xlarge-size);\n\n /* Pin the vertical box model so external box-sizing/border/padding overrides can't change the height budget and incorrectly trigger the overflow \"more\" menu */\n box-sizing: border-box !important;\n border: 0 !important;\n padding-block: var(--base-size-8) 0 !important;\n\n .UnderlineItemList {\n flex-grow: 1;\n flex-wrap: wrap;\n overflow: hidden;\n }\n }\n}\n\n.UnderlineItemList {\n position: relative;\n display: flex;\n padding: 0;\n margin: 0;\n white-space: nowrap;\n list-style: none;\n align-items: center;\n gap: var(--stack-gap-condensed);\n\n /* Isolate the ResizeObserver-driven item swapping (UnderlineNav overflow menu / UnderlinePanels)\n so it can't invalidate ancestor layout. Safe because UnderlineNav's overflow menu is rendered via ActionMenu.Overlay\n (portal by default), and layout containment does not clip. */\n contain: layout;\n}\n\n.UnderlineItem {\n /* underline tab specific styles */\n position: relative;\n display: inline-flex;\n font: inherit;\n font-size: var(--text-body-size-medium);\n line-height: var(--text-body-lineHeight-medium, 1.4285);\n color: var(--fgColor-default);\n text-align: center;\n text-decoration: none;\n cursor: pointer;\n background-color: transparent;\n border: 0;\n border-radius: var(--borderRadius-medium);\n max-width: 100%;\n margin-bottom: var(--base-size-8);\n height: var(--base-size-32);\n\n /* button resets */\n appearance: none;\n padding-inline: var(--base-size-8);\n padding-block: var(--base-size-6);\n align-items: center;\n\n @media (hover: hover) {\n &:hover {\n text-decoration: none;\n background-color: var(--bgColor-neutral-muted);\n transition: background-color 0.12s ease-out;\n }\n }\n}\n\n.UnderlineItem:focus {\n outline: 2px solid transparent;\n /* stylelint-disable-next-line primer/box-shadow */\n box-shadow: inset 0 0 0 2px var(--fgColor-accent);\n\n /* where focus-visible is supported, remove the focus box-shadow */\n &:not(:focus-visible) {\n box-shadow: none;\n }\n}\n\n.UnderlineItem:focus-visible {\n outline: 2px solid transparent;\n /* stylelint-disable-next-line primer/box-shadow */\n box-shadow: inset 0 0 0 2px var(--fgColor-accent);\n}\n\n/* renders a visibly hidden \"copy\" of the label in bold, reserving box space for when label becomes bold on selected */\n.UnderlineItem [data-content]::before {\n display: block;\n height: 0;\n font-weight: var(--base-text-weight-semibold);\n white-space: nowrap;\n visibility: hidden;\n content: attr(data-content);\n}\n\n.UnderlineItem [data-component='icon'] {\n display: inline-flex;\n color: var(--fgColor-muted);\n align-items: center;\n margin-inline-end: var(--base-size-8);\n}\n\n/* Truncate items if necessary (should only ever apply to the last item after everything else overflows) */\n.UnderlineItem [data-component='text'] {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.UnderlineItem [data-component='counter'] {\n margin-inline-start: var(--base-size-8);\n display: flex;\n align-items: center;\n}\n\n.UnderlineItem::after {\n position: absolute;\n inset: auto 0 0;\n margin-bottom: calc(-1 * var(--base-size-8));\n height: 2px;\n pointer-events: none;\n content: '';\n background-color: transparent;\n}\n\n.UnderlineItem[aria-current]:not([aria-current='false']) [data-component='text'],\n.UnderlineItem[aria-selected='true'] [data-component='text'] {\n font-weight: var(--base-text-weight-semibold);\n}\n\n.UnderlineItem[aria-current]:not([aria-current='false'])::after,\n.UnderlineItem[aria-selected='true']::after {\n /* stylelint-disable-next-line primer/colors */\n background-color: var(--underlineNav-borderColor-active, var(--color-primer-border-active, #fd8c73));\n\n @media (forced-colors: active) {\n /* Support for Window Force Color Mode https://learn.microsoft.com/en-us/fluent-ui/web-components/design-system/high-contrast */\n background-color: LinkText;\n }\n}\n\n.LoadingCounter {\n display: inline-block;\n width: 1.5rem;\n height: 1rem;\n /* 16px */\n background-color: var(--bgColor-neutral-muted);\n border-color: var(--borderColor-default);\n /* stylelint-disable-next-line primer/borders */\n border-radius: 20px;\n animation: loadingCounterKeyFrames 1.2s ease-in-out infinite alternate;\n}\n\n@keyframes loadingCounterKeyFrames {\n from {\n opacity: 1;\n }\n\n to {\n opacity: 0.2;\n }\n}\n"]}
@@ -1,9 +1,9 @@
1
1
  import CounterLabel from "../../CounterLabel/CounterLabel.js";
2
2
  import UnderlineTabbedInterface_module_css_default from "./UnderlineTabbedInterface.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, { forwardRef } from "react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { clsx } from "clsx";
7
7
  import { isElement } from "react-is";
8
8
  //#region src/internal/components/UnderlineTabbedInterface.tsx
9
9
  function getTextContent(children) {
@@ -1,4 +1,4 @@
1
- import "./UnderlineTabbedInterface-8a52007f.css";
1
+ import "./UnderlineTabbedInterface-a5cd75c0.css";
2
2
  //#region src/internal/components/UnderlineTabbedInterface.module.css.js
3
3
  var UnderlineTabbedInterface_module_css_default = {
4
4
  "UnderlineWrapper": "prc-components-UnderlineWrapper-eT-Yj",
@@ -1,8 +1,8 @@
1
1
  import UnstyledTextInput_module_css_default from "./UnstyledTextInput.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/internal/components/UnstyledTextInput.tsx
7
7
  const UnstyledTextInput = /*#__PURE__*/ React.forwardRef(function UnstyledTextInput(t0, forwardRef) {
8
8
  const $ = c(9);
@@ -1,7 +1,7 @@
1
1
  import ValidationAnimationContainer_module_css_default from "./ValidationAnimationContainer.module.css.js";
2
2
  import { c } from "react-compiler-runtime";
3
- import { jsx } from "react/jsx-runtime";
4
3
  import { useState } from "react";
4
+ import { jsx } from "react/jsx-runtime";
5
5
  //#region src/internal/components/ValidationAnimationContainer.tsx
6
6
  const ValidationAnimationContainer = (t0) => {
7
7
  const $ = c(14);
@@ -1,9 +1,9 @@
1
1
  import { useEffectOnce } from "../internal/hooks/useEffectOnce.js";
2
2
  import { useEffectCallback } from "../internal/hooks/useEffectCallback.js";
3
3
  import { c } from "react-compiler-runtime";
4
- import { jsx } from "react/jsx-runtime";
5
- import { useEffect, useRef } from "react";
6
4
  import { announceFromElement } from "@primer/live-region-element";
5
+ import { useEffect, useRef } from "react";
6
+ import { jsx } from "react/jsx-runtime";
7
7
  //#region src/live-region/Announce.tsx
8
8
  /**
9
9
  * `Announce` is a component that will announce the text content of the
@@ -2,7 +2,7 @@ import { PolymorphicProps } from "../utils/modern-polymorphic.js";
2
2
  import React, { ElementType } from "react";
3
3
 
4
4
  //#region src/live-region/AriaAlert.d.ts
5
- type AriaAlertProps<As extends ElementType> = PolymorphicProps<As, 'div', {
5
+ type AriaAlertProps<As extends ElementType = 'div'> = PolymorphicProps<As, 'div', {
6
6
  /**
7
7
  * Specify if the content of the element should be announced when this
8
8
  * component is rendered and is not hidden
@@ -1,7 +1,7 @@
1
1
  import useIsomorphicLayoutEffect from "./useIsomorphicLayoutEffect.js";
2
2
  import { c } from "react-compiler-runtime";
3
- import { jsx } from "react/jsx-runtime";
4
3
  import { createContext, useContext, useEffect, useId, useReducer, useRef, useState } from "react";
4
+ import { jsx } from "react/jsx-runtime";
5
5
  //#region src/utils/descendant-registry.tsx
6
6
  /**
7
7
  * Create a "descendant registry" for a component. This allows a parent to store and track an ordered registry of