@danielcruzcode/ui-core 0.1.2 → 0.1.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/dist/index.cjs10.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs24.js +1 -0
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs4.js +1 -1
- package/dist/index.cjs44.js +1 -0
- package/dist/index.cjs45.js +1 -0
- package/dist/index.cjs46.js +1 -0
- package/dist/index.cjs5.js +1 -1
- package/dist/index.cjs50.js +1 -1
- package/dist/index.cjs52.js +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.esm10.js +47 -36
- package/dist/index.esm11.js +27 -27
- package/dist/index.esm12.js +1 -1
- package/dist/index.esm13.js +1 -1
- package/dist/index.esm14.js +8 -4
- package/dist/index.esm15.js +1 -1
- package/dist/index.esm16.js +1 -1
- package/dist/index.esm17.js +4 -8
- package/dist/index.esm18.js +11 -8
- package/dist/index.esm19.js +10 -134
- package/dist/index.esm20.js +24 -224
- package/dist/index.esm21.js +5 -128
- package/dist/index.esm22.js +5 -245
- package/dist/index.esm23.js +7 -7
- package/dist/index.esm24.js +136 -0
- package/dist/index.esm25.js +224 -9
- package/dist/index.esm26.js +128 -24
- package/dist/index.esm27.js +278 -5
- package/dist/index.esm28.js +7 -3
- package/dist/index.esm30.js +2 -12
- package/dist/index.esm4.js +1 -1
- package/dist/{index.esm39.js → index.esm44.js} +232 -222
- package/dist/{index.esm40.js → index.esm45.js} +3 -3
- package/dist/{index.esm41.js → index.esm46.js} +4 -4
- package/dist/index.esm5.js +36 -35
- package/dist/index.esm50.js +5 -5
- package/dist/index.esm52.js +5 -5
- package/dist/index.esm6.js +24 -24
- package/dist/index.esm7.js +1 -1
- package/dist/index.esm8.js +23 -23
- package/dist/index.esm9.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/styles.css +1 -1
- package/dist/index.cjs29.js +0 -1
- package/dist/index.cjs39.js +0 -1
- package/dist/index.cjs40.js +0 -1
- package/dist/index.cjs41.js +0 -1
- package/dist/index.esm29.js +0 -5
- /package/dist/{index.cjs34.js → index.cjs35.js} +0 -0
- /package/dist/{index.esm34.js → index.esm35.js} +0 -0
package/dist/index.esm27.js
CHANGED
|
@@ -1,7 +1,280 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
1
|
+
var ne = Object.defineProperty;
|
|
2
|
+
var z = Object.getOwnPropertySymbols;
|
|
3
|
+
var D = Object.prototype.hasOwnProperty, H = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var q = (t, e, n) => e in t ? ne(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, U = (t, e) => {
|
|
5
|
+
for (var n in e || (e = {}))
|
|
6
|
+
D.call(e, n) && q(t, n, e[n]);
|
|
7
|
+
if (z)
|
|
8
|
+
for (var n of z(e))
|
|
9
|
+
H.call(e, n) && q(t, n, e[n]);
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
var T = (t, e) => {
|
|
13
|
+
var n = {};
|
|
14
|
+
for (var r in t)
|
|
15
|
+
D.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
|
|
16
|
+
if (t != null && z)
|
|
17
|
+
for (var r of z(t))
|
|
18
|
+
e.indexOf(r) < 0 && H.call(t, r) && (n[r] = t[r]);
|
|
19
|
+
return n;
|
|
20
|
+
};
|
|
21
|
+
import a, { forwardRef as J, useState as R, useRef as f, useEffect as V, useLayoutEffect as se, createContext as K } from "react";
|
|
22
|
+
import { S as ae } from "./index.esm44.js";
|
|
23
|
+
import { g as ie, m as oe, a as le, u as ue } from "./index.esm45.js";
|
|
24
|
+
import { d as Q, w as ce, n as pe, b as fe, a as de, e as W, u as me } from "./index.esm46.js";
|
|
25
|
+
function B() {
|
|
26
|
+
return B = Object.assign ? Object.assign.bind() : function(t) {
|
|
27
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
28
|
+
var n = arguments[e];
|
|
29
|
+
for (var r in n)
|
|
30
|
+
Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]);
|
|
31
|
+
}
|
|
32
|
+
return t;
|
|
33
|
+
}, B.apply(this, arguments);
|
|
34
|
+
}
|
|
35
|
+
function X(t) {
|
|
36
|
+
return t.type && t.type.displayName && t.type.displayName.includes("SwiperSlide");
|
|
37
|
+
}
|
|
38
|
+
function Y(t) {
|
|
39
|
+
const e = [];
|
|
40
|
+
return a.Children.toArray(t).forEach((n) => {
|
|
41
|
+
X(n) ? e.push(n) : n.props && n.props.children && Y(n.props.children).forEach((r) => e.push(r));
|
|
42
|
+
}), e;
|
|
43
|
+
}
|
|
44
|
+
function Ee(t) {
|
|
45
|
+
const e = [], n = {
|
|
46
|
+
"container-start": [],
|
|
47
|
+
"container-end": [],
|
|
48
|
+
"wrapper-start": [],
|
|
49
|
+
"wrapper-end": []
|
|
50
|
+
};
|
|
51
|
+
return a.Children.toArray(t).forEach((r) => {
|
|
52
|
+
if (X(r))
|
|
53
|
+
e.push(r);
|
|
54
|
+
else if (r.props && r.props.slot && n[r.props.slot])
|
|
55
|
+
n[r.props.slot].push(r);
|
|
56
|
+
else if (r.props && r.props.children) {
|
|
57
|
+
const l = Y(r.props.children);
|
|
58
|
+
l.length > 0 ? l.forEach((m) => e.push(m)) : n["container-end"].push(r);
|
|
59
|
+
} else
|
|
60
|
+
n["container-end"].push(r);
|
|
61
|
+
}), {
|
|
62
|
+
slides: e,
|
|
63
|
+
slots: n
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function ge(t, e, n) {
|
|
67
|
+
if (!n) return null;
|
|
68
|
+
const r = (i) => {
|
|
69
|
+
let u = i;
|
|
70
|
+
return i < 0 ? u = e.length + i : u >= e.length && (u = u - e.length), u;
|
|
71
|
+
}, l = t.isHorizontal() ? {
|
|
72
|
+
[t.rtlTranslate ? "right" : "left"]: `${n.offset}px`
|
|
73
|
+
} : {
|
|
74
|
+
top: `${n.offset}px`
|
|
75
|
+
}, {
|
|
76
|
+
from: m,
|
|
77
|
+
to: S
|
|
78
|
+
} = n, b = t.params.loop ? -e.length : 0, h = t.params.loop ? e.length * 2 : e.length, E = [];
|
|
79
|
+
for (let i = b; i < h; i += 1)
|
|
80
|
+
i >= m && i <= S && E.push(e[r(i)]);
|
|
81
|
+
return E.map((i, u) => /* @__PURE__ */ a.cloneElement(i, {
|
|
82
|
+
swiper: t,
|
|
83
|
+
style: l,
|
|
84
|
+
key: i.props.virtualIndex || i.key || `slide-${u}`
|
|
85
|
+
}));
|
|
86
|
+
}
|
|
87
|
+
function $(t, e) {
|
|
88
|
+
return typeof window == "undefined" ? V(t, e) : se(t, e);
|
|
89
|
+
}
|
|
90
|
+
const G = /* @__PURE__ */ K(null), we = /* @__PURE__ */ K(null), ve = /* @__PURE__ */ J((b = {}, S) => {
|
|
91
|
+
var h = b, {
|
|
92
|
+
className: t,
|
|
93
|
+
tag: e = "div",
|
|
94
|
+
wrapperTag: n = "div",
|
|
95
|
+
children: r,
|
|
96
|
+
onSwiper: l
|
|
97
|
+
} = h, m = T(h, [
|
|
98
|
+
"className",
|
|
99
|
+
"tag",
|
|
100
|
+
"wrapperTag",
|
|
101
|
+
"children",
|
|
102
|
+
"onSwiper"
|
|
103
|
+
]);
|
|
104
|
+
let E = !1;
|
|
105
|
+
const [i, u] = R("swiper"), [c, g] = R(null), [x, j] = R(!1), k = f(!1), w = f(null), s = f(null), P = f(null), L = f(null), p = f(null), O = f(null), N = f(null), I = f(null), {
|
|
106
|
+
params: d,
|
|
107
|
+
passedParams: A,
|
|
108
|
+
rest: Z,
|
|
109
|
+
events: y
|
|
110
|
+
} = ie(m), {
|
|
111
|
+
slides: C,
|
|
112
|
+
slots: _
|
|
113
|
+
} = Ee(r), F = () => {
|
|
114
|
+
j(!x);
|
|
115
|
+
};
|
|
116
|
+
Object.assign(d.on, {
|
|
117
|
+
_containerClasses(o, v) {
|
|
118
|
+
u(v);
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
const M = () => {
|
|
122
|
+
Object.assign(d.on, y), E = !0;
|
|
123
|
+
const o = U({}, d);
|
|
124
|
+
if (delete o.wrapperClass, s.current = new ae(o), s.current.virtual && s.current.params.virtual.enabled) {
|
|
125
|
+
s.current.virtual.slides = C;
|
|
126
|
+
const v = {
|
|
127
|
+
cache: !1,
|
|
128
|
+
slides: C,
|
|
129
|
+
renderExternal: g,
|
|
130
|
+
renderExternalUpdate: !1
|
|
131
|
+
};
|
|
132
|
+
W(s.current.params.virtual, v), W(s.current.originalParams.virtual, v);
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
w.current || M(), s.current && s.current.on("_beforeBreakpoint", F);
|
|
136
|
+
const ee = () => {
|
|
137
|
+
E || !y || !s.current || Object.keys(y).forEach((o) => {
|
|
138
|
+
s.current.on(o, y[o]);
|
|
139
|
+
});
|
|
140
|
+
}, re = () => {
|
|
141
|
+
!y || !s.current || Object.keys(y).forEach((o) => {
|
|
142
|
+
s.current.off(o, y[o]);
|
|
143
|
+
});
|
|
144
|
+
};
|
|
145
|
+
V(() => () => {
|
|
146
|
+
s.current && s.current.off("_beforeBreakpoint", F);
|
|
147
|
+
}), V(() => {
|
|
148
|
+
!k.current && s.current && (s.current.emitSlidesClasses(), k.current = !0);
|
|
149
|
+
}), $(() => {
|
|
150
|
+
if (S && (S.current = w.current), !!w.current)
|
|
151
|
+
return s.current.destroyed && M(), oe({
|
|
152
|
+
el: w.current,
|
|
153
|
+
nextEl: p.current,
|
|
154
|
+
prevEl: O.current,
|
|
155
|
+
paginationEl: N.current,
|
|
156
|
+
scrollbarEl: I.current,
|
|
157
|
+
swiper: s.current
|
|
158
|
+
}, d), l && !s.current.destroyed && l(s.current), () => {
|
|
159
|
+
s.current && !s.current.destroyed && s.current.destroy(!0, !1);
|
|
160
|
+
};
|
|
161
|
+
}, []), $(() => {
|
|
162
|
+
ee();
|
|
163
|
+
const o = le(A, P.current, C, L.current, (v) => v.key);
|
|
164
|
+
return P.current = A, L.current = C, o.length && s.current && !s.current.destroyed && me({
|
|
165
|
+
swiper: s.current,
|
|
166
|
+
slides: C,
|
|
167
|
+
passedParams: A,
|
|
168
|
+
changedParams: o,
|
|
169
|
+
nextEl: p.current,
|
|
170
|
+
prevEl: O.current,
|
|
171
|
+
scrollbarEl: I.current,
|
|
172
|
+
paginationEl: N.current
|
|
173
|
+
}), () => {
|
|
174
|
+
re();
|
|
175
|
+
};
|
|
176
|
+
}), $(() => {
|
|
177
|
+
ue(s.current);
|
|
178
|
+
}, [c]);
|
|
179
|
+
function te() {
|
|
180
|
+
return d.virtual ? ge(s.current, C, c) : C.map((o, v) => /* @__PURE__ */ a.cloneElement(o, {
|
|
181
|
+
swiper: s.current,
|
|
182
|
+
swiperSlideIndex: v
|
|
183
|
+
}));
|
|
184
|
+
}
|
|
185
|
+
return /* @__PURE__ */ a.createElement(e, B({
|
|
186
|
+
ref: w,
|
|
187
|
+
className: Q(`${i}${t ? ` ${t}` : ""}`)
|
|
188
|
+
}, Z), /* @__PURE__ */ a.createElement(we.Provider, {
|
|
189
|
+
value: s.current
|
|
190
|
+
}, _["container-start"], /* @__PURE__ */ a.createElement(n, {
|
|
191
|
+
className: ce(d.wrapperClass)
|
|
192
|
+
}, _["wrapper-start"], te(), _["wrapper-end"]), pe(d) && /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("div", {
|
|
193
|
+
ref: O,
|
|
194
|
+
className: "swiper-button-prev"
|
|
195
|
+
}), /* @__PURE__ */ a.createElement("div", {
|
|
196
|
+
ref: p,
|
|
197
|
+
className: "swiper-button-next"
|
|
198
|
+
})), fe(d) && /* @__PURE__ */ a.createElement("div", {
|
|
199
|
+
ref: I,
|
|
200
|
+
className: "swiper-scrollbar"
|
|
201
|
+
}), de(d) && /* @__PURE__ */ a.createElement("div", {
|
|
202
|
+
ref: N,
|
|
203
|
+
className: "swiper-pagination"
|
|
204
|
+
}), _["container-end"]));
|
|
205
|
+
});
|
|
206
|
+
ve.displayName = "Swiper";
|
|
207
|
+
const ye = /* @__PURE__ */ J((i = {}, E) => {
|
|
208
|
+
var u = i, {
|
|
209
|
+
tag: t = "div",
|
|
210
|
+
children: e,
|
|
211
|
+
className: n = "",
|
|
212
|
+
swiper: r,
|
|
213
|
+
zoom: l,
|
|
214
|
+
lazy: m,
|
|
215
|
+
virtualIndex: S,
|
|
216
|
+
swiperSlideIndex: b
|
|
217
|
+
} = u, h = T(u, [
|
|
218
|
+
"tag",
|
|
219
|
+
"children",
|
|
220
|
+
"className",
|
|
221
|
+
"swiper",
|
|
222
|
+
"zoom",
|
|
223
|
+
"lazy",
|
|
224
|
+
"virtualIndex",
|
|
225
|
+
"swiperSlideIndex"
|
|
226
|
+
]);
|
|
227
|
+
const c = f(null), [g, x] = R("swiper-slide"), [j, k] = R(!1);
|
|
228
|
+
function w(p, O, N) {
|
|
229
|
+
O === c.current && x(N);
|
|
230
|
+
}
|
|
231
|
+
$(() => {
|
|
232
|
+
if (typeof b != "undefined" && (c.current.swiperSlideIndex = b), E && (E.current = c.current), !(!c.current || !r)) {
|
|
233
|
+
if (r.destroyed) {
|
|
234
|
+
g !== "swiper-slide" && x("swiper-slide");
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
return r.on("_slideClass", w), () => {
|
|
238
|
+
r && r.off("_slideClass", w);
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
}), $(() => {
|
|
242
|
+
r && c.current && !r.destroyed && x(r.getSlideClasses(c.current));
|
|
243
|
+
}, [r]);
|
|
244
|
+
const s = {
|
|
245
|
+
isActive: g.indexOf("swiper-slide-active") >= 0,
|
|
246
|
+
isVisible: g.indexOf("swiper-slide-visible") >= 0,
|
|
247
|
+
isPrev: g.indexOf("swiper-slide-prev") >= 0,
|
|
248
|
+
isNext: g.indexOf("swiper-slide-next") >= 0
|
|
249
|
+
}, P = () => typeof e == "function" ? e(s) : e, L = () => {
|
|
250
|
+
k(!0);
|
|
251
|
+
};
|
|
252
|
+
return /* @__PURE__ */ a.createElement(t, B({
|
|
253
|
+
ref: c,
|
|
254
|
+
className: Q(`${g}${n ? ` ${n}` : ""}`),
|
|
255
|
+
"data-swiper-slide-index": S,
|
|
256
|
+
onLoad: L
|
|
257
|
+
}, h), l && /* @__PURE__ */ a.createElement(G.Provider, {
|
|
258
|
+
value: s
|
|
259
|
+
}, /* @__PURE__ */ a.createElement("div", {
|
|
260
|
+
className: "swiper-zoom-container",
|
|
261
|
+
"data-swiper-zoom": typeof l == "number" ? l : void 0
|
|
262
|
+
}, P(), m && !j && /* @__PURE__ */ a.createElement("div", {
|
|
263
|
+
className: "swiper-lazy-preloader",
|
|
264
|
+
ref: (p) => {
|
|
265
|
+
p && (p.lazyPreloaderManaged = !0);
|
|
266
|
+
}
|
|
267
|
+
}))), !l && /* @__PURE__ */ a.createElement(G.Provider, {
|
|
268
|
+
value: s
|
|
269
|
+
}, P(), m && !j && /* @__PURE__ */ a.createElement("div", {
|
|
270
|
+
className: "swiper-lazy-preloader",
|
|
271
|
+
ref: (p) => {
|
|
272
|
+
p && (p.lazyPreloaderManaged = !0);
|
|
273
|
+
}
|
|
274
|
+
})));
|
|
275
|
+
});
|
|
276
|
+
ye.displayName = "SwiperSlide";
|
|
4
277
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
278
|
+
ve as Swiper,
|
|
279
|
+
ye as SwiperSlide
|
|
7
280
|
};
|
package/dist/index.esm28.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
|
-
|
|
4
|
-
var d = a({ defaultClassName: "_19yozed0", variantClassNames: { maxWidth: { sm: "_19yozed1", md: "_19yozed2", lg: "_19yozed3", xl: "_19yozed4", full: "_19yozed5" } }, defaultVariants: { maxWidth: "xl" }, compoundVariants: [] });
|
|
3
|
+
var e = "_1tx42e51", a = "_1tx42e52", o = "_1tx42e53", v = "_1tx42e54", x = "_1tx42e55", _ = "_1tx42e56";
|
|
5
4
|
export {
|
|
6
|
-
|
|
5
|
+
e as arrowBtn,
|
|
6
|
+
o as arrowNext,
|
|
7
|
+
a as arrowPrev,
|
|
8
|
+
x as dot,
|
|
9
|
+
_ as dotActive,
|
|
10
|
+
v as dots
|
|
7
11
|
};
|
package/dist/index.esm30.js
CHANGED
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
|
|
3
|
-
var v = "wt8vlo0", a = "wt8vlo1", o = "wt8vlo2", p = "wt8vlo3", l = "wt8vlo4", e = "wt8vlo5", w = "wt8vlo6", i = "wt8vlo7", n = "wt8vlo8", u = "wt8vlo9";
|
|
2
|
+
var r = "_15r2pp40";
|
|
4
3
|
export {
|
|
5
|
-
|
|
6
|
-
n as hint,
|
|
7
|
-
i as iconSlot,
|
|
8
|
-
w as input,
|
|
9
|
-
p as inputWrapper,
|
|
10
|
-
e as inputWrapperDisabled,
|
|
11
|
-
l as inputWrapperError,
|
|
12
|
-
a as label,
|
|
13
|
-
o as requiredMark,
|
|
14
|
-
v as wrapper
|
|
4
|
+
r as stackBase
|
|
15
5
|
};
|
package/dist/index.esm4.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { cardRecipe as f, cardMedia as h, cardHeader as p, cardBody as N, cardFooter as u } from "./index.
|
|
2
|
+
import { cardRecipe as f, cardMedia as h, cardHeader as p, cardBody as N, cardFooter as u } from "./index.esm23.js";
|
|
3
3
|
function y({
|
|
4
4
|
media: s,
|
|
5
5
|
header: i,
|