@danielcruzcode/ui-core 0.1.0 → 0.1.1

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 (70) hide show
  1. package/dist/components/Carousel/Carousel.d.ts +2 -3
  2. package/dist/index.cjs11.js +1 -1
  3. package/dist/index.cjs12.js +1 -1
  4. package/dist/index.cjs13.js +1 -1
  5. package/dist/index.cjs14.js +1 -1
  6. package/dist/index.cjs15.js +1 -1
  7. package/dist/index.cjs16.js +1 -1
  8. package/dist/index.cjs18.js +1 -1
  9. package/dist/index.cjs19.js +1 -1
  10. package/dist/index.cjs2.js +1 -1
  11. package/dist/index.cjs20.js +1 -1
  12. package/dist/index.cjs21.js +1 -1
  13. package/dist/index.cjs22.js +1 -1
  14. package/dist/index.cjs23.js +1 -1
  15. package/dist/index.cjs25.js +1 -1
  16. package/dist/index.cjs26.js +1 -0
  17. package/dist/index.cjs28.js +1 -1
  18. package/dist/index.cjs29.js +1 -1
  19. package/dist/index.cjs3.js +1 -1
  20. package/dist/index.cjs30.js +1 -1
  21. package/dist/index.cjs33.js +1 -0
  22. package/dist/index.cjs34.js +1 -1
  23. package/dist/index.cjs4.js +1 -1
  24. package/dist/index.cjs40.js +1 -0
  25. package/dist/{index.cjs43.js → index.cjs41.js} +1 -1
  26. package/dist/index.cjs42.js +1 -1
  27. package/dist/index.cjs5.js +1 -1
  28. package/dist/index.cjs7.js +1 -1
  29. package/dist/index.cjs8.js +1 -1
  30. package/dist/index.cjs9.js +1 -1
  31. package/dist/index.esm11.js +1 -1
  32. package/dist/index.esm12.js +1 -1
  33. package/dist/index.esm13.js +1 -1
  34. package/dist/index.esm14.js +3 -4
  35. package/dist/index.esm15.js +9 -3
  36. package/dist/index.esm16.js +22 -4
  37. package/dist/index.esm18.js +4 -7
  38. package/dist/index.esm19.js +134 -13
  39. package/dist/index.esm2.js +1 -1
  40. package/dist/index.esm20.js +224 -10
  41. package/dist/index.esm21.js +116 -122
  42. package/dist/index.esm22.js +234 -213
  43. package/dist/index.esm23.js +9 -128
  44. package/dist/index.esm25.js +3 -7
  45. package/dist/index.esm26.js +15 -0
  46. package/dist/index.esm28.js +7 -22
  47. package/dist/index.esm29.js +2 -4
  48. package/dist/index.esm3.js +1 -1
  49. package/dist/index.esm30.js +4 -2
  50. package/dist/index.esm33.js +88 -0
  51. package/dist/index.esm34.js +1 -88
  52. package/dist/index.esm4.js +1 -1
  53. package/dist/index.esm40.js +2028 -0
  54. package/dist/{index.esm43.js → index.esm41.js} +2 -2
  55. package/dist/index.esm42.js +180 -2017
  56. package/dist/index.esm5.js +5 -5
  57. package/dist/index.esm7.js +1 -1
  58. package/dist/index.esm8.js +1 -1
  59. package/dist/index.esm9.js +1 -1
  60. package/package.json +3 -3
  61. package/dist/components/Carousel/Carousel.js +0 -35
  62. package/dist/components/Carousel/Carousel.js.map +0 -1
  63. package/dist/components/Carousel/index.js +0 -2
  64. package/dist/components/Carousel/index.js.map +0 -1
  65. package/dist/index.cjs24.js +0 -1
  66. package/dist/index.cjs31.js +0 -1
  67. package/dist/index.cjs44.js +0 -1
  68. package/dist/index.esm24.js +0 -247
  69. package/dist/index.esm31.js +0 -1
  70. package/dist/index.esm44.js +0 -191
@@ -1,10 +1,10 @@
1
1
  import { jsxs as d, jsx as e, Fragment as w } from "react/jsx-runtime";
