@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
@@ -51,7 +51,7 @@ const TrailingAction = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
51
51
  } else t4 = $[11];
52
52
  let t5;
53
53
  if ($[12] !== as || $[13] !== forwardedRef || $[14] !== href || $[15] !== icon || $[16] !== label || $[17] !== loading || $[18] !== props || $[19] !== tooltipDirection) {
54
- t5 = icon ? /*#__PURE__*/ jsx(IconButton, {
54
+ t5 = icon ? /* @__PURE__ */ jsx(IconButton, {
55
55
  as,
56
56
  "aria-label": label,
57
57
  icon,
@@ -63,7 +63,7 @@ const TrailingAction = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
63
63
  ref: forwardedRef,
64
64
  className: ActionList_module_css_default.TrailingActionButton,
65
65
  ...props
66
- }) : /*#__PURE__*/ jsx(ButtonComponent, {
66
+ }) : /* @__PURE__ */ jsx(ButtonComponent, {
67
67
  variant: "invisible",
68
68
  as,
69
69
  href,
@@ -87,7 +87,7 @@ const TrailingAction = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
87
87
  } else t5 = $[20];
88
88
  let t6;
89
89
  if ($[21] !== style || $[22] !== t4 || $[23] !== t5) {
90
- t6 = /*#__PURE__*/ jsx("span", {
90
+ t6 = /* @__PURE__ */ jsx("span", {
91
91
  className: t4,
92
92
  "data-component": "ActionList.TrailingAction",
93
93
  style,
@@ -29,7 +29,7 @@ const VisualContainer = (t0) => {
29
29
  } else t1 = $[4];
30
30
  let t2;
31
31
  if ($[5] !== props || $[6] !== t1) {
32
- t2 = /*#__PURE__*/ jsx("span", {
32
+ t2 = /* @__PURE__ */ jsx("span", {
33
33
  className: t1,
34
34
  ...props
35
35
  });
@@ -60,7 +60,7 @@ const LeadingVisual = (t0) => {
60
60
  } else t1 = $[4];
61
61
  let t2;
62
62
  if ($[5] !== props || $[6] !== t1) {
63
- t2 = /*#__PURE__*/ jsx(VisualContainer, {
63
+ t2 = /* @__PURE__ */ jsx(VisualContainer, {
64
64
  className: t1,
65
65
  "data-component": "ActionList.LeadingVisual",
66
66
  ...props,
@@ -94,7 +94,7 @@ const TrailingVisual = (t0) => {
94
94
  } else t1 = $[4];
95
95
  let t2;
96
96
  if ($[5] !== props || $[6] !== t1 || $[7] !== trailingVisualId) {
97
- t2 = /*#__PURE__*/ jsx(VisualContainer, {
97
+ t2 = /* @__PURE__ */ jsx(VisualContainer, {
98
98
  className: t1,
99
99
  "data-component": "ActionList.TrailingVisual",
100
100
  id: trailingVisualId,
@@ -116,22 +116,22 @@ const VisualOrIndicator = (t0) => {
116
116
  if (itemHasLeadingVisual && position === "trailing" || !itemHasLeadingVisual && position === "leading") return children;
117
117
  let t1;
118
118
  if ($[0] !== VisualComponent || $[1] !== className || $[2] !== inactiveText || $[3] !== labelId || $[4] !== position) {
119
- t1 = inactiveText ? /*#__PURE__*/ jsx("span", {
119
+ t1 = inactiveText ? /* @__PURE__ */ jsx("span", {
120
120
  className: ActionList_module_css_default.InactiveButtonWrap,
121
121
  "data-position": position,
122
- children: /*#__PURE__*/ jsx(Tooltip, {
122
+ children: /* @__PURE__ */ jsx(Tooltip, {
123
123
  text: inactiveText,
124
124
  type: "description",
125
- children: /*#__PURE__*/ jsx("button", {
125
+ children: /* @__PURE__ */ jsx("button", {
126
126
  type: "button",
127
127
  className: ActionList_module_css_default.InactiveButtonReset,
128
128
  "aria-labelledby": labelId,
129
- children: /*#__PURE__*/ jsx(VisualComponent, { children: /*#__PURE__*/ jsx(AlertIcon, {}) })
129
+ children: /* @__PURE__ */ jsx(VisualComponent, { children: /* @__PURE__ */ jsx(AlertIcon, {}) })
130
130
  })
131
131
  })
132
- }) : /*#__PURE__*/ jsx(VisualComponent, {
132
+ }) : /* @__PURE__ */ jsx(VisualComponent, {
133
133
  className,
134
- children: /*#__PURE__*/ jsx(Spinner, { size: "small" })
134
+ children: /* @__PURE__ */ jsx(Spinner, { size: "small" })
135
135
  });
136
136
  $[0] = VisualComponent;
137
137
  $[1] = className;
@@ -118,12 +118,11 @@ const Menu = ({ anchorRef: externalAnchorRef, open, onOpenChange, children }) =>
118
118
  onClose,
119
119
  isSubmenu
120
120
  ]);
121
- return /*#__PURE__*/ jsx(MenuContext.Provider, {
121
+ return /* @__PURE__ */ jsx(MenuContext.Provider, {
122
122
  value: menuContextValue,
123
123
  children: contents
124
124
  });
125
125
  };
126
- Menu.displayName = "Menu";
127
126
  const Anchor = /*#__PURE__*/ React.forwardRef(({ children: child, ...anchorProps }, anchorRef) => {
128
127
  const { onOpen, isSubmenu } = React.useContext(MenuContext);
129
128
  const openSubmenuOnRightArrow = useCallback((event) => {
@@ -143,14 +142,14 @@ const Anchor = /*#__PURE__*/ React.forwardRef(({ children: child, ...anchorProps
143
142
  const parentActionListContext = useContext(ActionListContainerContext);
144
143
  const thisActionListContext = useMemo(() => isSubmenu ? {
145
144
  ...parentActionListContext,
146
- defaultTrailingVisual: /*#__PURE__*/ jsx(ChevronRightIcon, {}),
145
+ defaultTrailingVisual: /* @__PURE__ */ jsx(ChevronRightIcon, {}),
147
146
  afterSelect: () => onOpen === null || onOpen === void 0 ? void 0 : onOpen("anchor-click")
148
147
  } : parentActionListContext, [
149
148
  isSubmenu,
150
149
  onOpen,
151
150
  parentActionListContext
152
151
  ]);
153
- return /*#__PURE__*/ jsx(ActionListContainerContext.Provider, {
152
+ return /* @__PURE__ */ jsx(ActionListContainerContext.Provider, {
154
153
  value: thisActionListContext,
155
154
  children: /*#__PURE__*/ React.cloneElement(child, {
156
155
  ...anchorProps,
@@ -161,11 +160,10 @@ const Anchor = /*#__PURE__*/ React.forwardRef(({ children: child, ...anchorProps
161
160
  })
162
161
  });
163
162
  });
164
- /** this component is syntactical sugar 🍭 */
165
163
  const MenuButton = /*#__PURE__*/ React.forwardRef(({ ...props }, anchorRef) => {
166
- return /*#__PURE__*/ jsx(Anchor, {
164
+ return /* @__PURE__ */ jsx(Anchor, {
167
165
  ref: anchorRef,
168
- children: /*#__PURE__*/ jsx(ButtonComponent, {
166
+ children: /* @__PURE__ */ jsx(ButtonComponent, {
169
167
  "data-component": "ActionMenu.Button",
170
168
  type: "button",
171
169
  trailingAction: TriangleDownIcon,
@@ -213,7 +211,7 @@ const Overlay = ({ children, align = "start", side, onPositionChange, displayInV
213
211
  isNarrowFullscreen
214
212
  ]);
215
213
  const isInsideDialog = useContext(DialogContext) !== void 0;
216
- return /*#__PURE__*/ jsx(AnchoredOverlay, {
214
+ return /* @__PURE__ */ jsx(AnchoredOverlay, {
217
215
  anchorRef,
218
216
  renderAnchor,
219
217
  anchorId,
@@ -230,20 +228,19 @@ const Overlay = ({ children, align = "start", side, onPositionChange, displayInV
230
228
  onPositionChange,
231
229
  variant,
232
230
  displayInViewport: displayInViewport !== void 0 ? displayInViewport : isInsideDialog,
233
- children: /*#__PURE__*/ jsx("div", {
231
+ children: /* @__PURE__ */ jsx("div", {
234
232
  ref: containerRef,
235
233
  className: ActionMenu_module_css_default.ActionMenuContainer,
236
234
  "data-variant": responsiveVariant,
237
235
  ...overlayProps.overflow ? { [`data-overflow-${overlayProps.overflow}`]: "" } : {},
238
236
  ...overlayProps.maxHeight ? { [`data-max-height-${overlayProps.maxHeight}`]: "" } : {},
239
- children: /*#__PURE__*/ jsx(ActionListContainerContext.Provider, {
237
+ children: /* @__PURE__ */ jsx(ActionListContainerContext.Provider, {
240
238
  value: overlayContextValue,
241
239
  children
242
240
  })
243
241
  })
244
242
  });
245
243
  };
246
- Overlay.displayName = "Overlay";
247
244
  Menu.displayName = "ActionMenu";
248
245
  MenuButton.__SLOT__ = Symbol("ActionMenu.Button");
249
246
  Anchor.__SLOT__ = Symbol("ActionMenu.Anchor");
@@ -164,7 +164,7 @@ const AnchoredOverlay = ({ renderAnchor, anchorRef: externalAnchorRef, anchorId:
164
164
  const XButtonAriaLabelledBy = closeButtonProps["aria-labelledby"];
165
165
  const XButtonAriaLabel = closeButtonProps["aria-label"];
166
166
  const { className: overlayClassName, _PrivateDisablePortal, ...restOverlayProps } = overlayProps || {};
167
- return /*#__PURE__*/ jsxs(Fragment$1, { children: [renderAnchor && renderAnchor({
167
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [renderAnchor && renderAnchor({
168
168
  ref: anchorRef,
169
169
  id: anchorId,
170
170
  "aria-haspopup": "true",
@@ -173,7 +173,7 @@ const AnchoredOverlay = ({ renderAnchor, anchorRef: externalAnchorRef, anchorId:
173
173
  onClick: onAnchorClick,
174
174
  onKeyDown: onAnchorKeyDown,
175
175
  ...popoverTargetProps
176
- }), open ? /*#__PURE__*/ jsxs(Overlay, {
176
+ }), open ? /* @__PURE__ */ jsxs(Overlay, {
177
177
  returnFocusRef: anchorRef,
178
178
  onClickOutside,
179
179
  ignoreClickRefs: [anchorRef],
@@ -200,9 +200,9 @@ const AnchoredOverlay = ({ renderAnchor, anchorRef: externalAnchorRef, anchorId:
200
200
  },
201
201
  "data-anchor-position": cssAnchorPositioning,
202
202
  "data-side": cssAnchorPositioning ? side : position === null || position === void 0 ? void 0 : position.anchorSide,
203
- children: [showXIcon ? /*#__PURE__*/ jsx("div", {
203
+ children: [showXIcon ? /* @__PURE__ */ jsx("div", {
204
204
  className: AnchoredOverlay_module_css_default.ResponsiveCloseButtonContainer,
205
- children: /*#__PURE__*/ jsx(IconButton, {
205
+ children: /* @__PURE__ */ jsx(IconButton, {
206
206
  ...closeButtonProps,
207
207
  "data-component": "AnchoredOverlay.CloseButton",
208
208
  type: "button",
@@ -148,7 +148,7 @@ const Autocomplete = (t0) => {
148
148
  const autocompleteDeferredInputContextValue = t8;
149
149
  let t9;
150
150
  if ($[15] !== autocompleteDeferredInputContextValue || $[16] !== children) {
151
- t9 = /*#__PURE__*/ jsx(AutocompleteDeferredInputContext.Provider, {
151
+ t9 = /* @__PURE__ */ jsx(AutocompleteDeferredInputContext.Provider, {
152
152
  value: autocompleteDeferredInputContextValue,
153
153
  children
154
154
  });
@@ -158,7 +158,7 @@ const Autocomplete = (t0) => {
158
158
  } else t9 = $[17];
159
159
  let t10;
160
160
  if ($[18] !== autocompleteInputContextValue || $[19] !== t9) {
161
- t10 = /*#__PURE__*/ jsx(AutocompleteInputContext.Provider, {
161
+ t10 = /* @__PURE__ */ jsx(AutocompleteInputContext.Provider, {
162
162
  value: autocompleteInputContextValue,
163
163
  children: t9
164
164
  });
@@ -168,7 +168,7 @@ const Autocomplete = (t0) => {
168
168
  } else t10 = $[20];
169
169
  let t11;
170
170
  if ($[21] !== autocompleteContextValue || $[22] !== t10) {
171
- t11 = /*#__PURE__*/ jsx(AutocompleteContext.Provider, {
171
+ t11 = /* @__PURE__ */ jsx(AutocompleteContext.Provider, {
172
172
  value: autocompleteContextValue,
173
173
  children: t10
174
174
  });
@@ -97,7 +97,7 @@ const AutocompleteInput = /*#__PURE__*/ React.forwardRef(({ as: Component = Text
97
97
  useEffect(() => {
98
98
  setInputValue(typeof value !== "undefined" ? value.toString() : "");
99
99
  }, [value, setInputValue]);
100
- return /*#__PURE__*/ jsx(Component, {
100
+ return /* @__PURE__ */ jsx(Component, {
101
101
  onFocus: handleInputFocus,
102
102
  onBlur: handleInputBlur,
103
103
  onChange: handleInputChange,
@@ -43,7 +43,7 @@ const debounceAnnouncement = debounce((announcement) => {
43
43
  announce(announcement);
44
44
  }, 250);
45
45
  function AutocompleteMenu(props) {
46
- const $ = c(80);
46
+ const $ = c(83);
47
47
  const autocompleteContext = useContext(AutocompleteContext);
48
48
  const deferredInputContext = useContext(AutocompleteDeferredInputContext);
49
49
  if (autocompleteContext === null || deferredInputContext === null) throw new Error("AutocompleteContext returned null values");
@@ -112,12 +112,19 @@ function AutocompleteMenu(props) {
112
112
  let t6;
113
113
  if ($[15] !== deferredInputValue || $[16] !== filterFn || $[17] !== itemSortOrderData || $[18] !== selectableItems) {
114
114
  let t7;
115
- if ($[20] !== itemSortOrderData) {
116
- t7 = (a, b) => itemSortOrderData[a.id] - itemSortOrderData[b.id];
117
- $[20] = itemSortOrderData;
118
- $[21] = t7;
119
- } else t7 = $[21];
120
- t6 = selectableItems.filter(filterFn ? filterFn : getDefaultItemFilter(deferredInputValue)).sort(t7);
115
+ if ($[20] !== deferredInputValue || $[21] !== filterFn) {
116
+ t7 = filterFn ? filterFn : getDefaultItemFilter(deferredInputValue);
117
+ $[20] = deferredInputValue;
118
+ $[21] = filterFn;
119
+ $[22] = t7;
120
+ } else t7 = $[22];
121
+ let t8;
122
+ if ($[23] !== itemSortOrderData) {
123
+ t8 = (a, b) => itemSortOrderData[a.id] - itemSortOrderData[b.id];
124
+ $[23] = itemSortOrderData;
125
+ $[24] = t8;
126
+ } else t8 = $[24];
127
+ t6 = selectableItems.filter(t7).sort(t8);
121
128
  $[15] = deferredInputValue;
122
129
  $[16] = filterFn;
123
130
  $[17] = itemSortOrderData;
@@ -126,7 +133,7 @@ function AutocompleteMenu(props) {
126
133
  } else t6 = $[19];
127
134
  const sortedAndFilteredItemsToRender = t6;
128
135
  let t7;
129
- if ($[22] !== addNewItem || $[23] !== generatedUniqueId || $[24] !== (highlightedItem === null || highlightedItem === void 0 ? void 0 : highlightedItem.id) || $[25] !== selectedItemIds || $[26] !== selectionVariant || $[27] !== setAutocompleteSuggestion || $[28] !== setInputValue) {
136
+ if ($[25] !== addNewItem || $[26] !== generatedUniqueId || $[27] !== (highlightedItem === null || highlightedItem === void 0 ? void 0 : highlightedItem.id) || $[28] !== selectedItemIds || $[29] !== selectionVariant || $[30] !== setAutocompleteSuggestion || $[31] !== setInputValue) {
130
137
  t7 = addNewItem ? [{
131
138
  ...addNewItem,
132
139
  role: "option",
@@ -146,51 +153,51 @@ function AutocompleteMenu(props) {
146
153
  }
147
154
  }
148
155
  }] : [];
149
- $[22] = addNewItem;
150
- $[23] = generatedUniqueId;
151
- $[24] = highlightedItem === null || highlightedItem === void 0 ? void 0 : highlightedItem.id;
152
- $[25] = selectedItemIds;
153
- $[26] = selectionVariant;
154
- $[27] = setAutocompleteSuggestion;
155
- $[28] = setInputValue;
156
- $[29] = t7;
157
- } else t7 = $[29];
156
+ $[25] = addNewItem;
157
+ $[26] = generatedUniqueId;
158
+ $[27] = highlightedItem === null || highlightedItem === void 0 ? void 0 : highlightedItem.id;
159
+ $[28] = selectedItemIds;
160
+ $[29] = selectionVariant;
161
+ $[30] = setAutocompleteSuggestion;
162
+ $[31] = setInputValue;
163
+ $[32] = t7;
164
+ } else t7 = $[32];
158
165
  let t8;
159
- if ($[30] !== sortedAndFilteredItemsToRender || $[31] !== t7) {
166
+ if ($[33] !== sortedAndFilteredItemsToRender || $[34] !== t7) {
160
167
  t8 = [...sortedAndFilteredItemsToRender, ...t7];
161
- $[30] = sortedAndFilteredItemsToRender;
162
- $[31] = t7;
163
- $[32] = t8;
164
- } else t8 = $[32];
168
+ $[33] = sortedAndFilteredItemsToRender;
169
+ $[34] = t7;
170
+ $[35] = t8;
171
+ } else t8 = $[35];
165
172
  const allItemsToRender = t8;
166
173
  let t9;
167
- if ($[33] !== allItemsToRender) {
174
+ if ($[36] !== allItemsToRender) {
168
175
  t9 = () => {
169
176
  allItemsToRenderRef.current = allItemsToRender;
170
177
  };
171
- $[33] = allItemsToRender;
172
- $[34] = t9;
173
- } else t9 = $[34];
178
+ $[36] = allItemsToRender;
179
+ $[37] = t9;
180
+ } else t9 = $[37];
174
181
  React.useEffect(t9);
175
182
  let t10;
176
183
  let t11;
177
- if ($[35] !== allItemsToRender || $[36] !== emptyStateText) {
184
+ if ($[38] !== allItemsToRender || $[39] !== emptyStateText) {
178
185
  t10 = () => {
179
186
  if (allItemsToRender.length === 0) debounceAnnouncement(emptyStateText);
180
187
  };
181
188
  t11 = [allItemsToRender, emptyStateText];
182
- $[35] = allItemsToRender;
183
- $[36] = emptyStateText;
184
- $[37] = t10;
185
- $[38] = t11;
189
+ $[38] = allItemsToRender;
190
+ $[39] = emptyStateText;
191
+ $[40] = t10;
192
+ $[41] = t11;
186
193
  } else {
187
- t10 = $[37];
188
- t11 = $[38];
194
+ t10 = $[40];
195
+ t11 = $[41];
189
196
  }
190
197
  React.useEffect(t10, t11);
191
198
  const t12 = !showMenu;
192
199
  let t13;
193
- if ($[39] !== activeDescendantRef || $[40] !== customScrollContainerRef || $[41] !== scrollContainerRef || $[42] !== setIsMenuDirectlyActivated) {
200
+ if ($[42] !== activeDescendantRef || $[43] !== customScrollContainerRef || $[44] !== scrollContainerRef || $[45] !== setIsMenuDirectlyActivated) {
194
201
  t13 = (current, _previous, directlyActivated) => {
195
202
  activeDescendantRef.current = current || null;
196
203
  if (current) {
@@ -204,14 +211,14 @@ function AutocompleteMenu(props) {
204
211
  if (current && customScrollContainerRef && customScrollContainerRef.current && directlyActivated) scrollIntoView(current, customScrollContainerRef.current, menuScrollMargins);
205
212
  else if (current && scrollContainerRef.current && directlyActivated) scrollIntoView(current, scrollContainerRef.current, menuScrollMargins);
206
213
  };
207
- $[39] = activeDescendantRef;
208
- $[40] = customScrollContainerRef;
209
- $[41] = scrollContainerRef;
210
- $[42] = setIsMenuDirectlyActivated;
211
- $[43] = t13;
212
- } else t13 = $[43];
214
+ $[42] = activeDescendantRef;
215
+ $[43] = customScrollContainerRef;
216
+ $[44] = scrollContainerRef;
217
+ $[45] = setIsMenuDirectlyActivated;
218
+ $[46] = t13;
219
+ } else t13 = $[46];
213
220
  let t14;
214
- if ($[44] !== inputRef || $[45] !== t12 || $[46] !== t13) {
221
+ if ($[47] !== inputRef || $[48] !== t12 || $[49] !== t13) {
215
222
  t14 = {
216
223
  containerRef: listContainerRef,
217
224
  disabled: t12,
@@ -220,21 +227,21 @@ function AutocompleteMenu(props) {
220
227
  activeDescendantFocus: inputRef,
221
228
  onActiveDescendantChanged: t13
222
229
  };
223
- $[44] = inputRef;
224
- $[45] = t12;
225
- $[46] = t13;
226
- $[47] = t14;
227
- } else t14 = $[47];
230
+ $[47] = inputRef;
231
+ $[48] = t12;
232
+ $[49] = t13;
233
+ $[50] = t14;
234
+ } else t14 = $[50];
228
235
  let t15;
229
- if ($[48] !== loading) {
236
+ if ($[51] !== loading) {
230
237
  t15 = [loading];
231
- $[48] = loading;
232
- $[49] = t15;
233
- } else t15 = $[49];
238
+ $[51] = loading;
239
+ $[52] = t15;
240
+ } else t15 = $[52];
234
241
  useFocusZone(t14, t15);
235
242
  let t16;
236
243
  let t17;
237
- if ($[50] !== deferredInputValue || $[51] !== highlightedItem || $[52] !== selectedItemIds || $[53] !== setAutocompleteSuggestion) {
244
+ if ($[53] !== deferredInputValue || $[54] !== highlightedItem || $[55] !== selectedItemIds || $[56] !== setAutocompleteSuggestion) {
238
245
  t16 = () => {
239
246
  var _highlightedItem$text;
240
247
  if (highlightedItem !== null && highlightedItem !== void 0 && (_highlightedItem$text = highlightedItem.text) !== null && _highlightedItem$text !== void 0 && _highlightedItem$text.startsWith(deferredInputValue) && !selectedItemIds.includes(highlightedItem.id)) setAutocompleteSuggestion(highlightedItem.text);
@@ -246,20 +253,20 @@ function AutocompleteMenu(props) {
246
253
  selectedItemIds,
247
254
  setAutocompleteSuggestion
248
255
  ];
249
- $[50] = deferredInputValue;
250
- $[51] = highlightedItem;
251
- $[52] = selectedItemIds;
252
- $[53] = setAutocompleteSuggestion;
253
- $[54] = t16;
254
- $[55] = t17;
256
+ $[53] = deferredInputValue;
257
+ $[54] = highlightedItem;
258
+ $[55] = selectedItemIds;
259
+ $[56] = setAutocompleteSuggestion;
260
+ $[57] = t16;
261
+ $[58] = t17;
255
262
  } else {
256
- t16 = $[54];
257
- t17 = $[55];
263
+ t16 = $[57];
264
+ t17 = $[58];
258
265
  }
259
266
  useEffect(t16, t17);
260
267
  let t18;
261
268
  let t19;
262
- if ($[56] !== onOpenChange || $[57] !== selectedItemIds || $[58] !== showMenu || $[59] !== sortOnCloseFn || $[60] !== sortedItemIds) {
269
+ if ($[59] !== onOpenChange || $[60] !== selectedItemIds || $[61] !== showMenu || $[62] !== sortOnCloseFn || $[63] !== sortedItemIds) {
263
270
  t18 = () => {
264
271
  const itemIdSortResult = [...sortedItemIds].sort(sortOnCloseFn ? sortOnCloseFn : getDefaultSortFn((itemId_0) => isItemSelected(itemId_0, selectedItemIds)));
265
272
  const sortResultMatchesState = itemIdSortResult.length === sortedItemIds.length && itemIdSortResult.every((element_0, index) => element_0 === sortedItemIds[index]);
@@ -273,101 +280,99 @@ function AutocompleteMenu(props) {
273
280
  sortOnCloseFn,
274
281
  sortedItemIds
275
282
  ];
276
- $[56] = onOpenChange;
277
- $[57] = selectedItemIds;
278
- $[58] = showMenu;
279
- $[59] = sortOnCloseFn;
280
- $[60] = sortedItemIds;
281
- $[61] = t18;
282
- $[62] = t19;
283
+ $[59] = onOpenChange;
284
+ $[60] = selectedItemIds;
285
+ $[61] = showMenu;
286
+ $[62] = sortOnCloseFn;
287
+ $[63] = sortedItemIds;
288
+ $[64] = t18;
289
+ $[65] = t19;
283
290
  } else {
284
- t18 = $[61];
285
- t19 = $[62];
291
+ t18 = $[64];
292
+ t19 = $[65];
286
293
  }
287
294
  useEffect(t18, t19);
288
295
  let t20;
289
- if ($[63] !== selectedItemIds.length || $[64] !== setSelectedItemLength) {
296
+ if ($[66] !== selectedItemIds.length || $[67] !== setSelectedItemLength) {
290
297
  t20 = () => {
291
298
  if (selectedItemIds.length) setSelectedItemLength(selectedItemIds.length);
292
299
  };
293
- $[63] = selectedItemIds.length;
294
- $[64] = setSelectedItemLength;
295
- $[65] = t20;
296
- } else t20 = $[65];
300
+ $[66] = selectedItemIds.length;
301
+ $[67] = setSelectedItemLength;
302
+ $[68] = t20;
303
+ } else t20 = $[68];
297
304
  let t21;
298
- if ($[66] !== selectedItemIds || $[67] !== setSelectedItemLength) {
305
+ if ($[69] !== selectedItemIds || $[70] !== setSelectedItemLength) {
299
306
  t21 = [selectedItemIds, setSelectedItemLength];
300
- $[66] = selectedItemIds;
301
- $[67] = setSelectedItemLength;
302
- $[68] = t21;
303
- } else t21 = $[68];
307
+ $[69] = selectedItemIds;
308
+ $[70] = setSelectedItemLength;
309
+ $[71] = t21;
310
+ } else t21 = $[71];
304
311
  useEffect(t20, t21);
305
312
  if (selectionVariant === "single" && selectedItemIds.length > 1) throw new Error("Autocomplete: selectionVariant \"single\" cannot be used with multiple selected items");
306
313
  const t22 = !showMenu;
307
314
  let t23;
308
- if ($[69] !== allItemsToRender || $[70] !== ariaLabelledBy || $[71] !== emptyStateText || $[72] !== id || $[73] !== loading || $[74] !== selectionVariant) {
309
- t23 = loading ? /*#__PURE__*/ jsx("div", {
315
+ if ($[72] !== allItemsToRender || $[73] !== ariaLabelledBy || $[74] !== emptyStateText || $[75] !== id || $[76] !== loading || $[77] !== selectionVariant) {
316
+ t23 = loading ? /* @__PURE__ */ jsx("div", {
310
317
  className: AutocompleteMenu_module_css_default.SpinnerWrapper,
311
- children: /*#__PURE__*/ jsx(Spinner, {})
312
- }) : /*#__PURE__*/ jsx("div", {
318
+ children: /* @__PURE__ */ jsx(Spinner, {})
319
+ }) : /* @__PURE__ */ jsx("div", {
313
320
  ref: listContainerRef,
314
- children: allItemsToRender.length ? /*#__PURE__*/ jsx(ActionList, {
321
+ children: allItemsToRender.length ? /* @__PURE__ */ jsx(ActionList, {
315
322
  "data-component": "Autocomplete.Menu",
316
323
  selectionVariant,
317
324
  role: "listbox",
318
325
  id: `${id}-listbox`,
319
326
  "aria-labelledby": ariaLabelledBy,
320
327
  children: allItemsToRender.map(_temp5)
321
- }) : emptyStateText !== false && emptyStateText !== null ? /*#__PURE__*/ jsx("div", {
328
+ }) : emptyStateText !== false && emptyStateText !== null ? /* @__PURE__ */ jsx("div", {
322
329
  className: AutocompleteMenu_module_css_default.EmptyStateWrapper,
323
330
  children: emptyStateText
324
331
  }) : null
325
332
  });
326
- $[69] = allItemsToRender;
327
- $[70] = ariaLabelledBy;
328
- $[71] = emptyStateText;
329
- $[72] = id;
330
- $[73] = loading;
331
- $[74] = selectionVariant;
332
- $[75] = t23;
333
- } else t23 = $[75];
333
+ $[72] = allItemsToRender;
334
+ $[73] = ariaLabelledBy;
335
+ $[74] = emptyStateText;
336
+ $[75] = id;
337
+ $[76] = loading;
338
+ $[77] = selectionVariant;
339
+ $[78] = t23;
340
+ } else t23 = $[78];
334
341
  let t24;
335
- if ($[76] !== showMenu || $[77] !== t22 || $[78] !== t23) {
336
- t24 = /*#__PURE__*/ jsx(VisuallyHidden, {
342
+ if ($[79] !== showMenu || $[80] !== t22 || $[81] !== t23) {
343
+ t24 = /* @__PURE__ */ jsx(VisuallyHidden, {
337
344
  isVisible: showMenu,
338
345
  hidden: t22,
339
346
  children: t23
340
347
  });
341
- $[76] = showMenu;
342
- $[77] = t22;
343
- $[78] = t23;
344
- $[79] = t24;
345
- } else t24 = $[79];
348
+ $[79] = showMenu;
349
+ $[80] = t22;
350
+ $[81] = t23;
351
+ $[82] = t24;
352
+ } else t24 = $[82];
346
353
  return t24;
347
354
  }
348
355
  function _temp5(item_2) {
349
356
  const { id: id_0, onAction, children, text, leadingVisual: LeadingVisual, trailingVisual: TrailingVisual, key, role, ...itemProps } = item_2;
350
- return /*#__PURE__*/ jsxs(ActionList.Item, {
357
+ return /* @__PURE__ */ jsxs(ActionList.Item, {
351
358
  onSelect: () => onAction(item_2),
352
359
  ...itemProps,
353
360
  id: id_0,
354
361
  "data-id": id_0,
355
362
  role,
356
363
  children: [
357
- LeadingVisual && /*#__PURE__*/ jsx(ActionList.LeadingVisual, { children: isElement(LeadingVisual) ? LeadingVisual : /*#__PURE__*/ jsx(LeadingVisual, {}) }),
364
+ LeadingVisual && /* @__PURE__ */ jsx(ActionList.LeadingVisual, { children: isElement(LeadingVisual) ? LeadingVisual : /* @__PURE__ */ jsx(LeadingVisual, {}) }),
358
365
  children !== null && children !== void 0 ? children : text,
359
- TrailingVisual && /*#__PURE__*/ jsx(ActionList.TrailingVisual, { children: isElement(TrailingVisual) ? TrailingVisual : /*#__PURE__*/ jsx(TrailingVisual, {}) })
366
+ TrailingVisual && /* @__PURE__ */ jsx(ActionList.TrailingVisual, { children: isElement(TrailingVisual) ? TrailingVisual : /* @__PURE__ */ jsx(TrailingVisual, {}) })
360
367
  ]
361
368
  }, key !== null && key !== void 0 ? key : id_0);
362
369
  }
363
- _temp5.displayName = "_temp5";
364
370
  function _temp4(element) {
365
371
  return !(element instanceof HTMLInputElement);
366
372
  }
367
373
  function _temp3() {
368
- return /*#__PURE__*/ jsx(PlusIcon, {});
374
+ return /* @__PURE__ */ jsx(PlusIcon, {});
369
375
  }
370
- _temp3.displayName = "_temp3";
371
376
  function _temp2(acc, curr, i) {
372
377
  acc[curr] = i;
373
378
  return acc;
@@ -97,7 +97,7 @@ function AutocompleteOverlay(t0) {
97
97
  if (typeof window === "undefined") return null;
98
98
  let t8;
99
99
  if ($[19] !== children || $[20] !== className || $[21] !== closeOptionList || $[22] !== inputRef || $[23] !== mergedScrollContainerRef || $[24] !== overlayProps || $[25] !== (position === null || position === void 0 ? void 0 : position.left) || $[26] !== (position === null || position === void 0 ? void 0 : position.top) || $[27] !== showMenu) {
100
- t8 = showMenu ? /*#__PURE__*/ jsx(Overlay, {
100
+ t8 = showMenu ? /* @__PURE__ */ jsx(Overlay, {
101
101
  returnFocusRef: inputRef,
102
102
  preventFocusOnOpen: true,
103
103
  onClickOutside: closeOptionList,
@@ -109,7 +109,7 @@ function AutocompleteOverlay(t0) {
109
109
  ...overlayProps,
110
110
  "data-component": "Autocomplete.Overlay",
111
111
  children
112
- }) : /*#__PURE__*/ jsx(VisuallyHidden, {
112
+ }) : /* @__PURE__ */ jsx(VisuallyHidden, {
113
113
  "aria-hidden": "true",
114
114
  children
115
115
  });
@@ -77,7 +77,7 @@ const Avatar = /*#__PURE__*/ React.forwardRef(function Avatar(t0, ref) {
77
77
  } else t10 = $[18];
78
78
  let t11;
79
79
  if ($[19] !== alt || $[20] !== ref || $[21] !== rest || $[22] !== t10 || $[23] !== t5 || $[24] !== t6 || $[25] !== t7 || $[26] !== t8 || $[27] !== t9) {
80
- t11 = /*#__PURE__*/ jsx("img", {
80
+ t11 = /* @__PURE__ */ jsx("img", {
81
81
  "data-component": "Avatar",
82
82
  className: t5,
83
83
  ref,
@@ -29,7 +29,7 @@ const AvatarStackBody = (t0) => {
29
29
  const t3 = !hasInteractiveChildren && !disableExpand ? 0 : void 0;
30
30
  let t4;
31
31
  if ($[2] !== children || $[3] !== stackContainer || $[4] !== t1 || $[5] !== t2 || $[6] !== t3) {
32
- t4 = /*#__PURE__*/ jsx("div", {
32
+ t4 = /* @__PURE__ */ jsx("div", {
33
33
  "data-component": "AvatarStack.Body",
34
34
  "data-disable-expand": t1,
35
35
  className: t2,
@@ -175,7 +175,7 @@ const AvatarStack = (t0) => {
175
175
  } else t16 = $[22];
176
176
  let t17;
177
177
  if ($[23] !== disableExpand || $[24] !== hasInteractiveChildren || $[25] !== t16) {
178
- t17 = /*#__PURE__*/ jsxs(AvatarStackBody, {
178
+ t17 = /* @__PURE__ */ jsxs(AvatarStackBody, {
179
179
  disableExpand,
180
180
  hasInteractiveChildren,
181
181
  stackContainer,
@@ -188,7 +188,7 @@ const AvatarStack = (t0) => {
188
188
  } else t17 = $[26];
189
189
  let t18;
190
190
  if ($[27] !== shape || $[28] !== t13 || $[29] !== t15 || $[30] !== t17 || $[31] !== t7 || $[32] !== t8 || $[33] !== t9 || $[34] !== variant) {
191
- t18 = /*#__PURE__*/ jsx("span", {
191
+ t18 = /* @__PURE__ */ jsx("span", {
192
192
  "data-component": "AvatarStack",
193
193
  "data-variant": variant,
194
194
  "data-shape": shape,