@editora/ui-core 0.1.13 → 0.1.14

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 (73) hide show
  1. package/README.md +96 -6
  2. package/dist/color-picker.cjs.js +1 -1
  3. package/dist/color-picker.esm.js +2 -1
  4. package/dist/components/date-time-utils.d.ts.map +1 -1
  5. package/dist/components/ui-context-menu.d.ts +6 -0
  6. package/dist/components/ui-context-menu.d.ts.map +1 -1
  7. package/dist/components/ui-floating-toolbar.d.ts +3 -0
  8. package/dist/components/ui-floating-toolbar.d.ts.map +1 -1
  9. package/dist/components/ui-gantt.d.ts +30 -1
  10. package/dist/components/ui-gantt.d.ts.map +1 -1
  11. package/dist/components/ui-hover-card.d.ts +3 -0
  12. package/dist/components/ui-hover-card.d.ts.map +1 -1
  13. package/dist/components/ui-positioner.d.ts.map +1 -1
  14. package/dist/context-menu.cjs.js +12 -12
  15. package/dist/context-menu.esm.js +159 -132
  16. package/dist/date-field.cjs.js +1 -1
  17. package/dist/date-field.esm.js +2 -1
  18. package/dist/date-picker.cjs.js +1 -1
  19. package/dist/date-picker.esm.js +2 -1
  20. package/dist/date-range-picker.cjs.js +1 -1
  21. package/dist/date-range-picker.esm.js +2 -1
  22. package/dist/date-range-time-picker.cjs.js +2 -2
  23. package/dist/date-range-time-picker.esm.js +2 -1
  24. package/dist/date-time-picker.cjs.js +2 -2
  25. package/dist/date-time-picker.esm.js +2 -1
  26. package/dist/date-time-utils-66480de4.js +1 -0
  27. package/dist/date-time-utils-a2c7af25.mjs +307 -0
  28. package/dist/floating-toolbar.cjs.js +4 -4
  29. package/dist/floating-toolbar.esm.js +52 -25
  30. package/dist/gantt.cjs.js +656 -74
  31. package/dist/gantt.esm.js +1050 -100
  32. package/dist/hover-card.cjs.js +4 -4
  33. package/dist/hover-card.esm.js +61 -38
  34. package/dist/index.cjs.js +1 -1
  35. package/dist/index.esm.js +158 -146
  36. package/dist/menu.cjs.js +1 -1
  37. package/dist/menu.esm.js +2 -2
  38. package/dist/menubar.cjs.js +1 -1
  39. package/dist/menubar.esm.js +2 -2
  40. package/dist/popover.cjs.js +1 -1
  41. package/dist/popover.esm.js +2 -2
  42. package/dist/portal-c69756c0.js +1 -0
  43. package/dist/portal-fe73e5cc.mjs +123 -0
  44. package/dist/portal.d.ts +29 -3
  45. package/dist/portal.d.ts.map +1 -1
  46. package/dist/positioner-33529bb8.js +1 -0
  47. package/dist/positioner-e9770c66.mjs +582 -0
  48. package/dist/positioner.cjs.js +2 -2
  49. package/dist/positioner.esm.js +36 -26
  50. package/dist/primitives/positioner.d.ts +199 -1
  51. package/dist/primitives/positioner.d.ts.map +1 -1
  52. package/dist/{runtime-864efe2f.mjs → runtime-161f68a2.mjs} +24 -23
  53. package/dist/runtime-3f13807b.js +1 -0
  54. package/dist/runtime.cjs.js +1 -1
  55. package/dist/runtime.d.ts +2 -0
  56. package/dist/runtime.d.ts.map +1 -1
  57. package/dist/runtime.esm.js +39 -24
  58. package/dist/split-button.cjs.js +1 -1
  59. package/dist/split-button.esm.js +2 -2
  60. package/dist/time-field.cjs.js +1 -1
  61. package/dist/time-field.esm.js +14 -13
  62. package/dist/time-picker.cjs.js +1 -1
  63. package/dist/time-picker.esm.js +2 -1
  64. package/dist/tooltip.cjs.js +1 -1
  65. package/dist/tooltip.esm.js +2 -1
  66. package/package.json +2 -2
  67. package/dist/date-time-utils-378ecc21.js +0 -1
  68. package/dist/date-time-utils-a8b17ea7.mjs +0 -299
  69. package/dist/portal-9060f7a6.mjs +0 -114
  70. package/dist/portal-d9bae456.js +0 -1
  71. package/dist/positioner-16f3cca1.mjs +0 -132
  72. package/dist/positioner-43b1c75a.js +0 -1
  73. package/dist/runtime-668914fe.js +0 -1
package/dist/index.esm.js CHANGED
@@ -1,6 +1,6 @@
1
- import { E as R } from "./ElementBase-909688f3.mjs";
2
- import { UICollection as M } from "./collection.esm.js";
3
- import { U as G, f as z, g as N, m as V, r as H, s as _, a as j } from "./listbox-308789a0.mjs";
1
+ import { E as M } from "./ElementBase-909688f3.mjs";
2
+ import { UICollection as B } from "./collection.esm.js";
3
+ import { U as G, f as V, g as z, m as N, r as j, s as H, a as _ } from "./listbox-308789a0.mjs";
4
4
  import { UIRovingFocusGroup as K } from "./roving-focus-group.esm.js";
5
5
  import { U as Q, c as J, b as X, d as Y, f as Z, a as $ } from "./tree-dcd74a4a.mjs";
6
6
  import { UITreeItem as oe } from "./tree-item.esm.js";
@@ -9,19 +9,19 @@ import { UITooltip as ne } from "./tooltip.esm.js";
9
9
  import { UIDropdown as ie } from "./dropdown.esm.js";
10
10
  import { UIInput as me } from "./input.esm.js";
11
11
  import { UIPasswordField as ce } from "./password-field.esm.js";
12
- import { UIForm as xe } from "./form.esm.js";
13
- import { UIDescription as de } from "./description.esm.js";
12
+ import { UIForm as de } from "./form.esm.js";
13
+ import { UIDescription as ue } from "./description.esm.js";
14
14
  import { UIFieldError as Ue } from "./field-error.esm.js";
15
15
  import { UIControlGroup as be } from "./control-group.esm.js";
16
16
  import { UIFieldset as ye } from "./fieldset.esm.js";