2
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";
3
+ import g from "./index.esm19.js";
4
+ import y from "./index.esm20.js";
5
+ import $ from "./index.esm21.js";
6
+ import { Swiper as j, SwiperSlide as B } from "./index.esm22.js";
7
+ import { dotActive as L, dot as N, arrowBtn as c, arrowPrev as P, arrowNext as S, dots as A } from "./index.esm23.js";
8
8
  /* empty css */
9
9
  const C = { sm: 8, md: 16, lg: 24, xl: 32 };
10
10
  function O({
@@ -1,5 +1,5 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { containerRecipe as n } from "./index.esm29.js";
2
+ import { containerRecipe as n } from "./index.esm30.js";
3
3
  function m({ maxWidth: r = "xl", children: o, as: e = "div" }) {
4
4
  return /* @__PURE__ */ i(e, { className: n({ maxWidth: r }), children: o });
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
2
  import { useId as W } from "react";
3
- import { wrapper as w, label as B, requiredMark as k, iconSlot as u, input as y, errorText as D, hint as E, inputWrapper as F, inputWrapperError as M, inputWrapperDisabled as S } from "./index.esm19.js";
3
+ import { wrapper as w, label as B, requiredMark as k, iconSlot as u, input as y, errorText as D, hint as E, inputWrapper as F, inputWrapperError as M, inputWrapperDisabled as S } from "./index.esm26.js";
4
4
  function A({
5
5
  label: t,
6
6
  placeholder: h,
@@ -1,5 +1,5 @@
1
1
  import { jsx as e, jsxs as a } from "react/jsx-runtime";
2
- import { imageWrapper as j, image as M, badgeOverlay as O, wishlistBtn as F, unavailableOverlay as I, unavailableText as q, body as V, title as _, subtitle as E, starsWrapper as B, reviewCount as G, priceWrapper as H, price as J, originalPrice as K, installments as R, root as T, skeletonImage as U, skeletonLine as h, skeletonBtn as X, footer as Y, quickViewBtn as Z } from "./index.esm28.js";
2
+ import { imageWrapper as j, image as M, badgeOverlay as O, wishlistBtn as F, unavailableOverlay as I, unavailableText as q, body as V, title as _, subtitle as E, starsWrapper as B, reviewCount as G, priceWrapper as H, price as J, originalPrice as K, installments as R, root as T, skeletonImage as U, skeletonLine as h, skeletonBtn as X, footer as Y, quickViewBtn as Z } from "./index.esm16.js";
3
3
  import { Badge as x } from "./index.esm2.js";
4
4
  import { Card as P } from "./index.esm4.js";
5
5
  import { Button as Q } from "./index.esm3.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danielcruzcode/ui-core",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -34,8 +34,8 @@
34
34
  "dist/styles.css"
35
35
  ],
36
36
  "peerDependencies": {
37
- "react": ">=18",
38
- "react-dom": ">=18"
37
+ "react": ">=16",
38
+ "react-dom": ">=16"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/react": "^18.3.18",
@@ -1,35 +0,0 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useRef } from 'react';
3
- import { Autoplay, Navigation, Pagination } from 'swiper/modules';
4
- import { Swiper, SwiperSlide } from 'swiper/react';
5
- import { arrowBtn, arrowNext, arrowPrev, dot, dotActive, dots as dotsCls } from './Carousel.css';
6
- import 'swiper/css';
7
- const GAP_PX = { sm: 8, md: 16, lg: 24, xl: 32 };
8
- export function Carousel({ children, autoplay = false, autoplayMs = 4000, showArrows = true, showDots = true, loop = false, slidesPerView = 1, slidesPerGroup, gap, onSlideChange, }) {
9
- const swiperRef = useRef(null);
10
- const spaceBetween = gap ? (GAP_PX[gap] ?? 16) : 0;
11
- const breakpoints = typeof slidesPerView === 'object'
12
- ? {
13
- 0: { slidesPerView: slidesPerView.mobile },
14
- 640: { slidesPerView: slidesPerView.tablet },
15
- 1024: { slidesPerView: slidesPerView.desktop },
16
- }
17
- : undefined;
18
- const spv = typeof slidesPerView === 'number' ? slidesPerView : undefined;
19
- return (_jsxs("div", { children: [_jsx(Swiper, { modules: [
20
- ...(showArrows ? [Navigation] : []),
21
- ...(showDots ? [Pagination] : []),
22
- ...(autoplay ? [Autoplay] : []),
23
- ], slidesPerView: spv, breakpoints: breakpoints, spaceBetween: spaceBetween, slidesPerGroup: slidesPerGroup, loop: loop, autoplay: autoplay ? { delay: autoplayMs, disableOnInteraction: false } : false, pagination: showDots
24
- ? {
25
- el: '.swiper-custom-dots',
26
- clickable: true,
27
- bulletClass: dot,
28
- bulletActiveClass: dotActive,
29
- renderBullet: (_i, cls) => `<button class="${cls}" />`,
30
- }
31
- : false, navigation: showArrows ? { prevEl: '.swiper-custom-prev', nextEl: '.swiper-custom-next' } : false, onSwiper: (swiper) => {
32
- swiperRef.current = swiper;
33
- }, onSlideChange: (swiper) => onSlideChange?.(swiper.realIndex), children: children.map((child, i) => (_jsx(SwiperSlide, { children: child }, i))) }), showArrows && (_jsxs(_Fragment, { children: [_jsx("button", { type: "button", className: `${arrowBtn} ${arrowPrev} swiper-custom-prev`, "aria-label": "Slide anterior", children: _jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: _jsx("path", { d: "M10 12L6 8l4-4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }) }), _jsx("button", { type: "button", className: `${arrowBtn} ${arrowNext} swiper-custom-next`, "aria-label": "Slide siguiente", children: _jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: _jsx("path", { d: "M6 4l4 4-4 4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }) })] })), showDots && _jsx("div", { className: `swiper-custom-dots ${dotsCls}` })] }));
34
- }
35
- //# sourceMappingURL=Carousel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Carousel.js","sourceRoot":"","sources":["../../../src/components/Carousel/Carousel.tsx"],"names":[],"mappings":"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"}
@@ -1,2 +0,0 @@
1
- export { Carousel } from './Carousel';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Carousel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),W=require("./index.cjs42.js"),k=require("./index.cjs43.js"),p=require("./index.cjs44.js");function L(){return L=Object.assign?Object.assign.bind():function(a){for(var n=1;n<arguments.length;n++){var s=arguments[n];for(var t in s)Object.prototype.hasOwnProperty.call(s,t)&&(a[t]=s[t])}return a},L.apply(this,arguments)}function q(a){return a.type&&a.type.displayName&&a.type.displayName.includes("SwiperSlide")}function A(a){const n=[];return e.Children.toArray(a).forEach(s=>{q(s)?n.push(s):s.props&&s.props.children&&A(s.props.children).forEach(t=>n.push(t))}),n}function G(a){const n=[],s={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return e.Children.toArray(a).forEach(t=>{if(q(t))n.push(t);else if(t.props&&t.props.slot&&s[t.props.slot])s[t.props.slot].push(t);else if(t.props&&t.props.children){const u=A(t.props.children);u.length>0?u.forEach(d=>n.push(d)):s["container-end"].push(t)}else s["container-end"].push(t)}),{slides:n,slots:s}}function J(a,n,s){if(!s)return null;const t=i=>{let o=i;return i<0?o=n.length+i:o>=n.length&&(o=o-n.length),o},u=a.isHorizontal()?{[a.rtlTranslate?"right":"left"]:`${s.offset}px`}:{top:`${s.offset}px`},{from:d,to:S}=s,w=a.params.loop?-n.length:0,C=a.params.loop?n.length*2:n.length,g=[];for(let i=w;i<C;i+=1)i>=d&&i<=S&&g.push(n[t(i)]);return g.map((i,o)=>e.cloneElement(i,{swiper:a,style:u,key:i.props.virtualIndex||i.key||`slide-${o}`}))}function P(a,n){return typeof window>"u"?e.useEffect(a,n):e.useLayoutEffect(a,n)}const T=e.createContext(null),K=e.createContext(null),V=e.forwardRef(({className:a,tag:n="div",wrapperTag:s="div",children:t,onSwiper:u,...d}={},S)=>{let w=!1;const[C,g]=e.useState("swiper"),[i,o]=e.useState(null),[b,O]=e.useState(!1),N=e.useRef(!1),m=e.useRef(null),r=e.useRef(null),h=e.useRef(null),$=e.useRef(null),c=e.useRef(null),x=e.useRef(null),R=e.useRef(null),_=e.useRef(null),{params:f,passedParams:z,rest:F,events:v}=k.g(d),{slides:y,slots:j}=G(t),B=()=>{O(!b)};Object.assign(f.on,{_containerClasses(l,E){g(E)}});const I=()=>{Object.assign(f.on,v),w=!0;const l={...f};if(delete l.wrapperClass,r.current=new W.S(l),r.current.virtual&&r.current.params.virtual.enabled){r.current.virtual.slides=y;const E={cache:!1,slides:y,renderExternal:o,renderExternalUpdate:!1};p.e(r.current.params.virtual,E),p.e(r.current.originalParams.virtual,E)}};m.current||I(),r.current&&r.current.on("_beforeBreakpoint",B);const D=()=>{w||!v||!r.current||Object.keys(v).forEach(l=>{r.current.on(l,v[l])})},H=()=>{!v||!r.current||Object.keys(v).forEach(l=>{r.current.off(l,v[l])})};e.useEffect(()=>()=>{r.current&&r.current.off("_beforeBreakpoint",B)}),e.useEffect(()=>{!N.current&&r.current&&(r.current.emitSlidesClasses(),N.current=!0)}),P(()=>{if(S&&(S.current=m.current),!!m.current)return r.current.destroyed&&I(),k.m({el:m.current,nextEl:c.current,prevEl:x.current,paginationEl:R.current,scrollbarEl:_.current,swiper:r.current},f),u&&!r.current.destroyed&&u(r.current),()=>{r.current&&!r.current.destroyed&&r.current.destroy(!0,!1)}},[]),P(()=>{D();const l=k.a(z,h.current,y,$.current,E=>E.key);return h.current=z,$.current=y,l.length&&r.current&&!r.current.destroyed&&p.u({swiper:r.current,slides:y,passedParams:z,changedParams:l,nextEl:c.current,prevEl:x.current,scrollbarEl:_.current,paginationEl:R.current}),()=>{H()}}),P(()=>{k.u(r.current)},[i]);function U(){return f.virtual?J(r.current,y,i):y.map((l,E)=>e.cloneElement(l,{swiper:r.current,swiperSlideIndex:E}))}return e.createElement(n,L({ref:m,className:p.d(`${C}${a?` ${a}`:""}`)},F),e.createElement(K.Provider,{value:r.current},j["container-start"],e.createElement(s,{className:p.w(f.wrapperClass)},j["wrapper-start"],U(),j["wrapper-end"]),p.n(f)&&e.createElement(e.Fragment,null,e.createElement("div",{ref:x,className:"swiper-button-prev"}),e.createElement("div",{ref:c,className:"swiper-button-next"})),p.b(f)&&e.createElement("div",{ref:_,className:"swiper-scrollbar"}),p.a(f)&&e.createElement("div",{ref:R,className:"swiper-pagination"}),j["container-end"]))});V.displayName="Swiper";const M=e.forwardRef(({tag:a="div",children:n,className:s="",swiper:t,zoom:u,lazy:d,virtualIndex:S,swiperSlideIndex:w,...C}={},g)=>{const i=e.useRef(null),[o,b]=e.useState("swiper-slide"),[O,N]=e.useState(!1);function m(c,x,R){x===i.current&&b(R)}P(()=>{if(typeof w<"u"&&(i.current.swiperSlideIndex=w),g&&(g.current=i.current),!(!i.current||!t)){if(t.destroyed){o!=="swiper-slide"&&b("swiper-slide");return}return t.on("_slideClass",m),()=>{t&&t.off("_slideClass",m)}}}),P(()=>{t&&i.current&&!t.destroyed&&b(t.getSlideClasses(i.current))},[t]);const r={isActive:o.indexOf("swiper-slide-active")>=0,isVisible:o.indexOf("swiper-slide-visible")>=0,isPrev:o.indexOf("swiper-slide-prev")>=0,isNext:o.indexOf("swiper-slide-next")>=0},h=()=>typeof n=="function"?n(r):n,$=()=>{N(!0)};return e.createElement(a,L({ref:i,className:p.d(`${o}${s?` ${s}`:""}`),"data-swiper-slide-index":S,onLoad:$},C),u&&e.createElement(T.Provider,{value:r},e.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof u=="number"?u:void 0},h(),d&&!O&&e.createElement("div",{className:"swiper-lazy-preloader",ref:c=>{c&&(c.lazyPreloaderManaged=!0)}}))),!u&&e.createElement(T.Provider,{value:r},h(),d&&!O&&e.createElement("div",{className:"swiper-lazy-preloader",ref:c=>{c&&(c.lazyPreloaderManaged=!0)}})))});M.displayName="SwiperSlide";exports.Swiper=V;exports.SwiperSlide=M;
@@ -1 +0,0 @@
1
- "use strict";
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("./index.cjs50.js"),M=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_snapToSlideEdge","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function v(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function I(e,o){const l=["__proto__","constructor","prototype"];Object.keys(o).filter(t=>l.indexOf(t)<0).forEach(t=>{typeof e[t]>"u"?e[t]=o[t]:v(o[t])&&v(e[t])&&Object.keys(o[t]).length>0?o[t].__swiper__?e[t]=o[t]:I(e[t],o[t]):e[t]=o[t]})}function A(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function B(e={}){return e.pagination&&typeof e.pagination.el>"u"}function E(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function L(e=""){const o=e.split(" ").map(t=>t.trim()).filter(t=>!!t),l=[];return o.forEach(t=>{l.indexOf(t)<0&&l.push(t)}),l.join(" ")}function D(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function R({swiper:e,slides:o,passedParams:l,changedParams:t,nextEl:r,prevEl:d,scrollbarEl:u,paginationEl:c}){const S=t.filter(i=>i!=="children"&&i!=="direction"&&i!=="wrapperClass"),{params:n,pagination:s,navigation:a,scrollbar:p,virtual:f,thumbs:h}=e;let C,b,w,O,x,N,j,_;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||c)&&(n.pagination||n.pagination===!1)&&s&&!s.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)&&a&&!a.prevEl&&!a.nextEl&&(x=!0);const T=i=>{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))};t.includes("loop")&&e.isElement&&(n.loop&&!l.loop?N=!0:!n.loop&&l.loop?j=!0:_=!0),S.forEach(i=>{if(v(n[i])&&v(l[i]))Object.assign(n[i],l[i]),(i==="navigation"||i==="pagination"||i==="scrollbar")&&"enabled"in l[i]&&!l[i].enabled&&T(i);else{const g=l[i];(g===!0||g===!1)&&(i==="navigation"||i==="pagination"||i==="scrollbar")?g===!1&&T(i):n[i]=l[i]}}),S.includes("controller")&&!b&&e.controller&&e.controller.control&&n.controller&&n.controller.control&&(e.controller.control=n.controller.control),t.includes("children")&&o&&f&&n.virtual.enabled?(f.slides=o,f.update(!0)):t.includes("virtual")&&f&&n.virtual.enabled&&(o&&(f.slides=o),f.update(!0)),t.includes("children")&&o&&n.loop&&(_=!0),C&&h.init()&&h.update(!0),b&&(e.controller.control=n.controller.control),w&&(e.isElement&&(!c||typeof c=="string")&&(c=document.createElement("div"),c.classList.add("swiper-pagination"),c.part.add("pagination"),e.el.appendChild(c)),c&&(n.pagination.el=c),s.init(),s.render(),s.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.s(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.s(d,e.navigation.arrowSvg),d.part.add("button-prev"),e.el.appendChild(d))),r&&(n.navigation.nextEl=r),d&&(n.navigation.prevEl=d),a.init(),a.update()),t.includes("allowSlideNext")&&(e.allowSlideNext=l.allowSlideNext),t.includes("allowSlidePrev")&&(e.allowSlidePrev=l.allowSlidePrev),t.includes("direction")&&e.changeDirection(l.direction,!1),(N||_)&&e.loopDestroy(),(j||_)&&e.loopCreate(),e.update()}exports.a=B;exports.b=E;exports.d=L;exports.e=I;exports.i=v;exports.n=A;exports.p=M;exports.u=R;exports.w=D;
@@ -1,247 +0,0 @@
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
- };
@@ -1 +0,0 @@
1
-
@@ -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] > "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
- };