@danielcruzcode/ui-core 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +171 -0
- package/dist/commerce/ProductCard/ProductCard.css.d.ts +23 -0
- package/dist/commerce/ProductCard/ProductCard.css.d.ts.map +1 -0
- package/dist/commerce/ProductCard/ProductCard.d.ts +30 -0
- package/dist/commerce/ProductCard/ProductCard.d.ts.map +1 -0
- package/dist/commerce/ProductCard/index.d.ts +3 -0
- package/dist/commerce/ProductCard/index.d.ts.map +1 -0
- package/dist/commerce/ProductShelf/ProductShelf.css.d.ts +3 -0
- package/dist/commerce/ProductShelf/ProductShelf.css.d.ts.map +1 -0
- package/dist/commerce/ProductShelf/ProductShelf.d.ts +22 -0
- package/dist/commerce/ProductShelf/ProductShelf.d.ts.map +1 -0
- package/dist/commerce/ProductShelf/index.d.ts +3 -0
- package/dist/commerce/ProductShelf/index.d.ts.map +1 -0
- package/dist/components/Card/Card.css.d.ts +30 -0
- package/dist/components/Card/Card.css.d.ts.map +1 -0
- package/dist/components/Card/Card.d.ts +13 -0
- package/dist/components/Card/Card.d.ts.map +1 -0
- package/dist/components/Card/index.d.ts +3 -0
- package/dist/components/Card/index.d.ts.map +1 -0
- package/dist/components/Carousel/Carousel.css.d.ts +8 -0
- package/dist/components/Carousel/Carousel.css.d.ts.map +1 -0
- package/dist/components/Carousel/Carousel.d.ts +23 -0
- package/dist/components/Carousel/Carousel.d.ts.map +1 -0
- package/dist/components/Carousel/Carousel.js +35 -0
- package/dist/components/Carousel/Carousel.js.map +1 -0
- package/dist/components/Carousel/index.d.ts +3 -0
- package/dist/components/Carousel/index.d.ts.map +1 -0
- package/dist/components/Carousel/index.js +2 -0
- package/dist/components/Carousel/index.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.cjs10.js +1 -0
- package/dist/index.cjs11.js +1 -0
- package/dist/index.cjs12.js +1 -0
- package/dist/index.cjs13.js +1 -0
- package/dist/index.cjs14.js +1 -0
- package/dist/index.cjs15.js +1 -0
- package/dist/index.cjs16.js +1 -0
- package/dist/index.cjs17.js +1 -0
- package/dist/index.cjs18.js +1 -0
- package/dist/index.cjs19.js +1 -0
- package/dist/index.cjs2.js +1 -0
- package/dist/index.cjs20.js +1 -0
- package/dist/index.cjs21.js +1 -0
- package/dist/index.cjs22.js +1 -0
- package/dist/index.cjs23.js +1 -0
- package/dist/index.cjs24.js +1 -0
- package/dist/index.cjs25.js +1 -0
- package/dist/index.cjs27.js +1 -0
- package/dist/index.cjs28.js +1 -0
- package/dist/index.cjs29.js +1 -0
- package/dist/index.cjs3.js +1 -0
- package/dist/index.cjs30.js +1 -0
- package/dist/index.cjs31.js +1 -0
- package/dist/index.cjs34.js +1 -0
- package/dist/index.cjs4.js +1 -0
- package/dist/index.cjs42.js +1 -0
- package/dist/index.cjs43.js +1 -0
- package/dist/index.cjs44.js +1 -0
- package/dist/index.cjs49.js +1 -0
- package/dist/index.cjs5.js +1 -0
- package/dist/index.cjs50.js +1 -0
- package/dist/index.cjs51.js +1 -0
- package/dist/index.cjs52.js +1 -0
- package/dist/index.cjs6.js +1 -0
- package/dist/index.cjs7.js +1 -0
- package/dist/index.cjs8.js +1 -0
- package/dist/index.cjs9.js +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.js +26 -0
- package/dist/index.esm10.js +54 -0
- package/dist/index.esm11.js +52 -0
- package/dist/index.esm12.js +25 -0
- package/dist/index.esm13.js +28 -0
- package/dist/index.esm14.js +8 -0
- package/dist/index.esm15.js +7 -0
- package/dist/index.esm16.js +8 -0
- package/dist/index.esm17.js +12 -0
- package/dist/index.esm18.js +11 -0
- package/dist/index.esm19.js +15 -0
- package/dist/index.esm2.js +8 -0
- package/dist/index.esm20.js +12 -0
- package/dist/index.esm21.js +136 -0
- package/dist/index.esm22.js +226 -0
- package/dist/index.esm23.js +130 -0
- package/dist/index.esm24.js +247 -0
- package/dist/index.esm25.js +11 -0
- package/dist/index.esm27.js +7 -0
- package/dist/index.esm28.js +26 -0
- package/dist/index.esm29.js +7 -0
- package/dist/index.esm3.js +49 -0
- package/dist/index.esm30.js +5 -0
- package/dist/index.esm31.js +1 -0
- package/dist/index.esm34.js +88 -0
- package/dist/index.esm4.js +35 -0
- package/dist/index.esm42.js +2028 -0
- package/dist/index.esm43.js +60 -0
- package/dist/index.esm44.js +191 -0
- package/dist/index.esm49.js +12 -0
- package/dist/index.esm5.js +100 -0
- package/dist/index.esm50.js +182 -0
- package/dist/index.esm51.js +6 -0
- package/dist/index.esm52.js +134 -0
- package/dist/index.esm6.js +61 -0
- package/dist/index.esm7.js +8 -0
- package/dist/index.esm8.js +58 -0
- package/dist/index.esm9.js +169 -0
- package/dist/layout/Container/Container.css.d.ts +20 -0
- package/dist/layout/Container/Container.css.d.ts.map +1 -0
- package/dist/layout/Container/Container.d.ts +8 -0
- package/dist/layout/Container/Container.d.ts.map +1 -0
- package/dist/layout/Container/index.d.ts +3 -0
- package/dist/layout/Container/index.d.ts.map +1 -0
- package/dist/layout/Stack/Stack.css.d.ts +2 -0
- package/dist/layout/Stack/Stack.css.d.ts.map +1 -0
- package/dist/layout/Stack/Stack.d.ts +10 -0
- package/dist/layout/Stack/Stack.d.ts.map +1 -0
- package/dist/layout/Stack/index.d.ts +3 -0
- package/dist/layout/Stack/index.d.ts.map +1 -0
- package/dist/primitives/Badge/Badge.css.d.ts +37 -0
- package/dist/primitives/Badge/Badge.css.d.ts.map +1 -0
- package/dist/primitives/Badge/Badge.d.ts +8 -0
- package/dist/primitives/Badge/Badge.d.ts.map +1 -0
- package/dist/primitives/Badge/index.d.ts +3 -0
- package/dist/primitives/Badge/index.d.ts.map +1 -0
- package/dist/primitives/Button/Button.css.d.ts +60 -0
- package/dist/primitives/Button/Button.css.d.ts.map +1 -0
- package/dist/primitives/Button/Button.d.ts +16 -0
- package/dist/primitives/Button/Button.d.ts.map +1 -0
- package/dist/primitives/Button/index.d.ts +3 -0
- package/dist/primitives/Button/index.d.ts.map +1 -0
- package/dist/primitives/Checkbox/Checkbox.css.d.ts +9 -0
- package/dist/primitives/Checkbox/Checkbox.css.d.ts.map +1 -0
- package/dist/primitives/Checkbox/Checkbox.d.ts +11 -0
- package/dist/primitives/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/primitives/Checkbox/index.d.ts +3 -0
- package/dist/primitives/Checkbox/index.d.ts.map +1 -0
- package/dist/primitives/Input/Input.css.d.ts +11 -0
- package/dist/primitives/Input/Input.css.d.ts.map +1 -0
- package/dist/primitives/Input/Input.d.ts +18 -0
- package/dist/primitives/Input/Input.d.ts.map +1 -0
- package/dist/primitives/Input/index.d.ts +3 -0
- package/dist/primitives/Input/index.d.ts.map +1 -0
- package/dist/primitives/Select/Select.css.d.ts +8 -0
- package/dist/primitives/Select/Select.css.d.ts.map +1 -0
- package/dist/primitives/Select/Select.d.ts +18 -0
- package/dist/primitives/Select/Select.d.ts.map +1 -0
- package/dist/primitives/Select/index.d.ts +3 -0
- package/dist/primitives/Select/index.d.ts.map +1 -0
- package/dist/primitives/Tag/Tag.css.d.ts +16 -0
- package/dist/primitives/Tag/Tag.css.d.ts.map +1 -0
- package/dist/primitives/Tag/Tag.d.ts +7 -0
- package/dist/primitives/Tag/Tag.d.ts.map +1 -0
- package/dist/primitives/Tag/index.d.ts +3 -0
- package/dist/primitives/Tag/index.d.ts.map +1 -0
- package/dist/styles.css +1 -0
- package/dist/styles.d.ts +1 -0
- package/dist/styles.d.ts.map +1 -0
- package/package.json +61 -0
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import i, { forwardRef as F, useState as O, useRef as p, useEffect as B, useLayoutEffect as K, createContext as M } from "react";
|
|
2
|
+
import { S as Q } from "./index.esm42.js";
|
|
3
|
+
import { g as X, m as Y, a as Z, u as ee } from "./index.esm43.js";
|
|
4
|
+
import { d as q, w as re, n as te, b as ne, a as se, e as T, u as ae } from "./index.esm44.js";
|
|
5
|
+
function L() {
|
|
6
|
+
return L = Object.assign ? Object.assign.bind() : function(s) {
|
|
7
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
8
|
+
var n = arguments[t];
|
|
9
|
+
for (var r in n)
|
|
10
|
+
Object.prototype.hasOwnProperty.call(n, r) && (s[r] = n[r]);
|
|
11
|
+
}
|
|
12
|
+
return s;
|
|
13
|
+
}, L.apply(this, arguments);
|
|
14
|
+
}
|
|
15
|
+
function D(s) {
|
|
16
|
+
return s.type && s.type.displayName && s.type.displayName.includes("SwiperSlide");
|
|
17
|
+
}
|
|
18
|
+
function H(s) {
|
|
19
|
+
const t = [];
|
|
20
|
+
return i.Children.toArray(s).forEach((n) => {
|
|
21
|
+
D(n) ? t.push(n) : n.props && n.props.children && H(n.props.children).forEach((r) => t.push(r));
|
|
22
|
+
}), t;
|
|
23
|
+
}
|
|
24
|
+
function ie(s) {
|
|
25
|
+
const t = [], n = {
|
|
26
|
+
"container-start": [],
|
|
27
|
+
"container-end": [],
|
|
28
|
+
"wrapper-start": [],
|
|
29
|
+
"wrapper-end": []
|
|
30
|
+
};
|
|
31
|
+
return i.Children.toArray(s).forEach((r) => {
|
|
32
|
+
if (D(r))
|
|
33
|
+
t.push(r);
|
|
34
|
+
else if (r.props && r.props.slot && n[r.props.slot])
|
|
35
|
+
n[r.props.slot].push(r);
|
|
36
|
+
else if (r.props && r.props.children) {
|
|
37
|
+
const u = H(r.props.children);
|
|
38
|
+
u.length > 0 ? u.forEach((d) => t.push(d)) : n["container-end"].push(r);
|
|
39
|
+
} else
|
|
40
|
+
n["container-end"].push(r);
|
|
41
|
+
}), {
|
|
42
|
+
slides: t,
|
|
43
|
+
slots: n
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function oe(s, t, n) {
|
|
47
|
+
if (!n) return null;
|
|
48
|
+
const r = (a) => {
|
|
49
|
+
let o = a;
|
|
50
|
+
return a < 0 ? o = t.length + a : o >= t.length && (o = o - t.length), o;
|
|
51
|
+
}, u = s.isHorizontal() ? {
|
|
52
|
+
[s.rtlTranslate ? "right" : "left"]: `${n.offset}px`
|
|
53
|
+
} : {
|
|
54
|
+
top: `${n.offset}px`
|
|
55
|
+
}, {
|
|
56
|
+
from: d,
|
|
57
|
+
to: C
|
|
58
|
+
} = n, g = s.params.loop ? -t.length : 0, S = s.params.loop ? t.length * 2 : t.length, w = [];
|
|
59
|
+
for (let a = g; a < S; a += 1)
|
|
60
|
+
a >= d && a <= C && w.push(t[r(a)]);
|
|
61
|
+
return w.map((a, o) => /* @__PURE__ */ i.cloneElement(a, {
|
|
62
|
+
swiper: s,
|
|
63
|
+
style: u,
|
|
64
|
+
key: a.props.virtualIndex || a.key || `slide-${o}`
|
|
65
|
+
}));
|
|
66
|
+
}
|
|
67
|
+
function N(s, t) {
|
|
68
|
+
return typeof window > "u" ? B(s, t) : K(s, t);
|
|
69
|
+
}
|
|
70
|
+
const V = /* @__PURE__ */ M(null), le = /* @__PURE__ */ M(null), ue = /* @__PURE__ */ F(({
|
|
71
|
+
className: s,
|
|
72
|
+
tag: t = "div",
|
|
73
|
+
wrapperTag: n = "div",
|
|
74
|
+
children: r,
|
|
75
|
+
onSwiper: u,
|
|
76
|
+
...d
|
|
77
|
+
} = {}, C) => {
|
|
78
|
+
let g = !1;
|
|
79
|
+
const [S, w] = O("swiper"), [a, o] = O(null), [h, R] = O(!1), $ = p(!1), m = p(null), e = p(null), b = p(null), j = p(null), c = p(null), x = p(null), P = p(null), _ = p(null), {
|
|
80
|
+
params: f,
|
|
81
|
+
passedParams: z,
|
|
82
|
+
rest: U,
|
|
83
|
+
events: v
|
|
84
|
+
} = X(d), {
|
|
85
|
+
slides: y,
|
|
86
|
+
slots: k
|
|
87
|
+
} = ie(r), I = () => {
|
|
88
|
+
R(!h);
|
|
89
|
+
};
|
|
90
|
+
Object.assign(f.on, {
|
|
91
|
+
_containerClasses(l, E) {
|
|
92
|
+
w(E);
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
const A = () => {
|
|
96
|
+
Object.assign(f.on, v), g = !0;
|
|
97
|
+
const l = {
|
|
98
|
+
...f
|
|
99
|
+
};
|
|
100
|
+
if (delete l.wrapperClass, e.current = new Q(l), 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: o,
|
|
106
|
+
renderExternalUpdate: !1
|
|
107
|
+
};
|
|
108
|
+
T(e.current.params.virtual, E), T(e.current.originalParams.virtual, E);
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
m.current || A(), e.current && e.current.on("_beforeBreakpoint", I);
|
|
112
|
+
const W = () => {
|
|
113
|
+
g || !v || !e.current || Object.keys(v).forEach((l) => {
|
|
114
|
+
e.current.on(l, v[l]);
|
|
115
|
+
});
|
|
116
|
+
}, G = () => {
|
|
117
|
+
!v || !e.current || Object.keys(v).forEach((l) => {
|
|
118
|
+
e.current.off(l, v[l]);
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
B(() => () => {
|
|
122
|
+
e.current && e.current.off("_beforeBreakpoint", I);
|
|
123
|
+
}), B(() => {
|
|
124
|
+
!$.current && e.current && (e.current.emitSlidesClasses(), $.current = !0);
|
|
125
|
+
}), N(() => {
|
|
126
|
+
if (C && (C.current = m.current), !!m.current)
|
|
127
|
+
return e.current.destroyed && A(), Y({
|
|
128
|
+
el: m.current,
|
|
129
|
+
nextEl: c.current,
|
|
130
|
+
prevEl: x.current,
|
|
131
|
+
paginationEl: P.current,
|
|
132
|
+
scrollbarEl: _.current,
|
|
133
|
+
swiper: e.current
|
|
134
|
+
}, f), u && !e.current.destroyed && u(e.current), () => {
|
|
135
|
+
e.current && !e.current.destroyed && e.current.destroy(!0, !1);
|
|
136
|
+
};
|
|
137
|
+
}, []), N(() => {
|
|
138
|
+
W();
|
|
139
|
+
const l = Z(z, b.current, y, j.current, (E) => E.key);
|
|
140
|
+
return b.current = z, j.current = y, l.length && e.current && !e.current.destroyed && ae({
|
|
141
|
+
swiper: e.current,
|
|
142
|
+
slides: y,
|
|
143
|
+
passedParams: z,
|
|
144
|
+
changedParams: l,
|
|
145
|
+
nextEl: c.current,
|
|
146
|
+
prevEl: x.current,
|
|
147
|
+
scrollbarEl: _.current,
|
|
148
|
+
paginationEl: P.current
|
|
149
|
+
}), () => {
|
|
150
|
+
G();
|
|
151
|
+
};
|
|
152
|
+
}), N(() => {
|
|
153
|
+
ee(e.current);
|
|
154
|
+
}, [a]);
|
|
155
|
+
function J() {
|
|
156
|
+
return f.virtual ? oe(e.current, y, a) : y.map((l, E) => /* @__PURE__ */ i.cloneElement(l, {
|
|
157
|
+
swiper: e.current,
|
|
158
|
+
swiperSlideIndex: E
|
|
159
|
+
}));
|
|
160
|
+
}
|
|
161
|
+
return /* @__PURE__ */ i.createElement(t, L({
|
|
162
|
+
ref: m,
|
|
163
|
+
className: q(`${S}${s ? ` ${s}` : ""}`)
|
|
164
|
+
}, U), /* @__PURE__ */ i.createElement(le.Provider, {
|
|
165
|
+
value: e.current
|
|
166
|
+
}, k["container-start"], /* @__PURE__ */ i.createElement(n, {
|
|
167
|
+
className: re(f.wrapperClass)
|
|
168
|
+
}, k["wrapper-start"], J(), k["wrapper-end"]), te(f) && /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement("div", {
|
|
169
|
+
ref: x,
|
|
170
|
+
className: "swiper-button-prev"
|
|
171
|
+
}), /* @__PURE__ */ i.createElement("div", {
|
|
172
|
+
ref: c,
|
|
173
|
+
className: "swiper-button-next"
|
|
174
|
+
})), ne(f) && /* @__PURE__ */ i.createElement("div", {
|
|
175
|
+
ref: _,
|
|
176
|
+
className: "swiper-scrollbar"
|
|
177
|
+
}), se(f) && /* @__PURE__ */ i.createElement("div", {
|
|
178
|
+
ref: P,
|
|
179
|
+
className: "swiper-pagination"
|
|
180
|
+
}), k["container-end"]));
|
|
181
|
+
});
|
|
182
|
+
ue.displayName = "Swiper";
|
|
183
|
+
const ce = /* @__PURE__ */ F(({
|
|
184
|
+
tag: s = "div",
|
|
185
|
+
children: t,
|
|
186
|
+
className: n = "",
|
|
187
|
+
swiper: r,
|
|
188
|
+
zoom: u,
|
|
189
|
+
lazy: d,
|
|
190
|
+
virtualIndex: C,
|
|
191
|
+
swiperSlideIndex: g,
|
|
192
|
+
...S
|
|
193
|
+
} = {}, w) => {
|
|
194
|
+
const a = p(null), [o, h] = O("swiper-slide"), [R, $] = O(!1);
|
|
195
|
+
function m(c, x, P) {
|
|
196
|
+
x === a.current && h(P);
|
|
197
|
+
}
|
|
198
|
+
N(() => {
|
|
199
|
+
if (typeof g < "u" && (a.current.swiperSlideIndex = g), w && (w.current = a.current), !(!a.current || !r)) {
|
|
200
|
+
if (r.destroyed) {
|
|
201
|
+
o !== "swiper-slide" && h("swiper-slide");
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
return r.on("_slideClass", m), () => {
|
|
205
|
+
r && r.off("_slideClass", m);
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
}), N(() => {
|
|
209
|
+
r && a.current && !r.destroyed && h(r.getSlideClasses(a.current));
|
|
210
|
+
}, [r]);
|
|
211
|
+
const e = {
|
|
212
|
+
isActive: o.indexOf("swiper-slide-active") >= 0,
|
|
213
|
+
isVisible: o.indexOf("swiper-slide-visible") >= 0,
|
|
214
|
+
isPrev: o.indexOf("swiper-slide-prev") >= 0,
|
|
215
|
+
isNext: o.indexOf("swiper-slide-next") >= 0
|
|
216
|
+
}, b = () => typeof t == "function" ? t(e) : t, j = () => {
|
|
217
|
+
$(!0);
|
|
218
|
+
};
|
|
219
|
+
return /* @__PURE__ */ i.createElement(s, L({
|
|
220
|
+
ref: a,
|
|
221
|
+
className: q(`${o}${n ? ` ${n}` : ""}`),
|
|
222
|
+
"data-swiper-slide-index": C,
|
|
223
|
+
onLoad: j
|
|
224
|
+
}, S), u && /* @__PURE__ */ i.createElement(V.Provider, {
|
|
225
|
+
value: e
|
|
226
|
+
}, /* @__PURE__ */ i.createElement("div", {
|
|
227
|
+
className: "swiper-zoom-container",
|
|
228
|
+
"data-swiper-zoom": typeof u == "number" ? u : void 0
|
|
229
|
+
}, b(), d && !R && /* @__PURE__ */ i.createElement("div", {
|
|
230
|
+
className: "swiper-lazy-preloader",
|
|
231
|
+
ref: (c) => {
|
|
232
|
+
c && (c.lazyPreloaderManaged = !0);
|
|
233
|
+
}
|
|
234
|
+
}))), !u && /* @__PURE__ */ i.createElement(V.Provider, {
|
|
235
|
+
value: e
|
|
236
|
+
}, b(), d && !R && /* @__PURE__ */ i.createElement("div", {
|
|
237
|
+
className: "swiper-lazy-preloader",
|
|
238
|
+
ref: (c) => {
|
|
239
|
+
c && (c.lazyPreloaderManaged = !0);
|
|
240
|
+
}
|
|
241
|
+
})));
|
|
242
|
+
});
|
|
243
|
+
ce.displayName = "SwiperSlide";
|
|
244
|
+
export {
|
|
245
|
+
ue as Swiper,
|
|
246
|
+
ce as SwiperSlide
|
|
247
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
var r = "w40enx1", n = "w40enx2", w = "w40enx3", v = "w40enx4", x = "w40enx5", i = "w40enx6", t = "w40enx7", l = "w40enx8", o = "w40enx9", p = "w40enxa", s = "w40enxb", m = "w40enxc", b = "w40enxd", g = "w40enxe", c = "w40enxf", k = "w40enxg", u = "w40enxh", d = "w40enxi", j = "w40enxk w40enxj", y = "w40enxl w40enxj", B = "w40enxm w40enxj";
|
|
4
|
+
export {
|
|
5
|
+
v as badgeOverlay,
|
|
6
|
+
i as body,
|
|
7
|
+
c as footer,
|
|
8
|
+
w as image,
|
|
9
|
+
n as imageWrapper,
|
|
10
|
+
g as installments,
|
|
11
|
+
b as originalPrice,
|
|
12
|
+
m as price,
|
|
13
|
+
s as priceWrapper,
|
|
14
|
+
k as quickViewBtn,
|
|
15
|
+
p as reviewCount,
|
|
16
|
+
r as root,
|
|
17
|
+
B as skeletonBtn,
|
|
18
|
+
j as skeletonImage,
|
|
19
|
+
y as skeletonLine,
|
|
20
|
+
o as starsWrapper,
|
|
21
|
+
l as subtitle,
|
|
22
|
+
t as title,
|
|
23
|
+
u as unavailableOverlay,
|
|
24
|
+
d as unavailableText,
|
|
25
|
+
x as wishlistBtn
|
|
26
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { c as a } from "./index.esm34.js";
|
|
4
|
+
var d = a({ defaultClassName: "_19yozed0", variantClassNames: { maxWidth: { sm: "_19yozed1", md: "_19yozed2", lg: "_19yozed3", xl: "_19yozed4", full: "_19yozed5" } }, defaultVariants: { maxWidth: "xl" }, compoundVariants: [] });
|
|
5
|
+
export {
|
|
6
|
+
d as containerRecipe
|
|
7
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx as e, jsxs as p, Fragment as f } from "react/jsx-runtime";
|
|
2
|
+
import { buttonRecipe as m } from "./index.esm15.js";
|
|
3
|
+
function v({
|
|
4
|
+
variant: t = "primary",
|
|
5
|
+
size: a = "md",
|
|
6
|
+
fullWidth: l = !1,
|
|
7
|
+
loading: i = !1,
|
|
8
|
+
disabled: s = !1,
|
|
9
|
+
leftIcon: n,
|
|
10
|
+
rightIcon: r,
|
|
11
|
+
onClick: o,
|
|
12
|
+
children: d,
|
|
13
|
+
type: h = "button",
|
|
14
|
+
className: u
|
|
15
|
+
}) {
|
|
16
|
+
const c = m({ variant: t, size: a, fullWidth: l || void 0 });
|
|
17
|
+
return /* @__PURE__ */ e(
|
|
18
|
+
"button",
|
|
19
|
+
{
|
|
20
|
+
type: h,
|
|
21
|
+
className: [c, u].filter(Boolean).join(" "),
|
|
22
|
+
disabled: s || i,
|
|
23
|
+
onClick: o,
|
|
24
|
+
"aria-busy": i,
|
|
25
|
+
children: i ? /* @__PURE__ */ e("output", { "aria-label": "Cargando", style: { display: "inline-flex", alignItems: "center" }, children: /* @__PURE__ */ e(
|
|
26
|
+
"svg",
|
|
27
|
+
{
|
|
28
|
+
width: "16",
|
|
29
|
+
height: "16",
|
|
30
|
+
viewBox: "0 0 24 24",
|
|
31
|
+
fill: "none",
|
|
32
|
+
stroke: "currentColor",
|
|
33
|
+
strokeWidth: "2.5",
|
|
34
|
+
strokeLinecap: "round",
|
|
35
|
+
style: { animation: "spin 0.75s linear infinite" },
|
|
36
|
+
"aria-hidden": "true",
|
|
37
|
+
children: /* @__PURE__ */ e("path", { d: "M12 2v4M12 18v4M4.93 4.93l2.83 2.83M16.24 16.24l2.83 2.83M2 12h4M18 12h4M4.93 19.07l2.83-2.83M16.24 7.76l2.83-2.83" })
|
|
38
|
+
}
|
|
39
|
+
) }) : /* @__PURE__ */ p(f, { children: [
|
|
40
|
+
n && /* @__PURE__ */ e("span", { "aria-hidden": "true", children: n }),
|
|
41
|
+
d,
|
|
42
|
+
r && /* @__PURE__ */ e("span", { "aria-hidden": "true", children: r })
|
|
43
|
+
] })
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
v as Button
|
|
49
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
function c(r, t) {
|
|
2
|
+
if (typeof r != "object" || !r) return r;
|
|
3
|
+
var a = r[Symbol.toPrimitive];
|
|
4
|
+
if (a !== void 0) {
|
|
5
|
+
var e = a.call(r, t);
|
|
6
|
+
if (typeof e != "object") return e;
|
|
7
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
8
|
+
}
|
|
9
|
+
return (t === "string" ? String : Number)(r);
|
|
10
|
+
}
|
|
11
|
+
function O(r) {
|
|
12
|
+
var t = c(r, "string");
|
|
13
|
+
return typeof t == "symbol" ? t : String(t);
|
|
14
|
+
}
|
|
15
|
+
function y(r, t, a) {
|
|
16
|
+
return t = O(t), t in r ? Object.defineProperty(r, t, {
|
|
17
|
+
value: a,
|
|
18
|
+
enumerable: !0,
|
|
19
|
+
configurable: !0,
|
|
20
|
+
writable: !0
|
|
21
|
+
}) : r[t] = a, r;
|
|
22
|
+
}
|
|
23
|
+
function l(r, t) {
|
|
24
|
+
var a = Object.keys(r);
|
|
25
|
+
if (Object.getOwnPropertySymbols) {
|
|
26
|
+
var e = Object.getOwnPropertySymbols(r);
|
|
27
|
+
t && (e = e.filter(function(n) {
|
|
28
|
+
return Object.getOwnPropertyDescriptor(r, n).enumerable;
|
|
29
|
+
})), a.push.apply(a, e);
|
|
30
|
+
}
|
|
31
|
+
return a;
|
|
32
|
+
}
|
|
33
|
+
function p(r) {
|
|
34
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
35
|
+
var a = arguments[t] != null ? arguments[t] : {};
|
|
36
|
+
t % 2 ? l(Object(a), !0).forEach(function(e) {
|
|
37
|
+
y(r, e, a[e]);
|
|
38
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(a)) : l(Object(a)).forEach(function(e) {
|
|
39
|
+
Object.defineProperty(r, e, Object.getOwnPropertyDescriptor(a, e));
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
return r;
|
|
43
|
+
}
|
|
44
|
+
function v(r, t) {
|
|
45
|
+
var a = {};
|
|
46
|
+
for (var e in r)
|
|
47
|
+
a[e] = t(r[e], e);
|
|
48
|
+
return a;
|
|
49
|
+
}
|
|
50
|
+
var d = (r, t, a) => {
|
|
51
|
+
for (var e of Object.keys(r)) {
|
|
52
|
+
var n;
|
|
53
|
+
if (r[e] !== ((n = t[e]) !== null && n !== void 0 ? n : a[e]))
|
|
54
|
+
return !1;
|
|
55
|
+
}
|
|
56
|
+
return !0;
|
|
57
|
+
}, j = (r) => {
|
|
58
|
+
var t = (a) => {
|
|
59
|
+
var e = r.defaultClassName, n = p(p({}, r.defaultVariants), a);
|
|
60
|
+
for (var i in n) {
|
|
61
|
+
var s, o = (s = n[i]) !== null && s !== void 0 ? s : r.defaultVariants[i];
|
|
62
|
+
if (o != null) {
|
|
63
|
+
var u = o;
|
|
64
|
+
typeof u == "boolean" && (u = u === !0 ? "true" : "false");
|
|
65
|
+
var f = (
|
|
66
|
+
// @ts-expect-error
|
|
67
|
+
r.variantClassNames[i][u]
|
|
68
|
+
);
|
|
69
|
+
f && (e += " " + f);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
for (var [b, m] of r.compoundVariants)
|
|
73
|
+
d(b, n, r.defaultVariants) && (e += " " + m);
|
|
74
|
+
return e;
|
|
75
|
+
};
|
|
76
|
+
return t.variants = () => Object.keys(r.variantClassNames), t.classNames = {
|
|
77
|
+
get base() {
|
|
78
|
+
return r.defaultClassName.split(" ")[0];
|
|
79
|
+
},
|
|
80
|
+
get variants() {
|
|
81
|
+
return v(r.variantClassNames, (a) => v(a, (e) => e.split(" ")[0]));
|
|
82
|
+
}
|
|
83
|
+
}, t;
|
|
84
|
+
};
|
|
85
|
+
export {
|
|
86
|
+
j as c,
|
|
87
|
+
v as m
|
|
88
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
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.esm18.js";
|
|
3
|
+
function y({
|
|
4
|
+
media: s,
|
|
5
|
+
header: i,
|
|
6
|
+
body: o,
|
|
7
|
+
footer: t,
|
|
8
|
+
onClick: e,
|
|
9
|
+
hoverable: c = !1,
|
|
10
|
+
className: n,
|
|
11
|
+
padding: l = "none"
|
|
12
|
+
}) {
|
|
13
|
+
const a = !!e, v = f({ hoverable: c || void 0, padding: l });
|
|
14
|
+
return /* @__PURE__ */ m(
|
|
15
|
+
"article",
|
|
16
|
+
{
|
|
17
|
+
className: [v, n].filter(Boolean).join(" "),
|
|
18
|
+
onClick: e,
|
|
19
|
+
role: a ? "button" : void 0,
|
|
20
|
+
tabIndex: a ? 0 : void 0,
|
|
21
|
+
onKeyDown: a ? (d) => {
|
|
22
|
+
(d.key === "Enter" || d.key === " ") && (d.preventDefault(), e == null || e());
|
|
23
|
+
} : void 0,
|
|
24
|
+
children: [
|
|
25
|
+
s && /* @__PURE__ */ r("div", { className: h, children: s }),
|
|
26
|
+
i && /* @__PURE__ */ r("div", { className: p, children: i }),
|
|
27
|
+
o && /* @__PURE__ */ r("div", { className: N, children: o }),
|
|
28
|
+
t && /* @__PURE__ */ r("div", { className: u, children: t })
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
y as Card
|
|
35
|
+
};
|