@primer/react 38.40.2-rc.e319faf65 → 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 (162) hide show
  1. package/CHANGELOG.md +5 -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.js +8 -9
  29. package/dist/Button/IconButton.js +3 -3
  30. package/dist/Button/LinkButton.js +1 -1
  31. package/dist/ButtonGroup/ButtonGroup.js +2 -3
  32. package/dist/Card/Card.js +16 -16
  33. package/dist/Checkbox/Checkbox.js +1 -1
  34. package/dist/CheckboxGroup/CheckboxGroup.js +2 -2
  35. package/dist/CircleBadge/CircleBadge.js +2 -2
  36. package/dist/ConfirmationDialog/ConfirmationDialog.js +1 -5
  37. package/dist/CounterLabel/CounterLabel.js +2 -2
  38. package/dist/DataTable/DataTable.js +7 -8
  39. package/dist/DataTable/ErrorDialog.js +1 -1
  40. package/dist/DataTable/Pagination.js +23 -23
  41. package/dist/DataTable/Table.js +25 -27
  42. package/dist/DataTable/TableGroup.js +10 -10
  43. package/dist/Details/Details.js +2 -2
  44. package/dist/Dialog/Dialog.js +20 -23
  45. package/dist/FeatureFlags/FeatureFlags.js +1 -1
  46. package/dist/FilteredActionList/FilteredActionList.js +18 -19
  47. package/dist/FilteredActionList/FilteredActionListInput.js +2 -2
  48. package/dist/FilteredActionList/FilteredActionListLoaders.js +10 -11
  49. package/dist/Flash/Flash.js +1 -4
  50. package/dist/FormControl/FormControl.js +8 -8
  51. package/dist/FormControl/FormControlCaption.js +1 -1
  52. package/dist/FormControl/FormControlLabel.js +1 -1
  53. package/dist/FormControl/FormControlLeadingVisual.js +1 -1
  54. package/dist/FormControl/_FormControlValidation.js +1 -1
  55. package/dist/Header/Header.js +3 -3
  56. package/dist/Heading/Heading.js +1 -1
  57. package/dist/Hidden/Hidden.js +1 -1
  58. package/dist/InlineMessage/InlineMessage.js +11 -11
  59. package/dist/KeybindingHint/KeybindingHint.js +3 -3
  60. package/dist/KeybindingHint/components/Chord.js +3 -3
  61. package/dist/KeybindingHint/components/Key.js +3 -3
  62. package/dist/KeybindingHint/components/Sequence.js +1 -1
  63. package/dist/KeybindingHint/platform.js +0 -8
  64. package/dist/Label/Label.js +1 -1
  65. package/dist/LabelGroup/LabelGroup.js +18 -18
  66. package/dist/Link/Link.js +1 -1
  67. package/dist/NavList/NavList.js +24 -24
  68. package/dist/Octicon/Octicon.js +1 -4
  69. package/dist/Overlay/Overlay.js +3 -3
  70. package/dist/PageHeader/PageHeader.js +21 -21
  71. package/dist/PageLayout/DragHandle.js +1 -1
  72. package/dist/PageLayout/PageLayout.js +26 -26
  73. package/dist/PageLayout/usePaneWidth.js +0 -5
  74. package/dist/Pagehead/Pagehead.js +1 -1
  75. package/dist/Pagination/Pagination.js +9 -10
  76. package/dist/Popover/Popover.js +3 -3
  77. package/dist/ProgressBar/ProgressBar.js +3 -3
  78. package/dist/Radio/Radio.js +1 -1
  79. package/dist/RadioGroup/RadioGroup.js +2 -2
  80. package/dist/RelativeTime/RelativeTime.js +1 -1
  81. package/dist/ScrollableRegion/ScrollableRegion.js +1 -1
  82. package/dist/SegmentedControl/SegmentedControl.js +13 -13
  83. package/dist/SegmentedControl/SegmentedControlAction.js +6 -6
  84. package/dist/SegmentedControl/SegmentedControlButton.js +8 -8
  85. package/dist/SegmentedControl/SegmentedControlDivider.js +1 -1
  86. package/dist/SegmentedControl/SegmentedControlIconButton.js +5 -5
  87. package/dist/Select/Select.js +9 -9
  88. package/dist/SelectPanel/SelectPanel.js +24 -27
  89. package/dist/SelectPanel/SelectPanelMessage.js +5 -5
  90. package/dist/SideNav.js +2 -2
  91. package/dist/Skeleton/SkeletonBox.js +1 -1
  92. package/dist/SkeletonAvatar/SkeletonAvatar.js +1 -1
  93. package/dist/SkeletonText/SkeletonText.js +3 -3
  94. package/dist/Spinner/Spinner.js +5 -5
  95. package/dist/SplitPageLayout/SplitPageLayout.js +6 -6
  96. package/dist/Stack/Stack.js +2 -2
  97. package/dist/StateLabel/StateLabel.js +2 -2
  98. package/dist/SubNav/SubNav.js +5 -5
  99. package/dist/TabNav/TabNav.js +4 -10
  100. package/dist/Text/Text.js +1 -1
  101. package/dist/TextInput/TextInput.js +13 -13
  102. package/dist/TextInputWithTokens/TextInputWithTokens.js +12 -15
  103. package/dist/Textarea/Textarea.js +7 -7
  104. package/dist/ThemeProvider.js +1 -2
  105. package/dist/Timeline/Timeline.js +11 -14
  106. package/dist/ToggleSwitch/ToggleSwitch.js +18 -18
  107. package/dist/Token/IssueLabelToken.js +3 -3
  108. package/dist/Token/Token.js +7 -7
  109. package/dist/Token/TokenBase.js +1 -1
  110. package/dist/Token/_RemoveTokenButton.js +4 -5
  111. package/dist/Token/_TokenTextContainer.js +1 -1
  112. package/dist/Tooltip/Tooltip.js +2 -5
  113. package/dist/TooltipV2/Tooltip.js +7 -7
  114. package/dist/TopicTag/TopicTag.js +1 -1
  115. package/dist/TopicTag/TopicTagGroup.js +1 -1
  116. package/dist/TreeView/TreeView.js +52 -59
  117. package/dist/TreeView/useTypeahead.js +3 -3
  118. package/dist/Truncate/Truncate.js +1 -2
  119. package/dist/UnderlineNav/UnderlineNav.js +18 -18
  120. package/dist/UnderlineNav/UnderlineNavItem.js +2 -2
  121. package/dist/VisuallyHidden/VisuallyHidden.js +1 -1
  122. package/dist/_VisuallyHidden.js +1 -1
  123. package/dist/deprecated/ActionList/Divider.js +1 -1
  124. package/dist/deprecated/ActionList/Group.js +2 -5
  125. package/dist/deprecated/ActionList/Header.js +2 -5
  126. package/dist/deprecated/ActionList/Item.js +17 -20
  127. package/dist/deprecated/ActionList/List.js +4 -13
  128. package/dist/deprecated/ActionMenu.js +4 -6
  129. package/dist/deprecated/DialogV1/Dialog.js +5 -5
  130. package/dist/deprecated/FilteredSearch/FilteredSearch.js +1 -1
  131. package/dist/deprecated/UnderlineNav/UnderlineNav.js +4 -4
  132. package/dist/experimental/IssueLabel/IssueLabel.js +4 -4
  133. package/dist/experimental/SelectPanel2/SelectPanel.js +42 -49
  134. package/dist/experimental/Tabs/Tabs.js +1 -1
  135. package/dist/experimental/UnderlinePanels/UnderlinePanels.js +6 -9
  136. package/dist/hooks/useMergedRefs.js +0 -12
  137. package/dist/hooks/useResponsiveValue.js +0 -5
  138. package/dist/hooks/useSlots.js +0 -48
  139. package/dist/internal/components/ButtonReset.js +1 -1
  140. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js +9 -9
  141. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupCaption.js +1 -1
  142. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.js +4 -4
  143. package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.js +1 -1
  144. package/dist/internal/components/ConditionalWrapper.js +2 -2
  145. package/dist/internal/components/InputLabel.js +3 -3
  146. package/dist/internal/components/InputValidation.js +4 -4
  147. package/dist/internal/components/OverflowObserverProvider.js +1 -1
  148. package/dist/internal/components/TextInputInnerAction.js +6 -6
  149. package/dist/internal/components/TextInputInnerVisualSlot.js +5 -5
  150. package/dist/internal/components/TextInputWrapper.js +2 -2
  151. package/dist/internal/components/ThemeProviderBase.js +3 -3
  152. package/dist/internal/components/UnderlineTabbedInterface.js +11 -11
  153. package/dist/internal/components/UnstyledTextInput.js +1 -1
  154. package/dist/internal/components/ValidationAnimationContainer.js +2 -2
  155. package/dist/internal/hooks/useOverflowObserver.js +1 -2
  156. package/dist/live-region/Announce.js +1 -1
  157. package/dist/live-region/AriaAlert.js +1 -1
  158. package/dist/live-region/AriaStatus.js +1 -1
  159. package/dist/next/ThemeProvider.js +1 -1
  160. package/dist/utils/descendant-registry.js +1 -7
  161. package/dist/utils/modern-polymorphic.js +0 -10
  162. package/package.json +3 -3
