@primer/react 38.40.2-rc.fdfbe71e5 → 38.41.0-rc.27afe233f

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 (172) hide show
  1. package/CHANGELOG.md +9 -1
  2. package/dist/ActionBar/ActionBar.js +30 -33
  3. package/dist/ActionList/Description.js +2 -2
  4. package/dist/ActionList/Divider.js +1 -1
  5. package/dist/ActionList/Group.js +12 -12
  6. package/dist/ActionList/GroupHeadingTrailingAction.js +1 -10
  7. package/dist/ActionList/Heading.js +1 -1
  8. package/dist/ActionList/Item.js +19 -19
  9. package/dist/ActionList/LinkItem.js +4 -4
  10. package/dist/ActionList/List.js +2 -2
  11. package/dist/ActionList/Selection.js +6 -6
  12. package/dist/ActionList/TrailingAction.js +3 -3
  13. package/dist/ActionList/Visuals.js +9 -9
  14. package/dist/ActionMenu/ActionMenu.js +8 -11
  15. package/dist/AnchoredOverlay/AnchoredOverlay.js +4 -4
  16. package/dist/Autocomplete/Autocomplete.js +3 -3
  17. package/dist/Autocomplete/AutocompleteInput.js +1 -1
  18. package/dist/Autocomplete/AutocompleteMenu.js +111 -106
  19. package/dist/Autocomplete/AutocompleteOverlay.js +2 -2
  20. package/dist/Avatar/Avatar.js +1 -1
  21. package/dist/AvatarStack/AvatarStack.js +3 -3
  22. package/dist/Banner/Banner.js +21 -21
  23. package/dist/BaseStyles.js +1 -1
  24. package/dist/Blankslate/Blankslate.js +10 -11
  25. package/dist/BranchName/BranchName.js +1 -1
  26. package/dist/Breadcrumbs/Breadcrumbs.js +20 -29
  27. package/dist/Button/Button.js +1 -1
  28. package/dist/Button/ButtonBase-c8dab214.css +2 -0
  29. package/dist/Button/ButtonBase-c8dab214.css.map +1 -0
  30. package/dist/Button/ButtonBase.js +12 -9
  31. package/dist/Button/ButtonBase.module.css.js +1 -1
  32. package/dist/Button/IconButton.js +3 -3
  33. package/dist/Button/LinkButton.js +1 -1
  34. package/dist/ButtonGroup/ButtonGroup.js +2 -3
  35. package/dist/Card/Card.js +16 -16
  36. package/dist/Checkbox/Checkbox.js +1 -1
  37. package/dist/CheckboxGroup/CheckboxGroup.js +2 -2
  38. package/dist/CircleBadge/CircleBadge.js +2 -2
  39. package/dist/ConfirmationDialog/ConfirmationDialog.js +1 -5
  40. package/dist/CounterLabel/CounterLabel.js +2 -2
  41. package/dist/DataTable/DataTable.js +7 -8
  42. package/dist/DataTable/ErrorDialog.js +1 -1
  43. package/dist/DataTable/Pagination.js +23 -23
  44. package/dist/DataTable/Table.js +25 -27
  45. package/dist/DataTable/TableGroup.js +10 -10
  46. package/dist/Details/Details.js +2 -2
  47. package/dist/Dialog/Dialog.js +20 -23
  48. package/dist/FeatureFlags/DefaultFeatureFlags.js +2 -1
  49. package/dist/FeatureFlags/FeatureFlags.js +1 -1
  50. package/dist/FilteredActionList/FilteredActionList.js +18 -19
  51. package/dist/FilteredActionList/FilteredActionListInput.js +2 -2
  52. package/dist/FilteredActionList/FilteredActionListLoaders.js +10 -11
  53. package/dist/Flash/Flash.js +1 -4
  54. package/dist/FormControl/FormControl.js +8 -8
  55. package/dist/FormControl/FormControlCaption.js +1 -1
  56. package/dist/FormControl/FormControlLabel.js +1 -1
  57. package/dist/FormControl/FormControlLeadingVisual.js +1 -1
  58. package/dist/FormControl/_FormControlValidation.js +1 -1
  59. package/dist/Header/Header.js +3 -3
  60. package/dist/Heading/Heading.js +1 -1
  61. package/dist/Hidden/Hidden.js +1 -1
  62. package/dist/InlineMessage/InlineMessage.js +11 -11
  63. package/dist/KeybindingHint/KeybindingHint.js +3 -3
  64. package/dist/KeybindingHint/components/Chord.js +3 -3
  65. package/dist/KeybindingHint/components/Key.js +3 -3
  66. package/dist/KeybindingHint/components/Sequence.js +1 -1
  67. package/dist/KeybindingHint/platform.js +0 -8
  68. package/dist/Label/Label.js +1 -1
  69. package/dist/LabelGroup/LabelGroup.js +18 -18
  70. package/dist/Link/Link.js +1 -1
  71. package/dist/NavList/NavList.js +24 -24
  72. package/dist/Octicon/Octicon.js +1 -4
  73. package/dist/Overlay/Overlay.js +3 -3
  74. package/dist/PageHeader/PageHeader.js +21 -21
  75. package/dist/PageLayout/DragHandle.js +1 -1
  76. package/dist/PageLayout/PageLayout.js +26 -26
  77. package/dist/PageLayout/usePaneWidth.js +0 -5
  78. package/dist/Pagehead/Pagehead.js +1 -1
  79. package/dist/Pagination/Pagination.js +9 -10
  80. package/dist/Popover/Popover.js +3 -3
  81. package/dist/ProgressBar/ProgressBar.js +3 -3
  82. package/dist/Radio/Radio.js +1 -1
  83. package/dist/RadioGroup/RadioGroup.js +2 -2
  84. package/dist/RelativeTime/RelativeTime.js +1 -1
  85. package/dist/ScrollableRegion/ScrollableRegion.js +1 -1
  86. package/dist/SegmentedControl/SegmentedControl.js +13 -13
  87. package/dist/SegmentedControl/SegmentedControlAction.js +6 -6
  88. package/dist/SegmentedControl/SegmentedControlButton.js +8 -8
  89. package/dist/SegmentedControl/SegmentedControlDivider.js +1 -1
  90. package/dist/SegmentedControl/SegmentedControlIconButton.js +5 -5
  91. package/dist/Select/Select.js +9 -9
  92. package/dist/SelectPanel/SelectPanel.js +24 -27
  93. package/dist/SelectPanel/SelectPanelMessage.js +5 -5
  94. package/dist/SideNav.js +2 -2
  95. package/dist/Skeleton/SkeletonBox.js +1 -1
  96. package/dist/SkeletonAvatar/SkeletonAvatar.js +1 -1
  97. package/dist/SkeletonText/SkeletonText.js +3 -3
  98. package/dist/Spinner/Spinner.js +5 -5
  99. package/dist/SplitPageLayout/SplitPageLayout.js +6 -6
  100. package/dist/Stack/Stack.js +2 -2
  101. package/dist/StateLabel/StateLabel.js +2 -2
  102. package/dist/SubNav/SubNav.js +5 -5
  103. package/dist/TabNav/TabNav.js +4 -10
  104. package/dist/Text/Text.js +1 -1
  105. package/dist/TextInput/TextInput.js +13 -13
  106. package/dist/TextInputWithTokens/TextInputWithTokens.js +12 -15
  107. package/dist/Textarea/Textarea.js +7 -7
  108. package/dist/ThemeProvider.js +1 -2
  109. package/dist/Timeline/Timeline.js +11 -14
  110. package/dist/ToggleSwitch/ToggleSwitch.js +18 -18
  111. package/dist/Token/IssueLabelToken.js +3 -3
  112. package/dist/Token/Token.js +7 -7
  113. package/dist/Token/TokenBase.js +1 -1
  114. package/dist/Token/_RemoveTokenButton.js +4 -5
  115. package/dist/Token/_TokenTextContainer.js +1 -1
  116. package/dist/Tooltip/Tooltip.js +2 -5
  117. package/dist/TooltipV2/Tooltip.js +7 -7
  118. package/dist/TopicTag/TopicTag.js +1 -1
  119. package/dist/TopicTag/TopicTagGroup.js +1 -1
  120. package/dist/TreeView/TreeView.js +52 -59
  121. package/dist/TreeView/useRovingTabIndex.js +1 -0
  122. package/dist/TreeView/useTypeahead.js +3 -3
  123. package/dist/Truncate/Truncate.js +1 -2
  124. package/dist/UnderlineNav/UnderlineNav.js +18 -18
  125. package/dist/UnderlineNav/UnderlineNavItem.js +2 -2
  126. package/dist/VisuallyHidden/VisuallyHidden.js +1 -1
  127. package/dist/_VisuallyHidden.js +1 -1
  128. package/dist/deprecated/ActionList/Divider.js +1 -1
  129. package/dist/deprecated/ActionList/Group.js +2 -5
  130. package/dist/deprecated/ActionList/Header.js +2 -5
  131. package/dist/deprecated/ActionList/Item.js +17 -20
  132. package/dist/deprecated/ActionList/List.js +4 -13
  133. package/dist/deprecated/ActionMenu.js +4 -6
  134. package/dist/deprecated/DialogV1/Dialog.js +5 -5
  135. package/dist/deprecated/FilteredSearch/FilteredSearch.js +1 -1
  136. package/dist/deprecated/UnderlineNav/UnderlineNav.js +4 -4
  137. package/dist/experimental/IssueLabel/IssueLabel.js +4 -4
  138. package/dist/experimental/SelectPanel2/SelectPanel.js +42 -49
  139. package/dist/experimental/Tabs/Tabs.js +1 -1
  140. package/dist/experimental/UnderlinePanels/UnderlinePanels.js +6 -9
  141. package/dist/experimental/index.js +1 -1
  142. package/dist/hooks/useMergedRefs.js +0 -12
  143. package/dist/hooks/useResponsiveValue.js +0 -5
  144. package/dist/hooks/useSlots.js +0 -48
  145. package/dist/internal/components/ButtonReset.js +1 -1
  146. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js +9 -9
  147. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupCaption.js +1 -1
  148. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.js +4 -4
  149. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.js +1 -1
  150. package/dist/internal/components/ConditionalWrapper.js +2 -2
  151. package/dist/internal/components/InputLabel.js +3 -3
  152. package/dist/internal/components/InputValidation.js +4 -4
  153. package/dist/internal/components/OverflowObserverProvider.js +1 -1
  154. package/dist/internal/components/TextInputInnerAction.js +6 -6
  155. package/dist/internal/components/TextInputInnerVisualSlot.js +5 -5
  156. package/dist/internal/components/TextInputWrapper.js +2 -2
  157. package/dist/internal/components/ThemeProviderBase.js +3 -3
  158. package/dist/internal/components/UnderlineTabbedInterface.js +11 -11
  159. package/dist/internal/components/UnstyledTextInput.js +1 -1
  160. package/dist/internal/components/ValidationAnimationContainer.js +2 -2
  161. package/dist/internal/hooks/useOverflowObserver.js +1 -2
  162. package/dist/live-region/Announce.js +1 -1
  163. package/dist/live-region/AriaAlert.js +1 -1
  164. package/dist/live-region/AriaStatus.js +1 -1
  165. package/dist/next/ThemeProvider.js +1 -1
  166. package/dist/utils/descendant-registry.js +1 -7
  167. package/dist/utils/modern-polymorphic.js +0 -10
  168. package/generated/components.json +1 -1
  169. package/generated/hooks.json +1 -1
  170. package/package.json +3 -3
  171. package/dist/Button/ButtonBase-014fae23.css +0 -2
  172. package/dist/Button/ButtonBase-014fae23.css.map +0 -1
