@kanso-labs/kanso-ui 0.40.8 → 0.41.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 (54) hide show
  1. package/dist/color-scheme.d.ts +6 -0
  2. package/dist/color-scheme.js +9 -2
  3. package/dist/color-scheme.js.map +1 -1
  4. package/dist/components/app-bar/index.d.ts +11 -2
  5. package/dist/components/app-bar/index.js +53 -46
  6. package/dist/components/app-bar/index.js.map +1 -1
  7. package/dist/components/avatar/index.d.ts +7 -0
  8. package/dist/components/avatar/index.js.map +1 -1
  9. package/dist/components/badge/index.js +7 -3
  10. package/dist/components/badge/index.js.map +1 -1
  11. package/dist/components/card/index.d.ts +12 -1
  12. package/dist/components/card/index.js +136 -66
  13. package/dist/components/card/index.js.map +1 -1
  14. package/dist/components/dialog/index.js +3 -2
  15. package/dist/components/dialog/index.js.map +1 -1
  16. package/dist/components/popover/index.d.ts +4 -1
  17. package/dist/components/popover/index.js +241 -138
  18. package/dist/components/popover/index.js.map +1 -1
  19. package/dist/components/product-icon/index.d.ts +3 -1
  20. package/dist/components/product-icon/index.js.map +1 -1
  21. package/dist/components/progress-indicator/index.js +1 -1
  22. package/dist/components/progress-indicator/index.js.map +1 -1
  23. package/dist/components/search-field/index.js +7 -3
  24. package/dist/components/search-field/index.js.map +1 -1
  25. package/dist/components/segmented-button/index.d.ts +20 -1
  26. package/dist/components/segmented-button/index.js +253 -114
  27. package/dist/components/segmented-button/index.js.map +1 -1
  28. package/dist/components/separator/index.js +2 -2
  29. package/dist/components/separator/index.js.map +1 -1
  30. package/dist/components/sheet/index.js +17 -16
  31. package/dist/components/sheet/index.js.map +1 -1
  32. package/dist/components/snackbar/index.d.ts +10 -3
  33. package/dist/components/snackbar/index.js +32 -12
  34. package/dist/components/snackbar/index.js.map +1 -1
  35. package/dist/components/switch/index.js +12 -3
  36. package/dist/components/switch/index.js.map +1 -1
  37. package/dist/components/toolbar/index.d.ts +3 -2
  38. package/dist/components/toolbar/index.js +3 -2
  39. package/dist/components/toolbar/index.js.map +1 -1
  40. package/dist/field/index.js +67 -61
  41. package/dist/field/index.js.map +1 -1
  42. package/dist/field/press.js +27 -0
  43. package/dist/field/press.js.map +1 -0
  44. package/dist/mark/initials.js +41 -26
  45. package/dist/mark/initials.js.map +1 -1
  46. package/dist/overlay/index.js +24 -0
  47. package/dist/overlay/index.js.map +1 -0
  48. package/dist/styles/scheme.js +19 -0
  49. package/dist/styles/scheme.js.map +1 -0
  50. package/dist/styles.css +106 -34
  51. package/dist/theme-scope.d.ts +5 -2
  52. package/dist/theme-scope.js +2 -1
  53. package/dist/theme-scope.js.map +1 -1
  54. package/package.json +1 -1
@@ -1,12 +1,15 @@
1
1
  "use client";
2
2
  import { props } from "../../node_modules/@stylexjs/stylex/lib/es/stylex.js";
3
+ import { mergeRefs } from "../../render/ref.js";
3
4
  import { mergeStatefulStyles, mergeStyles } from "../../styles/merge.js";
4
5
  import { focus } from "../../styles/focus.js";
5
6
  import { overlay, placementOf, popupOrigin } from "../../styles/overlay.js";
7
+ import { OverlayScope } from "../../overlay/index.js";
6
8
  import { c } from "react/compiler-runtime";
7
9
  import { createContext, useContext, useEffect, useId, useRef, useState } from "react";
8
10
  import { jsx } from "react/jsx-runtime";
9
- import { ButtonContext, DEFAULT_SLOT, Dialog, DialogContext, DialogTrigger, Heading, HeadingContext, OverlayTriggerStateContext, Popover, PreviewTrigger, Text, TextContext } from "react-aria-components";
11
+ import { ButtonContext, DEFAULT_SLOT, Dialog, DialogContext, DialogTrigger, Heading, HeadingContext, OverlayTriggerStateContext, Popover, PopoverContext, PreviewTrigger, Text, TextContext, useSlottedContext } from "react-aria-components";
12
+ import { useInteractOutside } from "react-aria";
10
13
  //#region src/components/popover/index.tsx