17
- import { UIPopover as ve } from "./popover.esm.js";
17
+ import { UIPopover as Te } from "./popover.esm.js";
18
18
  import { UITabs as Se } from "./tabs.esm.js";
19
19
  import { UIMenu as De } from "./menu.esm.js";
20
- import { U as Ce, c as Ee, a as Fe, g as Le, h as we, r as Re, u as Be } from "./icon-e2a85cc1.mjs";
20
+ import { U as we, c as Ce, a as Ee, g as Fe, h as Le, r as Me, u as Re } from "./icon-e2a85cc1.mjs";
21
21
  import { UIToast as Oe } from "./toast.esm.js";
22
- import { UILabel as ze } from "./label.esm.js";
23
- import { UIPagination as Ve } from "./pagination.esm.js";
24
- import { UIHoverCard as _e } from "./hover-card.esm.js";
22
+ import { UILabel as Ve } from "./label.esm.js";
23
+ import { UIPagination as Ne } from "./pagination.esm.js";
24
+ import { UIHoverCard as He } from "./hover-card.esm.js";
25
25
  import { UICard as qe } from "./card.esm.js";
26
26
  import { UICollapsible as We } from "./collapsible.esm.js";
27
27
  import { UIDirectionProvider as Je } from "./direction-provider.esm.js";
@@ -37,18 +37,18 @@ import { UIToggleGroup as xo } from "./toggle-group.esm.js";
37
37
  import { UIAlertDialog as Io } from "./alert-dialog.esm.js";
38
38
  import { UIAspectRatio as go } from "./aspect-ratio.esm.js";
39
39
  import { UIAvatar as ho } from "./avatar.esm.js";
40
- import { UIBadge as To } from "./badge.esm.js";
40
+ import { UIBadge as vo } from "./badge.esm.js";
41
41
  import { UITable as Po } from "./table.esm.js";
42
42
  import { UINavigationMenu as Ao } from "./navigation-menu.esm.js";
43
43
  import { UIMenubar as ko } from "./menubar.esm.js";
44
- import { UIContextMenu as Eo } from "./context-menu.esm.js";
45
- import { UIPresence as Lo } from "./presence.esm.js";
46
- import { UIProgress as Ro } from "./progress.esm.js";
47
- import { UIMeter as Mo } from "./meter.esm.js";
44
+ import { UIContextMenu as Co } from "./context-menu.esm.js";
45
+ import { UIPresence as Fo } from "./presence.esm.js";
46
+ import { UIProgress as Mo } from "./progress.esm.js";
47
+ import { UIMeter as Bo } from "./meter.esm.js";
48
48
  import { UIScrollArea as Go } from "./scroll-area.esm.js";
49
- import { UISeparator as No } from "./separator.esm.js";
50
- import { UISlot as Ho } from "./slot.esm.js";
51
- import { UIToolbar as jo } from "./toolbar.esm.js";
49
+ import { UISeparator as zo } from "./separator.esm.js";
50
+ import { UISlot as jo } from "./slot.esm.js";
51
+ import { UIToolbar as _o } from "./toolbar.esm.js";
52
52
  import { UIPortal as Ko } from "./portal.esm.js";
53
53
  import { UIVisuallyHidden as Qo } from "./visually-hidden.esm.js";
54
54
  import { UIBreadcrumb as Xo } from "./breadcrumb.esm.js";
@@ -60,21 +60,21 @@ import { UILayout as st } from "./layout.esm.js";
60
60
  import { UIBlockControls as ft } from "./block-controls.esm.js";
61
61
  import { UIPluginPanel as pt } from "./plugin-panel.esm.js";
62
62
  import { UIFloatingToolbar as lt } from "./floating-toolbar.esm.js";
63
- import { UISelectionPopup as ut } from "./selection-popup.esm.js";
63
+ import { UISelectionPopup as xt } from "./selection-popup.esm.js";
64
64
  import { UICommand as It } from "./command.esm.js";
65
65
  import { UICommandPalette as gt } from "./command-palette.esm.js";
66
66
  import { UITextarea as ht } from "./textarea.esm.js";
67
- import { UIField as Tt } from "./field.esm.js";
67
+ import { UIField as vt } from "./field.esm.js";
68
68
  import { UINumberField as Pt } from "./number-field.esm.js";
69
69
  import { UITagsInput as At } from "./tags-input.esm.js";
70
- import { UIOtpInput as kt, UIPinInput as Ct } from "./pin-input.esm.js";
71
- import { UIFileUpload as Ft } from "./file-upload.esm.js";
72
- import { UIDropzone as wt } from "./dropzone.esm.js";
73
- import { UIMultiSelect as Bt } from "./multi-select.esm.js";
70
+ import { UIOtpInput as kt, UIPinInput as wt } from "./pin-input.esm.js";
71
+ import { UIFileUpload as Et } from "./file-upload.esm.js";
72
+ import { UIDropzone as Lt } from "./dropzone.esm.js";
73
+ import { UIMultiSelect as Rt } from "./multi-select.esm.js";
74
74
  import { UISplitButton as Ot } from "./split-button.esm.js";
75
- import { UITransferList as zt } from "./transfer-list.esm.js";
76
- import { UISortable as Vt } from "./sortable.esm.js";
77
- import { UIInlineEdit as _t } from "./inline-edit.esm.js";
75
+ import { UITransferList as Vt } from "./transfer-list.esm.js";
76
+ import { UISortable as Nt } from "./sortable.esm.js";
77
+ import { UIInlineEdit as Ht } from "./inline-edit.esm.js";
78
78
  import { UICombobox as qt } from "./combobox.esm.js";
79
79
  import { U as Wt, n as Qt, r as Jt } from "./panel-group-a376cc5e.mjs";
80
80
  import { UIPanel as Yt } from "./panel.esm.js";
@@ -85,22 +85,22 @@ import { UIPositioner as nr } from "./positioner.esm.js";
85
85
  import { UIAnchor as ir } from "./anchor.esm.js";
86
86
  import { UIAlert as mr } from "./alert.esm.js";
87
87
  import { UIMarquee as cr } from "./marquee.esm.js";
88
- import { UIAnimatedText as xr } from "./animated-text.esm.js";
89
- import { UISpinningText as dr } from "./spinning-text.esm.js";
88
+ import { UIAnimatedText as dr } from "./animated-text.esm.js";
89
+ import { UISpinningText as ur } from "./spinning-text.esm.js";
90
90
  import { UINumberTicker as Ur } from "./number-ticker.esm.js";