@@ -13,11 +13,11 @@ import { AlertIcon, CheckCircleIcon, InfoIcon, StopIcon, XIcon } from "@primer/o
13
13
  //#region src/Banner/Banner.tsx
14
14
  const BannerContext = /*#__PURE__*/ React.createContext(void 0);
15
15
  const iconForVariant = {
16
- critical: /*#__PURE__*/ jsx(StopIcon, {}),
17
- info: /*#__PURE__*/ jsx(InfoIcon, {}),
18
- success: /*#__PURE__*/ jsx(CheckCircleIcon, {}),
19
- upsell: /*#__PURE__*/ jsx(InfoIcon, {}),
20
- warning: /*#__PURE__*/ jsx(AlertIcon, {})
16
+ critical: /* @__PURE__ */ jsx(StopIcon, {}),
17
+ info: /* @__PURE__ */ jsx(InfoIcon, {}),
18
+ success: /* @__PURE__ */ jsx(CheckCircleIcon, {}),
19
+ upsell: /* @__PURE__ */ jsx(InfoIcon, {}),
20
+ warning: /* @__PURE__ */ jsx(AlertIcon, {})
21
21
  };
22
22
  const Banner = /*#__PURE__*/ React.forwardRef(function Banner(t0, forwardRef) {
23
23
  var _leadingVisual, _labelledBy;
@@ -125,7 +125,7 @@ const Banner = /*#__PURE__*/ React.forwardRef(function Banner(t0, forwardRef) {
125
125
  const t15 = visual && supportsCustomIcon ? visual : iconForVariant[variant];
126
126
  let t16;
127
127
  if ($[24] !== t15) {
128
- t16 = /*#__PURE__*/ jsx("div", {
128
+ t16 = /* @__PURE__ */ jsx("div", {
129
129
  "data-component": "Banner.Icon",
130
130
  className: Banner_module_css_default.BannerIcon,
131
131
  children: t15
@@ -135,20 +135,20 @@ const Banner = /*#__PURE__*/ React.forwardRef(function Banner(t0, forwardRef) {
135
135
  } else t16 = $[25];
136
136
  let t17;
137
137
  if ($[26] !== hideTitle || $[27] !== title) {
138
- t17 = title ? hideTitle ? /*#__PURE__*/ jsx(VisuallyHidden, { children: /*#__PURE__*/ jsx(BannerTitle, { children: title }) }) : /*#__PURE__*/ jsx(BannerTitle, { children: title }) : null;
138
+ t17 = title ? hideTitle ? /* @__PURE__ */ jsx(VisuallyHidden, { children: /* @__PURE__ */ jsx(BannerTitle, { children: title }) }) : /* @__PURE__ */ jsx(BannerTitle, { children: title }) : null;
139
139
  $[26] = hideTitle;
140
140
  $[27] = title;
141
141
  $[28] = t17;
142
142
  } else t17 = $[28];
143
143
  let t18;
144
144
  if ($[29] !== description) {
145
- t18 = description ? /*#__PURE__*/ jsx(BannerDescription, { children: description }) : null;
145
+ t18 = description ? /* @__PURE__ */ jsx(BannerDescription, { children: description }) : null;
146
146
  $[29] = description;
147
147
  $[30] = t18;
148
148
  } else t18 = $[30];
149
149
  let t19;
150
150
  if ($[31] !== children || $[32] !== t17 || $[33] !== t18) {
151
- t19 = /*#__PURE__*/ jsxs("div", {
151
+ t19 = /* @__PURE__ */ jsxs("div", {
152
152
  "data-component": "Banner.Content",
153
153
  className: Banner_module_css_default.BannerContent,
154
154
  children: [
@@ -164,7 +164,7 @@ const Banner = /*#__PURE__*/ React.forwardRef(function Banner(t0, forwardRef) {
164
164
  } else t19 = $[34];
165
165
  let t20;
166
166
  if ($[35] !== hasActions || $[36] !== primaryAction || $[37] !== secondaryAction) {
167
- t20 = hasActions ? /*#__PURE__*/ jsx(BannerActions, {
167
+ t20 = hasActions ? /* @__PURE__ */ jsx(BannerActions, {
168
168
  primaryAction,
169
169
  secondaryAction
170
170
  }) : null;
@@ -175,7 +175,7 @@ const Banner = /*#__PURE__*/ React.forwardRef(function Banner(t0, forwardRef) {
175
175
  } else t20 = $[38];
176
176
  let t21;
177
177
  if ($[39] !== t19 || $[40] !== t20) {
178
- t21 = /*#__PURE__*/ jsxs("div", {
178
+ t21 = /* @__PURE__ */ jsxs("div", {
179
179
  className: Banner_module_css_default.BannerContainer,
180
180
  children: [t19, t20]
181
181
  });
@@ -185,7 +185,7 @@ const Banner = /*#__PURE__*/ React.forwardRef(function Banner(t0, forwardRef) {
185
185
  } else t21 = $[41];
186
186
  let t22;
187
187
  if ($[42] !== dismissible || $[43] !== onDismiss) {
188
- t22 = dismissible ? /*#__PURE__*/ jsx(IconButton, {
188
+ t22 = dismissible ? /* @__PURE__ */ jsx(IconButton, {
189
189
  "aria-label": "Dismiss banner",
190
190
  onClick: onDismiss,
191
191
  className: Banner_module_css_default.BannerDismiss,
@@ -198,7 +198,7 @@ const Banner = /*#__PURE__*/ React.forwardRef(function Banner(t0, forwardRef) {
198
198
  } else t22 = $[44];
199
199
  let t23;
200
200
  if ($[45] !== actionsLayout || $[46] !== ref || $[47] !== rest || $[48] !== t10 || $[49] !== t11 || $[50] !== t12 || $[51] !== t13 || $[52] !== t14 || $[53] !== t16 || $[54] !== t21 || $[55] !== t22 || $[56] !== t7 || $[57] !== t8 || $[58] !== t9 || $[59] !== variant) {
201
- t23 = /*#__PURE__*/ jsxs("section", {
201
+ t23 = /* @__PURE__ */ jsxs("section", {
202
202
  "data-component": "Banner",
203
203
  ...rest,
204
204
  "aria-labelledby": t7,
@@ -238,7 +238,7 @@ const Banner = /*#__PURE__*/ React.forwardRef(function Banner(t0, forwardRef) {
238
238
  } else t23 = $[60];
239
239
  let t24;
240
240
  if ($[61] !== t23 || $[62] !== t6) {
241
- t24 = /*#__PURE__*/ jsx(BannerContext.Provider, {
241
+ t24 = /* @__PURE__ */ jsx(BannerContext.Provider, {
242
242
  value: t6,
243
243
  children: t23
244
244
  });
@@ -282,7 +282,7 @@ function BannerTitle(props) {
282
282
  } else t1 = $[7];
283
283
  let t2;
284
284
  if ($[8] !== Heading || $[9] !== children || $[10] !== rest || $[11] !== t1 || $[12] !== titleId) {
285
- t2 = /*#__PURE__*/ jsx(Heading, {
285
+ t2 = /* @__PURE__ */ jsx(Heading, {
286
286
  ...rest,
287
287
  id: titleId,
288
288
  className: t1,
@@ -323,7 +323,7 @@ function BannerDescription(t0) {
323
323
  } else t1 = $[5];
324
324
  let t2;
325
325
  if ($[6] !== children || $[7] !== rest || $[8] !== t1) {
326
- t2 = /*#__PURE__*/ jsx("div", {
326
+ t2 = /* @__PURE__ */ jsx("div", {
327
327
  ...rest,
328
328
  className: t1,
329
329
  "data-component": "Banner.Description",
@@ -343,7 +343,7 @@ function BannerActions(t0) {
343
343
  const t2 = primaryAction !== null && primaryAction !== void 0 ? primaryAction : null;
344
344
  let t3;
345
345
  if ($[0] !== t1 || $[1] !== t2) {
346
- t3 = /*#__PURE__*/ jsxs("div", {
346
+ t3 = /* @__PURE__ */ jsxs("div", {
347
347
  className: Banner_module_css_default.BannerActionsContainer,
348
348
  "data-primary-action": "trailing",
349
349
  children: [t1, t2]
@@ -356,7 +356,7 @@ function BannerActions(t0) {
356
356
  const t5 = secondaryAction !== null && secondaryAction !== void 0 ? secondaryAction : null;
357
357
  let t6;
358
358
  if ($[3] !== t4 || $[4] !== t5) {
359
- t6 = /*#__PURE__*/ jsxs("div", {
359
+ t6 = /* @__PURE__ */ jsxs("div", {
360
360
  className: Banner_module_css_default.BannerActionsContainer,
361
361
  "data-primary-action": "leading",
362
362
  children: [t4, t5]
@@ -367,7 +367,7 @@ function BannerActions(t0) {
367
367
  } else t6 = $[5];
368
368
  let t7;
369
369
  if ($[6] !== t3 || $[7] !== t6) {
370
- t7 = /*#__PURE__*/ jsxs("div", {
370
+ t7 = /* @__PURE__ */ jsxs("div", {
371
371
  className: Banner_module_css_default.BannerActions,
372
372
  "data-component": "Banner.Actions",
373
373
  children: [t3, t6]
@@ -402,7 +402,7 @@ const BannerPrimaryAction = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
402
402
  } else t1 = $[5];
403
403
  let t2;
404
404
  if ($[6] !== children || $[7] !== forwardedRef || $[8] !== rest || $[9] !== t1) {
405
- t2 = /*#__PURE__*/ jsx(ButtonComponent, {
405
+ t2 = /* @__PURE__ */ jsx(ButtonComponent, {
406
406
  "data-component": "Banner.PrimaryAction",
407
407
  ref: forwardedRef,
408
408
  className: t1,
@@ -443,7 +443,7 @@ const BannerSecondaryAction = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
443
443
  } else t1 = $[5];
444
444
  let t2;
445
445
  if ($[6] !== children || $[7] !== forwardedRef || $[8] !== rest || $[9] !== t1) {
446
- t2 = /*#__PURE__*/ jsx(ButtonComponent, {
446
+ t2 = /* @__PURE__ */ jsx(ButtonComponent, {
447
447
  "data-component": "Banner.SecondaryAction",
448
448
  ref: forwardedRef,
449
449
  className: t1,
@@ -56,7 +56,7 @@ function BaseStyles(t0) {
56
56
  } else t4 = $[13];
57
57
  let t5;
58
58
  if ($[14] !== Component || $[15] !== children || $[16] !== newClassName || $[17] !== rest || $[18] !== t4) {
59
- t5 = /*#__PURE__*/ jsx(Component, {
59
+ t5 = /* @__PURE__ */ jsx(Component, {
60
60
  "data-component": "BaseStyles",
61
61
  className: newClassName,
62
62
  "data-portal-root": true,
@@ -3,7 +3,6 @@ import { ButtonComponent } from "../Button/Button.js";
3
3
  import Link from "../Link/Link.js";
4
4
  import { Provider, useBlankslate } from "./BlankslateContext.js";
5
5
  import Blankslate_module_css_default from "./Blankslate.module.css.js";
6
- import "react";
7
6
  import { jsx } from "react/jsx-runtime";
8
7
  import { clsx } from "clsx";
9
8
  //#region src/Blankslate/Blankslate.tsx
@@ -54,7 +53,7 @@ function Blankslate(t0) {
54
53
  const t6 = spacious ? "" : void 0;
55
54
  let t7;
56
55
  if ($[12] !== children || $[13] !== size || $[14] !== t3 || $[15] !== t4 || $[16] !== t5 || $[17] !== t6) {
57
- t7 = /*#__PURE__*/ jsx("div", {
56
+ t7 = /* @__PURE__ */ jsx("div", {
58
57
  className: t3,
59
58
  "data-component": "Blankslate",
60
59
  "data-border": t4,
@@ -73,7 +72,7 @@ function Blankslate(t0) {
73
72
  } else t7 = $[18];
74
73
  let t8;
75
74
  if ($[19] !== rest || $[20] !== t7) {
76
- t8 = /*#__PURE__*/ jsx("div", {
75
+ t8 = /* @__PURE__ */ jsx("div", {
77
76
  ...rest,
78
77
  className: Blankslate_module_css_default.Container,
79
78
  children: t7
@@ -84,7 +83,7 @@ function Blankslate(t0) {
84
83
  } else t8 = $[21];
85
84
  let t9;
86
85
  if ($[22] !== t8 || $[23] !== value) {
87
- t9 = /*#__PURE__*/ jsx(Provider, {
86
+ t9 = /* @__PURE__ */ jsx(Provider, {
88
87
  value,
89
88
  children: t8
90
89
  });
@@ -118,7 +117,7 @@ function Visual(t0) {
118
117
  } else t1 = $[5];
119
118
  let t2;
120
119
  if ($[6] !== children || $[7] !== rest || $[8] !== t1) {
121
- t2 = /*#__PURE__*/ jsx("span", {
120
+ t2 = /* @__PURE__ */ jsx("span", {
122
121
  ...rest,
123
122
  className: t1,
124
123
  "data-component": "Blankslate.Visual",
@@ -159,7 +158,7 @@ function Heading(t0) {
159
158
  } else t2 = $[6];
160
159
  let t3;
161
160
  if ($[7] !== Component || $[8] !== children || $[9] !== rest || $[10] !== t2) {
162
- t3 = /*#__PURE__*/ jsx(Component, {
161
+ t3 = /* @__PURE__ */ jsx(Component, {
163
162
  ...rest,
164
163
  className: t2,
165
164
  "data-component": "Blankslate.Heading",
@@ -197,7 +196,7 @@ function Description(t0) {
197
196
  } else t1 = $[5];
198
197
  let t2;
199
198
  if ($[6] !== children || $[7] !== rest || $[8] !== t1) {
200
- t2 = /*#__PURE__*/ jsx("p", {
199
+ t2 = /* @__PURE__ */ jsx("p", {
201
200
  ...rest,
202
201
  className: t1,
203
202
  "data-component": "Blankslate.Description",
@@ -236,10 +235,10 @@ function PrimaryAction(t0) {
236
235
  const t3 = size === "small" ? "small" : void 0;
237
236
  let t4;
238
237
  if ($[5] !== children || $[6] !== href || $[7] !== props || $[8] !== t2 || $[9] !== t3) {
239
- t4 = /*#__PURE__*/ jsx("div", {
238
+ t4 = /* @__PURE__ */ jsx("div", {
240
239
  className: t1,
241
240
  "data-component": "Blankslate.PrimaryAction",
242
- children: /*#__PURE__*/ jsx(ButtonComponent, {
241
+ children: /* @__PURE__ */ jsx(ButtonComponent, {
243
242
  ...props,
244
243
  as: t2,
245
244
  href,
@@ -267,10 +266,10 @@ function SecondaryAction(t0) {
267
266
  } else t1 = $[0];
268
267
  let t2;
269
268
  if ($[1] !== children || $[2] !== href) {
270
- t2 = /*#__PURE__*/ jsx("div", {
269
+ t2 = /* @__PURE__ */ jsx("div", {
271
270
  className: t1,
272
271
  "data-component": "Blankslate.SecondaryAction",
273
- children: /*#__PURE__*/ jsx(Link, {
272
+ children: /* @__PURE__ */ jsx(Link, {
274
273
  href,
275
274
  children
276
275
  })
@@ -32,7 +32,7 @@ function BranchName(props, ref) {
32
32
  } else t1 = $[6];
33
33
  let t2;
34
34
  if ($[7] !== Component || $[8] !== children || $[9] !== ref || $[10] !== rest || $[11] !== t1) {
35
- t2 = /*#__PURE__*/ jsx(Component, {
35
+ t2 = /* @__PURE__ */ jsx(Component, {
36
36
  ...rest,
37
37
  ref,
38
38
  className: t1,
@@ -18,7 +18,7 @@ const BreadcrumbsList = (t0) => {
18
18
  const { children } = t0;
19
19
  let t1;
20
20
  if ($[0] !== children) {
21
- t1 = /*#__PURE__*/ jsx("ol", {
21
+ t1 = /* @__PURE__ */ jsx("ol", {
22
22
  className: Breadcrumbs_module_css_default.BreadcrumbsList,
23
23
  children
24
24
  });
@@ -123,7 +123,7 @@ const BreadcrumbsMenuItem = /*#__PURE__*/ React.forwardRef((t0, menuRefCallback)
123
123
  const t9 = isOpen ? "true" : "false";
124
124
  let t10;
125
125
  if ($[13] !== rest || $[14] !== t8 || $[15] !== t9) {
126
- t10 = /*#__PURE__*/ jsx(IconButton, {
126
+ t10 = /* @__PURE__ */ jsx(IconButton, {
127
127
  as: "summary",
128
128
  role: "button",
129
129
  ref: menuButtonRef,
@@ -149,17 +149,17 @@ const BreadcrumbsMenuItem = /*#__PURE__*/ React.forwardRef((t0, menuRefCallback)
149
149
  } else t11 = $[18];
150
150
  let t12;
151
151
  if ($[19] !== t11) {
152
- t12 = /*#__PURE__*/ jsx("div", {
152
+ t12 = /* @__PURE__ */ jsx("div", {
153
153
  ref: menuContainerRef,
154
154
  className: Breadcrumbs_module_css_default.MenuOverlay,
155
- children: /*#__PURE__*/ jsx(ActionList, { children: t11 })
155
+ children: /* @__PURE__ */ jsx(ActionList, { children: t11 })
156
156
  });
157
157
  $[19] = t11;
158
158
  $[20] = t12;
159
159
  } else t12 = $[20];
160
160
  let t13;
161
161
  if ($[21] !== detailsRefCallback || $[22] !== t10 || $[23] !== t12) {
162
- t13 = /*#__PURE__*/ jsxs(Details, {
162
+ t13 = /* @__PURE__ */ jsxs(Details, {
163
163
  ref: detailsRefCallback,
164
164
  className: Breadcrumbs_module_css_default.MenuDetails,
165
165
  "data-component": "Breadcrumbs.MenuItem",
@@ -339,7 +339,7 @@ function Breadcrumbs(t0) {
339
339
  const t11 = `${effectiveMenuItems.length} more breadcrumb items`;
340
340
  let t12;
341
341
  if ($[29] !== effectiveMenuItems || $[30] !== t11) {
342
- t12 = /*#__PURE__*/ jsx(BreadcrumbsMenuItem, {
342
+ t12 = /* @__PURE__ */ jsx(BreadcrumbsMenuItem, {
343
343
  ref: measureMenuButton,
344
344
  items: effectiveMenuItems,
345
345
  "aria-label": t11
@@ -350,12 +350,12 @@ function Breadcrumbs(t0) {
350
350
  } else t12 = $[31];
351
351
  let t13;
352
352
  if ($[32] === Symbol.for("react.memo_cache_sentinel")) {
353
- t13 = /*#__PURE__*/ jsx(ItemSeparator, {});
353
+ t13 = /* @__PURE__ */ jsx(ItemSeparator, {});
354
354
  $[32] = t13;
355
355
  } else t13 = $[32];
356
356
  let t14;
357
357
  if ($[33] !== t12) {
358
- t14 = /*#__PURE__*/ jsxs("li", {
358
+ t14 = /* @__PURE__ */ jsxs("li", {
359
359
  className: Breadcrumbs_module_css_default.BreadcrumbsItem,
360
360
  "data-overflow-menu": "",
361
361
  children: [t12, t13]
@@ -367,12 +367,12 @@ function Breadcrumbs(t0) {
367
367
  const visibleElements = visibleItems.map(_temp5);
368
368
  let t15;
369
369
  if ($[35] === Symbol.for("react.memo_cache_sentinel")) {
370
- t15 = /*#__PURE__*/ jsx(ItemSeparator, {});
370
+ t15 = /* @__PURE__ */ jsx(ItemSeparator, {});
371
371
  $[35] = t15;
372
372
  } else t15 = $[35];
373
373
  let t16;
374
374
  if ($[36] !== rootItem) {
375
- t16 = /*#__PURE__*/ jsxs("li", {
375
+ t16 = /* @__PURE__ */ jsxs("li", {
376
376
  className: Breadcrumbs_module_css_default.BreadcrumbsItem,
377
377
  children: [rootItem, t15]
378
378
  }, "rootElement");
@@ -404,13 +404,13 @@ function Breadcrumbs(t0) {
404
404
  } else t11 = $[39];
405
405
  let t12;
406
406
  if ($[40] !== finalChildren) {
407
- t12 = /*#__PURE__*/ jsx(BreadcrumbsList, { children: finalChildren });
407
+ t12 = /* @__PURE__ */ jsx(BreadcrumbsList, { children: finalChildren });
408
408
  $[40] = finalChildren;
409
409
  $[41] = t12;
410
410
  } else t12 = $[41];
411
411
  let t13;
412
412
  if ($[42] !== overflow || $[43] !== style || $[44] !== t11 || $[45] !== t12 || $[46] !== variant) {
413
- t13 = /*#__PURE__*/ jsx("nav", {
413
+ t13 = /* @__PURE__ */ jsx("nav", {
414
414
  className: t11,
415
415
  "aria-label": "Breadcrumbs",
416
416
  style,
@@ -430,19 +430,17 @@ function Breadcrumbs(t0) {
430
430
  return t13;
431
431
  }
432
432
  function _temp5(child_1, index) {
433
- return /*#__PURE__*/ jsxs("li", {
433
+ return /* @__PURE__ */ jsxs("li", {
434
434
  className: Breadcrumbs_module_css_default.BreadcrumbsItem,
435
- children: [child_1, /*#__PURE__*/ jsx(ItemSeparator, {})]
435
+ children: [child_1, /* @__PURE__ */ jsx(ItemSeparator, {})]
436
436
  }, `visible + ${index}`);
437
437
  }
438
- _temp5.displayName = "_temp5";
439
438
  function _temp4(child_0) {
440
- return /*#__PURE__*/ jsx("li", {
439
+ return /* @__PURE__ */ jsx("li", {
441
440
  className: Breadcrumbs_module_css_default.ItemWrapper,
442
441
  children: child_0
443
442
  });
444
443
  }
445
- _temp4.displayName = "_temp4";
446
444
  function _temp3(child) {
447
445
  return child.offsetWidth;
448
446
  }
@@ -453,15 +451,15 @@ const ItemSeparator = () => {
453
451
  const $ = c(1);
454
452
  let t0;
455
453
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
456
- t0 = /*#__PURE__*/ jsx("span", {
454
+ t0 = /* @__PURE__ */ jsx("span", {
457
455
  className: Breadcrumbs_module_css_default.ItemSeparator,
458
- children: /*#__PURE__*/ jsx("svg", {
456
+ children: /* @__PURE__ */ jsx("svg", {
459
457
  width: "16",
460
458
  height: "16",
461
459
  viewBox: "0 0 16 16",
462
460
  xmlns: "http://www.w3.org/2000/svg",
463
461
  "aria-hidden": "true",
464
- children: /*#__PURE__*/ jsx("path", {
462
+ children: /* @__PURE__ */ jsx("path", {
465
463
  d: "M10.956 1.27994L6.06418 14.7201L5 14.7201L9.89181 1.27994L10.956 1.27994Z",
466
464
  fill: "currentcolor"
467
465
  })
@@ -473,7 +471,7 @@ const ItemSeparator = () => {
473
471
  };
474
472
  const BreadcrumbsItem = fixedForwardRef((props, ref) => {
475
473
  const { as: Component = "a", selected, className, ...rest } = props;
476
- return /*#__PURE__*/ jsx(Component, {
474
+ return /* @__PURE__ */ jsx(Component, {
477
475
  className: clsx(className, Breadcrumbs_module_css_default.Item, selected && "selected"),
478
476
  "aria-current": selected ? "page" : void 0,
479
477
  ref,
@@ -488,21 +486,14 @@ var Breadcrumbs_default = Object.assign(Breadcrumbs, { Item: BreadcrumbsItemWith
488
486
  * @deprecated Use the `Breadcrumbs` component instead (i.e. `<Breadcrumb>` → `<Breadcrumbs>`)
489
487
  */
490
488
  const Breadcrumb = Object.assign(Breadcrumbs, { Item: BreadcrumbsItem });
491
- /**
492
- * @deprecated Use the `BreadcrumbsProps` type instead
493
- */
494
- /**
495
- * @deprecated Use the `BreadcrumbsItemProps` type instead
496
- */
497
489
  function _temp(item, index) {
498
490
  const { children, selected, as: Component, ...itemProps } = item.props;
499
- return /*#__PURE__*/ jsx(ActionList.LinkItem, {
491
+ return /* @__PURE__ */ jsx(ActionList.LinkItem, {
500
492
  as: Component,
501
493
  ...itemProps,
502
494
  "aria-current": selected ? "page" : void 0,
503
495
  children
504
496
  }, index);
505
497
  }
506
- _temp.displayName = "_temp";
507
498
  //#endregion
508
499
  export { Breadcrumb, Breadcrumbs_default as default };
@@ -18,7 +18,7 @@ const ButtonComponent = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
18
18
  }
19
19
  let t1;
20
20
  if ($[3] !== children || $[4] !== forwardedRef || $[5] !== props) {
21
- t1 = /*#__PURE__*/ jsx(ButtonBase, {
21
+ t1 = /* @__PURE__ */ jsx(ButtonBase, {
22
22
  ref: forwardedRef,
23
23
  as: "button",
24
24
  type: "button",
@@ -13,12 +13,11 @@ import { clsx } from "clsx";
13
13
  import { isElement } from "react-is";
14
14
  //#region src/Button/ButtonBase.tsx
15
15
  const BUTTON_LOADING_DISABLED_STYLES_FEATURE_FLAG = "primer_react_button_loading_disabled_styles";
16
- const renderModuleVisual = (Visual, loading, visualName, counterLabel) => /*#__PURE__*/ jsx("span", {
16
+ const renderModuleVisual = (Visual, loading, visualName, counterLabel) => /* @__PURE__ */ jsx("span", {
17
17
  "data-component": visualName,
18
18
  className: clsx(!counterLabel && ButtonBase_module_css_default.Visual, visualName === "leadingVisual" && ButtonBase_module_css_default.LeadingVisual, loading ? ButtonBase_module_css_default.LoadingSpinner : ButtonBase_module_css_default.VisualWrap),
19
- children: loading ? /*#__PURE__*/ jsx(Spinner, { size: "small" }) : isElement(Visual) ? Visual : /*#__PURE__*/ jsx(Visual, {})
19
+ children: loading ? /* @__PURE__ */ jsx(Spinner, { size: "small" }) : isElement(Visual) ? Visual : /* @__PURE__ */ jsx(Visual, {})
20
20
  });
21
- renderModuleVisual.displayName = "renderModuleVisual";
22
21
  const ButtonBase = /*#__PURE__*/ forwardRef(({ children, as: Component = "button", ...props }, forwardedRef) => {
23
22
  const { leadingVisual: LeadingVisual, trailingVisual: TrailingVisual, trailingAction: TrailingAction, ["aria-describedby"]: ariaDescribedBy, ["aria-labelledby"]: ariaLabelledBy, count, icon: Icon, id, variant = "default", size = "medium", alignContent = "center", block = false, loading, loadingAnnouncement = "Loading", inactive, onClick, labelWrap, notificationIndicator, className, ...rest } = props;
24
23
  const innerRef = React.useRef(null);
@@ -32,11 +31,11 @@ const ButtonBase = /*#__PURE__*/ forwardRef(({ children, as: Component = "button
32
31
  const el = innerRef.current;
33
32
  if (el && !(el instanceof HTMLButtonElement) && !(el instanceof HTMLAnchorElement) && !(el.tagName === "SUMMARY")) console.warn("This component should be an instanceof a semantic button or anchor");
34
33
  }
35
- return /*#__PURE__*/ jsxs(ConditionalWrapper, {
34
+ return /* @__PURE__ */ jsxs(ConditionalWrapper, {
36
35
  if: typeof loading !== "undefined",
37
36
  className: block ? ButtonBase_module_css_default.ConditionalWrapper : variant === "link" ? ButtonBase_module_css_default.ConditionalWrapperLink : void 0,
38
37
  "data-loading-wrapper": true,
39
- children: [/*#__PURE__*/ jsx(Component, {
38
+ children: [/* @__PURE__ */ jsx(Component, {
40
39
  "aria-disabled": loading ? true : void 0,
41
40
  "data-component": "Button",
42
41
  ...rest,
@@ -57,27 +56,27 @@ const ButtonBase = /*#__PURE__*/ forwardRef(({ children, as: Component = "button
57
56
  "aria-labelledby": loading ? [`${uuid}-label`, ariaLabelledBy].filter((labelID) => Boolean(labelID)).join(" ") : ariaLabelledBy,
58
57
  id,
59
58
  onClick: loading ? void 0 : onClick,
60
- children: Icon ? loading ? /*#__PURE__*/ jsx(Spinner, { size: "small" }) : isElement(Icon) ? Icon : /*#__PURE__*/ jsx(Icon, {}) : /*#__PURE__*/ jsxs(Fragment$1, { children: [/*#__PURE__*/ jsxs("span", {
59
+ children: Icon ? loading ? /* @__PURE__ */ jsx(Spinner, { size: "small" }) : isElement(Icon) ? Icon : /* @__PURE__ */ jsx(Icon, {}) : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("span", {
61
60
  "data-component": "buttonContent",
62
61
  "data-align": alignContent,
63
62
  className: ButtonBase_module_css_default.ButtonContent,
64
63
  children: [
65
64
  loading && !LeadingVisual && !TrailingVisual && !TrailingAction && count === void 0 && renderModuleVisual(Spinner, loading, "loadingSpinner", false),
66
65
  LeadingVisual && renderModuleVisual(LeadingVisual, Boolean(loading), "leadingVisual", false),
67
- children && /*#__PURE__*/ jsx("span", {
66
+ children && /* @__PURE__ */ jsx("span", {
68
67
  "data-component": "text",
69
68
  className: ButtonBase_module_css_default.Label,
70
69
  id: loading ? `${uuid}-label` : void 0,
71
70
  children
72
71
  }),
73
- count !== void 0 && !TrailingVisual ? renderModuleVisual(/*#__PURE__*/ jsx(CounterLabel, {
72
+ count !== void 0 && !TrailingVisual ? renderModuleVisual(/* @__PURE__ */ jsx(CounterLabel, {
74
73
  className: ButtonBase_module_css_default.CounterLabel,
75
74
  "data-component": "ButtonCounter",
76
75
  children: count
77
76
  }), Boolean(loading) && !LeadingVisual, "trailingVisual", true) : TrailingVisual ? renderModuleVisual(TrailingVisual, Boolean(loading) && !LeadingVisual, "trailingVisual", false) : null
78
77
  ]
79
78
  }), TrailingAction && renderModuleVisual(TrailingAction, Boolean(loading) && !LeadingVisual && !TrailingVisual, "trailingAction", false)] })
80
- }), loading && /*#__PURE__*/ jsx(VisuallyHidden, { children: /*#__PURE__*/ jsx(AriaStatus, {
79
+ }), loading && /* @__PURE__ */ jsx(VisuallyHidden, { children: /* @__PURE__ */ jsx(AriaStatus, {
81
80
  id: loadingAnnouncementID,
82
81
  children: loadingAnnouncement
83
82
  }) })]
@@ -60,7 +60,7 @@ const IconButton = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
60
60
  } else t2 = $[12];
61
61
  let t3;
62
62
  if ($[13] !== Icon || $[14] !== ariaLabel || $[15] !== disabled || $[16] !== forwardedRef || $[17] !== props || $[18] !== t2) {
63
- t3 = /*#__PURE__*/ jsx(ButtonBase, {
63
+ t3 = /* @__PURE__ */ jsx(ButtonBase, {
64
64
  icon: Icon,
65
65
  className: t2,
66
66
  "data-component": "IconButton",
@@ -94,7 +94,7 @@ const IconButton = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
94
94
  const t6 = description ? ariaLabel : void 0;
95
95
  let t7;
96
96
  if ($[22] !== Icon || $[23] !== props || $[24] !== t4 || $[25] !== t5 || $[26] !== t6) {
97
- t7 = /*#__PURE__*/ jsx(ButtonBase, {
97
+ t7 = /* @__PURE__ */ jsx(ButtonBase, {
98
98
  icon: Icon,
99
99
  className: t4,
100
100
  "data-component": "IconButton",
@@ -112,7 +112,7 @@ const IconButton = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
112
112
  } else t7 = $[27];
113
113
  let t8;
114
114
  if ($[28] !== forwardedRef || $[29] !== hasActivePopup || $[30] !== t2 || $[31] !== t3 || $[32] !== t7 || $[33] !== tooltipDirection || $[34] !== tooltipText) {
115
- t8 = /*#__PURE__*/ jsx(Tooltip, {
115
+ t8 = /* @__PURE__ */ jsx(Tooltip, {
116
116
  ref: forwardedRef,
117
117
  text: tooltipText,
118
118
  type: t2,
@@ -22,7 +22,7 @@ const LinkButton = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
22
22
  const Component = t1 === void 0 ? "a" : t1;
23
23
  let t2;
24
24
  if ($[4] !== Component || $[5] !== children || $[6] !== forwardedRef || $[7] !== props) {
25
- t2 = /*#__PURE__*/ jsx(ButtonBase, {
25
+ t2 = /* @__PURE__ */ jsx(ButtonBase, {
26
26
  as: Component,
27
27
  ref: forwardedRef,
28
28
  "data-component": "LinkButton",
@@ -66,7 +66,7 @@ const ButtonGroup = /*#__PURE__*/ React.forwardRef(function ButtonGroup(t0, forw
66
66
  } else t5 = $[12];
67
67
  let t6;
68
68
  if ($[13] !== BaseComponent || $[14] !== appliedRef || $[15] !== buttons || $[16] !== rest || $[17] !== role || $[18] !== t5) {
69
- t6 = /*#__PURE__*/ jsx(BaseComponent, {
69
+ t6 = /* @__PURE__ */ jsx(BaseComponent, {
70
70
  ref: appliedRef,
71
71
  className: t5,
72
72
  role,
@@ -86,11 +86,10 @@ const ButtonGroup = /*#__PURE__*/ React.forwardRef(function ButtonGroup(t0, forw
86
86
  });
87
87
  ButtonGroup.displayName = "ButtonGroup";
88
88
  function _temp(child, index) {
89
- return /*#__PURE__*/ jsx("div", {
89
+ return /* @__PURE__ */ jsx("div", {
90
90
  className: ButtonGroup_module_css_default.Item,
91
91
  children: child
92
92
  }, index);
93
93
  }
94
- _temp.displayName = "_temp";
95
94
  //#endregion
96
95
  export { ButtonGroup as default };