11
14
  const DEFAULT_SIDE_OFFSET = 8;
12
15
  const styles = {
@@ -49,7 +52,7 @@ const styles = {
49
52
  };
50
53
  const DEFAULT_HOVER_DELAY = 600;
51
54
  const DEFAULT_HOVER_CLOSE_DELAY = 200;
52
- const PopoverContext = createContext({
55
+ const PopoverContext$1 = createContext({
53
56
  modal: false,
54
57
  size: "md"
55
58
  });
@@ -80,63 +83,67 @@ const TEXT_SLOTS = { slots: {
80
83
  * focus handling of its own.
81
84
  */
82
85
  function PanelDialog(t0) {
83
- const $ = c(35);
86
+ const $ = c(37);
84
87
  let children;
85
88
  let id;
86
89
  let labelledBy;
90
+ let onPressWithin;
87
91
  let props$2;
88
92
  let slot;
89
93
  if ($[0] !== t0) {
90
- const { "aria-labelledby": t1, children: t2, id: t3, render: _render, slot: t4, ...t5 } = t0;
94
+ const { "aria-labelledby": t1, children: t2, id: t3, onPressWithin: t4, render: _render, slot: t5, ...t6 } = t0;
91
95
  labelledBy = t1;
92
96
  children = t2;
93
97
  id = t3;
94
- slot = t4;
95
- props$2 = t5;
98
+ onPressWithin = t4;
99
+ slot = t5;
100
+ props$2 = t6;
96
101
  $[0] = t0;
97
102
  $[1] = children;
98
103
  $[2] = id;
99
104
  $[3] = labelledBy;
100
- $[4] = props$2;
101
- $[5] = slot;
105
+ $[4] = onPressWithin;
106
+ $[5] = props$2;
107
+ $[6] = slot;
102
108
  } else {
103
109
  children = $[1];
104
110
  id = $[2];
105
111
  labelledBy = $[3];
106
- props$2 = $[4];
107
- slot = $[5];
112
+ onPressWithin = $[4];
113
+ props$2 = $[5];
114
+ slot = $[6];
108
115
  }
109
116
  const ref = useRef(null);
110
117
  const state = useContext(OverlayTriggerStateContext);
111
118
  const t1 = useContext(DialogContext);
112
119
  let t2;
113
- if ($[6] !== t1) {
120
+ if ($[7] !== t1) {
114
121
  t2 = triggerOf(t1);
115
- $[6] = t1;
116
- $[7] = t2;
117
- } else t2 = $[7];
122
+ $[7] = t1;
123
+ $[8] = t2;
124
+ } else t2 = $[8];
118
125
  const trigger = t2;
119
126
  const pressed = trigger !== void 0;
120
127
  const titleId = useId();
121
128
  const [titled, setTitled] = useState(false);
122
129
  let t3;
123
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
130
+ if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
124
131
  t3 = () => {
125
132
  setTitled(true);
126
133
  return () => {
127
134
  setTitled(false);
128
135
  };
129
136
  };
130
- $[8] = t3;
131
- } else t3 = $[8];
137
+ $[9] = t3;
138
+ } else t3 = $[9];
132
139
  const registerTitle = t3;
133
140
  let t4;
134
- if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
141
+ if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
135
142
  t4 = {};
136
- $[9] = t4;
137
- } else t4 = $[9];
143
+ $[10] = t4;
144
+ } else t4 = $[10];
138
145
  let t5;
139
- if ($[10] !== titleId) {
146
+ if ($[11] !== titleId) {
140
147
  t5 = { slots: {
141
148
  [DEFAULT_SLOT]: t4,
142
149
  title: {
@@ -144,68 +151,68 @@ function PanelDialog(t0) {
144
151
  level: 2
145
152
  }
146
153
  } };
147
- $[10] = titleId;
148
- $[11] = t5;
149
- } else t5 = $[11];
154
+ $[11] = titleId;
155
+ $[12] = t5;
156
+ } else t5 = $[12];
150
157
  const headings = t5;
151
158
  let t6;
152
- if ($[12] !== state) {
159
+ if ($[13] !== state) {
153
160
  t6 = { onPress: () => {
154
161
  state?.close();
155
162
  } };
156
- $[12] = state;
157
- $[13] = t6;
158
- } else t6 = $[13];
163
+ $[13] = state;
164
+ $[14] = t6;
165
+ } else t6 = $[14];
159
166
  let t7;
160
- if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
167
+ if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
161
168
  t7 = {};
162
- $[14] = t7;
163
- } else t7 = $[14];
169
+ $[15] = t7;
170
+ } else t7 = $[15];
164
171
  let t8;
165
- if ($[15] !== t6) {
172
+ if ($[16] !== t6) {
166
173
  t8 = { slots: {
167
174
  close: t6,
168
175
  [DEFAULT_SLOT]: t7
169
176
  } };
170
- $[15] = t6;
171
- $[16] = t8;
172
- } else t8 = $[16];
177
+ $[16] = t6;
178
+ $[17] = t8;
179
+ } else t8 = $[17];
173
180
  const buttons = t8;
174
181
  let t10;
175
182
  let t9;
176
- if ($[17] !== pressed) {
183
+ if ($[18] !== pressed) {
177
184
  t9 = () => {
178
185
  const element = ref.current;
179
186
  if (pressed && element !== null && !element.contains(document.activeElement)) element.focus({ preventScroll: true });
180
187
  };
181
188
  t10 = [pressed];
182
- $[17] = pressed;
183
- $[18] = t10;
184
- $[19] = t9;
189
+ $[18] = pressed;
190
+ $[19] = t10;
191
+ $[20] = t9;
185
192
  } else {
186
- t10 = $[18];
187
- t9 = $[19];
193
+ t10 = $[19];
194
+ t9 = $[20];
188
195
  }
189
196
  useEffect(t9, t10);
190
197
  const t11 = labelledBy ?? (titled ? titleId : trigger?.labelledBy);
191
198
  const t12 = id ?? trigger?.id;
192
199
  const t13 = slot ?? void 0;
193
200
  let t14;
194
- if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
201
+ if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
195
202
  t14 = props(overlay.popupDialog, focus.ring);
196
- $[20] = t14;
197
- } else t14 = $[20];
203
+ $[21] = t14;
204
+ } else t14 = $[21];
198
205
  let t15;
