@primer/react 38.42.0-rc.ebd425836 → 38.42.0

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 (44) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/ActionBar/ActionBar.js +498 -162
  3. package/dist/ActionBar/index.d.ts +2 -2
  4. package/dist/ActionList/Group.js +4 -5
  5. package/dist/ActionList/Item.js +2 -2
  6. package/dist/Banner/Banner.js +3 -5
  7. package/dist/Button/ButtonBase.js +3 -2
  8. package/dist/Button/IconButton.js +3 -4
  9. package/dist/Button/types.d.ts +2 -2
  10. package/dist/Card/Card.js +1 -2
  11. package/dist/Checkbox/Checkbox.js +145 -41
  12. package/dist/CounterLabel/CounterLabel.js +80 -18
  13. package/dist/Details/Details.js +2 -4
  14. package/dist/FeatureFlags/FeatureFlagScope.js +1 -0
  15. package/dist/FilteredActionList/constants.js +2 -0
  16. package/dist/FilteredActionList/useAnnouncements.js +148 -81
  17. package/dist/FormControl/FormControlLabel.js +1 -2
  18. package/dist/InlineMessage/InlineMessage.js +1 -2
  19. package/dist/NavList/NavList.js +3 -4
  20. package/dist/Overlay/Overlay.js +299 -64
  21. package/dist/PageLayout/usePaneWidth.js +2 -2
  22. package/dist/Popover/Popover.js +3 -5
  23. package/dist/ProgressBar/ProgressBar.js +1 -2
  24. package/dist/SegmentedControl/SegmentedControlButton.js +1 -2
  25. package/dist/Select/Select.js +2 -2
  26. package/dist/SelectPanel/SelectPanel.d.ts +1 -1
  27. package/dist/SelectPanel/SelectPanel.js +1 -1
  28. package/dist/Spinner/Spinner.js +1 -2
  29. package/dist/TextInput/TextInput.js +242 -87
  30. package/dist/Textarea/Textarea.d.ts +2 -2
  31. package/dist/ToggleSwitch/ToggleSwitch.js +2 -3
  32. package/dist/Tooltip/Tooltip.js +98 -17
  33. package/dist/TooltipV2/Tooltip.js +295 -138
  34. package/dist/TopicTag/TopicTag.js +1 -2
  35. package/dist/Truncate/Truncate.js +87 -14
  36. package/dist/UnderlineNav/UnderlineNavItem.js +2 -4
  37. package/dist/deprecated/ActionList/List.js +1 -1
  38. package/dist/experimental/SelectPanel2/SelectPanel.d.ts +1 -1
  39. package/dist/internal/components/InputLabel.js +1 -2
  40. package/dist/internal/components/TextInputInnerAction.js +1 -2
  41. package/dist/internal/components/TextInputWrapper.d.ts +3 -0
  42. package/dist/internal/hooks/useThemeProvider.js +3 -3
  43. package/generated/components.json +22 -20
  44. package/package.json +12 -13
@@ -1,3 +1,4 @@
1
+ import { c } from "../utils/react-compiler-runtime.js";
1
2
  import { useMergedRefs } from "../hooks/useMergedRefs.js";
2
3
  import useIsomorphicLayoutEffect from "../utils/useIsomorphicLayoutEffect.js";
3
4
  import { useOverlay } from "../hooks/useOverlay.js";