@@ -128,19 +128,19 @@ const UnderlinePanels = ({ "aria-label": ariaLabel, "aria-labelledby": ariaLabel
128
128
  const providedValue = controlledValue !== null && controlledValue !== void 0 ? controlledValue : defaultValue;
129
129
  warning(providedValue !== void 0 && tabValues.length > 0 && !tabValues.includes(providedValue), `UnderlinePanels: the selected value "${providedValue}" does not match any tab, so the first tab is selected instead. Provide a \`value\`/\`defaultValue\` that matches a \`UnderlinePanels.Tab\` \`value\`.`);
130
130
  }
131
- return /*#__PURE__*/ jsx(UnderlinePanelsContext.Provider, {
131
+ return /* @__PURE__ */ jsx(UnderlinePanelsContext.Provider, {
132
132
  value: contextValue,
133
- children: /*#__PURE__*/ jsxs(Tabs, {
133
+ children: /* @__PURE__ */ jsxs(Tabs, {
134
134
  id: parentId,
135
135
  value: effectiveValue,
136
136
  activationMode,
137
137
  onValueChange: ({ value }) => handleValueChange(value),
138
- children: [/*#__PURE__*/ jsx(UnderlineWrapper, {
138
+ children: [/* @__PURE__ */ jsx(UnderlineWrapper, {
139
139
  ref: wrapperRef,
140
140
  "data-icons-visible": iconsVisible,
141
141
  className: clsx(className, UnderlinePanels_module_css_default.StyledUnderlineWrapper),
142
142
  ...props,
143
- children: /*#__PURE__*/ jsx(UnderlineItemList, {
143
+ children: /* @__PURE__ */ jsx(UnderlineItemList, {
144
144
  ref: listRef,
145
145
  role: tabListProps.role,
146
146
  "aria-label": tabListProps["aria-label"],
@@ -153,12 +153,11 @@ const UnderlinePanels = ({ "aria-label": ariaLabel, "aria-labelledby": ariaLabel
153
153
  })
154
154
  });
155
155
  };
156
- UnderlinePanels.displayName = "UnderlinePanels";
157
156
  const TabImpl = ({ onSelect, value, ...itemProps }) => {
158
157
  const { loadingCounters } = useContext(UnderlinePanelsContext);
159
158
  const { tabProps } = useTab({ value: value !== null && value !== void 0 ? value : "" });
160
159
  const { onKeyDown: tabOnKeyDown, onMouseDown: tabOnMouseDown, onFocus: tabOnFocus, ...restTabProps } = tabProps;
161
- return /*#__PURE__*/ jsx(UnderlineItem, {
160
+ return /* @__PURE__ */ jsx(UnderlineItem, {
162
161
  as: "button",
163
162
  ...itemProps,
164
163
  ...restTabProps,
@@ -175,19 +174,17 @@ const TabImpl = ({ onSelect, value, ...itemProps }) => {
175
174
  loadingCounters
176
175
  });
177
176
  };
178
- TabImpl.displayName = "TabImpl";
179
177
  TabImpl.displayName = "UnderlinePanels.Tab";
180
178
  const Tab = /*#__PURE__*/ React.memo(TabImpl);
181
179
  Tab.displayName = "UnderlinePanels.Tab";
182
180
  const PanelImpl = ({ children, value, ...panelRest }) => {
183
181
  const { tabPanelProps } = useTabPanel({ value: value !== null && value !== void 0 ? value : "" });
184
- return /*#__PURE__*/ jsx("div", {
182
+ return /* @__PURE__ */ jsx("div", {
185
183
  ...panelRest,
186
184
  ...tabPanelProps,
187
185
  children
188
186
  });
189
187
  };
190
- PanelImpl.displayName = "PanelImpl";
191
188
  PanelImpl.displayName = "UnderlinePanels.Panel";
192
189
  const Panel = PanelImpl;
193
190
  Panel.displayName = "UnderlinePanels.Panel";
@@ -3,10 +3,10 @@ import { Announce } from "../live-region/Announce.js";
3
3
  import { AriaAlert } from "../live-region/AriaAlert.js";
4
4
  import { AriaStatus } from "../live-region/AriaStatus.js";
5
5
  import { useSlots } from "../hooks/useSlots.js";
6
- import { ButtonBase } from "../Button/ButtonBase.js";
7
6
  import { DefaultFeatureFlags } from "../FeatureFlags/DefaultFeatureFlags.js";
8
7
  import { FeatureFlags } from "../FeatureFlags/FeatureFlags.js";
9
8
  import { useFeatureFlag } from "../FeatureFlags/useFeatureFlag.js";
9
+ import { ButtonBase } from "../Button/ButtonBase.js";
10
10
  import { KeybindingHint } from "../KeybindingHint/KeybindingHint.js";
11
11
  import { getAccessibleKeybindingHintString } from "../KeybindingHint/utils.js";
12
12
  import { Tooltip } from "../TooltipV2/Tooltip.js";
@@ -64,18 +64,6 @@ function useMergedRefs(refA, refB) {
64
64
  } else t0 = $[2];
65
65
  return t0;
66
66
  }
67
- /**
68
- * React 19 supports callback refs that can return a cleanup function. If a cleanup function is returned, the
69
- * cleanup is called on unmount **instead** of setting the ref to null.
70
- */
71
- /**
72
- * Supporting React 18 and 19 while alleviating the need for any hacks or casts in consumers:
73
- * - `ForwardedRef` from the React 18 `forwardRef` HOC
74
- * - `React19RefCallback` for callback refs that can return a cleanup function (this is included in `Ref` in React 19
75
- * but not in 18)
76
- * - `Ref` for standard refs from `useRef` or passed in as React 19 prop
77
- * - `undefined` to allow for easy use of optional `ref` props in React 19
78
- */
79
67
  function setRef(ref, value) {
80
68
  if (typeof ref === "function") return ref(value);
81
69
  else if (ref) ref.current = value;
@@ -6,11 +6,6 @@ const viewportRanges = {
6
6
  wide: "(min-width: 1400px)"
7
7
  };
8
8
  /**
9
- * Flattens all possible value types into single union type
10
- * For example, if `T` is `'none' | 'line' | Responsive<'none' | 'line' | 'filled'>`,
11
- * `FlattenResponsiveValue<T>` will be `'none' | 'line' | 'filled'`
12
- */
13
- /**
14
9
  * Checks if the value is a responsive value.
15
10
  * In other words, is it an object with viewport range keys?
16
11
  */
@@ -2,54 +2,6 @@ import { warning } from "../utils/warning.js";
2
2
  import { isSlot } from "../utils/is-slot.js";
3
3
  import React from "react";
4
4
  //#region src/hooks/useSlots.ts
5
- /**
6
- * useSlots - Extract slot components from children for SSR-compatible slot APIs.
7
- *
8
- * Given a list of children and a config mapping slot names to component types,
9
- * separates children into two groups: matched slots and the rest.
10
- *
11
- * Config: { leadingVisual: LeadingVisual, description: Description }
12
- *
13
- * Children: Matching: Output:
14
- * +----------------+ slots = {
15
- * | LeadingVisual | -> matches slot 0 --> leadingVisual: <LeadingVisual />
16
- * | "Project name" | -> no match --> description: <Description />
17
- * | Description | -> matches slot 1 --> }
18
- * | TrailingVisual | -> no match --> rest = ["Project name", <TrailingVisual />]
19
- * +----------------+
20
- *
21
- * Performance-sensitive: called per item in lists (e.g. 100-item ActionList
22
- * calls this 101 times per render).
23
- *
24
- * Once all slots are filled, remaining children skip matching entirely in
25
- * production (single integer comparison). In dev, we still scan for duplicates
26
- * to emit a warning.
27
- *
28
- * Flow per child:
29
- *
30
- * child ──> isValidElement? ──no──> rest[]
31
- * |
32
- * yes
33
- * |
34
- * v
35
- * all slots filled? ──yes──> rest[] (prod)
36
- * | |
37
- * no [dev: check for
38
- * | duplicate warning]
39
- * v
40
- * match against unfilled slots
41
- * |
42
- * found match? ──no──> rest[]
43
- * |
44
- * yes
45
- * |
46
- * v
47
- * slots[key] = child, slotsFound++
48
- *
49
- * Slot config supports two matcher styles:
50
- * 1. Component reference: { visual: LeadingVisual }
51
- * 2. Component + test fn: { block: [Description, props => props.variant === 'block'] }
52
- */
53
5
  /** Check if a child element matches a slot config entry, either by direct type comparison or slot symbol. */
54
6
  function childMatchesSlot(child, slotValue) {
55
7
  if (Array.isArray(slotValue)) {
@@ -30,7 +30,7 @@ const Button = (t0) => {
30
30
  } else t1 = $[5];
31
31
  let t2;
32
32
  if ($[6] !== children || $[7] !== rest || $[8] !== t1) {
33
- t2 = /*#__PURE__*/ jsx("button", {
33
+ t2 = /* @__PURE__ */ jsx("button", {
34
34
  className: t1,
35
35
  type: "button",
36
36
  ...rest,
@@ -75,16 +75,16 @@ const CheckboxOrRadioGroup = (t0) => {
75
75
  } else t8 = $[13];
76
76
  let t9;
77
77
  if ($[14] !== isLegendVisible || $[15] !== labelChild || $[16] !== required || $[17] !== requiredMessageId || $[18] !== slots.caption || $[19] !== slots.label || $[20] !== slots.validation) {
78
- t9 = labelChild ? /*#__PURE__*/ jsxs("legend", {
78
+ t9 = labelChild ? /* @__PURE__ */ jsxs("legend", {
79
79
  className: CheckboxOrRadioGroup_module_css_default.GroupLegend,
80
80
  "data-legend-visible": isLegendVisible ? "" : void 0,
81
81
  children: [
82
82
  slots.label,
83
- required && /*#__PURE__*/ jsx(VisuallyHidden, { children: ", required" }),
83
+ required && /* @__PURE__ */ jsx(VisuallyHidden, { children: ", required" }),
84
84
  slots.caption,
85
- /*#__PURE__*/ React.isValidElement(slots.validation) && slots.validation.props.children && /*#__PURE__*/ jsx(VisuallyHidden, { children: slots.validation.props.children })
85
+ /*#__PURE__*/ React.isValidElement(slots.validation) && slots.validation.props.children && /* @__PURE__ */ jsx(VisuallyHidden, { children: slots.validation.props.children })
86
86
  ]
87
- }) : /*#__PURE__*/ jsxs(Fragment$1, { 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
  })] });
@@ -124,7 +124,7 @@ const CheckboxOrRadioGroup = (t0) => {
124
124
  } else t11 = $[29];
125
125
  let t12;
126
126
  if ($[30] !== t10 || $[31] !== t11) {
127
- t12 = /*#__PURE__*/ jsx("div", {
127
+ t12 = /* @__PURE__ */ jsx("div", {
128
128
  className: CheckboxOrRadioGroup_module_css_default.Body,
129
129
  ...t10,
130
130
  children: t11
@@ -135,7 +135,7 @@ const CheckboxOrRadioGroup = (t0) => {
135
135
  } else t12 = $[32];
136
136
  let t13;
137
137
  if ($[33] !== Component || $[34] !== dataComponentProp || $[35] !== t12 || $[36] !== t6 || $[37] !== t7 || $[38] !== t8 || $[39] !== t9) {
138
- t13 = /*#__PURE__*/ jsxs(Component, {
138
+ t13 = /* @__PURE__ */ jsxs(Component, {
139
139
  "data-component": dataComponentProp,
140
140
  className: t6,
141
141
  "data-validation": t7,
@@ -153,7 +153,7 @@ const CheckboxOrRadioGroup = (t0) => {
153
153
  } else t13 = $[40];
154
154
  let t14;
155
155
  if ($[41] !== labelChild || $[42] !== slots.validation || $[43] !== validationChild) {
156
- t14 = validationChild && /*#__PURE__*/ jsx(ValidationAnimationContainer, {
156
+ t14 = validationChild && /* @__PURE__ */ jsx(ValidationAnimationContainer, {
157
157
  "aria-hidden": Boolean(labelChild),
158
158
  show: true,
159
159
  children: slots.validation
@@ -165,14 +165,14 @@ const CheckboxOrRadioGroup = (t0) => {
165
165
  } else t14 = $[44];
166
166
  let t15;
167
167
  if ($[45] !== t13 || $[46] !== t14) {
168
- t15 = /*#__PURE__*/ jsxs("div", { children: [t13, t14] });
168
+ t15 = /* @__PURE__ */ jsxs("div", { children: [t13, t14] });
169
169
  $[45] = t13;
170
170
  $[46] = t14;
171
171
  $[47] = t15;
172
172
  } else t15 = $[47];
173
173
  let t16;
174
174
  if ($[48] !== t15 || $[49] !== t5) {
175
- t16 = /*#__PURE__*/ jsx(CheckboxOrRadioGroupContext.Provider, {
175
+ t16 = /* @__PURE__ */ jsx(CheckboxOrRadioGroupContext.Provider, {
176
176
  value: t5,
177
177
  children: t15
178
178
  });
@@ -19,7 +19,7 @@ const CheckboxOrRadioGroupCaption = (t0) => {
19
19
  const t2 = parentName ? `${parentName}.Caption` : void 0;
20
20
  let t3;
21
21
  if ($[2] !== captionId || $[3] !== children || $[4] !== t1 || $[5] !== t2) {
22
- t3 = /*#__PURE__*/ jsx(Text_default, {
22
+ t3 = /* @__PURE__ */ jsx(Text_default, {
23
23
  className: t1,
24
24
  id: captionId,
25
25
  "data-component": t2,
@@ -24,13 +24,13 @@ const CheckboxOrRadioGroupLabel = (t0) => {
24
24
  const t6 = parentName ? `${parentName}.Label` : void 0;
25
25
  let t7;
26
26
  if ($[2] !== children || $[3] !== required) {
27
- t7 = required ? /*#__PURE__*/ jsxs(Stack, {
27
+ t7 = required ? /* @__PURE__ */ jsxs(Stack, {
28
28
  direction: "horizontal",
29
29
  gap: "none",
30
- children: [/*#__PURE__*/ jsx("div", {
30
+ children: [/* @__PURE__ */ jsx("div", {
31
31
  className: CheckboxOrRadioGroup_module_css_default.GroupLabelChildren,
32
32
  children
33
- }), /*#__PURE__*/ jsx("span", { children: "*" })]
33
+ }), /* @__PURE__ */ jsx("span", { children: "*" })]
34
34
  }) : children;
35
35
  $[2] = children;
36
36
  $[3] = required;
@@ -38,7 +38,7 @@ const CheckboxOrRadioGroupLabel = (t0) => {
38
38
  } else t7 = $[4];
39
39
  let t8;
40
40
  if ($[5] !== t2 || $[6] !== t3 || $[7] !== t4 || $[8] !== t5 || $[9] !== t6 || $[10] !== t7) {
41
- t8 = /*#__PURE__*/ jsx(VisuallyHidden, {
41
+ t8 = /* @__PURE__ */ jsx(VisuallyHidden, {
42
42
  className: t2,
43
43
  isVisible: t3,
44
44
  title: t4,
@@ -12,7 +12,7 @@ const CheckboxOrRadioGroupValidation = (t0) => {
12
12
  const t2 = parentName ? `${parentName}.Validation` : void 0;
13
13
  let t3;
14
14
  if ($[0] !== children || $[1] !== t2 || $[2] !== validationMessageId || $[3] !== variant) {
15
- t3 = /*#__PURE__*/ jsx(InputValidation, {
15
+ t3 = /* @__PURE__ */ jsx(InputValidation, {
16
16
  validationStatus: variant,
17
17
  id: validationMessageId,
18
18
  "data-component": t2,
@@ -20,7 +20,7 @@ const ConditionalWrapper = (props) => {
20
20
  if (condition) {
21
21
  let t0;
22
22
  if ($[4] !== children || $[5] !== rest) {
23
- t0 = /*#__PURE__*/ jsx("div", {
23
+ t0 = /* @__PURE__ */ jsx("div", {
24
24
  ...rest,
25
25
  children
26
26
  });
@@ -32,7 +32,7 @@ const ConditionalWrapper = (props) => {
32
32
  } else {
33
33
  let t0;
34
34
  if ($[7] !== children) {
35
- t0 = /*#__PURE__*/ jsx(Fragment, { children });
35
+ t0 = /* @__PURE__ */ jsx(Fragment, { children });
36
36
  $[7] = children;
37
37
  $[8] = t0;
38
38
  } else t0 = $[8];
@@ -55,9 +55,9 @@ function InputLabel(t0) {
55
55
  let t5;
56
56
  if ($[14] !== children || $[15] !== required || $[16] !== requiredIndicator || $[17] !== requiredText) {
57
57
  var _requiredText;
58
- t5 = required || requiredText ? /*#__PURE__*/ jsxs("span", {
58
+ t5 = required || requiredText ? /* @__PURE__ */ jsxs("span", {
59
59
  className: InputLabel_module_css_default.RequiredText,
60
- children: [/*#__PURE__*/ jsx("span", { children }), /*#__PURE__*/ jsx("span", {
60
+ children: [/* @__PURE__ */ jsx("span", { children }), /* @__PURE__ */ jsx("span", {
61
61
  "aria-hidden": requiredIndicator ? void 0 : true,
62
62
  children: (_requiredText = requiredText) !== null && _requiredText !== void 0 ? _requiredText : "*"
63
63
  })]
@@ -70,7 +70,7 @@ function InputLabel(t0) {
70
70
  } else t5 = $[18];
71
71
  let t6;
72
72
  if ($[19] !== Component || $[20] !== htmlFor || $[21] !== id || $[22] !== props || $[23] !== t2 || $[24] !== t3 || $[25] !== t4 || $[26] !== t5) {
73
- t6 = /*#__PURE__*/ jsx(Component, {
73
+ t6 = /* @__PURE__ */ jsx(Component, {
74
74
  "data-control-disabled": t2,
75
75
  "data-visually-hidden": t3,
76
76
  htmlFor,
@@ -46,11 +46,11 @@ const InputValidation = (t0) => {
46
46
  } else t1 = $[9];
47
47
  let t2;
48
48
  if ($[10] !== IconComponent) {
49
- t2 = IconComponent ? /*#__PURE__*/ jsx("span", {
49
+ t2 = IconComponent ? /* @__PURE__ */ jsx("span", {
50
50
  "aria-hidden": "true",
51
51
  className: InputValidation_module_css_default.ValidationIcon,
52
52
  style: { "--inputValidation-iconSize": 16 },
53
- children: /*#__PURE__*/ jsx(IconComponent, {
53
+ children: /* @__PURE__ */ jsx(IconComponent, {
54
54
  size: 12,
55
55
  fill: "currentColor"
56
56
  })
@@ -65,7 +65,7 @@ const InputValidation = (t0) => {
65
65
  } else t3 = $[12];
66
66
  let t4;
67
67
  if ($[13] !== children || $[14] !== id) {
68
- t4 = /*#__PURE__*/ jsx("span", {
68
+ t4 = /* @__PURE__ */ jsx("span", {
69
69
  id,
70
70
  className: InputValidation_module_css_default.ValidationText,
71
71
  style: t3,
@@ -77,7 +77,7 @@ const InputValidation = (t0) => {
77
77
  } else t4 = $[15];
78
78
  let t5;
79
79
  if ($[16] !== dataComponent || $[17] !== rest || $[18] !== style || $[19] !== t1 || $[20] !== t2 || $[21] !== t4 || $[22] !== validationStatus) {
80
- t5 = /*#__PURE__*/ jsxs(Text_default, {
80
+ t5 = /* @__PURE__ */ jsxs(Text_default, {
81
81
  ...rest,
82
82
  className: t1,
83
83
  "data-validation-status": validationStatus,
@@ -132,7 +132,7 @@ function OverflowObserverProvider(t0) {
132
132
  useEffect(t7, t8);
133
133
  let t9;
134
134
  if ($[12] !== children || $[13] !== observe) {
135
- t9 = /*#__PURE__*/ jsx(OverflowObserverContext.Provider, {
135
+ t9 = /* @__PURE__ */ jsx(OverflowObserverContext.Provider, {
136
136
  value: observe,
137
137
  children
138
138
  });
@@ -12,7 +12,7 @@ const ConditionalTooltip = (t0) => {
12
12
  const { "aria-label": ariaLabel, children, tooltipDirection } = t0;
13
13
  let t1;
14
14
  if ($[0] !== ariaLabel || $[1] !== children || $[2] !== tooltipDirection) {
15
- t1 = ariaLabel ? /*#__PURE__*/ jsx(Tooltip, {
15
+ t1 = ariaLabel ? /* @__PURE__ */ jsx(Tooltip, {
16
16
  text: ariaLabel,
17
17
  direction: tooltipDirection,
18
18
  className: TextInputInnerAction_module_css_default.ConditionalTooltip,
@@ -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$1, { children: t1 });
28
+ t2 = /* @__PURE__ */ jsx(Fragment$1, { children: t1 });
29
29
  $[4] = t1;
30
30
  $[5] = t2;
31
31
  } else t2 = $[5];
@@ -95,10 +95,10 @@ const TextInputAction = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
95
95
  let t7;
96
96
  if ($[18] !== accessibleLabel || $[19] !== ariaLabel || $[20] !== children || $[21] !== forwardedRef || $[22] !== icon || $[23] !== rest || $[24] !== styleProps || $[25] !== tooltipDirection || $[26] !== variant) {
97
97
  var _tooltipDirection;
98
- t7 = /*#__PURE__*/ jsx("span", {
98
+ t7 = /* @__PURE__ */ jsx("span", {
99
99
  className: t6,
100
100
  "data-component": "TextInput.Action",
101
- children: icon && !children && ariaLabel ? /*#__PURE__*/ jsx(IconButton, {
101
+ children: icon && !children && ariaLabel ? /* @__PURE__ */ jsx(IconButton, {
102
102
  ...accessibleLabel,
103
103
  tooltipDirection: (_tooltipDirection = tooltipDirection) !== null && _tooltipDirection !== void 0 ? _tooltipDirection : "s",
104
104
  variant,
@@ -108,9 +108,9 @@ const TextInputAction = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
108
108
  ...styleProps,
109
109
  ...rest,
110
110
  ref: forwardedRef
111
- }) : /*#__PURE__*/ jsx(ConditionalTooltip, {
111
+ }) : /* @__PURE__ */ jsx(ConditionalTooltip, {
112
112
  "aria-label": ariaLabel,
113
- children: /*#__PURE__*/ jsx(ButtonComponent, {
113
+ children: /* @__PURE__ */ jsx(ButtonComponent, {
114
114
  variant,
115
115
  type: "button",
116
116
  ...styleProps,
@@ -14,7 +14,7 @@ const TextInputInnerVisualSlot = (t0) => {
14
14
  const t2 = isLeading ? `${componentPrefix}.LeadingVisual` : `${componentPrefix}.TrailingVisual`;
15
15
  let t3;
16
16
  if ($[0] !== children || $[1] !== id || $[2] !== t2) {
17
- t3 = /*#__PURE__*/ jsx("span", {
17
+ t3 = /* @__PURE__ */ jsx("span", {
18
18
  className: "TextInput-icon",
19
19
  id,
20
20
  "aria-hidden": "true",
@@ -31,7 +31,7 @@ const TextInputInnerVisualSlot = (t0) => {
31
31
  const t2 = isLeading ? `${componentPrefix}.LeadingVisual` : `${componentPrefix}.TrailingVisual`;
32
32
  let t3;
33
33
  if ($[4] !== children || $[5] !== showLoadingIndicator) {
34
- t3 = children && /*#__PURE__*/ jsx("div", {
34
+ t3 = children && /* @__PURE__ */ jsx("div", {
35
35
  className: clsx(showLoadingIndicator ? TextInputInnerVisualSlot_module_css_default.SpinnerHidden : TextInputInnerVisualSlot_module_css_default.SpinnerVisible),
36
36
  children
37
37
  });
@@ -53,7 +53,7 @@ const TextInputInnerVisualSlot = (t0) => {
53
53
  const t8 = children ? void 0 : "small";
54
54
  let t9;
55
55
  if ($[11] !== t7 || $[12] !== t8) {
56
- t9 = /*#__PURE__*/ jsx(Spinner, {
56
+ t9 = /* @__PURE__ */ jsx(Spinner, {
57
57
  srText: null,
58
58
  className: t7,
59
59
  size: t8
@@ -64,7 +64,7 @@ const TextInputInnerVisualSlot = (t0) => {
64
64
  } else t9 = $[13];
65
65
  let t10;
66
66
  if ($[14] !== id || $[15] !== t3 || $[16] !== t9) {
67
- t10 = /*#__PURE__*/ jsxs("div", {
67
+ t10 = /* @__PURE__ */ jsxs("div", {
68
68
  className: TextInputInnerVisualSlot_module_css_default.Box,
69
69
  id,
70
70
  children: [t3, t9]
@@ -76,7 +76,7 @@ const TextInputInnerVisualSlot = (t0) => {
76
76
  } else t10 = $[17];
77
77
  let t11;
78
78
  if ($[18] !== t10 || $[19] !== t2) {
79
- t11 = /*#__PURE__*/ jsx("span", {
79
+ t11 = /* @__PURE__ */ jsx("span", {
80
80
  className: "TextInput-icon",
81
81
  "data-component": t2,
82
82
  children: t10
@@ -107,7 +107,7 @@ const TextInputBaseWrapper = /*#__PURE__*/ React.forwardRef(function TextInputBa
107
107
  const t15 = variant || void 0;
108
108
  let t16;
109
109
  if ($[29] !== forwardRef || $[30] !== memoizedStyle || $[31] !== restProps || $[32] !== t10 || $[33] !== t11 || $[34] !== t12 || $[35] !== t13 || $[36] !== t14 || $[37] !== t15 || $[38] !== t5 || $[39] !== t6 || $[40] !== t7 || $[41] !== t8 || $[42] !== t9) {
110
- t16 = /*#__PURE__*/ jsx("span", {
110
+ t16 = /* @__PURE__ */ jsx("span", {
111
111
  ref: forwardRef,
112
112
  className: t5,
113
113
  "data-block": t6,
@@ -174,7 +174,7 @@ const TextInputWrapper = /*#__PURE__*/ React.forwardRef(function TextInputWrappe
174
174
  const t5 = hasTrailingVisual ? void 0 : true;
175
175
  let t6;
176
176
  if ($[7] !== forwardRef || $[8] !== restProps || $[9] !== t1 || $[10] !== t2 || $[11] !== t3 || $[12] !== t4 || $[13] !== t5) {
177
- t6 = /*#__PURE__*/ jsx(TextInputBaseWrapper, {
177
+ t6 = /* @__PURE__ */ jsx(TextInputBaseWrapper, {
178
178
  ref: forwardRef,
179
179
  className: t1,
180
180
  "data-leading-visual": t2,
@@ -8,7 +8,7 @@ const ThemeProviderBase = (t0) => {
8
8
  if (contextOnly) {
9
9
  let t1;
10
10
  if ($[0] !== children || $[1] !== value) {
11
- t1 = /*#__PURE__*/ jsx(ThemeContext.Provider, {
11
+ t1 = /* @__PURE__ */ jsx(ThemeContext.Provider, {
12
12
  value,
13
13
  children
14
14
  });
@@ -21,7 +21,7 @@ const ThemeProviderBase = (t0) => {
21
21
  const t1 = value.colorMode === "auto" ? "auto" : value.colorScheme.includes("dark") ? "dark" : "light";
22
22
  let t2;
23
23
  if ($[3] !== children || $[4] !== t1 || $[5] !== value.dayScheme || $[6] !== value.nightScheme) {
24
- t2 = /*#__PURE__*/ jsx("div", {
24
+ t2 = /* @__PURE__ */ jsx("div", {
25
25
  "data-component": "ThemeProvider",
26
26
  "data-color-mode": t1,
27
27
  "data-light-theme": value.dayScheme,
@@ -36,7 +36,7 @@ const ThemeProviderBase = (t0) => {
36
36
  } else t2 = $[7];
37
37
  let t3;
38
38
  if ($[8] !== t2 || $[9] !== value) {
39
- t3 = /*#__PURE__*/ jsx(ThemeContext.Provider, {
39
+ t3 = /* @__PURE__ */ jsx(ThemeContext.Provider, {
40
40
  value,
41
41
  children: t2
42
42
  });
@@ -40,7 +40,7 @@ const UnderlineWrapper = /*#__PURE__*/ forwardRef((props, ref) => {
40
40
  const t2 = ref;
41
41
  let t3;
42
42
  if ($[7] !== Component || $[8] !== children || $[9] !== rest || $[10] !== t1 || $[11] !== t2) {
43
- t3 = /*#__PURE__*/ jsx(Component, {
43
+ t3 = /* @__PURE__ */ jsx(Component, {
44
44
  className: t1,
45
45
  ref: t2,
46
46
  ...rest,
@@ -79,7 +79,7 @@ const UnderlineItemList = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
79
79
  } else t1 = $[5];
80
80
  let t2;
81
81
  if ($[6] !== children || $[7] !== forwardedRef || $[8] !== rest || $[9] !== t1) {
82
- t2 = /*#__PURE__*/ jsx("ul", {
82
+ t2 = /* @__PURE__ */ jsx("ul", {
83
83
  className: t1,
84
84
  ref: forwardedRef,
85
85
  ...rest,
@@ -97,7 +97,7 @@ const LoadingCounter = () => {
97
97
  const $ = c(1);
98
98
  let t0;
99
99
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
100
- t0 = /*#__PURE__*/ jsx("span", { className: UnderlineTabbedInterface_module_css_default.LoadingCounter });
100
+ t0 = /* @__PURE__ */ jsx("span", { className: UnderlineTabbedInterface_module_css_default.LoadingCounter });
101
101
  $[0] = t0;
102
102
  } else t0 = $[0];
103
103
  return t0;
@@ -146,16 +146,16 @@ const UnderlineItem = /*#__PURE__*/ React.forwardRef((props, ref) => {
146
146
  } else t2 = $[11];
147
147
  let t3;
148
148
  if ($[12] !== Icon) {
149
- t3 = Icon && /*#__PURE__*/ jsx("span", {
149
+ t3 = Icon && /* @__PURE__ */ jsx("span", {
150
150
  "data-component": "icon",
151
- children: isElement(Icon) ? Icon : /*#__PURE__*/ jsx(Icon, {})
151
+ children: isElement(Icon) ? Icon : /* @__PURE__ */ jsx(Icon, {})
152
152
  });
153
153
  $[12] = Icon;
154
154
  $[13] = t3;
155
155
  } else t3 = $[13];
156
156
  let t4;
157
157
  if ($[14] !== children || $[15] !== textContent) {
158
- t4 = children && /*#__PURE__*/ jsx("span", {
158
+ t4 = children && /* @__PURE__ */ jsx("span", {
159
159
  "data-component": "text",
160
160
  "data-content": textContent || void 0,
161
161
  children
@@ -166,12 +166,12 @@ const UnderlineItem = /*#__PURE__*/ React.forwardRef((props, ref) => {
166
166
  } else t4 = $[16];
167
167
  let t5;
168
168
  if ($[17] !== counter || $[18] !== loadingCounters) {
169
- t5 = counter !== void 0 ? loadingCounters ? /*#__PURE__*/ jsx("span", {
169
+ t5 = counter !== void 0 ? loadingCounters ? /* @__PURE__ */ jsx("span", {
170
170
  "data-component": "counter",
171
- children: /*#__PURE__*/ jsx(LoadingCounter, {})
172
- }) : /*#__PURE__*/ jsx("span", {
171
+ children: /* @__PURE__ */ jsx(LoadingCounter, {})
172
+ }) : /* @__PURE__ */ jsx("span", {
173
173
  "data-component": "counter",
174
- children: /*#__PURE__*/ jsx(CounterLabel, { children: counter })
174
+ children: /* @__PURE__ */ jsx(CounterLabel, { children: counter })
175
175
  }) : null;
176
176
  $[17] = counter;
177
177
  $[18] = loadingCounters;
@@ -179,7 +179,7 @@ const UnderlineItem = /*#__PURE__*/ React.forwardRef((props, ref) => {
179
179
  } else t5 = $[19];
180
180
  let t6;
181
181
  if ($[20] !== Component || $[21] !== ref || $[22] !== rest || $[23] !== t2 || $[24] !== t3 || $[25] !== t4 || $[26] !== t5) {
182
- t6 = /*#__PURE__*/ jsxs(Component, {
182
+ t6 = /* @__PURE__ */ jsxs(Component, {
183
183
  ...rest,
184
184
  ref,
185
185
  className: t2,
@@ -25,7 +25,7 @@ const UnstyledTextInput = /*#__PURE__*/ React.forwardRef(function UnstyledTextIn
25
25
  } else t1 = $[4];
26
26
  let t2;
27
27
  if ($[5] !== forwardRef || $[6] !== rest || $[7] !== t1) {
28
- t2 = /*#__PURE__*/ jsx("input", {
28
+ t2 = /* @__PURE__ */ jsx("input", {
29
29
  ref: forwardRef,
30
30
  ...rest,
31
31
  className: t1
@@ -35,14 +35,14 @@ const ValidationAnimationContainer = (t0) => {
35
35
  const onAnimationEnd = t1;
36
36
  let t2;
37
37
  if ($[7] !== children || $[8] !== onAnimationEnd || $[9] !== rest || $[10] !== shouldRender || $[11] !== show || $[12] !== style) {
38
- t2 = shouldRender ? /*#__PURE__*/ jsx("div", {
38
+ t2 = shouldRender ? /* @__PURE__ */ jsx("div", {
39
39
  ...rest,
40
40
  style: {
41
41
  ...style,
42
42
  height: show ? "auto" : 0,
43
43
  overflow: "hidden"
44
44
  },
45
- children: /*#__PURE__*/ jsx("div", {
45
+ children: /* @__PURE__ */ jsx("div", {
46
46
  "data-show": show ? "" : void 0,
47
47
  onAnimationEnd,
48
48
  className: ValidationAnimationContainer_module_css_default.Animation,
@@ -1,7 +1,6 @@
1
1
  import { c } from "../../utils/react-compiler-runtime.js";
2
2
  import { createContext, useContext, useRef, useSyncExternalStore } from "react";
3
3
  //#region src/internal/hooks/useOverflowObserver.ts
4
- /** Subscribe a single observed element to the shared `IntersectionObserver`. Returns an unsubscribe function. */
5
4
  /** Provided by `OverflowObserverProvider`; `null` when no provider is present. Consumed via `useIsClipped`. */
6
5
  const OverflowObserverContext = /*#__PURE__*/ createContext(null);
7
6
  /**
@@ -49,9 +48,9 @@ function useIsClipped(ref, options) {
49
48
  } else t1 = $[5];
50
49
  return useSyncExternalStore(subscribe, t1, getOverflowServerSnapshot);
51
50
  }
52
- /** Stable server snapshot for `useIsClipped`: overflow is never measured during SSR. */
53
51
  function _temp2() {}
54
52
  function _temp() {}
53
+ /** Stable server snapshot for `useIsClipped`: overflow is never measured during SSR. */
55
54
  const getOverflowServerSnapshot = () => false;
56
55
  //#endregion
57
56
  export { OverflowObserverContext, useIsClipped };
@@ -125,7 +125,7 @@ function Announce(props) {
125
125
  useEffect(t8, t9);
126
126
  let t10;
127
127
  if ($[20] !== BaseComponent || $[21] !== children || $[22] !== rest) {
128
- t10 = /*#__PURE__*/ jsx(BaseComponent, {
128
+ t10 = /* @__PURE__ */ jsx(BaseComponent, {
129
129
  ...rest,
130
130
  ref,
131
131
  children
@@ -8,7 +8,7 @@ function AriaAlert(props) {
8
8
  const t0 = (_props$announceOnShow = props.announceOnShow) !== null && _props$announceOnShow !== void 0 ? _props$announceOnShow : true;
9
9
  let t1;
10
10
  if ($[0] !== props || $[1] !== t0) {
11
- t1 = /*#__PURE__*/ jsx(Announce, {
11
+ t1 = /* @__PURE__ */ jsx(Announce, {
12
12
  ...props,
13
13
  announceOnShow: t0,
14
14
  politeness: "assertive"
@@ -8,7 +8,7 @@ function AriaStatus(props) {
8
8
  const t0 = (_props$announceOnShow = props.announceOnShow) !== null && _props$announceOnShow !== void 0 ? _props$announceOnShow : false;
9
9
  let t1;
10
10
  if ($[0] !== props || $[1] !== t0) {
11
- t1 = /*#__PURE__*/ jsx(Announce, {
11
+ t1 = /* @__PURE__ */ jsx(Announce, {
12
12
  ...props,
13
13
  announceOnShow: t0,
14
14
  politeness: "polite"