199
- if ($[21] !== children) {
206
+ if ($[22] !== children) {
200
207
  t15 = /* @__PURE__ */ jsx(TitleContext, {
201
208
  value: registerTitle,
202
209
  children
203
210
  });
204
- $[21] = children;
205
- $[22] = t15;
206
- } else t15 = $[22];
211
+ $[22] = children;
212
+ $[23] = t15;
213
+ } else t15 = $[23];
207
214
  let t16;
208
- if ($[23] !== buttons || $[24] !== t15) {
215
+ if ($[24] !== buttons || $[25] !== t15) {
209
216
  t16 = /* @__PURE__ */ jsx(TextContext, {
210
217
  value: TEXT_SLOTS,
211
218
  children: /* @__PURE__ */ jsx(ButtonContext, {
@@ -213,26 +220,27 @@ function PanelDialog(t0) {
213
220
  children: t15
214
221
  })
215
222
  });
216
- $[23] = buttons;
217
- $[24] = t15;
218
- $[25] = t16;
219
- } else t16 = $[25];
223
+ $[24] = buttons;
224
+ $[25] = t15;
225
+ $[26] = t16;
226
+ } else t16 = $[26];
220
227
  let t17;
221
- if ($[26] !== headings || $[27] !== t16) {
228
+ if ($[27] !== headings || $[28] !== t16) {
222
229
  t17 = /* @__PURE__ */ jsx(HeadingContext, {
223
230
  value: headings,
224
231
  children: t16
225
232
  });
226
- $[26] = headings;
227
- $[27] = t16;
228
- $[28] = t17;
229
- } else t17 = $[28];
233
+ $[27] = headings;
234
+ $[28] = t16;
235
+ $[29] = t17;
236
+ } else t17 = $[29];
230
237
  let t18;
231
- if ($[29] !== props$2 || $[30] !== t11 || $[31] !== t12 || $[32] !== t13 || $[33] !== t17) {
238
+ if ($[30] !== onPressWithin || $[31] !== props$2 || $[32] !== t11 || $[33] !== t12 || $[34] !== t13 || $[35] !== t17) {
232
239
  t18 = /* @__PURE__ */ jsx("section", {
233
240
  ...props$2,
234
241
  "aria-labelledby": t11,
235
242
  id: t12,
243
+ onPointerDownCapture: onPressWithin,
236
244
  ref,
237
245
  role: "dialog",
238
246
  slot: t13,
@@ -240,13 +248,14 @@ function PanelDialog(t0) {
240
248
  ...t14,
241
249
  children: t17
242
250
  });
243
- $[29] = props$2;
244
- $[30] = t11;
245
- $[31] = t12;
246
- $[32] = t13;
247
- $[33] = t17;
248
- $[34] = t18;
249
- } else t18 = $[34];
251
+ $[30] = onPressWithin;
252
+ $[31] = props$2;
253
+ $[32] = t11;
254
+ $[33] = t12;
255
+ $[34] = t13;
256
+ $[35] = t17;
257
+ $[36] = t18;
258
+ } else t18 = $[36];
250
259
  return t18;
251
260
  }
252
261
  /**
@@ -255,7 +264,10 @@ function PanelDialog(t0) {
255
264
  * keep its own.
256
265
  *
257
266
  * Non-modal by design — the page behind stays scrollable and clickable, which
258
- * is the difference from `Sheet`. Pass `modal` to change that.
267
+ * is the difference from `Sheet`. Pass `modal` to change that. Escape, a press
268
+ * anywhere outside the panel and a button given `slot="close"` close it, and
269
+ * a press on its trigger toggles it. Inside a dialog, a press on the scrim
270
+ * closes the popover first and the dialog on the next, as a menu does.
259
271
  *
260
272
  * Composed rather than configured by props, because a popover's contents are
261
273
  * arbitrary — the parts are `Popover.Content`, `Popover.Title`, and
@@ -325,7 +337,7 @@ function Popover$1(t0) {
325
337
  } else t8 = $[15];
326
338
  let t9;
327
339
  if ($[16] !== context || $[17] !== t8) {
328
- t9 = /* @__PURE__ */ jsx(PopoverContext, {
340
+ t9 = /* @__PURE__ */ jsx(PopoverContext$1, {
329
341
  value: context,
330
342
  children: t8
331
343
  });
@@ -347,7 +359,7 @@ function Popover$1(t0) {
347
359
  } else t8 = $[21];
348
360
  let t9;
349
361
  if ($[22] !== context || $[23] !== t8) {
350
- t9 = /* @__PURE__ */ jsx(PopoverContext, {
362
+ t9 = /* @__PURE__ */ jsx(PopoverContext$1, {
351
363
  value: context,
352
364
  children: t8
353
365
  });
@@ -367,7 +379,7 @@ function Popover$1(t0) {
367
379
  * than being clipped by it.
368
380
  */
369
381
  function PopoverContent(t0) {
370
- const $ = c(41);
382
+ const $ = c(58);
371
383
  let alignOffset;
372
384
  let children;
373
385
  let className;
@@ -409,58 +421,146 @@ function PopoverContent(t0) {
409
421
  const align = t1 === void 0 ? "center" : t1;
410
422
  const side = t2 === void 0 ? "bottom" : t2;
411
423
  const sideOffset = t3 === void 0 ? DEFAULT_SIDE_OFFSET : t3;
412
- const { modal, size } = useContext(PopoverContext);
424
+ const { modal, size } = useContext(PopoverContext$1);
425
+ const state = useContext(OverlayTriggerStateContext);
426
+ const handed = useSlottedContext(PopoverContext)?.triggerRef;
427
+ const panel = useRef(null);
428
+ const t4 = ref ?? void 0;
429
+ let t5;
430
+ if ($[12] !== t4) {
431
+ t5 = mergeRefs(panel, t4);
432
+ $[12] = t4;
433
+ $[13] = t5;
434
+ } else t5 = $[13];
435
+ const merged = t5;
436
+ const pressedWithin = useRef(false);
437
+ let t6;
438
+ if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
439
+ t6 = () => {
440
+ pressedWithin.current = true;
441
+ };
442
+ $[14] = t6;
443
+ } else t6 = $[14];
444
+ const markPressWithin = t6;
445
+ let t7;
446
+ if ($[15] !== handed || $[16] !== triggerRef) {
447
+ t7 = {
448
+ handed,
449
+ own: triggerRef
450
+ };
451
+ $[15] = handed;
452
+ $[16] = triggerRef;
453
+ $[17] = t7;
454
+ } else t7 = $[17];
455
+ const triggers = useRef(t7);
456
+ let t8;
457
+ if ($[18] !== handed || $[19] !== triggerRef) {
458
+ t8 = () => {
459
+ triggers.current = {
460
+ handed,
461
+ own: triggerRef
462
+ };
463
+ };
464
+ $[18] = handed;
465
+ $[19] = triggerRef;
466
+ $[20] = t8;
467
+ } else t8 = $[20];
468
+ useEffect(t8);
469
+ let t9;
470
+ if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
471
+ t9 = (element) => {
472
+ const { handed: fromTrigger, own } = triggers.current;
473
+ return !((own?.current ?? fromTrigger?.current)?.contains(element) ?? false);
474
+ };
475
+ $[21] = t9;
476
+ } else t9 = $[21];
477
+ const isOutsideTrigger = t9;
478
+ const t10 = modal || state === null || !state.isOpen;
479
+ let t11;
480
+ if ($[22] !== state) {
481
+ t11 = (event) => {
482
+ if (pressedWithin.current) {
483
+ pressedWithin.current = false;
484
+ return;
485
+ }
486
+ if (event.target instanceof Element && !isOutsideTrigger(event.target)) return;
487
+ state?.close();
488
+ };
489
+ $[22] = state;
490
+ $[23] = t11;
491
+ } else t11 = $[23];
492
+ let t12;
493
+ if ($[24] === Symbol.for("react.memo_cache_sentinel")) {
494
+ t12 = () => {
495
+ pressedWithin.current = false;
496
+ };
497
+ $[24] = t12;
498
+ } else t12 = $[24];
499
+ let t13;
500
+ if ($[25] !== t10 || $[26] !== t11) {
501
+ t13 = {
502
+ isDisabled: t10,
503
+ onInteractOutside: t11,
504
+ onInteractOutsideStart: t12,
505
+ ref: panel
506
+ };
507
+ $[25] = t10;
508
+ $[26] = t11;
509
+ $[27] = t13;
510
+ } else t13 = $[27];
511
+ useInteractOutside(t13);
413
512
  const descriptionId = useId();
414
513
  const [described, setDescribed] = useState(false);
415
- let t4;
416
- if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
417
- t4 = () => {
514
+ let t14;
515
+ if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
516
+ t14 = () => {
418
517
  setDescribed(true);
419
518
  return () => {
420
519
  setDescribed(false);
421
520
  };
422
521
  };
423
- $[12] = t4;
424
- } else t4 = $[12];
425
- const register = t4;
426
- let t5;
427
- if ($[13] !== descriptionId) {
428
- t5 = {
522
+ $[28] = t14;
523
+ } else t14 = $[28];
524
+ const register = t14;
525
+ let t15;
526
+ if ($[29] !== descriptionId) {
527
+ t15 = {
429
528
  id: descriptionId,
430
529
  register
431
530
  };
432
- $[13] = descriptionId;
433
- $[14] = t5;
434
- } else t5 = $[14];
435
- const description = t5;
436
- const t6 = !modal;
437
- let t7;
438
- if ($[15] !== align || $[16] !== side) {
439
- t7 = placementOf(side, align);
440
- $[15] = align;
441
- $[16] = side;
442
- $[17] = t7;
443
- } else t7 = $[17];
444
- let t8;
445
- if ($[18] !== size) {
446
- t8 = (state) => props(overlay.popup, styles.content, styles[size], popupOrigin(state.placement));
447
- $[18] = size;
448
- $[19] = t8;
449
- } else t8 = $[19];
450
- let t9;
451
- if ($[20] !== className || $[21] !== style || $[22] !== t8) {
452
- t9 = mergeStatefulStyles(t8, {
531
+ $[29] = descriptionId;
532
+ $[30] = t15;
533
+ } else t15 = $[30];
534
+ const description = t15;
535
+ const t16 = !modal;
536
+ let t17;
537
+ if ($[31] !== align || $[32] !== side) {
538
+ t17 = placementOf(side, align);
539
+ $[31] = align;
540
+ $[32] = side;
541
+ $[33] = t17;
542
+ } else t17 = $[33];
543
+ const t18 = modal ? void 0 : isOutsideTrigger;
544
+ let t19;
545
+ if ($[34] !== size) {
546
+ t19 = (render) => props(overlay.popup, styles.content, styles[size], popupOrigin(render.placement));
547
+ $[34] = size;
548
+ $[35] = t19;
549
+ } else t19 = $[35];
550
+ let t20;
551
+ if ($[36] !== className || $[37] !== style || $[38] !== t19) {
552
+ t20 = mergeStatefulStyles(t19, {
453
553
  className,
454
554
  style
455
555
  });
456
- $[20] = className;
457
- $[21] = style;
458
- $[22] = t8;
459
- $[23] = t9;
460
- } else t9 = $[23];
461
- let t10;
462
- if ($[24] !== children || $[25] !== described || $[26] !== description || $[27] !== descriptionId || $[28] !== modal || $[29] !== props$1) {
463
- t10 = modal ? /* @__PURE__ */ jsx(Dialog, {
556
+ $[36] = className;
557
+ $[37] = style;
558
+ $[38] = t19;
559
+ $[39] = t20;
560
+ } else t20 = $[39];
561
+ let t21;
562
+ if ($[40] !== children || $[41] !== described || $[42] !== description || $[43] !== descriptionId || $[44] !== modal || $[45] !== props$1) {
563
+ t21 = modal ? /* @__PURE__ */ jsx(Dialog, {
464
564
  "aria-describedby": described ? descriptionId : void 0,
465
565
  ...props$1,
466
566
  ...props(overlay.popupDialog, focus.ring),
@@ -470,45 +570,48 @@ function PopoverContent(t0) {
470
570
  })
471
571
  }) : /* @__PURE__ */ jsx(PanelDialog, {
472
572
  "aria-describedby": described ? descriptionId : void 0,
573
+ onPressWithin: markPressWithin,
473
574
  ...props$1,
474
575
  children: /* @__PURE__ */ jsx(DescriptionContext, {
475
576
  value: description,
476
577
  children
477
578
  })
478
579
  });
479
- $[24] = children;
480
- $[25] = described;
481
- $[26] = description;
482
- $[27] = descriptionId;
483
- $[28] = modal;
484
- $[29] = props$1;
485
- $[30] = t10;
486
- } else t10 = $[30];
487
- let t11;
488
- if ($[31] !== alignOffset || $[32] !== container || $[33] !== ref || $[34] !== sideOffset || $[35] !== t10 || $[36] !== t6 || $[37] !== t7 || $[38] !== t9 || $[39] !== triggerRef) {
489
- t11 = /* @__PURE__ */ jsx(Popover, {
580
+ $[40] = children;
581
+ $[41] = described;
582
+ $[42] = description;
583
+ $[43] = descriptionId;
584
+ $[44] = modal;
585
+ $[45] = props$1;
586
+ $[46] = t21;
587
+ } else t21 = $[46];
588
+ let t22;
589
+ if ($[47] !== alignOffset || $[48] !== container || $[49] !== merged || $[50] !== sideOffset || $[51] !== t16 || $[52] !== t17 || $[53] !== t18 || $[54] !== t20 || $[55] !== t21 || $[56] !== triggerRef) {
590
+ t22 = /* @__PURE__ */ jsx(OverlayScope, { children: /* @__PURE__ */ jsx(Popover, {
490
591
  crossOffset: alignOffset,
491
- isNonModal: t6,
592
+ isNonModal: t16,
492
593
  offset: sideOffset,
493
- placement: t7,
494
- ref,
594
+ placement: t17,
595
+ ref: merged,
596
+ shouldCloseOnInteractOutside: t18,
495
597
  triggerRef,
496
598
  UNSTABLE_portalContainer: container,
497
- ...t9,
498
- children: t10
499
- });
500
- $[31] = alignOffset;
501
- $[32] = container;
502
- $[33] = ref;
503
- $[34] = sideOffset;
504
- $[35] = t10;
505
- $[36] = t6;
506
- $[37] = t7;
507
- $[38] = t9;
508
- $[39] = triggerRef;
509
- $[40] = t11;
510
- } else t11 = $[40];
511
- return t11;
599
+ ...t20,
600
+ children: t21
601
+ }) });
602
+ $[47] = alignOffset;
603
+ $[48] = container;
604
+ $[49] = merged;
605
+ $[50] = sideOffset;
606
+ $[51] = t16;
607
+ $[52] = t17;
608
+ $[53] = t18;
609
+ $[54] = t20;
610
+ $[55] = t21;
611
+ $[56] = triggerRef;
612
+ $[57] = t22;
613
+ } else t22 = $[57];
614
+ return t22;
512
615
  }
513
616
  /**
514
617
  * Supporting copy under the title. The panel's `aria-describedby` points at