@stackshift-ui/app-promo 6.0.5-beta.1 → 6.0.5

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.5-beta.1",
4
+ "version": "6.0.5",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "main": "./dist/index.js",
@@ -29,27 +29,27 @@
29
29
  "typescript": "^5.6.2",
30
30
  "vite-tsconfig-paths": "^5.0.1",
31
31
  "vitest": "^2.1.1",
32
- "@stackshift-ui/typescript-config": "6.0.3-beta.1",
33
- "@stackshift-ui/eslint-config": "6.0.3-beta.1"
32
+ "@stackshift-ui/eslint-config": "6.0.3",
33
+ "@stackshift-ui/typescript-config": "6.0.3"
34
34
  },
35
35
  "dependencies": {
36
- "@stackshift-ui/heading": "6.0.4-beta.1",
37
- "@stackshift-ui/system": "6.0.4-beta.1",
38
- "@stackshift-ui/scripts": "6.0.3-beta.1",
39
- "@stackshift-ui/swiper-button": "6.0.4-beta.1",
40
- "@stackshift-ui/image": "6.0.4-beta.1",
41
- "@stackshift-ui/link": "6.0.4-beta.1",
42
- "@stackshift-ui/text": "6.0.4-beta.1",
43
- "@stackshift-ui/container": "6.0.4-beta.1",
44
- "@stackshift-ui/section": "6.0.4-beta.1",
45
- "@stackshift-ui/flex": "6.0.4-beta.1"
36
+ "@stackshift-ui/scripts": "6.0.3",
37
+ "@stackshift-ui/system": "6.0.4",
38
+ "@stackshift-ui/heading": "6.0.4",
39
+ "@stackshift-ui/swiper-button": "6.0.4",
40
+ "@stackshift-ui/text": "6.0.4",
41
+ "@stackshift-ui/image": "6.0.4",
42
+ "@stackshift-ui/link": "6.0.4",
43
+ "@stackshift-ui/container": "6.0.4",
44
+ "@stackshift-ui/section": "6.0.4",
45
+ "@stackshift-ui/flex": "6.0.4"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "@types/react": "16.8 - 19",
49
49
  "next": "10 - 14",
50
50
  "react": "16.8 - 19",
51
51
  "react-dom": "16.8 - 19",
52
- "@stackshift-ui/system": ">=6.0.4-beta.1"
52
+ "@stackshift-ui/system": ">=6.0.4"
53
53
  },
