@sachin-tosa/tosa 1.0.6 → 1.0.8
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/tosa.es.js +1 -1
- package/dist/tosa.umd.js +1 -1
- package/package.json +1 -1
package/dist/tosa.es.js
CHANGED
package/dist/tosa.umd.js
CHANGED
|
@@ -612,4 +612,4 @@ React keys must be passed directly to JSX without using spread:
|
|
|
612
612
|
height: 10px;
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
|
-
`,document.head.querySelector("[data-carousel-styles]")||(a.setAttribute("data-carousel-styles",""),document.head.appendChild(a)),{carouselContainer:"carouselContainer",carousel:"carousel",slideWrapper:"slideWrapper",slide:"slide",active:"active",slideImage:"slideImage",slideContent:"slideContent",slideTitle:"slideTitle",slideDescription:"slideDescription",arrow:"arrow",arrowLeft:"arrowLeft",arrowRight:"arrowRight",dots:"dots",dot:"dot"}})();function Q({slides:a=[{image:"https://images.unsplash.com/photo-1497436072909-60f360e1d4b1?w=1200",title:"Mountain Adventure",description:"Explore the breathtaking beauty of nature"},{image:"https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1200",title:"Ocean Views",description:"Discover serene coastal landscapes"},{image:"https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=1200",title:"Forest Trails",description:"Journey through lush green forests"},{image:"https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?w=1200",title:"Sunset Paradise",description:"Experience magical golden hour moments"}],autoPlay:h=!0,autoPlayInterval:u=5e3}){const[f,s]=g.useState(0),c=()=>{s(d=>(d+1)%a.length)},v=()=>{s(d=>(d-1+a.length)%a.length)},w=d=>{s(d)};return g.useEffect(()=>{if(h){const d=setInterval(c,u);return()=>clearInterval(d)}},[f,h,u]),r.jsx("div",{className:l.carouselContainer,children:r.jsxs("div",{className:l.carousel,children:[r.jsx("div",{className:l.slideWrapper,children:a.map((d,b)=>r.jsxs("div",{className:`${l.slide} ${b===f?l.active:""}`,children:[r.jsx("img",{src:d.image,alt:d.title,className:l.slideImage}),r.jsxs("div",{className:l.slideContent,children:[r.jsx("h2",{className:l.slideTitle,children:d.title}),r.jsx("p",{className:l.slideDescription,children:d.description})]})]},b))}),r.jsx("button",{className:`${l.arrow} ${l.arrowLeft}`,onClick:v,"aria-label":"Previous slide",children:"‹"}),r.jsx("button",{className:`${l.arrow} ${l.arrowRight}`,onClick:c,"aria-label":"Next slide",children:"›"}),r.jsx("div",{className:l.dots,children:a.map((d,b)=>r.jsx("button",{className:`${l.dot} ${b===f?l.active:""}`,onClick:()=>w(b),"aria-label":`Go to slide ${b+1}`},b))})]})})}m.Card=B,m.
|
|
615
|
+
`,document.head.querySelector("[data-carousel-styles]")||(a.setAttribute("data-carousel-styles",""),document.head.appendChild(a)),{carouselContainer:"carouselContainer",carousel:"carousel",slideWrapper:"slideWrapper",slide:"slide",active:"active",slideImage:"slideImage",slideContent:"slideContent",slideTitle:"slideTitle",slideDescription:"slideDescription",arrow:"arrow",arrowLeft:"arrowLeft",arrowRight:"arrowRight",dots:"dots",dot:"dot"}})();function Q({slides:a=[{image:"https://images.unsplash.com/photo-1497436072909-60f360e1d4b1?w=1200",title:"Mountain Adventure",description:"Explore the breathtaking beauty of nature"},{image:"https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1200",title:"Ocean Views",description:"Discover serene coastal landscapes"},{image:"https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=1200",title:"Forest Trails",description:"Journey through lush green forests"},{image:"https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?w=1200",title:"Sunset Paradise",description:"Experience magical golden hour moments"}],autoPlay:h=!0,autoPlayInterval:u=5e3}){const[f,s]=g.useState(0),c=()=>{s(d=>(d+1)%a.length)},v=()=>{s(d=>(d-1+a.length)%a.length)},w=d=>{s(d)};return g.useEffect(()=>{if(h){const d=setInterval(c,u);return()=>clearInterval(d)}},[f,h,u]),r.jsx("div",{className:l.carouselContainer,children:r.jsxs("div",{className:l.carousel,children:[r.jsx("div",{className:l.slideWrapper,children:a.map((d,b)=>r.jsxs("div",{className:`${l.slide} ${b===f?l.active:""}`,children:[r.jsx("img",{src:d.image,alt:d.title,className:l.slideImage}),r.jsxs("div",{className:l.slideContent,children:[r.jsx("h2",{className:l.slideTitle,children:d.title}),r.jsx("p",{className:l.slideDescription,children:d.description})]})]},b))}),r.jsx("button",{className:`${l.arrow} ${l.arrowLeft}`,onClick:v,"aria-label":"Previous slide",children:"‹"}),r.jsx("button",{className:`${l.arrow} ${l.arrowRight}`,onClick:c,"aria-label":"Next slide",children:"›"}),r.jsx("div",{className:l.dots,children:a.map((d,b)=>r.jsx("button",{className:`${l.dot} ${b===f?l.active:""}`,onClick:()=>w(b),"aria-label":`Go to slide ${b+1}`},b))})]})})}m.Card=B,m.Carousel=Q,m.HeroSection=Z,m.Navbar=H,Object.defineProperty(m,Symbol.toStringTag,{value:"Module"})}));
|
package/package.json
CHANGED