@danielcruzcode/ui-core 0.1.3 → 0.1.4
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/commerce/ProductCard/ProductCard.d.ts +1 -1
- package/dist/commerce/ProductCard/ProductCard.d.ts.map +1 -1
- package/dist/commerce/ProductShelf/ProductShelf.d.ts +1 -1
- package/dist/commerce/ProductShelf/ProductShelf.d.ts.map +1 -1
- package/dist/components/Card/Card.d.ts +1 -1
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.d.ts +2 -2
- package/dist/components/Carousel/Carousel.d.ts.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs12.js +5 -1
- package/dist/index.cjs13.js +6 -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.cjs2.js +19 -1
- package/dist/index.cjs3.js +12 -1
- package/dist/index.cjs4.js +17 -1
- package/dist/index.cjs5.js +17 -1
- package/dist/index.cjs6.js +8 -1
- package/dist/index.cjs7.js +12 -1
- package/dist/index.cjs8.js +8 -1
- package/dist/index.cjs9.js +18 -1
- package/dist/index.esm.js +22 -22
- package/dist/index.esm10.js +65 -61
- package/dist/index.esm11.js +24 -48
- package/dist/index.esm12.js +11 -22
- package/dist/index.esm13.js +12 -25
- package/dist/index.esm14.js +22 -11
- package/dist/index.esm15.js +33 -5
- package/dist/index.esm16.js +1202 -5
- package/dist/index.esm2.js +38 -5
- package/dist/index.esm3.js +27 -46
- package/dist/index.esm4.js +29 -32
- package/dist/index.esm5.js +35 -96
- package/dist/index.esm6.js +26 -58
- package/dist/index.esm7.js +29 -5
- package/dist/index.esm8.js +34 -55
- package/dist/index.esm9.js +69 -162
- package/dist/layout/Container/Container.d.ts +2 -1
- package/dist/layout/Container/Container.d.ts.map +1 -1
- package/dist/layout/Stack/Stack.d.ts +4 -3
- package/dist/layout/Stack/Stack.d.ts.map +1 -1
- package/dist/primitives/Badge/Badge.d.ts.map +1 -1
- package/dist/primitives/Button/Button.d.ts +1 -1
- package/dist/primitives/Button/Button.d.ts.map +1 -1
- package/dist/primitives/Checkbox/Checkbox.d.ts +1 -1
- package/dist/primitives/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/primitives/Input/Input.d.ts +1 -1
- package/dist/primitives/Input/Input.d.ts.map +1 -1
- package/dist/primitives/Select/Select.d.ts +1 -1
- package/dist/primitives/Select/Select.d.ts.map +1 -1
- package/dist/primitives/Tag/Tag.d.ts.map +1 -1
- package/package.json +6 -26
- package/dist/commerce/ProductCard/ProductCard.css.d.ts +0 -23
- package/dist/commerce/ProductCard/ProductCard.css.d.ts.map +0 -1
- package/dist/commerce/ProductShelf/ProductShelf.css.d.ts +0 -3
- package/dist/commerce/ProductShelf/ProductShelf.css.d.ts.map +0 -1
- package/dist/components/Card/Card.css.d.ts +0 -30
- package/dist/components/Card/Card.css.d.ts.map +0 -1
- package/dist/components/Carousel/Carousel.css.d.ts +0 -8
- package/dist/components/Carousel/Carousel.css.d.ts.map +0 -1
- package/dist/index.cjs17.js +0 -1
- package/dist/index.cjs18.js +0 -1
- package/dist/index.cjs19.js +0 -1
- package/dist/index.cjs20.js +0 -1
- package/dist/index.cjs21.js +0 -1
- package/dist/index.cjs22.js +0 -1
- package/dist/index.cjs23.js +0 -1
- package/dist/index.cjs24.js +0 -1
- package/dist/index.cjs25.js +0 -1
- package/dist/index.cjs26.js +0 -1
- package/dist/index.cjs27.js +0 -1
- package/dist/index.cjs28.js +0 -1
- package/dist/index.cjs30.js +0 -1
- package/dist/index.cjs31.js +0 -1
- package/dist/index.cjs35.js +0 -1
- package/dist/index.cjs44.js +0 -1
- package/dist/index.cjs45.js +0 -1
- package/dist/index.cjs46.js +0 -1
- package/dist/index.cjs49.js +0 -1
- package/dist/index.cjs50.js +0 -1
- package/dist/index.cjs51.js +0 -1
- package/dist/index.cjs52.js +0 -1
- package/dist/index.esm17.js +0 -8
- package/dist/index.esm18.js +0 -15
- package/dist/index.esm19.js +0 -12
- package/dist/index.esm20.js +0 -26
- package/dist/index.esm21.js +0 -7
- package/dist/index.esm22.js +0 -7
- package/dist/index.esm23.js +0 -11
- package/dist/index.esm24.js +0 -136
- package/dist/index.esm25.js +0 -226
- package/dist/index.esm26.js +0 -130
- package/dist/index.esm27.js +0 -280
- package/dist/index.esm28.js +0 -11
- package/dist/index.esm30.js +0 -5
- package/dist/index.esm31.js +0 -1
- package/dist/index.esm35.js +0 -88
- package/dist/index.esm44.js +0 -2038
- package/dist/index.esm45.js +0 -60
- package/dist/index.esm46.js +0 -191
- package/dist/index.esm49.js +0 -12
- package/dist/index.esm50.js +0 -182
- package/dist/index.esm51.js +0 -6
- package/dist/index.esm52.js +0 -134
- package/dist/layout/Container/Container.css.d.ts +0 -20
- package/dist/layout/Container/Container.css.d.ts.map +0 -1
- package/dist/layout/Stack/Stack.css.d.ts +0 -2
- package/dist/layout/Stack/Stack.css.d.ts.map +0 -1
- package/dist/primitives/Badge/Badge.css.d.ts +0 -37
- package/dist/primitives/Badge/Badge.css.d.ts.map +0 -1
- package/dist/primitives/Button/Button.css.d.ts +0 -60
- package/dist/primitives/Button/Button.css.d.ts.map +0 -1
- package/dist/primitives/Checkbox/Checkbox.css.d.ts +0 -9
- package/dist/primitives/Checkbox/Checkbox.css.d.ts.map +0 -1
- package/dist/primitives/Input/Input.css.d.ts +0 -11
- package/dist/primitives/Input/Input.css.d.ts.map +0 -1
- package/dist/primitives/Select/Select.css.d.ts +0 -8
- package/dist/primitives/Select/Select.css.d.ts.map +0 -1
- package/dist/primitives/Tag/Tag.css.d.ts +0 -16
- package/dist/primitives/Tag/Tag.css.d.ts.map +0 -1
- package/dist/styles.css +0 -1
- package/dist/styles.d.ts +0 -1
- package/dist/styles.d.ts.map +0 -1
- package/styles.css +0 -1
package/dist/index.esm45.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { e, p as m, i as u, n as h, a as v, b as p } from "./index.esm46.js";
|
|
2
|
-
import { d as O } from "./index.esm44.js";
|
|
3
|
-
function C(t = {}, i = !0) {
|
|
4
|
-
const n = {
|
|
5
|
-
on: {}
|
|
6
|
-
}, o = {}, l = {};
|
|
7
|
-
e(n, O), n._emitClasses = !0, n.init = !1;
|
|
8
|
-
const s = {}, f = m.map((a) => a.replace(/_/, "")), d = Object.assign({}, t);
|
|
9
|
-
return Object.keys(d).forEach((a) => {
|
|
10
|
-
typeof t[a] != "undefined" && (f.indexOf(a) >= 0 ? u(t[a]) ? (n[a] = {}, l[a] = {}, e(n[a], t[a]), e(l[a], t[a])) : (n[a] = t[a], l[a] = t[a]) : a.search(/on[A-Z]/) === 0 && typeof t[a] == "function" ? i ? o[`${a[2].toLowerCase()}${a.substr(3)}`] = t[a] : n.on[`${a[2].toLowerCase()}${a.substr(3)}`] = t[a] : s[a] = t[a]);
|
|
11
|
-
}), ["navigation", "pagination", "scrollbar"].forEach((a) => {
|
|
12
|
-
n[a] === !0 && (n[a] = {}), n[a] === !1 && delete n[a];
|
|
13
|
-
}), {
|
|
14
|
-
params: n,
|
|
15
|
-
passedParams: l,
|
|
16
|
-
rest: s,
|
|
17
|
-
events: o
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
function S({
|
|
21
|
-
el: t,
|
|
22
|
-
nextEl: i,
|
|
23
|
-
prevEl: n,
|
|
24
|
-
paginationEl: o,
|
|
25
|
-
scrollbarEl: l,
|
|
26
|
-
swiper: s
|
|
27
|
-
}, f) {
|
|
28
|
-
h(f) && i && n && (s.params.navigation.nextEl = i, s.originalParams.navigation.nextEl = i, s.params.navigation.prevEl = n, s.originalParams.navigation.prevEl = n), v(f) && o && (s.params.pagination.el = o, s.originalParams.pagination.el = o), p(f) && l && (s.params.scrollbar.el = l, s.originalParams.scrollbar.el = l), s.init(t);
|
|
29
|
-
}
|
|
30
|
-
function $(t, i, n, o, l) {
|
|
31
|
-
const s = [];
|
|
32
|
-
if (!i) return s;
|
|
33
|
-
const f = (a) => {
|
|
34
|
-
s.indexOf(a) < 0 && s.push(a);
|
|
35
|
-
};
|
|
36
|
-
if (n && o) {
|
|
37
|
-
const a = o.map(l), r = n.map(l);
|
|
38
|
-
a.join("") !== r.join("") && f("children"), o.length !== n.length && f("children");
|
|
39
|
-
}
|
|
40
|
-
return m.filter((a) => a[0] === "_").map((a) => a.replace(/_/, "")).forEach((a) => {
|
|
41
|
-
if (a in t && a in i)
|
|
42
|
-
if (u(t[a]) && u(i[a])) {
|
|
43
|
-
const r = Object.keys(t[a]), g = Object.keys(i[a]);
|
|
44
|
-
r.length !== g.length ? f(a) : (r.forEach((c) => {
|
|
45
|
-
t[a][c] !== i[a][c] && f(a);
|
|
46
|
-
}), g.forEach((c) => {
|
|
47
|
-
t[a][c] !== i[a][c] && f(a);
|
|
48
|
-
}));
|
|
49
|
-
} else t[a] !== i[a] && f(a);
|
|
50
|
-
}), s;
|
|
51
|
-
}
|
|
52
|
-
const b = (t) => {
|
|
53
|
-
!t || t.destroyed || !t.params.virtual || t.params.virtual && !t.params.virtual.enabled || (t.updateSlides(), t.updateProgress(), t.updateSlidesClasses(), t.emit("_virtualUpdated"), t.parallax && t.params.parallax && t.params.parallax.enabled && t.parallax.setTranslate());
|
|
54
|
-
};
|
|
55
|
-
export {
|
|
56
|
-
$ as a,
|
|
57
|
-
C as g,
|
|
58
|
-
S as m,
|
|
59
|
-
b as u
|
|
60
|
-
};
|
package/dist/index.esm46.js
DELETED
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
import { s as z } from "./index.esm50.js";
|
|
2
|
-
const L = [
|
|
3
|
-
"eventsPrefix",
|
|
4
|
-
"injectStyles",
|
|
5
|
-
"injectStylesUrls",
|
|
6
|
-
"modules",
|
|
7
|
-
"init",
|
|
8
|
-
"_direction",
|
|
9
|
-
"oneWayMovement",
|
|
10
|
-
"swiperElementNodeName",
|
|
11
|
-
"touchEventsTarget",
|
|
12
|
-
"initialSlide",
|
|
13
|
-
"_speed",
|
|
14
|
-
"cssMode",
|
|
15
|
-
"updateOnWindowResize",
|
|
16
|
-
"resizeObserver",
|
|
17
|
-
"nested",
|
|
18
|
-
"focusableElements",
|
|
19
|
-
"_enabled",
|
|
20
|
-
"_width",
|
|
21
|
-
"_height",
|
|
22
|
-
"preventInteractionOnTransition",
|
|
23
|
-
"userAgent",
|
|
24
|
-
"url",
|
|
25
|
-
"_edgeSwipeDetection",
|
|
26
|
-
"_edgeSwipeThreshold",
|
|
27
|
-
"_freeMode",
|
|
28
|
-
"_autoHeight",
|
|
29
|
-
"setWrapperSize",
|
|
30
|
-
"virtualTranslate",
|
|
31
|
-
"_effect",
|
|
32
|
-
"breakpoints",
|
|
33
|
-
"breakpointsBase",
|
|
34
|
-
"_spaceBetween",
|
|
35
|
-
"_slidesPerView",
|
|
36
|
-
"maxBackfaceHiddenSlides",
|
|
37
|
-
"_grid",
|
|
38
|
-
"_slidesPerGroup",
|
|
39
|
-
"_slidesPerGroupSkip",
|
|
40
|
-
"_slidesPerGroupAuto",
|
|
41
|
-
"_centeredSlides",
|
|
42
|
-
"_centeredSlidesBounds",
|
|
43
|
-
"_slidesOffsetBefore",
|
|
44
|
-
"_slidesOffsetAfter",
|
|
45
|
-
"normalizeSlideIndex",
|
|
46
|
-
"_centerInsufficientSlides",
|
|
47
|
-
"_snapToSlideEdge",
|
|
48
|
-
"_watchOverflow",
|
|
49
|
-
"roundLengths",
|
|
50
|
-
"touchRatio",
|
|
51
|
-
"touchAngle",
|
|
52
|
-
"simulateTouch",
|
|
53
|
-
"_shortSwipes",
|
|
54
|
-
"_longSwipes",
|
|
55
|
-
"longSwipesRatio",
|
|
56
|
-
"longSwipesMs",
|
|
57
|
-
"_followFinger",
|
|
58
|
-
"allowTouchMove",
|
|
59
|
-
"_threshold",
|
|
60
|
-
"touchMoveStopPropagation",
|
|
61
|
-
"touchStartPreventDefault",
|
|
62
|
-
"touchStartForcePreventDefault",
|
|
63
|
-
"touchReleaseOnEdges",
|
|
64
|
-
"uniqueNavElements",
|
|
65
|
-
"_resistance",
|
|
66
|
-
"_resistanceRatio",
|
|
67
|
-
"_watchSlidesProgress",
|
|
68
|
-
"_grabCursor",
|
|
69
|
-
"preventClicks",
|
|
70
|
-
"preventClicksPropagation",
|
|
71
|
-
"_slideToClickedSlide",
|
|
72
|
-
"_loop",
|
|
73
|
-
"loopAdditionalSlides",
|
|
74
|
-
"loopAddBlankSlides",
|
|
75
|
-
"loopPreventsSliding",
|
|
76
|
-
"_rewind",
|
|
77
|
-
"_allowSlidePrev",
|
|
78
|
-
"_allowSlideNext",
|
|
79
|
-
"_swipeHandler",
|
|
80
|
-
"_noSwiping",
|
|
81
|
-
"noSwipingClass",
|
|
82
|
-
"noSwipingSelector",
|
|
83
|
-
"passiveListeners",
|
|
84
|
-
"containerModifierClass",
|
|
85
|
-
"slideClass",
|
|
86
|
-
"slideActiveClass",
|
|
87
|
-
"slideVisibleClass",
|
|
88
|
-
"slideFullyVisibleClass",
|
|
89
|
-
"slideNextClass",
|
|
90
|
-
"slidePrevClass",
|
|
91
|
-
"slideBlankClass",
|
|
92
|
-
"wrapperClass",
|
|
93
|
-
"lazyPreloaderClass",
|
|
94
|
-
"lazyPreloadPrevNext",
|
|
95
|
-
"runCallbacksOnInit",
|
|
96
|
-
"observer",
|
|
97
|
-
"observeParents",
|
|
98
|
-
"observeSlideChildren",
|
|
99
|
-
// modules
|
|
100
|
-
"a11y",
|
|
101
|
-
"_autoplay",
|
|
102
|
-
"_controller",
|
|
103
|
-
"coverflowEffect",
|
|
104
|
-
"cubeEffect",
|
|
105
|
-
"fadeEffect",
|
|
106
|
-
"flipEffect",
|
|
107
|
-
"creativeEffect",
|
|
108
|
-
"cardsEffect",
|
|
109
|
-
"hashNavigation",
|
|
110
|
-
"history",
|
|
111
|
-
"keyboard",
|
|
112
|
-
"mousewheel",
|
|
113
|
-
"_navigation",
|
|
114
|
-
"_pagination",
|
|
115
|
-
"parallax",
|
|
116
|
-
"_scrollbar",
|
|
117
|
-
"_thumbs",
|
|
118
|
-
"virtual",
|
|
119
|
-
"zoom",
|
|
120
|
-
"control"
|
|
121
|
-
];
|
|
122
|
-
function _(e) {
|
|
123
|
-
return typeof e == "object" && e !== null && e.constructor && Object.prototype.toString.call(e).slice(8, -1) === "Object" && !e.__swiper__;
|
|
124
|
-
}
|
|
125
|
-
function I(e, o) {
|
|
126
|
-
const l = ["__proto__", "constructor", "prototype"];
|
|
127
|
-
Object.keys(o).filter((t) => l.indexOf(t) < 0).forEach((t) => {
|
|
128
|
-
typeof e[t] == "undefined" ? e[t] = o[t] : _(o[t]) && _(e[t]) && Object.keys(o[t]).length > 0 ? o[t].__swiper__ ? e[t] = o[t] : I(e[t], o[t]) : e[t] = o[t];
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
function A(e = {}) {
|
|
132
|
-
return e.navigation && typeof e.navigation.nextEl == "undefined" && typeof e.navigation.prevEl == "undefined";
|
|
133
|
-
}
|
|
134
|
-
function B(e = {}) {
|
|
135
|
-
return e.pagination && typeof e.pagination.el == "undefined";
|
|
136
|
-
}
|
|
137
|
-
function E(e = {}) {
|
|
138
|
-
return e.scrollbar && typeof e.scrollbar.el == "undefined";
|
|
139
|
-
}
|
|
140
|
-
function D(e = "") {
|
|
141
|
-
const o = e.split(" ").map((t) => t.trim()).filter((t) => !!t), l = [];
|
|
142
|
-
return o.forEach((t) => {
|
|
143
|
-
l.indexOf(t) < 0 && l.push(t);
|
|
144
|
-
}), l.join(" ");
|
|
145
|
-
}
|
|
146
|
-
function R(e = "") {
|
|
147
|
-
return e ? e.includes("swiper-wrapper") ? e : `swiper-wrapper ${e}` : "swiper-wrapper";
|
|
148
|
-
}
|
|
149
|
-
function H({
|
|
150
|
-
swiper: e,
|
|
151
|
-
slides: o,
|
|
152
|
-
passedParams: l,
|
|
153
|
-
changedParams: t,
|
|
154
|
-
nextEl: r,
|
|
155
|
-
prevEl: d,
|
|
156
|
-
scrollbarEl: u,
|
|
157
|
-
paginationEl: f
|
|
158
|
-
}) {
|
|
159
|
-
const S = t.filter((i) => i !== "children" && i !== "direction" && i !== "wrapperClass"), {
|
|
160
|
-
params: n,
|
|
161
|
-
pagination: a,
|
|
162
|
-
navigation: c,
|
|
163
|
-
scrollbar: p,
|
|
164
|
-
virtual: s,
|
|
165
|
-
thumbs: h
|
|
166
|
-
} = e;
|
|
167
|
-
let C, b, w, O, x, N, T, v;
|
|
168
|
-
t.includes("thumbs") && l.thumbs && l.thumbs.swiper && !l.thumbs.swiper.destroyed && n.thumbs && (!n.thumbs.swiper || n.thumbs.swiper.destroyed) && (C = !0), t.includes("controller") && l.controller && l.controller.control && n.controller && !n.controller.control && (b = !0), t.includes("pagination") && l.pagination && (l.pagination.el || f) && (n.pagination || n.pagination === !1) && a && !a.el && (w = !0), t.includes("scrollbar") && l.scrollbar && (l.scrollbar.el || u) && (n.scrollbar || n.scrollbar === !1) && p && !p.el && (O = !0), t.includes("navigation") && l.navigation && (l.navigation.prevEl || d) && (l.navigation.nextEl || r) && (n.navigation || n.navigation === !1) && c && !c.prevEl && !c.nextEl && (x = !0);
|
|
169
|
-
const j = (i) => {
|
|
170
|
-
e[i] && (e[i].destroy(), i === "navigation" ? (e.isElement && (e[i].prevEl.remove(), e[i].nextEl.remove()), n[i].prevEl = void 0, n[i].nextEl = void 0, e[i].prevEl = void 0, e[i].nextEl = void 0) : (e.isElement && e[i].el.remove(), n[i].el = void 0, e[i].el = void 0));
|
|
171
|
-
};
|
|
172
|
-
t.includes("loop") && e.isElement && (n.loop && !l.loop ? N = !0 : !n.loop && l.loop ? T = !0 : v = !0), S.forEach((i) => {
|
|
173
|
-
if (_(n[i]) && _(l[i]))
|
|
174
|
-
Object.assign(n[i], l[i]), (i === "navigation" || i === "pagination" || i === "scrollbar") && "enabled" in l[i] && !l[i].enabled && j(i);
|
|
175
|
-
else {
|
|
176
|
-
const g = l[i];
|
|
177
|
-
(g === !0 || g === !1) && (i === "navigation" || i === "pagination" || i === "scrollbar") ? g === !1 && j(i) : n[i] = l[i];
|
|
178
|
-
}
|
|
179
|
-
}), S.includes("controller") && !b && e.controller && e.controller.control && n.controller && n.controller.control && (e.controller.control = n.controller.control), t.includes("children") && o && s && n.virtual.enabled ? (s.slides = o, s.update(!0)) : t.includes("virtual") && s && n.virtual.enabled && (o && (s.slides = o), s.update(!0)), t.includes("children") && o && n.loop && (v = !0), C && h.init() && h.update(!0), b && (e.controller.control = n.controller.control), w && (e.isElement && (!f || typeof f == "string") && (f = document.createElement("div"), f.classList.add("swiper-pagination"), f.part.add("pagination"), e.el.appendChild(f)), f && (n.pagination.el = f), a.init(), a.render(), a.update()), O && (e.isElement && (!u || typeof u == "string") && (u = document.createElement("div"), u.classList.add("swiper-scrollbar"), u.part.add("scrollbar"), e.el.appendChild(u)), u && (n.scrollbar.el = u), p.init(), p.updateSize(), p.setTranslate()), x && (e.isElement && ((!r || typeof r == "string") && (r = document.createElement("div"), r.classList.add("swiper-button-next"), z(r, e.navigation.arrowSvg), r.part.add("button-next"), e.el.appendChild(r)), (!d || typeof d == "string") && (d = document.createElement("div"), d.classList.add("swiper-button-prev"), z(d, e.navigation.arrowSvg), d.part.add("button-prev"), e.el.appendChild(d))), r && (n.navigation.nextEl = r), d && (n.navigation.prevEl = d), c.init(), c.update()), t.includes("allowSlideNext") && (e.allowSlideNext = l.allowSlideNext), t.includes("allowSlidePrev") && (e.allowSlidePrev = l.allowSlidePrev), t.includes("direction") && e.changeDirection(l.direction, !1), (N || v) && e.loopDestroy(), (T || v) && e.loopCreate(), e.update();
|
|
180
|
-
}
|
|
181
|
-
export {
|
|
182
|
-
B as a,
|
|
183
|
-
E as b,
|
|
184
|
-
D as d,
|
|
185
|
-
I as e,
|
|
186
|
-
_ as i,
|
|
187
|
-
A as n,
|
|
188
|
-
L as p,
|
|
189
|
-
H as u,
|
|
190
|
-
R as w
|
|
191
|
-
};
|
package/dist/index.esm49.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { e as i, c as m } from "./index.esm50.js";
|
|
2
|
-
function o(f, a, n, l) {
|
|
3
|
-
return f.params.createElements && Object.keys(l).forEach((e) => {
|
|
4
|
-
if (!n[e] && n.auto === !0) {
|
|
5
|
-
let t = i(f.el, `.${l[e]}`)[0];
|
|
6
|
-
t || (t = m("div", l[e]), t.className = l[e], f.el.append(t)), n[e] = t, a[e] = t;
|
|
7
|
-
}
|
|
8
|
-
}), n;
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
o as c
|
|
12
|
-
};
|
package/dist/index.esm50.js
DELETED
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
import { a } from "./index.esm52.js";
|
|
2
|
-
function w(e = "") {
|
|
3
|
-
return e.trim().split(" ").filter((t) => !!t.trim());
|
|
4
|
-
}
|
|
5
|
-
function M(e) {
|
|
6
|
-
const t = e;
|
|
7
|
-
Object.keys(t).forEach((r) => {
|
|
8
|
-
try {
|
|
9
|
-
t[r] = null;
|
|
10
|
-
} catch (n) {
|
|
11
|
-
}
|
|
12
|
-
try {
|
|
13
|
-
delete t[r];
|
|
14
|
-
} catch (n) {
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
function x(e, t = 0) {
|
|
19
|
-
return setTimeout(e, t);
|
|
20
|
-
}
|
|
21
|
-
function b() {
|
|
22
|
-
return Date.now();
|
|
23
|
-
}
|
|
24
|
-
function S(e) {
|
|
25
|
-
const t = a();
|
|
26
|
-
let r;
|
|
27
|
-
return t.getComputedStyle && (r = t.getComputedStyle(e, null)), !r && e.currentStyle && (r = e.currentStyle), r || (r = e.style), r;
|
|
28
|
-
}
|
|
29
|
-
function C(e, t = "x") {
|
|
30
|
-
const r = a();
|
|
31
|
-
let n, o, i;
|
|
32
|
-
const l = S(e);
|
|
33
|
-
return r.WebKitCSSMatrix ? (o = l.transform || l.webkitTransform, o.split(",").length > 6 && (o = o.split(", ").map((s) => s.replace(",", ".")).join(", ")), i = new r.WebKitCSSMatrix(o === "none" ? "" : o)) : (i = l.MozTransform || l.OTransform || l.MsTransform || l.msTransform || l.transform || l.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), n = i.toString().split(",")), t === "x" && (r.WebKitCSSMatrix ? o = i.m41 : n.length === 16 ? o = parseFloat(n[12]) : o = parseFloat(n[4])), t === "y" && (r.WebKitCSSMatrix ? o = i.m42 : n.length === 16 ? o = parseFloat(n[13]) : o = parseFloat(n[5])), o || 0;
|
|
34
|
-
}
|
|
35
|
-
function d(e) {
|
|
36
|
-
return typeof e == "object" && e !== null && e.constructor && Object.prototype.toString.call(e).slice(8, -1) === "Object";
|
|
37
|
-
}
|
|
38
|
-
function T(e) {
|
|
39
|
-
return typeof window != "undefined" && typeof window.HTMLElement != "undefined" ? e instanceof HTMLElement : e && (e.nodeType === 1 || e.nodeType === 11);
|
|
40
|
-
}
|
|
41
|
-
function y(...e) {
|
|
42
|
-
const t = Object(e[0]);
|
|
43
|
-
for (let r = 1; r < e.length; r += 1) {
|
|
44
|
-
const n = e[r];
|
|
45
|
-
if (n != null && !T(n)) {
|
|
46
|
-
const o = Object.keys(Object(n)).filter((i) => i !== "__proto__" && i !== "constructor" && i !== "prototype");
|
|
47
|
-
for (let i = 0, l = o.length; i < l; i += 1) {
|
|
48
|
-
const s = o[i], c = Object.getOwnPropertyDescriptor(n, s);
|
|
49
|
-
c !== void 0 && c.enumerable && (d(t[s]) && d(n[s]) ? n[s].__swiper__ ? t[s] = n[s] : y(t[s], n[s]) : !d(t[s]) && d(n[s]) ? (t[s] = {}, n[s].__swiper__ ? t[s] = n[s] : y(t[s], n[s])) : t[s] = n[s]);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
return t;
|
|
54
|
-
}
|
|
55
|
-
function O(e, t, r) {
|
|
56
|
-
e.style.setProperty(t, r);
|
|
57
|
-
}
|
|
58
|
-
function j({
|
|
59
|
-
swiper: e,
|
|
60
|
-
targetPosition: t,
|
|
61
|
-
side: r
|
|
62
|
-
}) {
|
|
63
|
-
const n = a(), o = -e.translate;
|
|
64
|
-
let i = null, l;
|
|
65
|
-
const s = e.params.speed;
|
|
66
|
-
e.wrapperEl.style.scrollSnapType = "none", n.cancelAnimationFrame(e.cssModeFrameID);
|
|
67
|
-
const c = t > o ? "next" : "prev", p = (f, m) => c === "next" && f >= m || c === "prev" && f <= m, h = () => {
|
|
68
|
-
l = (/* @__PURE__ */ new Date()).getTime(), i === null && (i = l);
|
|
69
|
-
const f = Math.max(Math.min((l - i) / s, 1), 0), m = 0.5 - Math.cos(f * Math.PI) / 2;
|
|
70
|
-
let u = o + m * (t - o);
|
|
71
|
-
if (p(u, t) && (u = t), e.wrapperEl.scrollTo({
|
|
72
|
-
[r]: u
|
|
73
|
-
}), p(u, t)) {
|
|
74
|
-
e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.scrollSnapType = "", setTimeout(() => {
|
|
75
|
-
e.wrapperEl.style.overflow = "", e.wrapperEl.scrollTo({
|
|
76
|
-
[r]: u
|
|
77
|
-
});
|
|
78
|
-
}), n.cancelAnimationFrame(e.cssModeFrameID);
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
e.cssModeFrameID = n.requestAnimationFrame(h);
|
|
82
|
-
};
|
|
83
|
-
h();
|
|
84
|
-
}
|
|
85
|
-
function F(e, t = "") {
|
|
86
|
-
const r = a(), n = [...e.children];
|
|
87
|
-
return r.HTMLSlotElement && e instanceof HTMLSlotElement && n.push(...e.assignedElements()), t ? n.filter((o) => o.matches(t)) : n;
|
|
88
|
-
}
|
|
89
|
-
function g(e, t) {
|
|
90
|
-
const r = [t];
|
|
91
|
-
for (; r.length > 0; ) {
|
|
92
|
-
const n = r.shift();
|
|
93
|
-
if (e === n)
|
|
94
|
-
return !0;
|
|
95
|
-
r.push(...n.children, ...n.shadowRoot ? n.shadowRoot.children : [], ...n.assignedElements ? n.assignedElements() : []);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
function H(e, t) {
|
|
99
|
-
const r = a();
|
|
100
|
-
let n = t.contains(e);
|
|
101
|
-
return !n && r.HTMLSlotElement && t instanceof HTMLSlotElement && (n = [...t.assignedElements()].includes(e), n || (n = g(e, t))), n;
|
|
102
|
-
}
|
|
103
|
-
function L(e) {
|
|
104
|
-
try {
|
|
105
|
-
console.warn(e);
|
|
106
|
-
return;
|
|
107
|
-
} catch (t) {
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
function _(e, t = []) {
|
|
111
|
-
const r = document.createElement(e);
|
|
112
|
-
return r.classList.add(...Array.isArray(t) ? t : w(t)), r;
|
|
113
|
-
}
|
|
114
|
-
function v(e, t) {
|
|
115
|
-
const r = [];
|
|
116
|
-
for (; e.previousElementSibling; ) {
|
|
117
|
-
const n = e.previousElementSibling;
|
|
118
|
-
t ? n.matches(t) && r.push(n) : r.push(n), e = n;
|
|
119
|
-
}
|
|
120
|
-
return r;
|
|
121
|
-
}
|
|
122
|
-
function A(e, t) {
|
|
123
|
-
const r = [];
|
|
124
|
-
for (; e.nextElementSibling; ) {
|
|
125
|
-
const n = e.nextElementSibling;
|
|
126
|
-
t ? n.matches(t) && r.push(n) : r.push(n), e = n;
|
|
127
|
-
}
|
|
128
|
-
return r;
|
|
129
|
-
}
|
|
130
|
-
function P(e, t) {
|
|
131
|
-
return a().getComputedStyle(e, null).getPropertyValue(t);
|
|
132
|
-
}
|
|
133
|
-
function I(e) {
|
|
134
|
-
let t = e, r;
|
|
135
|
-
if (t) {
|
|
136
|
-
for (r = 0; (t = t.previousSibling) !== null; )
|
|
137
|
-
t.nodeType === 1 && (r += 1);
|
|
138
|
-
return r;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
function W(e, t) {
|
|
142
|
-
const r = [];
|
|
143
|
-
let n = e.parentElement;
|
|
144
|
-
for (; n; )
|
|
145
|
-
t ? n.matches(t) && r.push(n) : r.push(n), n = n.parentElement;
|
|
146
|
-
return r;
|
|
147
|
-
}
|
|
148
|
-
function k(e, t, r) {
|
|
149
|
-
const n = a();
|
|
150
|
-
return e[t === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(n.getComputedStyle(e, null).getPropertyValue(t === "width" ? "margin-right" : "margin-top")) + parseFloat(n.getComputedStyle(e, null).getPropertyValue(t === "width" ? "margin-left" : "margin-bottom"));
|
|
151
|
-
}
|
|
152
|
-
function D(e) {
|
|
153
|
-
return (Array.isArray(e) ? e : [e]).filter((t) => !!t);
|
|
154
|
-
}
|
|
155
|
-
function K(e, t = "") {
|
|
156
|
-
typeof trustedTypes != "undefined" ? e.innerHTML = trustedTypes.createPolicy("html", {
|
|
157
|
-
createHTML: (r) => r
|
|
158
|
-
}).createHTML(t) : e.innerHTML = t;
|
|
159
|
-
}
|
|
160
|
-
export {
|
|
161
|
-
O as b,
|
|
162
|
-
_ as c,
|
|
163
|
-
W as d,
|
|
164
|
-
F as e,
|
|
165
|
-
b as h,
|
|
166
|
-
k as i,
|
|
167
|
-
I as j,
|
|
168
|
-
w as k,
|
|
169
|
-
C as l,
|
|
170
|
-
D as m,
|
|
171
|
-
x as n,
|
|
172
|
-
d as p,
|
|
173
|
-
P as q,
|
|
174
|
-
A as r,
|
|
175
|
-
K as s,
|
|
176
|
-
v as t,
|
|
177
|
-
j as u,
|
|
178
|
-
L as v,
|
|
179
|
-
H as w,
|
|
180
|
-
y as x,
|
|
181
|
-
M as y
|
|
182
|
-
};
|
package/dist/index.esm51.js
DELETED
package/dist/index.esm52.js
DELETED
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
function o(e) {
|
|
2
|
-
return e !== null && typeof e == "object" && "constructor" in e && e.constructor === Object;
|
|
3
|
-
}
|
|
4
|
-
function r(e = {}, n = {}) {
|
|
5
|
-
const i = ["__proto__", "constructor", "prototype"];
|
|
6
|
-
Object.keys(n).filter((t) => i.indexOf(t) < 0).forEach((t) => {
|
|
7
|
-
typeof e[t] == "undefined" ? e[t] = n[t] : o(n[t]) && o(e[t]) && Object.keys(n[t]).length > 0 && r(e[t], n[t]);
|
|
8
|
-
});
|
|
9
|
-
}
|
|
10
|
-
const u = {
|
|
11
|
-
body: {},
|
|
12
|
-
addEventListener() {
|
|
13
|
-
},
|
|
14
|
-
removeEventListener() {
|
|
15
|
-
},
|
|
16
|
-
activeElement: {
|
|
17
|
-
blur() {
|
|
18
|
-
},
|
|
19
|
-
nodeName: ""
|
|
20
|
-
},
|
|
21
|
-
querySelector() {
|
|
22
|
-
return null;
|
|
23
|
-
},
|
|
24
|
-
querySelectorAll() {
|
|
25
|
-
return [];
|
|
26
|
-
},
|
|
27
|
-
getElementById() {
|
|
28
|
-
return null;
|
|
29
|
-
},
|
|
30
|
-
createEvent() {
|
|
31
|
-
return {
|
|
32
|
-
initEvent() {
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
},
|
|
36
|
-
createElement() {
|
|
37
|
-
return {
|
|
38
|
-
children: [],
|
|
39
|
-
childNodes: [],
|
|
40
|
-
style: {},
|
|
41
|
-
setAttribute() {
|
|
42
|
-
},
|
|
43
|
-
getElementsByTagName() {
|
|
44
|
-
return [];
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
},
|
|
48
|
-
createElementNS() {
|
|
49
|
-
return {};
|
|
50
|
-
},
|
|
51
|
-
importNode() {
|
|
52
|
-
return null;
|
|
53
|
-
},
|
|
54
|
-
location: {
|
|
55
|
-
hash: "",
|
|
56
|
-
host: "",
|
|
57
|
-
hostname: "",
|
|
58
|
-
href: "",
|
|
59
|
-
origin: "",
|
|
60
|
-
pathname: "",
|
|
61
|
-
protocol: "",
|
|
62
|
-
search: ""
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
function s() {
|
|
66
|
-
const e = typeof document != "undefined" ? document : {};
|
|
67
|
-
return r(e, u), e;
|
|
68
|
-
}
|
|
69
|
-
const c = {
|
|
70
|
-
document: u,
|
|
71
|
-
navigator: {
|
|
72
|
-
userAgent: ""
|
|
73
|
-
},
|
|
74
|
-
location: {
|
|
75
|
-
hash: "",
|
|
76
|
-
host: "",
|
|
77
|
-
hostname: "",
|
|
78
|
-
href: "",
|
|
79
|
-
origin: "",
|
|
80
|
-
pathname: "",
|
|
81
|
-
protocol: "",
|
|
82
|
-
search: ""
|
|
83
|
-
},
|
|
84
|
-
history: {
|
|
85
|
-
replaceState() {
|
|
86
|
-
},
|
|
87
|
-
pushState() {
|
|
88
|
-
},
|
|
89
|
-
go() {
|
|
90
|
-
},
|
|
91
|
-
back() {
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
CustomEvent: function() {
|
|
95
|
-
return this;
|
|
96
|
-
},
|
|
97
|
-
addEventListener() {
|
|
98
|
-
},
|
|
99
|
-
removeEventListener() {
|
|
100
|
-
},
|
|
101
|
-
getComputedStyle() {
|
|
102
|
-
return {
|
|
103
|
-
getPropertyValue() {
|
|
104
|
-
return "";
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
},
|
|
108
|
-
Image() {
|
|
109
|
-
},
|
|
110
|
-
Date() {
|
|
111
|
-
},
|
|
112
|
-
screen: {},
|
|
113
|
-
setTimeout() {
|
|
114
|
-
},
|
|
115
|
-
clearTimeout() {
|
|
116
|
-
},
|
|
117
|
-
matchMedia() {
|
|
118
|
-
return {};
|
|
119
|
-
},
|
|
120
|
-
requestAnimationFrame(e) {
|
|
121
|
-
return typeof setTimeout == "undefined" ? (e(), null) : setTimeout(e, 0);
|
|
122
|
-
},
|
|
123
|
-
cancelAnimationFrame(e) {
|
|
124
|
-
typeof setTimeout != "undefined" && clearTimeout(e);
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
function a() {
|
|
128
|
-
const e = typeof window != "undefined" ? window : {};
|
|
129
|
-
return r(e, c), e;
|
|
130
|
-
}
|
|
131
|
-
export {
|
|
132
|
-
a,
|
|
133
|
-
s as g
|
|
134
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare const containerRecipe: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
2
|
-
maxWidth: {
|
|
3
|
-
sm: {
|
|
4
|
-
maxWidth: "640px";
|
|
5
|
-
};
|
|
6
|
-
md: {
|
|
7
|
-
maxWidth: "768px";
|
|
8
|
-
};
|
|
9
|
-
lg: {
|
|
10
|
-
maxWidth: "1024px";
|
|
11
|
-
};
|
|
12
|
-
xl: {
|
|
13
|
-
maxWidth: "1280px";
|
|
14
|
-
};
|
|
15
|
-
full: {
|
|
16
|
-
maxWidth: "100%";
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
}>;
|
|
20
|
-
//# sourceMappingURL=Container.css.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Container.css.d.ts","sourceRoot":"","sources":["../../../src/layout/Container/Container.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;EA0B1B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Stack.css.d.ts","sourceRoot":"","sources":["../../../src/layout/Stack/Stack.css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,QAGpB,CAAA"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export declare const badgeRecipe: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
2
|
-
variant: {
|
|
3
|
-
brand: {
|
|
4
|
-
backgroundColor: `var(--${string})`;
|
|
5
|
-
color: `var(--${string})`;
|
|
6
|
-
};
|
|
7
|
-
success: {
|
|
8
|
-
backgroundColor: `var(--${string})`;
|
|
9
|
-
color: `var(--${string})`;
|
|
10
|
-
};
|
|
11
|
-
warning: {
|
|
12
|
-
backgroundColor: `var(--${string})`;
|
|
13
|
-
color: `var(--${string})`;
|
|
14
|
-
};
|
|
15
|
-
danger: {
|
|
16
|
-
backgroundColor: `var(--${string})`;
|
|
17
|
-
color: `var(--${string})`;
|
|
18
|
-
};
|
|
19
|
-
neutral: {
|
|
20
|
-
backgroundColor: `var(--${string})`;
|
|
21
|
-
color: `var(--${string})`;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
size: {
|
|
25
|
-
sm: {
|
|
26
|
-
fontSize: "11px";
|
|
27
|
-
paddingBlock: "2px";
|
|
28
|
-
paddingInline: "6px";
|
|
29
|
-
};
|
|
30
|
-
md: {
|
|
31
|
-
fontSize: "13px";
|
|
32
|
-
paddingBlock: "4px";
|
|
33
|
-
paddingInline: `var(--${string})`;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
}>;
|
|
37
|
-
//# sourceMappingURL=Badge.css.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.css.d.ts","sourceRoot":"","sources":["../../../src/primitives/Badge/Badge.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmDtB,CAAA"}
|