@stackshift-ui/app-promo 7.0.0-beta.7 → 7.0.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app-promo.d.ts +12 -0
- package/dist/app-promo.js +1 -0
- package/dist/app-promo.mjs +1 -0
- package/dist/app-promo_a.d.ts +3 -0
- package/dist/app-promo_a.js +1 -0
- package/dist/app-promo_a.mjs +1 -0
- package/dist/app-promo_b.d.ts +3 -0
- package/dist/app-promo_b.js +1 -0
- package/dist/app-promo_b.mjs +1 -0
- package/dist/app-promo_c.d.ts +3 -0
- package/dist/app-promo_c.js +1 -0
- package/dist/app-promo_c.mjs +1 -0
- package/dist/chunk-2JSILVLZ.mjs +1 -0
- package/dist/chunk-5JXG435C.mjs +1 -0
- package/dist/chunk-5WNEK5LG.mjs +1 -0
- package/dist/chunk-ETXJ2SC5.mjs +1 -0
- package/dist/chunk-KQFO7OZP.mjs +1 -0
- package/dist/helper/index.d.ts +2 -0
- package/dist/helper/index.js +1 -0
- package/dist/helper/index.mjs +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/dist/types.d.ts +362 -0
- package/dist/types.js +1 -0
- package/package.json +12 -12
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Images, Logo, SectionsProps, StatItems } from "./types";
|
|
3
|
+
export interface AppPromoProps {
|
|
4
|
+
logo?: Logo;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
statistics?: StatItems[];
|
|
9
|
+
features?: string[];
|
|
10
|
+
images?: Images[];
|
|
11
|
+
}
|
|
12
|
+
export declare const AppPromo: React.FC<SectionsProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var it=Object.create;var x=Object.defineProperty;var ot=Object.getOwnPropertyDescriptor;var lt=Object.getOwnPropertyNames;var at=Object.getPrototypeOf,ct=Object.prototype.hasOwnProperty;var mt=(t,r)=>{for(var e in r)x(t,e,{get:r[e],enumerable:!0})},V=(t,r,e,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of lt(r))!ct.call(t,n)&&n!==e&&x(t,n,{get:()=>r[n],enumerable:!(i=ot(r,n))||i.enumerable});return t};var D=(t,r,e)=>(e=t!=null?it(at(t)):{},V(r||!t||!t.__esModule?x(e,"default",{value:t,enumerable:!0}):e,t)),pt=t=>V(x({},"__esModule",{value:!0}),t);var St={};mt(St,{AppPromo:()=>et});module.exports=pt(St);var M=require("@stackshift-ui/container"),W=require("@stackshift-ui/flex"),G=require("@stackshift-ui/heading"),v=require("@stackshift-ui/image"),E=require("@stackshift-ui/link"),q=require("@stackshift-ui/section"),y=require("@stackshift-ui/swiper-button"),J=require("@stackshift-ui/text"),k=D(require("react"));var b=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 c=require("react/jsx-runtime");function R({logo:t,subtitle:r,title:e,images:i=[]}){var p;let[n,l]=(0,k.useState)(0);return(0,c.jsx)(q.Section,{className:"pt-16 overflow-hidden bg-background",children:(0,c.jsxs)(M.Container,{className:"relative text-center",maxWidth:448,children:[(0,c.jsx)(ut,{logo:t}),(0,c.jsx)(st,{subtitle:r,title:e}),(0,c.jsx)(ft,{images:i}),(0,c.jsx)(wt,{arrowLeftClick:()=>{i!=null&&i.length&&l(n!==0?n-1:n=i.length-1)},arrowRightClick:()=>{i!=null&&i.length&&(n!==i.length-1?l(n+1):l(n=0))},children:(0,c.jsx)(dt,{image:i[n].image,alt:(p=i[n].alt)!=null?p:`appPromo-variantA-image-${n}`})})]})})}function ut({logo:t}){var r;return t!=null&&t.image?(0,c.jsx)(E.Link,{"aria-label":`Go to ${b(t)==="/"?"home page":b(t)}`,className:"inline-block p-5 rounded-lg",href:b(t),target:t==null?void 0:t.linkTarget,rel:(t==null?void 0:t.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,c.jsx)(v.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 st({subtitle:t,title:r}){return(0,c.jsxs)(k.default.Fragment,{children:[t?(0,c.jsx)(J.Text,{className:"mb-3 text-secondary",children:t}):null,r?(0,c.jsx)(G.Heading,{type:"h1",fontSize:"3xl",className:"mb-8",children:r}):null]})}function g({src:t,alt:r,positionClass:e}){return t?(0,c.jsx)(v.Image,{className:`absolute object-contain h-80 rounded-t-2xl ${e}`,src:t,sizes:"218px",width:218,height:320,alt:r}):null}function ft({images:t}){var r,e,i,n,l,m,u,p,s,d,w,h;return(0,c.jsxs)("div",{className:"hidden h-72 sm:block",children:[(r=t==null?void 0:t[0])!=null&&r.image?(0,c.jsx)(g,{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,(l=t==null?void 0:t[1])!=null&&l.image?(0,c.jsx)(g,{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,(s=t==null?void 0:t[2])!=null&&s.image?(0,c.jsx)(g,{src:(d=t==null?void 0:t[2])==null?void 0:d.image,alt:(h=(w=t==null?void 0:t[2])==null?void 0:w.alt)!=null?h:"appPromo-variantA-image-3",positionClass:"bottom-0 right-0 -mb-24"}):null]})}function dt({image:t,alt:r}){return t?(0,c.jsx)("div",{className:"object-contain w-1/2 mx-auto sm:hidden",children:(0,c.jsx)(v.Image,{className:"object-contain w-full h-full",src:t,sizes:"(min-width: 520px) 224px, 45vw",width:500,height:850,alt:r})}):null}function wt({arrowLeftClick:t,arrowRightClick:r,children:e}){return(0,c.jsxs)(W.Flex,{justify:"between",align:"center",className:"mb-16 sm:hidden",children:[(0,c.jsx)(y.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,c.jsx)(y.SwiperButton,{type:"right",ariaLabel:"Right Arrow button",className:"order-2 bg-white",onClick:r})]})}var f=D(require("react"));function I({subtitle:t,title:r,description:e,statistics:i,images:n}){let[l,m]=f.default.useState(0);return(0,c.jsx)(q.Section,{className:"pt-16 overflow-hidden bg-background",children:(0,c.jsx)(M.Container,{className:"relative text-center",maxWidth:1280,children:(0,c.jsxs)(W.Flex,{justify:"between",className:"flex-col md:flex-row",children:[(0,c.jsxs)("div",{className:"w-full mt-8 lg:w-1/2",children:[(0,c.jsx)(ht,{subtitle:t,title:r,description:e}),(0,c.jsx)(xt,{statistics:i})]}),(0,c.jsx)(W.Flex,{align:"center",justify:"center",gap:8,className:"w-full 2xl:w-1/2",children:(0,c.jsx)(bt,{images:n,currentPosition:l,arrowLeftClick:()=>{n!=null&&n.length&&m(l!==0?l-1:l=n.length-1)},arrowRightClick:()=>{n!=null&&n.length&&(l!==n.length-1?m(l+1):m(l=0))}})})]})})})}function ht({subtitle:t,title:r,description:e}){return(0,c.jsxs)(f.default.Fragment,{children:[t?(0,c.jsx)(J.Text,{weight:"bold",className:"text-center md:text-left text-secondary",children:t}):null,r?(0,c.jsx)(G.Heading,{type:"h1",fontSize:"3xl",className:"mt-3 text-center md:text-left",children:r}):null,e?(0,c.jsx)(J.Text,{className:"mt-3 mb-10 leading-loose text-center break-words md:text-left",muted:!0,children:e}):null]})}function xt({statistics:t}){return!t||(t==null?void 0:t.length)<=0?null:(0,c.jsx)(f.default.Fragment,{children:(0,c.jsx)(W.Flex,{wrap:!0,children:t==null?void 0:t.map((r,e)=>(0,c.jsxs)("div",{className:"w-full mb-8 text-center md:text-left lg:w-1/2",children:[(0,c.jsx)(J.Text,{muted:!0,className:"mb-3",children:r==null?void 0:r.label}),(0,c.jsx)("span",{className:"text-xl text-gray-500 font-bold",children:r==null?void 0:r.value})]},e))})})}function bt({images:t,currentPosition:r,arrowLeftClick:e,arrowRightClick:i}){return t?(0,c.jsx)(f.default.Fragment,{children:t.length>1?(0,c.jsx)(vt,{arrowLeftClick:e,arrowRightClick:i,children:(0,c.jsx)(K,{images:t,currentPosition:r})}):(0,c.jsx)(K,{images:t,currentPosition:r})}):null}function vt({children:t,arrowLeftClick:r,arrowRightClick:e}){return(0,c.jsxs)(f.default.Fragment,{children:[(0,c.jsx)(y.SwiperButton,{variant:"variant_a",type:"left",ariaLabel:"Left Arrow button",className:"bg-white",onClick:r}),t,(0,c.jsx)(y.SwiperButton,{variant:"variant_a",type:"right",ariaLabel:"Right Arrow button",className:"bg-white",onClick:e})]})}function K({images:t,currentPosition:r}){var e,i,n;return(e=t==null?void 0:t[r])!=null&&e.image?(0,c.jsx)("div",{className:"object-contain w-1/2 mr-2",children:(0,c.jsx)(v.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 Y=require("react");function z({subtitle:t,title:r,description:e,features:i,images:n}){var s;let[l,m]=(0,Y.useState)(0);return(0,c.jsx)(q.Section,{className:"py-20 bg-background",children:(0,c.jsxs)(M.Container,{maxWidth:1280,children:[(0,c.jsxs)(W.Flex,{align:"center",className:"flex flex-col lg:flex-row items-center justify-start gap-8",children:[(0,c.jsx)(kt,{subtitle:t,title:r,description:e,features:i}),(0,c.jsx)(Nt,{images:n})]}),n&&(0,c.jsx)(gt,{arrowLeftClick:()=>{n!=null&&n.length&&m(l!==0?l-1:l=n.length-1)},arrowRightClick:()=>{n!=null&&n.length&&(l!==n.length-1?m(l+1):m(l=0))},children:(0,c.jsx)(Lt,{image:n[l].image,alt:(s=n[l].alt)!=null?s:`appPromo-variantC-image-${l}`})})]})})}function kt({subtitle:t,title:r,description:e,features:i}){return(0,c.jsxs)("div",{className:"w-full lg:max-w-xl space-y-5",children:[t?(0,c.jsx)(J.Text,{weight:"bold",className:"text-sm md:text-lg lg:text-xl text-secondary",children:t}):null,r?(0,c.jsx)(G.Heading,{type:"h1",fontSize:"3xl",children:r}):null,e?(0,c.jsx)(J.Text,{muted:!0,className:"text-sm md:text-lg lg:text-xl",children:e}):null,(0,c.jsx)(Ct,{features:i})]})}function Ct({features:t}){return t?(0,c.jsx)("ul",{className:"mb-8",children:t.map((r,e)=>(0,c.jsxs)(W.Flex,{as:"li",align:"center",className:"mb-3",children:[(0,c.jsx)(Pt,{}),(0,c.jsx)(J.Text,{className:"text-sm md:text-lg lg:text-xl",weight:"bold",muted:!0,children:r})]},e))}):null}function Nt({images:t}){return t?(0,c.jsxs)("div",{className:"hidden sm:flex lg:flex-row items-center justify-start gap-0 w-2/3 transform -rotate-12 lg:w-1/2",children:[(0,c.jsx)(A,{images:t,start:0,end:1}),(0,c.jsx)("div",{className:"lg:w-full",children:t==null?void 0:t.slice(1,3).map((r,e)=>(0,c.jsx)(A,{images:[r],start:0,end:1},e))}),(0,c.jsx)(A,{images:t,start:3,end:4})]}):null}function A({images:t,start:r,end:e}){var i;return(i=t==null?void 0:t[r])!=null&&i.image?(0,c.jsx)("div",{className:"w-full",children:t.slice(r,e).map((n,l)=>{var m;return(0,c.jsx)(v.Image,{className:"object-cover",src:`${n.image}`,sizes:"100vw",width:500,height:850,alt:(m=n.alt)!=null?m:`appPromo-variantC-image-${l}`},l)})}):null}function Pt(){return(0,c.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,c.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"})})}function Lt({image:t,alt:r}){return t?(0,c.jsx)("div",{className:"object-contain w-1/2 mx-auto sm:hidden",children:(0,c.jsx)(v.Image,{className:"object-contain w-full h-full",src:t,sizes:"(min-width: 520px) 224px, 45vw",width:500,height:850,alt:r})}):null}function gt({arrowLeftClick:t,arrowRightClick:r,children:e}){return(0,c.jsxs)(W.Flex,{justify:"between",align:"center",className:"mt-16 sm:hidden",children:[(0,c.jsx)(y.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,c.jsx)(y.SwiperButton,{type:"right",ariaLabel:"Right Arrow button",className:"order-2 bg-white",onClick:r})]})}var yt={variant_a:R,variant_b:I,variant_c:z},Rt="AppPromo",et=({data:t})=>{var n,l,m,u,p,s,d,w,h,B,j,_,$,H;let r=t==null?void 0:t.variant,e=r&&yt[r],i={logo:(l=(n=t==null?void 0:t.variants)==null?void 0:n.logo)!=null?l:void 0,subtitle:(u=(m=t==null?void 0:t.variants)==null?void 0:m.subtitle)!=null?u:void 0,title:(s=(p=t==null?void 0:t.variants)==null?void 0:p.title)!=null?s:void 0,description:(w=(d=t==null?void 0:t.variants)==null?void 0:d.description)!=null?w:void 0,statistics:(B=(h=t==null?void 0:t.variants)==null?void 0:h.stats)!=null?B:void 0,features:(_=(j=t==null?void 0:t.variants)==null?void 0:j.tags)!=null?_:void 0,images:(H=($=t==null?void 0:t.variants)==null?void 0:$.images)!=null?H:void 0};return e?(0,c.jsx)(e,{...i}):null};et.displayName=Rt;0&&(module.exports={AppPromo});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-5JXG435C.mjs";import"./chunk-ETXJ2SC5.mjs";import"./chunk-5WNEK5LG.mjs";import"./chunk-2JSILVLZ.mjs";import"./chunk-KQFO7OZP.mjs";export{a as AppPromo};
|
|
@@ -0,0 +1 @@
|
|
|
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 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});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-ETXJ2SC5.mjs";import"./chunk-KQFO7OZP.mjs";export{a as AppPromo_A,a as default};
|
|
@@ -0,0 +1 @@
|
|
|
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});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-5WNEK5LG.mjs";export{a as AppPromo_B,a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var m=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var N=Object.getOwnPropertyNames;var C=Object.prototype.hasOwnProperty;var k=(t,r)=>{for(var o in r)m(t,o,{get:r[o],enumerable:!0})},y=(t,r,o,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let l of N(r))!C.call(t,l)&&l!==o&&m(t,l,{get:()=>r[l],enumerable:!(n=b(r,l))||n.enumerable});return t};var R=t=>y(m({},"__esModule",{value:!0}),t);var A={};k(A,{AppPromo_C:()=>v,default:()=>v});module.exports=R(A);var w=require("react"),x=require("@stackshift-ui/container"),c=require("@stackshift-ui/flex"),g=require("@stackshift-ui/heading"),f=require("@stackshift-ui/image"),h=require("@stackshift-ui/section"),d=require("@stackshift-ui/swiper-button"),s=require("@stackshift-ui/text"),e=require("react/jsx-runtime");function v({subtitle:t,title:r,description:o,features:n,images:l}){var p;let[i,a]=(0,w.useState)(0);return(0,e.jsx)(h.Section,{className:"py-20 bg-background",children:(0,e.jsxs)(x.Container,{maxWidth:1280,children:[(0,e.jsxs)(c.Flex,{align:"center",className:"flex flex-col lg:flex-row items-center justify-start gap-8",children:[(0,e.jsx)(L,{subtitle:t,title:r,description:o,features:n}),(0,e.jsx)(S,{images:l})]}),l&&(0,e.jsx)(z,{arrowLeftClick:()=>{l!=null&&l.length&&a(i!==0?i-1:i=l.length-1)},arrowRightClick:()=>{l!=null&&l.length&&(i!==l.length-1?a(i+1):a(i=0))},children:(0,e.jsx)(j,{image:l[i].image,alt:(p=l[i].alt)!=null?p:`appPromo-variantC-image-${i}`})})]})})}function L({subtitle:t,title:r,description:o,features:n}){return(0,e.jsxs)("div",{className:"w-full lg:max-w-xl space-y-5",children:[t?(0,e.jsx)(s.Text,{weight:"bold",className:"text-sm md:text-lg lg:text-xl text-secondary",children:t}):null,r?(0,e.jsx)(g.Heading,{type:"h1",fontSize:"3xl",children:r}):null,o?(0,e.jsx)(s.Text,{muted:!0,className:"text-sm md:text-lg lg:text-xl",children:o}):null,(0,e.jsx)(P,{features:n})]})}function P({features:t}){return t?(0,e.jsx)("ul",{className:"mb-8",children:t.map((r,o)=>(0,e.jsxs)(c.Flex,{as:"li",align:"center",className:"mb-3",children:[(0,e.jsx)(I,{}),(0,e.jsx)(s.Text,{className:"text-sm md:text-lg lg:text-xl",weight:"bold",muted:!0,children:r})]},o))}):null}function S({images:t}){return t?(0,e.jsxs)("div",{className:"hidden sm:flex lg:flex-row items-center justify-start gap-0 w-2/3 transform -rotate-12 lg:w-1/2",children:[(0,e.jsx)(u,{images:t,start:0,end:1}),(0,e.jsx)("div",{className:"lg:w-full",children:t==null?void 0:t.slice(1,3).map((r,o)=>(0,e.jsx)(u,{images:[r],start:0,end:1},o))}),(0,e.jsx)(u,{images:t,start:3,end:4})]}):null}function u({images:t,start:r,end:o}){var n;return(n=t==null?void 0:t[r])!=null&&n.image?(0,e.jsx)("div",{className:"w-full",children:t.slice(r,o).map((l,i)=>{var a;return(0,e.jsx)(f.Image,{className:"object-cover",src:`${l.image}`,sizes:"100vw",width:500,height:850,alt:(a=l.alt)!=null?a:`appPromo-variantC-image-${i}`},i)})}):null}function I(){return(0,e.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,e.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"})})}function j({image:t,alt:r}){return t?(0,e.jsx)("div",{className:"object-contain w-1/2 mx-auto sm:hidden",children:(0,e.jsx)(f.Image,{className:"object-contain w-full h-full",src:t,sizes:"(min-width: 520px) 224px, 45vw",width:500,height:850,alt:r})}):null}function z({arrowLeftClick:t,arrowRightClick:r,children:o}){return(0,e.jsxs)(c.Flex,{justify:"between",align:"center",className:"mt-16 sm:hidden",children:[(0,e.jsx)(d.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}),o,(0,e.jsx)(d.SwiperButton,{type:"right",ariaLabel:"Right Arrow button",className:"order-2 bg-white",onClick:r})]})}0&&(module.exports={AppPromo_C});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-2JSILVLZ.mjs";export{a as AppPromo_C,a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useState as w}from"react";import{Container as x}from"@stackshift-ui/container";import{Flex as u}from"@stackshift-ui/flex";import{Heading as g}from"@stackshift-ui/heading";import{Image as p}from"@stackshift-ui/image";import{Section as h}from"@stackshift-ui/section";import{SwiperButton as f}from"@stackshift-ui/swiper-button";import{Text as m}from"@stackshift-ui/text";import{jsx as e,jsxs as s}from"react/jsx-runtime";function v({subtitle:t,title:r,description:o,features:a,images:l}){var d;let[i,n]=w(0);return e(h,{className:"py-20 bg-background",children:s(x,{maxWidth:1280,children:[s(u,{align:"center",className:"flex flex-col lg:flex-row items-center justify-start gap-8",children:[e(b,{subtitle:t,title:r,description:o,features:a}),e(C,{images:l})]}),l&&e(R,{arrowLeftClick:()=>{l!=null&&l.length&&n(i!==0?i-1:i=l.length-1)},arrowRightClick:()=>{l!=null&&l.length&&(i!==l.length-1?n(i+1):n(i=0))},children:e(y,{image:l[i].image,alt:(d=l[i].alt)!=null?d:`appPromo-variantC-image-${i}`})})]})})}function b({subtitle:t,title:r,description:o,features:a}){return s("div",{className:"w-full lg:max-w-xl space-y-5",children:[t?e(m,{weight:"bold",className:"text-sm md:text-lg lg:text-xl text-secondary",children:t}):null,r?e(g,{type:"h1",fontSize:"3xl",children:r}):null,o?e(m,{muted:!0,className:"text-sm md:text-lg lg:text-xl",children:o}):null,e(N,{features:a})]})}function N({features:t}){return t?e("ul",{className:"mb-8",children:t.map((r,o)=>s(u,{as:"li",align:"center",className:"mb-3",children:[e(k,{}),e(m,{className:"text-sm md:text-lg lg:text-xl",weight:"bold",muted:!0,children:r})]},o))}):null}function C({images:t}){return t?s("div",{className:"hidden sm:flex lg:flex-row items-center justify-start gap-0 w-2/3 transform -rotate-12 lg:w-1/2",children:[e(c,{images:t,start:0,end:1}),e("div",{className:"lg:w-full",children:t==null?void 0:t.slice(1,3).map((r,o)=>e(c,{images:[r],start:0,end:1},o))}),e(c,{images:t,start:3,end:4})]}):null}function c({images:t,start:r,end:o}){var a;return(a=t==null?void 0:t[r])!=null&&a.image?e("div",{className:"w-full",children:t.slice(r,o).map((l,i)=>{var n;return e(p,{className:"object-cover",src:`${l.image}`,sizes:"100vw",width:500,height:850,alt:(n=l.alt)!=null?n:`appPromo-variantC-image-${i}`},i)})}):null}function k(){return e("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:e("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"})})}function y({image:t,alt:r}){return t?e("div",{className:"object-contain w-1/2 mx-auto sm:hidden",children:e(p,{className:"object-contain w-full h-full",src:t,sizes:"(min-width: 520px) 224px, 45vw",width:500,height:850,alt:r})}):null}function R({arrowLeftClick:t,arrowRightClick:r,children:o}){return s(u,{justify:"between",align:"center",className:"mt-16 sm:hidden",children:[e(f,{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}),o,e(f,{type:"right",ariaLabel:"Right Arrow button",className:"order-2 bg-white",onClick:r})]})}export{v as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as b}from"./chunk-ETXJ2SC5.mjs";import{a as y}from"./chunk-5WNEK5LG.mjs";import{a as I}from"./chunk-2JSILVLZ.mjs";import{jsx as L}from"react/jsx-runtime";var V={variant_a:b,variant_b:y,variant_c:I},_="AppPromo",C=({data:i})=>{var r,n,e,p,t,m,f,c,g,l,u,v,P,A;let o=i==null?void 0:i.variant,s=o&&V[o],S={logo:(n=(r=i==null?void 0:i.variants)==null?void 0:r.logo)!=null?n:void 0,subtitle:(p=(e=i==null?void 0:i.variants)==null?void 0:e.subtitle)!=null?p:void 0,title:(m=(t=i==null?void 0:i.variants)==null?void 0:t.title)!=null?m:void 0,description:(c=(f=i==null?void 0:i.variants)==null?void 0:f.description)!=null?c:void 0,statistics:(l=(g=i==null?void 0:i.variants)==null?void 0:g.stats)!=null?l:void 0,features:(v=(u=i==null?void 0:i.variants)==null?void 0:u.tags)!=null?v:void 0,images:(A=(P=i==null?void 0:i.variants)==null?void 0:P.images)!=null?A:void 0};return s?L(s,{...S}):null};C.displayName=_;export{C as a};
|
|
@@ -0,0 +1 @@
|
|
|
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};
|
|
@@ -0,0 +1 @@
|
|
|
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 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};
|
|
@@ -0,0 +1 @@
|
|
|
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};
|
|
@@ -0,0 +1 @@
|
|
|
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});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-KQFO7OZP.mjs";export{a as logoLink};
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";var ot=Object.create;var h=Object.defineProperty;var it=Object.getOwnPropertyDescriptor;var lt=Object.getOwnPropertyNames;var at=Object.getPrototypeOf,ct=Object.prototype.hasOwnProperty;var mt=(t,r)=>{for(var e in r)h(t,e,{get:r[e],enumerable:!0})},V=(t,r,e,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of lt(r))!ct.call(t,n)&&n!==e&&h(t,n,{get:()=>r[n],enumerable:!(o=it(r,n))||o.enumerable});return t};var D=(t,r,e)=>(e=t!=null?ot(at(t)):{},V(r||!t||!t.__esModule?h(e,"default",{value:t,enumerable:!0}):e,t)),pt=t=>V(h({},"__esModule",{value:!0}),t);var St={};mt(St,{AppPromo:()=>et,AppPromo_A:()=>C,AppPromo_B:()=>L,AppPromo_C:()=>R});module.exports=pt(St);var M=require("@stackshift-ui/container"),W=require("@stackshift-ui/flex"),G=require("@stackshift-ui/heading"),v=require("@stackshift-ui/image"),E=require("@stackshift-ui/link"),q=require("@stackshift-ui/section"),I=require("@stackshift-ui/swiper-button"),J=require("@stackshift-ui/text"),k=D(require("react"));var b=t=>{var r,e,o;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"&&(o=t==null?void 0:t.externalLink)!=null?o:"/"};var c=require("react/jsx-runtime");function C({logo:t,subtitle:r,title:e,images:o=[]}){var p;let[n,l]=(0,k.useState)(0);return(0,c.jsx)(q.Section,{className:"pt-16 overflow-hidden bg-background",children:(0,c.jsxs)(M.Container,{className:"relative text-center",maxWidth:448,children:[(0,c.jsx)(ut,{logo:t}),(0,c.jsx)(st,{subtitle:r,title:e}),(0,c.jsx)(ft,{images:o}),(0,c.jsx)(wt,{arrowLeftClick:()=>{o!=null&&o.length&&l(n!==0?n-1:n=o.length-1)},arrowRightClick:()=>{o!=null&&o.length&&(n!==o.length-1?l(n+1):l(n=0))},children:(0,c.jsx)(dt,{image:o[n].image,alt:(p=o[n].alt)!=null?p:`appPromo-variantA-image-${n}`})})]})})}function ut({logo:t}){var r;return t!=null&&t.image?(0,c.jsx)(E.Link,{"aria-label":`Go to ${b(t)==="/"?"home page":b(t)}`,className:"inline-block p-5 rounded-lg",href:b(t),target:t==null?void 0:t.linkTarget,rel:(t==null?void 0:t.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,c.jsx)(v.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 st({subtitle:t,title:r}){return(0,c.jsxs)(k.default.Fragment,{children:[t?(0,c.jsx)(J.Text,{className:"mb-3 text-secondary",children:t}):null,r?(0,c.jsx)(G.Heading,{type:"h1",fontSize:"3xl",className:"mb-8",children:r}):null]})}function S({src:t,alt:r,positionClass:e}){return t?(0,c.jsx)(v.Image,{className:`absolute object-contain h-80 rounded-t-2xl ${e}`,src:t,sizes:"218px",width:218,height:320,alt:r}):null}function ft({images:t}){var r,e,o,n,l,m,u,p,s,d,w,x;return(0,c.jsxs)("div",{className:"hidden h-72 sm:block",children:[(r=t==null?void 0:t[0])!=null&&r.image?(0,c.jsx)(S,{src:(e=t==null?void 0:t[0])==null?void 0:e.image,alt:(n=(o=t==null?void 0:t[0])==null?void 0:o.alt)!=null?n:"appPromo-variantA-image-1",positionClass:"bottom-0 v-20 -mb-10 transform -translate-x-1/2 left-1/2"}):null,(l=t==null?void 0:t[1])!=null&&l.image?(0,c.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,(s=t==null?void 0:t[2])!=null&&s.image?(0,c.jsx)(S,{src:(d=t==null?void 0:t[2])==null?void 0:d.image,alt:(x=(w=t==null?void 0:t[2])==null?void 0:w.alt)!=null?x:"appPromo-variantA-image-3",positionClass:"bottom-0 right-0 -mb-24"}):null]})}function dt({image:t,alt:r}){return t?(0,c.jsx)("div",{className:"object-contain w-1/2 mx-auto sm:hidden",children:(0,c.jsx)(v.Image,{className:"object-contain w-full h-full",src:t,sizes:"(min-width: 520px) 224px, 45vw",width:500,height:850,alt:r})}):null}function wt({arrowLeftClick:t,arrowRightClick:r,children:e}){return(0,c.jsxs)(W.Flex,{justify:"between",align:"center",className:"mb-16 sm:hidden",children:[(0,c.jsx)(I.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,c.jsx)(I.SwiperButton,{type:"right",ariaLabel:"Right Arrow button",className:"order-2 bg-white",onClick:r})]})}var f=D(require("react"));function L({subtitle:t,title:r,description:e,statistics:o,images:n}){let[l,m]=f.default.useState(0);return(0,c.jsx)(q.Section,{className:"pt-16 overflow-hidden bg-background",children:(0,c.jsx)(M.Container,{className:"relative text-center",maxWidth:1280,children:(0,c.jsxs)(W.Flex,{justify:"between",className:"flex-col md:flex-row",children:[(0,c.jsxs)("div",{className:"w-full mt-8 lg:w-1/2",children:[(0,c.jsx)(xt,{subtitle:t,title:r,description:e}),(0,c.jsx)(ht,{statistics:o})]}),(0,c.jsx)(W.Flex,{align:"center",justify:"center",gap:8,className:"w-full 2xl:w-1/2",children:(0,c.jsx)(bt,{images:n,currentPosition:l,arrowLeftClick:()=>{n!=null&&n.length&&m(l!==0?l-1:l=n.length-1)},arrowRightClick:()=>{n!=null&&n.length&&(l!==n.length-1?m(l+1):m(l=0))}})})]})})})}function xt({subtitle:t,title:r,description:e}){return(0,c.jsxs)(f.default.Fragment,{children:[t?(0,c.jsx)(J.Text,{weight:"bold",className:"text-center md:text-left text-secondary",children:t}):null,r?(0,c.jsx)(G.Heading,{type:"h1",fontSize:"3xl",className:"mt-3 text-center md:text-left",children:r}):null,e?(0,c.jsx)(J.Text,{className:"mt-3 mb-10 leading-loose text-center break-words md:text-left",muted:!0,children:e}):null]})}function ht({statistics:t}){return!t||(t==null?void 0:t.length)<=0?null:(0,c.jsx)(f.default.Fragment,{children:(0,c.jsx)(W.Flex,{wrap:!0,children:t==null?void 0:t.map((r,e)=>(0,c.jsxs)("div",{className:"w-full mb-8 text-center md:text-left lg:w-1/2",children:[(0,c.jsx)(J.Text,{muted:!0,className:"mb-3",children:r==null?void 0:r.label}),(0,c.jsx)("span",{className:"text-xl text-gray-500 font-bold",children:r==null?void 0:r.value})]},e))})})}function bt({images:t,currentPosition:r,arrowLeftClick:e,arrowRightClick:o}){return t?(0,c.jsx)(f.default.Fragment,{children:t.length>1?(0,c.jsx)(vt,{arrowLeftClick:e,arrowRightClick:o,children:(0,c.jsx)(K,{images:t,currentPosition:r})}):(0,c.jsx)(K,{images:t,currentPosition:r})}):null}function vt({children:t,arrowLeftClick:r,arrowRightClick:e}){return(0,c.jsxs)(f.default.Fragment,{children:[(0,c.jsx)(I.SwiperButton,{variant:"variant_a",type:"left",ariaLabel:"Left Arrow button",className:"bg-white",onClick:r}),t,(0,c.jsx)(I.SwiperButton,{variant:"variant_a",type:"right",ariaLabel:"Right Arrow button",className:"bg-white",onClick:e})]})}function K({images:t,currentPosition:r}){var e,o,n;return(e=t==null?void 0:t[r])!=null&&e.image?(0,c.jsx)("div",{className:"object-contain w-1/2 mr-2",children:(0,c.jsx)(v.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=(o=t[r])==null?void 0:o.alt)!=null?n:`appPromo-variantB-image-${r}`})}):null}var Y=require("react");function R({subtitle:t,title:r,description:e,features:o,images:n}){var s;let[l,m]=(0,Y.useState)(0);return(0,c.jsx)(q.Section,{className:"py-20 bg-background",children:(0,c.jsxs)(M.Container,{maxWidth:1280,children:[(0,c.jsxs)(W.Flex,{align:"center",className:"flex flex-col lg:flex-row items-center justify-start gap-8",children:[(0,c.jsx)(kt,{subtitle:t,title:r,description:e,features:o}),(0,c.jsx)(Nt,{images:n})]}),n&&(0,c.jsx)(gt,{arrowLeftClick:()=>{n!=null&&n.length&&m(l!==0?l-1:l=n.length-1)},arrowRightClick:()=>{n!=null&&n.length&&(l!==n.length-1?m(l+1):m(l=0))},children:(0,c.jsx)(Lt,{image:n[l].image,alt:(s=n[l].alt)!=null?s:`appPromo-variantC-image-${l}`})})]})})}function kt({subtitle:t,title:r,description:e,features:o}){return(0,c.jsxs)("div",{className:"w-full lg:max-w-xl space-W-5",children:[t?(0,c.jsx)(J.Text,{weight:"bold",className:"text-sm md:text-lg lg:text-xl text-secondary",children:t}):null,r?(0,c.jsx)(G.Heading,{type:"h1",fontSize:"3xl",children:r}):null,e?(0,c.jsx)(J.Text,{muted:!0,className:"text-sm md:text-lg lg:text-xl",children:e}):null,(0,c.jsx)(Ct,{features:o})]})}function Ct({features:t}){return t?(0,c.jsx)("ul",{className:"mb-8",children:t.map((r,e)=>(0,c.jsxs)(W.Flex,{as:"li",align:"center",className:"mb-3",children:[(0,c.jsx)(Pt,{}),(0,c.jsx)(J.Text,{className:"text-sm md:text-lg lg:text-xl",weight:"bold",muted:!0,children:r})]},e))}):null}function Nt({images:t}){return t?(0,c.jsxs)("div",{className:"hidden sm:flex lg:flex-row items-center justify-start gap-0 w-2/3 transform -rotate-12 lg:w-1/2",children:[(0,c.jsx)(F,{images:t,start:0,end:1}),(0,c.jsx)("div",{className:"lg:w-full",children:t==null?void 0:t.slice(1,3).map((r,e)=>(0,c.jsx)(F,{images:[r],start:0,end:1},e))}),(0,c.jsx)(F,{images:t,start:3,end:4})]}):null}function F({images:t,start:r,end:e}){var o;return(o=t==null?void 0:t[r])!=null&&o.image?(0,c.jsx)("div",{className:"w-full",children:t.slice(r,e).map((n,l)=>{var m;return(0,c.jsx)(v.Image,{className:"object-cover",src:`${n.image}`,sizes:"100vw",width:500,height:850,alt:(m=n.alt)!=null?m:`appPromo-variantC-image-${l}`},l)})}):null}function Pt(){return(0,c.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,c.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"})})}function Lt({image:t,alt:r}){return t?(0,c.jsx)("div",{className:"object-contain w-1/2 mx-auto sm:hidden",children:(0,c.jsx)(v.Image,{className:"object-contain w-full h-full",src:t,sizes:"(min-width: 520px) 224px, 45vw",width:500,height:850,alt:r})}):null}function gt({arrowLeftClick:t,arrowRightClick:r,children:e}){return(0,c.jsxs)(W.Flex,{justify:"between",align:"center",className:"mt-16 sm:hidden",children:[(0,c.jsx)(I.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,c.jsx)(I.SwiperButton,{type:"right",ariaLabel:"Right Arrow button",className:"order-2 bg-white",onClick:r})]})}var yt={variant_a:C,variant_b:L,variant_c:R},Rt="AppPromo",et=({data:t})=>{var n,l,m,u,p,s,d,w,x,B,j,_,$,H;let r=t==null?void 0:t.variant,e=r&&yt[r],o={logo:(l=(n=t==null?void 0:t.variants)==null?void 0:n.logo)!=null?l:void 0,subtitle:(u=(m=t==null?void 0:t.variants)==null?void 0:m.subtitle)!=null?u:void 0,title:(s=(p=t==null?void 0:t.variants)==null?void 0:p.title)!=null?s:void 0,description:(w=(d=t==null?void 0:t.variants)==null?void 0:d.description)!=null?w:void 0,statistics:(B=(x=t==null?void 0:t.variants)==null?void 0:x.stats)!=null?B:void 0,features:(_=(j=t==null?void 0:t.variants)==null?void 0:j.tags)!=null?_:void 0,images:(H=($=t==null?void 0:t.variants)==null?void 0:$.images)!=null?H:void 0};return e?(0,c.jsx)(e,{...o}):null};et.displayName=Rt;0&&(module.exports={AppPromo,AppPromo_A,AppPromo_B,AppPromo_C});
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";import{a as t}from"./chunk-5JXG435C.mjs";import{a as o}from"./chunk-ETXJ2SC5.mjs";import{a as r}from"./chunk-5WNEK5LG.mjs";import{a as e}from"./chunk-2JSILVLZ.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
ADDED
|
@@ -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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackshift-ui/app-promo",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "7.0.0-beta.
|
|
4
|
+
"version": "7.0.0-beta.9",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -33,23 +33,23 @@
|
|
|
33
33
|
"@stackshift-ui/typescript-config": "6.0.10"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@stackshift-ui/
|
|
37
|
-
"@stackshift-ui/
|
|
38
|
-
"@stackshift-ui/
|
|
39
|
-
"@stackshift-ui/text": "7.0.0-beta.
|
|
40
|
-
"@stackshift-ui/
|
|
41
|
-
"@stackshift-ui/
|
|
42
|
-
"@stackshift-ui/
|
|
43
|
-
"@stackshift-ui/
|
|
44
|
-
"@stackshift-ui/
|
|
45
|
-
"@stackshift-ui/
|
|
36
|
+
"@stackshift-ui/swiper-button": "7.0.0-beta.8",
|
|
37
|
+
"@stackshift-ui/heading": "7.0.0-beta.6",
|
|
38
|
+
"@stackshift-ui/system": "7.0.0-beta.6",
|
|
39
|
+
"@stackshift-ui/text": "7.0.0-beta.6",
|
|
40
|
+
"@stackshift-ui/scripts": "7.0.0-beta.5",
|
|
41
|
+
"@stackshift-ui/container": "7.0.0-beta.6",
|
|
42
|
+
"@stackshift-ui/link": "7.0.0-beta.6",
|
|
43
|
+
"@stackshift-ui/image": "7.0.0-beta.7",
|
|
44
|
+
"@stackshift-ui/section": "7.0.0-beta.6",
|
|
45
|
+
"@stackshift-ui/flex": "7.0.0-beta.6"
|
|
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": ">=7.0.0-beta.
|
|
52
|
+
"@stackshift-ui/system": ">=7.0.0-beta.6"
|
|
53
53
|
},
|
|
54
54
|
"peerDependenciesMeta": {
|
|
55
55
|
"next": {
|