@@ -44,26 +45,133 @@ function getSlideAnimationStartingVector(anchorSide) {
44
45
  * @param bottom Optional. Vertical bottom position of the overlay, relative to its closest positioned ancestor (often its `Portal`).
45
46
  * @param position Optional. Sets how an element is positioned in a document. Defaults to `absolute` positioning.
46
47
  */
47
- const BaseOverlay = /*#__PURE__*/ React.forwardRef(({ visibility, height, width, top, left, right, bottom, position, style: styleFromProps, className, maxHeight, maxWidth, as: Component = "div", ...rest }, forwardedRef) => {
48
- return /* @__PURE__ */ jsx(Component, {
49
- ...rest,
50
- ref: forwardedRef,
51
- style: {
52
- "--top": typeof top === "number" ? `${top}px` : top,
53
- "--left": typeof left === "number" ? `${left}px` : left,
54
- "--right": typeof right === "number" ? `${right}px` : right,
55
- "--bottom": typeof bottom === "number" ? `${bottom}px` : bottom,
48
+ const BaseOverlay = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) => {
49
+ const $ = c(41);
50
+ let bottom;
51
+ let className;
52
+ let height;
53
+ let left;
54
+ let maxHeight;
55
+ let maxWidth;
56
+ let position;
57
+ let rest;
58
+ let right;
59
+ let styleFromProps;
60
+ let t1;
61
+ let top;
62
+ let visibility;
63
+ let width;
64
+ if ($[0] !== t0) {
65
+ ({visibility, height, width, top, left, right, bottom, position, style: styleFromProps, className, maxHeight, maxWidth, as: t1, ...rest} = t0);
66
+ $[0] = t0;
67
+ $[1] = bottom;
68
+ $[2] = className;
69
+ $[3] = height;
70
+ $[4] = left;
71
+ $[5] = maxHeight;
72
+ $[6] = maxWidth;
73
+ $[7] = position;
74
+ $[8] = rest;
75
+ $[9] = right;
76
+ $[10] = styleFromProps;
77
+ $[11] = t1;
78
+ $[12] = top;
79
+ $[13] = visibility;
80
+ $[14] = width;
81
+ } else {
82
+ bottom = $[1];
83
+ className = $[2];
84
+ height = $[3];
85
+ left = $[4];
86
+ maxHeight = $[5];
87
+ maxWidth = $[6];
88
+ position = $[7];
89
+ rest = $[8];
90
+ right = $[9];
91
+ styleFromProps = $[10];
92
+ t1 = $[11];
93
+ top = $[12];
94
+ visibility = $[13];
95
+ width = $[14];
96
+ }
97
+ const Component = t1 === void 0 ? "div" : t1;
98
+ const t2 = typeof top === "number" ? `${top}px` : top;
99
+ const t3 = typeof left === "number" ? `${left}px` : left;
100
+ const t4 = typeof right === "number" ? `${right}px` : right;
101
+ const t5 = typeof bottom === "number" ? `${bottom}px` : bottom;
102
+ let t6;
103
+ if ($[15] !== position || $[16] !== styleFromProps || $[17] !== t2 || $[18] !== t3 || $[19] !== t4 || $[20] !== t5) {
104
+ t6 = {
105
+ "--top": t2,
106
+ "--left": t3,
107
+ "--right": t4,
108
+ "--bottom": t5,
56
109
  position,
57
110
  ...styleFromProps
58
- },
59
- [`data-width-${width}`]: "",
60
- [`data-max-width-${maxWidth}`]: maxWidth ? "" : void 0,
61
- [`data-height-${height}`]: "",
62
- [`data-max-height-${maxHeight}`]: maxHeight ? "" : void 0,
63
- [`data-visibility-${visibility}`]: "",
64
- [`data-overflow-${rest.overflow}`]: rest.overflow ? "" : void 0,
65
- className: clsx(className, Overlay_module_css_default.Overlay)
66
- });
111
+ };
112
+ $[15] = position;
113
+ $[16] = styleFromProps;
114
+ $[17] = t2;
115
+ $[18] = t3;
116
+ $[19] = t4;
117
+ $[20] = t5;
118
+ $[21] = t6;
119
+ } else t6 = $[21];
120
+ const t7 = t6;
121
+ const t8 = `data-width-${width}`;
122
+ const t9 = `data-max-width-${maxWidth}`;
123
+ const t10 = maxWidth ? "" : void 0;
124
+ const t11 = `data-height-${height}`;
125
+ const t12 = `data-max-height-${maxHeight}`;
126
+ const t13 = maxHeight ? "" : void 0;
127
+ const t14 = `data-visibility-${visibility}`;
128
+ const t15 = `data-overflow-${rest.overflow}`;
129
+ const t16 = rest.overflow ? "" : void 0;
130
+ let t17;
131
+ if ($[22] !== t10 || $[23] !== t11 || $[24] !== t12 || $[25] !== t13 || $[26] !== t14 || $[27] !== t15 || $[28] !== t16 || $[29] !== t8 || $[30] !== t9) {
132
+ t17 = {
133
+ [t8]: "",
134
+ [t9]: t10,
135
+ [t11]: "",
136
+ [t12]: t13,
137
+ [t14]: "",
138
+ [t15]: t16
139
+ };
140
+ $[22] = t10;
141
+ $[23] = t11;
142
+ $[24] = t12;
143
+ $[25] = t13;
144
+ $[26] = t14;
145
+ $[27] = t15;
146
+ $[28] = t16;
147
+ $[29] = t8;
148
+ $[30] = t9;
149
+ $[31] = t17;
150
+ } else t17 = $[31];
151
+ let t18;
152
+ if ($[32] !== className) {
153
+ t18 = clsx(className, Overlay_module_css_default.Overlay);
154
+ $[32] = className;
155
+ $[33] = t18;
156
+ } else t18 = $[33];
157
+ let t19;
158
+ if ($[34] !== Component || $[35] !== forwardedRef || $[36] !== rest || $[37] !== t17 || $[38] !== t18 || $[39] !== t7) {
159
+ t19 = /* @__PURE__ */ jsx(Component, {
160
+ ...rest,
161
+ ref: forwardedRef,
162
+ style: t7,
163
+ ...t17,
164
+ className: t18
165
+ });
166
+ $[34] = Component;
167
+ $[35] = forwardedRef;
168
+ $[36] = rest;
169
+ $[37] = t17;
170
+ $[38] = t18;
171
+ $[39] = t7;
172
+ $[40] = t19;
173
+ } else t19 = $[40];
174
+ return t19;
67
175
  });
68
176
  /**
69
177
  * @param anchorSide If provided, the Overlay will slide into position from the side of the anchor with a brief animation
@@ -82,57 +190,184 @@ const BaseOverlay = /*#__PURE__*/ React.forwardRef(({ visibility, height, width,
82
190
  * @param width Sets the width of the `Overlay`, pick from our set list of widths, or pass `auto` to automatically set the width based on the content of the `Overlay`. `small` corresponds to `256px`, `medium` corresponds to `320px`, `large` corresponds to `480px`, `xlarge` corresponds to `640px`, `xxlarge` corresponds to `960px`.
83
191
 
84
192
  */
85
- const Overlay = /*#__PURE__*/ React.forwardRef(({ anchorSide, _PrivateDisablePortal, height = "auto", ignoreClickRefs, initialFocusRef, left, onClickOutside, onEscape, portalContainerName, preventOverflow = true, preventFocusOnOpen, preventFocusOnClose, returnFocusRef, right, role = "none", visibility = "visible", width = "auto", responsiveVariant, ...props }, forwardedRef) => {
193
+ const Overlay = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) => {
194
+ const $ = c(49);
195
+ let _PrivateDisablePortal;
196
+ let anchorSide;
197
+ let ignoreClickRefs;
198
+ let initialFocusRef;
199
+ let left;
200
+ let onClickOutside;
201
+ let onEscape;
202
+ let portalContainerName;
203
+ let preventFocusOnClose;
204
+ let preventFocusOnOpen;
205
+ let props;
206
+ let responsiveVariant;
207
+ let returnFocusRef;
208
+ let right;
209
+ let t1;
210
+ let t2;
211
+ let t3;
212
+ let t4;
213
+ let t5;
214
+ if ($[0] !== t0) {
215
+ ({anchorSide, _PrivateDisablePortal, height: t1, ignoreClickRefs, initialFocusRef, left, onClickOutside, onEscape, portalContainerName, preventOverflow: t2, preventFocusOnOpen, preventFocusOnClose, returnFocusRef, right, role: t3, visibility: t4, width: t5, responsiveVariant, ...props} = t0);
216
+ $[0] = t0;
217
+ $[1] = _PrivateDisablePortal;
218
+ $[2] = anchorSide;
219
+ $[3] = ignoreClickRefs;
220
+ $[4] = initialFocusRef;
221
+ $[5] = left;
222
+ $[6] = onClickOutside;
223
+ $[7] = onEscape;
224
+ $[8] = portalContainerName;
225
+ $[9] = preventFocusOnClose;
226
+ $[10] = preventFocusOnOpen;
227
+ $[11] = props;
228
+ $[12] = responsiveVariant;
229
+ $[13] = returnFocusRef;
230
+ $[14] = right;
231
+ $[15] = t1;
232
+ $[16] = t2;
233
+ $[17] = t3;
234
+ $[18] = t4;
235
+ $[19] = t5;
236
+ } else {
237
+ _PrivateDisablePortal = $[1];
238
+ anchorSide = $[2];
239
+ ignoreClickRefs = $[3];
240
+ initialFocusRef = $[4];
241
+ left = $[5];
242
+ onClickOutside = $[6];
243
+ onEscape = $[7];
244
+ portalContainerName = $[8];
245
+ preventFocusOnClose = $[9];
246
+ preventFocusOnOpen = $[10];
247
+ props = $[11];
248
+ responsiveVariant = $[12];
249
+ returnFocusRef = $[13];
250
+ right = $[14];
251
+ t1 = $[15];
252
+ t2 = $[16];
253
+ t3 = $[17];
254
+ t4 = $[18];
255
+ t5 = $[19];
256
+ }
257
+ const height = t1 === void 0 ? "auto" : t1;
258
+ const preventOverflow = t2 === void 0 ? true : t2;
259
+ const role = t3 === void 0 ? "none" : t3;
260
+ const visibility = t4 === void 0 ? "visible" : t4;
261
+ const width = t5 === void 0 ? "auto" : t5;
86
262
  const overlayRef = useRef(null);
87
263
  const mergedOverlayRef = useMergedRefs(forwardedRef, overlayRef);
88
- const slideAnimationDistance = 8;
89
- const slideAnimationEasing = "cubic-bezier(0.33, 1, 0.68, 1)";
90
264
  const cssAnchorPositioning = useFeatureFlag("primer_react_css_anchor_positioning");
91
- useOverlay({
92
- overlayRef,
93
- returnFocusRef,
94
- onEscape,
95
- ignoreClickRefs,
96
- onClickOutside,
97
- initialFocusRef,
98
- preventFocusOnOpen,
99
- preventFocusOnClose
100
- });
101
- useEffect(() => {
102
- var _overlayRef$current;
103
- if (height === "initial" && (_overlayRef$current = overlayRef.current) !== null && _overlayRef$current !== void 0 && _overlayRef$current.clientHeight) overlayRef.current.style.height = `${overlayRef.current.clientHeight}px`;
104
- }, [height]);
105
- useIsomorphicLayoutEffect(() => {
106
- var _overlayRef$current2;
107
- const { x, y } = getSlideAnimationStartingVector(anchorSide);
108
- if (!x && !y || !((_overlayRef$current2 = overlayRef.current) !== null && _overlayRef$current2 !== void 0 && _overlayRef$current2.animate) || visibility === "hidden") return;
109
- overlayRef.current.animate({ transform: [`translate(${slideAnimationDistance * x}px, ${slideAnimationDistance * y}px)`, `translate(0, 0)`] }, {
110
- duration: animationDuration,
111
- easing: slideAnimationEasing
265
+ let t6;
266
+ if ($[20] !== ignoreClickRefs || $[21] !== initialFocusRef || $[22] !== onClickOutside || $[23] !== onEscape || $[24] !== preventFocusOnClose || $[25] !== preventFocusOnOpen || $[26] !== returnFocusRef) {
267
+ t6 = {
268
+ overlayRef,
269
+ returnFocusRef,
270
+ onEscape,
271
+ ignoreClickRefs,
272
+ onClickOutside,
273
+ initialFocusRef,
274
+ preventFocusOnOpen,
275
+ preventFocusOnClose
276
+ };
277
+ $[20] = ignoreClickRefs;
278
+ $[21] = initialFocusRef;
279
+ $[22] = onClickOutside;
280
+ $[23] = onEscape;
281
+ $[24] = preventFocusOnClose;
282
+ $[25] = preventFocusOnOpen;
283
+ $[26] = returnFocusRef;
284
+ $[27] = t6;
285
+ } else t6 = $[27];
286
+ useOverlay(t6);
287
+ let t7;
288
+ let t8;
289
+ if ($[28] !== height) {
290
+ t7 = () => {
291
+ var _overlayRef$current;
292
+ if (height === "initial" && (_overlayRef$current = overlayRef.current) !== null && _overlayRef$current !== void 0 && _overlayRef$current.clientHeight) overlayRef.current.style.height = `${overlayRef.current.clientHeight}px`;
293
+ };
294
+ t8 = [height];
295
+ $[28] = height;
296
+ $[29] = t7;
297
+ $[30] = t8;
298
+ } else {
299
+ t7 = $[29];
300
+ t8 = $[30];
301
+ }
302
+ useEffect(t7, t8);
303
+ let t10;
304
+ let t9;
305
+ if ($[31] !== anchorSide || $[32] !== visibility) {
306
+ t9 = () => {
307
+ var _overlayRef$current2;
308
+ const { x, y } = getSlideAnimationStartingVector(anchorSide);
309
+ if (!x && !y || !((_overlayRef$current2 = overlayRef.current) !== null && _overlayRef$current2 !== void 0 && _overlayRef$current2.animate) || visibility === "hidden") return;
310
+ overlayRef.current.animate({ transform: [`translate(${8 * x}px, ${8 * y}px)`, "translate(0, 0)"] }, {
311
+ duration: animationDuration,
312
+ easing: "cubic-bezier(0.33, 1, 0.68, 1)"
313
+ });
314
+ };
315
+ t10 = [
316
+ anchorSide,
317
+ 8,
318
+ "cubic-bezier(0.33, 1, 0.68, 1)",
319
+ visibility
320
+ ];
321
+ $[31] = anchorSide;
322
+ $[32] = visibility;
323
+ $[33] = t10;
324
+ $[34] = t9;
325
+ } else {
326
+ t10 = $[33];
327
+ t9 = $[34];
328
+ }
329
+ useIsomorphicLayoutEffect(t9, t10);
330
+ const leftPosition = left === void 0 && right === void 0 ? 0 : left;
331
+ const t11 = !preventOverflow ? true : void 0;
332
+ let t12;
333
+ if ($[35] !== height || $[36] !== leftPosition || $[37] !== mergedOverlayRef || $[38] !== props || $[39] !== responsiveVariant || $[40] !== right || $[41] !== role || $[42] !== t11 || $[43] !== visibility || $[44] !== width) {
334
+ t12 = /* @__PURE__ */ jsx(BaseOverlay, {
335
+ role,
336
+ width,
337
+ "data-reflow-container": t11,
338
+ ref: mergedOverlayRef,
339
+ left: leftPosition,
340
+ right,
341
+ height,
342
+ visibility,
343
+ "data-responsive": responsiveVariant,
344
+ ...props
112
345
  });
113
- }, [
114
- anchorSide,
115
- slideAnimationDistance,
116
- slideAnimationEasing,
117
- visibility
118
- ]);
119
- const overlayContent = /* @__PURE__ */ jsx(BaseOverlay, {
120
- role,
121
- width,
122
- "data-reflow-container": !preventOverflow ? true : void 0,
123
- ref: mergedOverlayRef,
124
- left: left === void 0 && right === void 0 ? 0 : left,
125
- right,
126
- height,
127
- visibility,
128
- "data-responsive": responsiveVariant,
129
- ...props
130
- });
346
+ $[35] = height;
347
+ $[36] = leftPosition;
348
+ $[37] = mergedOverlayRef;
349
+ $[38] = props;
350
+ $[39] = responsiveVariant;
351
+ $[40] = right;
352
+ $[41] = role;
353
+ $[42] = t11;
354
+ $[43] = visibility;
355
+ $[44] = width;
356
+ $[45] = t12;
357
+ } else t12 = $[45];
358
+ const overlayContent = t12;
131
359
  if (_PrivateDisablePortal && cssAnchorPositioning) return overlayContent;
132
- return /* @__PURE__ */ jsx(Portal_default, {
133
- containerName: portalContainerName,
134
- children: overlayContent
135
- });
360
+ let t13;
361
+ if ($[46] !== overlayContent || $[47] !== portalContainerName) {
362
+ t13 = /* @__PURE__ */ jsx(Portal_default, {
363
+ containerName: portalContainerName,
364
+ children: overlayContent
365
+ });
366
+ $[46] = overlayContent;
367
+ $[47] = portalContainerName;
368
+ $[48] = t13;
369
+ } else t13 = $[48];
370
+ return t13;
136
371
  });
137
372
  //#endregion
138
373
  export { BaseOverlay, Overlay as default };
@@ -285,14 +285,14 @@ function usePaneWidth(t0) {
285
285
  if (isResizing) return;
286
286
  isResizing = true;
287
287
  (_paneRef$current4 = paneRef.current) === null || _paneRef$current4 === void 0 || _paneRef$current4.setAttribute("data-dragging", "true");
288
- contentWrapperRef === null || contentWrapperRef === void 0 || (_contentWrapperRef$cu = contentWrapperRef.current) == null || _contentWrapperRef$cu.setAttribute("data-dragging", "true");
288
+ contentWrapperRef === null || contentWrapperRef === void 0 || (_contentWrapperRef$cu = contentWrapperRef.current) === null || _contentWrapperRef$cu === void 0 || _contentWrapperRef$cu.setAttribute("data-dragging", "true");
289
289
  };
290
290
  const endResizeOptimizations = () => {
291
291
  var _paneRef$current5, _contentWrapperRef$cu2;
292
292
  if (!isResizing) return;
293
293
  isResizing = false;
294
294
  (_paneRef$current5 = paneRef.current) === null || _paneRef$current5 === void 0 || _paneRef$current5.removeAttribute("data-dragging");
295
- contentWrapperRef === null || contentWrapperRef === void 0 || (_contentWrapperRef$cu2 = contentWrapperRef.current) == null || _contentWrapperRef$cu2.removeAttribute("data-dragging");
295
+ contentWrapperRef === null || contentWrapperRef === void 0 || (_contentWrapperRef$cu2 = contentWrapperRef.current) === null || _contentWrapperRef$cu2 === void 0 || _contentWrapperRef$cu2.removeAttribute("data-dragging");
296
296
  };
297
297
  const handleResize = () => {
298
298
  startResizeOptimizations();
@@ -9,7 +9,6 @@ import { clsx } from "clsx";
9
9
  const EMPTY_IGNORE_CLICK_REFS = [];
10
10
  const PopoverContext = /*#__PURE__*/ React.createContext(false);
11
11
  const Popover = /*#__PURE__*/ React.forwardRef(function Popover(t0, forwardRef) {
12
- var _open;
13
12
  const $ = c(18);
14
13
  let className;
15
14
  let open;
@@ -32,7 +31,7 @@ const Popover = /*#__PURE__*/ React.forwardRef(function Popover(t0, forwardRef)
32
31
  t1 = $[5];
33
32
  }
34
33
  const caret = t1 === void 0 ? "top" : t1;
35
- const t2 = (_open = open) !== null && _open !== void 0 ? _open : false;
34
+ const t2 = open !== null && open !== void 0 ? open : false;
36
35
  const t3 = open ? "" : void 0;
37
36
  const t4 = relative ? "" : void 0;
38
37
  let t5;
@@ -74,7 +73,6 @@ const Popover = /*#__PURE__*/ React.forwardRef(function Popover(t0, forwardRef)
74
73
  });
75
74
  Popover.displayName = "Popover";
76
75
  const PopoverContent = (t0) => {
77
- var _onClickOutside, _ignoreClickRefs;
78
76
  const $ = c(22);
79
77
  let className;
80
78
  let ignoreClickRefs;
@@ -106,8 +104,8 @@ const PopoverContent = (t0) => {
106
104
  const height = t2 === void 0 ? "fit-content" : t2;
107
105
  const divRef = useRef(null);
108
106
  const open = React.useContext(PopoverContext);
109
- const outsideClickHandler = (_onClickOutside = onClickOutside) !== null && _onClickOutside !== void 0 ? _onClickOutside : _temp;
110
- const t3 = (_ignoreClickRefs = ignoreClickRefs) !== null && _ignoreClickRefs !== void 0 ? _ignoreClickRefs : EMPTY_IGNORE_CLICK_REFS;
107
+ const outsideClickHandler = onClickOutside !== null && onClickOutside !== void 0 ? onClickOutside : _temp;
108
+ const t3 = ignoreClickRefs !== null && ignoreClickRefs !== void 0 ? ignoreClickRefs : EMPTY_IGNORE_CLICK_REFS;
111
109
  let t4;
112
110
  if ($[8] !== outsideClickHandler || $[9] !== t3) {
113
111
  t4 = {
@@ -38,8 +38,7 @@ const Item = /*#__PURE__*/ forwardRef((t0, forwardRef) => {
38
38
  const progressAsNumber = typeof progress === "string" ? parseInt(progress, 10) : progress;
39
39
  let t1;
40
40
  if ($[9] !== ariaValueNow || $[10] !== progressAsNumber) {
41
- var _ariaValueNow;
42
- t1 = (_ariaValueNow = ariaValueNow) !== null && _ariaValueNow !== void 0 ? _ariaValueNow : progressAsNumber !== void 0 && progressAsNumber >= 0 ? Math.round(progressAsNumber) : 0;
41
+ t1 = ariaValueNow !== null && ariaValueNow !== void 0 ? ariaValueNow : progressAsNumber !== void 0 && progressAsNumber >= 0 ? Math.round(progressAsNumber) : 0;
43
42
  $[9] = ariaValueNow;
44
43
  $[10] = progressAsNumber;
45
44
  $[11] = t1;
@@ -6,7 +6,6 @@ import { clsx } from "clsx";
6
6
  import { isElement } from "react-is";
7
7
  //#region src/SegmentedControl/SegmentedControlButton.tsx
8
8
  const SegmentedControlButton = (t0) => {
9
- var _leadingVisual;
10
9
  const $ = c(36);
11
10
  let children;
12
11
  let className;
@@ -56,7 +55,7 @@ const SegmentedControlButton = (t0) => {
56
55
  ariaDisabled = $[10];
57
56
  rest = $[11];
58
57
  }
59
- const LeadingVisual = (_leadingVisual = leadingVisual) !== null && _leadingVisual !== void 0 ? _leadingVisual : leadingIcon;
58
+ const LeadingVisual = leadingVisual !== null && leadingVisual !== void 0 ? leadingVisual : leadingIcon;
60
59
  let t1;
61
60
  if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
62
61
  t1 = clsx(SegmentedControl_module_css_default.Item);
@@ -47,7 +47,7 @@ const ArrowIndicator = (t0) => {
47
47
  return t2;
48
48
  };
49
49
  const Select = /*#__PURE__*/ React.forwardRef((t0, ref) => {
50
- var _ref, _defaultValue;
50
+ var _ref;
51
51
  const $ = c(37);
52
52
  let block;
53
53
  let children;
@@ -99,7 +99,7 @@ const Select = /*#__PURE__*/ React.forwardRef((t0, ref) => {
99
99
  $[14] = t4;
100
100
  } else t4 = $[14];
101
101
  const t5 = Boolean(placeholder);
102
- const t6 = (_ref = (_defaultValue = defaultValue) !== null && _defaultValue !== void 0 ? _defaultValue : placeholder) !== null && _ref !== void 0 ? _ref : void 0;
102
+ const t6 = (_ref = defaultValue !== null && defaultValue !== void 0 ? defaultValue : placeholder) !== null && _ref !== void 0 ? _ref : void 0;
103
103
  let t7;
104
104
  if ($[15] !== placeholder || $[16] !== required) {
105
105
  t7 = placeholder && /* @__PURE__ */ jsx("option", {
@@ -112,7 +112,7 @@ declare const SelectPanel: typeof Panel & {
112
112
  SecondaryActionButton: React.FC<ButtonProps>;
113
113
  SecondaryActionLink: React.FC<LinkButtonProps & {
114
114
  alignContent?: AlignContent;
115
- icon?: React.FunctionComponent<IconProps> | React.ElementType | React.ReactElement<any> | null;
115
+ icon?: React.ReactNode | React.ComponentType<IconProps> | React.ExoticComponent<IconProps>;
116
116
  leadingVisual?: React.ElementType | React.ReactElement<any> | null;
117
117
  trailingVisual?: React.ElementType | React.ReactElement<any> | null;
118
118
  trailingAction?: React.ElementType | null;
@@ -427,7 +427,7 @@ function Panel({ open, onOpenChange, renderAnchor = defaultRenderAnchor, anchorR
427
427
  } : void 0, "anchored");
428
428
  const preventBubbling = useCallback((event) => {
429
429
  var _overlayProps$onKeyDo;
430
- overlayProps === null || overlayProps === void 0 || (_overlayProps$onKeyDo = overlayProps.onKeyDown) == null || _overlayProps$onKeyDo.call(overlayProps, event);
430
+ overlayProps === null || overlayProps === void 0 || (_overlayProps$onKeyDo = overlayProps.onKeyDown) === null || _overlayProps$onKeyDo === void 0 || _overlayProps$onKeyDo.call(overlayProps, event);
431
431
  const activeElement = document.activeElement;
432
432
  if (activeElement.tagName === "INPUT" || activeElement.tagName === "TEXTAREA") return;
433
433
  if (event.ctrlKey || event.altKey || event.metaKey) return;
@@ -14,7 +14,6 @@ const sizeMap = {
14
14
  large: "64px"
15
15
  };
16
16
  function Spinner(t0) {
17
- var _ariaLabel;
18
17
  const $ = c(35);
19
18
  let ariaLabel;
20
19
  let className;
@@ -96,7 +95,7 @@ function Spinner(t0) {
96
95
  $[16] = t8;
97
96
  } else t8 = $[16];
98
97
  const mergedStyle = t8;
99
- const t9 = (_ariaLabel = ariaLabel) !== null && _ariaLabel !== void 0 ? _ariaLabel : void 0;
98
+ const t9 = ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : void 0;
100
99
  const t10 = hasHiddenLabel ? labelId : void 0;
101
100
  let t11;
102
101
  if ($[17] !== className) {