@danielcruzcode/ui-core 0.1.0 → 0.1.2
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/components/Carousel/Carousel.d.ts +2 -3
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs26.js +1 -0
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs29.js +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs4.js +1 -1
- package/dist/{index.cjs43.js → index.cjs40.js} +1 -1
- package/dist/index.cjs5.js +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.esm11.js +1 -1
- package/dist/index.esm12.js +1 -1
- package/dist/index.esm14.js +4 -3
- package/dist/index.esm16.js +3 -4
- package/dist/index.esm17.js +8 -8
- package/dist/index.esm18.js +8 -7
- package/dist/index.esm19.js +134 -13
- package/dist/index.esm20.js +224 -10
- package/dist/index.esm21.js +116 -122
- package/dist/index.esm22.js +234 -213
- package/dist/index.esm23.js +9 -128
- package/dist/index.esm25.js +7 -7
- package/dist/index.esm26.js +26 -0
- package/dist/index.esm28.js +3 -22
- package/dist/index.esm29.js +2 -4
- package/dist/index.esm30.js +12 -2
- package/dist/index.esm4.js +1 -1
- package/dist/{index.esm43.js → index.esm40.js} +2 -2
- package/dist/index.esm5.js +5 -5
- package/dist/index.esm6.js +1 -1
- package/dist/index.esm7.js +1 -1
- package/dist/index.esm8.js +1 -1
- package/dist/index.esm9.js +1 -1
- package/package.json +11 -7
- package/styles.css +1 -0
- package/dist/components/Carousel/Carousel.js +0 -35
- package/dist/components/Carousel/Carousel.js.map +0 -1
- package/dist/components/Carousel/index.js +0 -2
- package/dist/components/Carousel/index.js.map +0 -1
- package/dist/index.cjs24.js +0 -1
- package/dist/index.esm24.js +0 -247
- /package/dist/{index.cjs42.js → index.cjs39.js} +0 -0
- /package/dist/{index.cjs44.js → index.cjs41.js} +0 -0
- /package/dist/{index.esm42.js → index.esm39.js} +0 -0
- /package/dist/{index.esm44.js → index.esm41.js} +0 -0
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import 'swiper/css';
|
|
1
|
+
import { vars } from '../../../../design-tokens/src/index.ts';
|
|
2
|
+
import { default as React } from 'react';
|
|
4
3
|
type SlidesPerView = number | {
|
|
5
4
|
mobile: number;
|
|
6
5
|
tablet: number;
|
package/dist/index.cjs11.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("react"),s=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("react"),s=require("./index.cjs17.js");function b({options:n,value:o,onChange:i,label:a,placeholder:c,error:r,disabled:u=!1,name:j,id:v}){const h=m.useId(),t=v??h,d=r?`${t}-error`:void 0,x=[s.select,r?s.selectError:""].filter(Boolean).join(" ");return e.jsxs("div",{className:s.wrapper,children:[a&&e.jsx("label",{className:s.label,htmlFor:t,children:a}),e.jsxs("div",{className:s.selectWrapper,children:[e.jsxs("select",{id:t,name:j,className:x,value:o,onChange:l=>i==null?void 0:i(l.target.value),disabled:u,"aria-invalid":r?!0:void 0,"aria-describedby":d,children:[c&&e.jsx("option",{value:"",disabled:!0,children:c}),n.map(l=>e.jsx("option",{value:l.value,disabled:l.disabled,children:l.label},l.value))]}),e.jsx("span",{className:s.chevron,"aria-hidden":"true",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M4 6l4 4 4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),r&&e.jsx("span",{id:d,className:s.errorText,role:"alert",children:r})]})}exports.Select=b;
|
package/dist/index.cjs12.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),n=require("@danielcruzcode/design-tokens"),a=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),n=require("@danielcruzcode/design-tokens"),a=require("./index.cjs29.js"),i={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"};function o({gap:e,align:t="stretch",children:s,as:r="div"}){return c.jsx(r,{className:a.stackBase,style:{gap:e?n.vars.space[e]:void 0,alignItems:i[t]},children:s})}exports.Stack=o;
|
package/dist/index.cjs14.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */;/* empty css */const e=require("./index.cjs34.js");var a=e.c({defaultClassName:"_13mmpdy0",variantClassNames:{variant:{default:"_13mmpdy1",brand:"_13mmpdy2"}},defaultVariants:{variant:"default"},compoundVariants:[]}),t="_13mmpdy3";exports.removeButton=t;exports.tagRecipe=a;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index.cjs31.js");;/* empty css */;/* empty css */const e=require("./index.cjs34.js");var a=e.c({defaultClassName:"_13mmpdy0",variantClassNames:{variant:{default:"_13mmpdy1",brand:"_13mmpdy2"}},defaultVariants:{variant:"default"},compoundVariants:[]}),t="_13mmpdy3";exports.removeButton=t;exports.tagRecipe=a;
|
package/dist/index.cjs16.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */;/* empty css */const e=require("./index.cjs34.js");var r=e.c({defaultClassName:"rxfwcs0",variantClassNames:{variant:{brand:"rxfwcs1",success:"rxfwcs2",warning:"rxfwcs3",danger:"rxfwcs4",neutral:"rxfwcs5"},size:{sm:"rxfwcs6",md:"rxfwcs7"}},defaultVariants:{variant:"neutral",size:"md"},compoundVariants:[]});exports.badgeRecipe=r;
|
package/dist/index.cjs17.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */;/* empty css */var
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */;/* empty css */var r="_7acib40",e="_7acib41",a="_7acib42",c="_7acib43",t="_7acib44",l="_7acib45",i="_7acib46";exports.chevron=l;exports.errorText=i;exports.label=e;exports.select=c;exports.selectError=t;exports.selectWrapper=a;exports.wrapper=r;
|
package/dist/index.cjs18.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */;/* empty css */
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */;/* empty css */var e="_104k35i0",r="_104k35i1",a="_104k35i2",i="_104k35i3",t="_104k35i4",b="_104k35i5",d="_104k35i7";exports.box=i;exports.boxChecked=t;exports.boxIndeterminate=b;exports.hiddenInput=a;exports.labelText=d;exports.wrapper=e;exports.wrapperDisabled=r;
|
package/dist/index.cjs19.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const k=require("./index.cjs49.js"),s=require("./index.cjs50.js"),b='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>';function y({swiper:a,extendParams:x,on:r,emit:v}){x({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),a.navigation={nextEl:null,prevEl:null,arrowSvg:b};function E(n){let t;return n&&typeof n=="string"&&a.isElement&&(t=a.el.querySelector(n)||a.hostEl.querySelector(n),t)?t:(n&&(typeof n=="string"&&(t=[...document.querySelectorAll(n)]),a.params.uniqueNavElements&&typeof n=="string"&&t&&t.length>1&&a.el.querySelectorAll(n).length===1?t=a.el.querySelector(n):t&&t.length===1&&(t=t[0])),n&&!t?n:t)}function f(n,t){const e=a.params.navigation;n=s.m(n),n.forEach(i=>{i&&(i.classList[t?"add":"remove"](...e.disabledClass.split(" ")),i.tagName==="BUTTON"&&(i.disabled=t),a.params.watchOverflow&&a.enabled&&i.classList[a.isLocked?"add":"remove"](e.lockClass))})}function d(){const{nextEl:n,prevEl:t}=a.navigation;if(a.params.loop){f(t,!1),f(n,!1);return}f(t,a.isBeginning&&!a.params.rewind),f(n,a.isEnd&&!a.params.rewind)}function h(n){n.preventDefault(),!(a.isBeginning&&!a.params.loop&&!a.params.rewind)&&(a.slidePrev(),v("navigationPrev"))}function C(n){n.preventDefault(),!(a.isEnd&&!a.params.loop&&!a.params.rewind)&&(a.slideNext(),v("navigationNext"))}function m(){const n=a.params.navigation;if(a.params.navigation=k.c(a,a.originalParams.navigation,a.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(n.nextEl||n.prevEl))return;let t=E(n.nextEl),e=E(n.prevEl);Object.assign(a.navigation,{nextEl:t,prevEl:e}),t=s.m(t),e=s.m(e);const i=(l,g)=>{if(l){if(n.addIcons&&l.matches(".swiper-button-next,.swiper-button-prev")&&!l.querySelector("svg")){const o=document.createElement("div");s.s(o,b),l.appendChild(o.querySelector("svg")),o.remove()}l.addEventListener("click",g==="next"?C:h)}!a.enabled&&l&&l.classList.add(...n.lockClass.split(" "))};t.forEach(l=>i(l,"next")),e.forEach(l=>i(l,"prev"))}function u(){let{nextEl:n,prevEl:t}=a.navigation;n=s.m(n),t=s.m(t);const e=(i,l)=>{i.removeEventListener("click",l==="next"?C:h),i.classList.remove(...a.params.navigation.disabledClass.split(" "))};n.forEach(i=>e(i,"next")),t.forEach(i=>e(i,"prev"))}r("init",()=>{a.params.navigation.enabled===!1?p():(m(),d())}),r("toEdge fromEdge lock unlock",()=>{d()}),r("destroy",()=>{u()}),r("enable disable",()=>{let{nextEl:n,prevEl:t}=a.navigation;if(n=s.m(n),t=s.m(t),a.enabled){d();return}[...n,...t].filter(e=>!!e).forEach(e=>e.classList.add(a.params.navigation.lockClass))}),r("click",(n,t)=>{let{nextEl:e,prevEl:i}=a.navigation;e=s.m(e),i=s.m(i);const l=t.target;let g=i.includes(l)||e.includes(l);if(a.isElement&&!g){const o=t.path||t.composedPath&&t.composedPath();o&&(g=o.find(c=>e.includes(c)||i.includes(c)))}if(a.params.navigation.hideOnClick&&!g){if(a.pagination&&a.params.pagination&&a.params.pagination.clickable&&(a.pagination.el===l||a.pagination.el.contains(l)))return;let o;e.length?o=e[0].classList.contains(a.params.navigation.hiddenClass):i.length&&(o=i[0].classList.contains(a.params.navigation.hiddenClass)),v(o===!0?"navigationShow":"navigationHide"),[...e,...i].filter(c=>!!c).forEach(c=>c.classList.toggle(a.params.navigation.hiddenClass))}});const L=()=>{a.el.classList.remove(...a.params.navigation.navigationDisabledClass.split(" ")),m(),d()},p=()=>{a.el.classList.add(...a.params.navigation.navigationDisabledClass.split(" ")),u()};Object.assign(a.navigation,{enable:L,disable:p,update:d,init:m,destroy:u})}module.exports=y;
|
package/dist/index.cjs20.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const $=require("./index.cjs51.js"),q=require("./index.cjs49.js"),c=require("./index.cjs50.js");function F({swiper:a,extendParams:I,on:m,emit:v}){const g="swiper-pagination";I({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:l=>l,formatFractionTotal:l=>l,bulletClass:`${g}-bullet`,bulletActiveClass:`${g}-bullet-active`,modifierClass:`${g}-`,currentClass:`${g}-current`,totalClass:`${g}-total`,hiddenClass:`${g}-hidden`,progressbarFillClass:`${g}-progressbar-fill`,progressbarOppositeClass:`${g}-progressbar-opposite`,clickableClass:`${g}-clickable`,lockClass:`${g}-lock`,horizontalClass:`${g}-horizontal`,verticalClass:`${g}-vertical`,paginationDisabledClass:`${g}-disabled`}}),a.pagination={el:null,bullets:[]};let b,p=0;function k(){return!a.params.pagination.el||!a.pagination.el||Array.isArray(a.pagination.el)&&a.pagination.el.length===0}function x(l,t){const{bulletActiveClass:e}=a.params.pagination;l&&(l=l[`${t==="prev"?"previous":"next"}ElementSibling`],l&&(l.classList.add(`${e}-${t}`),l=l[`${t==="prev"?"previous":"next"}ElementSibling`],l&&l.classList.add(`${e}-${t}-${t}`)))}function P(l,t,e){if(l=l%e,t=t%e,t===l+1)return"next";if(t===l-1)return"previous"}function D(l){const t=l.target.closest($.c(a.params.pagination.bulletClass));if(!t)return;l.preventDefault();const e=c.j(t)*a.params.slidesPerGroup;if(a.params.loop){if(a.realIndex===e)return;const n=P(a.realIndex,e,a.slides.length);n==="next"?a.slideNext():n==="previous"?a.slidePrev():a.slideToLoop(e)}else a.slideTo(e)}function h(){const l=a.rtl,t=a.params.pagination;if(k())return;let e=a.pagination.el;e=c.m(e);let n,d;const C=a.virtual&&a.params.virtual.enabled?a.virtual.slides.length:a.slides.length,z=a.params.loop?Math.ceil(C/a.params.slidesPerGroup):a.snapGrid.length;if(a.params.loop?(d=a.previousRealIndex||0,n=a.params.slidesPerGroup>1?Math.floor(a.realIndex/a.params.slidesPerGroup):a.realIndex):typeof a.snapIndex<"u"?(n=a.snapIndex,d=a.previousSnapIndex):(d=a.previousIndex||0,n=a.activeIndex||0),t.type==="bullets"&&a.pagination.bullets&&a.pagination.bullets.length>0){const s=a.pagination.bullets;let u,f,L;if(t.dynamicBullets&&(b=c.i(s[0],a.isHorizontal()?"width":"height"),e.forEach(i=>{i.style[a.isHorizontal()?"width":"height"]=`${b*(t.dynamicMainBullets+4)}px`}),t.dynamicMainBullets>1&&d!==void 0&&(p+=n-(d||0),p>t.dynamicMainBullets-1?p=t.dynamicMainBullets-1:p<0&&(p=0)),u=Math.max(n-p,0),f=u+(Math.min(s.length,t.dynamicMainBullets)-1),L=(f+u)/2),s.forEach(i=>{const o=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(r=>`${t.bulletActiveClass}${r}`)].map(r=>typeof r=="string"&&r.includes(" ")?r.split(" "):r).flat();i.classList.remove(...o)}),e.length>1)s.forEach(i=>{const o=c.j(i);o===n?i.classList.add(...t.bulletActiveClass.split(" ")):a.isElement&&i.setAttribute("part","bullet"),t.dynamicBullets&&(o>=u&&o<=f&&i.classList.add(...`${t.bulletActiveClass}-main`.split(" ")),o===u&&x(i,"prev"),o===f&&x(i,"next"))});else{const i=s[n];if(i&&i.classList.add(...t.bulletActiveClass.split(" ")),a.isElement&&s.forEach((o,r)=>{o.setAttribute("part",r===n?"bullet-active":"bullet")}),t.dynamicBullets){const o=s[u],r=s[f];for(let y=u;y<=f;y+=1)s[y]&&s[y].classList.add(...`${t.bulletActiveClass}-main`.split(" "));x(o,"prev"),x(r,"next")}}if(t.dynamicBullets){const i=Math.min(s.length,t.dynamicMainBullets+4),o=(b*i-b)/2-L*b,r=l?"right":"left";s.forEach(y=>{y.style[a.isHorizontal()?r:"top"]=`${o}px`})}}e.forEach((s,u)=>{if(t.type==="fraction"&&(s.querySelectorAll($.c(t.currentClass)).forEach(f=>{f.textContent=t.formatFractionCurrent(n+1)}),s.querySelectorAll($.c(t.totalClass)).forEach(f=>{f.textContent=t.formatFractionTotal(z)})),t.type==="progressbar"){let f;t.progressbarOpposite?f=a.isHorizontal()?"vertical":"horizontal":f=a.isHorizontal()?"horizontal":"vertical";const L=(n+1)/z;let i=1,o=1;f==="horizontal"?i=L:o=L,s.querySelectorAll($.c(t.progressbarFillClass)).forEach(r=>{r.style.transform=`translate3d(0,0,0) scaleX(${i}) scaleY(${o})`,r.style.transitionDuration=`${a.params.speed}ms`})}t.type==="custom"&&t.renderCustom?(c.s(s,t.renderCustom(a,n+1,z)),u===0&&v("paginationRender",s)):(u===0&&v("paginationRender",s),v("paginationUpdate",s)),a.params.watchOverflow&&a.enabled&&s.classList[a.isLocked?"add":"remove"](t.lockClass)})}function B(){const l=a.params.pagination;if(k())return;const t=a.virtual&&a.params.virtual.enabled?a.virtual.slides.length:a.grid&&a.params.grid.rows>1?a.slides.length/Math.ceil(a.params.grid.rows):a.slides.length;let e=a.pagination.el;e=c.m(e);let n="";if(l.type==="bullets"){let d=a.params.loop?Math.ceil(t/a.params.slidesPerGroup):a.snapGrid.length;a.params.freeMode&&a.params.freeMode.enabled&&d>t&&(d=t);for(let C=0;C<d;C+=1)l.renderBullet?n+=l.renderBullet.call(a,C,l.bulletClass):n+=`<${l.bulletElement} ${a.isElement?'part="bullet"':""} class="${l.bulletClass}"></${l.bulletElement}>`}l.type==="fraction"&&(l.renderFraction?n=l.renderFraction.call(a,l.currentClass,l.totalClass):n=`<span class="${l.currentClass}"></span> / <span class="${l.totalClass}"></span>`),l.type==="progressbar"&&(l.renderProgressbar?n=l.renderProgressbar.call(a,l.progressbarFillClass):n=`<span class="${l.progressbarFillClass}"></span>`),a.pagination.bullets=[],e.forEach(d=>{l.type!=="custom"&&c.s(d,n||""),l.type==="bullets"&&a.pagination.bullets.push(...d.querySelectorAll($.c(l.bulletClass)))}),l.type!=="custom"&&v("paginationRender",e[0])}function A(){a.params.pagination=q.c(a,a.originalParams.pagination,a.params.pagination,{el:"swiper-pagination"});const l=a.params.pagination;if(!l.el)return;let t;typeof l.el=="string"&&a.isElement&&(t=a.el.querySelector(l.el)),!t&&typeof l.el=="string"&&(t=[...document.querySelectorAll(l.el)]),t||(t=l.el),!(!t||t.length===0)&&(a.params.uniqueNavElements&&typeof l.el=="string"&&Array.isArray(t)&&t.length>1&&(t=[...a.el.querySelectorAll(l.el)],t.length>1&&(t=t.find(e=>c.d(e,".swiper")[0]===a.el))),Array.isArray(t)&&t.length===1&&(t=t[0]),Object.assign(a.pagination,{el:t}),t=c.m(t),t.forEach(e=>{l.type==="bullets"&&l.clickable&&e.classList.add(...(l.clickableClass||"").split(" ")),e.classList.add(l.modifierClass+l.type),e.classList.add(a.isHorizontal()?l.horizontalClass:l.verticalClass),l.type==="bullets"&&l.dynamicBullets&&(e.classList.add(`${l.modifierClass}${l.type}-dynamic`),p=0,l.dynamicMainBullets<1&&(l.dynamicMainBullets=1)),l.type==="progressbar"&&l.progressbarOpposite&&e.classList.add(l.progressbarOppositeClass),l.clickable&&e.addEventListener("click",D),a.enabled||e.classList.add(l.lockClass)}))}function M(){const l=a.params.pagination;if(k())return;let t=a.pagination.el;t&&(t=c.m(t),t.forEach(e=>{e.classList.remove(l.hiddenClass),e.classList.remove(l.modifierClass+l.type),e.classList.remove(a.isHorizontal()?l.horizontalClass:l.verticalClass),l.clickable&&(e.classList.remove(...(l.clickableClass||"").split(" ")),e.removeEventListener("click",D))})),a.pagination.bullets&&a.pagination.bullets.forEach(e=>e.classList.remove(...l.bulletActiveClass.split(" ")))}m("changeDirection",()=>{if(!a.pagination||!a.pagination.el)return;const l=a.params.pagination;let{el:t}=a.pagination;t=c.m(t),t.forEach(e=>{e.classList.remove(l.horizontalClass,l.verticalClass),e.classList.add(a.isHorizontal()?l.horizontalClass:l.verticalClass)})}),m("init",()=>{a.params.pagination.enabled===!1?S():(A(),B(),h())}),m("activeIndexChange",()=>{typeof a.snapIndex>"u"&&h()}),m("snapIndexChange",()=>{h()}),m("snapGridLengthChange",()=>{B(),h()}),m("destroy",()=>{M()}),m("enable disable",()=>{let{el:l}=a.pagination;l&&(l=c.m(l),l.forEach(t=>t.classList[a.enabled?"remove":"add"](a.params.pagination.lockClass)))}),m("lock unlock",()=>{h()}),m("click",(l,t)=>{const e=t.target,n=c.m(a.pagination.el);if(a.params.pagination.el&&a.params.pagination.hideOnClick&&n&&n.length>0&&!e.classList.contains(a.params.pagination.bulletClass)){if(a.navigation&&(a.navigation.nextEl&&e===a.navigation.nextEl||a.navigation.prevEl&&e===a.navigation.prevEl))return;const d=n[0].classList.contains(a.params.pagination.hiddenClass);v(d===!0?"paginationShow":"paginationHide"),n.forEach(C=>C.classList.toggle(a.params.pagination.hiddenClass))}});const O=()=>{a.el.classList.remove(a.params.pagination.paginationDisabledClass);let{el:l}=a.pagination;l&&(l=c.m(l),l.forEach(t=>t.classList.remove(a.params.pagination.paginationDisabledClass))),A(),B(),h()},S=()=>{a.el.classList.add(a.params.pagination.paginationDisabledClass);let{el:l}=a.pagination;l&&(l=c.m(l),l.forEach(t=>t.classList.add(a.params.pagination.paginationDisabledClass))),M()};Object.assign(a.pagination,{enable:O,disable:S,render:B,update:h,init:A,destroy:M})}module.exports=F;
|
package/dist/index.cjs21.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const h=require("./index.cjs52.js");function j({swiper:e,extendParams:q,on:u,emit:l,params:s}){e.autoplay={running:!1,paused:!1,timeLeft:0},q({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let f,v,T=s&&s.autoplay?s.autoplay.delay:3e3,E=s&&s.autoplay?s.autoplay.delay:3e3,n,c=new Date().getTime(),b,p,d,M,r,L;function O(t){!e||e.destroyed||!e.wrapperEl||t.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",O),!(L||t.detail&&t.detail.bySwiperTouchMove)&&i())}const F=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?b=!0:b&&(E=n,b=!1);const t=e.autoplay.paused?n:c+E-new Date().getTime();e.autoplay.timeLeft=t,l("autoplayTimeLeft",t,t/T),v=requestAnimationFrame(()=>{F()})},B=()=>{let t;return e.virtual&&e.params.virtual.enabled?t=e.slides.find(o=>o.classList.contains("swiper-slide-active")):t=e.slides[e.activeIndex],t?parseInt(t.getAttribute("data-swiper-autoplay"),10):void 0},D=()=>{let t=e.params.autoplay.delay;const a=B();return!Number.isNaN(a)&&a>0&&(t=a),t},g=t=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(v),F();let a=t;typeof a>"u"&&(a=D(),T=a,E=a),n=a;const o=e.params.speed,S=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(o,!0,!0),l("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,o,!0,!0),l("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(o,!0,!0),l("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,o,!0,!0),l("autoplay")),e.params.cssMode&&(c=new Date().getTime(),requestAnimationFrame(()=>{g()})))};return a>0?(clearTimeout(f),f=setTimeout(()=>{S()},a)):requestAnimationFrame(()=>{S()}),a},I=()=>{c=new Date().getTime(),e.autoplay.running=!0,g(),l("autoplayStart")},m=()=>{e.autoplay.running=!1,clearTimeout(f),cancelAnimationFrame(v),l("autoplayStop")},y=(t,a)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(f),t||(r=!0);const o=()=>{l("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",O):i()};if(e.autoplay.paused=!0,a){o();return}n=(n||e.params.autoplay.delay)-(new Date().getTime()-c),!(e.isEnd&&n<0&&!e.params.loop)&&(n<0&&(n=0),o())},i=()=>{e.isEnd&&n<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(c=new Date().getTime(),r?(r=!1,g(n)):g(),e.autoplay.paused=!1,l("autoplayResume"))},A=()=>{if(e.destroyed||!e.autoplay.running)return;const t=h.g();t.visibilityState==="hidden"&&(r=!0,y(!0)),t.visibilityState==="visible"&&i()},P=t=>{t.pointerType==="mouse"&&(r=!0,L=!0,!(e.animating||e.autoplay.paused)&&y(!0))},N=t=>{t.pointerType==="mouse"&&(L=!1,e.autoplay.paused&&i())},_=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",P),e.el.addEventListener("pointerleave",N))},x=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",P),e.el.removeEventListener("pointerleave",N))},C=()=>{h.g().addEventListener("visibilitychange",A)},R=()=>{h.g().removeEventListener("visibilitychange",A)};u("init",()=>{e.params.autoplay.enabled&&(_(),C(),I())}),u("destroy",()=>{x(),R(),e.autoplay.running&&m()}),u("_freeModeStaticRelease",()=>{(d||r)&&i()}),u("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?m():y(!0,!0)}),u("beforeTransitionStart",(t,a,o)=>{e.destroyed||!e.autoplay.running||(o||!e.params.autoplay.disableOnInteraction?y(!0,!0):m())}),u("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){m();return}p=!0,d=!1,r=!1,M=setTimeout(()=>{r=!0,d=!0,y(!0)},200)}}),u("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!p)){if(clearTimeout(M),clearTimeout(f),e.params.autoplay.disableOnInteraction){d=!1,p=!1;return}d&&e.params.cssMode&&i(),d=!1,p=!1}}),u("slideChange",()=>{e.destroyed||!e.autoplay.running||e.autoplay.paused&&(n=D(),T=D())}),Object.assign(e.autoplay,{start:I,stop:m,pause:y,resume:i})}module.exports=j;
|
package/dist/index.cjs22.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),W=require("./index.cjs39.js"),k=require("./index.cjs40.js"),p=require("./index.cjs41.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;
|
package/dist/index.cjs23.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */;/* empty css */var r="_1tx42e51",t="_1tx42e52",e="_1tx42e53",o="_1tx42e54",a="_1tx42e55",v="_1tx42e56";exports.arrowBtn=r;exports.arrowNext=e;exports.arrowPrev=t;exports.dot=a;exports.dotActive=v;exports.dots=o;
|
package/dist/index.cjs25.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */;/* empty css */var
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */;/* empty css */const e=require("./index.cjs34.js");var a=e.c({defaultClassName:"uk9byt0",variantClassNames:{hoverable:{true:"uk9byt1"},padding:{none:"uk9byt2",sm:"uk9byt3",md:"uk9byt4",lg:"uk9byt5"}},defaultVariants:{padding:"none"},compoundVariants:[]}),r="uk9byt6",t="uk9byt7",d="uk9byt8",u="uk9byt9";exports.cardBody=d;exports.cardFooter=u;exports.cardHeader=t;exports.cardMedia=r;exports.cardRecipe=a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */;/* empty css */var e="w40enx1",r="w40enx2",a="w40enx3",n="w40enx4",i="w40enx5",t="w40enx6",l="w40enx7",v="w40enx8",w="w40enx9",x="w40enxa",o="w40enxb",s="w40enxc",p="w40enxd",u="w40enxe",b="w40enxf",g="w40enxg",c="w40enxh",m="w40enxi",k="w40enxk w40enxj",y="w40enxl w40enxj",d="w40enxm w40enxj";exports.badgeOverlay=n;exports.body=t;exports.footer=b;exports.image=a;exports.imageWrapper=r;exports.installments=u;exports.originalPrice=p;exports.price=s;exports.priceWrapper=o;exports.quickViewBtn=g;exports.reviewCount=x;exports.root=e;exports.skeletonBtn=d;exports.skeletonImage=k;exports.skeletonLine=y;exports.starsWrapper=w;exports.subtitle=v;exports.title=l;exports.unavailableOverlay=c;exports.unavailableText=m;exports.wishlistBtn=i;
|
package/dist/index.cjs28.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */;/* empty css */
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */;/* empty css */const e=require("./index.cjs34.js");var a=e.c({defaultClassName:"_19yozed0",variantClassNames:{maxWidth:{sm:"_19yozed1",md:"_19yozed2",lg:"_19yozed3",xl:"_19yozed4",full:"_19yozed5"}},defaultVariants:{maxWidth:"xl"},compoundVariants:[]});exports.containerRecipe=a;
|
package/dist/index.cjs29.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */var e="_15r2pp40";exports.stackBase=e;
|
package/dist/index.cjs30.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */var e="
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */;/* empty css */var r="wt8vlo0",e="wt8vlo1",t="wt8vlo2",a="wt8vlo3",p="wt8vlo4",o="wt8vlo5",i="wt8vlo6",l="wt8vlo7",v="wt8vlo8",u="wt8vlo9";exports.errorText=u;exports.hint=v;exports.iconSlot=l;exports.input=i;exports.inputWrapper=a;exports.inputWrapperDisabled=o;exports.inputWrapperError=p;exports.label=e;exports.requiredMark=t;exports.wrapper=r;
|
package/dist/index.cjs4.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),a=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),a=require("./index.cjs25.js");function j({media:t,header:c,body:i,footer:n,onClick:e,hoverable:o=!1,className:l,padding:v="none"}){const s=!!e,u=a.cardRecipe({hoverable:o||void 0,padding:v});return r.jsxs("article",{className:[u,l].filter(Boolean).join(" "),onClick:e,role:s?"button":void 0,tabIndex:s?0:void 0,onKeyDown:s?d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),e==null||e())}:void 0,children:[t&&r.jsx("div",{className:a.cardMedia,children:t}),c&&r.jsx("div",{className:a.cardHeader,children:c}),i&&r.jsx("div",{className:a.cardBody,children:i}),n&&r.jsx("div",{className:a.cardFooter,children:n})]})}exports.Card=j;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs41.js"),d=require("./index.cjs39.js");function m(t={},s=!0){const n={on:{}},c={},l={};o.e(n,d.d),n._emitClasses=!0,n.init=!1;const i={},f=o.p.map(a=>a.replace(/_/,"")),u=Object.assign({},t);return Object.keys(u).forEach(a=>{typeof t[a]>"u"||(f.indexOf(a)>=0?o.i(t[a])?(n[a]={},l[a]={},o.e(n[a],t[a]),o.e(l[a],t[a])):(n[a]=t[a],l[a]=t[a]):a.search(/on[A-Z]/)===0&&typeof t[a]=="function"?s?c[`${a[2].toLowerCase()}${a.substr(3)}`]=t[a]:n.on[`${a[2].toLowerCase()}${a.substr(3)}`]=t[a]:i[a]=t[a])}),["navigation","pagination","scrollbar"].forEach(a=>{n[a]===!0&&(n[a]={}),n[a]===!1&&delete n[a]}),{params:n,passedParams:l,rest:i,events:c}}function h({el:t,nextEl:s,prevEl:n,paginationEl:c,scrollbarEl:l,swiper:i},f){o.n(f)&&s&&n&&(i.params.navigation.nextEl=s,i.originalParams.navigation.nextEl=s,i.params.navigation.prevEl=n,i.originalParams.navigation.prevEl=n),o.a(f)&&c&&(i.params.pagination.el=c,i.originalParams.pagination.el=c),o.b(f)&&l&&(i.params.scrollbar.el=l,i.originalParams.scrollbar.el=l),i.init(t)}function p(t,s,n,c,l){const i=[];if(!s)return i;const f=a=>{i.indexOf(a)<0&&i.push(a)};if(n&&c){const a=c.map(l),e=n.map(l);a.join("")!==e.join("")&&f("children"),c.length!==n.length&&f("children")}return o.p.filter(a=>a[0]==="_").map(a=>a.replace(/_/,"")).forEach(a=>{if(a in t&&a in s)if(o.i(t[a])&&o.i(s[a])){const e=Object.keys(t[a]),g=Object.keys(s[a]);e.length!==g.length?f(a):(e.forEach(r=>{t[a][r]!==s[a][r]&&f(a)}),g.forEach(r=>{t[a][r]!==s[a][r]&&f(a)}))}else t[a]!==s[a]&&f(a)}),i}const v=t=>{!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())};exports.a=p;exports.g=m;exports.m=h;exports.u=v;
|
package/dist/index.cjs5.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),h=require("react"),w=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),h=require("react"),w=require("./index.cjs19.js"),k=require("./index.cjs20.js"),g=require("./index.cjs21.js"),c=require("./index.cjs22.js"),t=require("./index.cjs23.js");;/* empty css */const y={sm:8,md:16,lg:24,xl:32};function q({children:d,autoplay:a=!1,autoplayMs:p=4e3,showArrows:i=!0,showDots:n=!0,loop:x=!1,slidesPerView:r=1,slidesPerGroup:b,gap:u,onSlideChange:o}){const m=h.useRef(null),v=u?y[u]??16:0,j=typeof r=="object"?{0:{slidesPerView:r.mobile},640:{slidesPerView:r.tablet},1024:{slidesPerView:r.desktop}}:void 0,f=typeof r=="number"?r:void 0;return e.jsxs("div",{children:[e.jsx(c.Swiper,{modules:[...i?[w]:[],...n?[k]:[],...a?[g]:[]],slidesPerView:f,breakpoints:j,spaceBetween:v,slidesPerGroup:b,loop:x,autoplay:a?{delay:p,disableOnInteraction:!1}:!1,pagination:n?{el:".swiper-custom-dots",clickable:!0,bulletClass:t.dot,bulletActiveClass:t.dotActive,renderBullet:(s,l)=>`<button class="${l}" />`}:!1,navigation:i?{prevEl:".swiper-custom-prev",nextEl:".swiper-custom-next"}:!1,onSwiper:s=>{m.current=s},onSlideChange:s=>o==null?void 0:o(s.realIndex),children:d.map((s,l)=>e.jsx(c.SwiperSlide,{children:s},l))}),i&&e.jsxs(e.Fragment,{children:[e.jsx("button",{type:"button",className:`${t.arrowBtn} ${t.arrowPrev} swiper-custom-prev`,"aria-label":"Slide anterior",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:e.jsx("path",{d:"M10 12L6 8l4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),e.jsx("button",{type:"button",className:`${t.arrowBtn} ${t.arrowNext} swiper-custom-next`,"aria-label":"Slide siguiente",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:e.jsx("path",{d:"M6 4l4 4-4 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),n&&e.jsx("div",{className:`swiper-custom-dots ${t.dots}`})]})}exports.Carousel=q;
|
package/dist/index.cjs6.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("react"),r=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("react"),r=require("./index.cjs18.js");function p({checked:t=!1,onChange:o,label:c,disabled:l=!1,indeterminate:s=!1,name:d,id:h}){const u=n.useId(),a=h??u,i=n.useRef(null);n.useEffect(()=>{i.current&&(i.current.indeterminate=s)},[s]);const x=[r.box,t||s?s?r.boxIndeterminate:r.boxChecked:""].filter(Boolean).join(" ");return e.jsxs("label",{htmlFor:a,className:[r.wrapper,l?r.wrapperDisabled:""].filter(Boolean).join(" "),children:[e.jsx("input",{ref:i,id:a,name:d,type:"checkbox",className:r.hiddenInput,checked:t,disabled:l,onChange:f=>o==null?void 0:o(f.target.checked),"aria-checked":s?"mixed":t}),e.jsxs("span",{className:x,"aria-hidden":"true",children:[s&&e.jsx("svg",{width:"10",height:"2",viewBox:"0 0 10 2",fill:"none","aria-hidden":"true",children:e.jsx("path",{d:"M1 1h8",stroke:"white",strokeWidth:"2",strokeLinecap:"round"})}),t&&!s&&e.jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none","aria-hidden":"true",children:e.jsx("path",{d:"M1 4l3 3 5-6",stroke:"white",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})]}),c&&e.jsx("span",{className:r.labelText,children:c})]})}exports.Checkbox=p;
|
package/dist/index.cjs7.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),i=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),i=require("./index.cjs28.js");function o({maxWidth:e="xl",children:n,as:t="div"}){return r.jsx(t,{className:i.containerRecipe({maxWidth:e}),children:n})}exports.Container=o;
|
package/dist/index.cjs8.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),I=require("react"),e=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),I=require("react"),e=require("./index.cjs30.js");function S({label:n,placeholder:j,value:m,onChange:r,type:x="text",error:a,hint:t,disabled:l=!1,required:d=!1,leftIcon:c,rightIcon:p,name:h,id:v}){const N=I.useId(),i=v??N,o=a?`${i}-error`:void 0,u=t?`${i}-hint`:void 0,b=[e.inputWrapper,a?e.inputWrapperError:"",l?e.inputWrapperDisabled:""].filter(Boolean).join(" ");return s.jsxs("div",{className:e.wrapper,children:[n&&s.jsxs("label",{className:e.label,htmlFor:i,children:[n,d&&s.jsxs("span",{className:e.requiredMark,"aria-hidden":"true",children:[" ","*"]})]}),s.jsxs("div",{className:b,children:[c&&s.jsx("span",{className:e.iconSlot,"aria-hidden":"true",children:c}),s.jsx("input",{id:i,name:h,type:x,className:e.input,placeholder:j,value:m,onChange:f=>r==null?void 0:r(f.target.value),disabled:l,required:d,"aria-invalid":a?!0:void 0,"aria-describedby":[o,u].filter(Boolean).join(" ")||void 0}),p&&s.jsx("span",{className:e.iconSlot,"aria-hidden":"true",children:p})]}),a&&s.jsx("span",{id:o,className:e.errorText,role:"alert",children:a}),t&&!a&&s.jsx("span",{id:u,className:e.hint,children:t})]})}exports.Input=S;
|
package/dist/index.cjs9.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),e=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),e=require("./index.cjs26.js"),b=require("./index.cjs2.js"),q=require("./index.cjs4.js"),z=require("./index.cjs3.js");function W({rating:a}){return s.jsx("span",{className:e.starsWrapper,"aria-label":`${a} de 5 estrellas`,role:"img",children:Array.from({length:5}).map((n,l)=>s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:l<Math.round(a)?"#F9AB00":"none",stroke:"#F9AB00",strokeWidth:"1","aria-hidden":"true",children:s.jsx("path",{d:"M6 1l1.39 2.82L10.5 4.27l-2.25 2.19.53 3.09L6 8l-2.78 1.55.53-3.09L1.5 4.27l3.11-.45L6 1z"})},l))})}function A(){return s.jsxs("article",{"aria-label":"Cargando producto","aria-busy":"true",children:[s.jsx("div",{className:e.skeletonImage}),s.jsxs("div",{style:{padding:"8px",display:"flex",flexDirection:"column",gap:"8px"},children:[s.jsx("div",{className:e.skeletonLine,style:{width:"100%"}}),s.jsx("div",{className:e.skeletonLine,style:{width:"70%"}}),s.jsx("div",{className:e.skeletonLine,style:{width:"50%"}}),s.jsx("div",{className:e.skeletonBtn})]})]})}function M({id:a,title:n,subtitle:l,images:f,price:h,originalPrice:t,discountPercent:x,badge:u,rating:j,reviewCount:p,installments:i,unavailable:m=!1,loading:B=!1,onAddToCart:v,onWishlist:g,onQuickView:N,onClick:d,formatPrice:r,className:k}){if(B)return s.jsx(A,{});const C=r?r(h):String(h),y=t?r?r(t):String(t):void 0,o=f[0],w=s.jsxs("div",{className:e.imageWrapper,children:[o&&s.jsx("img",{width:100,height:100,src:o.src,alt:o.alt,className:e.image,loading:"lazy"}),s.jsxs("div",{className:e.badgeOverlay,children:[x!==void 0&&s.jsxs(b.Badge,{variant:"danger",size:"sm",children:["-",x,"%"]}),u&&s.jsx(b.Badge,{variant:"brand",size:"sm",children:u})]}),g&&s.jsx("button",{type:"button",className:e.wishlistBtn,onClick:c=>{c.stopPropagation(),g(a)},"aria-label":`Agregar ${n} a favoritos`,children:s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8","aria-hidden":"true",children:s.jsx("path",{d:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"})})}),m&&s.jsx("div",{className:e.unavailableOverlay,children:s.jsx("span",{className:e.unavailableText,children:"Sin stock"})})]}),L=s.jsxs("div",{className:e.body,children:[s.jsx("p",{className:e.title,children:n}),l&&s.jsx("p",{className:e.subtitle,children:l}),j!==void 0&&s.jsxs("div",{className:e.starsWrapper,children:[s.jsx(W,{rating:j}),p!==void 0&&s.jsxs("span",{className:e.reviewCount,children:["(",p,")"]})]}),s.jsxs("div",{className:e.priceWrapper,children:[s.jsx("span",{className:e.price,children:C}),y&&s.jsx("span",{className:e.originalPrice,children:y})]}),i&&s.jsxs("span",{className:e.installments,children:[i.count,"x"," ",r?r(i.value):i.value]})]}),S=s.jsxs("div",{className:e.footer,children:[v&&s.jsx(z.Button,{variant:"primary",size:"sm",fullWidth:!0,disabled:m,onClick:()=>v(a),children:"Agregar"}),N&&s.jsx("button",{type:"button",className:e.quickViewBtn,onClick:c=>{c.stopPropagation(),N(a)},children:"Vista rápida"})]});return s.jsx("div",{className:[e.root,k].filter(Boolean).join(" "),children:s.jsx(q.Card,{media:w,body:L,footer:S,hoverable:!!d,onClick:d?()=>d(a):void 0})})}exports.ProductCard=M;
|
package/dist/index.esm11.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useId as b } from "react";
|
|
3
|
-
import { wrapper as f, label as N, selectWrapper as x, chevron as j, errorText as k, select as w, selectError as I } from "./index.
|
|
3
|
+
import { wrapper as f, label as N, selectWrapper as x, chevron as j, errorText as k, select as w, selectError as I } from "./index.esm17.js";
|
|
4
4
|
function g({
|
|
5
5
|
options: n,
|
|
6
6
|
value: o,
|
package/dist/index.esm12.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { vars as c } from "@danielcruzcode/design-tokens";
|
|
3
|
-
import { stackBase as n } from "./index.
|
|
3
|
+
import { stackBase as n } from "./index.esm29.js";
|
|
4
4
|
const o = {
|
|
5
5
|
start: "flex-start",
|
|
6
6
|
center: "center",
|
package/dist/index.esm14.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import "./index.esm31.js";
|
|
1
2
|
/* empty css */
|
|
2
3
|
/* empty css */
|
|
3
4
|
import { c as a } from "./index.esm34.js";
|
|
4
|
-
var
|
|
5
|
+
var i = a({ defaultClassName: "_13mmpdy0", variantClassNames: { variant: { default: "_13mmpdy1", brand: "_13mmpdy2" } }, defaultVariants: { variant: "default" }, compoundVariants: [] }), p = "_13mmpdy3";
|
|
5
6
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
p as removeButton,
|
|
8
|
+
i as tagRecipe
|
|
8
9
|
};
|
package/dist/index.esm16.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import "./index.esm31.js";
|
|
2
1
|
/* empty css */
|
|
3
2
|
/* empty css */
|
|
4
|
-
import { c as
|
|
5
|
-
var
|
|
3
|
+
import { c as a } from "./index.esm34.js";
|
|
4
|
+
var t = a({ defaultClassName: "rxfwcs0", variantClassNames: { variant: { brand: "rxfwcs1", success: "rxfwcs2", warning: "rxfwcs3", danger: "rxfwcs4", neutral: "rxfwcs5" }, size: { sm: "rxfwcs6", md: "rxfwcs7" } }, defaultVariants: { variant: "neutral", size: "md" }, compoundVariants: [] });
|
|
6
5
|
export {
|
|
7
|
-
|
|
6
|
+
t as badgeRecipe
|
|
8
7
|
};
|
package/dist/index.esm17.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
|
-
var e = "
|
|
3
|
+
var e = "_7acib40", c = "_7acib41", i = "_7acib42", b = "_7acib43", v = "_7acib44", p = "_7acib45", t = "_7acib46";
|
|
4
4
|
export {
|
|
5
|
-
p as
|
|
6
|
-
t as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
p as chevron,
|
|
6
|
+
t as errorText,
|
|
7
|
+
c as label,
|
|
8
|
+
b as select,
|
|
9
|
+
v as selectError,
|
|
10
|
+
i as selectWrapper,
|
|
11
|
+
e as wrapper
|
|
12
12
|
};
|
package/dist/index.esm18.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
|
-
|
|
4
|
-
var d = a({ defaultClassName: "uk9byt0", variantClassNames: { hoverable: { true: "uk9byt1" }, padding: { none: "uk9byt2", sm: "uk9byt3", md: "uk9byt4", lg: "uk9byt5" } }, defaultVariants: { padding: "none" }, compoundVariants: [] }), u = "uk9byt6", o = "uk9byt7", n = "uk9byt8", b = "uk9byt9";
|
|
3
|
+
var e = "_104k35i0", i = "_104k35i1", k = "_104k35i2", p = "_104k35i3", t = "_104k35i4", v = "_104k35i5", _ = "_104k35i7";
|
|
5
4
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
p as box,
|
|
6
|
+
t as boxChecked,
|
|
7
|
+
v as boxIndeterminate,
|
|
8
|
+
k as hiddenInput,
|
|
9
|
+
_ as labelText,
|
|
10
|
+
e as wrapper,
|
|
11
|
+
i as wrapperDisabled
|
|
11
12
|
};
|
package/dist/index.esm19.js
CHANGED
|
@@ -1,15 +1,136 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { c as k } from "./index.esm49.js";
|
|
2
|
+
import { m as s, s as y } from "./index.esm50.js";
|
|
3
|
+
const b = '<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>';
|
|
4
|
+
function N({
|
|
5
|
+
swiper: a,
|
|
6
|
+
extendParams: x,
|
|
7
|
+
on: r,
|
|
8
|
+
emit: v
|
|
9
|
+
}) {
|
|
10
|
+
x({
|
|
11
|
+
navigation: {
|
|
12
|
+
nextEl: null,
|
|
13
|
+
prevEl: null,
|
|
14
|
+
addIcons: !0,
|
|
15
|
+
hideOnClick: !1,
|
|
16
|
+
disabledClass: "swiper-button-disabled",
|
|
17
|
+
hiddenClass: "swiper-button-hidden",
|
|
18
|
+
lockClass: "swiper-button-lock",
|
|
19
|
+
navigationDisabledClass: "swiper-navigation-disabled"
|
|
20
|
+
}
|
|
21
|
+
}), a.navigation = {
|
|
22
|
+
nextEl: null,
|
|
23
|
+
prevEl: null,
|
|
24
|
+
arrowSvg: b
|
|
25
|
+
};
|
|
26
|
+
function E(n) {
|
|
27
|
+
let t;
|
|
28
|
+
return n && typeof n == "string" && a.isElement && (t = a.el.querySelector(n) || a.hostEl.querySelector(n), t) ? t : (n && (typeof n == "string" && (t = [...document.querySelectorAll(n)]), a.params.uniqueNavElements && typeof n == "string" && t && t.length > 1 && a.el.querySelectorAll(n).length === 1 ? t = a.el.querySelector(n) : t && t.length === 1 && (t = t[0])), n && !t ? n : t);
|
|
29
|
+
}
|
|
30
|
+
function f(n, t) {
|
|
31
|
+
const e = a.params.navigation;
|
|
32
|
+
n = s(n), n.forEach((i) => {
|
|
33
|
+
i && (i.classList[t ? "add" : "remove"](...e.disabledClass.split(" ")), i.tagName === "BUTTON" && (i.disabled = t), a.params.watchOverflow && a.enabled && i.classList[a.isLocked ? "add" : "remove"](e.lockClass));
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function d() {
|
|
37
|
+
const {
|
|
38
|
+
nextEl: n,
|
|
39
|
+
prevEl: t
|
|
40
|
+
} = a.navigation;
|
|
41
|
+
if (a.params.loop) {
|
|
42
|
+
f(t, !1), f(n, !1);
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
f(t, a.isBeginning && !a.params.rewind), f(n, a.isEnd && !a.params.rewind);
|
|
46
|
+
}
|
|
47
|
+
function h(n) {
|
|
48
|
+
n.preventDefault(), !(a.isBeginning && !a.params.loop && !a.params.rewind) && (a.slidePrev(), v("navigationPrev"));
|
|
49
|
+
}
|
|
50
|
+
function p(n) {
|
|
51
|
+
n.preventDefault(), !(a.isEnd && !a.params.loop && !a.params.rewind) && (a.slideNext(), v("navigationNext"));
|
|
52
|
+
}
|
|
53
|
+
function m() {
|
|
54
|
+
const n = a.params.navigation;
|
|
55
|
+
if (a.params.navigation = k(a, a.originalParams.navigation, a.params.navigation, {
|
|
56
|
+
nextEl: "swiper-button-next",
|
|
57
|
+
prevEl: "swiper-button-prev"
|
|
58
|
+
}), !(n.nextEl || n.prevEl)) return;
|
|
59
|
+
let t = E(n.nextEl), e = E(n.prevEl);
|
|
60
|
+
Object.assign(a.navigation, {
|
|
61
|
+
nextEl: t,
|
|
62
|
+
prevEl: e
|
|
63
|
+
}), t = s(t), e = s(e);
|
|
64
|
+
const i = (l, g) => {
|
|
65
|
+
if (l) {
|
|
66
|
+
if (n.addIcons && l.matches(".swiper-button-next,.swiper-button-prev") && !l.querySelector("svg")) {
|
|
67
|
+
const o = document.createElement("div");
|
|
68
|
+
y(o, b), l.appendChild(o.querySelector("svg")), o.remove();
|
|
69
|
+
}
|
|
70
|
+
l.addEventListener("click", g === "next" ? p : h);
|
|
71
|
+
}
|
|
72
|
+
!a.enabled && l && l.classList.add(...n.lockClass.split(" "));
|
|
73
|
+
};
|
|
74
|
+
t.forEach((l) => i(l, "next")), e.forEach((l) => i(l, "prev"));
|
|
75
|
+
}
|
|
76
|
+
function u() {
|
|
77
|
+
let {
|
|
78
|
+
nextEl: n,
|
|
79
|
+
prevEl: t
|
|
80
|
+
} = a.navigation;
|
|
81
|
+
n = s(n), t = s(t);
|
|
82
|
+
const e = (i, l) => {
|
|
83
|
+
i.removeEventListener("click", l === "next" ? p : h), i.classList.remove(...a.params.navigation.disabledClass.split(" "));
|
|
84
|
+
};
|
|
85
|
+
n.forEach((i) => e(i, "next")), t.forEach((i) => e(i, "prev"));
|
|
86
|
+
}
|
|
87
|
+
r("init", () => {
|
|
88
|
+
a.params.navigation.enabled === !1 ? C() : (m(), d());
|
|
89
|
+
}), r("toEdge fromEdge lock unlock", () => {
|
|
90
|
+
d();
|
|
91
|
+
}), r("destroy", () => {
|
|
92
|
+
u();
|
|
93
|
+
}), r("enable disable", () => {
|
|
94
|
+
let {
|
|
95
|
+
nextEl: n,
|
|
96
|
+
prevEl: t
|
|
97
|
+
} = a.navigation;
|
|
98
|
+
if (n = s(n), t = s(t), a.enabled) {
|
|
99
|
+
d();
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
[...n, ...t].filter((e) => !!e).forEach((e) => e.classList.add(a.params.navigation.lockClass));
|
|
103
|
+
}), r("click", (n, t) => {
|
|
104
|
+
let {
|
|
105
|
+
nextEl: e,
|
|
106
|
+
prevEl: i
|
|
107
|
+
} = a.navigation;
|
|
108
|
+
e = s(e), i = s(i);
|
|
109
|
+
const l = t.target;
|
|
110
|
+
let g = i.includes(l) || e.includes(l);
|
|
111
|
+
if (a.isElement && !g) {
|
|
112
|
+
const o = t.path || t.composedPath && t.composedPath();
|
|
113
|
+
o && (g = o.find((c) => e.includes(c) || i.includes(c)));
|
|
114
|
+
}
|
|
115
|
+
if (a.params.navigation.hideOnClick && !g) {
|
|
116
|
+
if (a.pagination && a.params.pagination && a.params.pagination.clickable && (a.pagination.el === l || a.pagination.el.contains(l))) return;
|
|
117
|
+
let o;
|
|
118
|
+
e.length ? o = e[0].classList.contains(a.params.navigation.hiddenClass) : i.length && (o = i[0].classList.contains(a.params.navigation.hiddenClass)), v(o === !0 ? "navigationShow" : "navigationHide"), [...e, ...i].filter((c) => !!c).forEach((c) => c.classList.toggle(a.params.navigation.hiddenClass));
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
const L = () => {
|
|
122
|
+
a.el.classList.remove(...a.params.navigation.navigationDisabledClass.split(" ")), m(), d();
|
|
123
|
+
}, C = () => {
|
|
124
|
+
a.el.classList.add(...a.params.navigation.navigationDisabledClass.split(" ")), u();
|
|
125
|
+
};
|
|
126
|
+
Object.assign(a.navigation, {
|
|
127
|
+
enable: L,
|
|
128
|
+
disable: C,
|
|
129
|
+
update: d,
|
|
130
|
+
init: m,
|
|
131
|
+
destroy: u
|
|
132
|
+
});
|
|
133
|
+
}
|
|
4
134
|
export {
|
|
5
|
-
|
|
6
|
-
n as hint,
|
|
7
|
-
i as iconSlot,
|
|
8
|
-
w as input,
|
|
9
|
-
p as inputWrapper,
|
|
10
|
-
e as inputWrapperDisabled,
|
|
11
|
-
l as inputWrapperError,
|
|
12
|
-
a as label,
|
|
13
|
-
o as requiredMark,
|
|
14
|
-
v as wrapper
|
|
135
|
+
N as default
|
|
15
136
|
};
|