@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.
Files changed (159) hide show
  1. package/README.md +171 -0
  2. package/dist/commerce/ProductCard/ProductCard.css.d.ts +23 -0
  3. package/dist/commerce/ProductCard/ProductCard.css.d.ts.map +1 -0
  4. package/dist/commerce/ProductCard/ProductCard.d.ts +30 -0
  5. package/dist/commerce/ProductCard/ProductCard.d.ts.map +1 -0
  6. package/dist/commerce/ProductCard/index.d.ts +3 -0
  7. package/dist/commerce/ProductCard/index.d.ts.map +1 -0
  8. package/dist/commerce/ProductShelf/ProductShelf.css.d.ts +3 -0
  9. package/dist/commerce/ProductShelf/ProductShelf.css.d.ts.map +1 -0
  10. package/dist/commerce/ProductShelf/ProductShelf.d.ts +22 -0
  11. package/dist/commerce/ProductShelf/ProductShelf.d.ts.map +1 -0
  12. package/dist/commerce/ProductShelf/index.d.ts +3 -0
  13. package/dist/commerce/ProductShelf/index.d.ts.map +1 -0
  14. package/dist/components/Card/Card.css.d.ts +30 -0
  15. package/dist/components/Card/Card.css.d.ts.map +1 -0
  16. package/dist/components/Card/Card.d.ts +13 -0
  17. package/dist/components/Card/Card.d.ts.map +1 -0
  18. package/dist/components/Card/index.d.ts +3 -0
  19. package/dist/components/Card/index.d.ts.map +1 -0
  20. package/dist/components/Carousel/Carousel.css.d.ts +8 -0
  21. package/dist/components/Carousel/Carousel.css.d.ts.map +1 -0
  22. package/dist/components/Carousel/Carousel.d.ts +23 -0
  23. package/dist/components/Carousel/Carousel.d.ts.map +1 -0
  24. package/dist/components/Carousel/Carousel.js +35 -0
  25. package/dist/components/Carousel/Carousel.js.map +1 -0
  26. package/dist/components/Carousel/index.d.ts +3 -0
  27. package/dist/components/Carousel/index.d.ts.map +1 -0
  28. package/dist/components/Carousel/index.js +2 -0
  29. package/dist/components/Carousel/index.js.map +1 -0
  30. package/dist/index.cjs.js +1 -0
  31. package/dist/index.cjs10.js +1 -0
  32. package/dist/index.cjs11.js +1 -0
  33. package/dist/index.cjs12.js +1 -0
  34. package/dist/index.cjs13.js +1 -0
  35. package/dist/index.cjs14.js +1 -0
  36. package/dist/index.cjs15.js +1 -0
  37. package/dist/index.cjs16.js +1 -0
  38. package/dist/index.cjs17.js +1 -0
  39. package/dist/index.cjs18.js +1 -0
  40. package/dist/index.cjs19.js +1 -0
  41. package/dist/index.cjs2.js +1 -0
  42. package/dist/index.cjs20.js +1 -0
  43. package/dist/index.cjs21.js +1 -0
  44. package/dist/index.cjs22.js +1 -0
  45. package/dist/index.cjs23.js +1 -0
  46. package/dist/index.cjs24.js +1 -0
  47. package/dist/index.cjs25.js +1 -0
  48. package/dist/index.cjs27.js +1 -0
  49. package/dist/index.cjs28.js +1 -0
  50. package/dist/index.cjs29.js +1 -0
  51. package/dist/index.cjs3.js +1 -0
  52. package/dist/index.cjs30.js +1 -0
  53. package/dist/index.cjs31.js +1 -0
  54. package/dist/index.cjs34.js +1 -0
  55. package/dist/index.cjs4.js +1 -0
  56. package/dist/index.cjs42.js +1 -0
  57. package/dist/index.cjs43.js +1 -0
  58. package/dist/index.cjs44.js +1 -0
  59. package/dist/index.cjs49.js +1 -0
  60. package/dist/index.cjs5.js +1 -0
  61. package/dist/index.cjs50.js +1 -0
  62. package/dist/index.cjs51.js +1 -0
  63. package/dist/index.cjs52.js +1 -0
  64. package/dist/index.cjs6.js +1 -0
  65. package/dist/index.cjs7.js +1 -0
  66. package/dist/index.cjs8.js +1 -0
  67. package/dist/index.cjs9.js +1 -0
  68. package/dist/index.d.ts +25 -0
  69. package/dist/index.d.ts.map +1 -0
  70. package/dist/index.esm.js +26 -0
  71. package/dist/index.esm10.js +54 -0
  72. package/dist/index.esm11.js +52 -0
  73. package/dist/index.esm12.js +25 -0
  74. package/dist/index.esm13.js +28 -0
  75. package/dist/index.esm14.js +8 -0
  76. package/dist/index.esm15.js +7 -0
  77. package/dist/index.esm16.js +8 -0
  78. package/dist/index.esm17.js +12 -0
  79. package/dist/index.esm18.js +11 -0
  80. package/dist/index.esm19.js +15 -0
  81. package/dist/index.esm2.js +8 -0
  82. package/dist/index.esm20.js +12 -0
  83. package/dist/index.esm21.js +136 -0
  84. package/dist/index.esm22.js +226 -0
  85. package/dist/index.esm23.js +130 -0
  86. package/dist/index.esm24.js +247 -0
  87. package/dist/index.esm25.js +11 -0
  88. package/dist/index.esm27.js +7 -0
  89. package/dist/index.esm28.js +26 -0
  90. package/dist/index.esm29.js +7 -0
  91. package/dist/index.esm3.js +49 -0
  92. package/dist/index.esm30.js +5 -0
  93. package/dist/index.esm31.js +1 -0
  94. package/dist/index.esm34.js +88 -0
  95. package/dist/index.esm4.js +35 -0
  96. package/dist/index.esm42.js +2028 -0
  97. package/dist/index.esm43.js +60 -0
  98. package/dist/index.esm44.js +191 -0
  99. package/dist/index.esm49.js +12 -0
  100. package/dist/index.esm5.js +100 -0
  101. package/dist/index.esm50.js +182 -0
  102. package/dist/index.esm51.js +6 -0
  103. package/dist/index.esm52.js +134 -0
  104. package/dist/index.esm6.js +61 -0
  105. package/dist/index.esm7.js +8 -0
  106. package/dist/index.esm8.js +58 -0
  107. package/dist/index.esm9.js +169 -0
  108. package/dist/layout/Container/Container.css.d.ts +20 -0
  109. package/dist/layout/Container/Container.css.d.ts.map +1 -0
  110. package/dist/layout/Container/Container.d.ts +8 -0
  111. package/dist/layout/Container/Container.d.ts.map +1 -0
  112. package/dist/layout/Container/index.d.ts +3 -0
  113. package/dist/layout/Container/index.d.ts.map +1 -0
  114. package/dist/layout/Stack/Stack.css.d.ts +2 -0
  115. package/dist/layout/Stack/Stack.css.d.ts.map +1 -0
  116. package/dist/layout/Stack/Stack.d.ts +10 -0
  117. package/dist/layout/Stack/Stack.d.ts.map +1 -0
  118. package/dist/layout/Stack/index.d.ts +3 -0
  119. package/dist/layout/Stack/index.d.ts.map +1 -0
  120. package/dist/primitives/Badge/Badge.css.d.ts +37 -0
  121. package/dist/primitives/Badge/Badge.css.d.ts.map +1 -0
  122. package/dist/primitives/Badge/Badge.d.ts +8 -0
  123. package/dist/primitives/Badge/Badge.d.ts.map +1 -0
  124. package/dist/primitives/Badge/index.d.ts +3 -0
  125. package/dist/primitives/Badge/index.d.ts.map +1 -0
  126. package/dist/primitives/Button/Button.css.d.ts +60 -0
  127. package/dist/primitives/Button/Button.css.d.ts.map +1 -0
  128. package/dist/primitives/Button/Button.d.ts +16 -0
  129. package/dist/primitives/Button/Button.d.ts.map +1 -0
  130. package/dist/primitives/Button/index.d.ts +3 -0
  131. package/dist/primitives/Button/index.d.ts.map +1 -0
  132. package/dist/primitives/Checkbox/Checkbox.css.d.ts +9 -0
  133. package/dist/primitives/Checkbox/Checkbox.css.d.ts.map +1 -0
  134. package/dist/primitives/Checkbox/Checkbox.d.ts +11 -0
  135. package/dist/primitives/Checkbox/Checkbox.d.ts.map +1 -0
  136. package/dist/primitives/Checkbox/index.d.ts +3 -0
  137. package/dist/primitives/Checkbox/index.d.ts.map +1 -0
  138. package/dist/primitives/Input/Input.css.d.ts +11 -0
  139. package/dist/primitives/Input/Input.css.d.ts.map +1 -0
  140. package/dist/primitives/Input/Input.d.ts +18 -0
  141. package/dist/primitives/Input/Input.d.ts.map +1 -0
  142. package/dist/primitives/Input/index.d.ts +3 -0
  143. package/dist/primitives/Input/index.d.ts.map +1 -0
  144. package/dist/primitives/Select/Select.css.d.ts +8 -0
  145. package/dist/primitives/Select/Select.css.d.ts.map +1 -0
  146. package/dist/primitives/Select/Select.d.ts +18 -0
  147. package/dist/primitives/Select/Select.d.ts.map +1 -0
  148. package/dist/primitives/Select/index.d.ts +3 -0
  149. package/dist/primitives/Select/index.d.ts.map +1 -0
  150. package/dist/primitives/Tag/Tag.css.d.ts +16 -0
  151. package/dist/primitives/Tag/Tag.css.d.ts.map +1 -0
  152. package/dist/primitives/Tag/Tag.d.ts +7 -0
  153. package/dist/primitives/Tag/Tag.d.ts.map +1 -0
  154. package/dist/primitives/Tag/index.d.ts +3 -0
  155. package/dist/primitives/Tag/index.d.ts.map +1 -0
  156. package/dist/styles.css +1 -0
  157. package/dist/styles.d.ts +1 -0
  158. package/dist/styles.d.ts.map +1 -0
  159. package/package.json +61 -0
