@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.
- package/README.md +96 -6
- package/dist/color-picker.cjs.js +1 -1
- package/dist/color-picker.esm.js +2 -1
- package/dist/components/date-time-utils.d.ts.map +1 -1
- package/dist/components/ui-context-menu.d.ts +6 -0
- package/dist/components/ui-context-menu.d.ts.map +1 -1
- package/dist/components/ui-floating-toolbar.d.ts +3 -0
- package/dist/components/ui-floating-toolbar.d.ts.map +1 -1
- package/dist/components/ui-gantt.d.ts +30 -1
- package/dist/components/ui-gantt.d.ts.map +1 -1
- package/dist/components/ui-hover-card.d.ts +3 -0
- package/dist/components/ui-hover-card.d.ts.map +1 -1
- package/dist/components/ui-positioner.d.ts.map +1 -1
- package/dist/context-menu.cjs.js +12 -12
- package/dist/context-menu.esm.js +159 -132
- package/dist/date-field.cjs.js +1 -1
- package/dist/date-field.esm.js +2 -1
- package/dist/date-picker.cjs.js +1 -1
- package/dist/date-picker.esm.js +2 -1
- package/dist/date-range-picker.cjs.js +1 -1
- package/dist/date-range-picker.esm.js +2 -1
- package/dist/date-range-time-picker.cjs.js +2 -2
- package/dist/date-range-time-picker.esm.js +2 -1
- package/dist/date-time-picker.cjs.js +2 -2
- package/dist/date-time-picker.esm.js +2 -1
- package/dist/date-time-utils-66480de4.js +1 -0
- package/dist/date-time-utils-a2c7af25.mjs +307 -0
- package/dist/floating-toolbar.cjs.js +4 -4
- package/dist/floating-toolbar.esm.js +52 -25
- package/dist/gantt.cjs.js +656 -74
- package/dist/gantt.esm.js +1050 -100
- package/dist/hover-card.cjs.js +4 -4
- package/dist/hover-card.esm.js +61 -38
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +158 -146
- package/dist/menu.cjs.js +1 -1
- package/dist/menu.esm.js +2 -2
- package/dist/menubar.cjs.js +1 -1
- package/dist/menubar.esm.js +2 -2
- package/dist/popover.cjs.js +1 -1
- package/dist/popover.esm.js +2 -2
- package/dist/portal-c69756c0.js +1 -0
- package/dist/portal-fe73e5cc.mjs +123 -0
- package/dist/portal.d.ts +29 -3
- package/dist/portal.d.ts.map +1 -1
- package/dist/positioner-33529bb8.js +1 -0
- package/dist/positioner-e9770c66.mjs +582 -0
- package/dist/positioner.cjs.js +2 -2
- package/dist/positioner.esm.js +36 -26
- package/dist/primitives/positioner.d.ts +199 -1
- package/dist/primitives/positioner.d.ts.map +1 -1
- package/dist/{runtime-864efe2f.mjs → runtime-161f68a2.mjs} +24 -23
- package/dist/runtime-3f13807b.js +1 -0
- package/dist/runtime.cjs.js +1 -1
- package/dist/runtime.d.ts +2 -0
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.esm.js +39 -24
- package/dist/split-button.cjs.js +1 -1
- package/dist/split-button.esm.js +2 -2
- package/dist/time-field.cjs.js +1 -1
- package/dist/time-field.esm.js +14 -13
- package/dist/time-picker.cjs.js +1 -1
- package/dist/time-picker.esm.js +2 -1
- package/dist/tooltip.cjs.js +1 -1
- package/dist/tooltip.esm.js +2 -1
- package/package.json +2 -2
- package/dist/date-time-utils-378ecc21.js +0 -1
- package/dist/date-time-utils-a8b17ea7.mjs +0 -299
- package/dist/portal-9060f7a6.mjs +0 -114
- package/dist/portal-d9bae456.js +0 -1
- package/dist/positioner-16f3cca1.mjs +0 -132
- package/dist/positioner-43b1c75a.js +0 -1
- package/dist/runtime-668914fe.js +0 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E as
|
|
2
|
-
import { UICollection as
|
|
3
|
-
import { U as G, f as
|
|
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
|
|
13
|
-
import { UIDescription as
|
|
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
|
|
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
|
|
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
|
|
23
|
-
import { UIPagination as
|
|
24
|
-
import { UIHoverCard as
|
|
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
|
|
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
|
|
45
|
-
import { UIPresence as
|
|
46
|
-
import { UIProgress as
|
|
47
|
-
import { UIMeter as
|
|
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
|
|
50
|
-
import { UISlot as
|
|
51
|
-
import { UIToolbar as
|
|
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
|
|
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
|
|
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
|
|
71
|
-
import { UIFileUpload as
|
|
72
|
-
import { UIDropzone as
|
|
73
|
-
import { UIMultiSelect as
|
|
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
|
|
76
|
-
import { UISortable as
|
|
77
|
-
import { UIInlineEdit as
|
|
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
|
|
89
|
-
import { UISpinningText as
|
|
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
|
|
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
|
|
97
|
-
import { UIDataTable as
|
|
98
|
-
import { UIChart as
|
|
99
|
-
import { UITimeline as
|
|
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
|
|
102
|
-
import { UIDatePicker as
|
|
103
|
-
import { UIDateRangePicker as
|
|
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
|
|
116
|
-
import { UIFlex as
|
|
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
|
|
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
|
|
123
|
-
import { b as Wa, a as Qa, c as Ja, s as Xa } from "./portal-
|
|
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 {
|
|
129
|
-
import { f as
|
|
130
|
-
import { f as
|
|
131
|
-
import { UIOrbiter as
|
|
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-
|
|
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
|
|
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
|
|
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
|
|
232
|
-
const 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
|
|
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 =
|
|
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
|
|
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],
|
|
275
|
+
const s = p(), f = s[0], x = s[s.length - 1];
|
|
276
276
|
if (s.length === 0) {
|
|
277
|
-
a.preventDefault(),
|
|
277
|
+
a.preventDefault(), d();
|
|
278
278
|
return;
|
|
279
279
|
}
|
|
280
|
-
a.shiftKey ? document.activeElement === f && (a.preventDefault(), (
|
|
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) &&
|
|
288
|
+
n && !e.contains(n) && d();
|
|
289
289
|
}
|
|
290
|
-
return t.push({ id: r }), document.addEventListener("keydown", I), document.addEventListener("focusin", U, !0),
|
|
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
|
|
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:
|
|
305
|
+
h[e.name] = e, e.install && e.install({ registerUIPlugin: T });
|
|
306
306
|
}
|
|
307
|
-
function
|
|
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
|
-
|
|
314
|
-
|
|
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
|
-
|
|
322
|
+
dr as UIAnimatedText,
|
|
323
323
|
et as UIAppHeader,
|
|
324
324
|
go as UIAspectRatio,
|
|
325
325
|
ho as UIAvatar,
|
|
326
|
-
|
|
326
|
+
vo as UIBadge,
|
|
327
327
|
ft as UIBlockControls,
|
|
328
|
-
|
|
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
|
-
|
|
333
|
+
Lr as UIChart,
|
|
334
334
|
$e as UICheckbox,
|
|
335
335
|
We as UICollapsible,
|
|
336
|
-
|
|
337
|
-
|
|
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
|
-
|
|
342
|
+
Co as UIContextMenu,
|
|
343
343
|
be as UIControlGroup,
|
|
344
|
-
|
|
344
|
+
Er as UIDataTable,
|
|
345
345
|
Wr as UIDateField,
|
|
346
|
-
|
|
347
|
-
|
|
346
|
+
Nr as UIDatePicker,
|
|
347
|
+
Hr as UIDateRangePicker,
|
|
348
348
|
$r as UIDateRangeTimePicker,
|
|
349
349
|
Yr as UIDateTimePicker,
|
|
350
|
-
|
|
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
|
-
|
|
358
|
-
|
|
359
|
-
|
|
357
|
+
Lt as UIDropzone,
|
|
358
|
+
wr as UIEmptyState,
|
|
359
|
+
vt as UIField,
|
|
360
360
|
Ue as UIFieldError,
|
|
361
361
|
ye as UIFieldset,
|
|
362
|
-
|
|
363
|
-
|
|
362
|
+
Et as UIFileUpload,
|
|
363
|
+
ua as UIFlex,
|
|
364
364
|
lt as UIFloatingToolbar,
|
|
365
365
|
rr as UIFocusScope,
|
|
366
|
-
|
|
366
|
+
de as UIForm,
|
|
367
367
|
oa as UIGantt,
|
|
368
368
|
Ua as UIGrid,
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
369
|
+
He as UIHoverCard,
|
|
370
|
+
we as UIIcon,
|
|
371
|
+
Tr as UIIconCloud,
|
|
372
|
+
Ht as UIInlineEdit,
|
|
373
373
|
me as UIInput,
|
|
374
|
-
|
|
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
|
-
|
|
382
|
-
|
|
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
|
-
|
|
387
|
+
On as UIOrbiter,
|
|
388
388
|
kt as UIOtpInput,
|
|
389
|
-
|
|
389
|
+
Ne as UIPagination,
|
|
390
390
|
Yt as UIPanel,
|
|
391
391
|
Wt as UIPanelGroup,
|
|
392
392
|
ce as UIPasswordField,
|
|
393
|
-
|
|
393
|
+
wt as UIPinInput,
|
|
394
394
|
ba as UIPlacementGrid,
|
|
395
395
|
pt as UIPluginPanel,
|
|
396
|
-
|
|
396
|
+
Te as UIPopover,
|
|
397
397
|
Ko as UIPortal,
|
|
398
398
|
nr as UIPositioner,
|
|
399
|
-
|
|
400
|
-
|
|
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
|
-
|
|
407
|
+
Ta as UISection,
|
|
408
408
|
mo as UISelect,
|
|
409
|
-
|
|
410
|
-
|
|
409
|
+
xt as UISelectionPopup,
|
|
410
|
+
zo as UISeparator,
|
|
411
411
|
Zo as UISidebar,
|
|
412
412
|
Dr as UISkeleton,
|
|
413
413
|
io as UISlider,
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
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
|
-
|
|
427
|
+
Rr as UITimeline,
|
|
428
428
|
Oe as UIToast,
|
|
429
429
|
co as UIToggle,
|
|
430
430
|
xo as UIToggleGroup,
|
|
431
|
-
|
|
431
|
+
_o as UIToolbar,
|
|
432
432
|
ne as UITooltip,
|
|
433
|
-
|
|
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
|
-
|
|
440
|
-
|
|
439
|
+
wa as alert,
|
|
440
|
+
Ca as applyTheme,
|
|
441
|
+
mn as arrowMiddleware,
|
|
442
|
+
pn as autoPlacementMiddleware,
|
|
441
443
|
Wa as autoUpdatePosition,
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
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
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
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
|
-
|
|
459
|
+
dn as createPositioner,
|
|
457
460
|
D as createSignal,
|
|
458
461
|
Ga as createThemeTokens,
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
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
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
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
|
-
|
|
478
|
+
kn as findTypeaheadMatch,
|
|
472
479
|
Z as flattenTree,
|
|
473
480
|
$ as flattenVisibleTree,
|
|
474
|
-
|
|
481
|
+
gn as flipMiddleware,
|
|
482
|
+
En as focusRovingItem,
|
|
475
483
|
on as getBodyScrollLockCount,
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
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
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
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
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
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
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
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-
|
|
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-
|
|
2
|
+
import { c as v } from "./portal-fe73e5cc.mjs";
|
|
3
3
|
import { c as y } from "./dismissable-layer-9c7e6b58.mjs";
|
|
4
|
-
import {
|
|
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";
|
package/dist/menubar.cjs.js
CHANGED
|
@@ -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-
|
|
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);
|
package/dist/menubar.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { E } from "./ElementBase-909688f3.mjs";
|
|
2
|
-
import { c as k } from "./portal-
|
|
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 {
|
|
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";
|
package/dist/popover.cjs.js
CHANGED
|
@@ -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-
|
|
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:
|
package/dist/popover.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { E as v } from "./ElementBase-909688f3.mjs";
|
|
2
|
-
import { c as h } from "./portal-
|
|
2
|
+
import { c as h } from "./portal-fe73e5cc.mjs";
|
|
3
3
|
import { c as f } from "./dismissable-layer-9c7e6b58.mjs";
|
|
4
|
-
import {
|
|
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;
|