@serendie/ui 2.0.0 → 2.1.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.
- package/dist/components/CheckBox/CheckBox.js +36 -35
- package/dist/components/ChoiceBox/ChoiceBox.js +41 -41
- package/dist/components/DataTable/DataTableComponent.d.ts +3 -20
- package/dist/components/DataTable/DataTableComponent.js +38 -36
- package/dist/components/DataTable/table/HeaderCheckbox.js +29 -19
- package/dist/components/Search/Search.d.ts +3 -1
- package/dist/components/Search/Search.js +34 -33
- package/dist/components/Select/Select.d.ts +2 -1
- package/dist/components/Select/Select.js +47 -41
- package/dist/components/Tooltip/Tooltip.d.ts +14 -0
- package/dist/components/Tooltip/Tooltip.js +70 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/Tooltip/index.js +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +12 -10
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-content.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-indicator.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-trigger.js +10 -12
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item.js +16 -16
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/use-accordion.js +13 -20
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-root.js +1 -5
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/use-avatar.js +14 -18
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-hidden-input.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/use-checkbox.js +22 -28
- package/dist/node_modules/@ark-ui/react/dist/components/collapsible/collapsible-content.js +7 -9
- package/dist/node_modules/@ark-ui/react/dist/components/collapsible/use-collapsible.js +14 -21
- package/dist/node_modules/@ark-ui/react/dist/components/collection/list-collection.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-content.js +9 -8
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item-group.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-positioner.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-root.js +17 -18
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-trigger.js +10 -9
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/use-combobox-item-context.js +5 -7
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/use-combobox.js +21 -45
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-backdrop.js +10 -9
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-close-trigger.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-content.js +6 -5
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-description.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/use-dialog.js +13 -22
- package/dist/node_modules/@ark-ui/react/dist/components/factory.js +26 -24
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-content.js +9 -8
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item-group.js +1 -3
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item.js +15 -13
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-root.js +13 -14
- package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-option-item-props-context.js +10 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu.js +14 -21
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-ellipsis.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-next-trigger.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-prev-trigger.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-root.js +5 -4
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/use-pagination.js +13 -19
- package/dist/node_modules/@ark-ui/react/dist/components/portal/portal.js +25 -16
- package/dist/node_modules/@ark-ui/react/dist/components/presence/split-presence-props.js +3 -2
- package/dist/node_modules/@ark-ui/react/dist/components/presence/use-presence.js +18 -18
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-control.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-text.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item.js +1 -5
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group.js +14 -22
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-content.js +9 -8
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-root.js +11 -12
- package/dist/node_modules/@ark-ui/react/dist/components/select/use-select.js +20 -47
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-hidden-input.js +4 -6
- package/dist/node_modules/@ark-ui/react/dist/components/switch/use-switch.js +20 -26
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tabs-root.js +9 -8
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/use-tabs.js +14 -21
- package/dist/node_modules/@ark-ui/react/dist/components/toast/create-toaster.js +3 -7
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toaster.js +28 -15
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-arrow-tip.js +13 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-arrow.js +13 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-content.js +15 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-positioner.js +14 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-root.js +14 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-trigger.js +13 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/use-tooltip-context.js +10 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/use-tooltip.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/utils/compose-refs.js +13 -7
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +92 -90
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +230 -216
- package/dist/node_modules/@zag-js/accordion/dist/index.js +210 -227
- package/dist/node_modules/@zag-js/aria-hidden/dist/index.js +49 -12
- package/dist/node_modules/@zag-js/avatar/dist/index.js +119 -134
- package/dist/node_modules/@zag-js/checkbox/dist/index.js +196 -197
- package/dist/node_modules/@zag-js/collapsible/dist/index.js +250 -198
- package/dist/node_modules/@zag-js/collection/dist/index.js +172 -179
- package/dist/node_modules/@zag-js/combobox/dist/index.js +1176 -1082
- package/dist/node_modules/@zag-js/core/dist/index.js +77 -496
- package/dist/node_modules/@zag-js/dialog/dist/index.js +243 -270
- package/dist/node_modules/@zag-js/dismissable/dist/index.js +62 -60
- package/dist/node_modules/@zag-js/dom-query/dist/index.js +465 -253
- package/dist/node_modules/@zag-js/focus-trap/dist/index.js +307 -0
- package/dist/node_modules/@zag-js/focus-visible/dist/index.js +48 -47
- package/dist/node_modules/@zag-js/interact-outside/dist/index.js +112 -80
- package/dist/node_modules/@zag-js/menu/dist/index.js +998 -884
- package/dist/node_modules/@zag-js/pagination/dist/index.js +207 -213
- package/dist/node_modules/@zag-js/popper/dist/index.js +130 -129
- package/dist/node_modules/@zag-js/presence/dist/index.js +139 -122
- package/dist/node_modules/@zag-js/radio-group/dist/index.js +297 -302
- package/dist/node_modules/@zag-js/react/dist/index.js +255 -103
- package/dist/node_modules/@zag-js/remove-scroll/dist/index.js +18 -31
- package/dist/node_modules/@zag-js/select/dist/index.js +889 -885
- package/dist/node_modules/@zag-js/store/dist/index.js +98 -137
- package/dist/node_modules/@zag-js/switch/dist/index.js +199 -191
- package/dist/node_modules/@zag-js/tabs/dist/index.js +383 -386
- package/dist/node_modules/@zag-js/toast/dist/index.js +646 -633
- package/dist/node_modules/@zag-js/tooltip/dist/index.js +459 -0
- package/dist/node_modules/@zag-js/types/dist/index.js +6 -6
- package/dist/node_modules/@zag-js/utils/dist/index.js +112 -99
- package/dist/node_modules/proxy-compare/dist/index.js +4 -106
- package/dist/styles.css +1 -1
- package/package.json +5 -5
- package/dist/node_modules/@ark-ui/react/dist/utils/use-is-server.js +0 -10
- package/dist/node_modules/@zag-js/dom-event/dist/index.js +0 -130
- package/dist/node_modules/@zag-js/element-rect/dist/index.js +0 -32
- package/dist/node_modules/@zag-js/form-utils/dist/index.js +0 -51
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -52
- package/dist/node_modules/focus-trap/dist/focus-trap.esm.js +0 -431
- package/dist/node_modules/klona/full/index.js +0 -21
- package/dist/node_modules/tabbable/dist/index.esm.js +0 -202
|
@@ -1,257 +1,268 @@
|
|
|
1
|
-
import { offset as
|
|
2
|
-
import { createCoords as
|
|
3
|
-
import { getOverflowAncestors as
|
|
4
|
-
function
|
|
5
|
-
const e =
|
|
1
|
+
import { offset as ot, flip as st, shift as rt, arrow as ct, size as lt, hide as ft, computePosition as ut, limitShift as ht } from "../../core/dist/floating-ui.core.js";
|
|
2
|
+
import { createCoords as m, rectToClientRect as J, floor as D, max as E, round as A, min as V } from "../../utils/dist/floating-ui.utils.js";
|
|
3
|
+
import { getOverflowAncestors as $, isElement as v, getDocumentElement as O, getWindow as L, getFrameElement as K, getComputedStyle as R, isHTMLElement as b, isWebKit as Q, isTopLayer as S, getParentNode as W, isLastTraversableNode as H, isTableElement as at, isContainingBlock as Y, getContainingBlock as dt, getNodeName as M, isOverflowElement as _, getNodeScroll as N } from "../../utils/dist/floating-ui.utils.dom.js";
|
|
4
|
+
function Z(t) {
|
|
5
|
+
const e = R(t);
|
|
6
6
|
let i = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
|
|
7
|
-
const o =
|
|
8
|
-
return
|
|
7
|
+
const o = b(t), r = o ? t.offsetWidth : i, s = o ? t.offsetHeight : n, c = A(i) !== r || A(n) !== s;
|
|
8
|
+
return c && (i = r, n = s), {
|
|
9
9
|
width: i,
|
|
10
10
|
height: n,
|
|
11
|
-
$:
|
|
11
|
+
$: c
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
function q(t) {
|
|
15
|
-
return
|
|
15
|
+
return v(t) ? t : t.contextElement;
|
|
16
16
|
}
|
|
17
17
|
function F(t) {
|
|
18
18
|
const e = q(t);
|
|
19
|
-
if (!
|
|
20
|
-
return
|
|
19
|
+
if (!b(e))
|
|
20
|
+
return m(1);
|
|
21
21
|
const i = e.getBoundingClientRect(), {
|
|
22
22
|
width: n,
|
|
23
23
|
height: o,
|
|
24
|
-
$:
|
|
25
|
-
} =
|
|
26
|
-
let s = (
|
|
27
|
-
return (!s || !Number.isFinite(s)) && (s = 1), (!
|
|
24
|
+
$: r
|
|
25
|
+
} = Z(e);
|
|
26
|
+
let s = (r ? A(i.width) : i.width) / n, c = (r ? A(i.height) : i.height) / o;
|
|
27
|
+
return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
28
28
|
x: s,
|
|
29
|
-
y:
|
|
29
|
+
y: c
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
const
|
|
33
|
-
function
|
|
32
|
+
const gt = /* @__PURE__ */ m(0);
|
|
33
|
+
function X(t) {
|
|
34
34
|
const e = L(t);
|
|
35
|
-
return !
|
|
35
|
+
return !Q() || !e.visualViewport ? gt : {
|
|
36
36
|
x: e.visualViewport.offsetLeft,
|
|
37
37
|
y: e.visualViewport.offsetTop
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function pt(t, e, i) {
|
|
41
41
|
return e === void 0 && (e = !1), !i || e && i !== L(t) ? !1 : e;
|
|
42
42
|
}
|
|
43
43
|
function T(t, e, i, n) {
|
|
44
44
|
e === void 0 && (e = !1), i === void 0 && (i = !1);
|
|
45
|
-
const o = t.getBoundingClientRect(),
|
|
46
|
-
let s =
|
|
47
|
-
e && (n ?
|
|
48
|
-
const
|
|
49
|
-
let
|
|
50
|
-
if (
|
|
51
|
-
const p = L(
|
|
52
|
-
let
|
|
53
|
-
for (;
|
|
54
|
-
const
|
|
55
|
-
|
|
45
|
+
const o = t.getBoundingClientRect(), r = q(t);
|
|
46
|
+
let s = m(1);
|
|
47
|
+
e && (n ? v(n) && (s = F(n)) : s = F(t));
|
|
48
|
+
const c = pt(r, i, n) ? X(r) : m(0);
|
|
49
|
+
let l = (o.left + c.x) / s.x, f = (o.top + c.y) / s.y, u = o.width / s.x, h = o.height / s.y;
|
|
50
|
+
if (r) {
|
|
51
|
+
const p = L(r), a = n && v(n) ? L(n) : n;
|
|
52
|
+
let y = p, g = K(y);
|
|
53
|
+
for (; g && n && a !== y; ) {
|
|
54
|
+
const w = F(g), d = g.getBoundingClientRect(), x = R(g), C = d.left + (g.clientLeft + parseFloat(x.paddingLeft)) * w.x, B = d.top + (g.clientTop + parseFloat(x.paddingTop)) * w.y;
|
|
55
|
+
l *= w.x, f *= w.y, u *= w.x, h *= w.y, l += C, f += B, y = L(g), g = K(y);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
return
|
|
58
|
+
return J({
|
|
59
59
|
width: u,
|
|
60
|
-
height:
|
|
61
|
-
x:
|
|
62
|
-
y:
|
|
60
|
+
height: h,
|
|
61
|
+
x: l,
|
|
62
|
+
y: f
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function k(t, e) {
|
|
66
|
+
const i = N(t).scrollLeft;
|
|
67
|
+
return e ? e.left + i : T(O(t)).left + i;
|
|
68
|
+
}
|
|
69
|
+
function tt(t, e, i) {
|
|
70
|
+
i === void 0 && (i = !1);
|
|
71
|
+
const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - (i ? 0 : (
|
|
72
|
+
// RTL <body> scrollbar.
|
|
73
|
+
k(t, n)
|
|
74
|
+
)), r = n.top + e.scrollTop;
|
|
75
|
+
return {
|
|
76
|
+
x: o,
|
|
77
|
+
y: r
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function wt(t) {
|
|
66
81
|
let {
|
|
67
82
|
elements: e,
|
|
68
83
|
rect: i,
|
|
69
84
|
offsetParent: n,
|
|
70
85
|
strategy: o
|
|
71
86
|
} = t;
|
|
72
|
-
const
|
|
73
|
-
if (n === s ||
|
|
87
|
+
const r = o === "fixed", s = O(n), c = e ? S(e.floating) : !1;
|
|
88
|
+
if (n === s || c && r)
|
|
74
89
|
return i;
|
|
75
|
-
let
|
|
90
|
+
let l = {
|
|
76
91
|
scrollLeft: 0,
|
|
77
92
|
scrollTop: 0
|
|
78
|
-
},
|
|
79
|
-
const u =
|
|
80
|
-
if ((
|
|
81
|
-
const
|
|
82
|
-
|
|
93
|
+
}, f = m(1);
|
|
94
|
+
const u = m(0), h = b(n);
|
|
95
|
+
if ((h || !h && !r) && ((M(n) !== "body" || _(s)) && (l = N(n)), b(n))) {
|
|
96
|
+
const a = T(n);
|
|
97
|
+
f = F(n), u.x = a.x + n.clientLeft, u.y = a.y + n.clientTop;
|
|
83
98
|
}
|
|
99
|
+
const p = s && !h && !r ? tt(s, l, !0) : m(0);
|
|
84
100
|
return {
|
|
85
|
-
width: i.width *
|
|
86
|
-
height: i.height *
|
|
87
|
-
x: i.x *
|
|
88
|
-
y: i.y *
|
|
101
|
+
width: i.width * f.x,
|
|
102
|
+
height: i.height * f.y,
|
|
103
|
+
x: i.x * f.x - l.scrollLeft * f.x + u.x + p.x,
|
|
104
|
+
y: i.y * f.y - l.scrollTop * f.y + u.y + p.y
|
|
89
105
|
};
|
|
90
106
|
}
|
|
91
|
-
function
|
|
107
|
+
function mt(t) {
|
|
92
108
|
return Array.from(t.getClientRects());
|
|
93
109
|
}
|
|
94
|
-
function
|
|
95
|
-
const i = N(t).
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
const e = b(t), i = N(t), n = t.ownerDocument.body, o = E(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), c = E(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
|
|
100
|
-
let s = -i.scrollLeft + $(t);
|
|
101
|
-
const r = -i.scrollTop;
|
|
102
|
-
return x(n).direction === "rtl" && (s += E(e.clientWidth, n.clientWidth) - o), {
|
|
110
|
+
function yt(t) {
|
|
111
|
+
const e = O(t), i = N(t), n = t.ownerDocument.body, o = E(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), r = E(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
|
|
112
|
+
let s = -i.scrollLeft + k(t);
|
|
113
|
+
const c = -i.scrollTop;
|
|
114
|
+
return R(n).direction === "rtl" && (s += E(e.clientWidth, n.clientWidth) - o), {
|
|
103
115
|
width: o,
|
|
104
|
-
height:
|
|
116
|
+
height: r,
|
|
105
117
|
x: s,
|
|
106
|
-
y:
|
|
118
|
+
y: c
|
|
107
119
|
};
|
|
108
120
|
}
|
|
109
|
-
function
|
|
110
|
-
const i = L(t), n =
|
|
111
|
-
let
|
|
121
|
+
function xt(t, e) {
|
|
122
|
+
const i = L(t), n = O(t), o = i.visualViewport;
|
|
123
|
+
let r = n.clientWidth, s = n.clientHeight, c = 0, l = 0;
|
|
112
124
|
if (o) {
|
|
113
|
-
|
|
114
|
-
const
|
|
115
|
-
(!
|
|
125
|
+
r = o.width, s = o.height;
|
|
126
|
+
const f = Q();
|
|
127
|
+
(!f || f && e === "fixed") && (c = o.offsetLeft, l = o.offsetTop);
|
|
116
128
|
}
|
|
117
129
|
return {
|
|
118
|
-
width:
|
|
130
|
+
width: r,
|
|
119
131
|
height: s,
|
|
120
|
-
x:
|
|
121
|
-
y:
|
|
132
|
+
x: c,
|
|
133
|
+
y: l
|
|
122
134
|
};
|
|
123
135
|
}
|
|
124
|
-
function
|
|
125
|
-
const i = T(t, !0, e === "fixed"), n = i.top + t.clientTop, o = i.left + t.clientLeft,
|
|
136
|
+
function vt(t, e) {
|
|
137
|
+
const i = T(t, !0, e === "fixed"), n = i.top + t.clientTop, o = i.left + t.clientLeft, r = b(t) ? F(t) : m(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, l = o * r.x, f = n * r.y;
|
|
126
138
|
return {
|
|
127
139
|
width: s,
|
|
128
|
-
height:
|
|
129
|
-
x:
|
|
130
|
-
y:
|
|
140
|
+
height: c,
|
|
141
|
+
x: l,
|
|
142
|
+
y: f
|
|
131
143
|
};
|
|
132
144
|
}
|
|
133
|
-
function
|
|
145
|
+
function j(t, e, i) {
|
|
134
146
|
let n;
|
|
135
147
|
if (e === "viewport")
|
|
136
|
-
n =
|
|
148
|
+
n = xt(t, i);
|
|
137
149
|
else if (e === "document")
|
|
138
|
-
n =
|
|
139
|
-
else if (
|
|
140
|
-
n =
|
|
150
|
+
n = yt(O(t));
|
|
151
|
+
else if (v(e))
|
|
152
|
+
n = vt(e, i);
|
|
141
153
|
else {
|
|
142
|
-
const o =
|
|
154
|
+
const o = X(t);
|
|
143
155
|
n = {
|
|
144
|
-
...e,
|
|
145
156
|
x: e.x - o.x,
|
|
146
|
-
y: e.y - o.y
|
|
157
|
+
y: e.y - o.y,
|
|
158
|
+
width: e.width,
|
|
159
|
+
height: e.height
|
|
147
160
|
};
|
|
148
161
|
}
|
|
149
|
-
return
|
|
162
|
+
return J(n);
|
|
150
163
|
}
|
|
151
|
-
function
|
|
164
|
+
function et(t, e) {
|
|
152
165
|
const i = W(t);
|
|
153
|
-
return i === e || !
|
|
166
|
+
return i === e || !v(i) || H(i) ? !1 : R(i).position === "fixed" || et(i, e);
|
|
154
167
|
}
|
|
155
|
-
function
|
|
168
|
+
function Rt(t, e) {
|
|
156
169
|
const i = e.get(t);
|
|
157
170
|
if (i)
|
|
158
171
|
return i;
|
|
159
|
-
let n =
|
|
160
|
-
const
|
|
161
|
-
let s =
|
|
162
|
-
for (;
|
|
163
|
-
const
|
|
164
|
-
!
|
|
172
|
+
let n = $(t, [], !1).filter((c) => v(c) && M(c) !== "body"), o = null;
|
|
173
|
+
const r = R(t).position === "fixed";
|
|
174
|
+
let s = r ? W(t) : t;
|
|
175
|
+
for (; v(s) && !H(s); ) {
|
|
176
|
+
const c = R(s), l = Y(s);
|
|
177
|
+
!l && c.position === "fixed" && (o = null), (r ? !l && !o : !l && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || _(s) && !l && et(t, s)) ? n = n.filter((u) => u !== s) : o = c, s = W(s);
|
|
165
178
|
}
|
|
166
179
|
return e.set(t, n), n;
|
|
167
180
|
}
|
|
168
|
-
function
|
|
181
|
+
function Ot(t) {
|
|
169
182
|
let {
|
|
170
183
|
element: e,
|
|
171
184
|
boundary: i,
|
|
172
185
|
rootBoundary: n,
|
|
173
186
|
strategy: o
|
|
174
187
|
} = t;
|
|
175
|
-
const s = [...i === "clippingAncestors" ?
|
|
176
|
-
const
|
|
177
|
-
return
|
|
178
|
-
},
|
|
188
|
+
const s = [...i === "clippingAncestors" ? S(e) ? [] : Rt(e, this._c) : [].concat(i), n], c = s[0], l = s.reduce((f, u) => {
|
|
189
|
+
const h = j(e, u, o);
|
|
190
|
+
return f.top = E(h.top, f.top), f.right = V(h.right, f.right), f.bottom = V(h.bottom, f.bottom), f.left = E(h.left, f.left), f;
|
|
191
|
+
}, j(e, c, o));
|
|
179
192
|
return {
|
|
180
|
-
width:
|
|
181
|
-
height:
|
|
182
|
-
x:
|
|
183
|
-
y:
|
|
193
|
+
width: l.right - l.left,
|
|
194
|
+
height: l.bottom - l.top,
|
|
195
|
+
x: l.left,
|
|
196
|
+
y: l.top
|
|
184
197
|
};
|
|
185
198
|
}
|
|
186
|
-
function
|
|
199
|
+
function bt(t) {
|
|
187
200
|
const {
|
|
188
201
|
width: e,
|
|
189
202
|
height: i
|
|
190
|
-
} =
|
|
203
|
+
} = Z(t);
|
|
191
204
|
return {
|
|
192
205
|
width: e,
|
|
193
206
|
height: i
|
|
194
207
|
};
|
|
195
208
|
}
|
|
196
|
-
function
|
|
197
|
-
const n =
|
|
198
|
-
let
|
|
209
|
+
function Ct(t, e, i) {
|
|
210
|
+
const n = b(e), o = O(e), r = i === "fixed", s = T(t, !0, r, e);
|
|
211
|
+
let c = {
|
|
199
212
|
scrollLeft: 0,
|
|
200
213
|
scrollTop: 0
|
|
201
214
|
};
|
|
202
|
-
const
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
const h = T(e, !0, c, e);
|
|
206
|
-
f.x = h.x + e.clientLeft, f.y = h.y + e.clientTop;
|
|
207
|
-
} else o && (f.x = $(o));
|
|
208
|
-
let l = 0, u = 0;
|
|
209
|
-
if (o && !n && !c) {
|
|
210
|
-
const h = o.getBoundingClientRect();
|
|
211
|
-
u = h.top + r.scrollTop, l = h.left + r.scrollLeft - // RTL <body> scrollbar.
|
|
212
|
-
$(o, h);
|
|
215
|
+
const l = m(0);
|
|
216
|
+
function f() {
|
|
217
|
+
l.x = k(o);
|
|
213
218
|
}
|
|
214
|
-
|
|
219
|
+
if (n || !n && !r)
|
|
220
|
+
if ((M(e) !== "body" || _(o)) && (c = N(e)), n) {
|
|
221
|
+
const a = T(e, !0, r, e);
|
|
222
|
+
l.x = a.x + e.clientLeft, l.y = a.y + e.clientTop;
|
|
223
|
+
} else o && f();
|
|
224
|
+
r && !n && o && f();
|
|
225
|
+
const u = o && !n && !r ? tt(o, c) : m(0), h = s.left + c.scrollLeft - l.x - u.x, p = s.top + c.scrollTop - l.y - u.y;
|
|
215
226
|
return {
|
|
216
|
-
x:
|
|
227
|
+
x: h,
|
|
217
228
|
y: p,
|
|
218
229
|
width: s.width,
|
|
219
230
|
height: s.height
|
|
220
231
|
};
|
|
221
232
|
}
|
|
222
233
|
function I(t) {
|
|
223
|
-
return
|
|
234
|
+
return R(t).position === "static";
|
|
224
235
|
}
|
|
225
|
-
function
|
|
226
|
-
if (!
|
|
236
|
+
function G(t, e) {
|
|
237
|
+
if (!b(t) || R(t).position === "fixed")
|
|
227
238
|
return null;
|
|
228
239
|
if (e)
|
|
229
240
|
return e(t);
|
|
230
241
|
let i = t.offsetParent;
|
|
231
|
-
return
|
|
242
|
+
return O(t) === i && (i = i.ownerDocument.body), i;
|
|
232
243
|
}
|
|
233
|
-
function
|
|
244
|
+
function it(t, e) {
|
|
234
245
|
const i = L(t);
|
|
235
|
-
if (
|
|
246
|
+
if (S(t))
|
|
236
247
|
return i;
|
|
237
|
-
if (!
|
|
248
|
+
if (!b(t)) {
|
|
238
249
|
let o = W(t);
|
|
239
|
-
for (; o && !
|
|
240
|
-
if (
|
|
250
|
+
for (; o && !H(o); ) {
|
|
251
|
+
if (v(o) && !I(o))
|
|
241
252
|
return o;
|
|
242
253
|
o = W(o);
|
|
243
254
|
}
|
|
244
255
|
return i;
|
|
245
256
|
}
|
|
246
|
-
let n =
|
|
247
|
-
for (; n &&
|
|
248
|
-
n =
|
|
249
|
-
return n &&
|
|
257
|
+
let n = G(t, e);
|
|
258
|
+
for (; n && at(n) && I(n); )
|
|
259
|
+
n = G(n, e);
|
|
260
|
+
return n && H(n) && I(n) && !Y(n) ? i : n || dt(t) || i;
|
|
250
261
|
}
|
|
251
|
-
const
|
|
252
|
-
const e = this.getOffsetParent ||
|
|
262
|
+
const Lt = async function(t) {
|
|
263
|
+
const e = this.getOffsetParent || it, i = this.getDimensions, n = await i(t.floating);
|
|
253
264
|
return {
|
|
254
|
-
reference:
|
|
265
|
+
reference: Ct(t.reference, await e(t.floating), t.strategy),
|
|
255
266
|
floating: {
|
|
256
267
|
x: 0,
|
|
257
268
|
y: 0,
|
|
@@ -260,126 +271,129 @@ const Rt = async function(t) {
|
|
|
260
271
|
}
|
|
261
272
|
};
|
|
262
273
|
};
|
|
263
|
-
function
|
|
264
|
-
return
|
|
274
|
+
function Tt(t) {
|
|
275
|
+
return R(t).direction === "rtl";
|
|
265
276
|
}
|
|
266
|
-
const
|
|
267
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
268
|
-
getDocumentElement:
|
|
269
|
-
getClippingRect:
|
|
270
|
-
getOffsetParent:
|
|
271
|
-
getElementRects:
|
|
272
|
-
getClientRects:
|
|
273
|
-
getDimensions:
|
|
277
|
+
const Et = {
|
|
278
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: wt,
|
|
279
|
+
getDocumentElement: O,
|
|
280
|
+
getClippingRect: Ot,
|
|
281
|
+
getOffsetParent: it,
|
|
282
|
+
getElementRects: Lt,
|
|
283
|
+
getClientRects: mt,
|
|
284
|
+
getDimensions: bt,
|
|
274
285
|
getScale: F,
|
|
275
|
-
isElement:
|
|
276
|
-
isRTL:
|
|
286
|
+
isElement: v,
|
|
287
|
+
isRTL: Tt
|
|
277
288
|
};
|
|
278
|
-
function
|
|
289
|
+
function nt(t, e) {
|
|
290
|
+
return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
|
|
291
|
+
}
|
|
292
|
+
function Ft(t, e) {
|
|
279
293
|
let i = null, n;
|
|
280
|
-
const o =
|
|
281
|
-
function
|
|
282
|
-
var
|
|
283
|
-
clearTimeout(n), (
|
|
294
|
+
const o = O(t);
|
|
295
|
+
function r() {
|
|
296
|
+
var c;
|
|
297
|
+
clearTimeout(n), (c = i) == null || c.disconnect(), i = null;
|
|
284
298
|
}
|
|
285
|
-
function s(
|
|
286
|
-
|
|
287
|
-
const {
|
|
288
|
-
left:
|
|
289
|
-
top:
|
|
290
|
-
width:
|
|
291
|
-
height:
|
|
292
|
-
} =
|
|
293
|
-
if (
|
|
299
|
+
function s(c, l) {
|
|
300
|
+
c === void 0 && (c = !1), l === void 0 && (l = 1), r();
|
|
301
|
+
const f = t.getBoundingClientRect(), {
|
|
302
|
+
left: u,
|
|
303
|
+
top: h,
|
|
304
|
+
width: p,
|
|
305
|
+
height: a
|
|
306
|
+
} = f;
|
|
307
|
+
if (c || e(), !p || !a)
|
|
294
308
|
return;
|
|
295
|
-
const
|
|
296
|
-
rootMargin: -
|
|
297
|
-
threshold: E(0,
|
|
309
|
+
const y = D(h), g = D(o.clientWidth - (u + p)), w = D(o.clientHeight - (h + a)), d = D(u), C = {
|
|
310
|
+
rootMargin: -y + "px " + -g + "px " + -w + "px " + -d + "px",
|
|
311
|
+
threshold: E(0, V(1, l)) || 1
|
|
298
312
|
};
|
|
299
|
-
let
|
|
300
|
-
function
|
|
301
|
-
const
|
|
302
|
-
if (
|
|
303
|
-
if (!
|
|
313
|
+
let B = !0;
|
|
314
|
+
function P(U) {
|
|
315
|
+
const z = U[0].intersectionRatio;
|
|
316
|
+
if (z !== l) {
|
|
317
|
+
if (!B)
|
|
304
318
|
return s();
|
|
305
|
-
|
|
319
|
+
z ? s(!1, z) : n = setTimeout(() => {
|
|
306
320
|
s(!1, 1e-7);
|
|
307
321
|
}, 1e3);
|
|
308
322
|
}
|
|
309
|
-
|
|
323
|
+
z === 1 && !nt(f, t.getBoundingClientRect()) && s(), B = !1;
|
|
310
324
|
}
|
|
311
325
|
try {
|
|
312
|
-
i = new IntersectionObserver(
|
|
313
|
-
...
|
|
326
|
+
i = new IntersectionObserver(P, {
|
|
327
|
+
...C,
|
|
314
328
|
// Handle <iframe>s
|
|
315
329
|
root: o.ownerDocument
|
|
316
330
|
});
|
|
317
331
|
} catch {
|
|
318
|
-
i = new IntersectionObserver(
|
|
332
|
+
i = new IntersectionObserver(P, C);
|
|
319
333
|
}
|
|
320
334
|
i.observe(t);
|
|
321
335
|
}
|
|
322
|
-
return s(!0),
|
|
336
|
+
return s(!0), r;
|
|
323
337
|
}
|
|
324
|
-
function
|
|
338
|
+
function Dt(t, e, i, n) {
|
|
325
339
|
n === void 0 && (n = {});
|
|
326
340
|
const {
|
|
327
341
|
ancestorScroll: o = !0,
|
|
328
|
-
ancestorResize:
|
|
342
|
+
ancestorResize: r = !0,
|
|
329
343
|
elementResize: s = typeof ResizeObserver == "function",
|
|
330
|
-
layoutShift:
|
|
331
|
-
animationFrame:
|
|
332
|
-
} = n,
|
|
333
|
-
u.forEach((
|
|
334
|
-
o &&
|
|
344
|
+
layoutShift: c = typeof IntersectionObserver == "function",
|
|
345
|
+
animationFrame: l = !1
|
|
346
|
+
} = n, f = q(t), u = o || r ? [...f ? $(f) : [], ...$(e)] : [];
|
|
347
|
+
u.forEach((d) => {
|
|
348
|
+
o && d.addEventListener("scroll", i, {
|
|
335
349
|
passive: !0
|
|
336
|
-
}),
|
|
350
|
+
}), r && d.addEventListener("resize", i);
|
|
337
351
|
});
|
|
338
|
-
const
|
|
339
|
-
let p = -1,
|
|
340
|
-
s && (
|
|
341
|
-
let [
|
|
342
|
-
|
|
343
|
-
var
|
|
344
|
-
(
|
|
352
|
+
const h = f && c ? Ft(f, i) : null;
|
|
353
|
+
let p = -1, a = null;
|
|
354
|
+
s && (a = new ResizeObserver((d) => {
|
|
355
|
+
let [x] = d;
|
|
356
|
+
x && x.target === f && a && (a.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
|
357
|
+
var C;
|
|
358
|
+
(C = a) == null || C.observe(e);
|
|
345
359
|
})), i();
|
|
346
|
-
}),
|
|
347
|
-
let
|
|
348
|
-
|
|
349
|
-
function
|
|
350
|
-
const
|
|
351
|
-
|
|
360
|
+
}), f && !l && a.observe(f), a.observe(e));
|
|
361
|
+
let y, g = l ? T(t) : null;
|
|
362
|
+
l && w();
|
|
363
|
+
function w() {
|
|
364
|
+
const d = T(t);
|
|
365
|
+
g && !nt(g, d) && i(), g = d, y = requestAnimationFrame(w);
|
|
352
366
|
}
|
|
353
367
|
return i(), () => {
|
|
354
|
-
var
|
|
355
|
-
u.forEach((
|
|
356
|
-
o &&
|
|
357
|
-
}),
|
|
368
|
+
var d;
|
|
369
|
+
u.forEach((x) => {
|
|
370
|
+
o && x.removeEventListener("scroll", i), r && x.removeEventListener("resize", i);
|
|
371
|
+
}), h == null || h(), (d = a) == null || d.disconnect(), a = null, l && cancelAnimationFrame(y);
|
|
358
372
|
};
|
|
359
373
|
}
|
|
360
|
-
const
|
|
374
|
+
const At = ot, Ht = rt, Nt = st, It = lt, Vt = ft, $t = ct, St = ht, Mt = (t, e, i) => {
|
|
361
375
|
const n = /* @__PURE__ */ new Map(), o = {
|
|
362
|
-
platform:
|
|
376
|
+
platform: Et,
|
|
363
377
|
...i
|
|
364
|
-
},
|
|
378
|
+
}, r = {
|
|
365
379
|
...o.platform,
|
|
366
380
|
_c: n
|
|
367
381
|
};
|
|
368
|
-
return
|
|
382
|
+
return ut(t, e, {
|
|
369
383
|
...o,
|
|
370
|
-
platform:
|
|
384
|
+
platform: r
|
|
371
385
|
});
|
|
372
386
|
};
|
|
373
387
|
export {
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
388
|
+
$t as arrow,
|
|
389
|
+
Dt as autoUpdate,
|
|
390
|
+
Mt as computePosition,
|
|
391
|
+
Nt as flip,
|
|
392
|
+
$ as getOverflowAncestors,
|
|
393
|
+
Vt as hide,
|
|
394
|
+
St as limitShift,
|
|
395
|
+
At as offset,
|
|
396
|
+
Et as platform,
|
|
397
|
+
Ht as shift,
|
|
398
|
+
It as size
|
|
385
399
|
};
|