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