welcome-ui 8.1.0 → 8.2.0-alpha.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/Alert.mjs +28 -28
- package/dist/Avatar.mjs +47 -44
- package/dist/Breadcrumb.mjs +169 -167
- package/dist/ButtonGroup.mjs +14 -14
- package/dist/Checkbox.mjs +1 -1
- package/dist/{CustomPopper-B2Cqfph4.mjs → CustomPopper-DezjKb9n.mjs} +12 -17
- package/dist/DatePicker.mjs +74 -74
- package/dist/DateTimePicker.mjs +60 -59
- package/dist/DateTimePickerCommon.mjs +1 -1
- package/dist/Drawer.mjs +51 -55
- package/dist/DropdownMenu.mjs +183 -183
- package/dist/Field.mjs +9 -10
- package/dist/FileDrop.mjs +455 -465
- package/dist/FileUpload.mjs +74 -81
- package/dist/Files.mjs +15 -15
- package/dist/InputText.mjs +42 -42
- package/dist/Label.mjs +1 -1
- package/dist/Modal.mjs +115 -119
- package/dist/Pagination.mjs +31 -29
- package/dist/PasswordInput.mjs +9 -9
- package/dist/Picker.mjs +23 -23
- package/dist/Radio.mjs +35 -35
- package/dist/RadioTab.mjs +1 -1
- package/dist/Search.mjs +123 -127
- package/dist/Select.mjs +301 -318
- package/dist/Slider.mjs +228 -224
- package/dist/Stack.mjs +15 -12
- package/dist/Swiper.mjs +126 -127
- package/dist/Tabs.mjs +1 -1
- package/dist/Tag.mjs +19 -19
- package/dist/Text.mjs +35 -37
- package/dist/Textarea.mjs +1 -1
- package/dist/TimePicker.mjs +61 -61
- package/dist/Toast.mjs +3 -3
- package/dist/Toggle.mjs +1 -1
- package/dist/Tooltip.mjs +1 -1
- package/dist/VariantIcon.mjs +14 -5
- package/dist/WuiProvider.mjs +35 -38
- package/dist/{field-styles-BVlRlvuu.mjs → field-styles-CfVLcVQp.mjs} +1 -1
- package/dist/{hex-to-rgba-DU_XzKIK.mjs → hex-to-rgba-BIDK-3ab.mjs} +2 -2
- package/dist/{index-5HBq1O6Z.mjs → index-62h-enZF.mjs} +31 -31
- package/dist/index-BhcLigYU.mjs +77 -0
- package/dist/theme.mjs +23 -23
- package/dist/throttle-BDBzFeFj.mjs +13 -0
- package/dist/types/components/Accordion/styles.d.ts +2 -2
- package/dist/types/components/Accordion/theme.d.ts +1 -1
- package/dist/types/components/Alert/styles.d.ts +9 -9
- package/dist/types/components/Alert/theme.d.ts +3 -3
- package/dist/types/components/AspectRatio/styles.d.ts +2 -3
- package/dist/types/components/Avatar/index.d.ts +2 -1
- package/dist/types/components/Avatar/styles.d.ts +8 -8
- package/dist/types/components/Avatar/theme.d.ts +2 -2
- package/dist/types/components/Avatar/utils.d.ts +1 -1
- package/dist/types/components/Badge/styles.d.ts +4 -4
- package/dist/types/components/Badge/theme.d.ts +1 -1
- package/dist/types/components/Breadcrumb/index.d.ts +1 -1
- package/dist/types/components/Breadcrumb/theme.d.ts +1 -1
- package/dist/types/components/Button/index.d.ts +1 -1
- package/dist/types/components/Button/styles.d.ts +1 -1
- package/dist/types/components/Button/theme.d.ts +3 -3
- package/dist/types/components/ButtonGroup/index.d.ts +2 -2
- package/dist/types/components/Card/Cover.styles.d.ts +4 -4
- package/dist/types/components/Card/theme.d.ts +1 -1
- package/dist/types/components/Checkbox/styles.d.ts +1 -1
- package/dist/types/components/Checkbox/theme.d.ts +1 -1
- package/dist/types/components/ClearButton/index.d.ts +4 -4
- package/dist/types/components/ClearButton/styles.d.ts +4 -4
- package/dist/types/components/CloseButton/styles.d.ts +4 -4
- package/dist/types/components/DateTimePickerCommon/CustomPopper.d.ts +1 -1
- package/dist/types/components/DateTimePickerCommon/theme.d.ts +1 -1
- package/dist/types/components/DateTimePickerCommon/utils.d.ts +1 -1
- package/dist/types/components/Drawer/index.d.ts +5 -5
- package/dist/types/components/Drawer/styles.d.ts +4 -4
- package/dist/types/components/Drawer/theme.d.ts +2 -2
- package/dist/types/components/DropdownMenu/index.d.ts +1 -1
- package/dist/types/components/DropdownMenu/theme.d.ts +1 -1
- package/dist/types/components/Field/utils.d.ts +1 -1
- package/dist/types/components/FileDrop/index.d.ts +4 -4
- package/dist/types/components/FileDrop/theme.d.ts +1 -1
- package/dist/types/components/FileUpload/index.d.ts +2 -2
- package/dist/types/components/Files/index.d.ts +3 -3
- package/dist/types/components/Files/types.d.ts +1 -1
- package/dist/types/components/Hint/theme.d.ts +1 -1
- package/dist/types/components/Icon/theme.d.ts +2 -2
- package/dist/types/components/Icons/Sun/content.json.d.ts +1 -2
- package/dist/types/components/Label/theme.d.ts +1 -1
- package/dist/types/components/Link/index.d.ts +2 -2
- package/dist/types/components/Link/styles.d.ts +4 -4
- package/dist/types/components/Link/theme.d.ts +1 -1
- package/dist/types/components/Loader/styles.d.ts +4 -4
- package/dist/types/components/Loader/theme.d.ts +2 -2
- package/dist/types/components/Modal/Assets/Backdrop.d.ts +4 -4
- package/dist/types/components/Modal/Assets/index.d.ts +8 -8
- package/dist/types/components/Modal/Assets/styles.d.ts +8 -8
- package/dist/types/components/Modal/Close.d.ts +2 -2
- package/dist/types/components/Modal/Content.d.ts +5 -3
- package/dist/types/components/Modal/index.d.ts +10 -10
- package/dist/types/components/Modal/styles.d.ts +7 -7
- package/dist/types/components/Modal/theme.d.ts +1 -1
- package/dist/types/components/Pagination/theme.d.ts +1 -1
- package/dist/types/components/Picker/index.d.ts +1 -1
- package/dist/types/components/Picker/styles.d.ts +1 -1
- package/dist/types/components/Popover/styles.d.ts +4 -4
- package/dist/types/components/Popover/theme.d.ts +1 -1
- package/dist/types/components/Radio/index.d.ts +2 -2
- package/dist/types/components/Radio/styles.d.ts +5 -5
- package/dist/types/components/Radio/theme.d.ts +1 -1
- package/dist/types/components/RadioTab/index.d.ts +1 -1
- package/dist/types/components/RadioTab/styles.d.ts +10 -4
- package/dist/types/components/RadioTab/theme.d.ts +1 -1
- package/dist/types/components/Search/index.d.ts +1 -1
- package/dist/types/components/Select/index.d.ts +4 -4
- package/dist/types/components/Select/styles.d.ts +4 -4
- package/dist/types/components/Select/utils.d.ts +4 -8
- package/dist/types/components/Shape/styles.d.ts +3 -3
- package/dist/types/components/Slider/styles.d.ts +16 -16
- package/dist/types/components/Slider/theme.d.ts +1 -1
- package/dist/types/components/Swiper/index.d.ts +1 -1
- package/dist/types/components/Swiper/styles.d.ts +16 -16
- package/dist/types/components/Swiper/theme.d.ts +1 -1
- package/dist/types/components/System/index.d.ts +6 -6
- package/dist/types/components/Table/theme.d.ts +1 -1
- package/dist/types/components/Tabs/ActiveBar.d.ts +2 -2
- package/dist/types/components/Tabs/TabList.d.ts +2 -2
- package/dist/types/components/Tabs/styles.d.ts +2 -2
- package/dist/types/components/Tabs/theme.d.ts +1 -1
- package/dist/types/components/Tag/theme.d.ts +1 -1
- package/dist/types/components/Textarea/theme.d.ts +1 -1
- package/dist/types/components/Toast/ToastWrapper.d.ts +1 -1
- package/dist/types/components/Toast/index.d.ts +1 -1
- package/dist/types/components/Toast/styles.d.ts +14 -14
- package/dist/types/components/Toast/theme.d.ts +1 -1
- package/dist/types/components/Toggle/index.d.ts +2 -2
- package/dist/types/components/Toggle/styles.d.ts +4 -5
- package/dist/types/components/Toggle/theme.d.ts +1 -1
- package/dist/types/components/Tooltip/index.d.ts +2 -2
- package/dist/types/components/Tooltip/styles.d.ts +1 -1
- package/dist/types/components/Tooltip/theme.d.ts +1 -1
- package/dist/types/components/VariantIcon/theme.d.ts +1 -1
- package/dist/types/components/WuiProvider/font.d.ts +5 -3
- package/dist/types/components/WuiProvider/index.d.ts +1 -1
- package/dist/types/theme/colors.d.ts +9 -1
- package/dist/types/theme/defaultFields.d.ts +5 -5
- package/dist/types/theme/index.d.ts +2 -2
- package/dist/types/theme/screens.d.ts +7 -7
- package/dist/types/theme/space.d.ts +9 -9
- package/dist/types/theme/typography.d.ts +1 -1
- package/dist/types/utils/field-styles.d.ts +6 -6
- package/dist/types/utils/use-create-portal.d.ts +1 -1
- package/dist/types/utils/use-viewport.d.ts +2 -2
- package/dist/{use-fork-ref-DvaCTfQ_.mjs → use-fork-ref-CUZErtAC.mjs} +3 -4
- package/dist/utils.mjs +29 -102
- package/dist/wrap-children-CzmhoRzd.mjs +13 -0
- package/package.json +2 -2
- package/dist/throttle-CW18pWlW.mjs +0 -13
- package/dist/wrap-children-DBSD-X5-.mjs +0 -9
package/dist/DropdownMenu.mjs
CHANGED
|
@@ -4,26 +4,26 @@ import Q, { th as U, css as Le, useTheme as $e } from "@xstyled/styled-component
|
|
|
4
4
|
import { forwardRef as X } from "./System.mjs";
|
|
5
5
|
import { h as ie, j as je, C as he, a as ge, u as Ve } from "./P2CTZE2T-DOT1mNnX.mjs";
|
|
6
6
|
import { e as Re, f as Be, c as Ke, d as ze, g as We, h as Ze } from "./BYC7LY2E-CWSI38FM.mjs";
|
|
7
|
-
import { c as D, _ as
|
|
8
|
-
import { useCallback as lt, useRef as ce, createContext as
|
|
7
|
+
import { c as D, _ as O, i as B, a6 as Ue, u as ae, b as j, a8 as Z, U as qe, d as E, e as ne, g as b, y as we, Y as Ge, Z as Qe, v as Me, f as k, h as F, H as xe, Q as Xe, p as Ye, o as Je, aa as et, t as Se, z as tt, A as G, B as W, C as $, a2 as rt, G as nt, w as Ce, D as ye, ab as ot, X as st, l as at, ac as Ee, s as ut, ad as it, ae as ct } from "./LVA2YJMS-C-kJ1lkr.mjs";
|
|
8
|
+
import { useCallback as lt, useRef as ce, createContext as Pe, useState as Oe, useEffect as Ae, createRef as dt, useMemo as ft } from "react";
|
|
9
9
|
import { u as pt, b as mt } from "./QYJ6MIDR-DJ-vUdAM.mjs";
|
|
10
10
|
import { m as vt, o as bt, p as ht, t as gt, c as wt, s as me, d as ve, a as Mt, b as xt, u as V } from "./YV4JVR4I-DPC8mMuG.mjs";
|
|
11
11
|
import { c as St, u as Ct, a as yt } from "./ITI7HKP4-C89kOQb8.mjs";
|
|
12
12
|
import { i as Et } from "./VGCJ63VH-C0UPBY-5.mjs";
|
|
13
|
-
import { c as
|
|
13
|
+
import { c as Pt, R as Ot } from "./JC64G2H7-afsomHuH.mjs";
|
|
14
14
|
import { a as At } from "./VEVQD5MH-0w9Y7Ytc.mjs";
|
|
15
15
|
var Tt = "div";
|
|
16
|
-
function Te(
|
|
17
|
-
const t =
|
|
16
|
+
function Te(r) {
|
|
17
|
+
const t = r.relatedTarget;
|
|
18
18
|
return (t == null ? void 0 : t.nodeType) === Node.ELEMENT_NODE ? t : null;
|
|
19
19
|
}
|
|
20
|
-
function It(
|
|
21
|
-
const t = Te(
|
|
22
|
-
return t ? Ge(
|
|
20
|
+
function It(r) {
|
|
21
|
+
const t = Te(r);
|
|
22
|
+
return t ? Ge(r.currentTarget, t) : !1;
|
|
23
23
|
}
|
|
24
24
|
var ue = Symbol("composite-hover");
|
|
25
|
-
function Ht(
|
|
26
|
-
let t = Te(
|
|
25
|
+
function Ht(r) {
|
|
26
|
+
let t = Te(r);
|
|
27
27
|
if (!t) return !1;
|
|
28
28
|
do {
|
|
29
29
|
if (Qe(t, ue) && t[ue]) return !0;
|
|
@@ -33,21 +33,21 @@ function Ht(n) {
|
|
|
33
33
|
}
|
|
34
34
|
var Ie = D(
|
|
35
35
|
function(t) {
|
|
36
|
-
var
|
|
36
|
+
var n = t, {
|
|
37
37
|
store: e,
|
|
38
|
-
focusOnHover:
|
|
39
|
-
blurOnHoverEnd: u = !!
|
|
40
|
-
} =
|
|
38
|
+
focusOnHover: s = !0,
|
|
39
|
+
blurOnHoverEnd: u = !!s
|
|
40
|
+
} = n, a = O(n, [
|
|
41
41
|
"store",
|
|
42
42
|
"focusOnHover",
|
|
43
43
|
"blurOnHoverEnd"
|
|
44
44
|
]);
|
|
45
|
-
const
|
|
46
|
-
e = e ||
|
|
45
|
+
const o = ie();
|
|
46
|
+
e = e || o, B(
|
|
47
47
|
e,
|
|
48
48
|
process.env.NODE_ENV !== "production" && "CompositeHover must be wrapped in a Composite component."
|
|
49
49
|
);
|
|
50
|
-
const c = Ue(), l = a.onMouseMove, i = ae(
|
|
50
|
+
const c = Ue(), l = a.onMouseMove, i = ae(s), w = j((f) => {
|
|
51
51
|
if (l == null || l(f), !f.defaultPrevented && c() && i(f)) {
|
|
52
52
|
if (!Z(f.currentTarget)) {
|
|
53
53
|
const M = e == null ? void 0 : e.getState().baseElement;
|
|
@@ -70,81 +70,81 @@ var Ie = D(
|
|
|
70
70
|
);
|
|
71
71
|
Me(
|
|
72
72
|
k(function(t) {
|
|
73
|
-
const
|
|
74
|
-
return F(Tt,
|
|
73
|
+
const n = Ie(t);
|
|
74
|
+
return F(Tt, n);
|
|
75
75
|
})
|
|
76
76
|
);
|
|
77
77
|
var _t = "hr", He = D(
|
|
78
78
|
function(t) {
|
|
79
|
-
var
|
|
80
|
-
return
|
|
79
|
+
var n = t, { orientation: e = "horizontal" } = n, s = O(n, ["orientation"]);
|
|
80
|
+
return s = b({
|
|
81
81
|
role: "separator",
|
|
82
82
|
"aria-orientation": e
|
|
83
|
-
},
|
|
83
|
+
}, s), s;
|
|
84
84
|
}
|
|
85
85
|
);
|
|
86
86
|
k(function(t) {
|
|
87
|
-
const
|
|
88
|
-
return F(_t,
|
|
87
|
+
const n = He(t);
|
|
88
|
+
return F(_t, n);
|
|
89
89
|
});
|
|
90
90
|
var Dt = "hr", _e = D(function(t) {
|
|
91
|
-
var
|
|
91
|
+
var n = t, { store: e } = n, s = O(n, ["store"]);
|
|
92
92
|
const u = ie();
|
|
93
93
|
e = e || u, B(
|
|
94
94
|
e,
|
|
95
95
|
process.env.NODE_ENV !== "production" && "CompositeSeparator must be wrapped in a Composite component."
|
|
96
96
|
);
|
|
97
97
|
const a = e.useState(
|
|
98
|
-
(
|
|
98
|
+
(o) => o.orientation === "horizontal" ? "vertical" : "horizontal"
|
|
99
99
|
);
|
|
100
|
-
return
|
|
100
|
+
return s = He(E(b({}, s), { orientation: a })), s;
|
|
101
101
|
});
|
|
102
102
|
k(function(t) {
|
|
103
|
-
const
|
|
104
|
-
return F(Dt,
|
|
103
|
+
const n = _e(t);
|
|
104
|
+
return F(Dt, n);
|
|
105
105
|
});
|
|
106
106
|
var kt = "div", N = "";
|
|
107
107
|
function se() {
|
|
108
108
|
N = "";
|
|
109
109
|
}
|
|
110
|
-
function Ft(
|
|
111
|
-
const t =
|
|
112
|
-
return t && Ye(t) ? !1 :
|
|
110
|
+
function Ft(r) {
|
|
111
|
+
const t = r.target;
|
|
112
|
+
return t && Ye(t) ? !1 : r.key === " " && N.length ? !0 : r.key.length === 1 && !r.ctrlKey && !r.altKey && !r.metaKey && /^[\p{Letter}\p{Number}]$/u.test(r.key);
|
|
113
113
|
}
|
|
114
|
-
function Nt(
|
|
115
|
-
if (Je(
|
|
116
|
-
const
|
|
117
|
-
return
|
|
114
|
+
function Nt(r, t) {
|
|
115
|
+
if (Je(r)) return !0;
|
|
116
|
+
const n = r.target;
|
|
117
|
+
return n ? t.some((s) => s.element === n) : !1;
|
|
118
118
|
}
|
|
119
|
-
function Lt(
|
|
120
|
-
return
|
|
119
|
+
function Lt(r) {
|
|
120
|
+
return r.filter((t) => !t.disabled);
|
|
121
121
|
}
|
|
122
|
-
function re(
|
|
123
|
-
var
|
|
124
|
-
const e = ((
|
|
122
|
+
function re(r, t) {
|
|
123
|
+
var n;
|
|
124
|
+
const e = ((n = r.element) == null ? void 0 : n.textContent) || r.children || // The composite item object itself doesn't include a value property, but
|
|
125
125
|
// other components like Select do. Since CompositeTypeahead is a generic
|
|
126
126
|
// component that can be used with those as well, we also consider the value
|
|
127
127
|
// property as a fallback for the typeahead text content.
|
|
128
|
-
"value" in
|
|
128
|
+
"value" in r && r.value;
|
|
129
129
|
return e ? et(e).trim().toLowerCase().startsWith(t.toLowerCase()) : !1;
|
|
130
130
|
}
|
|
131
|
-
function $t(
|
|
132
|
-
if (!
|
|
133
|
-
const e =
|
|
134
|
-
return !e || !re(e, t) || N !== t && re(e, N) ?
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
).filter((
|
|
131
|
+
function $t(r, t, n) {
|
|
132
|
+
if (!n) return r;
|
|
133
|
+
const e = r.find((s) => s.id === n);
|
|
134
|
+
return !e || !re(e, t) || N !== t && re(e, N) ? r : (N = t, je(
|
|
135
|
+
r.filter((s) => re(s, N)),
|
|
136
|
+
n
|
|
137
|
+
).filter((s) => s.id !== n));
|
|
138
138
|
}
|
|
139
139
|
var le = D(function(t) {
|
|
140
|
-
var
|
|
140
|
+
var n = t, { store: e, typeahead: s = !0 } = n, u = O(n, ["store", "typeahead"]);
|
|
141
141
|
const a = ie();
|
|
142
142
|
e = e || a, B(
|
|
143
143
|
e,
|
|
144
144
|
process.env.NODE_ENV !== "production" && "CompositeTypeahead must be a Composite component"
|
|
145
145
|
);
|
|
146
|
-
const
|
|
147
|
-
if (
|
|
146
|
+
const o = u.onKeyDownCapture, c = ce(0), l = j((i) => {
|
|
147
|
+
if (o == null || o(i), i.defaultPrevented || !s || !e) return;
|
|
148
148
|
if (!Ft(i))
|
|
149
149
|
return se();
|
|
150
150
|
const { renderedItems: w, items: m, activeId: d, id: S } = e.getState();
|
|
@@ -162,45 +162,45 @@ var le = D(function(t) {
|
|
|
162
162
|
}, 500);
|
|
163
163
|
const A = i.key.toLowerCase();
|
|
164
164
|
N += A, p = $t(p, A, d);
|
|
165
|
-
const
|
|
166
|
-
|
|
165
|
+
const P = p.find((x) => re(x, N));
|
|
166
|
+
P ? e.move(P.id) : se();
|
|
167
167
|
});
|
|
168
168
|
return u = E(b({}, u), {
|
|
169
169
|
onKeyDownCapture: l
|
|
170
170
|
}), we(u);
|
|
171
171
|
});
|
|
172
172
|
k(function(t) {
|
|
173
|
-
const
|
|
174
|
-
return F(kt,
|
|
173
|
+
const n = le(t);
|
|
174
|
+
return F(kt, n);
|
|
175
175
|
});
|
|
176
176
|
var De = Se(
|
|
177
177
|
[ge],
|
|
178
178
|
[he]
|
|
179
179
|
), jt = De.useContext, Vt = De.useScopedContext;
|
|
180
|
-
|
|
180
|
+
Pe(
|
|
181
181
|
void 0
|
|
182
182
|
);
|
|
183
183
|
var Y = Se(
|
|
184
184
|
[ge, Be],
|
|
185
185
|
[he, Re]
|
|
186
186
|
), de = Y.useContext, Rt = Y.useScopedContext, oe = Y.useProviderContext, Bt = Y.ContextProvider, Kt = Y.ScopedContextProvider;
|
|
187
|
-
|
|
187
|
+
Pe(
|
|
188
188
|
void 0
|
|
189
189
|
);
|
|
190
|
-
function zt(
|
|
191
|
-
var t =
|
|
192
|
-
combobox:
|
|
190
|
+
function zt(r = {}) {
|
|
191
|
+
var t = r, {
|
|
192
|
+
combobox: n,
|
|
193
193
|
parent: e,
|
|
194
|
-
menubar:
|
|
194
|
+
menubar: s
|
|
195
195
|
} = t, u = tt(t, [
|
|
196
196
|
"combobox",
|
|
197
197
|
"parent",
|
|
198
198
|
"menubar"
|
|
199
199
|
]);
|
|
200
|
-
const a = !!
|
|
200
|
+
const a = !!s && !e, o = vt(
|
|
201
201
|
u.store,
|
|
202
202
|
ht(e, ["values"]),
|
|
203
|
-
bt(
|
|
203
|
+
bt(n, [
|
|
204
204
|
"arrowElement",
|
|
205
205
|
"anchorElement",
|
|
206
206
|
"contentElement",
|
|
@@ -208,16 +208,16 @@ function zt(n = {}) {
|
|
|
208
208
|
"disclosureElement"
|
|
209
209
|
])
|
|
210
210
|
);
|
|
211
|
-
gt(u,
|
|
212
|
-
const c =
|
|
213
|
-
store:
|
|
211
|
+
gt(u, o);
|
|
212
|
+
const c = o.getState(), l = St(G($({}, u), {
|
|
213
|
+
store: o,
|
|
214
214
|
orientation: W(
|
|
215
215
|
u.orientation,
|
|
216
216
|
c.orientation,
|
|
217
217
|
"vertical"
|
|
218
218
|
)
|
|
219
219
|
})), i = Ke(G($({}, u), {
|
|
220
|
-
store:
|
|
220
|
+
store: o,
|
|
221
221
|
placement: W(
|
|
222
222
|
u.placement,
|
|
223
223
|
c.placement,
|
|
@@ -237,7 +237,7 @@ function zt(n = {}) {
|
|
|
237
237
|
u.defaultValues,
|
|
238
238
|
{}
|
|
239
239
|
)
|
|
240
|
-
}), m = wt(w, l, i,
|
|
240
|
+
}), m = wt(w, l, i, o);
|
|
241
241
|
return me(
|
|
242
242
|
m,
|
|
243
243
|
() => ve(m, ["mounted"], (d) => {
|
|
@@ -252,9 +252,9 @@ function zt(n = {}) {
|
|
|
252
252
|
);
|
|
253
253
|
})
|
|
254
254
|
), G($($($({}, l), i), m), {
|
|
255
|
-
combobox:
|
|
255
|
+
combobox: n,
|
|
256
256
|
parent: e,
|
|
257
|
-
menubar:
|
|
257
|
+
menubar: s,
|
|
258
258
|
hideAll: () => {
|
|
259
259
|
i.hide(), e == null || e.hideAll();
|
|
260
260
|
},
|
|
@@ -270,47 +270,47 @@ function zt(n = {}) {
|
|
|
270
270
|
}
|
|
271
271
|
});
|
|
272
272
|
}
|
|
273
|
-
function Wt(
|
|
274
|
-
return nt(t, [
|
|
273
|
+
function Wt(r, t, n) {
|
|
274
|
+
return nt(t, [n.combobox, n.parent, n.menubar]), xt(r, n, "values", "setValues"), Object.assign(
|
|
275
275
|
ze(
|
|
276
|
-
Ct(
|
|
276
|
+
Ct(r, t, n),
|
|
277
277
|
t,
|
|
278
|
-
|
|
278
|
+
n
|
|
279
279
|
),
|
|
280
280
|
{
|
|
281
|
-
combobox:
|
|
282
|
-
parent:
|
|
283
|
-
menubar:
|
|
281
|
+
combobox: n.combobox,
|
|
282
|
+
parent: n.parent,
|
|
283
|
+
menubar: n.menubar
|
|
284
284
|
}
|
|
285
285
|
);
|
|
286
286
|
}
|
|
287
|
-
function Zt(
|
|
288
|
-
const t = de(),
|
|
289
|
-
|
|
290
|
-
parent:
|
|
291
|
-
menubar:
|
|
292
|
-
combobox:
|
|
287
|
+
function Zt(r = {}) {
|
|
288
|
+
const t = de(), n = jt(), e = At();
|
|
289
|
+
r = E(b({}, r), {
|
|
290
|
+
parent: r.parent !== void 0 ? r.parent : t,
|
|
291
|
+
menubar: r.menubar !== void 0 ? r.menubar : n,
|
|
292
|
+
combobox: r.combobox !== void 0 ? r.combobox : e
|
|
293
293
|
});
|
|
294
|
-
const [
|
|
295
|
-
return Wt(
|
|
294
|
+
const [s, u] = Mt(zt, r);
|
|
295
|
+
return Wt(s, u, r);
|
|
296
296
|
}
|
|
297
297
|
var Ut = "div";
|
|
298
|
-
function qt(
|
|
299
|
-
var t =
|
|
300
|
-
const [
|
|
298
|
+
function qt(r) {
|
|
299
|
+
var t = r, { store: n } = t, e = O(t, ["store"]);
|
|
300
|
+
const [s, u] = Oe(void 0), a = e["aria-label"], o = V(n, "disclosureElement"), c = V(n, "contentElement");
|
|
301
301
|
return Ae(() => {
|
|
302
|
-
const l =
|
|
302
|
+
const l = o;
|
|
303
303
|
if (!l) return;
|
|
304
304
|
const i = c;
|
|
305
305
|
if (!i) return;
|
|
306
306
|
a || i.hasAttribute("aria-label") ? u(void 0) : l.id && u(l.id);
|
|
307
|
-
}, [a,
|
|
307
|
+
}, [a, o, c]), s;
|
|
308
308
|
}
|
|
309
309
|
var ke = D(
|
|
310
310
|
function(t) {
|
|
311
|
-
var
|
|
312
|
-
const
|
|
313
|
-
e = e ||
|
|
311
|
+
var n = t, { store: e, alwaysVisible: s, composite: u } = n, a = O(n, ["store", "alwaysVisible", "composite"]);
|
|
312
|
+
const o = oe();
|
|
313
|
+
e = e || o, B(
|
|
314
314
|
e,
|
|
315
315
|
process.env.NODE_ENV !== "production" && "MenuList must receive a `store` prop or be wrapped in a MenuProvider component."
|
|
316
316
|
);
|
|
@@ -361,11 +361,11 @@ var ke = D(
|
|
|
361
361
|
(g) => /* @__PURE__ */ C.jsx(Kt, { value: e, children: g }),
|
|
362
362
|
[e]
|
|
363
363
|
);
|
|
364
|
-
const v = qt(b({ store: e }, a)), A = e.useState("mounted"),
|
|
364
|
+
const v = qt(b({ store: e }, a)), A = e.useState("mounted"), P = Et(A, a.hidden, s), x = P ? E(b({}, a.style), { display: "none" }) : a.style;
|
|
365
365
|
a = E(b({
|
|
366
366
|
id: w,
|
|
367
367
|
"aria-labelledby": v,
|
|
368
|
-
hidden:
|
|
368
|
+
hidden: P
|
|
369
369
|
}, a), {
|
|
370
370
|
ref: ne(w ? e.setContentElement : null, a.ref),
|
|
371
371
|
style: x,
|
|
@@ -379,19 +379,19 @@ var ke = D(
|
|
|
379
379
|
}
|
|
380
380
|
);
|
|
381
381
|
k(function(t) {
|
|
382
|
-
const
|
|
383
|
-
return F(Ut,
|
|
382
|
+
const n = ke(t);
|
|
383
|
+
return F(Ut, n);
|
|
384
384
|
});
|
|
385
385
|
var Gt = "div", Qt = D(function(t) {
|
|
386
|
-
var
|
|
386
|
+
var n = t, {
|
|
387
387
|
store: e,
|
|
388
|
-
modal:
|
|
389
|
-
portal: u = !!
|
|
388
|
+
modal: s = !1,
|
|
389
|
+
portal: u = !!s,
|
|
390
390
|
hideOnEscape: a = !0,
|
|
391
|
-
autoFocusOnShow:
|
|
391
|
+
autoFocusOnShow: o = !0,
|
|
392
392
|
hideOnHoverOutside: c,
|
|
393
393
|
alwaysVisible: l
|
|
394
|
-
} =
|
|
394
|
+
} = n, i = O(n, [
|
|
395
395
|
"store",
|
|
396
396
|
"modal",
|
|
397
397
|
"portal",
|
|
@@ -413,8 +413,8 @@ var Gt = "div", Qt = D(function(t) {
|
|
|
413
413
|
store: e,
|
|
414
414
|
alwaysVisible: l
|
|
415
415
|
}, i)), { "aria-labelledby": v } = M;
|
|
416
|
-
i =
|
|
417
|
-
const [
|
|
416
|
+
i = O(M, ["aria-labelledby"]);
|
|
417
|
+
const [P, x] = Oe(), H = e.useState("autoFocusOnShow"), g = e.useState("initialFocus"), K = e.useState("baseElement"), T = e.useState("renderedItems");
|
|
418
418
|
Ae(() => {
|
|
419
419
|
let _ = !1;
|
|
420
420
|
return x((y) => {
|
|
@@ -437,7 +437,7 @@ var Gt = "div", Qt = D(function(t) {
|
|
|
437
437
|
_ = !0;
|
|
438
438
|
};
|
|
439
439
|
}, [e, H, g, T, K]);
|
|
440
|
-
const L = p ? !1 :
|
|
440
|
+
const L = p ? !1 : s, h = !!o, I = !!P || !!i.initialFocus || !!L, z = V(
|
|
441
441
|
e.combobox || e,
|
|
442
442
|
"contentElement"
|
|
443
443
|
), R = V(
|
|
@@ -454,8 +454,8 @@ var Gt = "div", Qt = D(function(t) {
|
|
|
454
454
|
}, i)), i = We(E(b({
|
|
455
455
|
store: e,
|
|
456
456
|
alwaysVisible: l,
|
|
457
|
-
initialFocus:
|
|
458
|
-
autoFocusOnShow: h ? I &&
|
|
457
|
+
initialFocus: P,
|
|
458
|
+
autoFocusOnShow: h ? I && o : H || !!L
|
|
459
459
|
}, i), {
|
|
460
460
|
hideOnEscape(_) {
|
|
461
461
|
return st(a, _) ? !1 : (e == null || e.hideAll(), !0);
|
|
@@ -472,41 +472,41 @@ var Gt = "div", Qt = D(function(t) {
|
|
|
472
472
|
})), i = b({
|
|
473
473
|
"aria-labelledby": v
|
|
474
474
|
}, i), i;
|
|
475
|
-
}), Xt =
|
|
475
|
+
}), Xt = Pt(
|
|
476
476
|
k(function(t) {
|
|
477
|
-
const
|
|
478
|
-
return F(Gt,
|
|
477
|
+
const n = Qt(t);
|
|
478
|
+
return F(Gt, n);
|
|
479
479
|
}),
|
|
480
480
|
oe
|
|
481
481
|
), Yt = "div", Jt = D(
|
|
482
482
|
function(t) {
|
|
483
|
-
var
|
|
483
|
+
var n = t, { store: e } = n, s = O(n, ["store"]);
|
|
484
484
|
const u = de();
|
|
485
|
-
return e = e || u, pt(b({ store: e },
|
|
485
|
+
return e = e || u, pt(b({ store: e }, s));
|
|
486
486
|
}
|
|
487
487
|
), er = k(function(t) {
|
|
488
|
-
const
|
|
489
|
-
return F(Yt,
|
|
488
|
+
const n = Jt(t);
|
|
489
|
+
return F(Yt, n);
|
|
490
490
|
}), tr = "button";
|
|
491
|
-
function rr(
|
|
491
|
+
function rr(r, t) {
|
|
492
492
|
return {
|
|
493
493
|
ArrowDown: t === "bottom" || t === "top" ? "first" : !1,
|
|
494
494
|
ArrowUp: t === "bottom" || t === "top" ? "last" : !1,
|
|
495
495
|
ArrowRight: t === "right" ? "first" : !1,
|
|
496
496
|
ArrowLeft: t === "left" ? "first" : !1
|
|
497
|
-
}[
|
|
497
|
+
}[r.key];
|
|
498
498
|
}
|
|
499
|
-
function be(
|
|
500
|
-
return !!(
|
|
499
|
+
function be(r, t) {
|
|
500
|
+
return !!(r != null && r.some((n) => !n.element || n.element === t ? !1 : n.element.getAttribute("aria-expanded") === "true"));
|
|
501
501
|
}
|
|
502
502
|
var nr = D(
|
|
503
503
|
function(t) {
|
|
504
|
-
var
|
|
504
|
+
var n = t, {
|
|
505
505
|
store: e,
|
|
506
|
-
focusable:
|
|
506
|
+
focusable: s,
|
|
507
507
|
accessibleWhenDisabled: u,
|
|
508
508
|
showOnHover: a
|
|
509
|
-
} =
|
|
509
|
+
} = n, o = O(n, [
|
|
510
510
|
"store",
|
|
511
511
|
"focusable",
|
|
512
512
|
"accessibleWhenDisabled",
|
|
@@ -517,50 +517,50 @@ var nr = D(
|
|
|
517
517
|
e,
|
|
518
518
|
process.env.NODE_ENV !== "production" && "MenuButton must receive a `store` prop or be wrapped in a MenuProvider component."
|
|
519
519
|
);
|
|
520
|
-
const l = ce(null), i = e.parent, w = e.menubar, m = !!i, d = !!w && !m, S = at(
|
|
520
|
+
const l = ce(null), i = e.parent, w = e.menubar, m = !!i, d = !!w && !m, S = at(o), p = () => {
|
|
521
521
|
const h = l.current;
|
|
522
522
|
h && (e == null || e.setDisclosureElement(h), e == null || e.setAnchorElement(h), e == null || e.show());
|
|
523
|
-
}, f =
|
|
523
|
+
}, f = o.onFocus, M = j((h) => {
|
|
524
524
|
if (f == null || f(h), S || h.defaultPrevented || (e == null || e.setAutoFocusOnShow(!1), e == null || e.setActiveId(null), !w) || !d) return;
|
|
525
525
|
const { items: I } = w.getState();
|
|
526
526
|
be(I, h.currentTarget) && p();
|
|
527
527
|
}), v = V(
|
|
528
528
|
e,
|
|
529
529
|
(h) => h.placement.split("-")[0]
|
|
530
|
-
), A =
|
|
530
|
+
), A = o.onKeyDown, P = j((h) => {
|
|
531
531
|
if (A == null || A(h), S || h.defaultPrevented) return;
|
|
532
532
|
const I = rr(h, v);
|
|
533
533
|
I && (h.preventDefault(), p(), e == null || e.setAutoFocusOnShow(!0), e == null || e.setInitialFocus(I));
|
|
534
|
-
}), x =
|
|
534
|
+
}), x = o.onClick, H = j((h) => {
|
|
535
535
|
if (x == null || x(h), h.defaultPrevented || !e) return;
|
|
536
536
|
const I = !h.detail, { open: z } = e.getState();
|
|
537
537
|
(!z || I) && ((!m || I) && e.setAutoFocusOnShow(!0), e.setInitialFocus(I ? "first" : "container")), m && p();
|
|
538
538
|
});
|
|
539
|
-
|
|
540
|
-
|
|
539
|
+
o = ye(
|
|
540
|
+
o,
|
|
541
541
|
(h) => /* @__PURE__ */ C.jsx(Bt, { value: e, children: h }),
|
|
542
542
|
[e]
|
|
543
|
-
), m && (
|
|
544
|
-
render: /* @__PURE__ */ C.jsx(
|
|
543
|
+
), m && (o = E(b({}, o), {
|
|
544
|
+
render: /* @__PURE__ */ C.jsx(Ot.div, { render: o.render })
|
|
545
545
|
}));
|
|
546
|
-
const g = Ce(
|
|
546
|
+
const g = Ce(o.id), K = V(
|
|
547
547
|
(i == null ? void 0 : i.combobox) || i,
|
|
548
548
|
"contentElement"
|
|
549
549
|
), T = m || d ? Ee(K, "menuitem") : void 0, L = e.useState("contentElement");
|
|
550
|
-
return
|
|
550
|
+
return o = E(b({
|
|
551
551
|
id: g,
|
|
552
552
|
role: T,
|
|
553
553
|
"aria-haspopup": ut(L, "menu")
|
|
554
|
-
},
|
|
555
|
-
ref: ne(l,
|
|
554
|
+
}, o), {
|
|
555
|
+
ref: ne(l, o.ref),
|
|
556
556
|
onFocus: M,
|
|
557
|
-
onKeyDown:
|
|
557
|
+
onKeyDown: P,
|
|
558
558
|
onClick: H
|
|
559
|
-
}),
|
|
559
|
+
}), o = Ze(E(b({
|
|
560
560
|
store: e,
|
|
561
|
-
focusable:
|
|
561
|
+
focusable: s,
|
|
562
562
|
accessibleWhenDisabled: u
|
|
563
|
-
},
|
|
563
|
+
}, o), {
|
|
564
564
|
showOnHover: (h) => {
|
|
565
565
|
if (!(() => {
|
|
566
566
|
if (typeof a == "function") return a(h);
|
|
@@ -573,41 +573,41 @@ var nr = D(
|
|
|
573
573
|
const R = d ? w : i;
|
|
574
574
|
return R && R.setActiveId(h.currentTarget.id), !0;
|
|
575
575
|
}
|
|
576
|
-
})),
|
|
576
|
+
})), o = mt(b({
|
|
577
577
|
store: e,
|
|
578
578
|
toggleOnClick: !m,
|
|
579
|
-
focusable:
|
|
579
|
+
focusable: s,
|
|
580
580
|
accessibleWhenDisabled: u
|
|
581
|
-
},
|
|
581
|
+
}, o)), o = le(b({
|
|
582
582
|
store: e,
|
|
583
583
|
typeahead: d
|
|
584
|
-
},
|
|
584
|
+
}, o)), o;
|
|
585
585
|
}
|
|
586
586
|
), or = k(function(t) {
|
|
587
|
-
const
|
|
588
|
-
return F(tr,
|
|
587
|
+
const n = nr(t);
|
|
588
|
+
return F(tr, n);
|
|
589
589
|
}), sr = "div";
|
|
590
|
-
function ar(
|
|
590
|
+
function ar(r, t, n) {
|
|
591
591
|
var e;
|
|
592
|
-
if (!
|
|
593
|
-
if (Z(
|
|
594
|
-
const
|
|
592
|
+
if (!r) return !1;
|
|
593
|
+
if (Z(r)) return !0;
|
|
594
|
+
const s = t == null ? void 0 : t.find((c) => {
|
|
595
595
|
var l;
|
|
596
|
-
return c.element ===
|
|
597
|
-
}), u = (e =
|
|
596
|
+
return c.element === n ? !1 : ((l = c.element) == null ? void 0 : l.getAttribute("aria-expanded")) === "true";
|
|
597
|
+
}), u = (e = s == null ? void 0 : s.element) == null ? void 0 : e.getAttribute("aria-controls");
|
|
598
598
|
if (!u) return !1;
|
|
599
|
-
const
|
|
600
|
-
return
|
|
599
|
+
const o = xe(r).getElementById(u);
|
|
600
|
+
return o ? Z(o) ? !0 : !!o.querySelector("[role=menuitem][aria-expanded=true]") : !1;
|
|
601
601
|
}
|
|
602
602
|
var ur = D(
|
|
603
603
|
function(t) {
|
|
604
|
-
var
|
|
604
|
+
var n = t, {
|
|
605
605
|
store: e,
|
|
606
|
-
hideOnClick:
|
|
606
|
+
hideOnClick: s = !0,
|
|
607
607
|
preventScrollOnKeyDown: u = !0,
|
|
608
608
|
focusOnHover: a,
|
|
609
|
-
blurOnHoverEnd:
|
|
610
|
-
} =
|
|
609
|
+
blurOnHoverEnd: o
|
|
610
|
+
} = n, c = O(n, [
|
|
611
611
|
"store",
|
|
612
612
|
"hideOnClick",
|
|
613
613
|
"preventScrollOnKeyDown",
|
|
@@ -619,7 +619,7 @@ var ur = D(
|
|
|
619
619
|
e,
|
|
620
620
|
process.env.NODE_ENV !== "production" && "MenuItem must be wrapped in a MenuList, Menu or Menubar component"
|
|
621
621
|
);
|
|
622
|
-
const w = c.onClick, m = ae(
|
|
622
|
+
const w = c.onClick, m = ae(s), d = "hideAll" in e ? e.hideAll : void 0, S = !!d, p = j((v) => {
|
|
623
623
|
w == null || w(v), !(v.defaultPrevented || it(v) || ct(v) || !d || v.currentTarget.getAttribute("aria-haspopup") === "menu") && m(v) && d();
|
|
624
624
|
}), f = V(
|
|
625
625
|
e,
|
|
@@ -638,28 +638,28 @@ var ur = D(
|
|
|
638
638
|
focusOnHover(v) {
|
|
639
639
|
const A = () => typeof a == "function" ? a(v) : a ?? !0;
|
|
640
640
|
if (!e || !A()) return !1;
|
|
641
|
-
const { baseElement:
|
|
642
|
-
return S ? (v.currentTarget.hasAttribute("aria-expanded") && v.currentTarget.focus(), !0) : ar(
|
|
641
|
+
const { baseElement: P, items: x } = e.getState();
|
|
642
|
+
return S ? (v.currentTarget.hasAttribute("aria-expanded") && v.currentTarget.focus(), !0) : ar(P, x, v.currentTarget) ? (v.currentTarget.focus(), !0) : !1;
|
|
643
643
|
},
|
|
644
644
|
blurOnHoverEnd(v) {
|
|
645
|
-
return typeof
|
|
645
|
+
return typeof o == "function" ? o(v) : o ?? S;
|
|
646
646
|
}
|
|
647
647
|
})), c;
|
|
648
648
|
}
|
|
649
649
|
), ir = Me(
|
|
650
650
|
k(function(t) {
|
|
651
|
-
const
|
|
652
|
-
return F(sr,
|
|
651
|
+
const n = ur(t);
|
|
652
|
+
return F(sr, n);
|
|
653
653
|
})
|
|
654
654
|
), cr = "hr", lr = D(
|
|
655
655
|
function(t) {
|
|
656
|
-
var
|
|
656
|
+
var n = t, { store: e } = n, s = O(n, ["store"]);
|
|
657
657
|
const u = de();
|
|
658
|
-
return e = e || u,
|
|
658
|
+
return e = e || u, s = _e(b({ store: e }, s)), s;
|
|
659
659
|
}
|
|
660
660
|
), dr = k(function(t) {
|
|
661
|
-
const
|
|
662
|
-
return F(cr,
|
|
661
|
+
const n = lr(t);
|
|
662
|
+
return F(cr, n);
|
|
663
663
|
});
|
|
664
664
|
const fr = Q.divBox`
|
|
665
665
|
display: flex;
|
|
@@ -671,16 +671,16 @@ const fr = Q.divBox`
|
|
|
671
671
|
color: ${U("defaultCards.borderColor")};
|
|
672
672
|
}
|
|
673
673
|
`, pr = Q.svgBox(
|
|
674
|
-
({ $transform:
|
|
675
|
-
transform: ${
|
|
674
|
+
({ $transform: r }) => Le`
|
|
675
|
+
transform: ${r};
|
|
676
676
|
`
|
|
677
677
|
), mr = {
|
|
678
678
|
bottom: "rotateZ(360deg)",
|
|
679
679
|
left: "rotateZ(90deg)",
|
|
680
680
|
right: "rotateZ(-90deg)",
|
|
681
681
|
top: "rotateZ(180deg)"
|
|
682
|
-
}, Fe = X(({ store:
|
|
683
|
-
const
|
|
682
|
+
}, Fe = X(({ store: r }, t) => {
|
|
683
|
+
const n = r == null ? void 0 : r.useState("currentPlacement"), [e] = n.split("-");
|
|
684
684
|
return /* @__PURE__ */ C.jsx(er, { ref: t, render: /* @__PURE__ */ C.jsx(fr, {}), children: /* @__PURE__ */ C.jsxs(
|
|
685
685
|
pr,
|
|
686
686
|
{
|
|
@@ -712,14 +712,14 @@ const vr = Q.buttonBox`
|
|
|
712
712
|
&:focus {
|
|
713
713
|
outline: none !important; /* important for firefox */
|
|
714
714
|
}
|
|
715
|
-
`, Ne = X(({ as:
|
|
715
|
+
`, Ne = X(({ as: r, ...t }, n) => /* @__PURE__ */ C.jsx(ir, { ref: n, type: "button", ...t, render: /* @__PURE__ */ C.jsx(vr, { as: r }) }));
|
|
716
716
|
Ne.displayName = "Item";
|
|
717
717
|
const br = Q.hr`
|
|
718
718
|
${U("dropdownMenu.separator")};
|
|
719
719
|
border: 0;
|
|
720
720
|
height: 1px;
|
|
721
721
|
margin: 0;
|
|
722
|
-
`, hr = X((
|
|
722
|
+
`, hr = X((r, t) => /* @__PURE__ */ C.jsx(dr, { ref: t, render: /* @__PURE__ */ C.jsx(br, {}), ...r })), gr = Q.divBox`
|
|
723
723
|
${U("cards.default")};
|
|
724
724
|
${U("dropdownMenu.inner")};
|
|
725
725
|
z-index: 1;
|
|
@@ -730,10 +730,10 @@ const br = Q.hr`
|
|
|
730
730
|
opacity: 1;
|
|
731
731
|
}
|
|
732
732
|
`, wr = X(
|
|
733
|
-
({ children:
|
|
734
|
-
const
|
|
735
|
-
let l =
|
|
736
|
-
return typeof l == "string" && (l = parseInt(
|
|
733
|
+
({ children: r, dataTestId: t, gutter: n = "xs", innerProps: e = {}, store: s, ...u }, a) => {
|
|
734
|
+
const o = $e(), c = s.useState("arrowElement");
|
|
735
|
+
let l = n;
|
|
736
|
+
return typeof l == "string" && (l = parseInt(o.toPx(parseFloat(o.space[n])), 10) || 0), c && (l = 0), /* @__PURE__ */ C.jsx(
|
|
737
737
|
Xt,
|
|
738
738
|
{
|
|
739
739
|
"aria-label": "dropdown-menu",
|
|
@@ -741,27 +741,27 @@ const br = Q.hr`
|
|
|
741
741
|
gutter: l,
|
|
742
742
|
ref: a,
|
|
743
743
|
render: /* @__PURE__ */ C.jsx(gr, { ...e }),
|
|
744
|
-
store:
|
|
744
|
+
store: s,
|
|
745
745
|
tabIndex: 0,
|
|
746
746
|
...u,
|
|
747
|
-
children:
|
|
747
|
+
children: r
|
|
748
748
|
}
|
|
749
749
|
);
|
|
750
750
|
}
|
|
751
751
|
);
|
|
752
|
-
function kr(
|
|
752
|
+
function kr(r = {}) {
|
|
753
753
|
return Zt({
|
|
754
754
|
animated: !0,
|
|
755
|
-
...
|
|
755
|
+
...r
|
|
756
756
|
});
|
|
757
757
|
}
|
|
758
|
-
const Mr = X(({ as:
|
|
758
|
+
const Mr = X(({ as: r, store: t, ...n }, e) => /* @__PURE__ */ C.jsx(
|
|
759
759
|
or,
|
|
760
760
|
{
|
|
761
761
|
ref: e,
|
|
762
|
-
render:
|
|
762
|
+
render: r ? (s) => /* @__PURE__ */ C.jsx(r, { ...s }) : void 0,
|
|
763
763
|
store: t,
|
|
764
|
-
...
|
|
764
|
+
...n
|
|
765
765
|
}
|
|
766
766
|
)), Fr = Object.assign(wr, {
|
|
767
767
|
Arrow: Fe,
|