91
91
  import { UIAnimatedList as br } from "./animated-list.esm.js";
92
92
  import { UIAnimatedBeam as yr } from "./animated-beam.esm.js";
93
- import { UIIconCloud as vr } from "./icon-cloud.esm.js";
93
+ import { UIIconCloud as Tr } from "./icon-cloud.esm.js";
94
94
  import { UIDock as Sr } from "./dock.esm.js";
95
95
  import { UISkeleton as Dr } from "./skeleton.esm.js";
96
- import { UIEmptyState as Cr } from "./empty-state.esm.js";
97
- import { UIDataTable as Fr } from "./data-table.esm.js";
98
- import { UIChart as wr } from "./chart.esm.js";
99
- import { UITimeline as Br } from "./timeline.esm.js";
96
+ import { UIEmptyState as wr } from "./empty-state.esm.js";
97
+ import { UIDataTable as Er } from "./data-table.esm.js";
98
+ import { UIChart as Lr } from "./chart.esm.js";
99
+ import { UITimeline as Rr } from "./timeline.esm.js";
100
100
  import { U as Or } from "./calendar-2c11b824.mjs";
101
- import { UIColorPicker as zr } from "./color-picker.esm.js";
102
- import { UIDatePicker as Vr } from "./date-picker.esm.js";
103
- import { UIDateRangePicker as _r } from "./date-range-picker.esm.js";
101
+ import { UIColorPicker as Vr } from "./color-picker.esm.js";
102
+ import { UIDatePicker as Nr } from "./date-picker.esm.js";
103
+ import { UIDateRangePicker as Hr } from "./date-range-picker.esm.js";
104
104
  import { UITimePicker as qr } from "./time-picker.esm.js";
105
105
  import { UIDateField as Wr } from "./date-field.esm.js";
106
106
  import { UITimeField as Jr } from "./time-field.esm.js";
@@ -112,26 +112,26 @@ import { UIWizard as na } from "./wizard.esm.js";
112
112
  import { UIQuickActions as ia } from "./quick-actions.esm.js";
113
113
  import { UIRating as ma } from "./rating.esm.js";
114
114
  import { UIOdometer as ca } from "./odometer.esm.js";
115
- import { UIBox as xa } from "./box.esm.js";
116
- import { UIFlex as da } from "./flex.esm.js";
115
+ import { UIBox as da } from "./box.esm.js";
116
+ import { UIFlex as ua } from "./flex.esm.js";
117
117
  import { UIGrid as Ua } from "./grid.esm.js";
118
118
  import { UIPlacementGrid as ba } from "./placement-grid.esm.js";
119
119
  import { UIMasonryGrid as ya } from "./masonry-grid.esm.js";
120
- import { UISection as va } from "./section.esm.js";
120
+ import { UISection as Ta } from "./section.esm.js";
121
121
  import { UIContainer as Sa } from "./container.esm.js";
122
- import { A as Da, D as ka, a as Ca, m as Ea, h as Fa, j as La, i as wa, b as Ra, f as Ba, c as Ma, e as Oa, l as Ga, k as za, d as Na, g as Va, p as Ha, r as _a, s as ja, w as qa } from "./runtime-864efe2f.mjs";
123
- import { b as Wa, a as Qa, c as Ja, s as Xa } from "./portal-9060f7a6.mjs";
122
+ import { A as Da, D as ka, a as wa, m as Ca, h as Ea, j as Fa, i as La, b as Ma, f as Ra, c as Ba, e as Oa, l as Ga, k as Va, d as za, g as Na, p as ja, r as Ha, s as _a, w as qa } from "./runtime-161f68a2.mjs";
123
+ import { b as Wa, a as Qa, c as Ja, s as Xa } from "./portal-fe73e5cc.mjs";
124
124
  import { O as Za } from "./overlayManager-5bbd4dc3.mjs";
125
125
  import { a as en, g as on, r as tn } from "./scroll-lock-31da444f.mjs";
126
126
  import { c as an } from "./dismissable-layer-9c7e6b58.mjs";
127
127
  import { c as sn } from "./focus-scope-103833ee.mjs";
128
- import { c as mn, a as pn } from "./positioner-16f3cca1.mjs";
129
- import { f as ln, b as xn, a as un, c as dn, d as In, n as Un } from "./collection-a1aac0c6.mjs";
130
- import { f as bn, g as hn, m as yn, r as Tn, s as vn } from "./roving-focus-group-4350c9a7.mjs";
131
- import { UIOrbiter as Sn } from "./orbiter.esm.js";
128
+ import { j as mn, h as pn, a as cn, c as ln, l as dn, b as xn, e as un, d as In, f as Un, g as gn, k as bn, o as hn, s as yn, i as vn } from "./positioner-e9770c66.mjs";
129
+ import { f as Pn, b as Sn, a as An, c as Dn, d as kn, n as wn } from "./collection-a1aac0c6.mjs";
130
+ import { f as En, g as Fn, m as Ln, r as Mn, s as Rn } from "./roving-focus-group-4350c9a7.mjs";
131
+ import { UIOrbiter as On } from "./orbiter.esm.js";
132
132
  import "./menu-item-styles-27fdbac4.mjs";
133
133
  import "@editora/icons";
134
- import "./date-time-utils-a8b17ea7.mjs";
134
+ import "./date-time-utils-a2c7af25.mjs";
135
135
  const m = [], l = /* @__PURE__ */ new WeakMap();
136
136
  class y {
137
137
  constructor(o) {
@@ -201,7 +201,7 @@ function k(e) {
201
201
  }
202
202
  };
203
203
  }
