@stackshift-ui/testimonial 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,373 @@
1
+ Mozilla Public License Version 2.0
2
+ ==================================
3
+
4
+ 1. Definitions
5
+ --------------
6
+
7
+ 1.1. "Contributor"
8
+ means each individual or legal entity that creates, contributes to
9
+ the creation of, or owns Covered Software.
10
+
11
+ 1.2. "Contributor Version"
12
+ means the combination of the Contributions of others (if any) used
13
+ by a Contributor and that particular Contributor's Contribution.
14
+
15
+ 1.3. "Contribution"
16
+ means Covered Software of a particular Contributor.
17
+
18
+ 1.4. "Covered Software"
19
+ means Source Code Form to which the initial Contributor has attached
20
+ the notice in Exhibit A, the Executable Form of such Source Code
21
+ Form, and Modifications of such Source Code Form, in each case
22
+ including portions thereof.
23
+
24
+ 1.5. "Incompatible With Secondary Licenses"
25
+ means
26
+
27
+ (a) that the initial Contributor has attached the notice described
28
+ in Exhibit B to the Covered Software; or
29
+
30
+ (b) that the Covered Software was made available under the terms of
31
+ version 1.1 or earlier of the License, but not also under the
32
+ terms of a Secondary License.
33
+
34
+ 1.6. "Executable Form"
35
+ means any form of the work other than Source Code Form.
36
+
37
+ 1.7. "Larger Work"
38
+ means a work that combines Covered Software with other material, in
39
+ a separate file or files, that is not Covered Software.
40
+
41
+ 1.8. "License"
42
+ means this document.
43
+
44
+ 1.9. "Licensable"
45
+ means having the right to grant, to the maximum extent possible,
46
+ whether at the time of the initial grant or subsequently, any and
47
+ all of the rights conveyed by this License.
48
+
49
+ 1.10. "Modifications"
50
+ means any of the following:
51
+
52
+ (a) any file in Source Code Form that results from an addition to,
53
+ deletion from, or modification of the contents of Covered
54
+ Software; or
55
+
56
+ (b) any new file in Source Code Form that contains any Covered
57
+ Software.
58
+
59
+ 1.11. "Patent Claims" of a Contributor
60
+ means any patent claim(s), including without limitation, method,
61
+ process, and apparatus claims, in any patent Licensable by such
62
+ Contributor that would be infringed, but for the grant of the
63
+ License, by the making, using, selling, offering for sale, having
64
+ made, import, or transfer of either its Contributions or its
65
+ Contributor Version.
66
+
67
+ 1.12. "Secondary License"
68
+ means either the GNU General Public License, Version 2.0, the GNU
69
+ Lesser General Public License, Version 2.1, the GNU Affero General
70
+ Public License, Version 3.0, or any later versions of those
71
+ licenses.
72
+
73
+ 1.13. "Source Code Form"
74
+ means the form of the work preferred for making modifications.
75
+
76
+ 1.14. "You" (or "Your")
77
+ means an individual or a legal entity exercising rights under this
78
+ License. For legal entities, "You" includes any entity that
79
+ controls, is controlled by, or is under common control with You. For
80
+ purposes of this definition, "control" means (a) the power, direct
81
+ or indirect, to cause the direction or management of such entity,
82
+ whether by contract or otherwise, or (b) ownership of more than
83
+ fifty percent (50%) of the outstanding shares or beneficial
84
+ ownership of such entity.
85
+
86
+ 2. License Grants and Conditions
87
+ --------------------------------
88
+
89
+ 2.1. Grants
90
+
91
+ Each Contributor hereby grants You a world-wide, royalty-free,
92
+ non-exclusive license:
93
+
94
+ (a) under intellectual property rights (other than patent or trademark)
95
+ Licensable by such Contributor to use, reproduce, make available,
96
+ modify, display, perform, distribute, and otherwise exploit its
97
+ Contributions, either on an unmodified basis, with Modifications, or
98
+ as part of a Larger Work; and
99
+
100
+ (b) under Patent Claims of such Contributor to make, use, sell, offer
101
+ for sale, have made, import, and otherwise transfer either its
102
+ Contributions or its Contributor Version.
103
+
104
+ 2.2. Effective Date
105
+
106
+ The licenses granted in Section 2.1 with respect to any Contribution
107
+ become effective for each Contribution on the date the Contributor first
108
+ distributes such Contribution.
109
+
110
+ 2.3. Limitations on Grant Scope
111
+
112
+ The licenses granted in this Section 2 are the only rights granted under
113
+ this License. No additional rights or licenses will be implied from the
114
+ distribution or licensing of Covered Software under this License.
115
+ Notwithstanding Section 2.1(b) above, no patent license is granted by a
116
+ Contributor:
117
+
118
+ (a) for any code that a Contributor has removed from Covered Software;
119
+ or
120
+
121
+ (b) for infringements caused by: (i) Your and any other third party's
122
+ modifications of Covered Software, or (ii) the combination of its
123
+ Contributions with other software (except as part of its Contributor
124
+ Version); or
125
+
126
+ (c) under Patent Claims infringed by Covered Software in the absence of
127
+ its Contributions.
128
+
129
+ This License does not grant any rights in the trademarks, service marks,
130
+ or logos of any Contributor (except as may be necessary to comply with
131
+ the notice requirements in Section 3.4).
132
+
133
+ 2.4. Subsequent Licenses
134
+
135
+ No Contributor makes additional grants as a result of Your choice to
136
+ distribute the Covered Software under a subsequent version of this
137
+ License (see Section 10.2) or under the terms of a Secondary License (if
138
+ permitted under the terms of Section 3.3).
139
+
140
+ 2.5. Representation
141
+
142
+ Each Contributor represents that the Contributor believes its
143
+ Contributions are its original creation(s) or it has sufficient rights
144
+ to grant the rights to its Contributions conveyed by this License.
145
+
146
+ 2.6. Fair Use
147
+
148
+ This License is not intended to limit any rights You have under
149
+ applicable copyright doctrines of fair use, fair dealing, or other
150
+ equivalents.
151
+
152
+ 2.7. Conditions
153
+
154
+ Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
155
+ in Section 2.1.
156
+
157
+ 3. Responsibilities
158
+ -------------------
159
+
160
+ 3.1. Distribution of Source Form
161
+
162
+ All distribution of Covered Software in Source Code Form, including any
163
+ Modifications that You create or to which You contribute, must be under
164
+ the terms of this License. You must inform recipients that the Source
165
+ Code Form of the Covered Software is governed by the terms of this
166
+ License, and how they can obtain a copy of this License. You may not
167
+ attempt to alter or restrict the recipients' rights in the Source Code
168
+ Form.
169
+
170
+ 3.2. Distribution of Executable Form
171
+
172
+ If You distribute Covered Software in Executable Form then:
173
+
174
+ (a) such Covered Software must also be made available in Source Code
175
+ Form, as described in Section 3.1, and You must inform recipients of
176
+ the Executable Form how they can obtain a copy of such Source Code
177
+ Form by reasonable means in a timely manner, at a charge no more
178
+ than the cost of distribution to the recipient; and
179
+
180
+ (b) You may distribute such Executable Form under the terms of this
181
+ License, or sublicense it under different terms, provided that the
182
+ license for the Executable Form does not attempt to limit or alter
183
+ the recipients' rights in the Source Code Form under this License.
184
+
185
+ 3.3. Distribution of a Larger Work
186
+
187
+ You may create and distribute a Larger Work under terms of Your choice,
188
+ provided that You also comply with the requirements of this License for
189
+ the Covered Software. If the Larger Work is a combination of Covered
190
+ Software with a work governed by one or more Secondary Licenses, and the
191
+ Covered Software is not Incompatible With Secondary Licenses, this
192
+ License permits You to additionally distribute such Covered Software
193
+ under the terms of such Secondary License(s), so that the recipient of
194
+ the Larger Work may, at their option, further distribute the Covered
195
+ Software under the terms of either this License or such Secondary
196
+ License(s).
197
+
198
+ 3.4. Notices
199
+
200
+ You may not remove or alter the substance of any license notices
201
+ (including copyright notices, patent notices, disclaimers of warranty,
202
+ or limitations of liability) contained within the Source Code Form of
203
+ the Covered Software, except that You may alter any license notices to
204
+ the extent required to remedy known factual inaccuracies.
205
+
206
+ 3.5. Application of Additional Terms
207
+
208
+ You may choose to offer, and to charge a fee for, warranty, support,
209
+ indemnity or liability obligations to one or more recipients of Covered
210
+ Software. However, You may do so only on Your own behalf, and not on
211
+ behalf of any Contributor. You must make it absolutely clear that any
212
+ such warranty, support, indemnity, or liability obligation is offered by
213
+ You alone, and You hereby agree to indemnify every Contributor for any
214
+ liability incurred by such Contributor as a result of warranty, support,
215
+ indemnity or liability terms You offer. You may include additional
216
+ disclaimers of warranty and limitations of liability specific to any
217
+ jurisdiction.
218
+
219
+ 4. Inability to Comply Due to Statute or Regulation
220
+ ---------------------------------------------------
221
+
222
+ If it is impossible for You to comply with any of the terms of this
223
+ License with respect to some or all of the Covered Software due to
224
+ statute, judicial order, or regulation then You must: (a) comply with
225
+ the terms of this License to the maximum extent possible; and (b)
226
+ describe the limitations and the code they affect. Such description must
227
+ be placed in a text file included with all distributions of the Covered
228
+ Software under this License. Except to the extent prohibited by statute
229
+ or regulation, such description must be sufficiently detailed for a
230
+ recipient of ordinary skill to be able to understand it.
231
+
232
+ 5. Termination
233
+ --------------
234
+
235
+ 5.1. The rights granted under this License will terminate automatically
236
+ if You fail to comply with any of its terms. However, if You become
237
+ compliant, then the rights granted under this License from a particular
238
+ Contributor are reinstated (a) provisionally, unless and until such
239
+ Contributor explicitly and finally terminates Your grants, and (b) on an
240
+ ongoing basis, if such Contributor fails to notify You of the
241
+ non-compliance by some reasonable means prior to 60 days after You have
242
+ come back into compliance. Moreover, Your grants from a particular
243
+ Contributor are reinstated on an ongoing basis if such Contributor
244
+ notifies You of the non-compliance by some reasonable means, this is the
245
+ first time You have received notice of non-compliance with this License
246
+ from such Contributor, and You become compliant prior to 30 days after
247
+ Your receipt of the notice.
248
+
249
+ 5.2. If You initiate litigation against any entity by asserting a patent
250
+ infringement claim (excluding declaratory judgment actions,
251
+ counter-claims, and cross-claims) alleging that a Contributor Version
252
+ directly or indirectly infringes any patent, then the rights granted to
253
+ You by any and all Contributors for the Covered Software under Section
254
+ 2.1 of this License shall terminate.
255
+
256
+ 5.3. In the event of termination under Sections 5.1 or 5.2 above, all
257
+ end user license agreements (excluding distributors and resellers) which
258
+ have been validly granted by You or Your distributors under this License
259
+ prior to termination shall survive termination.
260
+
261
+ ************************************************************************
262
+ * *
263
+ * 6. Disclaimer of Warranty *
264
+ * ------------------------- *
265
+ * *
266
+ * Covered Software is provided under this License on an "as is" *
267
+ * basis, without warranty of any kind, either expressed, implied, or *
268
+ * statutory, including, without limitation, warranties that the *
269
+ * Covered Software is free of defects, merchantable, fit for a *
270
+ * particular purpose or non-infringing. The entire risk as to the *
271
+ * quality and performance of the Covered Software is with You. *
272
+ * Should any Covered Software prove defective in any respect, You *
273
+ * (not any Contributor) assume the cost of any necessary servicing, *
274
+ * repair, or correction. This disclaimer of warranty constitutes an *
275
+ * essential part of this License. No use of any Covered Software is *
276
+ * authorized under this License except under this disclaimer. *
277
+ * *
278
+ ************************************************************************
279
+
280
+ ************************************************************************
281
+ * *
282
+ * 7. Limitation of Liability *
283
+ * -------------------------- *
284
+ * *
285
+ * Under no circumstances and under no legal theory, whether tort *
286
+ * (including negligence), contract, or otherwise, shall any *
287
+ * Contributor, or anyone who distributes Covered Software as *
288
+ * permitted above, be liable to You for any direct, indirect, *
289
+ * special, incidental, or consequential damages of any character *
290
+ * including, without limitation, damages for lost profits, loss of *
291
+ * goodwill, work stoppage, computer failure or malfunction, or any *
292
+ * and all other commercial damages or losses, even if such party *
293
+ * shall have been informed of the possibility of such damages. This *
294
+ * limitation of liability shall not apply to liability for death or *
295
+ * personal injury resulting from such party's negligence to the *
296
+ * extent applicable law prohibits such limitation. Some *
297
+ * jurisdictions do not allow the exclusion or limitation of *
298
+ * incidental or consequential damages, so this exclusion and *
299
+ * limitation may not apply to You. *
300
+ * *
301
+ ************************************************************************
302
+
303
+ 8. Litigation
304
+ -------------
305
+
306
+ Any litigation relating to this License may be brought only in the
307
+ courts of a jurisdiction where the defendant maintains its principal
308
+ place of business and such litigation shall be governed by laws of that
309
+ jurisdiction, without reference to its conflict-of-law provisions.
310
+ Nothing in this Section shall prevent a party's ability to bring
311
+ cross-claims or counter-claims.
312
+
313
+ 9. Miscellaneous
314
+ ----------------
315
+
316
+ This License represents the complete agreement concerning the subject
317
+ matter hereof. If any provision of this License is held to be
318
+ unenforceable, such provision shall be reformed only to the extent
319
+ necessary to make it enforceable. Any law or regulation which provides
320
+ that the language of a contract shall be construed against the drafter
321
+ shall not be used to construe this License against a Contributor.
322
+
323
+ 10. Versions of the License
324
+ ---------------------------
325
+
326
+ 10.1. New Versions
327
+
328
+ Mozilla Foundation is the license steward. Except as provided in Section
329
+ 10.3, no one other than the license steward has the right to modify or
330
+ publish new versions of this License. Each version will be given a
331
+ distinguishing version number.
332
+
333
+ 10.2. Effect of New Versions
334
+
335
+ You may distribute the Covered Software under the terms of the version
336
+ of the License under which You originally received the Covered Software,
337
+ or under the terms of any subsequent version published by the license
338
+ steward.
339
+
340
+ 10.3. Modified Versions
341
+
342
+ If you create software not governed by this License, and you want to
343
+ create a new license for such software, you may create and use a
344
+ modified version of this License if you rename the license and remove
345
+ any references to the name of the license steward (except to note that
346
+ such modified license differs from this License).
347
+
348
+ 10.4. Distributing Source Code Form that is Incompatible With Secondary
349
+ Licenses
350
+
351
+ If You choose to distribute Source Code Form that is Incompatible With
352
+ Secondary Licenses under the terms of this version of the License, the
353
+ notice described in Exhibit B of this License must be attached.
354
+
355
+ Exhibit A - Source Code Form License Notice
356
+ -------------------------------------------
357
+
358
+ This Source Code Form is subject to the terms of the Mozilla Public
359
+ License, v. 2.0. If a copy of the MPL was not distributed with this
360
+ file, You can obtain one at http://mozilla.org/MPL/2.0/.
361
+
362
+ If it is not possible or desirable to put the notice in a particular
363
+ file, then You may include the notice in a location (such as a LICENSE
364
+ file in a relevant directory) where a recipient would be likely to look
365
+ for such a notice.
366
+
367
+ You may add additional accurate notices of copyright ownership.
368
+
369
+ Exhibit B - "Incompatible With Secondary Licenses" Notice
370
+ ---------------------------------------------------------
371
+
372
+ This Source Code Form is "Incompatible With Secondary Licenses", as
373
+ defined by the Mozilla Public License, v. 2.0.
package/README.md ADDED
@@ -0,0 +1,22 @@
1
+ # @stackshift-ui/testimonial
2
+
3
+ Please refer to the [documentation](https://stackshift-ui.webriq.com/docs/components/testimonial) for more information.
4
+
5
+ ## Installation
6
+
7
+ ```sh
8
+ yarn add @stackshift-ui/testimonial
9
+ # or
10
+ npm i @stackshift-ui/testimonial
11
+ ```
12
+
13
+ ## Contribution
14
+
15
+ Yes please! See the
16
+ [contributing guidelines](https://github.com/stackshift-ui/components/master/CONTRIBUTING.md)
17
+ for details.
18
+
19
+ ## License
20
+
21
+ This project is licensed under the terms of the
22
+ [MIT license](https://github.com/stackshift-ui/components/master/LICENSE).
@@ -0,0 +1 @@
1
+ import x from"react";import{Avatar as g}from"@stackshift-ui/avatar";import{Card as T}from"@stackshift-ui/card";import{Text as p}from"@stackshift-ui/text";import{SwiperButton as m}from"@stackshift-ui/swiper-button";import{Heading as b}from"@stackshift-ui/heading";import{Section as w}from"@stackshift-ui/section";import{Container as N}from"@stackshift-ui/container";import{Flex as u}from"@stackshift-ui/flex";import{jsx as e,jsxs as i}from"react/jsx-runtime";function h({caption:a,title:l,testimonials:r}){let[n,t]=x.useState(r);return i(w,{className:"py-10 overflow-hidden bg-background lg:py-20",children:[e(N,{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:[e(v,{caption:a,title:l}),e(C,{testimony:n,slider:d=>{t(c=>{if(!c||c.length===0)return c;let o=[...c];if(d==="next"){let s=o.shift();s&&o.push(s)}else if(d==="prev"){let s=o.pop();s&&o.unshift(s)}return o})}})]})}),e(k,{testimony:n})]})}function v({caption:a,title:l}){return i("div",{className:"w-full mb-4 lg:mb-0 lg:w-4/5",children:[e(p,{weight:"bold",className:"text-secondary",children:a}),e(b,{fontSize:"3xl",children:l})]})}function C({testimony:a,slider:l}){return a?i("div",{className:"w-full lg:w-1/5",children:[a&&(a==null?void 0:a.length)>=4&&e(m,{type:"left",className:"order-last p-5 mr-4 lg:order-first",onClick:()=>l("prev"),ariaLabel:"Show previous testimonial"}),a&&(a==null?void 0:a.length)>=4&&e(m,{type:"right",className:"order-last p-5",onClick:()=>l("next"),ariaLabel:"Show next testimonial"})]}):null}function k({testimony:a}){var l;return a?e(u,{className:"relative",children:a&&e(u,{wrap:!0,className:"max-w-6xl px-2 mx-auto",children:(l=a==null?void 0:a.slice(0,3))==null?void 0:l.map((r,n)=>e(I,{item:r,index:n},r==null?void 0:r._key))})}):null}function I({item:a,index:l}){var r,n,t,f;return a?e("div",{className:"w-full px-3 mb-4 lg:w-1/3",children:i(T,{className:"p-8 text-center ",children:[e(p,{className:"mb-8 leading-loose",muted:!0,children:a==null?void 0:a.testimony}),((r=a==null?void 0:a.mainImage)==null?void 0:r.image)&&e(g,{size:48,className:"mx-auto border-0",src:`${(n=a==null?void 0:a.mainImage)==null?void 0:n.image}`,alt:(f=(t=a==null?void 0:a.mainImage)==null?void 0:t.alt)!=null?f:`testimonial-source-${a==null?void 0:a.name}-profile-image`}),e(p,{className:"mb-1 text-2xl ",weight:"bold",children:a==null?void 0:a.name}),e(p,{muted:!0,children:a==null?void 0:a.jobTitle})]})},l):null}export{h as a};
@@ -0,0 +1 @@
1
+ import a from"react";import{Avatar as l}from"@stackshift-ui/avatar";import{Card as N}from"@stackshift-ui/card";import{Heading as h}from"@stackshift-ui/heading";import{SwiperPagination as n}from"@stackshift-ui/swiper-pagination";import{Text as m}from"@stackshift-ui/text";import{Section as o}from"@stackshift-ui/section";import{Container as S}from"@stackshift-ui/container";import{Flex as F}from"@stackshift-ui/flex";import{jsx as e,jsxs as g}from"react/jsx-runtime";function y({testimonials:r}){let[C,u]=a.useState(0);return e(o,{className:"py-20 bg-background",children:e(S,{maxWidth:1280,children:e(N,{className:"py-10 ",children:g(F,{wrap:!0,align:"center",justify:"center",className:"max-w-5xl p-4",children:[e(A,{testimonials:r,testimony:C}),e(k,{testimonials:r,testimony:C,slider:f=>{u(f)}})]})})})})}function A({testimonials:r,testimony:C}){var u,p,f,c,d,x,T,b,w,v;return r!=null&&r[C]?g("div",{className:"w-full mb-6 text-center lg:w-1/3",children:[(u=r==null?void 0:r[C])!=null&&u.mainImage?e(l,{className:"border-0 mx-auto",size:128,alt:(d=(f=(p=r==null?void 0:r[C])==null?void 0:p.mainImage)==null?void 0:f.alt)!=null?d:`testimonial-source-${(c=r==null?void 0:r[C])==null?void 0:c.name}-profile-image`,src:`${(x=r==null?void 0:r[C])==null?void 0:x.mainImage}`}):null,(T=r==null?void 0:r[C])!=null&&T.name?e(m,{className:"text-xl",children:(b=r==null?void 0:r[C])==null?void 0:b.name}):null,(w=r==null?void 0:r[C])!=null&&w.jobTitle?e(m,{className:"text-primary",children:(v=r==null?void 0:r[C])==null?void 0:v.jobTitle}):null]}):null}function k({testimonials:r,testimony:C,slider:u}){var p;return r!=null&&r[C]?e(a.Fragment,{children:g("div",{className:"w-full lg:w-2/3",children:[g("svg",{className:"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(h,{children:(p=r==null?void 0:r[C])==null?void 0:p.testimony}),(r==null?void 0:r.length)>1?e(a.Fragment,{children:r.map((f,c)=>e(n,{colorScheme:"blue",isActive:c===C,ariaLabel:`Show Testimonial ${c}`,onClick:()=>u(c)},c))}):null]})}):null}export{y as a};
@@ -0,0 +1 @@
1
+ import I from"react";import{Card as k}from"@stackshift-ui/card";import{Text as C}from"@stackshift-ui/text";import{SwiperButton as d}from"@stackshift-ui/swiper-button";import{Image as L}from"@stackshift-ui/image";import{Section as j}from"@stackshift-ui/section";import{Container as B}from"@stackshift-ui/container";import{Flex as M}from"@stackshift-ui/flex";import{jsx as e,jsxs as g}from"react/jsx-runtime";function R({testimonials:r}){var n,u,h,o,w,m,t,b,v,N,y,S;let[c,f]=I.useState(0),a=p=>{!r||r.length<=1||f(p==="next"?l=>l!==r.length-1?l+1:0:l=>l>0?l-1:r.length-1)},T=p=>{let l=[];for(let x=0;x<p;x++)l.push(x);return l};return e(j,{className:"py-20 bg-background",children:e(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:[r&&(r==null?void 0:r.length)>1&&e(d,{type:"left",className:"p-4 mr-6 lg:order-first lg:mr-0",onClick:()=>a("prev"),ariaLabel:"Show previous testimonial"}),r&&(r==null?void 0:r.length)>1&&e(d,{type:"right",className:"p-4 mr-6 lg:order-first lg:mr-0",onClick:()=>a("next"),ariaLabel:"Show next testimonial"})]}),r&&(r==null?void 0:r.length)>1&&e(d,{type:"left",className:"hidden p-4 mr-6 lg:block lg:order-first lg:mr-0",onClick:()=>a("prev"),ariaLabel:"Show previous testimonial"}),(r==null?void 0:r[c])&&g(k,{className:"flex flex-wrap w-full ",children:[((n=r==null?void 0:r[c])==null?void 0:n.rating)&&g("div",{className:"w-full py-10 text-center border-r lg:w-1/3",children:[e("span",{className:"text-5xl font-bold lg:text-6xl",children:`${(u=r==null?void 0:r[c])==null?void 0:u.rating}.0`}),e(M,{align:"center",justify:"center",className:"mb-6 text-primary",children:((h=r==null?void 0:r[c])==null?void 0:h.rating)!==void 0&&T(Number((o=r==null?void 0:r[c])==null?void 0:o.rating)).map((p,l)=>e($,{},l))}),e("div",{className:"object-contain w-32 h-24 mx-auto mb-6 rounded-full",children:((w=r[c])==null?void 0:w.mainImage)&&e(L,{className:"h-[96px] w-[128px] object-scale-down",src:`${(m=r[c])==null?void 0:m.mainImage}`,width:128,height:96,alt:(v=(b=(t=r[c])==null?void 0:t.mainImage)==null?void 0:b.alt)!=null?v:`testimonial-source-profile-image${c}`})})]}),g("div",{className:"w-full px-6 py-10 lg:w-2/3",children:[e(F,{}),e(C,{muted:!0,className:"mb-10 text-xl leading-loose lg:text-2xl",children:(N=r[c])==null?void 0:N.testimony}),e(C,{weight:"bold",className:"text-2xl font-bold ",children:(y=r[c])==null?void 0:y.name}),e(C,{muted:!0,children:(S=r[c])==null?void 0:S.jobTitle})]})]}),r&&(r==null?void 0:r.length)>1&&e(d,{type:"right",className:"p-4 mr-6 lg:mr-0",onClick:()=>a("next"),ariaLabel:"Show next testimonial"})]})})})}function $(){return e("svg",{className:"w-6 h-6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:e("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 F(){return g("svg",{className:"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"})]})}export{R as a};
@@ -0,0 +1 @@
1
+ import{lazy as n}from"react";import{jsx as T}from"react/jsx-runtime";var v={variant_a:n(()=>import("./testimonial_a.mjs")),variant_b:n(()=>import("./testimonial_b.mjs")),variant_c:n(()=>import("./testimonial_c.mjs")),variant_d:n(()=>import("./testimonial_d.mjs"))},f="Testimonial",a=({data:i})=>{var s,e,r,l,m,p;let t=i==null?void 0:i.variant,o=t&&v[t],c={caption:(e=(s=i==null?void 0:i.variants)==null?void 0:s.subtitle)!=null?e:void 0,title:(l=(r=i==null?void 0:i.variants)==null?void 0:r.title)!=null?l:void 0,testimonials:(p=(m=i==null?void 0:i.variants)==null?void 0:m.testimonials)!=null?p:void 0};return o?T(o,{...c}):null};a.displayName=f;export{a};
@@ -0,0 +1 @@
1
+ import d,{useState as g}from"react";import{Card as x}from"@stackshift-ui/card";import{Text as o}from"@stackshift-ui/text";import{SwiperButton as c}from"@stackshift-ui/swiper-button";import{Heading as h}from"@stackshift-ui/heading";import{Section as w}from"@stackshift-ui/section";import{Container as p}from"@stackshift-ui/container";import{Flex as u}from"@stackshift-ui/flex";import{jsx as t,jsxs as a}from"react/jsx-runtime";function T({caption:e,title:r,testimonials:n}){let[s,C]=g(n);return t(w,{className:"py-20 overflow-hidden bg-background",children:a(p,{maxWidth:1280,children:[t(u,{wrap:!0,align:"center",justify:"center",className:"pt-8 pb-16",children:t(N,{testimony:s,slider:m=>{C(f=>{let i=f||[];if(m==="next"){let l=i.length>0?i.shift():void 0;return l?[...i,l]:i}else if(m==="prev"){let l=i.length>0?i.pop():void 0;return l?[l,...i]:i}return i})},children:t(v,{caption:e,title:r})})}),t(b,{testimonials:s})]})})}function v({caption:e,title:r}){return a(p,{maxWidth:576,className:"mb-10 text-center ",children:[t(o,{weight:"bold",className:"text-secondary",children:e}),t(h,{fontSize:"3xl",className:"mt-4",children:r})]})}function N({testimony:e,slider:r,children:n}){return e?a(d.Fragment,{children:[e&&(e==null?void 0:e.length)>=4&&t(c,{type:"left",className:"order-last p-4 mr-3 lg:order-first lg:mr-0",onClick:()=>r("prev"),ariaLabel:"Show previous testimonial"}),n,e&&(e==null?void 0:e.length)>=4&&t(c,{type:"right",className:"order-last p-4",onClick:()=>r("next"),ariaLabel:"Show next testimonial"})]}):null}function b({testimonials:e}){return e?t("div",{className:"relative w-full",children:t(u,{wrap:!0,justify:"center",className:"mx-auto ",children:e.slice(0,3).map((r,n)=>t(S,{...r},n))})}):null}function S({testimony:e,name:r,jobTitle:n}){return e?t("div",{className:`mb-4 w-full ${(e==null?void 0:e.length)>=3,"lg:w-1/3"} px-3`,children:a(x,{className:"p-5 ",children:[t(F,{}),t(o,{className:"mb-4 leading-loose",muted:!0,children:e}),t(o,{weight:"bold",children:r}),t(o,{muted:!0,children:n})]})}):null}function F(){return a("svg",{className:"h-8 mb-6 text-primary",viewBox:"0 0 32 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("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"}),t("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{T as a};
@@ -0,0 +1,5 @@
1
+ export * from "./testimonial";
2
+ export * from "./testimonial_a";
3
+ export * from "./testimonial_b";
4
+ export * from "./testimonial_c";
5
+ export * from "./testimonial_d";
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ "use strict";var S1=Object.create;var N=Object.defineProperty;var I1=Object.getOwnPropertyDescriptor;var k1=Object.getOwnPropertyNames;var y1=Object.getPrototypeOf,F1=Object.prototype.hasOwnProperty;var S=(r,e)=>()=>(r&&(e=r(r=0)),e);var w=(r,e)=>{for(var l in e)N(r,l,{get:e[l],enumerable:!0})},K=(r,e,l,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of k1(e))!F1.call(r,c)&&c!==l&&N(r,c,{get:()=>e[c],enumerable:!(n=I1(e,c))||n.enumerable});return r};var I=(r,e,l)=>(l=r!=null?S1(y1(r)):{},K(e||!r||!r.__esModule?N(l,"default",{value:r,enumerable:!0}):l,r)),L1=r=>K(N({},"__esModule",{value:!0}),r);var n1={};w(n1,{Testimonial_A:()=>_,default:()=>_});function _({testimonials:r}){let[e,l]=k.default.useState(0);return(0,f.jsx)(r1.Section,{className:"py-20 bg-background",children:(0,f.jsx)(e1.Container,{maxWidth:1280,children:(0,f.jsx)(U.Card,{className:"py-10 ",children:(0,f.jsxs)(l1.Flex,{wrap:!0,align:"center",justify:"center",className:"max-w-5xl f-4",children:[(0,f.jsx)(R1,{testimonials:r,testimony:e}),(0,f.jsx)(P1,{testimonials:r,testimony:e,slider:c=>{l(c)}})]})})})})}function R1({testimonials:r,testimony:e}){var l,n,c,u,g,m,t,i,d,x;return r!=null&&r[e]?(0,f.jsxs)("div",{className:"w-full mb-6 text-center lg:w-1/3",children:[(l=r==null?void 0:r[e])!=null&&l.mainImage?(0,f.jsx)(O.Avatar,{className:"border-0 mx-auto",size:128,alt:(g=(c=(n=r==null?void 0:r[e])==null?void 0:n.mainImage)==null?void 0:c.alt)!=null?g:`testimonial-source-${(u=r==null?void 0:r[e])==null?void 0:u.name}-profile-image`,src:`${(m=r==null?void 0:r[e])==null?void 0:m.mainImage}`}):null,(t=r==null?void 0:r[e])!=null&&t.name?(0,f.jsx)(P.Text,{className:"text-xl",children:(i=r==null?void 0:r[e])==null?void 0:i.name}):null,(d=r==null?void 0:r[e])!=null&&d.jobTitle?(0,f.jsx)(P.Text,{className:"text-primary",children:(x=r==null?void 0:r[e])==null?void 0:x.jobTitle}):null]}):null}function P1({testimonials:r,testimony:e,slider:l}){var n;return r!=null&&r[e]?(0,f.jsx)(k.default.Fragment,{children:(0,f.jsxs)("div",{className:"w-full lg:w-2/3",children:[(0,f.jsxs)("svg",{className:"P-10 mb-4 text-primary",viewBox:"0 0 32 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,f.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,f.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,f.jsx)(X.Heading,{children:(n=r==null?void 0:r[e])==null?void 0:n.testimony}),(r==null?void 0:r.length)>1?(0,f.jsx)(k.default.Fragment,{children:r.map((c,u)=>(0,f.jsx)(Y.SwiperPagination,{colorScheme:"blue",isActive:u===e,ariaLabel:`Show Testimonial ${u}`,onClick:()=>l(u)},u))}):null]})}):null}var k,O,U,X,Y,P,r1,e1,l1,f,j=S(()=>{"use strict";k=I(require("react")),O=require("@stackshift-ui/avatar"),U=require("@stackshift-ui/card"),X=require("@stackshift-ui/heading"),Y=require("@stackshift-ui/swiper-pagination"),P=require("@stackshift-ui/text"),r1=require("@stackshift-ui/section"),e1=require("@stackshift-ui/container"),l1=require("@stackshift-ui/flex"),f=require("react/jsx-runtime")});var c1={};w(c1,{Testimonial_B:()=>M,default:()=>M});function M({caption:r,title:e,testimonials:l}){let[n,c]=(0,y.useState)(l);return(0,f.jsx)(r1.Section,{className:"py-20 overflow-hidden bg-background",children:(0,f.jsxs)(e1.Container,{maxWidth:1280,children:[(0,f.jsx)(l1.Flex,{wrap:!0,align:"center",justify:"center",className:"pt-8 pb-16",children:(0,f.jsx)(j1,{testimony:n,slider:g=>{c(m=>{let t=m||[];if(g==="next"){let i=t.length>0?t.shift():void 0;return i?[...t,i]:t}else if(g==="prev"){let i=t.length>0?t.pop():void 0;return i?[i,...t]:t}return t})},children:(0,f.jsx)(_1,{caption:r,title:e})})}),(0,f.jsx)($1,{testimonials:n})]})})}function _1({caption:r,title:e}){return(0,f.jsxs)(e1.Container,{maxWidth:576,className:"mb-10 text-center ",children:[(0,f.jsx)(P.Text,{weight:"bold",className:"text-secondary",children:r}),(0,f.jsx)(X.Heading,{fontSize:"3xl",className:"mt-4",children:e})]})}function j1({testimony:r,slider:e,children:l}){return r?(0,f.jsxs)(y.default.Fragment,{children:[r&&(r==null?void 0:r.length)>=4&&(0,f.jsx)($.SwiperButton,{type:"left",className:"order-last f-4 mr-3 lg:order-first lg:mr-0",onClick:()=>e("prev"),ariaLabel:"Show previous testimonial"}),l,r&&(r==null?void 0:r.length)>=4&&(0,f.jsx)($.SwiperButton,{type:"right",className:"order-last f-4",onClick:()=>e("next"),ariaLabel:"Show next testimonial"})]}):null}function $1({testimonials:r}){return r?(0,f.jsx)("div",{className:"relative w-full",children:(0,f.jsx)(l1.Flex,{wrap:!0,justify:"center",className:"mx-auto ",children:r.slice(0,3).map((e,l)=>(0,f.jsx)(B1,{...e},l))})}):null}function B1({testimony:r,name:e,jobTitle:l}){return r?(0,f.jsx)("div",{className:`mb-4 w-full ${(r==null?void 0:r.length)>=3,"lg:w-1/3"} px-3`,children:(0,f.jsxs)(U.Card,{className:"f-5 ",children:[(0,f.jsx)(H1,{}),(0,f.jsx)(P.Text,{className:"mb-4 leading-loose",muted:!0,children:r}),(0,f.jsx)(P.Text,{weight:"bold",children:e}),(0,f.jsx)(P.Text,{muted:!0,children:l})]})}):null}function H1(){return(0,f.jsxs)("svg",{className:"P-8 mb-6 text-primary",viewBox:"0 0 32 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,f.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,f.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 y,U,P,$,X,r1,e1,l1,f,z=S(()=>{"use strict";y=I(require("react")),$=require("@stackshift-ui/swiper-button")});var C1={};w(C1,{Testimonial_C:()=>Z,default:()=>Z});function Z({caption:r,title:e,testimonials:l}){let[n,c]=p1.default.useState(l);return(0,f.jsxs)(r1.Section,{className:"py-10 overflow-hidden bg-background lg:py-20",children:[(0,f.jsx)(e1.Container,{className:"pb-6 lg:pb-16",maxWidth:1280,children:(0,f.jsxs)(l1.Flex,{wrap:!0,align:"center",justify:"center",className:"text-center lg:justify-between lg:text-left",children:[(0,f.jsx)(M1,{caption:r,title:e}),(0,f.jsx)(z1,{testimony:n,slider:g=>{c(m=>{if(!m||m.length===0)return m;let t=[...m];if(g==="next"){let i=t.shift();i&&t.push(i)}else if(g==="prev"){let i=t.pop();i&&t.unshift(i)}return t})}})]})}),(0,f.jsx)(A1,{testimony:n})]})}function M1({caption:r,title:e}){return(0,f.jsxs)("div",{className:"w-full mb-4 lg:mb-0 lg:w-4/5",children:[(0,f.jsx)(P.Text,{weight:"bold",className:"text-secondary",children:r}),(0,f.jsx)(X.Heading,{fontSize:"3xl",children:e})]})}function z1({testimony:r,slider:e}){return r?(0,f.jsxs)("div",{className:"w-full lg:w-1/5",children:[r&&(r==null?void 0:r.length)>=4&&(0,f.jsx)($.SwiperButton,{type:"left",className:"order-last f-5 mr-4 lg:order-first",onClick:()=>e("prev"),ariaLabel:"Show previous testimonial"}),r&&(r==null?void 0:r.length)>=4&&(0,f.jsx)($.SwiperButton,{type:"right",className:"order-last f-5",onClick:()=>e("next"),ariaLabel:"Show next testimonial"})]}):null}function A1({testimony:r}){var e;return r?(0,f.jsx)(l1.Flex,{className:"relative",children:r&&(0,f.jsx)(l1.Flex,{wrap:!0,className:"max-w-6xl px-2 mx-auto",children:(e=r==null?void 0:r.slice(0,3))==null?void 0:e.map((l,n)=>(0,f.jsx)(Z1,{item:l,index:n},l==null?void 0:l._key))})}):null}function Z1({item:r,index:e}){var l,n,c,u;return r?(0,f.jsx)("div",{className:"w-full px-3 mb-4 lg:w-1/3",children:(0,f.jsxs)(U.Card,{className:"f-8 text-center ",children:[(0,f.jsx)(P.Text,{className:"mb-8 leading-loose",muted:!0,children:r==null?void 0:r.testimony}),((l=r==null?void 0:r.mainImage)==null?void 0:l.image)&&(0,f.jsx)(O.Avatar,{size:48,className:"mx-auto border-0",src:`${(n=r==null?void 0:r.mainImage)==null?void 0:n.image}`,alt:(u=(c=r==null?void 0:r.mainImage)==null?void 0:c.alt)!=null?u:`testimonial-source-${r==null?void 0:r.name}-profile-image`}),(0,f.jsx)(P.Text,{className:"mb-1 text-2xl ",weight:"bold",children:r==null?void 0:r.name}),(0,f.jsx)(P.Text,{muted:!0,children:r==null?void 0:r.jobTitle})]})},e):null}var p1,O,U,P,$,X,r1,e1,l1,f,W=S(()=>{"use strict";p1=I(require("react"))});var b1={};w(b1,{Testimonial_D:()=>V,default:()=>V});function V({testimonials:r}){var u,g,m,t,i,d,x,D,q,E,G,J;let[e,l]=d1.default.useState(0),n=s=>{!r||r.length<=1||l(s==="next"?C=>C!==r.length-1?C+1:0:C=>C>0?C-1:r.length-1)},c=s=>{let C=[];for(let R=0;R<s;R++)C.push(R);return C};return(0,f.jsx)(r1.Section,{className:"py-20 bg-background",children:(0,f.jsx)(e1.Container,{maxWidth:1280,children:(0,f.jsxs)("div",{className:"items-center justify-center md:space-x-8 lg:flex",children:[(0,f.jsxs)("div",{className:"mb-10 text-center lg:hidden",children:[r&&(r==null?void 0:r.length)>1&&(0,f.jsx)($.SwiperButton,{type:"left",className:"f-4 mr-6 lg:order-first lg:mr-0",onClick:()=>n("prev"),ariaLabel:"Show previous testimonial"}),r&&(r==null?void 0:r.length)>1&&(0,f.jsx)($.SwiperButton,{type:"right",className:"f-4 mr-6 lg:order-first lg:mr-0",onClick:()=>n("next"),ariaLabel:"Show next testimonial"})]}),r&&(r==null?void 0:r.length)>1&&(0,f.jsx)($.SwiperButton,{type:"left",className:"hidden f-4 mr-6 lg:block lg:order-first lg:mr-0",onClick:()=>n("prev"),ariaLabel:"Show previous testimonial"}),(r==null?void 0:r[e])&&(0,f.jsxs)(U.Card,{className:"flex flex-wrap w-full ",children:[((u=r==null?void 0:r[e])==null?void 0:u.rating)&&(0,f.jsxs)("div",{className:"w-full py-10 text-center border-r lg:w-1/3",children:[(0,f.jsx)("span",{className:"text-5xl font-bold lg:text-6xl",children:`${(g=r==null?void 0:r[e])==null?void 0:g.rating}.0`}),(0,f.jsx)(l1.Flex,{align:"center",justify:"center",className:"mb-6 text-primary",children:((m=r==null?void 0:r[e])==null?void 0:m.rating)!==void 0&&c(Number((t=r==null?void 0:r[e])==null?void 0:t.rating)).map((s,C)=>(0,f.jsx)(W1,{},C))}),(0,f.jsx)("div",{className:"object-contain w-32 P-24 mx-auto mb-6 rounded-full",children:((i=r[e])==null?void 0:i.mainImage)&&(0,f.jsx)(w1.Image,{className:"P-[96px] w-[128px] object-scale-down",src:`${(d=r[e])==null?void 0:d.mainImage}`,width:128,height:96,alt:(q=(D=(x=r[e])==null?void 0:x.mainImage)==null?void 0:D.alt)!=null?q:`testimonial-source-profile-image${e}`})})]}),(0,f.jsxs)("div",{className:"w-full px-6 py-10 lg:w-2/3",children:[(0,f.jsx)(V1,{}),(0,f.jsx)(P.Text,{muted:!0,className:"mb-10 text-xl leading-loose lg:text-2xl",children:(E=r[e])==null?void 0:E.testimony}),(0,f.jsx)(P.Text,{weight:"bold",className:"text-2xl font-bold ",children:(G=r[e])==null?void 0:G.name}),(0,f.jsx)(P.Text,{muted:!0,children:(J=r[e])==null?void 0:J.jobTitle})]})]}),r&&(r==null?void 0:r.length)>1&&(0,f.jsx)($.SwiperButton,{type:"right",className:"f-4 mr-6 lg:mr-0",onClick:()=>n("next"),ariaLabel:"Show next testimonial"})]})})})}function W1(){return(0,f.jsx)("svg",{className:"w-6 P-6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,f.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 V1(){return(0,f.jsxs)("svg",{className:"P-10 mb-4 text-primary",viewBox:"0 0 32 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,f.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,f.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 d1,U,P,$,w1,r1,e1,l1,f,Q=S(()=>{"use strict";d1=I(require("react")),w1=require("@stackshift-ui/image")});var q1={};w(q1,{Testimonial:()=>s1,Testimonial_A:()=>_,Testimonial_B:()=>M,Testimonial_C:()=>Z,Testimonial_D:()=>V});module.exports=L1(q1);var b=require("react"),Q1={variant_a:(0,b.lazy)(()=>Promise.resolve().then(()=>(j(),n1))),variant_b:(0,b.lazy)(()=>Promise.resolve().then(()=>(z(),c1))),variant_c:(0,b.lazy)(()=>Promise.resolve().then(()=>(W(),C1))),variant_d:(0,b.lazy)(()=>Promise.resolve().then(()=>(Q(),b1)))},D1="Testimonial",s1=({data:r})=>{var c,u,g,m,t,i;let e=r==null?void 0:r.variant,l=e&&Q1[e],n={caption:(u=(c=r==null?void 0:r.variants)==null?void 0:c.subtitle)!=null?u:void 0,title:(m=(g=r==null?void 0:r.variants)==null?void 0:g.title)!=null?m:void 0,testimonials:(i=(t=r==null?void 0:r.variants)==null?void 0:t.testimonials)!=null?i:void 0};return l?(0,f.jsx)(l,{...n}):null};s1.displayName=D1;j();z();W();Q();0&&(module.exports={Testimonial,Testimonial_A,Testimonial_B,Testimonial_C,Testimonial_D});
package/dist/index.mjs ADDED
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ "use strict";import{a as f}from"./chunk-QA64JIWV.mjs";import{a as o}from"./chunk-BHK4ZWXC.mjs";import{a as r}from"./chunk-RWAJKWHJ.mjs";import{a as e}from"./chunk-7EHNXDJS.mjs";import{a as t}from"./chunk-DJBDPYZZ.mjs";export{f as Testimonial,o as Testimonial_A,r as Testimonial_B,e as Testimonial_C,t as Testimonial_D};
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { SectionsProps, Testimonial as ITestimonial } from "./types";
3
+ export interface TestimonialProps {
4
+ caption?: string;
5
+ title?: string;
6
+ testimonials?: ITestimonial[];
7
+ }
8
+ export declare const Testimonial: React.FC<SectionsProps>;
@@ -0,0 +1 @@
1
+ "use strict";var S1=Object.create;var N=Object.defineProperty;var I1=Object.getOwnPropertyDescriptor;var k1=Object.getOwnPropertyNames;var y1=Object.getPrototypeOf,F1=Object.prototype.hasOwnProperty;var S=(r,e)=>()=>(r&&(e=r(r=0)),e);var w=(r,e)=>{for(var l in e)N(r,l,{get:e[l],enumerable:!0})},W=(r,e,l,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of k1(e))!F1.call(r,c)&&c!==l&&N(r,c,{get:()=>e[c],enumerable:!(n=I1(e,c))||n.enumerable});return r};var I=(r,e,l)=>(l=r!=null?S1(y1(r)):{},W(e||!r||!r.__esModule?N(l,"default",{value:r,enumerable:!0}):l,r)),L1=r=>W(N({},"__esModule",{value:!0}),r);var O={};w(O,{Testimonial_A:()=>K,default:()=>K});function K({testimonials:r}){let[e,l]=k.default.useState(0);return(0,f.jsx)(E.Section,{className:"py-20 bg-background",children:(0,f.jsx)(G.Container,{maxWidth:1280,children:(0,f.jsx)(Q.Card,{className:"py-10 ",children:(0,f.jsxs)(J.Flex,{wrap:!0,align:"center",justify:"center",className:"max-w-5xl f-4",children:[(0,f.jsx)(R1,{testimonials:r,testimony:e}),(0,f.jsx)(P1,{testimonials:r,testimony:e,slider:c=>{l(c)}})]})})})})}function R1({testimonials:r,testimony:e}){var l,n,c,u,g,m,t,i,d,x;return r!=null&&r[e]?(0,f.jsxs)("div",{className:"w-full mb-6 text-center lg:w-1/3",children:[(l=r==null?void 0:r[e])!=null&&l.mainImage?(0,f.jsx)(V.Avatar,{className:"border-0 mx-auto",size:128,alt:(g=(c=(n=r==null?void 0:r[e])==null?void 0:n.mainImage)==null?void 0:c.alt)!=null?g:`testimonial-source-${(u=r==null?void 0:r[e])==null?void 0:u.name}-profile-image`,src:`${(m=r==null?void 0:r[e])==null?void 0:m.mainImage}`}):null,(t=r==null?void 0:r[e])!=null&&t.name?(0,f.jsx)(P.Text,{className:"text-xl",children:(i=r==null?void 0:r[e])==null?void 0:i.name}):null,(d=r==null?void 0:r[e])!=null&&d.jobTitle?(0,f.jsx)(P.Text,{className:"text-primary",children:(x=r==null?void 0:r[e])==null?void 0:x.jobTitle}):null]}):null}function P1({testimonials:r,testimony:e,slider:l}){var n;return r!=null&&r[e]?(0,f.jsx)(k.default.Fragment,{children:(0,f.jsxs)("div",{className:"w-full lg:w-2/3",children:[(0,f.jsxs)("svg",{className:"P-10 mb-4 text-primary",viewBox:"0 0 32 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,f.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,f.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,f.jsx)(D.Heading,{children:(n=r==null?void 0:r[e])==null?void 0:n.testimony}),(r==null?void 0:r.length)>1?(0,f.jsx)(k.default.Fragment,{children:r.map((c,u)=>(0,f.jsx)(q.SwiperPagination,{colorScheme:"blue",isActive:u===e,ariaLabel:`Show Testimonial ${u}`,onClick:()=>l(u)},u))}):null]})}):null}var k,V,Q,D,q,P,E,G,J,f,U=S(()=>{"use strict";k=I(require("react")),V=require("@stackshift-ui/avatar"),Q=require("@stackshift-ui/card"),D=require("@stackshift-ui/heading"),q=require("@stackshift-ui/swiper-pagination"),P=require("@stackshift-ui/text"),E=require("@stackshift-ui/section"),G=require("@stackshift-ui/container"),J=require("@stackshift-ui/flex"),f=require("react/jsx-runtime")});var l1={};w(l1,{Testimonial_B:()=>e1,default:()=>e1});function e1({caption:r,title:e,testimonials:l}){let[n,c]=(0,y.useState)(l);return(0,f.jsx)(E.Section,{className:"py-20 overflow-hidden bg-background",children:(0,f.jsxs)(G.Container,{maxWidth:1280,children:[(0,f.jsx)($.Flex,{wrap:!0,align:"center",justify:"center",className:"pt-8 pb-16",children:(0,f.jsx)(j1,{testimony:n,slider:g=>{c(m=>{let t=m||[];if(g==="next"){let i=t.length>0?t.shift():void 0;return i?[...t,i]:t}else if(g==="prev"){let i=t.length>0?t.pop():void 0;return i?[i,...t]:t}return t})},children:(0,f.jsx)(_1,{caption:r,title:e})})}),(0,f.jsx)($1,{testimonials:n})]})})}function _1({caption:r,title:e}){return(0,f.jsxs)(G.Container,{maxWidth:576,className:"mb-10 text-center ",children:[(0,f.jsx)(P.Text,{weight:"bold",className:"text-secondary",children:r}),(0,f.jsx)(D.Heading,{fontSize:"3xl",className:"mt-4",children:e})]})}function j1({testimony:r,slider:e,children:l}){return r?(0,f.jsxs)(y.default.Fragment,{children:[r&&(r==null?void 0:r.length)>=4&&(0,f.jsx)(_.SwiperButton,{type:"left",className:"order-last f-4 mr-3 lg:order-first lg:mr-0",onClick:()=>e("prev"),ariaLabel:"Show previous testimonial"}),l,r&&(r==null?void 0:r.length)>=4&&(0,f.jsx)(_.SwiperButton,{type:"right",className:"order-last f-4",onClick:()=>e("next"),ariaLabel:"Show next testimonial"})]}):null}function $1({testimonials:r}){return r?(0,f.jsx)("div",{className:"relative w-full",children:(0,f.jsx)($.Flex,{wrap:!0,justify:"center",className:"mx-auto ",children:r.slice(0,3).map((e,l)=>(0,f.jsx)(B1,{...e},l))})}):null}function B1({testimony:r,name:e,jobTitle:l}){return r?(0,f.jsx)("div",{className:`mb-4 w-full ${(r==null?void 0:r.length)>=3,"lg:w-1/3"} px-3`,children:(0,f.jsxs)(Q.Card,{className:"f-5 ",children:[(0,f.jsx)(H1,{}),(0,f.jsx)(P.Text,{className:"mb-4 leading-loose",muted:!0,children:r}),(0,f.jsx)(P.Text,{weight:"bold",children:e}),(0,f.jsx)(P.Text,{muted:!0,children:l})]})}):null}function H1(){return(0,f.jsxs)("svg",{className:"P-8 mb-6 text-primary",viewBox:"0 0 32 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,f.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,f.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 y,Q,P,_,D,E,G,$,f,n1=S(()=>{"use strict";y=I(require("react")),_=require("@stackshift-ui/swiper-button")});var u1={};w(u1,{Testimonial_C:()=>f1,default:()=>f1});function f1({caption:r,title:e,testimonials:l}){let[n,c]=a1.default.useState(l);return(0,f.jsxs)(E.Section,{className:"py-10 overflow-hidden bg-background lg:py-20",children:[(0,f.jsx)(G.Container,{className:"pb-6 lg:pb-16",maxWidth:1280,children:(0,f.jsxs)(J.Flex,{wrap:!0,align:"center",justify:"center",className:"text-center lg:justify-between lg:text-left",children:[(0,f.jsx)(M1,{caption:r,title:e}),(0,f.jsx)(z1,{testimony:n,slider:g=>{c(m=>{if(!m||m.length===0)return m;let t=[...m];if(g==="next"){let i=t.shift();i&&t.push(i)}else if(g==="prev"){let i=t.pop();i&&t.unshift(i)}return t})}})]})}),(0,f.jsx)(A1,{testimony:n})]})}function M1({caption:r,title:e}){return(0,f.jsxs)("div",{className:"w-full mb-4 lg:mb-0 lg:w-4/5",children:[(0,f.jsx)(P.Text,{weight:"bold",className:"text-secondary",children:r}),(0,f.jsx)(D.Heading,{fontSize:"3xl",children:e})]})}function z1({testimony:r,slider:e}){return r?(0,f.jsxs)("div",{className:"w-full lg:w-1/5",children:[r&&(r==null?void 0:r.length)>=4&&(0,f.jsx)(_.SwiperButton,{type:"left",className:"order-last f-5 mr-4 lg:order-first",onClick:()=>e("prev"),ariaLabel:"Show previous testimonial"}),r&&(r==null?void 0:r.length)>=4&&(0,f.jsx)(_.SwiperButton,{type:"right",className:"order-last f-5",onClick:()=>e("next"),ariaLabel:"Show next testimonial"})]}):null}function A1({testimony:r}){var e;return r?(0,f.jsx)(J.Flex,{className:"relative",children:r&&(0,f.jsx)(J.Flex,{wrap:!0,className:"max-w-6xl px-2 mx-auto",children:(e=r==null?void 0:r.slice(0,3))==null?void 0:e.map((l,n)=>(0,f.jsx)(Z1,{item:l,index:n},l==null?void 0:l._key))})}):null}function Z1({item:r,index:e}){var l,n,c,u;return r?(0,f.jsx)("div",{className:"w-full px-3 mb-4 lg:w-1/3",children:(0,f.jsxs)(Q.Card,{className:"f-8 text-center ",children:[(0,f.jsx)(P.Text,{className:"mb-8 leading-loose",muted:!0,children:r==null?void 0:r.testimony}),((l=r==null?void 0:r.mainImage)==null?void 0:l.image)&&(0,f.jsx)(V.Avatar,{size:48,className:"mx-auto border-0",src:`${(n=r==null?void 0:r.mainImage)==null?void 0:n.image}`,alt:(u=(c=r==null?void 0:r.mainImage)==null?void 0:c.alt)!=null?u:`testimonial-source-${r==null?void 0:r.name}-profile-image`}),(0,f.jsx)(P.Text,{className:"mb-1 text-2xl ",weight:"bold",children:r==null?void 0:r.name}),(0,f.jsx)(P.Text,{muted:!0,children:r==null?void 0:r.jobTitle})]})},e):null}var a1,V,Q,P,_,D,E,G,J,f,m1=S(()=>{"use strict";a1=I(require("react"))});var T1={};w(T1,{Testimonial_D:()=>v1,default:()=>v1});function v1({testimonials:r}){var u,g,m,t,i,d,x,H,M,z,A,Z;let[e,l]=g1.default.useState(0),n=s=>{!r||r.length<=1||l(s==="next"?C=>C!==r.length-1?C+1:0:C=>C>0?C-1:r.length-1)},c=s=>{let C=[];for(let R=0;R<s;R++)C.push(R);return C};return(0,f.jsx)(E.Section,{className:"py-20 bg-background",children:(0,f.jsx)(G.Container,{maxWidth:1280,children:(0,f.jsxs)("div",{className:"items-center justify-center md:space-x-8 lg:flex",children:[(0,f.jsxs)("div",{className:"mb-10 text-center lg:hidden",children:[r&&(r==null?void 0:r.length)>1&&(0,f.jsx)(_.SwiperButton,{type:"left",className:"f-4 mr-6 lg:order-first lg:mr-0",onClick:()=>n("prev"),ariaLabel:"Show previous testimonial"}),r&&(r==null?void 0:r.length)>1&&(0,f.jsx)(_.SwiperButton,{type:"right",className:"f-4 mr-6 lg:order-first lg:mr-0",onClick:()=>n("next"),ariaLabel:"Show next testimonial"})]}),r&&(r==null?void 0:r.length)>1&&(0,f.jsx)(_.SwiperButton,{type:"left",className:"hidden f-4 mr-6 lg:block lg:order-first lg:mr-0",onClick:()=>n("prev"),ariaLabel:"Show previous testimonial"}),(r==null?void 0:r[e])&&(0,f.jsxs)(Q.Card,{className:"flex flex-wrap w-full ",children:[((u=r==null?void 0:r[e])==null?void 0:u.rating)&&(0,f.jsxs)("div",{className:"w-full py-10 text-center border-r lg:w-1/3",children:[(0,f.jsx)("span",{className:"text-5xl font-bold lg:text-6xl",children:`${(g=r==null?void 0:r[e])==null?void 0:g.rating}.0`}),(0,f.jsx)(J.Flex,{align:"center",justify:"center",className:"mb-6 text-primary",children:((m=r==null?void 0:r[e])==null?void 0:m.rating)!==void 0&&c(Number((t=r==null?void 0:r[e])==null?void 0:t.rating)).map((s,C)=>(0,f.jsx)(W1,{},C))}),(0,f.jsx)("div",{className:"object-contain w-32 P-24 mx-auto mb-6 rounded-full",children:((i=r[e])==null?void 0:i.mainImage)&&(0,f.jsx)(d1.Image,{className:"P-[96px] w-[128px] object-scale-down",src:`${(d=r[e])==null?void 0:d.mainImage}`,width:128,height:96,alt:(M=(H=(x=r[e])==null?void 0:x.mainImage)==null?void 0:H.alt)!=null?M:`testimonial-source-profile-image${e}`})})]}),(0,f.jsxs)("div",{className:"w-full px-6 py-10 lg:w-2/3",children:[(0,f.jsx)(V1,{}),(0,f.jsx)(P.Text,{muted:!0,className:"mb-10 text-xl leading-loose lg:text-2xl",children:(z=r[e])==null?void 0:z.testimony}),(0,f.jsx)(P.Text,{weight:"bold",className:"text-2xl font-bold ",children:(A=r[e])==null?void 0:A.name}),(0,f.jsx)(P.Text,{muted:!0,children:(Z=r[e])==null?void 0:Z.jobTitle})]})]}),r&&(r==null?void 0:r.length)>1&&(0,f.jsx)(_.SwiperButton,{type:"right",className:"f-4 mr-6 lg:mr-0",onClick:()=>n("next"),ariaLabel:"Show next testimonial"})]})})})}function W1(){return(0,f.jsx)("svg",{className:"w-6 P-6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,f.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 V1(){return(0,f.jsxs)("svg",{className:"P-10 mb-4 text-primary",viewBox:"0 0 32 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,f.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,f.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 g1,Q,P,_,d1,E,G,J,f,b1=S(()=>{"use strict";g1=I(require("react")),d1=require("@stackshift-ui/image")});var q1={};w(q1,{Testimonial:()=>s1});module.exports=L1(q1);var b=require("react"),Q1={variant_a:(0,b.lazy)(()=>Promise.resolve().then(()=>(U(),O))),variant_b:(0,b.lazy)(()=>Promise.resolve().then(()=>(n1(),l1))),variant_c:(0,b.lazy)(()=>Promise.resolve().then(()=>(m1(),u1))),variant_d:(0,b.lazy)(()=>Promise.resolve().then(()=>(b1(),T1)))},D1="Testimonial",s1=({data:r})=>{var c,u,g,m,t,i;let e=r==null?void 0:r.variant,l=e&&Q1[e],n={caption:(u=(c=r==null?void 0:r.variants)==null?void 0:c.subtitle)!=null?u:void 0,title:(m=(g=r==null?void 0:r.variants)==null?void 0:g.title)!=null?m:void 0,testimonials:(i=(t=r==null?void 0:r.variants)==null?void 0:t.testimonials)!=null?i:void 0};return l?(0,f.jsx)(l,{...n}):null};s1.displayName=D1;0&&(module.exports={Testimonial});
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-QA64JIWV.mjs";export{a as Testimonial};
@@ -0,0 +1,3 @@
1
+ import { TestimonialProps } from ".";
2
+ export default function Testimonial_A({ testimonials }: TestimonialProps): import("react/jsx-runtime").JSX.Element;
3
+ export { Testimonial_A };
@@ -0,0 +1 @@
1
+ "use strict";var k=Object.create;var g=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var L=Object.getOwnPropertyNames;var P=Object.getPrototypeOf,R=Object.prototype.hasOwnProperty;var $=(r,C)=>{for(var c in C)g(r,c,{get:C[c],enumerable:!0})},l=(r,C,c,p)=>{if(C&&typeof C=="object"||typeof C=="function")for(let u of L(C))!R.call(r,u)&&u!==c&&g(r,u,{get:()=>C[u],enumerable:!(p=I(C,u))||p.enumerable});return r};var j=(r,C,c)=>(c=r!=null?k(P(r)):{},l(C||!r||!r.__esModule?g(c,"default",{value:r,enumerable:!0}):c,r)),H=r=>l(g({},"__esModule",{value:!0}),r);var z={};$(z,{Testimonial_A:()=>A,default:()=>A});module.exports=H(z);var a=j(require("react")),N=require("@stackshift-ui/avatar"),h=require("@stackshift-ui/card"),n=require("@stackshift-ui/heading"),o=require("@stackshift-ui/swiper-pagination"),d=require("@stackshift-ui/text"),S=require("@stackshift-ui/section"),F=require("@stackshift-ui/container"),y=require("@stackshift-ui/flex"),e=require("react/jsx-runtime");function A({testimonials:r}){let[C,c]=a.default.useState(0);return(0,e.jsx)(S.Section,{className:"py-20 bg-background",children:(0,e.jsx)(F.Container,{maxWidth:1280,children:(0,e.jsx)(h.Card,{className:"py-10 ",children:(0,e.jsxs)(y.Flex,{wrap:!0,align:"center",justify:"center",className:"max-w-5xl p-4",children:[(0,e.jsx)(M,{testimonials:r,testimony:C}),(0,e.jsx)(Z,{testimonials:r,testimony:C,slider:u=>{c(u)}})]})})})})}function M({testimonials:r,testimony:C}){var c,p,u,f,x,T,b,w,v,m;return r!=null&&r[C]?(0,e.jsxs)("div",{className:"w-full mb-6 text-center lg:w-1/3",children:[(c=r==null?void 0:r[C])!=null&&c.mainImage?(0,e.jsx)(N.Avatar,{className:"border-0 mx-auto",size:128,alt:(x=(u=(p=r==null?void 0:r[C])==null?void 0:p.mainImage)==null?void 0:u.alt)!=null?x:`testimonial-source-${(f=r==null?void 0:r[C])==null?void 0:f.name}-profile-image`,src:`${(T=r==null?void 0:r[C])==null?void 0:T.mainImage}`}):null,(b=r==null?void 0:r[C])!=null&&b.name?(0,e.jsx)(d.Text,{className:"text-xl",children:(w=r==null?void 0:r[C])==null?void 0:w.name}):null,(v=r==null?void 0:r[C])!=null&&v.jobTitle?(0,e.jsx)(d.Text,{className:"text-primary",children:(m=r==null?void 0:r[C])==null?void 0:m.jobTitle}):null]}):null}function Z({testimonials:r,testimony:C,slider:c}){var p;return r!=null&&r[C]?(0,e.jsx)(a.default.Fragment,{children:(0,e.jsxs)("div",{className:"w-full lg:w-2/3",children:[(0,e.jsxs)("svg",{className:"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)(n.Heading,{children:(p=r==null?void 0:r[C])==null?void 0:p.testimony}),(r==null?void 0:r.length)>1?(0,e.jsx)(a.default.Fragment,{children:r.map((u,f)=>(0,e.jsx)(o.SwiperPagination,{colorScheme:"blue",isActive:f===C,ariaLabel:`Show Testimonial ${f}`,onClick:()=>c(f)},f))}):null]})}):null}0&&(module.exports={Testimonial_A});
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-BHK4ZWXC.mjs";export{a as Testimonial_A,a as default};
@@ -0,0 +1,3 @@
1
+ import { TestimonialProps } from ".";
2
+ export default function Testimonial_B({ caption, title, testimonials }: TestimonialProps): import("react/jsx-runtime").JSX.Element;
3
+ export { Testimonial_B };
@@ -0,0 +1 @@
1
+ "use strict";var v=Object.create;var m=Object.defineProperty;var N=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var S=Object.getPrototypeOf,F=Object.prototype.hasOwnProperty;var L=(e,r)=>{for(var i in r)m(e,i,{get:r[i],enumerable:!0})},d=(e,r,i,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let l of b(r))!F.call(e,l)&&l!==i&&m(e,l,{get:()=>r[l],enumerable:!(a=N(r,l))||a.enumerable});return e};var k=(e,r,i)=>(i=e!=null?v(S(e)):{},d(r||!e||!e.__esModule?m(i,"default",{value:e,enumerable:!0}):i,e)),I=e=>d(m({},"__esModule",{value:!0}),e);var P={};L(P,{Testimonial_B:()=>w,default:()=>w});module.exports=I(P);var c=k(require("react")),g=require("@stackshift-ui/card"),s=require("@stackshift-ui/text"),p=require("@stackshift-ui/swiper-button"),x=require("@stackshift-ui/heading"),h=require("@stackshift-ui/section"),u=require("@stackshift-ui/container"),C=require("@stackshift-ui/flex"),t=require("react/jsx-runtime");function w({caption:e,title:r,testimonials:i}){let[a,l]=(0,c.useState)(i);return(0,t.jsx)(h.Section,{className:"py-20 overflow-hidden bg-background",children:(0,t.jsxs)(u.Container,{maxWidth:1280,children:[(0,t.jsx)(C.Flex,{wrap:!0,align:"center",justify:"center",className:"pt-8 pb-16",children:(0,t.jsx)(B,{testimony:a,slider:f=>{l(T=>{let n=T||[];if(f==="next"){let o=n.length>0?n.shift():void 0;return o?[...n,o]:n}else if(f==="prev"){let o=n.length>0?n.pop():void 0;return o?[o,...n]:n}return n})},children:(0,t.jsx)(R,{caption:e,title:r})})}),(0,t.jsx)(H,{testimonials:a})]})})}function R({caption:e,title:r}){return(0,t.jsxs)(u.Container,{maxWidth:576,className:"mb-10 text-center ",children:[(0,t.jsx)(s.Text,{weight:"bold",className:"text-secondary",children:e}),(0,t.jsx)(x.Heading,{fontSize:"3xl",className:"mt-4",children:r})]})}function B({testimony:e,slider:r,children:i}){return e?(0,t.jsxs)(c.default.Fragment,{children:[e&&(e==null?void 0:e.length)>=4&&(0,t.jsx)(p.SwiperButton,{type:"left",className:"order-last p-4 mr-3 lg:order-first lg:mr-0",onClick:()=>r("prev"),ariaLabel:"Show previous testimonial"}),i,e&&(e==null?void 0:e.length)>=4&&(0,t.jsx)(p.SwiperButton,{type:"right",className:"order-last p-4",onClick:()=>r("next"),ariaLabel:"Show next testimonial"})]}):null}function H({testimonials:e}){return e?(0,t.jsx)("div",{className:"relative w-full",children:(0,t.jsx)(C.Flex,{wrap:!0,justify:"center",className:"mx-auto ",children:e.slice(0,3).map((r,i)=>(0,t.jsx)(j,{...r},i))})}):null}function j({testimony:e,name:r,jobTitle:i}){return e?(0,t.jsx)("div",{className:`mb-4 w-full ${(e==null?void 0:e.length)>=3,"lg:w-1/3"} px-3`,children:(0,t.jsxs)(g.Card,{className:"p-5 ",children:[(0,t.jsx)(M,{}),(0,t.jsx)(s.Text,{className:"mb-4 leading-loose",muted:!0,children:e}),(0,t.jsx)(s.Text,{weight:"bold",children:r}),(0,t.jsx)(s.Text,{muted:!0,children:i})]})}):null}function M(){return(0,t.jsxs)("svg",{className:"h-8 mb-6 text-primary",viewBox:"0 0 32 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.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,t.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});
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-RWAJKWHJ.mjs";export{a as Testimonial_B,a as default};
@@ -0,0 +1,3 @@
1
+ import { TestimonialProps } from ".";
2
+ export default function Testimonial_C({ caption, title, testimonials }: TestimonialProps): import("react/jsx-runtime").JSX.Element;
3
+ export { Testimonial_C };
@@ -0,0 +1 @@
1
+ "use strict";var C=Object.create;var p=Object.defineProperty;var k=Object.getOwnPropertyDescriptor;var I=Object.getOwnPropertyNames;var S=Object.getPrototypeOf,F=Object.prototype.hasOwnProperty;var H=(a,e)=>{for(var r in e)p(a,r,{get:e[r],enumerable:!0})},x=(a,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of I(e))!F.call(a,o)&&o!==r&&p(a,o,{get:()=>e[o],enumerable:!(n=k(e,o))||n.enumerable});return a};var L=(a,e,r)=>(r=a!=null?C(S(a)):{},x(e||!a||!a.__esModule?p(r,"default",{value:a,enumerable:!0}):r,a)),j=a=>x(p({},"__esModule",{value:!0}),a);var A={};H(A,{Testimonial_C:()=>v,default:()=>v});module.exports=j(A);var g=L(require("react")),T=require("@stackshift-ui/avatar"),b=require("@stackshift-ui/card"),t=require("@stackshift-ui/text"),d=require("@stackshift-ui/swiper-button"),w=require("@stackshift-ui/heading"),N=require("@stackshift-ui/section"),h=require("@stackshift-ui/container"),f=require("@stackshift-ui/flex"),l=require("react/jsx-runtime");function v({caption:a,title:e,testimonials:r}){let[n,o]=g.default.useState(r);return(0,l.jsxs)(N.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)(f.Flex,{wrap:!0,align:"center",justify:"center",className:"text-center lg:justify-between lg:text-left",children:[(0,l.jsx)(z,{caption:a,title:e}),(0,l.jsx)(P,{testimony:n,slider:m=>{o(c=>{if(!c||c.length===0)return c;let s=[...c];if(m==="next"){let i=s.shift();i&&s.push(i)}else if(m==="prev"){let i=s.pop();i&&s.unshift(i)}return s})}})]})}),(0,l.jsx)(_,{testimony:n})]})}function z({caption:a,title:e}){return(0,l.jsxs)("div",{className:"w-full mb-4 lg:mb-0 lg:w-4/5",children:[(0,l.jsx)(t.Text,{weight:"bold",className:"text-secondary",children:a}),(0,l.jsx)(w.Heading,{fontSize:"3xl",children:e})]})}function P({testimony:a,slider:e}){return a?(0,l.jsxs)("div",{className:"w-full lg:w-1/5",children:[a&&(a==null?void 0:a.length)>=4&&(0,l.jsx)(d.SwiperButton,{type:"left",className:"order-last p-5 mr-4 lg:order-first",onClick:()=>e("prev"),ariaLabel:"Show previous testimonial"}),a&&(a==null?void 0:a.length)>=4&&(0,l.jsx)(d.SwiperButton,{type:"right",className:"order-last p-5",onClick:()=>e("next"),ariaLabel:"Show next testimonial"})]}):null}function _({testimony:a}){var e;return a?(0,l.jsx)(f.Flex,{className:"relative",children:a&&(0,l.jsx)(f.Flex,{wrap:!0,className:"max-w-6xl px-2 mx-auto",children:(e=a==null?void 0:a.slice(0,3))==null?void 0:e.map((r,n)=>(0,l.jsx)($,{item:r,index:n},r==null?void 0:r._key))})}):null}function $({item:a,index:e}){var r,n,o,u;return a?(0,l.jsx)("div",{className:"w-full px-3 mb-4 lg:w-1/3",children:(0,l.jsxs)(b.Card,{className:"p-8 text-center ",children:[(0,l.jsx)(t.Text,{className:"mb-8 leading-loose",muted:!0,children:a==null?void 0:a.testimony}),((r=a==null?void 0:a.mainImage)==null?void 0:r.image)&&(0,l.jsx)(T.Avatar,{size:48,className:"mx-auto border-0",src:`${(n=a==null?void 0:a.mainImage)==null?void 0:n.image}`,alt:(u=(o=a==null?void 0:a.mainImage)==null?void 0:o.alt)!=null?u:`testimonial-source-${a==null?void 0:a.name}-profile-image`}),(0,l.jsx)(t.Text,{className:"mb-1 text-2xl ",weight:"bold",children:a==null?void 0:a.name}),(0,l.jsx)(t.Text,{muted:!0,children:a==null?void 0:a.jobTitle})]})},e):null}0&&(module.exports={Testimonial_C});
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-7EHNXDJS.mjs";export{a as Testimonial_C,a as default};
@@ -0,0 +1,3 @@
1
+ import { TestimonialProps } from ".";
2
+ export default function Testimonial_D({ testimonials }: TestimonialProps): import("react/jsx-runtime").JSX.Element;
3
+ export { Testimonial_D };
@@ -0,0 +1 @@
1
+ "use strict";var F=Object.create;var C=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var Z=Object.getOwnPropertyNames;var _=Object.getPrototypeOf,z=Object.prototype.hasOwnProperty;var A=(r,c)=>{for(var l in c)C(r,l,{get:c[l],enumerable:!0})},I=(r,c,l,a)=>{if(c&&typeof c=="object"||typeof c=="function")for(let p of Z(c))!z.call(r,p)&&p!==l&&C(r,p,{get:()=>c[p],enumerable:!(a=P(c,p))||a.enumerable});return r};var D=(r,c,l)=>(l=r!=null?F(_(r)):{},I(c||!r||!r.__esModule?C(l,"default",{value:r,enumerable:!0}):l,r)),Q=r=>I(C({},"__esModule",{value:!0}),r);var E={};A(E,{Testimonial_D:()=>$,default:()=>$});module.exports=Q(E);var k=D(require("react")),L=require("@stackshift-ui/card"),f=require("@stackshift-ui/text"),d=require("@stackshift-ui/swiper-button"),j=require("@stackshift-ui/image"),B=require("@stackshift-ui/section"),M=require("@stackshift-ui/container"),R=require("@stackshift-ui/flex"),e=require("react/jsx-runtime");function $({testimonials:r}){var u,h,o,w,m,t,b,v,N,y,S,T;let[c,l]=k.default.useState(0),a=x=>{!r||r.length<=1||l(x==="next"?g=>g!==r.length-1?g+1:0:g=>g>0?g-1:r.length-1)},p=x=>{let g=[];for(let n=0;n<x;n++)g.push(n);return g};return(0,e.jsx)(B.Section,{className:"py-20 bg-background",children:(0,e.jsx)(M.Container,{maxWidth:1280,children:(0,e.jsxs)("div",{className:"items-center justify-center md:space-x-8 lg:flex",children:[(0,e.jsxs)("div",{className:"mb-10 text-center lg:hidden",children:[r&&(r==null?void 0:r.length)>1&&(0,e.jsx)(d.SwiperButton,{type:"left",className:"p-4 mr-6 lg:order-first lg:mr-0",onClick:()=>a("prev"),ariaLabel:"Show previous testimonial"}),r&&(r==null?void 0:r.length)>1&&(0,e.jsx)(d.SwiperButton,{type:"right",className:"p-4 mr-6 lg:order-first lg:mr-0",onClick:()=>a("next"),ariaLabel:"Show next testimonial"})]}),r&&(r==null?void 0:r.length)>1&&(0,e.jsx)(d.SwiperButton,{type:"left",className:"hidden p-4 mr-6 lg:block lg:order-first lg:mr-0",onClick:()=>a("prev"),ariaLabel:"Show previous testimonial"}),(r==null?void 0:r[c])&&(0,e.jsxs)(L.Card,{className:"flex flex-wrap w-full ",children:[((u=r==null?void 0:r[c])==null?void 0:u.rating)&&(0,e.jsxs)("div",{className:"w-full py-10 text-center border-r lg:w-1/3",children:[(0,e.jsx)("span",{className:"text-5xl font-bold lg:text-6xl",children:`${(h=r==null?void 0:r[c])==null?void 0:h.rating}.0`}),(0,e.jsx)(R.Flex,{align:"center",justify:"center",className:"mb-6 text-primary",children:((o=r==null?void 0:r[c])==null?void 0:o.rating)!==void 0&&p(Number((w=r==null?void 0:r[c])==null?void 0:w.rating)).map((x,g)=>(0,e.jsx)(W,{},g))}),(0,e.jsx)("div",{className:"object-contain w-32 h-24 mx-auto mb-6 rounded-full",children:((m=r[c])==null?void 0:m.mainImage)&&(0,e.jsx)(j.Image,{className:"h-[96px] w-[128px] object-scale-down",src:`${(t=r[c])==null?void 0:t.mainImage}`,width:128,height:96,alt:(N=(v=(b=r[c])==null?void 0:b.mainImage)==null?void 0:v.alt)!=null?N:`testimonial-source-profile-image${c}`})})]}),(0,e.jsxs)("div",{className:"w-full px-6 py-10 lg:w-2/3",children:[(0,e.jsx)(q,{}),(0,e.jsx)(f.Text,{muted:!0,className:"mb-10 text-xl leading-loose lg:text-2xl",children:(y=r[c])==null?void 0:y.testimony}),(0,e.jsx)(f.Text,{weight:"bold",className:"text-2xl font-bold ",children:(S=r[c])==null?void 0:S.name}),(0,e.jsx)(f.Text,{muted:!0,children:(T=r[c])==null?void 0:T.jobTitle})]})]}),r&&(r==null?void 0:r.length)>1&&(0,e.jsx)(d.SwiperButton,{type:"right",className:"p-4 mr-6 lg:mr-0",onClick:()=>a("next"),ariaLabel:"Show next testimonial"})]})})})}function W(){return(0,e.jsx)("svg",{className:"w-6 h-6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,e.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 q(){return(0,e.jsxs)("svg",{className:"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&&(module.exports={Testimonial_D});
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-DJBDPYZZ.mjs";export{a as Testimonial_D,a as default};
@@ -0,0 +1,362 @@
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 ADDED
@@ -0,0 +1 @@
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);
package/package.json ADDED
@@ -0,0 +1,69 @@
1
+ {
2
+ "name": "@stackshift-ui/testimonial",
3
+ "description": "",
4
+ "version": "1.0.0",
5
+ "private": false,
6
+ "sideEffects": false,
7
+ "main": "./dist/index.js",
8
+ "module": "./dist/index.mjs",
9
+ "types": "./dist/index.d.ts",
10
+ "files": [
11
+ "dist/**"
12
+ ],
13
+ "author": "WebriQ <info@webriq.com>",
14
+ "devDependencies": {
15
+ "@testing-library/react": "^16.0.1",
16
+ "@types/node": "^22.7.0",
17
+ "@types/react": "^18.3.9",
18
+ "@types/react-dom": "^18.3.0",
19
+ "@vitejs/plugin-react": "^4.3.1",
20
+ "@vitest/coverage-v8": "^2.1.1",
21
+ "esbuild-plugin-rdi": "^0.0.0",
22
+ "esbuild-plugin-react18": "^0.2.5",
23
+ "esbuild-plugin-react18-css": "^0.0.4",
24
+ "jsdom": "^25.0.1",
25
+ "react": "^18.3.1",
26
+ "react-dom": "^18.3.1",
27
+ "tsup": "^8.3.0",
28
+ "typescript": "^5.6.2",
29
+ "vite-tsconfig-paths": "^5.0.1",
30
+ "vitest": "^2.1.1",
31
+ "@stackshift-ui/eslint-config": "1.0.0",
32
+ "@stackshift-ui/typescript-config": "2.0.0"
33
+ },
34
+ "dependencies": {
35
+ "classnames": "^2.5.1",
36
+ "@stackshift-ui/scripts": "1.0.0",
37
+ "@stackshift-ui/system": "2.0.0",
38
+ "@stackshift-ui/avatar": "1.0.0",
39
+ "@stackshift-ui/card": "1.0.0",
40
+ "@stackshift-ui/heading": "1.0.0",
41
+ "@stackshift-ui/text": "1.0.0",
42
+ "@stackshift-ui/image": "1.0.0",
43
+ "@stackshift-ui/swiper-pagination": "1.0.0",
44
+ "@stackshift-ui/swiper-button": "1.0.0",
45
+ "@stackshift-ui/section": "1.0.0",
46
+ "@stackshift-ui/container": "1.0.0",
47
+ "@stackshift-ui/flex": "1.0.0"
48
+ },
49
+ "peerDependencies": {
50
+ "@types/react": "16.8 - 19",
51
+ "next": "10 - 14",
52
+ "react": "16.8 - 19",
53
+ "react-dom": "16.8 - 19",
54
+ "@stackshift-ui/system": ">=0.0.0"
55
+ },
56
+ "peerDependenciesMeta": {
57
+ "next": {
58
+ "optional": true
59
+ }
60
+ },
61
+ "scripts": {
62
+ "build": "tsup && tsc -p tsconfig-build.json",
63
+ "clean": "rm -rf dist",
64
+ "dev": "tsup --watch && tsc -p tsconfig-build.json -w",
65
+ "typecheck": "tsc --noEmit",
66
+ "lint": "eslint src/",
67
+ "test": "vitest run --coverage"
68
+ }
69
+ }