@stackshift-ui/testimonial 7.0.0-beta.6 → 7.0.0-beta.7
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/package.json +14 -14
- package/dist/chunk-7FRAH7BU.mjs +0 -1
- package/dist/chunk-AYMRUN5V.mjs +0 -1
- package/dist/chunk-C5Z2MH7K.mjs +0 -1
- package/dist/chunk-CSUF5DH7.mjs +0 -1
- package/dist/chunk-U76JJXJA.mjs +0 -1
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -2
- package/dist/index.mjs +0 -2
- package/dist/testimonial.d.ts +0 -8
- package/dist/testimonial.js +0 -1
- package/dist/testimonial.mjs +0 -1
- package/dist/testimonial_a.d.ts +0 -3
- package/dist/testimonial_a.js +0 -1
- package/dist/testimonial_a.mjs +0 -1
- package/dist/testimonial_b.d.ts +0 -3
- package/dist/testimonial_b.js +0 -1
- package/dist/testimonial_b.mjs +0 -1
- package/dist/testimonial_c.d.ts +0 -3
- package/dist/testimonial_c.js +0 -1
- package/dist/testimonial_c.mjs +0 -1
- package/dist/testimonial_d.d.ts +0 -3
- package/dist/testimonial_d.js +0 -1
- package/dist/testimonial_d.mjs +0 -1
- package/dist/types.d.ts +0 -362
- package/dist/types.js +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackshift-ui/testimonial",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "7.0.0-beta.
|
|
4
|
+
"version": "7.0.0-beta.7",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -34,25 +34,25 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"classnames": "^2.5.1",
|
|
37
|
-
"@stackshift-ui/scripts": "
|
|
38
|
-
"@stackshift-ui/avatar": "7.0.0-beta.
|
|
39
|
-
"@stackshift-ui/
|
|
40
|
-
"@stackshift-ui/
|
|
41
|
-
"@stackshift-ui/
|
|
42
|
-
"@stackshift-ui/
|
|
43
|
-
"@stackshift-ui/
|
|
44
|
-
"@stackshift-ui/
|
|
45
|
-
"@stackshift-ui/
|
|
46
|
-
"@stackshift-ui/
|
|
47
|
-
"@stackshift-ui/
|
|
48
|
-
"@stackshift-ui/
|
|
37
|
+
"@stackshift-ui/scripts": "7.0.0-beta.3",
|
|
38
|
+
"@stackshift-ui/avatar": "7.0.0-beta.5",
|
|
39
|
+
"@stackshift-ui/card": "7.0.0-beta.4",
|
|
40
|
+
"@stackshift-ui/system": "7.0.0-beta.4",
|
|
41
|
+
"@stackshift-ui/text": "7.0.0-beta.4",
|
|
42
|
+
"@stackshift-ui/heading": "7.0.0-beta.4",
|
|
43
|
+
"@stackshift-ui/swiper-pagination": "7.0.0-beta.4",
|
|
44
|
+
"@stackshift-ui/container": "7.0.0-beta.4",
|
|
45
|
+
"@stackshift-ui/flex": "7.0.0-beta.4",
|
|
46
|
+
"@stackshift-ui/image": "7.0.0-beta.5",
|
|
47
|
+
"@stackshift-ui/section": "7.0.0-beta.4",
|
|
48
|
+
"@stackshift-ui/swiper-button": "7.0.0-beta.6"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@types/react": "16.8 - 19",
|
|
52
52
|
"next": "10 - 14",
|
|
53
53
|
"react": "16.8 - 19",
|
|
54
54
|
"react-dom": "16.8 - 19",
|
|
55
|
-
"@stackshift-ui/system": ">=
|
|
55
|
+
"@stackshift-ui/system": ">=7.0.0-beta.4"
|
|
56
56
|
},
|
|
57
57
|
"peerDependenciesMeta": {
|
|
58
58
|
"next": {
|
package/dist/chunk-7FRAH7BU.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Card as x,CardContent as g}from"@stackshift-ui/card";import{Container as h}from"@stackshift-ui/container";import{Flex as u}from"@stackshift-ui/flex";import{Heading as w}from"@stackshift-ui/heading";import{Image as b}from"@stackshift-ui/image";import{Section as T}from"@stackshift-ui/section";import{SwiperButton as m}from"@stackshift-ui/swiper-button";import{Text as f}from"@stackshift-ui/text";import N from"react";import{jsx as l,jsxs as i}from"react/jsx-runtime";function v({caption:e,title:r,testimonials:a}){let[n,s]=N.useState(a);return i(T,{className:"py-10 overflow-hidden bg-background lg:py-20",children:[l(h,{className:"pb-6 lg:pb-16",maxWidth:1280,children:i(u,{wrap:!0,align:"center",justify:"center",className:"text-center lg:justify-between lg:text-left",children:[l(C,{caption:e,title:r}),l(I,{testimony:n,slider:p=>{s(c=>{if(!c||c.length===0)return c;let t=[...c];if(p==="next"){let o=t.shift();o&&t.push(o)}else if(p==="prev"){let o=t.pop();o&&t.unshift(o)}return t})}})]})}),l(k,{testimony:n})]})}function C({caption:e,title:r}){return i("div",{className:"w-full mb-4 lg:mb-0 lg:w-4/5",children:[l(f,{weight:"bold",className:"text-secondary",children:e}),l(w,{fontSize:"3xl",children:r})]})}function I({testimony:e,slider:r}){return e?i("div",{className:"w-full lg:w-1/5 flex items-center gap-4",children:[e&&(e==null?void 0:e.length)>=4&&l(m,{type:"left",className:"order-last p-5 mr-4 bg-white lg:order-first w-12 h-12 flex items-center justify-center",onClick:()=>r("prev"),ariaLabel:"Show previous testimonial"}),e&&(e==null?void 0:e.length)>=4&&l(m,{type:"right",className:"order-last p-5 bg-white w-12 h-12 flex items-center justify-center",onClick:()=>r("next"),ariaLabel:"Show next testimonial"})]}):null}function k({testimony:e}){var r;return e?l(u,{className:"relative",children:e&&l(u,{wrap:!0,className:"!items-stretch max-w-6xl px-2 mx-auto",children:(r=e==null?void 0:e.slice(0,3))==null?void 0:r.map((a,n)=>l(S,{item:a,index:n},a==null?void 0:a._key))})}):null}function S({item:e,index:r}){var a,n,s,d;return e?l("div",{className:"flex-1 w-full px-3 mb-4 lg:w-1/3",children:l(x,{className:"p-8 text-center h-full items-center rounded-md",children:i(g,{children:[l(f,{className:"mb-8 leading-loose",muted:!0,children:e==null?void 0:e.testimony}),((a=e==null?void 0:e.mainImage)==null?void 0:a.image)&&l("div",{className:"w-[48px] h-[48px] mx-auto border-0",children:l(b,{className:"w-full h-full object-cover rounded-full",width:48,height:48,src:`${(n=e==null?void 0:e.mainImage)==null?void 0:n.image}`,alt:(d=(s=e==null?void 0:e.mainImage)==null?void 0:s.alt)!=null?d:`testimonial-source-${e==null?void 0:e.name}-profile-image`})}),l(f,{className:"mb-1",fontSize:"2xl",weight:"bold",children:e==null?void 0:e.name}),l(f,{muted:!0,children:e==null?void 0:e.jobTitle})]})})},r):null}export{v as a};
|
package/dist/chunk-AYMRUN5V.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Card as n,CardContent as v}from"@stackshift-ui/card";import{Container as N}from"@stackshift-ui/container";import{Flex as S}from"@stackshift-ui/flex";import{Heading as y}from"@stackshift-ui/heading";import{Image as F}from"@stackshift-ui/image";import{Section as I}from"@stackshift-ui/section";import{SwiperPagination as j}from"@stackshift-ui/swiper-pagination";import{Text as o}from"@stackshift-ui/text";import h from"react";import{jsx as e,jsxs as d}from"react/jsx-runtime";function k({testimonials:r}){let[C,c]=h.useState(0);return e(I,{className:"py-20 bg-background",children:e(N,{maxWidth:1280,children:e(n,{className:"py-10 rounded-md",children:e(v,{className:"p-0 w-full h-full",children:d(S,{wrap:!0,align:"center",justify:"center",className:"max-w-5xl p-4",children:[e(A,{testimonials:r,testimony:C}),e(L,{testimonials:r,testimony:C,slider:f=>{c(f)}})]})})})})})}function A({testimonials:r,testimony:C}){var c,p,f,u,g,a,w,x,l,b,T,m;return r!=null&&r[C]?d("div",{className:"w-full mb-6 text-center lg:w-1/3",children:[(p=(c=r==null?void 0:r[C])==null?void 0:c.mainImage)!=null&&p.image?e(F,{width:128,height:128,className:"mx-auto border-0 w-[128px] h-[128px] object-cover rounded-full",src:`${(u=(f=r==null?void 0:r[C])==null?void 0:f.mainImage)==null?void 0:u.image}`,alt:(x=(a=(g=r==null?void 0:r[C])==null?void 0:g.mainImage)==null?void 0:a.alt)!=null?x:`testimonial-source-${(w=r==null?void 0:r[C])==null?void 0:w.name}-profile-image`}):null,(l=r==null?void 0:r[C])!=null&&l.name?e(o,{className:"text-xl",children:(b=r==null?void 0:r[C])==null?void 0:b.name}):null,(T=r==null?void 0:r[C])!=null&&T.jobTitle?e(o,{className:"text-primary",children:(m=r==null?void 0:r[C])==null?void 0:m.jobTitle}):null]}):null}function L({testimonials:r,testimony:C,slider:c}){var p;return r!=null&&r[C]?d("div",{className:"w-full lg:w-2/3",children:[d("svg",{className:"w-10 h-10 mb-4 text-primary",viewBox:"0 0 32 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M10.2418 12.749C9.45369 12.522 8.66554 12.4069 7.89887 12.4069C6.71496 12.4069 5.72709 12.6775 4.96109 13.0088C5.69957 10.3053 7.47358 5.6405 11.0075 5.11517C11.3348 5.0665 11.603 4.82986 11.6923 4.51131L12.4646 1.74875C12.5298 1.51512 12.4912 1.26505 12.3579 1.06231C12.2246 0.859563 12.0105 0.724288 11.7705 0.691393C11.5097 0.655812 11.2438 0.637686 10.9803 0.637686C6.73846 0.637686 2.53756 5.06516 0.764895 11.4046C-0.275679 15.1238 -0.580802 20.7154 1.98237 24.2349C3.41668 26.2043 5.50924 27.2559 8.20198 27.361C8.21305 27.3613 8.2238 27.3616 8.23487 27.3616C11.5573 27.3616 14.5035 25.1241 15.3997 21.9208C15.9351 20.0058 15.6931 17.9975 14.7176 16.2644C13.7526 14.5508 12.1632 13.3018 10.2418 12.749Z",fill:"currentColor"}),e("path",{d:"M31.0396 16.2648C30.0746 14.5508 28.4852 13.3018 26.5638 12.749C25.7757 12.522 24.9875 12.4069 24.2212 12.4069C23.0373 12.4069 22.0491 12.6775 21.2831 13.0088C22.0215 10.3053 23.7955 5.6405 27.3298 5.11517C27.6571 5.0665 27.9249 4.82986 28.0146 4.51131L28.7869 1.74875C28.8521 1.51512 28.8135 1.26505 28.6802 1.06231C28.5473 0.859563 28.3331 0.724288 28.0928 0.691393C27.8323 0.655812 27.5664 0.637686 27.3026 0.637686C23.0608 0.637686 18.8599 5.06516 17.0869 11.4046C16.0466 15.1238 15.7415 20.7154 18.305 24.2356C19.739 26.2046 21.8319 27.2566 24.5243 27.3613C24.5354 27.3616 24.5461 27.362 24.5575 27.362C27.8796 27.362 30.8261 25.1244 31.7224 21.9211C32.2571 20.0061 32.0147 17.9975 31.0396 16.2648Z",fill:"currentColor"})]}),e(y,{children:(p=r==null?void 0:r[C])==null?void 0:p.testimony}),(r==null?void 0:r.length)>1?e(h.Fragment,{children:r.map((f,u)=>e(j,{colorScheme:"blue",isActive:u===C,ariaLabel:`Show Testimonial ${u}`,onClick:()=>c(u)},u))}):null]}):null}export{k as a};
|
package/dist/chunk-C5Z2MH7K.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as p}from"./chunk-AYMRUN5V.mjs";import{a as c}from"./chunk-U76JJXJA.mjs";import{a as f}from"./chunk-7FRAH7BU.mjs";import{a as T}from"./chunk-CSUF5DH7.mjs";import{jsx as _}from"react/jsx-runtime";var a={variant_a:p,variant_b:c,variant_c:f,variant_d:T},u=({data:i})=>{var t,s,e,r,m,l;let n=i==null?void 0:i.variant,o=n&&a[n],v={caption:(s=(t=i==null?void 0:i.variants)==null?void 0:t.subtitle)!=null?s:void 0,title:(r=(e=i==null?void 0:i.variants)==null?void 0:e.title)!=null?r:void 0,testimonials:(l=(m=i==null?void 0:i.variants)==null?void 0:m.testimonials)!=null?l:void 0};return o?_(o,{...v}):null};u.displayName="Testimonial";export{u as a};
|
package/dist/chunk-CSUF5DH7.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Card as L,CardContent as k}from"@stackshift-ui/card";import{Container as B}from"@stackshift-ui/container";import{Flex as M}from"@stackshift-ui/flex";import{Image as R}from"@stackshift-ui/image";import{Section as $}from"@stackshift-ui/section";import{SwiperButton as a}from"@stackshift-ui/swiper-button";import{Text as p}from"@stackshift-ui/text";import z from"react";import{jsx as r,jsxs as g}from"react/jsx-runtime";function F({testimonials:e}){var t,C,h,u,w,o,m,b,v,N,y,S,T,j;let[c,x]=z.useState(0),d=n=>{!e||e.length<=1||x(n==="next"?l=>l!==e.length-1?l+1:0:l=>l>0?l-1:e.length-1)},I=n=>{let l=[];for(let f=0;f<n;f++)l.push(f);return l};return r($,{className:"py-20 bg-background",children:r(B,{maxWidth:1280,children:g("div",{className:"items-center justify-center md:space-x-8 lg:flex",children:[g("div",{className:"mb-10 text-center lg:hidden",children:[e&&(e==null?void 0:e.length)>1&&r(a,{type:"left",className:"p-4 mr-6 bg-white lg:order-first lg:mr-0 w-12 h-12 flex items-center justify-center",onClick:()=>d("prev"),ariaLabel:"Show previous testimonial"}),e&&(e==null?void 0:e.length)>1&&r(a,{type:"right",className:"p-4 mr-6 bg-white lg:order-first lg:mr-0 w-12 h-12 flex items-center justify-center",onClick:()=>d("next"),ariaLabel:"Show next testimonial"})]}),e&&(e==null?void 0:e.length)>1&&r(a,{type:"left",className:"hidden p-4 mr-6 bg-white lg:flex lg:order-first lg:mr-0 w-12 h-12 items-center justify-center",onClick:()=>d("prev"),ariaLabel:"Show previous testimonial"}),(e==null?void 0:e[c])&&r(L,{className:"w-full h-full",children:g(k,{className:"flex flex-wrap w-full rounded-md p-0",children:[((t=e==null?void 0:e[c])==null?void 0:t.rating)&&g("div",{className:"w-full py-10 text-center border-b lg:border-r lg:border-b-0 lg:w-1/3",children:[r("span",{className:"text-5xl font-bold lg:text-6xl",children:`${(C=e==null?void 0:e[c])==null?void 0:C.rating}.0`}),r(M,{align:"center",justify:"center",className:"mb-6 text-primary",children:((h=e==null?void 0:e[c])==null?void 0:h.rating)!==void 0&&I(Number((u=e==null?void 0:e[c])==null?void 0:u.rating)).map((n,l)=>r(P,{},l))}),r("div",{className:"object-contain w-32 h-24 mx-auto mb-6 rounded-full",children:((o=(w=e[c])==null?void 0:w.mainImage)==null?void 0:o.image)&&r(R,{className:"h-[96px] w-[128px] object-scale-down",src:`${(b=(m=e[c])==null?void 0:m.mainImage)==null?void 0:b.image}`,width:128,height:96,alt:(y=(N=(v=e[c])==null?void 0:v.mainImage)==null?void 0:N.alt)!=null?y:`testimonial-source-profile-image${c}`})})]}),g("div",{className:"w-full px-6 py-10 lg:w-2/3",children:[r(Z,{}),r(p,{muted:!0,className:"mb-10 text-xl leading-loose lg:text-2xl",children:(S=e[c])==null?void 0:S.testimony}),r(p,{weight:"bold",fontSize:"2xl",children:(T=e[c])==null?void 0:T.name}),r(p,{muted:!0,children:(j=e[c])==null?void 0:j.jobTitle})]})]})}),e&&(e==null?void 0:e.length)>1&&r(a,{type:"right",className:"hidden bg-white lg:flex p-4 mr-6 lg:mr-0 w-12 h-12 items-center justify-center",onClick:()=>d("next"),ariaLabel:"Show next testimonial"})]})})})}function P(){return r("svg",{className:"w-6 h-6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:r("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"})})}function Z(){return g("svg",{className:"w-10 h-10 mb-4 text-primary",viewBox:"0 0 32 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r("path",{d:"M10.2418 12.749C9.45369 12.522 8.66554 12.4069 7.89887 12.4069C6.71496 12.4069 5.72709 12.6775 4.96109 13.0088C5.69957 10.3053 7.47358 5.6405 11.0075 5.11517C11.3348 5.0665 11.603 4.82986 11.6923 4.51131L12.4646 1.74875C12.5298 1.51512 12.4912 1.26505 12.3579 1.06231C12.2246 0.859563 12.0105 0.724288 11.7705 0.691393C11.5097 0.655812 11.2438 0.637686 10.9803 0.637686C6.73846 0.637686 2.53756 5.06516 0.764895 11.4046C-0.275679 15.1238 -0.580802 20.7154 1.98237 24.2349C3.41668 26.2043 5.50924 27.2559 8.20198 27.361C8.21305 27.3613 8.2238 27.3616 8.23487 27.3616C11.5573 27.3616 14.5035 25.1241 15.3997 21.9208C15.9351 20.0058 15.6931 17.9975 14.7176 16.2644C13.7526 14.5508 12.1632 13.3018 10.2418 12.749Z",fill:"currentColor"}),r("path",{d:"M31.0396 16.2648C30.0746 14.5508 28.4852 13.3018 26.5638 12.749C25.7757 12.522 24.9875 12.4069 24.2212 12.4069C23.0373 12.4069 22.0491 12.6775 21.2831 13.0088C22.0215 10.3053 23.7955 5.6405 27.3298 5.11517C27.6571 5.0665 27.9249 4.82986 28.0146 4.51131L28.7869 1.74875C28.8521 1.51512 28.8135 1.26505 28.6802 1.06231C28.5473 0.859563 28.3331 0.724288 28.0928 0.691393C27.8323 0.655812 27.5664 0.637686 27.3026 0.637686C23.0608 0.637686 18.8599 5.06516 17.0869 11.4046C16.0466 15.1238 15.7415 20.7154 18.305 24.2356C19.739 26.2046 21.8319 27.2566 24.5243 27.3613C24.5354 27.3616 24.5461 27.362 24.5575 27.362C27.8796 27.362 30.8261 25.1244 31.7224 21.9211C32.2571 20.0061 32.0147 17.9975 31.0396 16.2648Z",fill:"currentColor"})]})}export{F as a};
|
package/dist/chunk-U76JJXJA.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Card as d,CardContent as x}from"@stackshift-ui/card";import{Container as f}from"@stackshift-ui/container";import{Flex as u}from"@stackshift-ui/flex";import{Heading as w}from"@stackshift-ui/heading";import{Section as g}from"@stackshift-ui/section";import{SwiperButton as c}from"@stackshift-ui/swiper-button";import{Text as o}from"@stackshift-ui/text";import{useState as h}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function v({caption:t,title:i,testimonials:n}){let[s,p]=h(n);return e(g,{className:"py-20 overflow-hidden bg-background",children:a(f,{maxWidth:1280,children:[e(u,{wrap:!0,align:"center",justify:"center",className:"pt-8 pb-16",children:e(N,{testimony:s,slider:m=>{p(C=>{let r=C||[];if(m==="next"){let l=r.length>0?r.shift():void 0;return l?[...r,l]:r}else if(m==="prev"){let l=r.length>0?r.pop():void 0;return l?[l,...r]:r}return r})},children:e(T,{caption:t,title:i})})}),e(b,{testimonials:s})]})})}function T({caption:t,title:i}){return a(f,{maxWidth:576,className:"mb-10 text-center ",children:[e(o,{weight:"bold",className:"text-secondary",children:t}),e(w,{fontSize:"3xl",className:"mt-4",children:i})]})}function N({testimony:t,slider:i,children:n}){return t?a("div",{className:"flex items-center justify-between w-full",children:[(t==null?void 0:t.length)>=4&&e(c,{type:"left",className:"p-4 bg-white w-12 h-12 flex items-center justify-center",onClick:()=>i("prev"),ariaLabel:"Show previous testimonial"}),e("div",{className:"flex-1 text-center",children:n}),(t==null?void 0:t.length)>=4&&e(c,{type:"right",className:"p-4 bg-white w-12 h-12 flex items-center justify-center",onClick:()=>i("next"),ariaLabel:"Show next testimonial"})]}):null}function b({testimonials:t}){return t?e("div",{className:"relative w-full",children:e(u,{wrap:!0,justify:"center",className:"!items-stretch mx-auto",children:t.slice(0,3).map((i,n)=>e(S,{...i},n))})}):null}function S({testimony:t,name:i,jobTitle:n}){return t?e("div",{className:"flex-1 mb-4 px-3 w-full lg:w-1/3",children:e(d,{className:"p-5 h-full rounded-md",children:a(x,{className:"p-0 w-full h-full",children:[e(j,{}),e(o,{className:"mb-4 leading-loose",muted:!0,children:t}),e(o,{weight:"bold",children:i}),e(o,{muted:!0,children:n})]})})}):null}function j(){return a("svg",{className:"w-8 h-8 mb-6 text-primary",viewBox:"0 0 32 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M10.2418 12.749C9.45369 12.522 8.66554 12.4069 7.89887 12.4069C6.71496 12.4069 5.72709 12.6775 4.96109 13.0088C5.69957 10.3053 7.47358 5.6405 11.0075 5.11517C11.3348 5.0665 11.603 4.82986 11.6923 4.51131L12.4646 1.74875C12.5298 1.51512 12.4912 1.26505 12.3579 1.06231C12.2246 0.859563 12.0105 0.724288 11.7705 0.691393C11.5097 0.655812 11.2438 0.637686 10.9803 0.637686C6.73846 0.637686 2.53756 5.06516 0.764895 11.4046C-0.275679 15.1238 -0.580802 20.7154 1.98237 24.2349C3.41668 26.2043 5.50924 27.2559 8.20198 27.361C8.21305 27.3613 8.2238 27.3616 8.23487 27.3616C11.5573 27.3616 14.5035 25.1241 15.3997 21.9208C15.9351 20.0058 15.6931 17.9975 14.7176 16.2644C13.7526 14.5508 12.1632 13.3018 10.2418 12.749Z",fill:"currentColor"}),e("path",{d:"M31.0396 16.2648C30.0746 14.5508 28.4852 13.3018 26.5638 12.749C25.7757 12.522 24.9875 12.4069 24.2212 12.4069C23.0373 12.4069 22.0491 12.6775 21.2831 13.0088C22.0215 10.3053 23.7955 5.6405 27.3298 5.11517C27.6571 5.0665 27.9249 4.82986 28.0146 4.51131L28.7869 1.74875C28.8521 1.51512 28.8135 1.26505 28.6802 1.06231C28.5473 0.859563 28.3331 0.724288 28.0928 0.691393C27.8323 0.655812 27.5664 0.637686 27.3026 0.637686C23.0608 0.637686 18.8599 5.06516 17.0869 11.4046C16.0466 15.1238 15.7415 20.7154 18.305 24.2356C19.739 26.2046 21.8319 27.2566 24.5243 27.3613C24.5354 27.3616 24.5461 27.362 24.5575 27.362C27.8796 27.362 30.8261 25.1244 31.7224 21.9211C32.2571 20.0061 32.0147 17.9975 31.0396 16.2648Z",fill:"currentColor"})]})}export{v as a};
|
package/dist/index.d.ts
DELETED
package/dist/index.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";var C1=Object.create;var N=Object.defineProperty;var x1=Object.getOwnPropertyDescriptor;var h1=Object.getOwnPropertyNames;var w1=Object.getPrototypeOf,s1=Object.prototype.hasOwnProperty;var b1=(e,r)=>{for(var n in r)N(e,n,{get:r[n],enumerable:!0})},G=(e,r,n,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of h1(r))!s1.call(e,i)&&i!==n&&N(e,i,{get:()=>r[i],enumerable:!(o=x1(r,i))||o.enumerable});return e};var H=(e,r,n)=>(n=e!=null?C1(w1(e)):{},G(r||!e||!e.__esModule?N(n,"default",{value:e,enumerable:!0}):n,e)),v1=e=>G(N({},"__esModule",{value:!0}),e);var $1={};b1($1,{Testimonial:()=>d1,Testimonial_A:()=>y,Testimonial_B:()=>j,Testimonial_C:()=>F,Testimonial_D:()=>_});module.exports=v1($1);var S=require("@stackshift-ui/card"),J=require("@stackshift-ui/container"),K=require("@stackshift-ui/flex"),O=require("@stackshift-ui/heading"),U=require("@stackshift-ui/image"),X=require("@stackshift-ui/section"),Y=require("@stackshift-ui/swiper-pagination"),$=require("@stackshift-ui/text"),M=H(require("react")),p=require("react/jsx-runtime");function y({testimonials:e}){let[r,n]=M.default.useState(0);return(0,p.jsx)(X.Section,{className:"py-20 bg-background",children:(0,p.jsx)(J.Container,{maxWidth:1280,children:(0,p.jsx)(S.Card,{className:"py-10 rounded-md",children:(0,p.jsx)(S.CardContent,{className:"p-0 w-full h-full",children:(0,p.jsxs)(K.Flex,{wrap:!0,align:"center",justify:"center",className:"max-w-5xl p-4",children:[(0,p.jsx)(T1,{testimonials:e,testimony:r}),(0,p.jsx)(N1,{testimonials:e,testimony:r,slider:i=>{n(i)}})]})})})})})}function T1({testimonials:e,testimony:r}){var n,o,i,m,d,u,c,f,C,x,h,w;return e!=null&&e[r]?(0,p.jsxs)("div",{className:"w-full mb-6 text-center lg:w-1/3",children:[(o=(n=e==null?void 0:e[r])==null?void 0:n.mainImage)!=null&&o.image?(0,p.jsx)(U.Image,{width:128,height:128,className:"mx-auto border-0 w-[128px] h-[128px] object-cover rounded-full",src:`${(m=(i=e==null?void 0:e[r])==null?void 0:i.mainImage)==null?void 0:m.image}`,alt:(f=(u=(d=e==null?void 0:e[r])==null?void 0:d.mainImage)==null?void 0:u.alt)!=null?f:`testimonial-source-${(c=e==null?void 0:e[r])==null?void 0:c.name}-profile-image`}):null,(C=e==null?void 0:e[r])!=null&&C.name?(0,p.jsx)($.Text,{className:"text-xl",children:(x=e==null?void 0:e[r])==null?void 0:x.name}):null,(h=e==null?void 0:e[r])!=null&&h.jobTitle?(0,p.jsx)($.Text,{className:"text-primary",children:(w=e==null?void 0:e[r])==null?void 0:w.jobTitle}):null]}):null}function N1({testimonials:e,testimony:r,slider:n}){var o;return e!=null&&e[r]?(0,p.jsxs)("div",{className:"w-full lg:w-2/3",children:[(0,p.jsxs)("svg",{className:"w-10 h-10 mb-4 text-primary",viewBox:"0 0 32 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,p.jsx)("path",{d:"M10.2418 12.749C9.45369 12.522 8.66554 12.4069 7.89887 12.4069C6.71496 12.4069 5.72709 12.6775 4.96109 13.0088C5.69957 10.3053 7.47358 5.6405 11.0075 5.11517C11.3348 5.0665 11.603 4.82986 11.6923 4.51131L12.4646 1.74875C12.5298 1.51512 12.4912 1.26505 12.3579 1.06231C12.2246 0.859563 12.0105 0.724288 11.7705 0.691393C11.5097 0.655812 11.2438 0.637686 10.9803 0.637686C6.73846 0.637686 2.53756 5.06516 0.764895 11.4046C-0.275679 15.1238 -0.580802 20.7154 1.98237 24.2349C3.41668 26.2043 5.50924 27.2559 8.20198 27.361C8.21305 27.3613 8.2238 27.3616 8.23487 27.3616C11.5573 27.3616 14.5035 25.1241 15.3997 21.9208C15.9351 20.0058 15.6931 17.9975 14.7176 16.2644C13.7526 14.5508 12.1632 13.3018 10.2418 12.749Z",fill:"currentColor"}),(0,p.jsx)("path",{d:"M31.0396 16.2648C30.0746 14.5508 28.4852 13.3018 26.5638 12.749C25.7757 12.522 24.9875 12.4069 24.2212 12.4069C23.0373 12.4069 22.0491 12.6775 21.2831 13.0088C22.0215 10.3053 23.7955 5.6405 27.3298 5.11517C27.6571 5.0665 27.9249 4.82986 28.0146 4.51131L28.7869 1.74875C28.8521 1.51512 28.8135 1.26505 28.6802 1.06231C28.5473 0.859563 28.3331 0.724288 28.0928 0.691393C27.8323 0.655812 27.5664 0.637686 27.3026 0.637686C23.0608 0.637686 18.8599 5.06516 17.0869 11.4046C16.0466 15.1238 15.7415 20.7154 18.305 24.2356C19.739 26.2046 21.8319 27.2566 24.5243 27.3613C24.5354 27.3616 24.5461 27.362 24.5575 27.362C27.8796 27.362 30.8261 25.1244 31.7224 21.9211C32.2571 20.0061 32.0147 17.9975 31.0396 16.2648Z",fill:"currentColor"})]}),(0,p.jsx)(O.Heading,{children:(o=e==null?void 0:e[r])==null?void 0:o.testimony}),(e==null?void 0:e.length)>1?(0,p.jsx)(M.default.Fragment,{children:e.map((i,m)=>(0,p.jsx)(Y.SwiperPagination,{colorScheme:"blue",isActive:m===r,ariaLabel:`Show Testimonial ${m}`,onClick:()=>n(m)},m))}):null]}):null}var Z=require("@stackshift-ui/swiper-button"),n1=require("react");function j({caption:e,title:r,testimonials:n}){let[o,i]=(0,n1.useState)(n);return(0,p.jsx)(X.Section,{className:"py-20 overflow-hidden bg-background",children:(0,p.jsxs)(J.Container,{maxWidth:1280,children:[(0,p.jsx)(K.Flex,{wrap:!0,align:"center",justify:"center",className:"pt-8 pb-16",children:(0,p.jsx)(y1,{testimony:o,slider:d=>{i(u=>{let c=u||[];if(d==="next"){let f=c.length>0?c.shift():void 0;return f?[...c,f]:c}else if(d==="prev"){let f=c.length>0?c.pop():void 0;return f?[f,...c]:c}return c})},children:(0,p.jsx)(S1,{caption:e,title:r})})}),(0,p.jsx)(I1,{testimonials:o})]})})}function S1({caption:e,title:r}){return(0,p.jsxs)(J.Container,{maxWidth:576,className:"mb-10 text-center ",children:[(0,p.jsx)($.Text,{weight:"bold",className:"text-secondary",children:e}),(0,p.jsx)(O.Heading,{fontSize:"3xl",className:"mt-4",children:r})]})}function y1({testimony:e,slider:r,children:n}){return e?(0,p.jsxs)("div",{className:"flex items-center justify-between w-full",children:[(e==null?void 0:e.length)>=4&&(0,p.jsx)(Z.SwiperButton,{type:"left",className:"p-4 bg-white w-12 h-12 flex items-center justify-center",onClick:()=>r("prev"),ariaLabel:"Show previous testimonial"}),(0,p.jsx)("div",{className:"flex-1 text-center",children:n}),(e==null?void 0:e.length)>=4&&(0,p.jsx)(Z.SwiperButton,{type:"right",className:"p-4 bg-white w-12 h-12 flex items-center justify-center",onClick:()=>r("next"),ariaLabel:"Show next testimonial"})]}):null}function I1({testimonials:e}){return e?(0,p.jsx)("div",{className:"relative w-full",children:(0,p.jsx)(K.Flex,{wrap:!0,justify:"center",className:"!items-stretch mx-auto",children:e.slice(0,3).map((r,n)=>(0,p.jsx)(j1,{...r},n))})}):null}function j1({testimony:e,name:r,jobTitle:n}){return e?(0,p.jsx)("div",{className:"flex-1 mb-4 px-3 w-full lg:w-1/3",children:(0,p.jsx)(S.Card,{className:"p-5 h-full rounded-md",children:(0,p.jsxs)(S.CardContent,{className:"p-0 w-full h-full",children:[(0,p.jsx)(k1,{}),(0,p.jsx)($.Text,{className:"mb-4 leading-loose",muted:!0,children:e}),(0,p.jsx)($.Text,{weight:"bold",children:r}),(0,p.jsx)($.Text,{muted:!0,children:n})]})})}):null}function k1(){return(0,p.jsxs)("svg",{className:"w-8 h-8 mb-6 text-primary",viewBox:"0 0 32 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,p.jsx)("path",{d:"M10.2418 12.749C9.45369 12.522 8.66554 12.4069 7.89887 12.4069C6.71496 12.4069 5.72709 12.6775 4.96109 13.0088C5.69957 10.3053 7.47358 5.6405 11.0075 5.11517C11.3348 5.0665 11.603 4.82986 11.6923 4.51131L12.4646 1.74875C12.5298 1.51512 12.4912 1.26505 12.3579 1.06231C12.2246 0.859563 12.0105 0.724288 11.7705 0.691393C11.5097 0.655812 11.2438 0.637686 10.9803 0.637686C6.73846 0.637686 2.53756 5.06516 0.764895 11.4046C-0.275679 15.1238 -0.580802 20.7154 1.98237 24.2349C3.41668 26.2043 5.50924 27.2559 8.20198 27.361C8.21305 27.3613 8.2238 27.3616 8.23487 27.3616C11.5573 27.3616 14.5035 25.1241 15.3997 21.9208C15.9351 20.0058 15.6931 17.9975 14.7176 16.2644C13.7526 14.5508 12.1632 13.3018 10.2418 12.749Z",fill:"currentColor"}),(0,p.jsx)("path",{d:"M31.0396 16.2648C30.0746 14.5508 28.4852 13.3018 26.5638 12.749C25.7757 12.522 24.9875 12.4069 24.2212 12.4069C23.0373 12.4069 22.0491 12.6775 21.2831 13.0088C22.0215 10.3053 23.7955 5.6405 27.3298 5.11517C27.6571 5.0665 27.9249 4.82986 28.0146 4.51131L28.7869 1.74875C28.8521 1.51512 28.8135 1.26505 28.6802 1.06231C28.5473 0.859563 28.3331 0.724288 28.0928 0.691393C27.8323 0.655812 27.5664 0.637686 27.3026 0.637686C23.0608 0.637686 18.8599 5.06516 17.0869 11.4046C16.0466 15.1238 15.7415 20.7154 18.305 24.2356C19.739 26.2046 21.8319 27.2566 24.5243 27.3613C24.5354 27.3616 24.5461 27.362 24.5575 27.362C27.8796 27.362 30.8261 25.1244 31.7224 21.9211C32.2571 20.0061 32.0147 17.9975 31.0396 16.2648Z",fill:"currentColor"})]})}var c1=H(require("react"));function F({caption:e,title:r,testimonials:n}){let[o,i]=c1.default.useState(n);return(0,p.jsxs)(X.Section,{className:"py-10 overflow-hidden bg-background lg:py-20",children:[(0,p.jsx)(J.Container,{className:"pb-6 lg:pb-16",maxWidth:1280,children:(0,p.jsxs)(K.Flex,{wrap:!0,align:"center",justify:"center",className:"text-center lg:justify-between lg:text-left",children:[(0,p.jsx)(L1,{caption:e,title:r}),(0,p.jsx)(F1,{testimony:o,slider:d=>{i(u=>{if(!u||u.length===0)return u;let c=[...u];if(d==="next"){let f=c.shift();f&&c.push(f)}else if(d==="prev"){let f=c.pop();f&&c.unshift(f)}return c})}})]})}),(0,p.jsx)(P1,{testimony:o})]})}function L1({caption:e,title:r}){return(0,p.jsxs)("div",{className:"w-full mb-4 lg:mb-0 lg:w-4/5",children:[(0,p.jsx)($.Text,{weight:"bold",className:"text-secondary",children:e}),(0,p.jsx)(O.Heading,{fontSize:"3xl",children:r})]})}function F1({testimony:e,slider:r}){return e?(0,p.jsxs)("div",{className:"w-full lg:w-1/5 flex items-center gap-4",children:[e&&(e==null?void 0:e.length)>=4&&(0,p.jsx)(Z.SwiperButton,{type:"left",className:"order-last p-5 mr-4 bg-white lg:order-first w-12 h-12 flex items-center justify-center",onClick:()=>r("prev"),ariaLabel:"Show previous testimonial"}),e&&(e==null?void 0:e.length)>=4&&(0,p.jsx)(Z.SwiperButton,{type:"right",className:"order-last p-5 bg-white w-12 h-12 flex items-center justify-center",onClick:()=>r("next"),ariaLabel:"Show next testimonial"})]}):null}function P1({testimony:e}){var r;return e?(0,p.jsx)(K.Flex,{className:"relative",children:e&&(0,p.jsx)(K.Flex,{wrap:!0,className:"!items-stretch max-w-6xl px-2 mx-auto",children:(r=e==null?void 0:e.slice(0,3))==null?void 0:r.map((n,o)=>(0,p.jsx)(R1,{item:n,index:o},n==null?void 0:n._key))})}):null}function R1({item:e,index:r}){var n,o,i,m;return e?(0,p.jsx)("div",{className:"flex-1 w-full px-3 mb-4 lg:w-1/3",children:(0,p.jsx)(S.Card,{className:"p-8 text-center h-full items-center rounded-md",children:(0,p.jsxs)(S.CardContent,{children:[(0,p.jsx)($.Text,{className:"mb-8 leading-loose",muted:!0,children:e==null?void 0:e.testimony}),((n=e==null?void 0:e.mainImage)==null?void 0:n.image)&&(0,p.jsx)("div",{className:"w-[48px] h-[48px] mx-auto border-0",children:(0,p.jsx)(U.Image,{className:"w-full h-full object-cover rounded-full",width:48,height:48,src:`${(o=e==null?void 0:e.mainImage)==null?void 0:o.image}`,alt:(m=(i=e==null?void 0:e.mainImage)==null?void 0:i.alt)!=null?m:`testimonial-source-${e==null?void 0:e.name}-profile-image`})}),(0,p.jsx)($.Text,{className:"mb-1",fontSize:"2xl",weight:"bold",children:e==null?void 0:e.name}),(0,p.jsx)($.Text,{muted:!0,children:e==null?void 0:e.jobTitle})]})})},r):null}var u1=H(require("react"));function _({testimonials:e}){var m,d,u,c,f,C,x,h,w,V,D,Q,q,E;let[r,n]=u1.default.useState(0),o=T=>{!e||e.length<=1||n(T==="next"?g=>g!==e.length-1?g+1:0:g=>g>0?g-1:e.length-1)},i=T=>{let g=[];for(let B=0;B<T;B++)g.push(B);return g};return(0,p.jsx)(X.Section,{className:"py-20 bg-background",children:(0,p.jsx)(J.Container,{maxWidth:1280,children:(0,p.jsxs)("div",{className:"items-center justify-center md:space-x-8 lg:flex",children:[(0,p.jsxs)("div",{className:"mb-10 text-center lg:hidden",children:[e&&(e==null?void 0:e.length)>1&&(0,p.jsx)(Z.SwiperButton,{type:"left",className:"p-4 mr-6 bg-white lg:order-first lg:mr-0 w-12 h-12 flex items-center justify-center",onClick:()=>o("prev"),ariaLabel:"Show previous testimonial"}),e&&(e==null?void 0:e.length)>1&&(0,p.jsx)(Z.SwiperButton,{type:"right",className:"p-4 mr-6 bg-white lg:order-first lg:mr-0 w-12 h-12 flex items-center justify-center",onClick:()=>o("next"),ariaLabel:"Show next testimonial"})]}),e&&(e==null?void 0:e.length)>1&&(0,p.jsx)(Z.SwiperButton,{type:"left",className:"hidden p-4 mr-6 bg-white lg:flex lg:order-first lg:mr-0 w-12 h-12 items-center justify-center",onClick:()=>o("prev"),ariaLabel:"Show previous testimonial"}),(e==null?void 0:e[r])&&(0,p.jsx)(S.Card,{className:"w-full h-full",children:(0,p.jsxs)(S.CardContent,{className:"flex flex-wrap w-full rounded-md p-0",children:[((m=e==null?void 0:e[r])==null?void 0:m.rating)&&(0,p.jsxs)("div",{className:"w-full py-10 text-center border-$ lg:border-r lg:border-$-0 lg:w-1/3",children:[(0,p.jsx)("span",{className:"text-5xl font-bold lg:text-6xl",children:`${(d=e==null?void 0:e[r])==null?void 0:d.rating}.0`}),(0,p.jsx)(K.Flex,{align:"center",justify:"center",className:"mb-6 text-primary",children:((u=e==null?void 0:e[r])==null?void 0:u.rating)!==void 0&&i(Number((c=e==null?void 0:e[r])==null?void 0:c.rating)).map((T,g)=>(0,p.jsx)(_1,{},g))}),(0,p.jsx)("div",{className:"object-contain w-32 h-24 mx-auto mb-6 rounded-full",children:((C=(f=e[r])==null?void 0:f.mainImage)==null?void 0:C.image)&&(0,p.jsx)(U.Image,{className:"h-[96px] w-[128px] object-scale-down",src:`${(h=(x=e[r])==null?void 0:x.mainImage)==null?void 0:h.image}`,width:128,height:96,alt:(D=(V=(w=e[r])==null?void 0:w.mainImage)==null?void 0:V.alt)!=null?D:`testimonial-source-profile-image${r}`})})]}),(0,p.jsxs)("div",{className:"w-full px-6 py-10 lg:w-2/3",children:[(0,p.jsx)(B1,{}),(0,p.jsx)($.Text,{muted:!0,className:"mb-10 text-xl leading-loose lg:text-2xl",children:(Q=e[r])==null?void 0:Q.testimony}),(0,p.jsx)($.Text,{weight:"bold",fontSize:"2xl",children:(q=e[r])==null?void 0:q.name}),(0,p.jsx)($.Text,{muted:!0,children:(E=e[r])==null?void 0:E.jobTitle})]})]})}),e&&(e==null?void 0:e.length)>1&&(0,p.jsx)(Z.SwiperButton,{type:"right",className:"hidden bg-white lg:flex p-4 mr-6 lg:mr-0 w-12 h-12 items-center justify-center",onClick:()=>o("next"),ariaLabel:"Show next testimonial"})]})})})}function _1(){return(0,p.jsx)("svg",{className:"w-6 h-6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,p.jsx)("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"})})}function B1(){return(0,p.jsxs)("svg",{className:"w-10 h-10 mb-4 text-primary",viewBox:"0 0 32 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,p.jsx)("path",{d:"M10.2418 12.749C9.45369 12.522 8.66554 12.4069 7.89887 12.4069C6.71496 12.4069 5.72709 12.6775 4.96109 13.0088C5.69957 10.3053 7.47358 5.6405 11.0075 5.11517C11.3348 5.0665 11.603 4.82986 11.6923 4.51131L12.4646 1.74875C12.5298 1.51512 12.4912 1.26505 12.3579 1.06231C12.2246 0.859563 12.0105 0.724288 11.7705 0.691393C11.5097 0.655812 11.2438 0.637686 10.9803 0.637686C6.73846 0.637686 2.53756 5.06516 0.764895 11.4046C-0.275679 15.1238 -0.580802 20.7154 1.98237 24.2349C3.41668 26.2043 5.50924 27.2559 8.20198 27.361C8.21305 27.3613 8.2238 27.3616 8.23487 27.3616C11.5573 27.3616 14.5035 25.1241 15.3997 21.9208C15.9351 20.0058 15.6931 17.9975 14.7176 16.2644C13.7526 14.5508 12.1632 13.3018 10.2418 12.749Z",fill:"currentColor"}),(0,p.jsx)("path",{d:"M31.0396 16.2648C30.0746 14.5508 28.4852 13.3018 26.5638 12.749C25.7757 12.522 24.9875 12.4069 24.2212 12.4069C23.0373 12.4069 22.0491 12.6775 21.2831 13.0088C22.0215 10.3053 23.7955 5.6405 27.3298 5.11517C27.6571 5.0665 27.9249 4.82986 28.0146 4.51131L28.7869 1.74875C28.8521 1.51512 28.8135 1.26505 28.6802 1.06231C28.5473 0.859563 28.3331 0.724288 28.0928 0.691393C27.8323 0.655812 27.5664 0.637686 27.3026 0.637686C23.0608 0.637686 18.8599 5.06516 17.0869 11.4046C16.0466 15.1238 15.7415 20.7154 18.305 24.2356C19.739 26.2046 21.8319 27.2566 24.5243 27.3613C24.5354 27.3616 24.5461 27.362 24.5575 27.362C27.8796 27.362 30.8261 25.1244 31.7224 21.9211C32.2571 20.0061 32.0147 17.9975 31.0396 16.2648Z",fill:"currentColor"})]})}var H1={variant_a:y,variant_b:j,variant_c:F,variant_d:_},d1=({data:e})=>{var i,m,d,u,c,f;let r=e==null?void 0:e.variant,n=r&&H1[r],o={caption:(m=(i=e==null?void 0:e.variants)==null?void 0:i.subtitle)!=null?m:void 0,title:(u=(d=e==null?void 0:e.variants)==null?void 0:d.title)!=null?u:void 0,testimonials:(f=(c=e==null?void 0:e.variants)==null?void 0:c.testimonials)!=null?f:void 0};return n?(0,p.jsx)(n,{...o}):null};d1.displayName="Testimonial";0&&(module.exports={Testimonial,Testimonial_A,Testimonial_B,Testimonial_C,Testimonial_D});
|
package/dist/index.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";import{a as f}from"./chunk-C5Z2MH7K.mjs";import{a as o}from"./chunk-AYMRUN5V.mjs";import{a as r}from"./chunk-U76JJXJA.mjs";import{a as e}from"./chunk-7FRAH7BU.mjs";import{a as t}from"./chunk-CSUF5DH7.mjs";export{f as Testimonial,o as Testimonial_A,r as Testimonial_B,e as Testimonial_C,t as Testimonial_D};
|
package/dist/testimonial.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Testimonial as ITestimonial, SectionsProps } from "./types";
|
|
3
|
-
export interface TestimonialProps {
|
|
4
|
-
caption?: string;
|
|
5
|
-
title?: string;
|
|
6
|
-
testimonials?: ITestimonial[];
|
|
7
|
-
}
|
|
8
|
-
export declare const Testimonial: React.FC<SectionsProps>;
|
package/dist/testimonial.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var C1=Object.create;var N=Object.defineProperty;var x1=Object.getOwnPropertyDescriptor;var h1=Object.getOwnPropertyNames;var w1=Object.getPrototypeOf,s1=Object.prototype.hasOwnProperty;var b1=(e,r)=>{for(var n in r)N(e,n,{get:r[n],enumerable:!0})},G=(e,r,n,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of h1(r))!s1.call(e,i)&&i!==n&&N(e,i,{get:()=>r[i],enumerable:!(a=x1(r,i))||a.enumerable});return e};var P=(e,r,n)=>(n=e!=null?C1(w1(e)):{},G(r||!e||!e.__esModule?N(n,"default",{value:e,enumerable:!0}):n,e)),v1=e=>G(N({},"__esModule",{value:!0}),e);var $1={};b1($1,{Testimonial:()=>d1});module.exports=v1($1);var S=require("@stackshift-ui/card"),J=require("@stackshift-ui/container"),K=require("@stackshift-ui/flex"),O=require("@stackshift-ui/heading"),U=require("@stackshift-ui/image"),X=require("@stackshift-ui/section"),Y=require("@stackshift-ui/swiper-pagination"),R=require("@stackshift-ui/text"),_=P(require("react")),p=require("react/jsx-runtime");function B({testimonials:e}){let[r,n]=_.default.useState(0);return(0,p.jsx)(X.Section,{className:"py-20 bg-background",children:(0,p.jsx)(J.Container,{maxWidth:1280,children:(0,p.jsx)(S.Card,{className:"py-10 rounded-md",children:(0,p.jsx)(S.CardContent,{className:"p-0 w-full h-full",children:(0,p.jsxs)(K.Flex,{wrap:!0,align:"center",justify:"center",className:"max-w-5xl p-4",children:[(0,p.jsx)(T1,{testimonials:e,testimony:r}),(0,p.jsx)(N1,{testimonials:e,testimony:r,slider:i=>{n(i)}})]})})})})})}function T1({testimonials:e,testimony:r}){var n,a,i,m,d,u,c,f,C,x,h,w;return e!=null&&e[r]?(0,p.jsxs)("div",{className:"w-full mb-6 text-center lg:w-1/3",children:[(a=(n=e==null?void 0:e[r])==null?void 0:n.mainImage)!=null&&a.image?(0,p.jsx)(U.Image,{width:128,height:128,className:"mx-auto border-0 w-[128px] h-[128px] object-cover rounded-full",src:`${(m=(i=e==null?void 0:e[r])==null?void 0:i.mainImage)==null?void 0:m.image}`,alt:(f=(u=(d=e==null?void 0:e[r])==null?void 0:d.mainImage)==null?void 0:u.alt)!=null?f:`testimonial-source-${(c=e==null?void 0:e[r])==null?void 0:c.name}-profile-image`}):null,(C=e==null?void 0:e[r])!=null&&C.name?(0,p.jsx)(R.Text,{className:"text-xl",children:(x=e==null?void 0:e[r])==null?void 0:x.name}):null,(h=e==null?void 0:e[r])!=null&&h.jobTitle?(0,p.jsx)(R.Text,{className:"text-primary",children:(w=e==null?void 0:e[r])==null?void 0:w.jobTitle}):null]}):null}function N1({testimonials:e,testimony:r,slider:n}){var a;return e!=null&&e[r]?(0,p.jsxs)("div",{className:"w-full lg:w-2/3",children:[(0,p.jsxs)("svg",{className:"w-10 h-10 mb-4 text-primary",viewBox:"0 0 32 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,p.jsx)("path",{d:"M10.2418 12.749C9.45369 12.522 8.66554 12.4069 7.89887 12.4069C6.71496 12.4069 5.72709 12.6775 4.96109 13.0088C5.69957 10.3053 7.47358 5.6405 11.0075 5.11517C11.3348 5.0665 11.603 4.82986 11.6923 4.51131L12.4646 1.74875C12.5298 1.51512 12.4912 1.26505 12.3579 1.06231C12.2246 0.859563 12.0105 0.724288 11.7705 0.691393C11.5097 0.655812 11.2438 0.637686 10.9803 0.637686C6.73846 0.637686 2.53756 5.06516 0.764895 11.4046C-0.275679 15.1238 -0.580802 20.7154 1.98237 24.2349C3.41668 26.2043 5.50924 27.2559 8.20198 27.361C8.21305 27.3613 8.2238 27.3616 8.23487 27.3616C11.5573 27.3616 14.5035 25.1241 15.3997 21.9208C15.9351 20.0058 15.6931 17.9975 14.7176 16.2644C13.7526 14.5508 12.1632 13.3018 10.2418 12.749Z",fill:"currentColor"}),(0,p.jsx)("path",{d:"M31.0396 16.2648C30.0746 14.5508 28.4852 13.3018 26.5638 12.749C25.7757 12.522 24.9875 12.4069 24.2212 12.4069C23.0373 12.4069 22.0491 12.6775 21.2831 13.0088C22.0215 10.3053 23.7955 5.6405 27.3298 5.11517C27.6571 5.0665 27.9249 4.82986 28.0146 4.51131L28.7869 1.74875C28.8521 1.51512 28.8135 1.26505 28.6802 1.06231C28.5473 0.859563 28.3331 0.724288 28.0928 0.691393C27.8323 0.655812 27.5664 0.637686 27.3026 0.637686C23.0608 0.637686 18.8599 5.06516 17.0869 11.4046C16.0466 15.1238 15.7415 20.7154 18.305 24.2356C19.739 26.2046 21.8319 27.2566 24.5243 27.3613C24.5354 27.3616 24.5461 27.362 24.5575 27.362C27.8796 27.362 30.8261 25.1244 31.7224 21.9211C32.2571 20.0061 32.0147 17.9975 31.0396 16.2648Z",fill:"currentColor"})]}),(0,p.jsx)(O.Heading,{children:(a=e==null?void 0:e[r])==null?void 0:a.testimony}),(e==null?void 0:e.length)>1?(0,p.jsx)(_.default.Fragment,{children:e.map((i,m)=>(0,p.jsx)(Y.SwiperPagination,{colorScheme:"blue",isActive:m===r,ariaLabel:`Show Testimonial ${m}`,onClick:()=>n(m)},m))}):null]}):null}var H=require("@stackshift-ui/swiper-button"),n1=require("react");function Z({caption:e,title:r,testimonials:n}){let[a,i]=(0,n1.useState)(n);return(0,p.jsx)(X.Section,{className:"py-20 overflow-hidden bg-background",children:(0,p.jsxs)($.Container,{maxWidth:1280,children:[(0,p.jsx)(K.Flex,{wrap:!0,align:"center",justify:"center",className:"pt-8 pb-16",children:(0,p.jsx)(y1,{testimony:a,slider:d=>{i(u=>{let c=u||[];if(d==="next"){let f=c.length>0?c.shift():void 0;return f?[...c,f]:c}else if(d==="prev"){let f=c.length>0?c.pop():void 0;return f?[f,...c]:c}return c})},children:(0,p.jsx)(S1,{caption:e,title:r})})}),(0,p.jsx)(I1,{testimonials:a})]})})}function S1({caption:e,title:r}){return(0,p.jsxs)($.Container,{maxWidth:576,className:"mb-10 text-center ",children:[(0,p.jsx)(R.Text,{weight:"bold",className:"text-secondary",children:e}),(0,p.jsx)(O.Heading,{fontSize:"3xl",className:"mt-4",children:r})]})}function y1({testimony:e,slider:r,children:n}){return e?(0,p.jsxs)("div",{className:"flex items-center justify-between w-full",children:[(e==null?void 0:e.length)>=4&&(0,p.jsx)(H.SwiperButton,{type:"left",className:"p-4 bg-white w-12 h-12 flex items-center justify-center",onClick:()=>r("prev"),ariaLabel:"Show previous testimonial"}),(0,p.jsx)("div",{className:"flex-1 text-center",children:n}),(e==null?void 0:e.length)>=4&&(0,p.jsx)(H.SwiperButton,{type:"right",className:"p-4 bg-white w-12 h-12 flex items-center justify-center",onClick:()=>r("next"),ariaLabel:"Show next testimonial"})]}):null}function I1({testimonials:e}){return e?(0,p.jsx)("div",{className:"relative w-full",children:(0,p.jsx)(K.Flex,{wrap:!0,justify:"center",className:"!items-stretch mx-auto",children:e.slice(0,3).map((r,n)=>(0,p.jsx)(j1,{...r},n))})}):null}function j1({testimony:e,name:r,jobTitle:n}){return e?(0,p.jsx)("div",{className:"flex-1 mb-4 px-3 w-full lg:w-1/3",children:(0,p.jsx)(S.Card,{className:"p-5 h-full rounded-md",children:(0,p.jsxs)(S.CardContent,{className:"p-0 w-full h-full",children:[(0,p.jsx)(k1,{}),(0,p.jsx)(R.Text,{className:"mb-4 leading-loose",muted:!0,children:e}),(0,p.jsx)(R.Text,{weight:"bold",children:r}),(0,p.jsx)(R.Text,{muted:!0,children:n})]})})}):null}function k1(){return(0,p.jsxs)("svg",{className:"w-8 h-8 mb-6 text-primary",viewBox:"0 0 32 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,p.jsx)("path",{d:"M10.2418 12.749C9.45369 12.522 8.66554 12.4069 7.89887 12.4069C6.71496 12.4069 5.72709 12.6775 4.96109 13.0088C5.69957 10.3053 7.47358 5.6405 11.0075 5.11517C11.3348 5.0665 11.603 4.82986 11.6923 4.51131L12.4646 1.74875C12.5298 1.51512 12.4912 1.26505 12.3579 1.06231C12.2246 0.859563 12.0105 0.724288 11.7705 0.691393C11.5097 0.655812 11.2438 0.637686 10.9803 0.637686C6.73846 0.637686 2.53756 5.06516 0.764895 11.4046C-0.275679 15.1238 -0.580802 20.7154 1.98237 24.2349C3.41668 26.2043 5.50924 27.2559 8.20198 27.361C8.21305 27.3613 8.2238 27.3616 8.23487 27.3616C11.5573 27.3616 14.5035 25.1241 15.3997 21.9208C15.9351 20.0058 15.6931 17.9975 14.7176 16.2644C13.7526 14.5508 12.1632 13.3018 10.2418 12.749Z",fill:"currentColor"}),(0,p.jsx)("path",{d:"M31.0396 16.2648C30.0746 14.5508 28.4852 13.3018 26.5638 12.749C25.7757 12.522 24.9875 12.4069 24.2212 12.4069C23.0373 12.4069 22.0491 12.6775 21.2831 13.0088C22.0215 10.3053 23.7955 5.6405 27.3298 5.11517C27.6571 5.0665 27.9249 4.82986 28.0146 4.51131L28.7869 1.74875C28.8521 1.51512 28.8135 1.26505 28.6802 1.06231C28.5473 0.859563 28.3331 0.724288 28.0928 0.691393C27.8323 0.655812 27.5664 0.637686 27.3026 0.637686C23.0608 0.637686 18.8599 5.06516 17.0869 11.4046C16.0466 15.1238 15.7415 20.7154 18.305 24.2356C19.739 26.2046 21.8319 27.2566 24.5243 27.3613C24.5354 27.3616 24.5461 27.362 24.5575 27.362C27.8796 27.362 30.8261 25.1244 31.7224 21.9211C32.2571 20.0061 32.0147 17.9975 31.0396 16.2648Z",fill:"currentColor"})]})}var c1=P(require("react"));function A({caption:e,title:r,testimonials:n}){let[a,i]=c1.default.useState(n);return(0,p.jsxs)(X.Section,{className:"py-10 overflow-hidden bg-background lg:py-20",children:[(0,p.jsx)(J.Container,{className:"pb-6 lg:pb-16",maxWidth:1280,children:(0,p.jsxs)(K.Flex,{wrap:!0,align:"center",justify:"center",className:"text-center lg:justify-between lg:text-left",children:[(0,p.jsx)(L1,{caption:e,title:r}),(0,p.jsx)(F1,{testimony:a,slider:d=>{i(u=>{if(!u||u.length===0)return u;let c=[...u];if(d==="next"){let f=c.shift();f&&c.push(f)}else if(d==="prev"){let f=c.pop();f&&c.unshift(f)}return c})}})]})}),(0,p.jsx)(P1,{testimony:a})]})}function L1({caption:e,title:r}){return(0,p.jsxs)("div",{className:"w-full mb-4 lg:mb-0 lg:w-4/5",children:[(0,p.jsx)(R.Text,{weight:"bold",className:"text-secondary",children:e}),(0,p.jsx)(O.Heading,{fontSize:"3xl",children:r})]})}function F1({testimony:e,slider:r}){return e?(0,p.jsxs)("div",{className:"w-full lg:w-1/5 flex items-center gap-4",children:[e&&(e==null?void 0:e.length)>=4&&(0,p.jsx)(H.SwiperButton,{type:"left",className:"order-last p-5 mr-4 bg-white lg:order-first w-12 h-12 flex items-center justify-center",onClick:()=>r("prev"),ariaLabel:"Show previous testimonial"}),e&&(e==null?void 0:e.length)>=4&&(0,p.jsx)(H.SwiperButton,{type:"right",className:"order-last p-5 bg-white w-12 h-12 flex items-center justify-center",onClick:()=>r("next"),ariaLabel:"Show next testimonial"})]}):null}function P1({testimony:e}){var r;return e?(0,p.jsx)(K.Flex,{className:"relative",children:e&&(0,p.jsx)(K.Flex,{wrap:!0,className:"!items-stretch max-w-6xl px-2 mx-auto",children:(r=e==null?void 0:e.slice(0,3))==null?void 0:r.map((n,a)=>(0,p.jsx)(R1,{item:n,index:a},n==null?void 0:n._key))})}):null}function R1({item:e,index:r}){var n,a,i,m;return e?(0,p.jsx)("div",{className:"flex-1 w-full px-3 mb-4 lg:w-1/3",children:(0,p.jsx)(S.Card,{className:"p-8 text-center h-full items-center rounded-md",children:(0,p.jsxs)(S.CardContent,{children:[(0,p.jsx)(R.Text,{className:"mb-8 leading-loose",muted:!0,children:e==null?void 0:e.testimony}),((n=e==null?void 0:e.mainImage)==null?void 0:n.image)&&(0,p.jsx)("div",{className:"w-[48px] h-[48px] mx-auto border-0",children:(0,p.jsx)(U.Image,{className:"w-full h-full object-cover rounded-full",width:48,height:48,src:`${(a=e==null?void 0:e.mainImage)==null?void 0:a.image}`,alt:(m=(i=e==null?void 0:e.mainImage)==null?void 0:i.alt)!=null?m:`testimonial-source-${e==null?void 0:e.name}-profile-image`})}),(0,p.jsx)(R.Text,{className:"mb-1",fontSize:"2xl",weight:"bold",children:e==null?void 0:e.name}),(0,p.jsx)(R.Text,{muted:!0,children:e==null?void 0:e.jobTitle})]})})},r):null}var u1=P(require("react"));function W({testimonials:e}){var m,d,u,c,f,C,x,h,w,V,D,Q,q,E;let[r,n]=u1.default.useState(0),a=T=>{!e||e.length<=1||n(T==="next"?g=>g!==e.length-1?g+1:0:g=>g>0?g-1:e.length-1)},i=T=>{let g=[];for(let F=0;F<T;F++)g.push(F);return g};return(0,p.jsx)(X.Section,{className:"py-20 bg-background",children:(0,p.jsx)(J.Container,{maxWidth:1280,children:(0,p.jsxs)("div",{className:"items-center justify-center md:space-x-8 lg:flex",children:[(0,p.jsxs)("div",{className:"mb-10 text-center lg:hidden",children:[e&&(e==null?void 0:e.length)>1&&(0,p.jsx)(H.SwiperButton,{type:"left",className:"p-4 mr-6 bg-white lg:order-first lg:mr-0 w-12 h-12 flex items-center justify-center",onClick:()=>a("prev"),ariaLabel:"Show previous testimonial"}),e&&(e==null?void 0:e.length)>1&&(0,p.jsx)(H.SwiperButton,{type:"right",className:"p-4 mr-6 bg-white lg:order-first lg:mr-0 w-12 h-12 flex items-center justify-center",onClick:()=>a("next"),ariaLabel:"Show next testimonial"})]}),e&&(e==null?void 0:e.length)>1&&(0,p.jsx)(H.SwiperButton,{type:"left",className:"hidden p-4 mr-6 bg-white lg:flex lg:order-first lg:mr-0 w-12 h-12 items-center justify-center",onClick:()=>a("prev"),ariaLabel:"Show previous testimonial"}),(e==null?void 0:e[r])&&(0,p.jsx)(S.Card,{className:"w-full h-full",children:(0,p.jsxs)(S.CardContent,{className:"flex flex-wrap w-full rounded-md p-0",children:[((m=e==null?void 0:e[r])==null?void 0:m.rating)&&(0,p.jsxs)("div",{className:"w-full py-10 text-center border-R lg:border-r lg:border-R-0 lg:w-1/3",children:[(0,p.jsx)("span",{className:"text-5xl font-bold lg:text-6xl",children:`${(d=e==null?void 0:e[r])==null?void 0:d.rating}.0`}),(0,p.jsx)(K.Flex,{align:"center",justify:"center",className:"mb-6 text-primary",children:((u=e==null?void 0:e[r])==null?void 0:u.rating)!==void 0&&i(Number((c=e==null?void 0:e[r])==null?void 0:c.rating)).map((T,g)=>(0,p.jsx)(_1,{},g))}),(0,p.jsx)("div",{className:"object-contain w-32 h-24 mx-auto mb-6 rounded-full",children:((C=(f=e[r])==null?void 0:f.mainImage)==null?void 0:C.image)&&(0,p.jsx)(U.Image,{className:"h-[96px] w-[128px] object-scale-down",src:`${(h=(x=e[r])==null?void 0:x.mainImage)==null?void 0:h.image}`,width:128,height:96,alt:(D=(V=(w=e[r])==null?void 0:w.mainImage)==null?void 0:V.alt)!=null?D:`testimonial-source-profile-image${r}`})})]}),(0,p.jsxs)("div",{className:"w-full px-6 py-10 lg:w-2/3",children:[(0,p.jsx)(B1,{}),(0,p.jsx)(R.Text,{muted:!0,className:"mb-10 text-xl leading-loose lg:text-2xl",children:(Q=e[r])==null?void 0:Q.testimony}),(0,p.jsx)(R.Text,{weight:"bold",fontSize:"2xl",children:(q=e[r])==null?void 0:q.name}),(0,p.jsx)(R.Text,{muted:!0,children:(E=e[r])==null?void 0:E.jobTitle})]})]})}),e&&(e==null?void 0:e.length)>1&&(0,p.jsx)(H.SwiperButton,{type:"right",className:"hidden bg-white lg:flex p-4 mr-6 lg:mr-0 w-12 h-12 items-center justify-center",onClick:()=>a("next"),ariaLabel:"Show next testimonial"})]})})})}function _1(){return(0,p.jsx)("svg",{className:"w-6 h-6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,p.jsx)("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"})})}function B1(){return(0,p.jsxs)("svg",{className:"w-10 h-10 mb-4 text-primary",viewBox:"0 0 32 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,p.jsx)("path",{d:"M10.2418 12.749C9.45369 12.522 8.66554 12.4069 7.89887 12.4069C6.71496 12.4069 5.72709 12.6775 4.96109 13.0088C5.69957 10.3053 7.47358 5.6405 11.0075 5.11517C11.3348 5.0665 11.603 4.82986 11.6923 4.51131L12.4646 1.74875C12.5298 1.51512 12.4912 1.26505 12.3579 1.06231C12.2246 0.859563 12.0105 0.724288 11.7705 0.691393C11.5097 0.655812 11.2438 0.637686 10.9803 0.637686C6.73846 0.637686 2.53756 5.06516 0.764895 11.4046C-0.275679 15.1238 -0.580802 20.7154 1.98237 24.2349C3.41668 26.2043 5.50924 27.2559 8.20198 27.361C8.21305 27.3613 8.2238 27.3616 8.23487 27.3616C11.5573 27.3616 14.5035 25.1241 15.3997 21.9208C15.9351 20.0058 15.6931 17.9975 14.7176 16.2644C13.7526 14.5508 12.1632 13.3018 10.2418 12.749Z",fill:"currentColor"}),(0,p.jsx)("path",{d:"M31.0396 16.2648C30.0746 14.5508 28.4852 13.3018 26.5638 12.749C25.7757 12.522 24.9875 12.4069 24.2212 12.4069C23.0373 12.4069 22.0491 12.6775 21.2831 13.0088C22.0215 10.3053 23.7955 5.6405 27.3298 5.11517C27.6571 5.0665 27.9249 4.82986 28.0146 4.51131L28.7869 1.74875C28.8521 1.51512 28.8135 1.26505 28.6802 1.06231C28.5473 0.859563 28.3331 0.724288 28.0928 0.691393C27.8323 0.655812 27.5664 0.637686 27.3026 0.637686C23.0608 0.637686 18.8599 5.06516 17.0869 11.4046C16.0466 15.1238 15.7415 20.7154 18.305 24.2356C19.739 26.2046 21.8319 27.2566 24.5243 27.3613C24.5354 27.3616 24.5461 27.362 24.5575 27.362C27.8796 27.362 30.8261 25.1244 31.7224 21.9211C32.2571 20.0061 32.0147 17.9975 31.0396 16.2648Z",fill:"currentColor"})]})}var H1={variant_a:B,variant_b:Z,variant_c:A,variant_d:W},d1=({data:e})=>{var i,m,d,u,c,f;let r=e==null?void 0:e.variant,n=r&&H1[r],a={caption:(m=(i=e==null?void 0:e.variants)==null?void 0:i.subtitle)!=null?m:void 0,title:(u=(d=e==null?void 0:e.variants)==null?void 0:d.title)!=null?u:void 0,testimonials:(f=(c=e==null?void 0:e.variants)==null?void 0:c.testimonials)!=null?f:void 0};return n?(0,p.jsx)(n,{...a}):null};d1.displayName="Testimonial";0&&(module.exports={Testimonial});
|
package/dist/testimonial.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-C5Z2MH7K.mjs";import"./chunk-AYMRUN5V.mjs";import"./chunk-U76JJXJA.mjs";import"./chunk-7FRAH7BU.mjs";import"./chunk-CSUF5DH7.mjs";export{a as Testimonial};
|
package/dist/testimonial_a.d.ts
DELETED
package/dist/testimonial_a.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var A=Object.create;var d=Object.defineProperty;var L=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var $=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty;var M=(r,C)=>{for(var u in C)d(r,u,{get:C[u],enumerable:!0})},v=(r,C,u,p)=>{if(C&&typeof C=="object"||typeof C=="function")for(let c of P(C))!H.call(r,c)&&c!==u&&d(r,c,{get:()=>C[c],enumerable:!(p=L(C,c))||p.enumerable});return r};var R=(r,C,u)=>(u=r!=null?A($(r)):{},v(C||!r||!r.__esModule?d(u,"default",{value:r,enumerable:!0}):u,r)),Z=r=>v(d({},"__esModule",{value:!0}),r);var _={};M(_,{Testimonial_A:()=>k,default:()=>k});module.exports=Z(_);var g=require("@stackshift-ui/card"),N=require("@stackshift-ui/container"),S=require("@stackshift-ui/flex"),y=require("@stackshift-ui/heading"),F=require("@stackshift-ui/image"),I=require("@stackshift-ui/section"),j=require("@stackshift-ui/swiper-pagination"),a=require("@stackshift-ui/text"),w=R(require("react")),e=require("react/jsx-runtime");function k({testimonials:r}){let[C,u]=w.default.useState(0);return(0,e.jsx)(I.Section,{className:"py-20 bg-background",children:(0,e.jsx)(N.Container,{maxWidth:1280,children:(0,e.jsx)(g.Card,{className:"py-10 rounded-md",children:(0,e.jsx)(g.CardContent,{className:"p-0 w-full h-full",children:(0,e.jsxs)(S.Flex,{wrap:!0,align:"center",justify:"center",className:"max-w-5xl p-4",children:[(0,e.jsx)(B,{testimonials:r,testimony:C}),(0,e.jsx)(W,{testimonials:r,testimony:C,slider:c=>{u(c)}})]})})})})})}function B({testimonials:r,testimony:C}){var u,p,c,f,x,l,b,T,m,o,h,n;return r!=null&&r[C]?(0,e.jsxs)("div",{className:"w-full mb-6 text-center lg:w-1/3",children:[(p=(u=r==null?void 0:r[C])==null?void 0:u.mainImage)!=null&&p.image?(0,e.jsx)(F.Image,{width:128,height:128,className:"mx-auto border-0 w-[128px] h-[128px] object-cover rounded-full",src:`${(f=(c=r==null?void 0:r[C])==null?void 0:c.mainImage)==null?void 0:f.image}`,alt:(T=(l=(x=r==null?void 0:r[C])==null?void 0:x.mainImage)==null?void 0:l.alt)!=null?T:`testimonial-source-${(b=r==null?void 0:r[C])==null?void 0:b.name}-profile-image`}):null,(m=r==null?void 0:r[C])!=null&&m.name?(0,e.jsx)(a.Text,{className:"text-xl",children:(o=r==null?void 0:r[C])==null?void 0:o.name}):null,(h=r==null?void 0:r[C])!=null&&h.jobTitle?(0,e.jsx)(a.Text,{className:"text-primary",children:(n=r==null?void 0:r[C])==null?void 0:n.jobTitle}):null]}):null}function W({testimonials:r,testimony:C,slider:u}){var p;return r!=null&&r[C]?(0,e.jsxs)("div",{className:"w-full lg:w-2/3",children:[(0,e.jsxs)("svg",{className:"w-10 h-10 mb-4 text-primary",viewBox:"0 0 32 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,e.jsx)("path",{d:"M10.2418 12.749C9.45369 12.522 8.66554 12.4069 7.89887 12.4069C6.71496 12.4069 5.72709 12.6775 4.96109 13.0088C5.69957 10.3053 7.47358 5.6405 11.0075 5.11517C11.3348 5.0665 11.603 4.82986 11.6923 4.51131L12.4646 1.74875C12.5298 1.51512 12.4912 1.26505 12.3579 1.06231C12.2246 0.859563 12.0105 0.724288 11.7705 0.691393C11.5097 0.655812 11.2438 0.637686 10.9803 0.637686C6.73846 0.637686 2.53756 5.06516 0.764895 11.4046C-0.275679 15.1238 -0.580802 20.7154 1.98237 24.2349C3.41668 26.2043 5.50924 27.2559 8.20198 27.361C8.21305 27.3613 8.2238 27.3616 8.23487 27.3616C11.5573 27.3616 14.5035 25.1241 15.3997 21.9208C15.9351 20.0058 15.6931 17.9975 14.7176 16.2644C13.7526 14.5508 12.1632 13.3018 10.2418 12.749Z",fill:"currentColor"}),(0,e.jsx)("path",{d:"M31.0396 16.2648C30.0746 14.5508 28.4852 13.3018 26.5638 12.749C25.7757 12.522 24.9875 12.4069 24.2212 12.4069C23.0373 12.4069 22.0491 12.6775 21.2831 13.0088C22.0215 10.3053 23.7955 5.6405 27.3298 5.11517C27.6571 5.0665 27.9249 4.82986 28.0146 4.51131L28.7869 1.74875C28.8521 1.51512 28.8135 1.26505 28.6802 1.06231C28.5473 0.859563 28.3331 0.724288 28.0928 0.691393C27.8323 0.655812 27.5664 0.637686 27.3026 0.637686C23.0608 0.637686 18.8599 5.06516 17.0869 11.4046C16.0466 15.1238 15.7415 20.7154 18.305 24.2356C19.739 26.2046 21.8319 27.2566 24.5243 27.3613C24.5354 27.3616 24.5461 27.362 24.5575 27.362C27.8796 27.362 30.8261 25.1244 31.7224 21.9211C32.2571 20.0061 32.0147 17.9975 31.0396 16.2648Z",fill:"currentColor"})]}),(0,e.jsx)(y.Heading,{children:(p=r==null?void 0:r[C])==null?void 0:p.testimony}),(r==null?void 0:r.length)>1?(0,e.jsx)(w.default.Fragment,{children:r.map((c,f)=>(0,e.jsx)(j.SwiperPagination,{colorScheme:"blue",isActive:f===C,ariaLabel:`Show Testimonial ${f}`,onClick:()=>u(f)},f))}):null]}):null}0&&(module.exports={Testimonial_A});
|
package/dist/testimonial_a.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-AYMRUN5V.mjs";export{a as Testimonial_A,a as default};
|
package/dist/testimonial_b.d.ts
DELETED
package/dist/testimonial_b.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var c=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var b=(t,i)=>{for(var r in i)c(t,r,{get:i[r],enumerable:!0})},S=(t,i,r,a)=>{if(i&&typeof i=="object"||typeof i=="function")for(let l of T(i))!N.call(t,l)&&l!==r&&c(t,l,{get:()=>i[l],enumerable:!(a=v(i,l))||a.enumerable});return t};var j=t=>S(c({},"__esModule",{value:!0}),t);var F={};b(F,{Testimonial_B:()=>g,default:()=>g});module.exports=j(F);var m=require("@stackshift-ui/card"),u=require("@stackshift-ui/container"),p=require("@stackshift-ui/flex"),d=require("@stackshift-ui/heading"),x=require("@stackshift-ui/section"),f=require("@stackshift-ui/swiper-button"),s=require("@stackshift-ui/text"),w=require("react"),e=require("react/jsx-runtime");function g({caption:t,title:i,testimonials:r}){let[a,l]=(0,w.useState)(r);return(0,e.jsx)(x.Section,{className:"py-20 overflow-hidden bg-background",children:(0,e.jsxs)(u.Container,{maxWidth:1280,children:[(0,e.jsx)(p.Flex,{wrap:!0,align:"center",justify:"center",className:"pt-8 pb-16",children:(0,e.jsx)(L,{testimony:a,slider:C=>{l(h=>{let n=h||[];if(C==="next"){let o=n.length>0?n.shift():void 0;return o?[...n,o]:n}else if(C==="prev"){let o=n.length>0?n.pop():void 0;return o?[o,...n]:n}return n})},children:(0,e.jsx)(y,{caption:t,title:i})})}),(0,e.jsx)(k,{testimonials:a})]})})}function y({caption:t,title:i}){return(0,e.jsxs)(u.Container,{maxWidth:576,className:"mb-10 text-center ",children:[(0,e.jsx)(s.Text,{weight:"bold",className:"text-secondary",children:t}),(0,e.jsx)(d.Heading,{fontSize:"3xl",className:"mt-4",children:i})]})}function L({testimony:t,slider:i,children:r}){return t?(0,e.jsxs)("div",{className:"flex items-center justify-between w-full",children:[(t==null?void 0:t.length)>=4&&(0,e.jsx)(f.SwiperButton,{type:"left",className:"p-4 bg-white w-12 h-12 flex items-center justify-center",onClick:()=>i("prev"),ariaLabel:"Show previous testimonial"}),(0,e.jsx)("div",{className:"flex-1 text-center",children:r}),(t==null?void 0:t.length)>=4&&(0,e.jsx)(f.SwiperButton,{type:"right",className:"p-4 bg-white w-12 h-12 flex items-center justify-center",onClick:()=>i("next"),ariaLabel:"Show next testimonial"})]}):null}function k({testimonials:t}){return t?(0,e.jsx)("div",{className:"relative w-full",children:(0,e.jsx)(p.Flex,{wrap:!0,justify:"center",className:"!items-stretch mx-auto",children:t.slice(0,3).map((i,r)=>(0,e.jsx)(I,{...i},r))})}):null}function I({testimony:t,name:i,jobTitle:r}){return t?(0,e.jsx)("div",{className:"flex-1 mb-4 px-3 w-full lg:w-1/3",children:(0,e.jsx)(m.Card,{className:"p-5 h-full rounded-md",children:(0,e.jsxs)(m.CardContent,{className:"p-0 w-full h-full",children:[(0,e.jsx)(B,{}),(0,e.jsx)(s.Text,{className:"mb-4 leading-loose",muted:!0,children:t}),(0,e.jsx)(s.Text,{weight:"bold",children:i}),(0,e.jsx)(s.Text,{muted:!0,children:r})]})})}):null}function B(){return(0,e.jsxs)("svg",{className:"w-8 h-8 mb-6 text-primary",viewBox:"0 0 32 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,e.jsx)("path",{d:"M10.2418 12.749C9.45369 12.522 8.66554 12.4069 7.89887 12.4069C6.71496 12.4069 5.72709 12.6775 4.96109 13.0088C5.69957 10.3053 7.47358 5.6405 11.0075 5.11517C11.3348 5.0665 11.603 4.82986 11.6923 4.51131L12.4646 1.74875C12.5298 1.51512 12.4912 1.26505 12.3579 1.06231C12.2246 0.859563 12.0105 0.724288 11.7705 0.691393C11.5097 0.655812 11.2438 0.637686 10.9803 0.637686C6.73846 0.637686 2.53756 5.06516 0.764895 11.4046C-0.275679 15.1238 -0.580802 20.7154 1.98237 24.2349C3.41668 26.2043 5.50924 27.2559 8.20198 27.361C8.21305 27.3613 8.2238 27.3616 8.23487 27.3616C11.5573 27.3616 14.5035 25.1241 15.3997 21.9208C15.9351 20.0058 15.6931 17.9975 14.7176 16.2644C13.7526 14.5508 12.1632 13.3018 10.2418 12.749Z",fill:"currentColor"}),(0,e.jsx)("path",{d:"M31.0396 16.2648C30.0746 14.5508 28.4852 13.3018 26.5638 12.749C25.7757 12.522 24.9875 12.4069 24.2212 12.4069C23.0373 12.4069 22.0491 12.6775 21.2831 13.0088C22.0215 10.3053 23.7955 5.6405 27.3298 5.11517C27.6571 5.0665 27.9249 4.82986 28.0146 4.51131L28.7869 1.74875C28.8521 1.51512 28.8135 1.26505 28.6802 1.06231C28.5473 0.859563 28.3331 0.724288 28.0928 0.691393C27.8323 0.655812 27.5664 0.637686 27.3026 0.637686C23.0608 0.637686 18.8599 5.06516 17.0869 11.4046C16.0466 15.1238 15.7415 20.7154 18.305 24.2356C19.739 26.2046 21.8319 27.2566 24.5243 27.3613C24.5354 27.3616 24.5461 27.362 24.5575 27.362C27.8796 27.362 30.8261 25.1244 31.7224 21.9211C32.2571 20.0061 32.0147 17.9975 31.0396 16.2648Z",fill:"currentColor"})]})}0&&(module.exports={Testimonial_B});
|
package/dist/testimonial_b.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-U76JJXJA.mjs";export{a as Testimonial_B,a as default};
|
package/dist/testimonial_c.d.ts
DELETED
package/dist/testimonial_c.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var C=Object.create;var f=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty;var F=(e,r)=>{for(var a in r)f(e,a,{get:r[a],enumerable:!0})},g=(e,r,a,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of k(r))!j.call(e,t)&&t!==a&&f(e,t,{get:()=>r[t],enumerable:!(n=I(r,t))||n.enumerable});return e};var H=(e,r,a)=>(a=e!=null?C(S(e)):{},g(r||!e||!e.__esModule?f(a,"default",{value:e,enumerable:!0}):a,e)),L=e=>g(f({},"__esModule",{value:!0}),e);var $={};F($,{Testimonial_C:()=>v,default:()=>v});module.exports=L($);var u=require("@stackshift-ui/card"),h=require("@stackshift-ui/container"),d=require("@stackshift-ui/flex"),w=require("@stackshift-ui/heading"),b=require("@stackshift-ui/image"),T=require("@stackshift-ui/section"),m=require("@stackshift-ui/swiper-button"),s=require("@stackshift-ui/text"),N=H(require("react")),l=require("react/jsx-runtime");function v({caption:e,title:r,testimonials:a}){let[n,t]=N.default.useState(a);return(0,l.jsxs)(T.Section,{className:"py-10 overflow-hidden bg-background lg:py-20",children:[(0,l.jsx)(h.Container,{className:"pb-6 lg:pb-16",maxWidth:1280,children:(0,l.jsxs)(d.Flex,{wrap:!0,align:"center",justify:"center",className:"text-center lg:justify-between lg:text-left",children:[(0,l.jsx)(y,{caption:e,title:r}),(0,l.jsx)(z,{testimony:n,slider:x=>{t(c=>{if(!c||c.length===0)return c;let o=[...c];if(x==="next"){let i=o.shift();i&&o.push(i)}else if(x==="prev"){let i=o.pop();i&&o.unshift(i)}return o})}})]})}),(0,l.jsx)(P,{testimony:n})]})}function y({caption:e,title:r}){return(0,l.jsxs)("div",{className:"w-full mb-4 lg:mb-0 lg:w-4/5",children:[(0,l.jsx)(s.Text,{weight:"bold",className:"text-secondary",children:e}),(0,l.jsx)(w.Heading,{fontSize:"3xl",children:r})]})}function z({testimony:e,slider:r}){return e?(0,l.jsxs)("div",{className:"w-full lg:w-1/5 flex items-center gap-4",children:[e&&(e==null?void 0:e.length)>=4&&(0,l.jsx)(m.SwiperButton,{type:"left",className:"order-last p-5 mr-4 bg-white lg:order-first w-12 h-12 flex items-center justify-center",onClick:()=>r("prev"),ariaLabel:"Show previous testimonial"}),e&&(e==null?void 0:e.length)>=4&&(0,l.jsx)(m.SwiperButton,{type:"right",className:"order-last p-5 bg-white w-12 h-12 flex items-center justify-center",onClick:()=>r("next"),ariaLabel:"Show next testimonial"})]}):null}function P({testimony:e}){var r;return e?(0,l.jsx)(d.Flex,{className:"relative",children:e&&(0,l.jsx)(d.Flex,{wrap:!0,className:"!items-stretch max-w-6xl px-2 mx-auto",children:(r=e==null?void 0:e.slice(0,3))==null?void 0:r.map((a,n)=>(0,l.jsx)(_,{item:a,index:n},a==null?void 0:a._key))})}):null}function _({item:e,index:r}){var a,n,t,p;return e?(0,l.jsx)("div",{className:"flex-1 w-full px-3 mb-4 lg:w-1/3",children:(0,l.jsx)(u.Card,{className:"p-8 text-center h-full items-center rounded-md",children:(0,l.jsxs)(u.CardContent,{children:[(0,l.jsx)(s.Text,{className:"mb-8 leading-loose",muted:!0,children:e==null?void 0:e.testimony}),((a=e==null?void 0:e.mainImage)==null?void 0:a.image)&&(0,l.jsx)("div",{className:"w-[48px] h-[48px] mx-auto border-0",children:(0,l.jsx)(b.Image,{className:"w-full h-full object-cover rounded-full",width:48,height:48,src:`${(n=e==null?void 0:e.mainImage)==null?void 0:n.image}`,alt:(p=(t=e==null?void 0:e.mainImage)==null?void 0:t.alt)!=null?p:`testimonial-source-${e==null?void 0:e.name}-profile-image`})}),(0,l.jsx)(s.Text,{className:"mb-1",fontSize:"2xl",weight:"bold",children:e==null?void 0:e.name}),(0,l.jsx)(s.Text,{muted:!0,children:e==null?void 0:e.jobTitle})]})})},r):null}0&&(module.exports={Testimonial_C});
|
package/dist/testimonial_c.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-7FRAH7BU.mjs";export{a as Testimonial_C,a as default};
|
package/dist/testimonial_d.d.ts
DELETED
package/dist/testimonial_d.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var P=Object.create;var p=Object.defineProperty;var Z=Object.getOwnPropertyDescriptor;var _=Object.getOwnPropertyNames;var A=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty;var Q=(e,c)=>{for(var l in c)p(e,l,{get:c[l],enumerable:!0})},k=(e,c,l,d)=>{if(c&&typeof c=="object"||typeof c=="function")for(let n of _(c))!D.call(e,n)&&n!==l&&p(e,n,{get:()=>c[n],enumerable:!(d=Z(c,n))||d.enumerable});return e};var W=(e,c,l)=>(l=e!=null?P(A(e)):{},k(c||!e||!e.__esModule?p(l,"default",{value:e,enumerable:!0}):l,e)),q=e=>k(p({},"__esModule",{value:!0}),e);var H={};Q(H,{Testimonial_D:()=>F,default:()=>F});module.exports=q(H);var t=require("@stackshift-ui/card"),B=require("@stackshift-ui/container"),M=require("@stackshift-ui/flex"),R=require("@stackshift-ui/image"),$=require("@stackshift-ui/section"),a=require("@stackshift-ui/swiper-button"),x=require("@stackshift-ui/text"),z=W(require("react")),r=require("react/jsx-runtime");function F({testimonials:e}){var h,u,w,o,m,b,v,N,y,S,T,j,I,L;let[c,l]=z.default.useState(0),d=f=>{!e||e.length<=1||l(f==="next"?g=>g!==e.length-1?g+1:0:g=>g>0?g-1:e.length-1)},n=f=>{let g=[];for(let C=0;C<f;C++)g.push(C);return g};return(0,r.jsx)($.Section,{className:"py-20 bg-background",children:(0,r.jsx)(B.Container,{maxWidth:1280,children:(0,r.jsxs)("div",{className:"items-center justify-center md:space-x-8 lg:flex",children:[(0,r.jsxs)("div",{className:"mb-10 text-center lg:hidden",children:[e&&(e==null?void 0:e.length)>1&&(0,r.jsx)(a.SwiperButton,{type:"left",className:"p-4 mr-6 bg-white lg:order-first lg:mr-0 w-12 h-12 flex items-center justify-center",onClick:()=>d("prev"),ariaLabel:"Show previous testimonial"}),e&&(e==null?void 0:e.length)>1&&(0,r.jsx)(a.SwiperButton,{type:"right",className:"p-4 mr-6 bg-white lg:order-first lg:mr-0 w-12 h-12 flex items-center justify-center",onClick:()=>d("next"),ariaLabel:"Show next testimonial"})]}),e&&(e==null?void 0:e.length)>1&&(0,r.jsx)(a.SwiperButton,{type:"left",className:"hidden p-4 mr-6 bg-white lg:flex lg:order-first lg:mr-0 w-12 h-12 items-center justify-center",onClick:()=>d("prev"),ariaLabel:"Show previous testimonial"}),(e==null?void 0:e[c])&&(0,r.jsx)(t.Card,{className:"w-full h-full",children:(0,r.jsxs)(t.CardContent,{className:"flex flex-wrap w-full rounded-md p-0",children:[((h=e==null?void 0:e[c])==null?void 0:h.rating)&&(0,r.jsxs)("div",{className:"w-full py-10 text-center border-b lg:border-r lg:border-b-0 lg:w-1/3",children:[(0,r.jsx)("span",{className:"text-5xl font-bold lg:text-6xl",children:`${(u=e==null?void 0:e[c])==null?void 0:u.rating}.0`}),(0,r.jsx)(M.Flex,{align:"center",justify:"center",className:"mb-6 text-primary",children:((w=e==null?void 0:e[c])==null?void 0:w.rating)!==void 0&&n(Number((o=e==null?void 0:e[c])==null?void 0:o.rating)).map((f,g)=>(0,r.jsx)(E,{},g))}),(0,r.jsx)("div",{className:"object-contain w-32 h-24 mx-auto mb-6 rounded-full",children:((b=(m=e[c])==null?void 0:m.mainImage)==null?void 0:b.image)&&(0,r.jsx)(R.Image,{className:"h-[96px] w-[128px] object-scale-down",src:`${(N=(v=e[c])==null?void 0:v.mainImage)==null?void 0:N.image}`,width:128,height:96,alt:(T=(S=(y=e[c])==null?void 0:y.mainImage)==null?void 0:S.alt)!=null?T:`testimonial-source-profile-image${c}`})})]}),(0,r.jsxs)("div",{className:"w-full px-6 py-10 lg:w-2/3",children:[(0,r.jsx)(G,{}),(0,r.jsx)(x.Text,{muted:!0,className:"mb-10 text-xl leading-loose lg:text-2xl",children:(j=e[c])==null?void 0:j.testimony}),(0,r.jsx)(x.Text,{weight:"bold",fontSize:"2xl",children:(I=e[c])==null?void 0:I.name}),(0,r.jsx)(x.Text,{muted:!0,children:(L=e[c])==null?void 0:L.jobTitle})]})]})}),e&&(e==null?void 0:e.length)>1&&(0,r.jsx)(a.SwiperButton,{type:"right",className:"hidden bg-white lg:flex p-4 mr-6 lg:mr-0 w-12 h-12 items-center justify-center",onClick:()=>d("next"),ariaLabel:"Show next testimonial"})]})})})}function E(){return(0,r.jsx)("svg",{className:"w-6 h-6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,r.jsx)("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"})})}function G(){return(0,r.jsxs)("svg",{className:"w-10 h-10 mb-4 text-primary",viewBox:"0 0 32 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M10.2418 12.749C9.45369 12.522 8.66554 12.4069 7.89887 12.4069C6.71496 12.4069 5.72709 12.6775 4.96109 13.0088C5.69957 10.3053 7.47358 5.6405 11.0075 5.11517C11.3348 5.0665 11.603 4.82986 11.6923 4.51131L12.4646 1.74875C12.5298 1.51512 12.4912 1.26505 12.3579 1.06231C12.2246 0.859563 12.0105 0.724288 11.7705 0.691393C11.5097 0.655812 11.2438 0.637686 10.9803 0.637686C6.73846 0.637686 2.53756 5.06516 0.764895 11.4046C-0.275679 15.1238 -0.580802 20.7154 1.98237 24.2349C3.41668 26.2043 5.50924 27.2559 8.20198 27.361C8.21305 27.3613 8.2238 27.3616 8.23487 27.3616C11.5573 27.3616 14.5035 25.1241 15.3997 21.9208C15.9351 20.0058 15.6931 17.9975 14.7176 16.2644C13.7526 14.5508 12.1632 13.3018 10.2418 12.749Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M31.0396 16.2648C30.0746 14.5508 28.4852 13.3018 26.5638 12.749C25.7757 12.522 24.9875 12.4069 24.2212 12.4069C23.0373 12.4069 22.0491 12.6775 21.2831 13.0088C22.0215 10.3053 23.7955 5.6405 27.3298 5.11517C27.6571 5.0665 27.9249 4.82986 28.0146 4.51131L28.7869 1.74875C28.8521 1.51512 28.8135 1.26505 28.6802 1.06231C28.5473 0.859563 28.3331 0.724288 28.0928 0.691393C27.8323 0.655812 27.5664 0.637686 27.3026 0.637686C23.0608 0.637686 18.8599 5.06516 17.0869 11.4046C16.0466 15.1238 15.7415 20.7154 18.305 24.2356C19.739 26.2046 21.8319 27.2566 24.5243 27.3613C24.5354 27.3616 24.5461 27.362 24.5575 27.362C27.8796 27.362 30.8261 25.1244 31.7224 21.9211C32.2571 20.0061 32.0147 17.9975 31.0396 16.2648Z",fill:"currentColor"})]})}0&&(module.exports={Testimonial_D});
|
package/dist/testimonial_d.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-CSUF5DH7.mjs";export{a as Testimonial_D,a as default};
|
package/dist/types.d.ts
DELETED
|
@@ -1,362 +0,0 @@
|
|
|
1
|
-
export type StyleVariants<T extends string> = Record<T, string>;
|
|
2
|
-
export type Socials = "facebook" | "instagram" | "youtube" | "linkedin" | "twitter";
|
|
3
|
-
export interface MainImage {
|
|
4
|
-
image?: string;
|
|
5
|
-
alt?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface LabeledRoute extends ConditionalLink {
|
|
8
|
-
ariaLabel?: string;
|
|
9
|
-
label?: string;
|
|
10
|
-
linkTarget?: string;
|
|
11
|
-
linkType?: string;
|
|
12
|
-
_type?: string;
|
|
13
|
-
linkInternal?: any;
|
|
14
|
-
}
|
|
15
|
-
export interface ConditionalLink {
|
|
16
|
-
type?: string;
|
|
17
|
-
internalLink?: string | null;
|
|
18
|
-
externalLink?: string | null;
|
|
19
|
-
}
|
|
20
|
-
export interface StatItems {
|
|
21
|
-
label?: string;
|
|
22
|
-
mainImage?: MainImage;
|
|
23
|
-
value?: string;
|
|
24
|
-
_key?: string;
|
|
25
|
-
_type?: string;
|
|
26
|
-
}
|
|
27
|
-
export interface Logo extends ConditionalLink {
|
|
28
|
-
alt?: string;
|
|
29
|
-
linkTarget?: string;
|
|
30
|
-
image?: string;
|
|
31
|
-
}
|
|
32
|
-
export interface Images {
|
|
33
|
-
image?: string;
|
|
34
|
-
_key?: string;
|
|
35
|
-
_type?: string;
|
|
36
|
-
alt?: string;
|
|
37
|
-
}
|
|
38
|
-
export interface ContactDetails {
|
|
39
|
-
addressInfo?: string;
|
|
40
|
-
contactInfo?: string;
|
|
41
|
-
emailInfo?: string;
|
|
42
|
-
_key?: string;
|
|
43
|
-
}
|
|
44
|
-
export interface SocialLink {
|
|
45
|
-
socialMedia?: string | null;
|
|
46
|
-
socialMediaLink?: string | null;
|
|
47
|
-
_key?: string | null;
|
|
48
|
-
_type?: string | null;
|
|
49
|
-
socialMediaIcon?: {
|
|
50
|
-
alt?: string;
|
|
51
|
-
image?: string;
|
|
52
|
-
} | null;
|
|
53
|
-
socialMediaPlatform?: string | null;
|
|
54
|
-
}
|
|
55
|
-
export interface LabeledRouteWithKey extends LabeledRoute {
|
|
56
|
-
_key?: string;
|
|
57
|
-
}
|
|
58
|
-
export interface ArrayOfImageTitleAndText {
|
|
59
|
-
mainImage?: {
|
|
60
|
-
alt?: string;
|
|
61
|
-
image?: string;
|
|
62
|
-
};
|
|
63
|
-
plainText?: string;
|
|
64
|
-
title?: string;
|
|
65
|
-
_key?: string;
|
|
66
|
-
_type?: string;
|
|
67
|
-
}
|
|
68
|
-
export interface FeaturedItem {
|
|
69
|
-
description?: string;
|
|
70
|
-
mainImage?: MainImage;
|
|
71
|
-
title?: string;
|
|
72
|
-
subtitle?: string;
|
|
73
|
-
_key?: string;
|
|
74
|
-
_type?: string;
|
|
75
|
-
}
|
|
76
|
-
export interface ArrayOfTitleAndText {
|
|
77
|
-
_key?: string;
|
|
78
|
-
plainText?: string;
|
|
79
|
-
title?: string;
|
|
80
|
-
}
|
|
81
|
-
export interface BlogPost extends SanityBody {
|
|
82
|
-
authors?: Author[] | null;
|
|
83
|
-
body?: any;
|
|
84
|
-
categories?: Category[] | null;
|
|
85
|
-
excerpt?: string | null;
|
|
86
|
-
link?: string | null;
|
|
87
|
-
mainImage?: string | null;
|
|
88
|
-
publishedAt?: string;
|
|
89
|
-
seo?: Seo | null;
|
|
90
|
-
slug?: SanitySlug | null;
|
|
91
|
-
title?: string;
|
|
92
|
-
}
|
|
93
|
-
export interface Seo {
|
|
94
|
-
_type?: string;
|
|
95
|
-
seoTitle?: string;
|
|
96
|
-
seoDescription?: string;
|
|
97
|
-
seoImage?: string;
|
|
98
|
-
seoKeywords?: string;
|
|
99
|
-
seoSynonyms?: string;
|
|
100
|
-
}
|
|
101
|
-
export interface SanitySlug {
|
|
102
|
-
current?: string;
|
|
103
|
-
_type?: "slug";
|
|
104
|
-
}
|
|
105
|
-
export interface SanityBody {
|
|
106
|
-
_createdAt?: string;
|
|
107
|
-
_id?: string;
|
|
108
|
-
_rev?: string;
|
|
109
|
-
_type?: string;
|
|
110
|
-
_updatedAt?: string;
|
|
111
|
-
}
|
|
112
|
-
export interface Author extends SanityBody {
|
|
113
|
-
link?: string | null;
|
|
114
|
-
bio?: string | null;
|
|
115
|
-
name?: string | null;
|
|
116
|
-
slug?: SanitySlug | null;
|
|
117
|
-
image?: string | null;
|
|
118
|
-
profile?: {
|
|
119
|
-
alt: string;
|
|
120
|
-
image: string;
|
|
121
|
-
} | null;
|
|
122
|
-
}
|
|
123
|
-
export interface Category extends SanityBody {
|
|
124
|
-
title?: string;
|
|
125
|
-
}
|
|
126
|
-
export interface Form {
|
|
127
|
-
id?: string | null;
|
|
128
|
-
buttonLabel?: string | null;
|
|
129
|
-
name?: string | null;
|
|
130
|
-
subtitle?: string | null;
|
|
131
|
-
fields?: FormFields[] | null;
|
|
132
|
-
thankYouPage?: ThankYouPage | null;
|
|
133
|
-
}
|
|
134
|
-
export interface FormFields {
|
|
135
|
-
name?: string;
|
|
136
|
-
placeholder?: string;
|
|
137
|
-
pricingType?: string;
|
|
138
|
-
type?: FormTypes;
|
|
139
|
-
_key?: string;
|
|
140
|
-
_type?: string;
|
|
141
|
-
isRequired?: boolean;
|
|
142
|
-
label?: string;
|
|
143
|
-
items?: string[];
|
|
144
|
-
}
|
|
145
|
-
export type FormTypes = "inputText" | "inputEmail" | "inputPassword" | "inputNumber" | "textarea" | "inputFile" | "inputRadio" | "inputCheckbox" | "inputSelect";
|
|
146
|
-
export interface ThankYouPage {
|
|
147
|
-
externalLink?: string | null;
|
|
148
|
-
internalLink?: string | null;
|
|
149
|
-
linkInternal?: any;
|
|
150
|
-
linkTarget?: string;
|
|
151
|
-
linkType?: string;
|
|
152
|
-
type?: string;
|
|
153
|
-
}
|
|
154
|
-
export interface SectionsProps {
|
|
155
|
-
template?: Template;
|
|
156
|
-
data?: Sections;
|
|
157
|
-
variant?: string | null | undefined;
|
|
158
|
-
schema?: Variants;
|
|
159
|
-
}
|
|
160
|
-
export interface Sections extends SanityBody {
|
|
161
|
-
label?: string;
|
|
162
|
-
variant?: string;
|
|
163
|
-
variants?: Variants;
|
|
164
|
-
_key?: string;
|
|
165
|
-
}
|
|
166
|
-
export interface Variants {
|
|
167
|
-
template?: Template;
|
|
168
|
-
multipleMenus?: any;
|
|
169
|
-
arrayOfTitleAndText?: ArrayOfTitleAndText[] | null;
|
|
170
|
-
logo?: Logo | null;
|
|
171
|
-
primaryButton?: LabeledRoute | null;
|
|
172
|
-
secondaryButton?: LabeledRoute | null;
|
|
173
|
-
routes?: LabeledRouteWithKey[] | null;
|
|
174
|
-
menu?: LabeledRouteWithKey[] | null;
|
|
175
|
-
plans?: Plans[] | null;
|
|
176
|
-
formLinks?: LabeledRouteWithKey[] | null;
|
|
177
|
-
portfolios?: Portfolios[] | null;
|
|
178
|
-
portfoliosWithCategories?: PortfoliosWithCategories[] | null;
|
|
179
|
-
length?: number;
|
|
180
|
-
signInLink?: LabeledRoute | null;
|
|
181
|
-
signinLink?: LabeledRoute | null;
|
|
182
|
-
tags?: string[] | null;
|
|
183
|
-
posts?: BlogPost[] | null;
|
|
184
|
-
blogsPerPage?: number | null;
|
|
185
|
-
form?: Form | null;
|
|
186
|
-
collections?: Collection | null;
|
|
187
|
-
products?: CollectionProduct | null;
|
|
188
|
-
allProducts?: Collection[];
|
|
189
|
-
subtitle?: string | null;
|
|
190
|
-
caption?: string | null;
|
|
191
|
-
title?: string | null;
|
|
192
|
-
plainText?: string | null;
|
|
193
|
-
contactDescription?: string | null;
|
|
194
|
-
officeInformation?: string | null;
|
|
195
|
-
contactEmail?: string | null;
|
|
196
|
-
contactNumber?: string | null;
|
|
197
|
-
socialLinks?: SocialLink[] | null;
|
|
198
|
-
block?: any;
|
|
199
|
-
heading?: string | null;
|
|
200
|
-
acceptButtonLabel?: string | null;
|
|
201
|
-
declineButtonLabel?: string | null;
|
|
202
|
-
faqsWithCategories?: FaqsWithCategory[] | null;
|
|
203
|
-
faqs?: AskedQuestion[] | null;
|
|
204
|
-
arrayOfImageTitleAndText?: ArrayOfImageTitleAndText[] | null;
|
|
205
|
-
description?: string | null;
|
|
206
|
-
featuredItems?: FeaturedItem[] | null;
|
|
207
|
-
images?: Images[] | null;
|
|
208
|
-
contactDetails?: ContactDetails[] | null;
|
|
209
|
-
copyright?: string | null;
|
|
210
|
-
mainImage?: MainImage | null;
|
|
211
|
-
youtubeLink?: string | null;
|
|
212
|
-
banner?: any;
|
|
213
|
-
stats?: StatItems[] | null;
|
|
214
|
-
teams?: Team[] | null;
|
|
215
|
-
testimonials?: Testimonial[] | null;
|
|
216
|
-
selectStripeAccount?: string;
|
|
217
|
-
annualBilling?: string;
|
|
218
|
-
monthlyBilling?: string;
|
|
219
|
-
productDetails?: ProductDetail[];
|
|
220
|
-
btnLabel?: string;
|
|
221
|
-
selectAccount?: string;
|
|
222
|
-
hashtags?: string[];
|
|
223
|
-
numberOfPosts?: number;
|
|
224
|
-
text?: string;
|
|
225
|
-
button?: LabeledRoute;
|
|
226
|
-
features?: string[];
|
|
227
|
-
config?: {
|
|
228
|
-
enableAnalytics: boolean;
|
|
229
|
-
cookiePolicy?: {
|
|
230
|
-
siteName: string;
|
|
231
|
-
cookiePolicyPage: Reference;
|
|
232
|
-
};
|
|
233
|
-
consentModalPosition?: string;
|
|
234
|
-
};
|
|
235
|
-
contactLink?: LabeledRoute;
|
|
236
|
-
}
|
|
237
|
-
export interface Template {
|
|
238
|
-
bg?: string;
|
|
239
|
-
color?: string;
|
|
240
|
-
}
|
|
241
|
-
export type Plans = {
|
|
242
|
-
_key?: string | null;
|
|
243
|
-
_type?: "planItems" | null;
|
|
244
|
-
checkoutButtonName?: string | null;
|
|
245
|
-
description?: string | null;
|
|
246
|
-
monthlyPrice?: string | null;
|
|
247
|
-
planType?: string | null;
|
|
248
|
-
yearlyPrice?: string | null;
|
|
249
|
-
planIncludes?: string[] | null;
|
|
250
|
-
primaryButton?: LabeledRoute | null;
|
|
251
|
-
} & Record<string, string>;
|
|
252
|
-
export interface Portfolios {
|
|
253
|
-
dateAdded?: string | null;
|
|
254
|
-
mainImage?: {
|
|
255
|
-
image?: string | null;
|
|
256
|
-
alt?: string | null;
|
|
257
|
-
} | null;
|
|
258
|
-
primaryButton?: LabeledRoute | null;
|
|
259
|
-
title?: string | null;
|
|
260
|
-
_key?: string | null;
|
|
261
|
-
_type?: string | null;
|
|
262
|
-
}
|
|
263
|
-
export interface PortfoliosWithCategories {
|
|
264
|
-
category?: string | null;
|
|
265
|
-
content?: Content[] | null;
|
|
266
|
-
primaryButton?: LabeledRoute | null;
|
|
267
|
-
_key?: string | null;
|
|
268
|
-
_type?: string | null;
|
|
269
|
-
}
|
|
270
|
-
export interface Content extends Portfolios {
|
|
271
|
-
description?: string | null;
|
|
272
|
-
subtitle?: string | null;
|
|
273
|
-
}
|
|
274
|
-
export interface Collection extends SanityBody {
|
|
275
|
-
collectionInfoVariant?: {
|
|
276
|
-
variant?: string;
|
|
277
|
-
} | null;
|
|
278
|
-
name?: string | null;
|
|
279
|
-
products?: CollectionProduct[] | null;
|
|
280
|
-
sections?: any;
|
|
281
|
-
seo?: Seo | null;
|
|
282
|
-
slug?: SanitySlug | null;
|
|
283
|
-
}
|
|
284
|
-
export interface CollectionProduct extends SanityBody {
|
|
285
|
-
compareToPrice?: number | null;
|
|
286
|
-
description?: string | null;
|
|
287
|
-
ecwidProductId?: number | null;
|
|
288
|
-
name?: string | null;
|
|
289
|
-
price?: number | null;
|
|
290
|
-
productInfo?: ProductInfo | null;
|
|
291
|
-
productInfoVariant?: {
|
|
292
|
-
variant?: string;
|
|
293
|
-
} | null;
|
|
294
|
-
sections?: any;
|
|
295
|
-
seo?: Seo | null;
|
|
296
|
-
slug?: SanitySlug | null;
|
|
297
|
-
}
|
|
298
|
-
interface ProductInfo {
|
|
299
|
-
btnLabel?: string | null;
|
|
300
|
-
images?: ProductInfoImage[] | null;
|
|
301
|
-
productDetails?: ProductDetail[] | null;
|
|
302
|
-
socialLinks?: SocialLink[] | null;
|
|
303
|
-
subtitle?: string | null;
|
|
304
|
-
}
|
|
305
|
-
export interface ProductDetail {
|
|
306
|
-
blockContent?: any;
|
|
307
|
-
contentType?: string;
|
|
308
|
-
tabName?: string;
|
|
309
|
-
_key?: string;
|
|
310
|
-
[key: string]: any;
|
|
311
|
-
}
|
|
312
|
-
interface ProductInfoImage {
|
|
313
|
-
alt?: string | null;
|
|
314
|
-
_key: string;
|
|
315
|
-
_type: string;
|
|
316
|
-
image?: string | null;
|
|
317
|
-
}
|
|
318
|
-
export interface FaqsWithCategory {
|
|
319
|
-
askedQuestions?: AskedQuestion[] | null;
|
|
320
|
-
category?: string | null;
|
|
321
|
-
_key?: string;
|
|
322
|
-
_type?: string;
|
|
323
|
-
}
|
|
324
|
-
export interface AskedQuestion {
|
|
325
|
-
answer?: string | null;
|
|
326
|
-
question?: string | null;
|
|
327
|
-
hidden?: boolean;
|
|
328
|
-
_key?: string;
|
|
329
|
-
_type?: string;
|
|
330
|
-
}
|
|
331
|
-
export interface Team {
|
|
332
|
-
jobTitle?: string;
|
|
333
|
-
mainImage?: MainImage;
|
|
334
|
-
name?: string;
|
|
335
|
-
plainText?: string;
|
|
336
|
-
_key?: string;
|
|
337
|
-
_type?: string;
|
|
338
|
-
}
|
|
339
|
-
export interface Testimonial {
|
|
340
|
-
jobTitle?: string;
|
|
341
|
-
mainImage?: MainImage;
|
|
342
|
-
name?: string;
|
|
343
|
-
rating?: string;
|
|
344
|
-
testimony?: string;
|
|
345
|
-
_key?: string;
|
|
346
|
-
_type?: string;
|
|
347
|
-
}
|
|
348
|
-
export declare interface Reference {
|
|
349
|
-
_type: string;
|
|
350
|
-
_ref: string;
|
|
351
|
-
_key?: string;
|
|
352
|
-
_weak?: boolean;
|
|
353
|
-
_strengthenOnPublish?: {
|
|
354
|
-
type: string;
|
|
355
|
-
weak?: boolean;
|
|
356
|
-
template?: {
|
|
357
|
-
id: string;
|
|
358
|
-
params: Record<string, string | number | boolean>;
|
|
359
|
-
};
|
|
360
|
-
};
|
|
361
|
-
}
|
|
362
|
-
export {};
|
package/dist/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var l=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var g=(n,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of a(t))!o.call(n,e)&&e!==r&&l(n,e,{get:()=>t[e],enumerable:!(i=s(t,e))||i.enumerable});return n};var u=n=>g(l({},"__esModule",{value:!0}),n);var c={};module.exports=u(c);
|