204
- function C(e) {
204
+ function w(e) {
205
205
  let o, t = !0;
206
206
  const r = () => {
207
207
  t = !1;
@@ -222,14 +222,14 @@ function C(e) {
222
222
  };
223
223
  }
224
224
  const b = "ui-toast-root";
225
- function T() {
225
+ function v() {
226
226
  if (typeof document > "u")
227
227
  return null;
228
228
  let e = document.getElementById(b);
229
229
  return e || (e = document.createElement("div"), e.id = b, e.style.position = "fixed", e.style.right = "16px", e.style.bottom = "16px", e.style.zIndex = "9999", document.body.appendChild(e)), e;
230
230
  }
231
- function E(e, o = {}) {
232
- const t = T();
231
+ function C(e, o = {}) {
232
+ const t = v();
233
233
  if (!t)
234
234
  return;
235
235
  const r = document.createElement("div");
@@ -248,9 +248,9 @@ function E(e, o = {}) {
248
248
  }
249
249
  };
250
250
  }
251
- const d = {
251
+ const u = {
252
252
  trap(e) {
253
- const o = 'a[href], area[href], input:not([disabled]):not([type=hidden]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, [tabindex]:not([tabindex="-1"])', t = d.__activeTraps || (d.__activeTraps = []), r = Symbol("focus-trap"), i = document.activeElement;
253
+ const o = 'a[href], area[href], input:not([disabled]):not([type=hidden]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, [tabindex]:not([tabindex="-1"])', t = u.__activeTraps || (u.__activeTraps = []), r = Symbol("focus-trap"), i = document.activeElement;
254
254
  function p() {
255
255
  return Array.from(e.querySelectorAll(o)).filter((a) => !a.hasAttribute("disabled") && a.getAttribute("aria-hidden") !== "true");
256
256
  }
@@ -258,7 +258,7 @@ const d = {
258
258
  var a;
259
259
  return t.length > 0 && ((a = t[t.length - 1]) == null ? void 0 : a.id) === r;
260
260
  }
261
- function x() {
261
+ function d() {
262
262
  const a = p(), s = a.find((f) => f.hasAttribute("autofocus")) || a[0] || e;
263
263
  s.hasAttribute("tabindex") || s.setAttribute("tabindex", "-1");
264
264
  try {
@@ -272,12 +272,12 @@ const d = {
272
272
  const n = document.activeElement;
273
273
  if (!(!n || !e.contains(n)))
274
274
  if (a.key === "Tab") {
275
- const s = p(), f = s[0], u = s[s.length - 1];
275
+ const s = p(), f = s[0], x = s[s.length - 1];
276
276
  if (s.length === 0) {
277
- a.preventDefault(), x();
277
+ a.preventDefault(), d();
278
278
  return;
279
279
  }
280
- a.shiftKey ? document.activeElement === f && (a.preventDefault(), (u || f).focus()) : document.activeElement === u && (a.preventDefault(), (f || u).focus());
280
+ a.shiftKey ? document.activeElement === f && (a.preventDefault(), (x || f).focus()) : document.activeElement === x && (a.preventDefault(), (f || x).focus());
281
281
  } else
282
282
  a.key === "Escape" && e.dispatchEvent(new CustomEvent("escape"));
283
283
  }
@@ -285,9 +285,9 @@ const d = {
285
285
  if (!c())
286
286
  return;
287
287
  const n = a.target;
288
- n && !e.contains(n) && x();
288
+ n && !e.contains(n) && d();
289
289
  }
290
- return t.push({ id: r }), document.addEventListener("keydown", I), document.addEventListener("focusin", U, !0), x(), {
290
+ return t.push({ id: r }), document.addEventListener("keydown", I), document.addEventListener("focusin", U, !0), d(), {
291
291
  release() {
292
292
  const a = t.findIndex((n) => n.id === r);
293
293
  a >= 0 && t.splice(a, 1), document.removeEventListener("keydown", I), document.removeEventListener("focusin", U, !0);
@@ -299,19 +299,19 @@ const d = {
299
299
  };
300
300
  }
301
301
  }, h = {};
302
- function v(e) {
302
+ function T(e) {
303
303
  if (!e || !e.name)
304
304
  throw new Error("Plugin must have a name");
305
- h[e.name] = e, e.install && e.install({ registerUIPlugin: v });
305
+ h[e.name] = e, e.install && e.install({ registerUIPlugin: T });
306
306
  }
307
- function F() {
307
+ function E() {
308
308
  return Object.values(h);
309
309
  }
310
310
  export {
311
311
  Da as AlertDialogManager,
312
312
  ka as DialogManager,
313
- R as ElementBase,
314
- d as FocusManager,
313
+ M as ElementBase,
314
+ u as FocusManager,
315
315
  Za as OverlayManager,
316
316
  Ye as UIAccordion,
317
317
  mr as UIAlert,
@@ -319,101 +319,101 @@ export {
319
319
  ir as UIAnchor,
320
320
  yr as UIAnimatedBeam,
321
321
  br as UIAnimatedList,
322
- xr as UIAnimatedText,
322
+ dr as UIAnimatedText,
323
323
  et as UIAppHeader,
324
324
  go as UIAspectRatio,
325
325
  ho as UIAvatar,
326
- To as UIBadge,
326
+ vo as UIBadge,
327
327
  ft as UIBlockControls,
328
- xa as UIBox,
328
+ da as UIBox,
329
329
  Xo as UIBreadcrumb,
330
330
  re as UIButton,
331
331
  Or as UICalendar,
332
332
  qe as UICard,
333
- wr as UIChart,
333
+ Lr as UIChart,
334
334
  $e as UICheckbox,
335
335
  We as UICollapsible,
336
- M as UICollection,
337
- zr as UIColorPicker,
336
+ B as UICollection,
337
+ Vr as UIColorPicker,
338
338
  qt as UICombobox,
339
339
  It as UICommand,
340
340
  gt as UICommandPalette,
341
341
  Sa as UIContainer,
342
- Eo as UIContextMenu,
342
+ Co as UIContextMenu,
343
343
  be as UIControlGroup,
344
- Fr as UIDataTable,
344
+ Er as UIDataTable,
345
345
  Wr as UIDateField,
346
- Vr as UIDatePicker,
347
- _r as UIDateRangePicker,
346
+ Nr as UIDatePicker,
347
+ Hr as UIDateRangePicker,
348
348
  $r as UIDateRangeTimePicker,
349
349
  Yr as UIDateTimePicker,
350
- de as UIDescription,
350
+ ue as UIDescription,
351
351
  at as UIDialog,
352
352
  Je as UIDirectionProvider,
353
353
  or as UIDismissableLayer,
354
354
  Sr as UIDock,
355
355
  tt as UIDrawer,
356
356
  ie as UIDropdown,
357
- wt as UIDropzone,
358
- Cr as UIEmptyState,
359
- Tt as UIField,
357
+ Lt as UIDropzone,
358
+ wr as UIEmptyState,
359
+ vt as UIField,
360
360
  Ue as UIFieldError,
361
361
  ye as UIFieldset,
362
- Ft as UIFileUpload,
363
- da as UIFlex,
362
+ Et as UIFileUpload,
363
+ ua as UIFlex,
364
364
  lt as UIFloatingToolbar,
365
365
  rr as UIFocusScope,
366
- xe as UIForm,
366
+ de as UIForm,
367
367
  oa as UIGantt,
368
368
  Ua as UIGrid,
369
- _e as UIHoverCard,
370
- Ce as UIIcon,
371
- vr as UIIconCloud,
372
- _t as UIInlineEdit,
369
+ He as UIHoverCard,
370
+ we as UIIcon,
371
+ Tr as UIIconCloud,
372
+ Ht as UIInlineEdit,
373
373
  me as UIInput,
374
- ze as UILabel,
374
+ Ve as UILabel,
375
375
  st as UILayout,
376
376
  G as UIListbox,
377
377
  cr as UIMarquee,
378
378
  ya as UIMasonryGrid,
379
379
  De as UIMenu,
380
380
  ko as UIMenubar,
381
- Mo as UIMeter,
382
- Bt as UIMultiSelect,
381
+ Bo as UIMeter,
382
+ Rt as UIMultiSelect,
383
383
  Ao as UINavigationMenu,
384
384
  Pt as UINumberField,
385
385
  Ur as UINumberTicker,
386
386
  ca as UIOdometer,
387
- Sn as UIOrbiter,
387
+ On as UIOrbiter,
388
388
  kt as UIOtpInput,
389
- Ve as UIPagination,
389
+ Ne as UIPagination,
390
390
  Yt as UIPanel,
391
391
  Wt as UIPanelGroup,
392
392
  ce as UIPasswordField,
393
- Ct as UIPinInput,
393
+ wt as UIPinInput,
394
394
  ba as UIPlacementGrid,
395
395
  pt as UIPluginPanel,
396
- ve as UIPopover,
396
+ Te as UIPopover,
397
397
  Ko as UIPortal,
398
398
  nr as UIPositioner,
399
- Lo as UIPresence,
400
- Ro as UIProgress,
399
+ Fo as UIPresence,
400
+ Mo as UIProgress,
401
401
  ia as UIQuickActions,
402
402
  oo as UIRadio,
403
403
  ro as UIRadioGroup,
404
404
  ma as UIRating,
405
405
  K as UIRovingFocusGroup,
406
406
  Go as UIScrollArea,
407
- va as UISection,
407
+ Ta as UISection,
408
408
  mo as UISelect,
409
- ut as UISelectionPopup,
410
- No as UISeparator,
409
+ xt as UISelectionPopup,
410
+ zo as UISeparator,
411
411
  Zo as UISidebar,
412
412
  Dr as UISkeleton,
413
413
  io as UISlider,
414
- Ho as UISlot,
415
- Vt as UISortable,
416
- dr as UISpinningText,
414
+ jo as UISlot,
415
+ Nt as UISortable,
416
+ ur as UISpinningText,
417
417
  Ot as UISplitButton,
418
418
  $t as UISplitter,
419
419
  ra as UIStepper,
@@ -424,79 +424,91 @@ export {
424
424
  ht as UITextarea,
425
425
  Jr as UITimeField,
426
426
  qr as UITimePicker,
427
- Br as UITimeline,
427
+ Rr as UITimeline,
428
428
  Oe as UIToast,
429
429
  co as UIToggle,
430
430
  xo as UIToggleGroup,
431
- jo as UIToolbar,
431
+ _o as UIToolbar,
432
432
  ne as UITooltip,
433
- zt as UITransferList,
433
+ Vt as UITransferList,
434
434
  Q as UITree,
435
435
  oe as UITreeItem,
436
436
  Qo as UIVisuallyHidden,
437
437
  na as UIWizard,
438
438
  en as acquireBodyScrollLock,
439
- Ca as alert,
440
- Ea as applyTheme,
439
+ wa as alert,
440
+ Ca as applyTheme,
441
+ mn as arrowMiddleware,
442
+ pn as autoPlacementMiddleware,
441
443
  Wa as autoUpdatePosition,
442
- Fa as baselineAccentPalettes,
443
- La as baselineDarkTokens,
444
- wa as baselineLightTokens,
445
- Ee as clearCustomIcons,
444
+ cn as autoUpdatePositioner,
445
+ Ea as baselineAccentPalettes,
446
+ Fa as baselineDarkTokens,
447
+ La as baselineLightTokens,
448
+ Ce as clearCustomIcons,
446
449
  Qa as computePosition,
447
- mn as computePositionState,
448
- C as computed,
449
- Ra as confirm,
450
- Ba as confirmDialog,
451
- Ma as createAlertDialogManager,
450
+ ln as computePositionState,
451
+ w as computed,
452
+ Ma as confirm,
453
+ Ra as confirmDialog,
454
+ Ba as createAlertDialogManager,
452
455
  Oa as createDialogManager,
453
456
  an as createDismissableLayer,
454
457
  sn as createFocusScope,
455
458
  Ja as createPortalContainer,
456
- pn as createPositioner,
459
+ dn as createPositioner,
457
460
  D as createSignal,
458
461
  Ga as createThemeTokens,
459
- za as defaultTokens,
460
- Na as dismissAllAlertDialogs,
461
- Va as dismissAllDialogs,
462
+ xn as createVirtualPoint,
463
+ un as createVirtualRange,
464
+ In as createVirtualRect,
465
+ Va as defaultTokens,
466
+ Un as detectPositionerOverflow,
467
+ za as dismissAllAlertDialogs,
468
+ Na as dismissAllDialogs,
462
469
  k as effect,
463
- ln as findFirstEnabledIndex,
464
- xn as findIndexByValue,
465
- un as findLastEnabledIndex,
466
- z as findListboxTypeaheadIndex,
467
- dn as findNextEnabledIndex,
470
+ Pn as findFirstEnabledIndex,
471
+ Sn as findIndexByValue,
472
+ An as findLastEnabledIndex,
473
+ V as findListboxTypeaheadIndex,
474
+ Dn as findNextEnabledIndex,
468
475
  J as findParentTreeRecordIndex,
469
476
  X as findTreeRecordIndexById,
470
477
  Y as findTreeTypeaheadMatch,
471
- In as findTypeaheadMatch,
478
+ kn as findTypeaheadMatch,
472
479
  Z as flattenTree,
473
480
  $ as flattenVisibleTree,
474
- bn as focusRovingItem,
481
+ gn as flipMiddleware,
482
+ En as focusRovingItem,
475
483
  on as getBodyScrollLockCount,
476
- Fe as getIcon,
477
- Le as getIconVariant,
478
- N as getListboxBoundaryIndex,
479
- F as getRegisteredPlugins,
480
- hn as getRovingFocusBoundaryIndex,
481
- we as hasIcon,
482
- V as moveListboxActiveIndex,
483
- yn as moveRovingFocusIndex,
484
- Un as normalizeCollectionText,
484
+ Ee as getIcon,
485
+ Fe as getIconVariant,
486
+ z as getListboxBoundaryIndex,
487
+ E as getRegisteredPlugins,
488
+ Fn as getRovingFocusBoundaryIndex,
489
+ Le as hasIcon,
490
+ bn as hideMiddleware,
491
+ N as moveListboxActiveIndex,
492
+ Ln as moveRovingFocusIndex,
493
+ wn as normalizeCollectionText,
485
494
  Qt as normalizePanelLayout,
486
- Ha as prompt,
487
- Re as registerIcon,
488
- _a as registerThemeHost,
489
- v as registerUIPlugin,
495
+ hn as offsetMiddleware,
496
+ ja as prompt,
497
+ Me as registerIcon,
498
+ Ha as registerThemeHost,
499
+ T as registerUIPlugin,
490
500
  tn as releaseBodyScrollLock,
491
501
  Jt as resizePanelPair,
492
- H as resolveListboxActiveIndex,
493
- Tn as resolveRovingFocusIndex,
494
- _ as scrollListboxItemIntoView,
495
- ja as showDialog,
502
+ j as resolveListboxActiveIndex,
503
+ Mn as resolveRovingFocusIndex,
504
+ H as scrollListboxItemIntoView,
505
+ yn as shiftMiddleware,
506
+ _a as showDialog,
496
507
  Xa as showPortalFor,
497
- E as showToast,
498
- j as syncActiveDescendant,
499
- vn as syncRovingTabStops,
500
- Be as unregisterIcon,
508
+ C as showToast,
509
+ vn as sizeMiddleware,
510
+ _ as syncActiveDescendant,
511
+ Rn as syncRovingTabStops,
512
+ Re as unregisterIcon,
501
513
  qa as withAccentPalette
502
514
  };
package/dist/menu.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const v=require("./ElementBase-1b301e7f.js"),y=require("./portal-d9bae456.js"),x=require("./dismissable-layer-193e3bed.js"),A=require("./positioner-43b1c75a.js"),E=require("./menu-item-styles-83ad1e22.js");function g(n){return n==="top"||n==="left"||n==="right"?n:"bottom"}function k(n){return n==="sm"||n==="1"||n==="compact"?"sm":n==="lg"||n==="3"||n==="comfortable"?"lg":"md"}function S(n){return!n||n==="default"?null:n==="none"?"0px":n==="sm"?"8px":n==="md"?"12px":n==="lg"?"16px":n==="full"?"999px":n==="square"?"6px":n==="soft"?"14px":/^\d+(\.\d+)?$/.test(n)?`${n}px`:/^\d+(\.\d+)?(px|rem|em|%)$/.test(n)?n:null}function l(n,e){return n.getAttribute(e)||""}function h(n,e){if(n==null)return e;const i=String(n).toLowerCase();return i!=="false"&&i!=="0"}function u(){return['[role="menuitem"]','[role="menuitemcheckbox"]','[role="menuitemradio"]',".item","[data-menu-item]"].join(", ")}function m(n){return n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true"||!!n.disabled}function p(n){const e=typeof n.composedPath=="function"?n.composedPath():[];for(const t of e)if(t instanceof HTMLElement&&t.matches(u()))return t;const i=n.target;return i instanceof HTMLElement?i.closest(u()):null}const w=new Set(["variant","density","shape","elevation","tone","size","radius"]),I=["--ui-menu-bg","--ui-menu-color","--ui-menu-border-color","--ui-menu-border","--ui-menu-shadow","--ui-menu-radius","--ui-menu-padding","--ui-menu-min-width","--ui-menu-ring","--ui-menu-backdrop","--ui-menu-z","--ui-menu-item-radius","--ui-menu-item-gap","--ui-menu-item-min-height","--ui-menu-item-pad-y","--ui-menu-item-pad-x","--ui-menu-item-font-size","--ui-menu-item-line-height","--ui-menu-separator-margin","--ui-menu-item-hover-bg","--ui-menu-item-active-color"],C=`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const v=require("./ElementBase-1b301e7f.js"),y=require("./portal-c69756c0.js"),x=require("./dismissable-layer-193e3bed.js"),A=require("./positioner-33529bb8.js"),E=require("./menu-item-styles-83ad1e22.js");function g(n){return n==="top"||n==="left"||n==="right"?n:"bottom"}function k(n){return n==="sm"||n==="1"||n==="compact"?"sm":n==="lg"||n==="3"||n==="comfortable"?"lg":"md"}function S(n){return!n||n==="default"?null:n==="none"?"0px":n==="sm"?"8px":n==="md"?"12px":n==="lg"?"16px":n==="full"?"999px":n==="square"?"6px":n==="soft"?"14px":/^\d+(\.\d+)?$/.test(n)?`${n}px`:/^\d+(\.\d+)?(px|rem|em|%)$/.test(n)?n:null}function l(n,e){return n.getAttribute(e)||""}function h(n,e){if(n==null)return e;const i=String(n).toLowerCase();return i!=="false"&&i!=="0"}function u(){return['[role="menuitem"]','[role="menuitemcheckbox"]','[role="menuitemradio"]',".item","[data-menu-item]"].join(", ")}function m(n){return n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true"||!!n.disabled}function p(n){const e=typeof n.composedPath=="function"?n.composedPath():[];for(const t of e)if(t instanceof HTMLElement&&t.matches(u()))return t;const i=n.target;return i instanceof HTMLElement?i.closest(u()):null}const w=new Set(["variant","density","shape","elevation","tone","size","radius"]),I=["--ui-menu-bg","--ui-menu-color","--ui-menu-border-color","--ui-menu-border","--ui-menu-shadow","--ui-menu-radius","--ui-menu-padding","--ui-menu-min-width","--ui-menu-ring","--ui-menu-backdrop","--ui-menu-z","--ui-menu-item-radius","--ui-menu-item-gap","--ui-menu-item-min-height","--ui-menu-item-pad-y","--ui-menu-item-pad-x","--ui-menu-item-font-size","--ui-menu-item-line-height","--ui-menu-separator-margin","--ui-menu-item-hover-bg","--ui-menu-item-active-color"],C=`
2
2
  :host {
3
3
  --ui-menu-bg: var(--base-menu-bg, var(--color-panel-solid, var(--ui-color-surface, var(--ui-surface, #ffffff))));
4
4
  --ui-menu-color: var(--ui-color-text, var(--ui-text, #0f172a));
package/dist/menu.esm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { E as _ } from "./ElementBase-909688f3.mjs";
2
- import { c as v } from "./portal-9060f7a6.mjs";
2
+ import { c as v } from "./portal-fe73e5cc.mjs";
3
3
  import { c as y } from "./dismissable-layer-9c7e6b58.mjs";
4
- import { a as x } from "./positioner-16f3cca1.mjs";
4
+ import { l as x } from "./positioner-e9770c66.mjs";
5
5
  import { c as A } from "./menu-item-styles-27fdbac4.mjs";
6
6
  function g(n) {
7
7
  return n === "top" || n === "left" || n === "right" ? n : "bottom";
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const w=require("./ElementBase-1b301e7f.js"),P=require("./portal-d9bae456.js"),E=require("./collection-a2969ad2.js"),k=require("./dismissable-layer-193e3bed.js"),m=require("./roving-focus-group-5c059bf9.js"),I=require("./positioner-43b1c75a.js");require("./listbox-ef2f708e.js");const L=require("./menu-item-styles-83ad1e22.js");require("./collection.cjs.js");const C=":scope > .submenu",T=["--ui-color-primary","--ui-color-primary-hover","--ui-color-foreground-on-primary","--ui-color-background","--ui-color-surface","--ui-color-surface-alt","--ui-color-text","--ui-color-muted","--ui-color-border","--ui-color-focus-ring","--ui-color-success","--ui-color-danger","--ui-color-warning","--ui-primary","--ui-primary-hover","--ui-foreground","--ui-background","--ui-surface","--ui-surface-alt","--ui-text","--ui-muted","--ui-border","--ui-focus-ring","--ui-radius","--color-background","--color-surface","--color-panel","--color-panel-solid","--color-panel-translucent","--color-overlay","--accent-contrast","--accent-surface","--accent-indicator","--accent-track"],D=[{prefix:"--accent-",from:1,to:12},{prefix:"--accent-a",from:1,to:12},{prefix:"--gray-",from:1,to:12},{prefix:"--gray-a",from:1,to:12},{prefix:"--black-a",from:1,to:12},{prefix:"--white-a",from:1,to:12},{prefix:"--shadow-",from:1,to:6},{prefix:"--radius-",from:1,to:6}];function z(n){return n==="sm"||n==="1"||n==="compact"?"sm":n==="lg"||n==="3"||n==="comfortable"?"lg":"md"}function y(n){return!n||n==="default"?null:n==="none"||n==="square"?"0px":n==="sm"?"8px":n==="md"||n==="soft"?"12px":n==="lg"?"16px":n==="full"?"999px":/^\d+(\.\d+)?$/.test(n)?`${n}px`:/^\d+(\.\d+)?(px|rem|em|%)$/.test(n)?n:null}const B=`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const w=require("./ElementBase-1b301e7f.js"),P=require("./portal-c69756c0.js"),E=require("./collection-a2969ad2.js"),k=require("./dismissable-layer-193e3bed.js"),m=require("./roving-focus-group-5c059bf9.js"),I=require("./positioner-33529bb8.js");require("./listbox-ef2f708e.js");const L=require("./menu-item-styles-83ad1e22.js");require("./collection.cjs.js");const C=":scope > .submenu",T=["--ui-color-primary","--ui-color-primary-hover","--ui-color-foreground-on-primary","--ui-color-background","--ui-color-surface","--ui-color-surface-alt","--ui-color-text","--ui-color-muted","--ui-color-border","--ui-color-focus-ring","--ui-color-success","--ui-color-danger","--ui-color-warning","--ui-primary","--ui-primary-hover","--ui-foreground","--ui-background","--ui-surface","--ui-surface-alt","--ui-text","--ui-muted","--ui-border","--ui-focus-ring","--ui-radius","--color-background","--color-surface","--color-panel","--color-panel-solid","--color-panel-translucent","--color-overlay","--accent-contrast","--accent-surface","--accent-indicator","--accent-track"],D=[{prefix:"--accent-",from:1,to:12},{prefix:"--accent-a",from:1,to:12},{prefix:"--gray-",from:1,to:12},{prefix:"--gray-a",from:1,to:12},{prefix:"--black-a",from:1,to:12},{prefix:"--white-a",from:1,to:12},{prefix:"--shadow-",from:1,to:6},{prefix:"--radius-",from:1,to:6}];function z(n){return n==="sm"||n==="1"||n==="compact"?"sm":n==="lg"||n==="3"||n==="comfortable"?"lg":"md"}function y(n){return!n||n==="default"?null:n==="none"||n==="square"?"0px":n==="sm"?"8px":n==="md"||n==="soft"?"12px":n==="lg"?"16px":n==="full"?"999px":/^\d+(\.\d+)?$/.test(n)?`${n}px`:/^\d+(\.\d+)?(px|rem|em|%)$/.test(n)?n:null}const B=`
2
2
  :host {
3
3
  --ui-menubar-gap: var(--base-menubar-gap, 6px);
4
4
  --ui-menubar-padding: var(--base-menubar-padding, 6px);
@@ -1,9 +1,9 @@
1
1
  import { E } from "./ElementBase-909688f3.mjs";
2
- import { c as k } from "./portal-9060f7a6.mjs";
2
+ import { c as k } from "./portal-fe73e5cc.mjs";
3
3
  import { d as L } from "./collection-a1aac0c6.mjs";
4
4
  import { c as I } from "./dismissable-layer-9c7e6b58.mjs";
5
5
  import { r as v, s as y, f as C, m as x, g as S } from "./roving-focus-group-4350c9a7.mjs";
6
- import { a as T } from "./positioner-16f3cca1.mjs";
6
+ import { l as T } from "./positioner-e9770c66.mjs";
7
7
  import "./listbox-308789a0.mjs";
8
8
  import { c as D } from "./menu-item-styles-27fdbac4.mjs";
9
9
  import "./collection.esm.js";
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const h=require("./ElementBase-1b301e7f.js"),f=require("./portal-d9bae456.js"),b=require("./dismissable-layer-193e3bed.js"),g=require("./positioner-43b1c75a.js"),m=`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const h=require("./ElementBase-1b301e7f.js"),f=require("./portal-c69756c0.js"),b=require("./dismissable-layer-193e3bed.js"),g=require("./positioner-33529bb8.js"),m=`
2
2
  .popover-shell {
3
3
  --ui-popover-accent: var(--ui-color-primary, var(--ui-primary, #2563eb));
4
4
  --ui-popover-bg:
@@ -1,7 +1,7 @@
1
1
  import { E as v } from "./ElementBase-909688f3.mjs";
2
- import { c as h } from "./portal-9060f7a6.mjs";
2
+ import { c as h } from "./portal-fe73e5cc.mjs";
3
3
  import { c as f } from "./dismissable-layer-9c7e6b58.mjs";
4
- import { a as b } from "./positioner-16f3cca1.mjs";
4
+ import { l as b } from "./positioner-e9770c66.mjs";
5
5
  const g = `
6
6
  .popover-shell {
7
7
  --ui-popover-accent: var(--ui-color-primary, var(--ui-primary, #2563eb));
@@ -0,0 +1 @@
1
+ "use strict";const H=require("./positioner-33529bb8.js");function M(a="ui-portal-root"){if(typeof document>"u")return null;let e=document.getElementById(a);return e||(e=document.createElement("div"),e.id=a,e.style.position="fixed",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="0",e.style.pointerEvents="none",e.style.zIndex="var(--ui-portal-z, 1600)",document.body.appendChild(e)),e.style.zIndex||(e.style.zIndex="var(--ui-portal-z, 1600)"),e}function C(a,e,i="top"){var u,P,h,l;const t=typeof i=="string"?{placement:i}:i,c=e instanceof HTMLElement?e:typeof e.getBoundingClientRect=="function"?e.getBoundingClientRect():e,n=H.computePositionState(a,c,{placement:t.placement||"top",strategy:t.strategy||"fixed",offset:typeof t.offset=="number"?t.offset:8,flip:t.flip,shift:t.shift,arrow:t.arrow??null,boundary:t.boundary??null,boundaryPadding:t.boundaryPadding,dir:t.dir,autoPlacement:t.autoPlacement,allowedPlacements:t.allowedPlacements,fallbackPlacements:t.fallbackPlacements,inline:t.inline,hideWhenDetached:t.hideWhenDetached}),s=a.getBoundingClientRect(),w=((P=(u=n.middlewareData)==null?void 0:u.arrow)==null?void 0:P.x)??Math.round(s.left+s.width/2-n.x),b=((l=(h=n.middlewareData)==null?void 0:h.arrow)==null?void 0:l.y)??Math.round(s.top+s.height/2-n.y);return{top:n.y,left:n.x,placement:n.placement,x:w,y:b,strategy:n.strategy,availableWidth:n.availableWidth,availableHeight:n.availableHeight,middlewareData:n.middlewareData,referenceHidden:n.referenceHidden,escaped:n.escaped}}function W(a,e,i,t={}){return H.autoUpdatePositioner(a,e,i,t)}function D(a,e,i="top"){const t=typeof i=="string"?{placement:i}:i,c=t.placement||"top",n=typeof t.offset=="number"?t.offset:8,s=t.flip!==!1,w=!!t.shift,b=M();if(!b)return;e.style.position="absolute",e.style.pointerEvents="auto",b.appendChild(e);let u=()=>{};function P(l,x,p){const o=t.arrow||e.querySelector(".arrow");if(!o)return;const r=a.getBoundingClientRect(),d=r.left+r.width/2,v=r.top+r.height/2;if(p==="top"||p==="bottom"){const m=d-x,y=8,f=e.offsetWidth-8,g=Math.max(y,Math.min(f,m));o.style.left=`${Math.round(g)}px`,o.style.top=""}else{const m=v-l,y=8,f=e.offsetHeight-8,g=Math.max(y,Math.min(f,m));o.style.top=`${Math.round(g)}px`,o.style.left=""}}function h(){var r;if(a&&typeof a.getBoundingClientRect=="function"&&a instanceof HTMLElement){const d=a,v=(r=d.getRootNode)==null?void 0:r.call(d),m=v instanceof ShadowRoot?v.host:null,y=d.isConnected||document.body.contains(d)||(m?document.body.contains(m):!1),f=window.getComputedStyle(d),g=f.display!=="none"&&f.visibility!=="hidden"&&parseFloat(f.opacity||"1")>0;if(!y||!g){try{e.parentElement&&e.parentElement.removeChild(e)}catch{}u();return}}const l=C(a,e,{placement:c,offset:n,flip:s,shift:w,strategy:t.strategy||"fixed",boundary:t.boundary??null,boundaryPadding:t.boundaryPadding,dir:t.dir,autoPlacement:t.autoPlacement,allowedPlacements:t.allowedPlacements,fallbackPlacements:t.fallbackPlacements,inline:t.inline,hideWhenDetached:t.hideWhenDetached,arrow:t.arrow??null}),x=window.innerWidth||document.documentElement.clientWidth,p=window.innerHeight||document.documentElement.clientHeight;let o=l;s&&(l.top<0&&c==="top"||l.top+e.offsetHeight>p&&c==="bottom")&&(o=C(a,e,{placement:c==="top"?"bottom":"top",offset:n,flip:s,shift:w,strategy:t.strategy||"fixed",boundary:t.boundary??null,boundaryPadding:t.boundaryPadding,dir:t.dir,autoPlacement:t.autoPlacement,allowedPlacements:t.allowedPlacements,fallbackPlacements:t.fallbackPlacements,inline:t.inline,hideWhenDetached:t.hideWhenDetached,arrow:t.arrow??null})),o.left<4&&(o.left=4),o.left+e.offsetWidth>x-4&&(o.left=x-e.offsetWidth-4),o.top<4&&(o.top=4),o.top+e.offsetHeight>p-4&&(o.top=p-e.offsetHeight-4),e.style.top=`${Math.round(o.top)}px`,e.style.left=`${Math.round(o.left)}px`,P(o.top,o.left,o.placement),e.setAttribute("data-placement",o.placement)}return h(),u=W(a,e,h),()=>{try{e.parentElement&&e.parentElement.removeChild(e)}catch{}u()}}exports.autoUpdatePosition=W;exports.computePosition=C;exports.createPortalContainer=M;exports.showPortalFor=D;