@@ -0,0 +1,60 @@
1
+ import { e, p as m, i as u, n as h, a as v, b as p } from "./index.esm44.js";
2
+ import { d as O } from "./index.esm42.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] > "u" || (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
+ };
@@ -0,0 +1,191 @@
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] > "u" ? 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 > "u" && typeof e.navigation.prevEl > "u";
133
+ }
134
+ function B(e = {}) {
135
+ return e.pagination && typeof e.pagination.el > "u";
136
+ }
137
+ function E(e = {}) {
138
+ return e.scrollbar && typeof e.scrollbar.el > "u";
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
+ };
@@ -0,0 +1,12 @@
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
+ };
@@ -0,0 +1,100 @@
1
+ import { jsxs as d, jsx as e, Fragment as w } from "react/jsx-runtime";
2
+ import { useRef as x } from "react";
3
+ import g from "./index.esm21.js";
4
+ import y from "./index.esm22.js";
5
+ import $ from "./index.esm23.js";
6
+ import { Swiper as j, SwiperSlide as B } from "./index.esm24.js";
7
+ import { dotActive as L, dot as N, arrowBtn as c, arrowPrev as P, arrowNext as S, dots as A } from "./index.esm25.js";
8
+ /* empty css */
9
+ const C = { sm: 8, md: 16, lg: 24, xl: 32 };
10
+ function O({
11
+ children: p,
12
+ autoplay: s = !1,
13
+ autoplayMs: u = 4e3,
14
+ showArrows: i = !0,
15
+ showDots: o = !0,
16
+ loop: m = !1,
17
+ slidesPerView: t = 1,
18
+ slidesPerGroup: f,
19
+ gap: a,
20
+ onSlideChange: n
21
+ }) {
22
+ const v = x(null), b = a ? C[a] ?? 16 : 0, h = typeof t == "object" ? {
23
+ 0: { slidesPerView: t.mobile },
24
+ 640: { slidesPerView: t.tablet },
25
+ 1024: { slidesPerView: t.desktop }
26
+ } : void 0, k = typeof t == "number" ? t : void 0;
27
+ return /* @__PURE__ */ d("div", { children: [
28
+ /* @__PURE__ */ e(
29
+ j,
30
+ {
31
+ modules: [
32
+ ...i ? [g] : [],
33
+ ...o ? [y] : [],
34
+ ...s ? [$] : []
35
+ ],
36
+ slidesPerView: k,
37
+ breakpoints: h,
38
+ spaceBetween: b,
39
+ slidesPerGroup: f,
40
+ loop: m,
41
+ autoplay: s ? { delay: u, disableOnInteraction: !1 } : !1,
42
+ pagination: o ? {
43
+ el: ".swiper-custom-dots",
44
+ clickable: !0,
45
+ bulletClass: N,
46
+ bulletActiveClass: L,
47
+ renderBullet: (r, l) => `<button class="${l}" />`
48
+ } : !1,
49
+ navigation: i ? { prevEl: ".swiper-custom-prev", nextEl: ".swiper-custom-next" } : !1,
50
+ onSwiper: (r) => {
51
+ v.current = r;
52
+ },
53
+ onSlideChange: (r) => n == null ? void 0 : n(r.realIndex),
54
+ children: p.map((r, l) => /* @__PURE__ */ e(B, { children: r }, l))
55
+ }
56
+ ),
57
+ i && /* @__PURE__ */ d(w, { children: [
58
+ /* @__PURE__ */ e(
59
+ "button",
60
+ {
61
+ type: "button",
62
+ className: `${c} ${P} swiper-custom-prev`,
63
+ "aria-label": "Slide anterior",
64
+ children: /* @__PURE__ */ e("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ e(
65
+ "path",
66
+ {
67
+ d: "M10 12L6 8l4-4",
68
+ stroke: "currentColor",
69
+ strokeWidth: "1.5",
70
+ strokeLinecap: "round",
71
+ strokeLinejoin: "round"
72
+ }
73
+ ) })
74
+ }
75
+ ),
76
+ /* @__PURE__ */ e(
77
+ "button",
78
+ {
79
+ type: "button",
80
+ className: `${c} ${S} swiper-custom-next`,
81
+ "aria-label": "Slide siguiente",
82
+ children: /* @__PURE__ */ e("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ e(
83
+ "path",
84
+ {
85
+ d: "M6 4l4 4-4 4",
86
+ stroke: "currentColor",
87
+ strokeWidth: "1.5",
88
+ strokeLinecap: "round",
89
+ strokeLinejoin: "round"
90
+ }
91
+ ) })
92
+ }
93
+ )
94
+ ] }),
95
+ o && /* @__PURE__ */ e("div", { className: `swiper-custom-dots ${A}` })
96
+ ] });
97
+ }
98
+ export {
99
+ O as Carousel
100
+ };
@@ -0,0 +1,182 @@
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 {
11
+ }
12
+ try {
13
+ delete t[r];
14
+ } catch {
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 < "u" && typeof window.HTMLElement < "u" ? 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 {
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 < "u" ? 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
+ };
@@ -0,0 +1,6 @@
1
+ function r(e = "") {
2
+ return `.${e.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g, "\\$1").replace(/ /g, ".")}`;
3
+ }
4
+ export {
5
+ r as c
6
+ };
@@ -0,0 +1,134 @@
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] > "u" ? 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 < "u" ? 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 > "u" ? (e(), null) : setTimeout(e, 0);
122
+ },
123
+ cancelAnimationFrame(e) {
124
+ typeof setTimeout > "u" || clearTimeout(e);
125
+ }
126
+ };
127
+ function a() {
128
+ const e = typeof window < "u" ? window : {};
129
+ return r(e, c), e;
130
+ }
131
+ export {
132
+ a,
133
+ s as g
134
+ };