54
54
  "peerDependenciesMeta": {
55
55
  "next": {
@@ -1,11 +0,0 @@
1
- import { SectionsProps, Logo, StatItems, Images } from "./types";
2
- export interface AppPromoProps {
3
- logo?: Logo;
4
- subtitle?: string;
5
- title?: string;
6
- description?: string;
7
- statistics?: StatItems[];
8
- features?: string[];
9
- images?: Images[];
10
- }
11
- export declare const AppPromo: React.FC<SectionsProps>;
package/dist/app-promo.js DELETED
@@ -1 +0,0 @@
1
- "use strict";var st=Object.create;var h=Object.defineProperty;var ft=Object.getOwnPropertyDescriptor;var xt=Object.getOwnPropertyNames;var dt=Object.getPrototypeOf,wt=Object.prototype.hasOwnProperty;var b=(t,r)=>()=>(t&&(r=t(t=0)),r);var v=(t,r)=>{for(var e in r)h(t,e,{get:r[e],enumerable:!0})},H=(t,r,e,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of xt(r))!wt.call(t,n)&&n!==e&&h(t,n,{get:()=>r[n],enumerable:!(i=ft(r,n))||i.enumerable});return t};var j=(t,r,e)=>(e=t!=null?st(dt(t)):{},H(r||!t||!t.__esModule?h(e,"default",{value:t,enumerable:!0}):e,t)),ht=t=>H(h({},"__esModule",{value:!0}),t);var k,V=b(()=>{"use strict";k=t=>{var r,e,i;return t!=null&&t.internalLink&&(t==null?void 0:t.type)==="linkInternal"?(e=(r=t==null?void 0:t.internalLink)==null?void 0:r.toLowerCase())!=null&&e.includes("home")?"/":`/${t.internalLink}`:t!=null&&t.externalLink&&(t==null?void 0:t.type)==="linkExternal"&&(i=t==null?void 0:t.externalLink)!=null?i:"/"}});var K={};v(K,{AppPromo_A:()=>J,default:()=>J});function J({logo:t,subtitle:r,title:e,images:i=[]}){var p;let[n,c]=(0,N.useState)(0);return(0,a.jsx)(E.Section,{className:"pt-16 overflow-hidden bg-background",children:(0,a.jsxs)(D.Container,{className:"relative text-center",maxWidth:448,children:[(0,a.jsx)(bt,{logo:t}),(0,a.jsx)(vt,{subtitle:r,title:e}),(0,a.jsx)(kt,{images:i}),(0,a.jsx)(Nt,{arrowLeftClick:()=>{i!=null&&i.length&&c(n!==0?n-1:n=i.length-1)},arrowRightClick:()=>{i!=null&&i.length&&(n!==i.length-1?c(n+1):c(n=0))},children:(0,a.jsx)(Ct,{image:i[n].image,alt:(p=i[n].alt)!=null?p:`appPromo-variantA-image-${n}`})})]})})}function bt({logo:t}){var r;return t!=null&&t.image?(0,a.jsx)(M.Link,{"aria-label":`Go to ${k(t)==="/"?"home page":k(t)}`,className:"inline-block p-5 mb-8 bg-white rounded-lg",href:k(t),target:t==null?void 0:t.linkTarget,rel:(t==null?void 0:t.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,a.jsx)(C.Image,{src:t==null?void 0:t.image,width:50,height:56,alt:(r=t==null?void 0:t.alt)!=null?r:"appPromo-logo"})}):null}function vt({subtitle:t,title:r}){return(0,a.jsxs)(N.default.Fragment,{children:[t?(0,a.jsx)(q.Text,{className:"mb-3 text-secondary",children:t}):null,r?(0,a.jsx)(G.Heading,{type:"h1",fontSize:"3xl",className:"mb-8",children:r}):null]})}function S({src:t,alt:r,positionClass:e}){return t?(0,a.jsx)(C.Image,{className:`absolute object-contain h-80 rounded-t-2xl ${e}`,src:t,sizes:"218px",width:218,height:320,alt:r}):null}function kt({images:t}){var r,e,i,n,c,m,u,p,f,x,d,w;return(0,a.jsxs)("div",{className:"hidden h-72 sm:block",children:[(r=t==null?void 0:t[0])!=null&&r.image?(0,a.jsx)(S,{src:(e=t==null?void 0:t[0])==null?void 0:e.image,alt:(n=(i=t==null?void 0:t[0])==null?void 0:i.alt)!=null?n:"appPromo-variantA-image-1",positionClass:"bottom-0 z-20 -mb-10 transform -translate-x-1/2 left-1/2"}):null,(c=t==null?void 0:t[1])!=null&&c.image?(0,a.jsx)(S,{src:(m=t==null?void 0:t[1])==null?void 0:m.image,alt:(p=(u=t==null?void 0:t[1])==null?void 0:u.alt)!=null?p:"appPromo-variantA-image-2",positionClass:"bottom-0 left-0 -mb-24"}):null,(f=t==null?void 0:t[2])!=null&&f.image?(0,a.jsx)(S,{src:(x=t==null?void 0:t[2])==null?void 0:x.image,alt:(w=(d=t==null?void 0:t[2])==null?void 0:d.alt)!=null?w:"appPromo-variantA-image-3",positionClass:"bottom-0 right-0 -mb-24"}):null]})}function Ct({image:t,alt:r}){return t?(0,a.jsx)("div",{className:"object-contain w-1/2 mx-auto sm:hidden",children:(0,a.jsx)(C.Image,{className:"object-contain w-full h-full",src:t,sizes:"(min-width: 520px) 224px, 45vw",width:500,height:850,alt:r})}):null}function Nt({arrowLeftClick:t,arrowRightClick:r,children:e}){return(0,a.jsxs)(W.Flex,{justify:"between",align:"center",className:"mb-16 sm:hidden",children:[(0,a.jsx)(R.SwiperButton,{type:"left",ariaLabel:"Left Arrow button",className:"order-0 md:order-0 bg-white lg:order-0 xl:order-1 2xl:order-1",onClick:t}),e,(0,a.jsx)(R.SwiperButton,{type:"right",ariaLabel:"Right Arrow button",className:"order-2 bg-white",onClick:r})]})}var D,W,G,C,M,E,R,q,N,a,O=b(()=>{"use strict";D=require("@stackshift-ui/container"),W=require("@stackshift-ui/flex"),G=require("@stackshift-ui/heading"),C=require("@stackshift-ui/image"),M=require("@stackshift-ui/link"),E=require("@stackshift-ui/section"),R=require("@stackshift-ui/swiper-button"),q=require("@stackshift-ui/text"),N=j(require("react"));V();a=require("react/jsx-runtime")});var rt={};v(rt,{AppPromo_B:()=>tt,default:()=>tt});function tt({subtitle:t,title:r,description:e,statistics:i,images:n}){let[c,m]=s.default.useState(0);return(0,o.jsx)(E.Section,{className:"pt-16 overflow-hidden bg-background",children:(0,o.jsx)(U.Container,{className:"relative text-center",maxWidth:1280,children:(0,o.jsxs)(W.Flex,{justify:"between",className:"flex-col md:flex-row",children:[(0,o.jsxs)("div",{className:"w-full mt-8 lg:w-1/2",children:[(0,o.jsx)(Pt,{subtitle:t,title:r,description:e}),(0,o.jsx)(Lt,{statistics:i})]}),(0,o.jsx)(W.Flex,{align:"center",justify:"center",gap:8,className:"w-full 2xl:w-1/2",children:(0,o.jsx)(gt,{images:n,currentPosition:c,arrowLeftClick:()=>{n!=null&&n.length&&m(c!==0?c-1:c=n.length-1)},arrowRightClick:()=>{n!=null&&n.length&&(c!==n.length-1?m(c+1):m(c=0))}})})]})})})}function Pt({subtitle:t,title:r,description:e}){return(0,o.jsxs)(s.default.Fragment,{children:[t?(0,o.jsx)(q.Text,{weight:"bold",className:"text-center md:text-left text-secondary",children:t}):null,r?(0,o.jsx)(G.Heading,{type:"h1",fontSize:"3xl",className:"mt-3 text-center md:text-left",children:r}):null,e?(0,o.jsx)(q.Text,{className:"mt-3 mb-10 leading-loose text-center break-words md:text-left",muted:!0,children:e}):null]})}function Lt({statistics:t}){return!t||(t==null?void 0:t.length)<=0?null:(0,o.jsx)(s.default.Fragment,{children:(0,o.jsx)(W.Flex,{wrap:!0,children:t==null?void 0:t.map((r,e)=>(0,o.jsxs)("div",{className:"w-full mb-8 text-center md:text-left lg:w-1/2",children:[(0,o.jsx)(q.Text,{muted:!0,className:"mb-3",children:r==null?void 0:r.label}),(0,o.jsx)("span",{className:"text-xl text-gray-500 font-bold",children:r==null?void 0:r.value})]},e))})})}function gt({images:t,currentPosition:r,arrowLeftClick:e,arrowRightClick:i}){return t?(0,o.jsx)(s.default.Fragment,{children:t.length>1?(0,o.jsx)(yt,{arrowLeftClick:e,arrowRightClick:i,children:(0,o.jsx)(Q,{images:t,currentPosition:r})}):(0,o.jsx)(Q,{images:t,currentPosition:r})}):null}function yt({children:t,arrowLeftClick:r,arrowRightClick:e}){return(0,o.jsxs)(s.default.Fragment,{children:[(0,o.jsx)(R.SwiperButton,{variant:"variant_a",type:"left",ariaLabel:"Left Arrow button",className:"bg-white",onClick:r}),t,(0,o.jsx)(R.SwiperButton,{variant:"variant_a",type:"right",ariaLabel:"Right Arrow button",className:"bg-white",onClick:e})]})}function Q({images:t,currentPosition:r}){var e,i,n;return(e=t==null?void 0:t[r])!=null&&e.image?(0,o.jsx)("div",{className:"object-contain w-1/2 mr-2",children:(0,o.jsx)(C.Image,{className:"object-cover w-full h-full mx-auto mb-8 xl:mb-0",src:`${t[r].image}`,sizes:"100vw",width:500,height:850,alt:(n=(i=t[r])==null?void 0:i.alt)!=null?n:`appPromo-variantB-image-${r}`})}):null}var U,W,G,C,E,R,q,s,o,et=b(()=>{"use strict";U=require("@stackshift-ui/container"),s=j(require("react")),o=require("react/jsx-runtime")});var ct={};v(ct,{AppPromo_C:()=>at,default:()=>at});function at({subtitle:t,title:r,description:e,features:i,images:n}){return(0,o.jsx)(E.Section,{className:"py-20 bg-background",children:(0,o.jsx)(nt.Container,{maxWidth:1280,children:(0,o.jsxs)(W.Flex,{align:"center",wrap:!0,gap:8,children:[(0,o.jsx)(It,{subtitle:t,title:r,description:e,features:i}),(0,o.jsx)(Rt,{images:n})]})})})}function It({subtitle:t,title:r,description:e,features:i}){return(0,o.jsxs)("div",{className:"max-w-xl space-W-5",children:[t?(0,o.jsx)(q.Text,{weight:"bold",className:"text-sm md:text-lg lg:text-xl text-secondary",children:t}):null,r?(0,o.jsx)(G.Heading,{type:"h1",fontSize:"3xl",children:r}):null,e?(0,o.jsx)(q.Text,{muted:!0,className:"text-sm md:text-lg lg:text-xl",children:e}):null,(0,o.jsx)(St,{features:i})]})}function St({features:t}){return t?(0,o.jsx)("ul",{className:"mb-8",children:t.map((r,e)=>(0,o.jsxs)(W.Flex,{as:"li",align:"center",className:"mb-3",children:[(0,o.jsx)(At,{}),(0,o.jsx)(q.Text,{className:"text-sm md:text-lg lg:text-xl",weight:"bold",muted:!0,children:r})]},e))}):null}function Rt({images:t}){return t?(0,o.jsxs)(W.Flex,{align:"center",className:"w-full transform -rotate-12 lg:w-1/2",children:[(0,o.jsx)(F,{images:t,start:0,end:1}),(0,o.jsx)("div",{className:"w-full",children:t==null?void 0:t.slice(1,3).map((r,e)=>(0,o.jsx)(F,{images:[r],start:0,end:1},e))}),(0,o.jsx)(F,{images:t,start:3,end:4})]}):null}function F({images:t,start:r,end:e}){var i;return(i=t==null?void 0:t[r])!=null&&i.image?(0,o.jsx)("div",{className:"w-full",children:t.slice(r,e).map((n,c)=>{var m;return(0,o.jsx)(C.Image,{className:"object-cover",src:`${n.image}`,sizes:"100vw",width:500,height:850,alt:(m=n.alt)!=null?m:`appPromo-variantC-image-${c}`},c)})}):null}function At(){return(0,o.jsx)("svg",{className:"w-5 h-5 mr-2 text-primary",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,o.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})})}var nt,W,G,C,E,q,o,mt=b(()=>{"use strict";nt=require("@stackshift-ui/container")});var zt={};v(zt,{AppPromo:()=>pt});module.exports=ht(zt);var I=require("react"),Ft={variant_a:(0,I.lazy)(()=>Promise.resolve().then(()=>(O(),K))),variant_b:(0,I.lazy)(()=>Promise.resolve().then(()=>(et(),rt))),variant_c:(0,I.lazy)(()=>Promise.resolve().then(()=>(mt(),ct)))},Tt="AppPromo",pt=({data:t})=>{var n,c,m,u,p,f,x,d,w,T,z,_,$,B;let r=t==null?void 0:t.variant,e=r&&Ft[r],i={logo:(c=(n=t==null?void 0:t.variants)==null?void 0:n.logo)!=null?c:void 0,subtitle:(u=(m=t==null?void 0:t.variants)==null?void 0:m.subtitle)!=null?u:void 0,title:(f=(p=t==null?void 0:t.variants)==null?void 0:p.title)!=null?f:void 0,description:(d=(x=t==null?void 0:t.variants)==null?void 0:x.description)!=null?d:void 0,statistics:(T=(w=t==null?void 0:t.variants)==null?void 0:w.stats)!=null?T:void 0,features:(_=(z=t==null?void 0:t.variants)==null?void 0:z.tags)!=null?_:void 0,images:(B=($=t==null?void 0:t.variants)==null?void 0:$.images)!=null?B:void 0};return e?(0,o.jsx)(e,{...i}):null};pt.displayName=Tt;0&&(module.exports={AppPromo});
@@ -1 +0,0 @@
1
- import{a}from"./chunk-Z6CMU42P.mjs";export{a as AppPromo};
@@ -1,3 +0,0 @@
1
- import { AppPromoProps } from ".";
2
- export default function AppPromo_A({ logo, subtitle, title, images }: AppPromoProps): import("react/jsx-runtime").JSX.Element;
3
- export { AppPromo_A };
@@ -1 +0,0 @@
1
- "use strict";var R=Object.create;var p=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var z=Object.getPrototypeOf,F=Object.prototype.hasOwnProperty;var $=(t,r)=>{for(var e in r)p(t,e,{get:r[e],enumerable:!0})},L=(t,r,e,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of T(r))!F.call(t,a)&&a!==e&&p(t,a,{get:()=>r[a],enumerable:!(i=S(r,a))||i.enumerable});return t};var j=(t,r,e)=>(e=t!=null?R(z(t)):{},L(r||!t||!t.__esModule?p(e,"default",{value:t,enumerable:!0}):e,t)),B=t=>L(p({},"__esModule",{value:!0}),t);var V={};$(V,{AppPromo_A:()=>I,default:()=>I});module.exports=B(V);var C=require("@stackshift-ui/container"),P=require("@stackshift-ui/flex"),v=require("@stackshift-ui/heading"),u=require("@stackshift-ui/image"),N=require("@stackshift-ui/link"),A=require("@stackshift-ui/section"),b=require("@stackshift-ui/swiper-button"),y=require("@stackshift-ui/text"),f=j(require("react"));var o=t=>{var r,e,i;return t!=null&&t.internalLink&&(t==null?void 0:t.type)==="linkInternal"?(e=(r=t==null?void 0:t.internalLink)==null?void 0:r.toLowerCase())!=null&&e.includes("home")?"/":`/${t.internalLink}`:t!=null&&t.externalLink&&(t==null?void 0:t.type)==="linkExternal"&&(i=t==null?void 0:t.externalLink)!=null?i:"/"};var n=require("react/jsx-runtime");function I({logo:t,subtitle:r,title:e,images:i=[]}){var l;let[a,c]=(0,f.useState)(0);return(0,n.jsx)(A.Section,{className:"pt-16 overflow-hidden bg-background",children:(0,n.jsxs)(C.Container,{className:"relative text-center",maxWidth:448,children:[(0,n.jsx)(G,{logo:t}),(0,n.jsx)(H,{subtitle:r,title:e}),(0,n.jsx)(_,{images:i}),(0,n.jsx)(M,{arrowLeftClick:()=>{i!=null&&i.length&&c(a!==0?a-1:a=i.length-1)},arrowRightClick:()=>{i!=null&&i.length&&(a!==i.length-1?c(a+1):c(a=0))},children:(0,n.jsx)(E,{image:i[a].image,alt:(l=i[a].alt)!=null?l:`appPromo-variantA-image-${a}`})})]})})}function G({logo:t}){var r;return t!=null&&t.image?(0,n.jsx)(N.Link,{"aria-label":`Go to ${o(t)==="/"?"home page":o(t)}`,className:"inline-block p-5 mb-8 bg-white rounded-lg",href:o(t),target:t==null?void 0:t.linkTarget,rel:(t==null?void 0:t.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,n.jsx)(u.Image,{src:t==null?void 0:t.image,width:50,height:56,alt:(r=t==null?void 0:t.alt)!=null?r:"appPromo-logo"})}):null}function H({subtitle:t,title:r}){return(0,n.jsxs)(f.default.Fragment,{children:[t?(0,n.jsx)(y.Text,{className:"mb-3 text-secondary",children:t}):null,r?(0,n.jsx)(v.Heading,{type:"h1",fontSize:"3xl",className:"mb-8",children:r}):null]})}function m({src:t,alt:r,positionClass:e}){return t?(0,n.jsx)(u.Image,{className:`absolute object-contain h-80 rounded-t-2xl ${e}`,src:t,sizes:"218px",width:218,height:320,alt:r}):null}function _({images:t}){var r,e,i,a,c,d,h,l,k,w,s,x;return(0,n.jsxs)("div",{className:"hidden h-72 sm:block",children:[(r=t==null?void 0:t[0])!=null&&r.image?(0,n.jsx)(m,{src:(e=t==null?void 0:t[0])==null?void 0:e.image,alt:(a=(i=t==null?void 0:t[0])==null?void 0:i.alt)!=null?a:"appPromo-variantA-image-1",positionClass:"bottom-0 z-20 -mb-10 transform -translate-x-1/2 left-1/2"}):null,(c=t==null?void 0:t[1])!=null&&c.image?(0,n.jsx)(m,{src:(d=t==null?void 0:t[1])==null?void 0:d.image,alt:(l=(h=t==null?void 0:t[1])==null?void 0:h.alt)!=null?l:"appPromo-variantA-image-2",positionClass:"bottom-0 left-0 -mb-24"}):null,(k=t==null?void 0:t[2])!=null&&k.image?(0,n.jsx)(m,{src:(w=t==null?void 0:t[2])==null?void 0:w.image,alt:(x=(s=t==null?void 0:t[2])==null?void 0:s.alt)!=null?x:"appPromo-variantA-image-3",positionClass:"bottom-0 right-0 -mb-24"}):null]})}function E({image:t,alt:r}){return t?(0,n.jsx)("div",{className:"object-contain w-1/2 mx-auto sm:hidden",children:(0,n.jsx)(u.Image,{className:"object-contain w-full h-full",src:t,sizes:"(min-width: 520px) 224px, 45vw",width:500,height:850,alt:r})}):null}function M({arrowLeftClick:t,arrowRightClick:r,children:e}){return(0,n.jsxs)(P.Flex,{justify:"between",align:"center",className:"mb-16 sm:hidden",children:[(0,n.jsx)(b.SwiperButton,{type:"left",ariaLabel:"Left Arrow button",className:"order-0 md:order-0 bg-white lg:order-0 xl:order-1 2xl:order-1",onClick:t}),e,(0,n.jsx)(b.SwiperButton,{type:"right",ariaLabel:"Right Arrow button",className:"order-2 bg-white",onClick:r})]})}0&&(module.exports={AppPromo_A});
@@ -1 +0,0 @@
1
- import{a}from"./chunk-2AGQEIJY.mjs";import"./chunk-KQFO7OZP.mjs";export{a as AppPromo_A,a as default};
@@ -1,3 +0,0 @@
1
- import { AppPromoProps } from ".";
2
- export default function AppPromo_B({ subtitle, title, description, statistics, images, }: AppPromoProps): import("react/jsx-runtime").JSX.Element;
3
- export { AppPromo_B };
@@ -1 +0,0 @@
1
- "use strict";var s=Object.create;var m=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var N=Object.getPrototypeOf,R=Object.prototype.hasOwnProperty;var F=(t,e)=>{for(var o in e)m(t,o,{get:e[o],enumerable:!0})},w=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of k(e))!R.call(t,l)&&l!==o&&m(t,l,{get:()=>e[l],enumerable:!(n=v(e,l))||n.enumerable});return t};var S=(t,e,o)=>(o=t!=null?s(N(t)):{},w(e||!t||!t.__esModule?m(o,"default",{value:t,enumerable:!0}):o,t)),P=t=>w(m({},"__esModule",{value:!0}),t);var A={};F(A,{AppPromo_B:()=>C,default:()=>C});module.exports=P(A);var d=require("@stackshift-ui/container"),f=require("@stackshift-ui/flex"),x=require("@stackshift-ui/heading"),h=require("@stackshift-ui/image"),b=require("@stackshift-ui/section"),p=require("@stackshift-ui/swiper-button"),u=require("@stackshift-ui/text"),i=S(require("react")),r=require("react/jsx-runtime");function C({subtitle:t,title:e,description:o,statistics:n,images:l}){let[a,c]=i.default.useState(0);return(0,r.jsx)(b.Section,{className:"pt-16 overflow-hidden bg-background",children:(0,r.jsx)(d.Container,{className:"relative text-center",maxWidth:1280,children:(0,r.jsxs)(f.Flex,{justify:"between",className:"flex-col md:flex-row",children:[(0,r.jsxs)("div",{className:"w-full mt-8 lg:w-1/2",children:[(0,r.jsx)(I,{subtitle:t,title:e,description:o}),(0,r.jsx)(L,{statistics:n})]}),(0,r.jsx)(f.Flex,{align:"center",justify:"center",gap:8,className:"w-full 2xl:w-1/2",children:(0,r.jsx)(y,{images:l,currentPosition:a,arrowLeftClick:()=>{l!=null&&l.length&&c(a!==0?a-1:a=l.length-1)},arrowRightClick:()=>{l!=null&&l.length&&(a!==l.length-1?c(a+1):c(a=0))}})})]})})})}function I({subtitle:t,title:e,description:o}){return(0,r.jsxs)(i.default.Fragment,{children:[t?(0,r.jsx)(u.Text,{weight:"bold",className:"text-center md:text-left text-secondary",children:t}):null,e?(0,r.jsx)(x.Heading,{type:"h1",fontSize:"3xl",className:"mt-3 text-center md:text-left",children:e}):null,o?(0,r.jsx)(u.Text,{className:"mt-3 mb-10 leading-loose text-center break-words md:text-left",muted:!0,children:o}):null]})}function L({statistics:t}){return!t||(t==null?void 0:t.length)<=0?null:(0,r.jsx)(i.default.Fragment,{children:(0,r.jsx)(f.Flex,{wrap:!0,children:t==null?void 0:t.map((e,o)=>(0,r.jsxs)("div",{className:"w-full mb-8 text-center md:text-left lg:w-1/2",children:[(0,r.jsx)(u.Text,{muted:!0,className:"mb-3",children:e==null?void 0:e.label}),(0,r.jsx)("span",{className:"text-xl text-gray-500 font-bold",children:e==null?void 0:e.value})]},o))})})}function y({images:t,currentPosition:e,arrowLeftClick:o,arrowRightClick:n}){return t?(0,r.jsx)(i.default.Fragment,{children:t.length>1?(0,r.jsx)(T,{arrowLeftClick:o,arrowRightClick:n,children:(0,r.jsx)(g,{images:t,currentPosition:e})}):(0,r.jsx)(g,{images:t,currentPosition:e})}):null}function T({children:t,arrowLeftClick:e,arrowRightClick:o}){return(0,r.jsxs)(i.default.Fragment,{children:[(0,r.jsx)(p.SwiperButton,{variant:"variant_a",type:"left",ariaLabel:"Left Arrow button",className:"bg-white",onClick:e}),t,(0,r.jsx)(p.SwiperButton,{variant:"variant_a",type:"right",ariaLabel:"Right Arrow button",className:"bg-white",onClick:o})]})}function g({images:t,currentPosition:e}){var o,n,l;return(o=t==null?void 0:t[e])!=null&&o.image?(0,r.jsx)("div",{className:"object-contain w-1/2 mr-2",children:(0,r.jsx)(h.Image,{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=(n=t[e])==null?void 0:n.alt)!=null?l:`appPromo-variantB-image-${e}`})}):null}0&&(module.exports={AppPromo_B});
@@ -1 +0,0 @@
1
- import{a}from"./chunk-5WNEK5LG.mjs";export{a as AppPromo_B,a as default};
@@ -1,3 +0,0 @@
1
- import { AppPromoProps } from ".";
2
- export default function AppPromo_C({ subtitle, title, description, features, images, }: AppPromoProps): import("react/jsx-runtime").JSX.Element;
3
- export { AppPromo_C };
@@ -1 +0,0 @@
1
- "use strict";var m=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var h=(e,r)=>{for(var l in r)m(e,l,{get:r[l],enumerable:!0})},b=(e,r,l,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of v(r))!N.call(e,a)&&a!==l&&m(e,a,{get:()=>r[a],enumerable:!(n=w(r,a))||n.enumerable});return e};var y=e=>b(m({},"__esModule",{value:!0}),e);var F={};h(F,{AppPromo_C:()=>f,default:()=>f});module.exports=y(F);var p=require("@stackshift-ui/container"),i=require("@stackshift-ui/flex"),d=require("@stackshift-ui/heading"),g=require("@stackshift-ui/image"),x=require("@stackshift-ui/section"),o=require("@stackshift-ui/text"),t=require("react/jsx-runtime");function f({subtitle:e,title:r,description:l,features:n,images:a}){return(0,t.jsx)(x.Section,{className:"py-20 bg-background",children:(0,t.jsx)(p.Container,{maxWidth:1280,children:(0,t.jsxs)(i.Flex,{align:"center",wrap:!0,gap:8,children:[(0,t.jsx)(I,{subtitle:e,title:r,description:l,features:n}),(0,t.jsx)(P,{images:a})]})})})}function I({subtitle:e,title:r,description:l,features:n}){return(0,t.jsxs)("div",{className:"max-w-xl space-y-5",children:[e?(0,t.jsx)(o.Text,{weight:"bold",className:"text-sm md:text-lg lg:text-xl text-secondary",children:e}):null,r?(0,t.jsx)(d.Heading,{type:"h1",fontSize:"3xl",children:r}):null,l?(0,t.jsx)(o.Text,{muted:!0,className:"text-sm md:text-lg lg:text-xl",children:l}):null,(0,t.jsx)(C,{features:n})]})}function C({features:e}){return e?(0,t.jsx)("ul",{className:"mb-8",children:e.map((r,l)=>(0,t.jsxs)(i.Flex,{as:"li",align:"center",className:"mb-3",children:[(0,t.jsx)(k,{}),(0,t.jsx)(o.Text,{className:"text-sm md:text-lg lg:text-xl",weight:"bold",muted:!0,children:r})]},l))}):null}function P({images:e}){return e?(0,t.jsxs)(i.Flex,{align:"center",className:"w-full transform -rotate-12 lg:w-1/2",children:[(0,t.jsx)(s,{images:e,start:0,end:1}),(0,t.jsx)("div",{className:"w-full",children:e==null?void 0:e.slice(1,3).map((r,l)=>(0,t.jsx)(s,{images:[r],start:0,end:1},l))}),(0,t.jsx)(s,{images:e,start:3,end:4})]}):null}function s({images:e,start:r,end:l}){var n;return(n=e==null?void 0:e[r])!=null&&n.image?(0,t.jsx)("div",{className:"w-full",children:e.slice(r,l).map((a,u)=>{var c;return(0,t.jsx)(g.Image,{className:"object-cover",src:`${a.image}`,sizes:"100vw",width:500,height:850,alt:(c=a.alt)!=null?c:`appPromo-variantC-image-${u}`},u)})}):null}function k(){return(0,t.jsx)("svg",{className:"w-5 h-5 mr-2 text-primary",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})})}0&&(module.exports={AppPromo_C});
@@ -1 +0,0 @@
1
- import{a}from"./chunk-N2XVWFGW.mjs";export{a as AppPromo_C,a as default};
@@ -1 +0,0 @@
1
- import{a as c}from"./chunk-KQFO7OZP.mjs";import{Container as x}from"@stackshift-ui/container";import{Flex as P}from"@stackshift-ui/flex";import{Heading as C}from"@stackshift-ui/heading";import{Image as h}from"@stackshift-ui/image";import{Link as v}from"@stackshift-ui/link";import{Section as L}from"@stackshift-ui/section";import{SwiperButton as s}from"@stackshift-ui/swiper-button";import{Text as N}from"@stackshift-ui/text";import A,{useState as R}from"react";import{jsx as r,jsxs as p}from"react/jsx-runtime";function S({logo:t,subtitle:n,title:i,images:o=[]}){var a;let[e,l]=R(0);return r(L,{className:"pt-16 overflow-hidden bg-background",children:p(x,{className:"relative text-center",maxWidth:448,children:[r(I,{logo:t}),r(y,{subtitle:n,title:i}),r(T,{images:o}),r(F,{arrowLeftClick:()=>{o!=null&&o.length&&l(e!==0?e-1:e=o.length-1)},arrowRightClick:()=>{o!=null&&o.length&&(e!==o.length-1?l(e+1):l(e=0))},children:r(z,{image:o[e].image,alt:(a=o[e].alt)!=null?a:`appPromo-variantA-image-${e}`})})]})})}function I({logo:t}){var n;return t!=null&&t.image?r(v,{"aria-label":`Go to ${c(t)==="/"?"home page":c(t)}`,className:"inline-block p-5 mb-8 bg-white rounded-lg",href:c(t),target:t==null?void 0:t.linkTarget,rel:(t==null?void 0:t.linkTarget)==="_blank"?"noopener noreferrer":"",children:r(h,{src:t==null?void 0:t.image,width:50,height:56,alt:(n=t==null?void 0:t.alt)!=null?n:"appPromo-logo"})}):null}function y({subtitle:t,title:n}){return p(A.Fragment,{children:[t?r(N,{className:"mb-3 text-secondary",children:t}):null,n?r(C,{type:"h1",fontSize:"3xl",className:"mb-8",children:n}):null]})}function d({src:t,alt:n,positionClass:i}){return t?r(h,{className:`absolute object-contain h-80 rounded-t-2xl ${i}`,src:t,sizes:"218px",width:218,height:320,alt:n}):null}function T({images:t}){var n,i,o,e,l,u,f,a,m,b,w,k;return p("div",{className:"hidden h-72 sm:block",children:[(n=t==null?void 0:t[0])!=null&&n.image?r(d,{src:(i=t==null?void 0:t[0])==null?void 0:i.image,alt:(e=(o=t==null?void 0:t[0])==null?void 0:o.alt)!=null?e:"appPromo-variantA-image-1",positionClass:"bottom-0 z-20 -mb-10 transform -translate-x-1/2 left-1/2"}):null,(l=t==null?void 0:t[1])!=null&&l.image?r(d,{src:(u=t==null?void 0:t[1])==null?void 0:u.image,alt:(a=(f=t==null?void 0:t[1])==null?void 0:f.alt)!=null?a:"appPromo-variantA-image-2",positionClass:"bottom-0 left-0 -mb-24"}):null,(m=t==null?void 0:t[2])!=null&&m.image?r(d,{src:(b=t==null?void 0:t[2])==null?void 0:b.image,alt:(k=(w=t==null?void 0:t[2])==null?void 0:w.alt)!=null?k:"appPromo-variantA-image-3",positionClass:"bottom-0 right-0 -mb-24"}):null]})}function z({image:t,alt:n}){return t?r("div",{className:"object-contain w-1/2 mx-auto sm:hidden",children:r(h,{className:"object-contain w-full h-full",src:t,sizes:"(min-width: 520px) 224px, 45vw",width:500,height:850,alt:n})}):null}function F({arrowLeftClick:t,arrowRightClick:n,children:i}){return p(P,{justify:"between",align:"center",className:"mb-16 sm:hidden",children:[r(s,{type:"left",ariaLabel:"Left Arrow button",className:"order-0 md:order-0 bg-white lg:order-0 xl:order-1 2xl:order-1",onClick:t}),i,r(s,{type:"right",ariaLabel:"Right Arrow button",className:"order-2 bg-white",onClick:n})]})}export{S as a};
@@ -1 +0,0 @@
1
- import{Container as g}from"@stackshift-ui/container";import{Flex as f}from"@stackshift-ui/flex";import{Heading as d}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 2xl:w-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(d,{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(w,{images:t,currentPosition:e})}):r(w,{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 w({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};
@@ -1 +0,0 @@
1
- var i=n=>{var e,r,t;return n!=null&&n.internalLink&&(n==null?void 0:n.type)==="linkInternal"?(r=(e=n==null?void 0:n.internalLink)==null?void 0:e.toLowerCase())!=null&&r.includes("home")?"/":`/${n.internalLink}`:n!=null&&n.externalLink&&(n==null?void 0:n.type)==="linkExternal"&&(t=n==null?void 0:n.externalLink)!=null?t:"/"};export{i as a};
@@ -1 +0,0 @@
1
- import{Container as p}from"@stackshift-ui/container";import{Flex as s}from"@stackshift-ui/flex";import{Heading as d}from"@stackshift-ui/heading";import{Image as g}from"@stackshift-ui/image";import{Section as x}from"@stackshift-ui/section";import{Text as m}from"@stackshift-ui/text";import{jsx as t,jsxs as o}from"react/jsx-runtime";function f({subtitle:e,title:r,description:l,features:a,images:n}){return t(x,{className:"py-20 bg-background",children:t(p,{maxWidth:1280,children:o(s,{align:"center",wrap:!0,gap:8,children:[t(w,{subtitle:e,title:r,description:l,features:a}),t(N,{images:n})]})})})}function w({subtitle:e,title:r,description:l,features:a}){return o("div",{className:"max-w-xl space-y-5",children:[e?t(m,{weight:"bold",className:"text-sm md:text-lg lg:text-xl text-secondary",children:e}):null,r?t(d,{type:"h1",fontSize:"3xl",children:r}):null,l?t(m,{muted:!0,className:"text-sm md:text-lg lg:text-xl",children:l}):null,t(v,{features:a})]})}function v({features:e}){return e?t("ul",{className:"mb-8",children:e.map((r,l)=>o(s,{as:"li",align:"center",className:"mb-3",children:[t(h,{}),t(m,{className:"text-sm md:text-lg lg:text-xl",weight:"bold",muted:!0,children:r})]},l))}):null}function N({images:e}){return e?o(s,{align:"center",className:"w-full transform -rotate-12 lg:w-1/2",children:[t(i,{images:e,start:0,end:1}),t("div",{className:"w-full",children:e==null?void 0:e.slice(1,3).map((r,l)=>t(i,{images:[r],start:0,end:1},l))}),t(i,{images:e,start:3,end:4})]}):null}function i({images:e,start:r,end:l}){var a;return(a=e==null?void 0:e[r])!=null&&a.image?t("div",{className:"w-full",children:e.slice(r,l).map((n,u)=>{var c;return t(g,{className:"object-cover",src:`${n.image}`,sizes:"100vw",width:500,height:850,alt:(c=n.alt)!=null?c:`appPromo-variantC-image-${u}`},u)})}):null}function h(){return t("svg",{className:"w-5 h-5 mr-2 text-primary",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:t("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})})}export{f as a};
@@ -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};
@@ -1,2 +0,0 @@
1
- import { Logo } from "../types";
2
- export declare const logoLink: (logo: Logo) => string;
@@ -1 +0,0 @@
1
- "use strict";var L=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var u=(n,e)=>{for(var r in e)L(n,r,{get:e[r],enumerable:!0})},f=(n,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of k(e))!s.call(n,i)&&i!==r&&L(n,i,{get:()=>e[i],enumerable:!(t=a(e,i))||t.enumerable});return n};var p=n=>f(L({},"__esModule",{value:!0}),n);var m={};u(m,{logoLink:()=>x});module.exports=p(m);var x=n=>{var e,r,t;return n!=null&&n.internalLink&&(n==null?void 0:n.type)==="linkInternal"?(r=(e=n==null?void 0:n.internalLink)==null?void 0:e.toLowerCase())!=null&&r.includes("home")?"/":`/${n.internalLink}`:n!=null&&n.externalLink&&(n==null?void 0:n.type)==="linkExternal"&&(t=n==null?void 0:n.externalLink)!=null?t:"/"};0&&(module.exports={logoLink});
@@ -1 +0,0 @@
1
- import{a}from"../chunk-KQFO7OZP.mjs";export{a as logoLink};
package/dist/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export * from "./app-promo";
2
- export * from "./app-promo_a";
3
- export * from "./app-promo_b";
4
- export * from "./app-promo_c";
package/dist/index.js DELETED
@@ -1,2 +0,0 @@
1
- "use client";
2
- "use strict";var st=Object.create;var h=Object.defineProperty;var ft=Object.getOwnPropertyDescriptor;var xt=Object.getOwnPropertyNames;var dt=Object.getPrototypeOf,wt=Object.prototype.hasOwnProperty;var b=(t,r)=>()=>(t&&(r=t(t=0)),r);var v=(t,r)=>{for(var e in r)h(t,e,{get:r[e],enumerable:!0})},M=(t,r,e,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of xt(r))!wt.call(t,n)&&n!==e&&h(t,n,{get:()=>r[n],enumerable:!(i=ft(r,n))||i.enumerable});return t};var E=(t,r,e)=>(e=t!=null?st(dt(t)):{},M(r||!t||!t.__esModule?h(e,"default",{value:t,enumerable:!0}):e,t)),ht=t=>M(h({},"__esModule",{value:!0}),t);var k,q=b(()=>{"use strict";k=t=>{var r,e,i;return t!=null&&t.internalLink&&(t==null?void 0:t.type)==="linkInternal"?(e=(r=t==null?void 0:t.internalLink)==null?void 0:r.toLowerCase())!=null&&e.includes("home")?"/":`/${t.internalLink}`:t!=null&&t.externalLink&&(t==null?void 0:t.type)==="linkExternal"&&(i=t==null?void 0:t.externalLink)!=null?i:"/"}});var Y={};v(Y,{AppPromo_A:()=>A,default:()=>A});function A({logo:t,subtitle:r,title:e,images:i=[]}){var p;let[n,c]=(0,N.useState)(0);return(0,a.jsx)(U.Section,{className:"pt-16 overflow-hidden bg-background",children:(0,a.jsxs)(J.Container,{className:"relative text-center",maxWidth:448,children:[(0,a.jsx)(bt,{logo:t}),(0,a.jsx)(vt,{subtitle:r,title:e}),(0,a.jsx)(kt,{images:i}),(0,a.jsx)(Nt,{arrowLeftClick:()=>{i!=null&&i.length&&c(n!==0?n-1:n=i.length-1)},arrowRightClick:()=>{i!=null&&i.length&&(n!==i.length-1?c(n+1):c(n=0))},children:(0,a.jsx)(Ct,{image:i[n].image,alt:(p=i[n].alt)!=null?p:`appPromo-variantA-image-${n}`})})]})})}function bt({logo:t}){var r;return t!=null&&t.image?(0,a.jsx)(Q.Link,{"aria-label":`Go to ${k(t)==="/"?"home page":k(t)}`,className:"inline-block p-5 mb-8 bg-white rounded-lg",href:k(t),target:t==null?void 0:t.linkTarget,rel:(t==null?void 0:t.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,a.jsx)(C.Image,{src:t==null?void 0:t.image,width:50,height:56,alt:(r=t==null?void 0:t.alt)!=null?r:"appPromo-logo"})}):null}function vt({subtitle:t,title:r}){return(0,a.jsxs)(N.default.Fragment,{children:[t?(0,a.jsx)(X.Text,{className:"mb-3 text-secondary",children:t}):null,r?(0,a.jsx)(O.Heading,{type:"h1",fontSize:"3xl",className:"mb-8",children:r}):null]})}function S({src:t,alt:r,positionClass:e}){return t?(0,a.jsx)(C.Image,{className:`absolute object-contain h-80 rounded-t-2xl ${e}`,src:t,sizes:"218px",width:218,height:320,alt:r}):null}function kt({images:t}){var r,e,i,n,c,m,u,p,f,x,d,w;return(0,a.jsxs)("div",{className:"hidden h-72 sm:block",children:[(r=t==null?void 0:t[0])!=null&&r.image?(0,a.jsx)(S,{src:(e=t==null?void 0:t[0])==null?void 0:e.image,alt:(n=(i=t==null?void 0:t[0])==null?void 0:i.alt)!=null?n:"appPromo-variantA-image-1",positionClass:"bottom-0 z-20 -mb-10 transform -translate-x-1/2 left-1/2"}):null,(c=t==null?void 0:t[1])!=null&&c.image?(0,a.jsx)(S,{src:(m=t==null?void 0:t[1])==null?void 0:m.image,alt:(p=(u=t==null?void 0:t[1])==null?void 0:u.alt)!=null?p:"appPromo-variantA-image-2",positionClass:"bottom-0 left-0 -mb-24"}):null,(f=t==null?void 0:t[2])!=null&&f.image?(0,a.jsx)(S,{src:(x=t==null?void 0:t[2])==null?void 0:x.image,alt:(w=(d=t==null?void 0:t[2])==null?void 0:d.alt)!=null?w:"appPromo-variantA-image-3",positionClass:"bottom-0 right-0 -mb-24"}):null]})}function Ct({image:t,alt:r}){return t?(0,a.jsx)("div",{className:"object-contain w-1/2 mx-auto sm:hidden",children:(0,a.jsx)(C.Image,{className:"object-contain w-full h-full",src:t,sizes:"(min-width: 520px) 224px, 45vw",width:500,height:850,alt:r})}):null}function Nt({arrowLeftClick:t,arrowRightClick:r,children:e}){return(0,a.jsxs)(K.Flex,{justify:"between",align:"center",className:"mb-16 sm:hidden",children:[(0,a.jsx)(R.SwiperButton,{type:"left",ariaLabel:"Left Arrow button",className:"order-0 md:order-0 bg-white lg:order-0 xl:order-1 2xl:order-1",onClick:t}),e,(0,a.jsx)(R.SwiperButton,{type:"right",ariaLabel:"Right Arrow button",className:"order-2 bg-white",onClick:r})]})}var J,K,O,C,Q,U,R,X,N,a,F=b(()=>{"use strict";J=require("@stackshift-ui/container"),K=require("@stackshift-ui/flex"),O=require("@stackshift-ui/heading"),C=require("@stackshift-ui/image"),Q=require("@stackshift-ui/link"),U=require("@stackshift-ui/section"),R=require("@stackshift-ui/swiper-button"),X=require("@stackshift-ui/text"),N=E(require("react"));q();a=require("react/jsx-runtime")});var it={};v(it,{AppPromo_B:()=>z,default:()=>z});function z({subtitle:t,title:r,description:e,statistics:i,images:n}){let[c,m]=s.default.useState(0);return(0,o.jsx)(U.Section,{className:"pt-16 overflow-hidden bg-background",children:(0,o.jsx)(tt.Container,{className:"relative text-center",maxWidth:1280,children:(0,o.jsxs)(K.Flex,{justify:"between",className:"flex-col md:flex-row",children:[(0,o.jsxs)("div",{className:"w-full mt-8 lg:w-1/2",children:[(0,o.jsx)(Pt,{subtitle:t,title:r,description:e}),(0,o.jsx)(Lt,{statistics:i})]}),(0,o.jsx)(K.Flex,{align:"center",justify:"center",gap:8,className:"w-full 2xl:w-1/2",children:(0,o.jsx)(gt,{images:n,currentPosition:c,arrowLeftClick:()=>{n!=null&&n.length&&m(c!==0?c-1:c=n.length-1)},arrowRightClick:()=>{n!=null&&n.length&&(c!==n.length-1?m(c+1):m(c=0))}})})]})})})}function Pt({subtitle:t,title:r,description:e}){return(0,o.jsxs)(s.default.Fragment,{children:[t?(0,o.jsx)(X.Text,{weight:"bold",className:"text-center md:text-left text-secondary",children:t}):null,r?(0,o.jsx)(O.Heading,{type:"h1",fontSize:"3xl",className:"mt-3 text-center md:text-left",children:r}):null,e?(0,o.jsx)(X.Text,{className:"mt-3 mb-10 leading-loose text-center break-words md:text-left",muted:!0,children:e}):null]})}function Lt({statistics:t}){return!t||(t==null?void 0:t.length)<=0?null:(0,o.jsx)(s.default.Fragment,{children:(0,o.jsx)(K.Flex,{wrap:!0,children:t==null?void 0:t.map((r,e)=>(0,o.jsxs)("div",{className:"w-full mb-8 text-center md:text-left lg:w-1/2",children:[(0,o.jsx)(X.Text,{muted:!0,className:"mb-3",children:r==null?void 0:r.label}),(0,o.jsx)("span",{className:"text-xl text-gray-500 font-bold",children:r==null?void 0:r.value})]},e))})})}function gt({images:t,currentPosition:r,arrowLeftClick:e,arrowRightClick:i}){return t?(0,o.jsx)(s.default.Fragment,{children:t.length>1?(0,o.jsx)(yt,{arrowLeftClick:e,arrowRightClick:i,children:(0,o.jsx)(Z,{images:t,currentPosition:r})}):(0,o.jsx)(Z,{images:t,currentPosition:r})}):null}function yt({children:t,arrowLeftClick:r,arrowRightClick:e}){return(0,o.jsxs)(s.default.Fragment,{children:[(0,o.jsx)(R.SwiperButton,{variant:"variant_a",type:"left",ariaLabel:"Left Arrow button",className:"bg-white",onClick:r}),t,(0,o.jsx)(R.SwiperButton,{variant:"variant_a",type:"right",ariaLabel:"Right Arrow button",className:"bg-white",onClick:e})]})}function Z({images:t,currentPosition:r}){var e,i,n;return(e=t==null?void 0:t[r])!=null&&e.image?(0,o.jsx)("div",{className:"object-contain w-1/2 mr-2",children:(0,o.jsx)(C.Image,{className:"object-cover w-full h-full mx-auto mb-8 xl:mb-0",src:`${t[r].image}`,sizes:"100vw",width:500,height:850,alt:(n=(i=t[r])==null?void 0:i.alt)!=null?n:`appPromo-variantB-image-${r}`})}):null}var tt,K,O,C,U,R,X,s,o,_=b(()=>{"use strict";tt=require("@stackshift-ui/container"),s=E(require("react")),o=require("react/jsx-runtime")});var mt={};v(mt,{AppPromo_C:()=>B,default:()=>B});function B({subtitle:t,title:r,description:e,features:i,images:n}){return(0,o.jsx)(U.Section,{className:"py-20 bg-background",children:(0,o.jsx)(ot.Container,{maxWidth:1280,children:(0,o.jsxs)(K.Flex,{align:"center",wrap:!0,gap:8,children:[(0,o.jsx)(It,{subtitle:t,title:r,description:e,features:i}),(0,o.jsx)(Rt,{images:n})]})})})}function It({subtitle:t,title:r,description:e,features:i}){return(0,o.jsxs)("div",{className:"max-w-xl space-K-5",children:[t?(0,o.jsx)(X.Text,{weight:"bold",className:"text-sm md:text-lg lg:text-xl text-secondary",children:t}):null,r?(0,o.jsx)(O.Heading,{type:"h1",fontSize:"3xl",children:r}):null,e?(0,o.jsx)(X.Text,{muted:!0,className:"text-sm md:text-lg lg:text-xl",children:e}):null,(0,o.jsx)(St,{features:i})]})}function St({features:t}){return t?(0,o.jsx)("ul",{className:"mb-8",children:t.map((r,e)=>(0,o.jsxs)(K.Flex,{as:"li",align:"center",className:"mb-3",children:[(0,o.jsx)(At,{}),(0,o.jsx)(X.Text,{className:"text-sm md:text-lg lg:text-xl",weight:"bold",muted:!0,children:r})]},e))}):null}function Rt({images:t}){return t?(0,o.jsxs)(K.Flex,{align:"center",className:"w-full transform -rotate-12 lg:w-1/2",children:[(0,o.jsx)($,{images:t,start:0,end:1}),(0,o.jsx)("div",{className:"w-full",children:t==null?void 0:t.slice(1,3).map((r,e)=>(0,o.jsx)($,{images:[r],start:0,end:1},e))}),(0,o.jsx)($,{images:t,start:3,end:4})]}):null}function $({images:t,start:r,end:e}){var i;return(i=t==null?void 0:t[r])!=null&&i.image?(0,o.jsx)("div",{className:"w-full",children:t.slice(r,e).map((n,c)=>{var m;return(0,o.jsx)(C.Image,{className:"object-cover",src:`${n.image}`,sizes:"100vw",width:500,height:850,alt:(m=n.alt)!=null?m:`appPromo-variantC-image-${c}`},c)})}):null}function At(){return(0,o.jsx)("svg",{className:"w-5 h-5 mr-2 text-primary",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,o.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})})}var ot,K,O,C,U,X,o,H=b(()=>{"use strict";ot=require("@stackshift-ui/container")});var zt={};v(zt,{AppPromo:()=>pt,AppPromo_A:()=>A,AppPromo_B:()=>z,AppPromo_C:()=>B});module.exports=ht(zt);var I=require("react"),Ft={variant_a:(0,I.lazy)(()=>Promise.resolve().then(()=>(F(),Y))),variant_b:(0,I.lazy)(()=>Promise.resolve().then(()=>(_(),it))),variant_c:(0,I.lazy)(()=>Promise.resolve().then(()=>(H(),mt)))},Tt="AppPromo",pt=({data:t})=>{var n,c,m,u,p,f,x,d,w,j,V,D,W,G;let r=t==null?void 0:t.variant,e=r&&Ft[r],i={logo:(c=(n=t==null?void 0:t.variants)==null?void 0:n.logo)!=null?c:void 0,subtitle:(u=(m=t==null?void 0:t.variants)==null?void 0:m.subtitle)!=null?u:void 0,title:(f=(p=t==null?void 0:t.variants)==null?void 0:p.title)!=null?f:void 0,description:(d=(x=t==null?void 0:t.variants)==null?void 0:x.description)!=null?d:void 0,statistics:(j=(w=t==null?void 0:t.variants)==null?void 0:w.stats)!=null?j:void 0,features:(D=(V=t==null?void 0:t.variants)==null?void 0:V.tags)!=null?D:void 0,images:(G=(W=t==null?void 0:t.variants)==null?void 0:W.images)!=null?G:void 0};return e?(0,o.jsx)(e,{...i}):null};pt.displayName=Tt;F();_();H();0&&(module.exports={AppPromo,AppPromo_A,AppPromo_B,AppPromo_C});
package/dist/index.mjs DELETED
@@ -1,2 +0,0 @@
1
- "use client";
2
- "use strict";import{a as t}from"./chunk-Z6CMU42P.mjs";import{a as o}from"./chunk-2AGQEIJY.mjs";import{a as r}from"./chunk-5WNEK5LG.mjs";import{a as e}from"./chunk-N2XVWFGW.mjs";import"./chunk-KQFO7OZP.mjs";export{t as AppPromo,o as AppPromo_A,r as AppPromo_B,e as AppPromo_C};
package/dist/types.d.ts DELETED
@@ -1,362 +0,0 @@
1
- export type StyleVariants<T extends string> = Record<T, string>;
2
- export type Socials = "facebook" | "instagram" | "youtube" | "linkedin" | "twitter";
3
- export interface MainImage {
4
- image: string;
5
- alt?: string;
6
- }
7
- export interface LabeledRoute extends ConditionalLink {
8
- ariaLabel?: string;
9
- label?: string;
10
- linkTarget?: string;
11
- linkType?: string;
12
- _type?: string;
13
- linkInternal?: any;
14
- }
15
- export interface ConditionalLink {
16
- type?: string;
17
- internalLink?: string | null;
18
- externalLink?: string | null;
19
- }
20
- export interface StatItems {
21
- label?: string;
22
- mainImage?: MainImage;
23
- value?: string;
24
- _key?: string;
25
- _type?: string;
26
- }
27
- export interface Logo extends ConditionalLink {
28
- alt?: string;
29
- linkTarget?: string;
30
- image?: string;
31
- }
32
- export interface Images {
33
- image?: string;
34
- _key?: string;
35
- _type?: string;
36
- alt?: string;
37
- }
38
- export interface ContactDetails {
39
- addressInfo?: string;
40
- contactInfo?: string;
41
- emailInfo?: string;
42
- _key?: string;
43
- }
44
- export interface SocialLink {
45
- socialMedia?: string | null;
46
- socialMediaLink?: string | null;
47
- _key?: string | null;
48
- _type?: string | null;
49
- socialMediaIcon?: {
50
- alt?: string;
51
- image?: string;
52
- } | null;
53
- socialMediaPlatform?: string | null;
54
- }
55
- export interface LabeledRouteWithKey extends LabeledRoute {
56
- _key?: string;
57
- }
58
- export interface ArrayOfImageTitleAndText {
59
- mainImage?: {
60
- alt?: string;
61
- image?: string;
62
- };
63
- plainText?: string;
64
- title?: string;
65
- _key?: string;
66
- _type?: string;
67
- }
68
- export interface FeaturedItem {
69
- description?: string;
70
- mainImage?: MainImage;
71
- title?: string;
72
- subtitle?: string;
73
- _key?: string;
74
- _type?: string;
75
- }
76
- export interface ArrayOfTitleAndText {
77
- _key?: string;
78
- plainText?: string;
79
- title?: string;
80
- }
81
- export interface BlogPost extends SanityBody {
82
- authors?: Author[] | null;
83
- body?: any;
84
- categories?: Category[] | null;
85
- excerpt?: string | null;
86
- link?: string | null;
87
- mainImage?: string | null;
88
- publishedAt?: string;
89
- seo?: Seo | null;
90
- slug?: SanitySlug | null;
91
- title?: string;
92
- }
93
- export interface Seo {
94
- _type?: string;
95
- seoTitle?: string;
96
- seoDescription?: string;
97
- seoImage?: string;
98
- seoKeywords?: string;
99
- seoSynonyms?: string;
100
- }
101
- export interface SanitySlug {
102
- current?: string;
103
- _type?: "slug";
104
- }
105
- export interface SanityBody {
106
- _createdAt?: string;
107
- _id?: string;
108
- _rev?: string;
109
- _type?: string;
110
- _updatedAt?: string;
111
- }
112
- export interface Author extends SanityBody {
113
- link?: string | null;
114
- bio?: string | null;
115
- name?: string | null;
116
- slug?: SanitySlug | null;
117
- image?: string | null;
118
- profile?: {
119
- alt: string;
120
- image: string;
121
- } | null;
122
- }
123
- export interface Category extends SanityBody {
124
- title?: string;
125
- }
126
- export interface Form {
127
- id?: string | null;
128
- buttonLabel?: string | null;
129
- name?: string | null;
130
- subtitle?: string | null;
131
- fields?: FormFields[] | null;
132
- thankYouPage?: ThankYouPage | null;
133
- }
134
- export interface FormFields {
135
- name?: string;
136
- placeholder?: string;
137
- pricingType?: string;
138
- type?: FormTypes;
139
- _key?: string;
140
- _type?: string;
141
- isRequired?: boolean;
142
- label?: string;
143
- items?: string[];
144
- }
145
- export type FormTypes = "inputText" | "inputEmail" | "inputPassword" | "inputNumber" | "textarea" | "inputFile" | "inputRadio" | "inputCheckbox" | "inputSelect";
146
- export interface ThankYouPage {
147
- externalLink?: string | null;
148
- internalLink?: string | null;
149
- linkInternal?: any;
150
- linkTarget?: string;
151
- linkType?: string;
152
- type?: string;
153
- }
154
- export interface SectionsProps {
155
- template?: Template;
156
- data?: Sections;
157
- variant?: string | null | undefined;
158
- schema?: Variants;
159
- }
160
- export interface Sections extends SanityBody {
161
- label?: string;
162
- variant?: string;
163
- variants?: Variants;
164
- _key?: string;
165
- }
166
- export interface Variants {
167
- template?: Template;
168
- multipleMenus?: any;
169
- arrayOfTitleAndText?: ArrayOfTitleAndText[] | null;
170
- logo?: Logo | null;
171
- primaryButton?: LabeledRoute | null;
172
- secondaryButton?: LabeledRoute | null;
173
- routes?: LabeledRouteWithKey[] | null;
174
- menu?: LabeledRouteWithKey[] | null;
175
- plans?: Plans[] | null;
176
- formLinks?: LabeledRouteWithKey[] | null;
177
- portfolios?: Portfolios[] | null;
178
- portfoliosWithCategories?: PortfoliosWithCategories[] | null;
179
- length?: number;
180
- signInLink?: LabeledRoute | null;
181
- signinLink?: LabeledRoute | null;
182
- tags?: string[] | null;
183
- posts?: BlogPost[] | null;
184
- blogsPerPage?: number | null;
185
- form?: Form | null;
186
- collections?: Collection | null;
187
- products?: CollectionProduct | null;
188
- allProducts?: Collection[];
189
- subtitle?: string | null;
190
- caption?: string | null;
191
- title?: string | null;
192
- plainText?: string | null;
193
- contactDescription?: string | null;
194
- officeInformation?: string | null;
195
- contactEmail?: string | null;
196
- contactNumber?: string | null;
197
- socialLinks?: SocialLink[] | null;
198
- block?: any;
199
- heading?: string | null;
200
- acceptButtonLabel?: string | null;
201
- declineButtonLabel?: string | null;
202
- faqsWithCategories?: FaqsWithCategory[] | null;
203
- faqs?: AskedQuestion[] | null;
204
- arrayOfImageTitleAndText?: ArrayOfImageTitleAndText[] | null;
205
- description?: string | null;
206
- featuredItems?: FeaturedItem[] | null;
207
- images?: Images[] | null;
208
- contactDetails?: ContactDetails[] | null;
209
- copyright?: string | null;
210
- mainImage?: MainImage | null;
211
- youtubeLink?: string | null;
212
- banner?: any;
213
- stats?: StatItems[] | null;
214
- teams?: Team[] | null;
215
- testimonials?: Testimonial[] | null;
216
- selectStripeAccount?: string;
217
- annualBilling?: string;
218
- monthlyBilling?: string;
219
- productDetails?: ProductDetail[];
220
- btnLabel?: string;
221
- selectAccount?: string;
222
- hashtags?: string[];
223
- numberOfPosts?: number;
224
- text?: string;
225
- button?: LabeledRoute;
226
- features?: string[];
227
- config?: {
228
- enableAnalytics: boolean;
229
- cookiePolicy?: {
230
- siteName: string;
231
- cookiePolicyPage: Reference;
232
- };
233
- consentModalPosition?: string;
234
- };
235
- contactLink?: LabeledRoute;
236
- }
237
- export interface Template {
238
- bg?: string;
239
- color?: string;
240
- }
241
- export type Plans = {
242
- _key?: string | null;
243
- _type?: "planItems" | null;
244
- checkoutButtonName?: string | null;
245
- description?: string | null;
246
- monthlyPrice?: string | null;
247
- planType?: string | null;
248
- yearlyPrice?: string | null;
249
- planIncludes?: string[] | null;
250
- primaryButton?: LabeledRoute | null;
251
- } & Record<string, string>;
252
- export interface Portfolios {
253
- dateAdded?: string | null;
254
- mainImage?: {
255
- image?: string | null;
256
- alt?: string | null;
257
- } | null;
258
- primaryButton?: LabeledRoute | null;
259
- title?: string | null;
260
- _key?: string | null;
261
- _type?: string | null;
262
- }
263
- export interface PortfoliosWithCategories {
264
- category?: string | null;
265
- content?: Content[] | null;
266
- primaryButton?: LabeledRoute | null;
267
- _key?: string | null;
268
- _type?: string | null;
269
- }
270
- export interface Content extends Portfolios {
271
- description?: string | null;
272
- subtitle?: string | null;
273
- }
274
- export interface Collection extends SanityBody {
275
- collectionInfoVariant?: {
276
- variant?: string;
277
- } | null;
278
- name?: string | null;
279
- products?: CollectionProduct[] | null;
280
- sections?: any;
281
- seo?: Seo | null;
282
- slug?: SanitySlug | null;
283
- }
284
- export interface CollectionProduct extends SanityBody {
285
- compareToPrice?: number | null;
286
- description?: string | null;
287
- ecwidProductId?: number | null;
288
- name?: string | null;
289
- price?: number | null;
290
- productInfo?: ProductInfo | null;
291
- productInfoVariant?: {
292
- variant?: string;
293
- } | null;
294
- sections?: any;
295
- seo?: Seo | null;
296
- slug?: SanitySlug | null;
297
- }
298
- interface ProductInfo {
299
- btnLabel?: string | null;
300
- images?: ProductInfoImage[] | null;
301
- productDetails?: ProductDetail[] | null;
302
- socialLinks?: SocialLink[] | null;
303
- subtitle?: string | null;
304
- }
305
- export interface ProductDetail {
306
- blockContent?: any;
307
- contentType?: string;
308
- tabName?: string;
309
- _key?: string;
310
- [key: string]: any;
311
- }
312
- interface ProductInfoImage {
313
- alt?: string | null;
314
- _key: string;
315
- _type: string;
316
- image?: string | null;
317
- }
318
- export interface FaqsWithCategory {
319
- askedQuestions?: AskedQuestion[] | null;
320
- category?: string | null;
321
- _key?: string;
322
- _type?: string;
323
- }
324
- export interface AskedQuestion {
325
- answer?: string | null;
326
- question?: string | null;
327
- hidden?: boolean;
328
- _key?: string;
329
- _type?: string;
330
- }
331
- export interface Team {
332
- jobTitle?: string;
333
- mainImage?: MainImage;
334
- name?: string;
335
- plainText?: string;
336
- _key?: string;
337
- _type?: string;
338
- }
339
- export interface Testimonial {
340
- jobTitle?: string;
341
- mainImage?: MainImage;
342
- name?: string;
343
- rating?: string;
344
- testimony?: string;
345
- _key?: string;
346
- _type?: string;
347
- }
348
- export declare interface Reference {
349
- _type: string;
350
- _ref: string;
351
- _key?: string;
352
- _weak?: boolean;
353
- _strengthenOnPublish?: {
354
- type: string;
355
- weak?: boolean;
356
- template?: {
357
- id: string;
358
- params: Record<string, string | number | boolean>;
359
- };
360
- };
361
- }
362
- export {};
package/dist/types.js DELETED
@@ -1 +0,0 @@
1
- "use strict";var l=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var g=(n,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of a(t))!o.call(n,e)&&e!==r&&l(n,e,{get:()=>t[e],enumerable:!(i=s(t,e))||i.enumerable});return n};var u=n=>g(l({},"__esModule",{value:!0}),n);var c={};module.exports=u(c);