@stackshift-ui/app-promo 6.0.4-beta.1 → 6.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackshift-ui/app-promo",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "6.0.4
|
|
4
|
+
"version": "6.0.4",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@stackshift-ui/scripts": "6.0.2",
|
|
37
|
-
"@stackshift-ui/text": "6.0.3",
|
|
38
37
|
"@stackshift-ui/system": "6.0.3",
|
|
39
|
-
"@stackshift-ui/swiper-button": "6.0.3",
|
|
40
38
|
"@stackshift-ui/heading": "6.0.3",
|
|
39
|
+
"@stackshift-ui/swiper-button": "6.0.3",
|
|
40
|
+
"@stackshift-ui/text": "6.0.3",
|
|
41
41
|
"@stackshift-ui/image": "6.0.3",
|
|
42
|
-
"@stackshift-ui/link": "6.0.3",
|
|
43
42
|
"@stackshift-ui/container": "6.0.3",
|
|
43
|
+
"@stackshift-ui/flex": "6.0.3",
|
|
44
44
|
"@stackshift-ui/section": "6.0.3",
|
|
45
|
-
"@stackshift-ui/
|
|
45
|
+
"@stackshift-ui/link": "6.0.3"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@types/react": "16.8 - 19",
|
package/dist/chunk-K2G2VLKC.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Container as g}from"@stackshift-ui/container";import{Flex as f}from"@stackshift-ui/flex";import{Heading as w}from"@stackshift-ui/heading";import{Image as x}from"@stackshift-ui/image";import{Section as h}from"@stackshift-ui/section";import{SwiperButton as p}from"@stackshift-ui/swiper-button";import{Text as u}from"@stackshift-ui/text";import c from"react";import{jsx as r,jsxs as i}from"react/jsx-runtime";function b({subtitle:t,title:e,description:o,statistics:a,images:l}){let[n,m]=c.useState(0);return r(h,{className:"pt-16 overflow-hidden bg-background",children:r(g,{className:"relative text-center",maxWidth:1280,children:i(f,{justify:"between",className:"flex-col md:flex-row",children:[i("div",{className:"w-full mt-8 lg:w-1/2",children:[r(C,{subtitle:t,title:e,description:o}),r(s,{statistics:a})]}),r(f,{align:"center",justify:"center",gap:8,className:"w-full md:1/2",children:r(v,{images:l,currentPosition:n,arrowLeftClick:()=>{l!=null&&l.length&&m(n!==0?n-1:n=l.length-1)},arrowRightClick:()=>{l!=null&&l.length&&(n!==l.length-1?m(n+1):m(n=0))}})})]})})})}function C({subtitle:t,title:e,description:o}){return i(c.Fragment,{children:[t?r(u,{weight:"bold",className:"text-center md:text-left text-secondary",children:t}):null,e?r(w,{type:"h1",fontSize:"3xl",className:"mt-3 text-center md:text-left",children:e}):null,o?r(u,{className:"mt-3 mb-10 leading-loose text-center break-words md:text-left",muted:!0,children:o}):null]})}function s({statistics:t}){return!t||(t==null?void 0:t.length)<=0?null:r(c.Fragment,{children:r(f,{wrap:!0,children:t==null?void 0:t.map((e,o)=>i("div",{className:"w-full mb-8 text-center md:text-left lg:w-1/2",children:[r(u,{muted:!0,className:"mb-3",children:e==null?void 0:e.label}),r("span",{className:"text-xl text-gray-500 font-bold",children:e==null?void 0:e.value})]},o))})})}function v({images:t,currentPosition:e,arrowLeftClick:o,arrowRightClick:a}){return t?r(c.Fragment,{children:t.length>1?r(k,{arrowLeftClick:o,arrowRightClick:a,children:r(d,{images:t,currentPosition:e})}):r(d,{images:t,currentPosition:e})}):null}function k({children:t,arrowLeftClick:e,arrowRightClick:o}){return i(c.Fragment,{children:[r(p,{variant:"variant_a",type:"left",ariaLabel:"Left Arrow button",className:"bg-white",onClick:e}),t,r(p,{variant:"variant_a",type:"right",ariaLabel:"Right Arrow button",className:"bg-white",onClick:o})]})}function d({images:t,currentPosition:e}){var o,a,l;return(o=t==null?void 0:t[e])!=null&&o.image?r("div",{className:"object-contain w-1/2 mr-2",children:r(x,{className:"object-cover w-full h-full mx-auto mb-8 xl:mb-0",src:`${t[e].image}`,sizes:"100vw",width:500,height:850,alt:(l=(a=t[e])==null?void 0:a.alt)!=null?l:`appPromo-variantB-image-${e}`})}):null}export{b as a};
|
package/dist/chunk-PUNADLI4.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{lazy as s}from"react";import{jsx as _}from"react/jsx-runtime";var S={variant_a:s(()=>import("./app-promo_a.mjs")),variant_b:s(()=>import("./app-promo_b.mjs")),variant_c:s(()=>import("./app-promo_c.mjs"))},A="AppPromo",V=({data:i})=>{var o,r,t,p,m,c,g,f,l,u,v,P,y,b;let n=i==null?void 0:i.variant,e=n&&S[n],I={logo:(r=(o=i==null?void 0:i.variants)==null?void 0:o.logo)!=null?r:void 0,subtitle:(p=(t=i==null?void 0:i.variants)==null?void 0:t.subtitle)!=null?p:void 0,title:(c=(m=i==null?void 0:i.variants)==null?void 0:m.title)!=null?c:void 0,description:(f=(g=i==null?void 0:i.variants)==null?void 0:g.description)!=null?f:void 0,statistics:(u=(l=i==null?void 0:i.variants)==null?void 0:l.stats)!=null?u:void 0,features:(P=(v=i==null?void 0:i.variants)==null?void 0:v.tags)!=null?P:void 0,images:(b=(y=i==null?void 0:i.variants)==null?void 0:y.images)!=null?b:void 0};return e?_(e,{...I}):null};V.displayName=A;export{V as a};
|