@okam/stack-ui 1.35.1 → 1.35.3
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/components/fields/SearchField/interface.d.ts +1 -0
- package/index.d.ts +1 -0
- package/index103.js +1 -1
- package/index103.mjs +1 -1
- package/index105.js +1 -1
- package/index105.mjs +1 -1
- package/index106.js +1 -1
- package/index106.mjs +3 -3
- package/index107.js +1 -1
- package/index107.mjs +1 -1
- package/index112.js +1 -1
- package/index112.mjs +1 -1
- package/index115.js +1 -1
- package/index115.mjs +1 -1
- package/index122.js +1 -1
- package/index122.mjs +1 -1
- package/index123.js +1 -1
- package/index123.mjs +4 -4
- package/index124.js +1 -1
- package/index124.mjs +2 -2
- package/index139.js +1 -1
- package/index139.mjs +46 -12
- package/index140.js +1 -1
- package/index140.mjs +240 -11
- package/index141.js +2 -1
- package/index141.mjs +13 -57
- package/index142.js +1 -1
- package/index142.mjs +30 -46
- package/index143.js +1 -1
- package/index143.mjs +12 -241
- package/index144.js +1 -2
- package/index144.mjs +57 -13
- package/index145.js +1 -1
- package/index145.mjs +12 -30
- package/index167.js +1 -1
- package/index167.mjs +1 -1
- package/index18.js +1 -1
- package/index18.mjs +22 -22
- package/index195.js +1 -1
- package/index195.mjs +197 -134
- package/index196.js +1 -1
- package/index196.mjs +61 -194
- package/index197.js +1 -1
- package/index197.mjs +142 -21
- package/index198.js +1 -1
- package/index198.mjs +120 -45
- package/index199.js +1 -1
- package/index199.mjs +222 -46
- package/index200.js +1 -1
- package/index200.mjs +187 -94
- package/index201.js +1 -1
- package/index201.mjs +70 -72
- package/index202.js +1 -1
- package/index202.mjs +272 -61
- package/index203.js +1 -1
- package/index203.mjs +98 -7
- package/index204.js +1 -1
- package/index204.mjs +187 -10
- package/index205.js +1 -1
- package/index205.mjs +73 -192
- package/index206.js +1 -1
- package/index206.mjs +51 -57
- package/index207.js +1 -1
- package/index207.mjs +118 -135
- package/index208.js +1 -1
- package/index208.mjs +107 -115
- package/index209.js +1 -1
- package/index209.mjs +110 -212
- package/index210.js +1 -1
- package/index210.mjs +64 -182
- package/index211.js +1 -1
- package/index211.mjs +108 -67
- package/index212.js +1 -1
- package/index212.mjs +49 -276
- package/index213.js +1 -1
- package/index213.mjs +86 -91
- package/index214.js +1 -1
- package/index214.mjs +64 -182
- package/index215.js +1 -1
- package/index215.mjs +51 -79
- package/index216.js +1 -1
- package/index216.mjs +94 -53
- package/index217.js +5 -1
- package/index217.mjs +76 -122
- package/index218.js +1 -1
- package/index218.mjs +2014 -105
- package/index219.js +1 -1
- package/index219.mjs +57 -120
- package/index220.js +1 -1
- package/index220.mjs +186 -70
- package/index221.js +1 -1
- package/index221.mjs +137 -107
- package/index222.js +1 -1
- package/index222.mjs +197 -52
- package/index223.js +1 -1
- package/index223.mjs +22 -93
- package/index224.js +1 -1
- package/index224.mjs +46 -67
- package/index225.js +1 -1
- package/index225.mjs +47 -55
- package/index226.js +1 -1
- package/index226.mjs +96 -98
- package/index227.js +1 -5
- package/index227.mjs +72 -81
- package/index228.js +1 -1
- package/index228.mjs +58 -2015
- package/index229.js +1 -1
- package/index229.mjs +7 -59
- package/index230.js +1 -1
- package/index230.mjs +10 -187
- package/index233.js +1 -1
- package/index233.mjs +130 -4
- package/index234.js +1 -1
- package/index234.mjs +191 -5
- package/index235.js +1 -1
- package/index235.mjs +10 -5
- package/index236.js +1 -1
- package/index236.mjs +4 -5
- package/index237.js +1 -1
- package/index237.mjs +37 -5
- package/index238.js +1 -1
- package/index238.mjs +6 -5
- package/index239.js +1 -1
- package/index239.mjs +30 -5
- package/index240.js +1 -1
- package/index240.mjs +7 -5
- package/index241.js +1 -1
- package/index241.mjs +4 -4
- package/index242.js +1 -1
- package/index242.mjs +4 -4
- package/index243.js +1 -1
- package/index243.mjs +1 -1
- package/index244.js +1 -1
- package/index244.mjs +4 -4
- package/index245.js +1 -1
- package/index245.mjs +4 -4
- package/index246.js +1 -1
- package/index246.mjs +4 -4
- package/index247.js +1 -1
- package/index247.mjs +1 -1
- package/index248.js +1 -1
- package/index248.mjs +4 -4
- package/index249.js +1 -1
- package/index249.mjs +4 -4
- package/index250.js +1 -1
- package/index250.mjs +4 -4
- package/index251.js +1 -1
- package/index251.mjs +1 -1
- package/index252.js +1 -1
- package/index252.mjs +4 -4
- package/index253.js +1 -1
- package/index253.mjs +4 -4
- package/index254.js +1 -1
- package/index254.mjs +4 -4
- package/index255.js +1 -1
- package/index255.mjs +4 -4
- package/index256.js +1 -1
- package/index256.mjs +4 -4
- package/index257.js +1 -1
- package/index257.mjs +4 -4
- package/index258.js +1 -1
- package/index258.mjs +4 -4
- package/index259.js +1 -1
- package/index259.mjs +4 -4
- package/index260.js +1 -1
- package/index260.mjs +1 -1
- package/index261.js +1 -1
- package/index261.mjs +4 -4
- package/index262.js +1 -1
- package/index262.mjs +4 -4
- package/index263.js +1 -1
- package/index263.mjs +1 -1
- package/index264.js +1 -1
- package/index264.mjs +4 -4
- package/index265.js +1 -1
- package/index265.mjs +4 -4
- package/index266.js +1 -1
- package/index266.mjs +4 -4
- package/index267.js +1 -1
- package/index267.mjs +4 -130
- package/index268.js +1 -1
- package/index268.mjs +5 -191
- package/index269.js +1 -1
- package/index269.mjs +5 -10
- package/index270.js +1 -1
- package/index270.mjs +5 -4
- package/index271.js +1 -1
- package/index271.mjs +5 -37
- package/index272.js +1 -1
- package/index272.mjs +5 -6
- package/index273.js +1 -1
- package/index273.mjs +5 -30
- package/index274.js +1 -1
- package/index274.mjs +5 -7
- package/package.json +2 -28
package/index142.mjs
CHANGED
|
@@ -1,48 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
import { jsx as h } from "react/jsx-runtime";
|
|
2
|
+
import { useFocusManager as y, useKeyboard as P, usePress as k } from "react-aria";
|
|
3
|
+
import { useSwiperController as w } from "./index74.mjs";
|
|
4
|
+
import g from "./index6.mjs";
|
|
5
|
+
const N = (d) => {
|
|
6
|
+
const { themeName: l, tokens: u, slides: o, activeIndex: p, index: t } = d, { controller: e } = w(), s = y(), m = t === 0 ? o.length - 1 : t - 1, c = t === o.length - 1 ? 0 : t + 1, { keyboardProps: b } = P({
|
|
7
|
+
onKeyUp: (i) => {
|
|
8
|
+
i.key === "ArrowLeft" && (i.preventDefault(), s == null || s.focusPrevious({ wrap: !0 }), e == null || e.slideTo(m)), i.key === "ArrowRight" && (i.preventDefault(), s == null || s.focusNext({ wrap: !0 }), e == null || e.slideTo(c));
|
|
9
|
+
}
|
|
10
|
+
}), { pressProps: f } = k({
|
|
11
|
+
onPress: () => e == null ? void 0 : e.slideTo(t)
|
|
12
|
+
}), v = o[t], n = t === p, { title: r, id: x } = v, a = r && r.length > 0;
|
|
13
|
+
return /* @__PURE__ */ h(
|
|
14
|
+
g,
|
|
15
|
+
{
|
|
16
|
+
as: "button",
|
|
17
|
+
tabIndex: 0,
|
|
18
|
+
role: "button",
|
|
19
|
+
"aria-current": n ? "true" : "false",
|
|
20
|
+
"aria-disabled": n,
|
|
21
|
+
"aria-label": a ? void 0 : `${t + 1} / ${o.length}`,
|
|
22
|
+
"aria-labelledby": a ? x : void 0,
|
|
23
|
+
...b,
|
|
24
|
+
...f,
|
|
25
|
+
themeName: `${l}.bullet`,
|
|
26
|
+
tokens: { ...u, active: n }
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
};
|
|
24
30
|
export {
|
|
25
|
-
|
|
26
|
-
A as Autoplay,
|
|
27
|
-
b as Controller,
|
|
28
|
-
Q as EffectCards,
|
|
29
|
-
I as EffectCoverflow,
|
|
30
|
-
L as EffectCreative,
|
|
31
|
-
q as EffectCube,
|
|
32
|
-
j as EffectFade,
|
|
33
|
-
B as EffectFlip,
|
|
34
|
-
G as FreeMode,
|
|
35
|
-
S as Grid,
|
|
36
|
-
M as HashNavigation,
|
|
37
|
-
h as History,
|
|
38
|
-
f as Keyboard,
|
|
39
|
-
V as Manipulation,
|
|
40
|
-
l as Mousewheel,
|
|
41
|
-
d as Navigation,
|
|
42
|
-
p as Pagination,
|
|
43
|
-
c as Parallax,
|
|
44
|
-
x as Scrollbar,
|
|
45
|
-
N as Thumbs,
|
|
46
|
-
o as Virtual,
|
|
47
|
-
E as Zoom
|
|
31
|
+
N as default
|
|
48
32
|
};
|
package/index143.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const T=require("react/jsx-runtime"),e=require("@react-spring/web"),g=require("./index67.js"),u=t=>{const{isVisible:o,children:i,themeName:n,tokens:r,customTheme:s,...a}=t,d=e.useTransition(o,{from:{gridTemplateRows:"0fr",paddingTop:"0",paddingBottom:"0"},enter:{gridTemplateRows:"1fr",paddingTop:"1rem",paddingBottom:"1rem"},leave:{gridTemplateRows:"0fr",paddingTop:"0",paddingBottom:"0"}}),m=g(n,r,s);return d((c,p)=>p&&T.jsx(e.animated.div,{...a,style:c,className:m,children:i}))};module.exports=u;
|
package/index143.mjs
CHANGED
|
@@ -1,243 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return n;
|
|
13
|
-
}, k.apply(this, arguments);
|
|
14
|
-
}
|
|
15
|
-
function H(n) {
|
|
16
|
-
return n.type && n.type.displayName && n.type.displayName.includes("SwiperSlide");
|
|
17
|
-
}
|
|
18
|
-
function U(n) {
|
|
19
|
-
const r = [];
|
|
20
|
-
return a.Children.toArray(n).forEach((s) => {
|
|
21
|
-
H(s) ? r.push(s) : s.props && s.props.children && U(s.props.children).forEach((t) => r.push(t));
|
|
22
|
-
}), r;
|
|
23
|
-
}
|
|
24
|
-
function le(n) {
|
|
25
|
-
const r = [], s = {
|
|
26
|
-
"container-start": [],
|
|
27
|
-
"container-end": [],
|
|
28
|
-
"wrapper-start": [],
|
|
29
|
-
"wrapper-end": []
|
|
30
|
-
};
|
|
31
|
-
return a.Children.toArray(n).forEach((t) => {
|
|
32
|
-
if (H(t))
|
|
33
|
-
r.push(t);
|
|
34
|
-
else if (t.props && t.props.slot && s[t.props.slot])
|
|
35
|
-
s[t.props.slot].push(t);
|
|
36
|
-
else if (t.props && t.props.children) {
|
|
37
|
-
const p = U(t.props.children);
|
|
38
|
-
p.length > 0 ? p.forEach((l) => r.push(l)) : s["container-end"].push(t);
|
|
39
|
-
} else
|
|
40
|
-
s["container-end"].push(t);
|
|
41
|
-
}), {
|
|
42
|
-
slides: r,
|
|
43
|
-
slots: s
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
function ce(n, r, s) {
|
|
47
|
-
if (!s) return null;
|
|
48
|
-
const t = (o) => {
|
|
49
|
-
let i = o;
|
|
50
|
-
return o < 0 ? i = r.length + o : i >= r.length && (i = i - r.length), i;
|
|
51
|
-
}, p = n.isHorizontal() ? {
|
|
52
|
-
[n.rtlTranslate ? "right" : "left"]: `${s.offset}px`
|
|
53
|
-
} : {
|
|
54
|
-
top: `${s.offset}px`
|
|
55
|
-
}, {
|
|
56
|
-
from: l,
|
|
57
|
-
to: d
|
|
58
|
-
} = s, S = n.params.loop ? -r.length : 0, h = n.params.loop ? r.length * 2 : r.length, g = [];
|
|
59
|
-
for (let o = S; o < h; o += 1)
|
|
60
|
-
o >= l && o <= d && g.push(r[t(o)]);
|
|
61
|
-
return g.map((o, i) => /* @__PURE__ */ a.cloneElement(o, {
|
|
62
|
-
swiper: n,
|
|
63
|
-
style: p,
|
|
64
|
-
key: o.props.virtualIndex || o.key || `slide-${i}`
|
|
65
|
-
}));
|
|
66
|
-
}
|
|
67
|
-
function O(n, r) {
|
|
68
|
-
return typeof window > "u" ? _(n, r) : Q(n, r);
|
|
69
|
-
}
|
|
70
|
-
const B = /* @__PURE__ */ q(null), ge = () => X(B), ue = /* @__PURE__ */ q(null), pe = /* @__PURE__ */ W(function(n, r) {
|
|
71
|
-
let {
|
|
72
|
-
className: s,
|
|
73
|
-
tag: t = "div",
|
|
74
|
-
wrapperTag: p = "div",
|
|
75
|
-
children: l,
|
|
76
|
-
onSwiper: d,
|
|
77
|
-
...S
|
|
78
|
-
} = n === void 0 ? {} : n, h = !1;
|
|
79
|
-
const [g, o] = P("swiper"), [i, m] = P(null), [C, R] = P(!1), z = u(!1), w = u(null), e = u(null), x = u(null), $ = u(null), I = u(null), b = u(null), N = u(null), L = u(null), {
|
|
80
|
-
params: f,
|
|
81
|
-
passedParams: T,
|
|
82
|
-
rest: G,
|
|
83
|
-
events: v
|
|
84
|
-
} = Z(S), {
|
|
85
|
-
slides: y,
|
|
86
|
-
slots: j
|
|
87
|
-
} = le(l), A = () => {
|
|
88
|
-
R(!C);
|
|
89
|
-
};
|
|
90
|
-
Object.assign(f.on, {
|
|
91
|
-
_containerClasses(c, E) {
|
|
92
|
-
o(E);
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
const V = () => {
|
|
96
|
-
Object.assign(f.on, v), h = !0;
|
|
97
|
-
const c = {
|
|
98
|
-
...f
|
|
99
|
-
};
|
|
100
|
-
if (delete c.wrapperClass, e.current = new Y(c), e.current.virtual && e.current.params.virtual.enabled) {
|
|
101
|
-
e.current.virtual.slides = y;
|
|
102
|
-
const E = {
|
|
103
|
-
cache: !1,
|
|
104
|
-
slides: y,
|
|
105
|
-
renderExternal: m,
|
|
106
|
-
renderExternalUpdate: !1
|
|
107
|
-
};
|
|
108
|
-
F(e.current.params.virtual, E), F(e.current.originalParams.virtual, E);
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
w.current || V(), e.current && e.current.on("_beforeBreakpoint", A);
|
|
112
|
-
const J = () => {
|
|
113
|
-
h || !v || !e.current || Object.keys(v).forEach((c) => {
|
|
114
|
-
e.current.on(c, v[c]);
|
|
115
|
-
});
|
|
116
|
-
}, K = () => {
|
|
117
|
-
!v || !e.current || Object.keys(v).forEach((c) => {
|
|
118
|
-
e.current.off(c, v[c]);
|
|
119
|
-
});
|
|
120
|
-
};
|
|
121
|
-
_(() => () => {
|
|
122
|
-
e.current && e.current.off("_beforeBreakpoint", A);
|
|
123
|
-
}), _(() => {
|
|
124
|
-
!z.current && e.current && (e.current.emitSlidesClasses(), z.current = !0);
|
|
125
|
-
}), O(() => {
|
|
126
|
-
if (r && (r.current = w.current), !!w.current)
|
|
127
|
-
return e.current.destroyed && V(), ee({
|
|
128
|
-
el: w.current,
|
|
129
|
-
nextEl: I.current,
|
|
130
|
-
prevEl: b.current,
|
|
131
|
-
paginationEl: N.current,
|
|
132
|
-
scrollbarEl: L.current,
|
|
133
|
-
swiper: e.current
|
|
134
|
-
}, f), d && !e.current.destroyed && d(e.current), () => {
|
|
135
|
-
e.current && !e.current.destroyed && e.current.destroy(!0, !1);
|
|
136
|
-
};
|
|
137
|
-
}, []), O(() => {
|
|
138
|
-
J();
|
|
139
|
-
const c = re(T, x.current, y, $.current, (E) => E.key);
|
|
140
|
-
return x.current = T, $.current = y, c.length && e.current && !e.current.destroyed && oe({
|
|
141
|
-
swiper: e.current,
|
|
142
|
-
slides: y,
|
|
143
|
-
passedParams: T,
|
|
144
|
-
changedParams: c,
|
|
145
|
-
nextEl: I.current,
|
|
146
|
-
prevEl: b.current,
|
|
147
|
-
scrollbarEl: L.current,
|
|
148
|
-
paginationEl: N.current
|
|
149
|
-
}), () => {
|
|
150
|
-
K();
|
|
151
|
-
};
|
|
152
|
-
}), O(() => {
|
|
153
|
-
te(e.current);
|
|
154
|
-
}, [i]);
|
|
155
|
-
function M() {
|
|
156
|
-
return f.virtual ? ce(e.current, y, i) : y.map((c, E) => /* @__PURE__ */ a.cloneElement(c, {
|
|
157
|
-
swiper: e.current,
|
|
158
|
-
swiperSlideIndex: E
|
|
159
|
-
}));
|
|
160
|
-
}
|
|
161
|
-
return /* @__PURE__ */ a.createElement(t, k({
|
|
162
|
-
ref: w,
|
|
163
|
-
className: D(`${g}${s ? ` ${s}` : ""}`)
|
|
164
|
-
}, G), /* @__PURE__ */ a.createElement(ue.Provider, {
|
|
165
|
-
value: e.current
|
|
166
|
-
}, j["container-start"], /* @__PURE__ */ a.createElement(p, {
|
|
167
|
-
className: ne(f.wrapperClass)
|
|
168
|
-
}, j["wrapper-start"], M(), j["wrapper-end"]), se(f) && /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("div", {
|
|
169
|
-
ref: b,
|
|
170
|
-
className: "swiper-button-prev"
|
|
171
|
-
}), /* @__PURE__ */ a.createElement("div", {
|
|
172
|
-
ref: I,
|
|
173
|
-
className: "swiper-button-next"
|
|
174
|
-
})), ae(f) && /* @__PURE__ */ a.createElement("div", {
|
|
175
|
-
ref: L,
|
|
176
|
-
className: "swiper-scrollbar"
|
|
177
|
-
}), ie(f) && /* @__PURE__ */ a.createElement("div", {
|
|
178
|
-
ref: N,
|
|
179
|
-
className: "swiper-pagination"
|
|
180
|
-
}), j["container-end"]));
|
|
181
|
-
});
|
|
182
|
-
pe.displayName = "Swiper";
|
|
183
|
-
const de = /* @__PURE__ */ W(function(n, r) {
|
|
184
|
-
let {
|
|
185
|
-
tag: s = "div",
|
|
186
|
-
children: t,
|
|
187
|
-
className: p = "",
|
|
188
|
-
swiper: l,
|
|
189
|
-
zoom: d,
|
|
190
|
-
lazy: S,
|
|
191
|
-
virtualIndex: h,
|
|
192
|
-
swiperSlideIndex: g,
|
|
193
|
-
...o
|
|
194
|
-
} = n === void 0 ? {} : n;
|
|
195
|
-
const i = u(null), [m, C] = P("swiper-slide"), [R, z] = P(!1);
|
|
196
|
-
function w(I, b, N) {
|
|
197
|
-
b === i.current && C(N);
|
|
198
|
-
}
|
|
199
|
-
O(() => {
|
|
200
|
-
if (typeof g < "u" && (i.current.swiperSlideIndex = g), r && (r.current = i.current), !(!i.current || !l)) {
|
|
201
|
-
if (l.destroyed) {
|
|
202
|
-
m !== "swiper-slide" && C("swiper-slide");
|
|
203
|
-
return;
|
|
204
|
-
}
|
|
205
|
-
return l.on("_slideClass", w), () => {
|
|
206
|
-
l && l.off("_slideClass", w);
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
}), O(() => {
|
|
210
|
-
l && i.current && !l.destroyed && C(l.getSlideClasses(i.current));
|
|
211
|
-
}, [l]);
|
|
212
|
-
const e = {
|
|
213
|
-
isActive: m.indexOf("swiper-slide-active") >= 0,
|
|
214
|
-
isVisible: m.indexOf("swiper-slide-visible") >= 0,
|
|
215
|
-
isPrev: m.indexOf("swiper-slide-prev") >= 0,
|
|
216
|
-
isNext: m.indexOf("swiper-slide-next") >= 0
|
|
217
|
-
}, x = () => typeof t == "function" ? t(e) : t, $ = () => {
|
|
218
|
-
z(!0);
|
|
219
|
-
};
|
|
220
|
-
return /* @__PURE__ */ a.createElement(s, k({
|
|
221
|
-
ref: i,
|
|
222
|
-
className: D(`${m}${p ? ` ${p}` : ""}`),
|
|
223
|
-
"data-swiper-slide-index": h,
|
|
224
|
-
onLoad: $
|
|
225
|
-
}, o), d && /* @__PURE__ */ a.createElement(B.Provider, {
|
|
226
|
-
value: e
|
|
227
|
-
}, /* @__PURE__ */ a.createElement("div", {
|
|
228
|
-
className: "swiper-zoom-container",
|
|
229
|
-
"data-swiper-zoom": typeof d == "number" ? d : void 0
|
|
230
|
-
}, x(), S && !R && /* @__PURE__ */ a.createElement("div", {
|
|
231
|
-
className: "swiper-lazy-preloader"
|
|
232
|
-
}))), !d && /* @__PURE__ */ a.createElement(B.Provider, {
|
|
233
|
-
value: e
|
|
234
|
-
}, x(), S && !R && /* @__PURE__ */ a.createElement("div", {
|
|
235
|
-
className: "swiper-lazy-preloader"
|
|
236
|
-
})));
|
|
237
|
-
});
|
|
238
|
-
de.displayName = "SwiperSlide";
|
|
1
|
+
import { jsx as T } from "react/jsx-runtime";
|
|
2
|
+
import { useTransition as c, animated as g } from "@react-spring/web";
|
|
3
|
+
import l from "./index67.mjs";
|
|
4
|
+
const w = (e) => {
|
|
5
|
+
const { isVisible: t, children: o, themeName: r, tokens: i, customTheme: n, ...m } = e, s = c(t, {
|
|
6
|
+
from: { gridTemplateRows: "0fr", paddingTop: "0", paddingBottom: "0" },
|
|
7
|
+
enter: { gridTemplateRows: "1fr", paddingTop: "1rem", paddingBottom: "1rem" },
|
|
8
|
+
leave: { gridTemplateRows: "0fr", paddingTop: "0", paddingBottom: "0" }
|
|
9
|
+
}), a = l(r, i, n);
|
|
10
|
+
return s((d, p) => p && /* @__PURE__ */ T(g.div, { ...m, style: d, className: a, children: o }));
|
|
11
|
+
};
|
|
239
12
|
export {
|
|
240
|
-
|
|
241
|
-
de as SwiperSlide,
|
|
242
|
-
ge as useSwiperSlide
|
|
13
|
+
w as default
|
|
243
14
|
};
|
package/index144.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use
|
|
2
|
-
"use strict";const n=require("react/jsx-runtime"),d=require("./index143.js"),a=require("./index27.js"),m=require("./index3.js"),h=r=>{const{themeName:e,title:t,tokens:c,id:o,children:l}=r,{isActive:u,isVisible:i}=d.useSwiperSlide(),s={...c,isActive:u,isVisible:i};return n.jsxs(a.default,{themeName:`${e}.container`,tokens:s,...i?{}:{inert:"true"},children:[t&&n.jsx(m.default,{themeName:`${e}.title`,tokens:s,id:o,children:t}),l]})};module.exports=h;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index153.js"),a=require("./index154.js"),l=require("react"),b=require("./index155.js");let $=!!(typeof window<"u"&&window.document&&window.document.createElement),f=new Map,s;typeof FinalizationRegistry<"u"&&(s=new FinalizationRegistry(r=>{f.delete(r)}));function i(r){let[e,c]=l.useState(r),n=l.useRef(null),t=b.useSSRSafeId(e),d=l.useRef(null);if(s&&s.register(d,t),$){const u=f.get(t);u&&!u.includes(n)?u.push(n):f.set(t,[n])}return o.useLayoutEffect(()=>{let u=t;return()=>{s&&s.unregister(d),f.delete(u)}},[t]),l.useEffect(()=>{let u=n.current;return u&&c(u),()=>{u&&(n.current=null)}}),t}function p(r,e){if(r===e)return r;let c=f.get(r);if(c)return c.forEach(t=>t.current=e),e;let n=f.get(e);return n?(n.forEach(t=>t.current=r),r):e}function y(r=[]){let e=i(),[c,n]=a.useValueEffect(e),t=l.useCallback(()=>{n(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,n]);return o.useLayoutEffect(t,[e,t,...r]),c}exports.idsUpdaterMap=f;exports.mergeIds=p;exports.useId=i;exports.useSlotId=y;
|
package/index144.mjs
CHANGED
|
@@ -1,15 +1,59 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import p from "./
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { useLayoutEffect as o } from "./index153.mjs";
|
|
2
|
+
import { useValueEffect as s } from "./index154.mjs";
|
|
3
|
+
import { useCallback as i, useState as $, useRef as l, useEffect as b } from "react";
|
|
4
|
+
import { useSSRSafeId as p } from "./index155.mjs";
|
|
5
|
+
let m = !!(typeof window < "u" && window.document && window.document.createElement), d = /* @__PURE__ */ new Map(), u;
|
|
6
|
+
typeof FinalizationRegistry < "u" && (u = new FinalizationRegistry((r) => {
|
|
7
|
+
d.delete(r);
|
|
8
|
+
}));
|
|
9
|
+
function I(r) {
|
|
10
|
+
let [e, c] = $(r), f = l(null), t = p(e), a = l(null);
|
|
11
|
+
if (u && u.register(a, t), m) {
|
|
12
|
+
const n = d.get(t);
|
|
13
|
+
n && !n.includes(f) ? n.push(f) : d.set(t, [
|
|
14
|
+
f
|
|
15
|
+
]);
|
|
16
|
+
}
|
|
17
|
+
return o(() => {
|
|
18
|
+
let n = t;
|
|
19
|
+
return () => {
|
|
20
|
+
u && u.unregister(a), d.delete(n);
|
|
21
|
+
};
|
|
22
|
+
}, [
|
|
23
|
+
t
|
|
24
|
+
]), b(() => {
|
|
25
|
+
let n = f.current;
|
|
26
|
+
return n && c(n), () => {
|
|
27
|
+
n && (f.current = null);
|
|
28
|
+
};
|
|
29
|
+
}), t;
|
|
30
|
+
}
|
|
31
|
+
function E(r, e) {
|
|
32
|
+
if (r === e) return r;
|
|
33
|
+
let c = d.get(r);
|
|
34
|
+
if (c)
|
|
35
|
+
return c.forEach((t) => t.current = e), e;
|
|
36
|
+
let f = d.get(e);
|
|
37
|
+
return f ? (f.forEach((t) => t.current = r), r) : e;
|
|
38
|
+
}
|
|
39
|
+
function R(r = []) {
|
|
40
|
+
let e = I(), [c, f] = s(e), t = i(() => {
|
|
41
|
+
f(function* () {
|
|
42
|
+
yield e, yield document.getElementById(e) ? e : void 0;
|
|
43
|
+
});
|
|
44
|
+
}, [
|
|
45
|
+
e,
|
|
46
|
+
f
|
|
47
|
+
]);
|
|
48
|
+
return o(t, [
|
|
49
|
+
e,
|
|
50
|
+
t,
|
|
51
|
+
...r
|
|
52
|
+
]), c;
|
|
53
|
+
}
|
|
13
54
|
export {
|
|
14
|
-
|
|
55
|
+
d as idsUpdaterMap,
|
|
56
|
+
E as mergeIds,
|
|
57
|
+
I as useId,
|
|
58
|
+
R as useSlotId
|
|
15
59
|
};
|
package/index145.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function d(r,c){var o;const i=[];let e=null;const n=[];for(const t of c){const l=t.key==="header"||((o=t.key)==null?void 0:o.toString().includes("header-")),s=r.find(u=>u.rendered===t.value);l?(e&&i.push(e),e={header:{key:t.key,rendered:t.value},items:[]}):e?s&&e.items.push(s):s&&n.push(s)}return e&&i.push(e),[...n.length>0?[{items:n}]:[],...i]}exports.useListboxSections=d;
|
package/index145.mjs
CHANGED
|
@@ -1,32 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}), v = o[t], n = t === p, { title: r, id: x } = v, a = r && r.length > 0;
|
|
13
|
-
return /* @__PURE__ */ h(
|
|
14
|
-
g,
|
|
15
|
-
{
|
|
16
|
-
as: "button",
|
|
17
|
-
tabIndex: 0,
|
|
18
|
-
role: "button",
|
|
19
|
-
"aria-current": n ? "true" : "false",
|
|
20
|
-
"aria-disabled": n,
|
|
21
|
-
"aria-label": a ? void 0 : `${t + 1} / ${o.length}`,
|
|
22
|
-
"aria-labelledby": a ? x : void 0,
|
|
23
|
-
...b,
|
|
24
|
-
...f,
|
|
25
|
-
themeName: `${l}.bullet`,
|
|
26
|
-
tokens: { ...u, active: n }
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
};
|
|
1
|
+
function f(r, c) {
|
|
2
|
+
var o;
|
|
3
|
+
const s = [];
|
|
4
|
+
let e = null;
|
|
5
|
+
const i = [];
|
|
6
|
+
for (const t of c) {
|
|
7
|
+
const l = t.key === "header" || ((o = t.key) == null ? void 0 : o.toString().includes("header-")), n = r.find((u) => u.rendered === t.value);
|
|
8
|
+
l ? (e && s.push(e), e = { header: { key: t.key, rendered: t.value }, items: [] }) : e ? n && e.items.push(n) : n && i.push(n);
|
|
9
|
+
}
|
|
10
|
+
return e && s.push(e), [...i.length > 0 ? [{ items: i }] : [], ...s];
|
|
11
|
+
}
|
|
30
12
|
export {
|
|
31
|
-
|
|
13
|
+
f as useListboxSections
|
|
32
14
|
};
|
package/index167.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index144.js");function d(a,t){let{id:i,"aria-label":l,"aria-labelledby":e}=a;return i=r.useId(i),e&&l?e=[...new Set([i,...e.trim().split(/\s+/)])].join(" "):e&&(e=e.trim().split(/\s+/).join(" ")),!l&&!e&&t&&(l=t),{id:i,"aria-label":l,"aria-labelledby":e}}exports.useLabels=d;
|
package/index167.mjs
CHANGED
package/index18.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const e=require("react/jsx-runtime"),
|
|
2
|
+
"use strict";const e=require("react/jsx-runtime"),k=require("react"),h=require("react-aria"),P=require("react-stately"),n=require("./index67.js"),T=require("./index73.js"),w=require("./index6.js"),y=require("./index48.js"),R=require("./index110.js"),v=require("./index3.js"),F=a=>{const{setUserSearchQuery:d}=T.useUserQueryValHook(),{label:i,themeName:s="search",tokens:m,customTheme:t,disabled:l,errorMessage:c,placeholder:x,icon:j}=a,o=P.useSearchFieldState(a);d(o.value);const u=k.useRef(null),{labelProps:p,inputProps:q,errorMessageProps:b,clearButtonProps:g}=h.useSearchField(a,o,u),r={...m,isError:c!=null},S=n(`${s}.wrapper`,r,t),$=n(`${s}.input`,r,t),N=n(`${s}.label`,r,t),f=n(`${s}.container`,r,t);return e.jsxs("div",{className:S,"aria-disabled":l,children:[i&&e.jsx("label",{...p,className:N,children:i}),e.jsxs("div",{className:f,children:[e.jsx("input",{ref:u,...q,placeholder:x,className:$,disabled:l}),e.jsx(h.FocusRing,{focusRingClass:"has-focus-ring",children:e.jsx(w.default,{handlePress:g.onPress,tokens:{isIconOnly:!0,buttonStyle:"hollow"},themeName:`${s}.icon`,"aria-label":"clear",children:j??(o.value===""?e.jsx(R,{width:"16",height:"16"}):e.jsx(y,{width:"16",height:"16"}))})})]}),c&&e.jsx(v.default,{themeName:`${s}.errorMessage`,tokens:r,...b,children:c})]})};module.exports=F;
|
package/index18.mjs
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as h, jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
4
|
-
import { useSearchField as
|
|
5
|
-
import { useSearchFieldState as
|
|
3
|
+
import k from "react";
|
|
4
|
+
import { useSearchField as w, FocusRing as v } from "react-aria";
|
|
5
|
+
import { useSearchFieldState as x } from "react-stately";
|
|
6
6
|
import t from "./index67.mjs";
|
|
7
|
-
import { useUserQueryValHook as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
const
|
|
13
|
-
const { setUserSearchQuery: u } =
|
|
14
|
-
u(
|
|
15
|
-
const m =
|
|
16
|
-
return /* @__PURE__ */ h("div", { className:
|
|
7
|
+
import { useUserQueryValHook as C } from "./index73.mjs";
|
|
8
|
+
import F from "./index6.mjs";
|
|
9
|
+
import R from "./index48.mjs";
|
|
10
|
+
import B from "./index110.mjs";
|
|
11
|
+
import M from "./index3.mjs";
|
|
12
|
+
const z = (a) => {
|
|
13
|
+
const { setUserSearchQuery: u } = C(), { label: i, themeName: r = "search", tokens: p, customTheme: s, disabled: c, errorMessage: n, placeholder: d, icon: f } = a, l = x(a);
|
|
14
|
+
u(l.value);
|
|
15
|
+
const m = k.useRef(null), { labelProps: b, inputProps: g, errorMessageProps: T, clearButtonProps: N } = w(a, l, m), o = { ...p, isError: n != null }, S = t(`${r}.wrapper`, o, s), y = t(`${r}.input`, o, s), P = t(`${r}.label`, o, s), $ = t(`${r}.container`, o, s);
|
|
16
|
+
return /* @__PURE__ */ h("div", { className: S, "aria-disabled": c, children: [
|
|
17
17
|
i && // eslint-disable-next-line jsx-a11y/label-has-associated-control
|
|
18
|
-
/* @__PURE__ */ e("label", { ...
|
|
19
|
-
/* @__PURE__ */ h("div", { className:
|
|
20
|
-
/* @__PURE__ */ e("input", { ref: m, ...
|
|
21
|
-
/* @__PURE__ */ e(
|
|
22
|
-
|
|
18
|
+
/* @__PURE__ */ e("label", { ...b, className: P, children: i }),
|
|
19
|
+
/* @__PURE__ */ h("div", { className: $, children: [
|
|
20
|
+
/* @__PURE__ */ e("input", { ref: m, ...g, placeholder: d, className: y, disabled: c }),
|
|
21
|
+
/* @__PURE__ */ e(v, { focusRingClass: "has-focus-ring", children: /* @__PURE__ */ e(
|
|
22
|
+
F,
|
|
23
23
|
{
|
|
24
|
-
handlePress:
|
|
24
|
+
handlePress: N.onPress,
|
|
25
25
|
tokens: { isIconOnly: !0, buttonStyle: "hollow" },
|
|
26
26
|
themeName: `${r}.icon`,
|
|
27
27
|
"aria-label": "clear",
|
|
28
|
-
children:
|
|
28
|
+
children: f ?? (l.value === "" ? /* @__PURE__ */ e(B, { width: "16", height: "16" }) : /* @__PURE__ */ e(R, { width: "16", height: "16" }))
|
|
29
29
|
}
|
|
30
30
|
) })
|
|
31
31
|
] }),
|
|
32
|
-
|
|
32
|
+
n && /* @__PURE__ */ e(M, { themeName: `${r}.errorMessage`, tokens: o, ...T, children: n })
|
|
33
33
|
] });
|
|
34
34
|
};
|
|
35
35
|
export {
|
|
36
|
-
|
|
36
|
+
z as default
|
|
37
37
|
};
|
package/index195.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const D=require("./index233.js"),M=require("./index234.js");function W(y){let{swiper:e,extendParams:z,on:T,emit:G}=y;z({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});let j;const B=D.g();e.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const C=B.createElement("div");function O(i,a){const r=e.params.virtual;if(r.cache&&e.virtual.cache[a])return e.virtual.cache[a];let s;return r.renderSlide?(s=r.renderSlide.call(e,i,a),typeof s=="string"&&(C.innerHTML=s,s=C.children[0])):e.isElement?s=M.c("swiper-slide"):s=M.c("div",e.params.slideClass),s.setAttribute("data-swiper-slide-index",a),r.renderSlide||(s.innerHTML=i),r.cache&&(e.virtual.cache[a]=s),s}function o(i,a){const{slidesPerView:r,slidesPerGroup:s,centeredSlides:d,loop:n,initialSlide:S}=e.params;if(a&&!n&&S>0)return;const{addSlidesBefore:m,addSlidesAfter:g}=e.params.virtual,{from:P,to:E,slides:c,slidesGrid:F,offset:N}=e.virtual;e.params.cssMode||e.updateActiveIndex();const b=e.activeIndex||0;let A;e.rtlTranslate?A="right":A=e.isHorizontal()?"left":"top";let x,f;d?(x=Math.floor(r/2)+s+g,f=Math.floor(r/2)+s+m):(x=r+(s-1)+g,f=(n?r:s)+m);let u=b-f,p=b+x;n||(u=Math.max(u,0),p=Math.min(p,c.length-1));let h=(e.slidesGrid[u]||0)-(e.slidesGrid[0]||0);n&&b>=f?(u-=f,d||(h+=e.slidesGrid[0])):n&&b<f&&(u=-f,d&&(h+=e.slidesGrid[0])),Object.assign(e.virtual,{from:u,to:p,offset:h,slidesGrid:e.slidesGrid,slidesBefore:f,slidesAfter:x});function I(){e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),G("virtualUpdate")}if(P===u&&E===p&&!i){e.slidesGrid!==F&&h!==N&&e.slides.forEach(t=>{t.style[A]=`${h-Math.abs(e.cssOverflowAdjustment())}px`}),e.updateProgress(),G("virtualUpdate");return}if(e.params.virtual.renderExternal){e.params.virtual.renderExternal.call(e,{offset:h,from:u,to:p,slides:function(){const l=[];for(let v=u;v<=p;v+=1)l.push(c[v]);return l}()}),e.params.virtual.renderExternalUpdate?I():G("virtualUpdate");return}const w=[],$=[],U=t=>{let l=t;return t<0?l=c.length+t:l>=c.length&&(l=l-c.length),l};if(i)e.slides.filter(t=>t.matches(`.${e.params.slideClass}, swiper-slide`)).forEach(t=>{t.remove()});else for(let t=P;t<=E;t+=1)if(t<u||t>p){const l=U(t);e.slides.filter(v=>v.matches(`.${e.params.slideClass}[data-swiper-slide-index="${l}"], swiper-slide[data-swiper-slide-index="${l}"]`)).forEach(v=>{v.remove()})}const R=n?-c.length:0,_=n?c.length*2:c.length;for(let t=R;t<_;t+=1)if(t>=u&&t<=p){const l=U(t);typeof E>"u"||i?$.push(l):(t>E&&$.push(l),t<P&&w.push(l))}if($.forEach(t=>{e.slidesEl.append(O(c[t],t))}),n)for(let t=w.length-1;t>=0;t-=1){const l=w[t];e.slidesEl.prepend(O(c[l],l))}else w.sort((t,l)=>l-t),w.forEach(t=>{e.slidesEl.prepend(O(c[t],t))});M.e(e.slidesEl,".swiper-slide, swiper-slide").forEach(t=>{t.style[A]=`${h-Math.abs(e.cssOverflowAdjustment())}px`}),I()}function H(i){if(typeof i=="object"&&"length"in i)for(let a=0;a<i.length;a+=1)i[a]&&e.virtual.slides.push(i[a]);else e.virtual.slides.push(i);o(!0)}function L(i){const a=e.activeIndex;let r=a+1,s=1;if(Array.isArray(i)){for(let d=0;d<i.length;d+=1)i[d]&&e.virtual.slides.unshift(i[d]);r=a+i.length,s=i.length}else e.virtual.slides.unshift(i);if(e.params.virtual.cache){const d=e.virtual.cache,n={};Object.keys(d).forEach(S=>{const m=d[S],g=m.getAttribute("data-swiper-slide-index");g&&m.setAttribute("data-swiper-slide-index",parseInt(g,10)+s),n[parseInt(S,10)+s]=m}),e.virtual.cache=n}o(!0),e.slideTo(r,0)}function V(i){if(typeof i>"u"||i===null)return;let a=e.activeIndex;if(Array.isArray(i))for(let r=i.length-1;r>=0;r-=1)e.params.virtual.cache&&(delete e.virtual.cache[i[r]],Object.keys(e.virtual.cache).forEach(s=>{s>i&&(e.virtual.cache[s-1]=e.virtual.cache[s],e.virtual.cache[s-1].setAttribute("data-swiper-slide-index",s-1),delete e.virtual.cache[s])})),e.virtual.slides.splice(i[r],1),i[r]<a&&(a-=1),a=Math.max(a,0);else e.params.virtual.cache&&(delete e.virtual.cache[i],Object.keys(e.virtual.cache).forEach(r=>{r>i&&(e.virtual.cache[r-1]=e.virtual.cache[r],e.virtual.cache[r-1].setAttribute("data-swiper-slide-index",r-1),delete e.virtual.cache[r])})),e.virtual.slides.splice(i,1),i<a&&(a-=1),a=Math.max(a,0);o(!0),e.slideTo(a,0)}function q(){e.virtual.slides=[],e.params.virtual.cache&&(e.virtual.cache={}),o(!0),e.slideTo(0,0)}T("beforeInit",()=>{if(!e.params.virtual.enabled)return;let i;if(typeof e.passedParams.virtual.slides>"u"){const a=[...e.slidesEl.children].filter(r=>r.matches(`.${e.params.slideClass}, swiper-slide`));a&&a.length&&(e.virtual.slides=[...a],i=!0,a.forEach((r,s)=>{r.setAttribute("data-swiper-slide-index",s),e.virtual.cache[s]=r,r.remove()}))}i||(e.virtual.slides=e.params.virtual.slides),e.classNames.push(`${e.params.containerModifierClass}virtual`),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0,o(!1,!0)}),T("setTranslate",()=>{e.params.virtual.enabled&&(e.params.cssMode&&!e._immediateVirtual?(clearTimeout(j),j=setTimeout(()=>{o()},100)):o())}),T("init update resize",()=>{e.params.virtual.enabled&&e.params.cssMode&&M.s(e.wrapperEl,"--swiper-virtual-size",`${e.virtualSize}px`)}),Object.assign(e.virtual,{appendSlide:H,prependSlide:L,removeSlide:V,removeAllSlides:q,update:o})}module.exports=W;
|