@stackshift-ui/features 6.0.5 → 6.0.6-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/package.json +6 -6
  2. package/src/features_b.tsx +4 -4
  3. package/src/features_c.tsx +1 -1
  4. package/src/features_d.tsx +1 -1
  5. package/src/features_f.tsx +6 -4
  6. package/src/features_g.tsx +1 -1
  7. package/src/features_h.tsx +1 -1
  8. package/dist/chunk-76IS6VW4.mjs +0 -1
  9. package/dist/chunk-7B6FI3PR.mjs +0 -1
  10. package/dist/chunk-AN3PFBVX.mjs +0 -1
  11. package/dist/chunk-CH65ARWJ.mjs +0 -1
  12. package/dist/chunk-DODP4JDQ.mjs +0 -1
  13. package/dist/chunk-IS5MPNWR.mjs +0 -1
  14. package/dist/chunk-VMJMULYP.mjs +0 -1
  15. package/dist/chunk-W3RGT6IT.mjs +0 -1
  16. package/dist/chunk-YVG2YZHF.mjs +0 -1
  17. package/dist/features.d.ts +0 -23
  18. package/dist/features.js +0 -1
  19. package/dist/features.mjs +0 -1
  20. package/dist/features_a.d.ts +0 -3
  21. package/dist/features_a.js +0 -1
  22. package/dist/features_a.mjs +0 -1
  23. package/dist/features_b.d.ts +0 -3
  24. package/dist/features_b.js +0 -1
  25. package/dist/features_b.mjs +0 -1
  26. package/dist/features_c.d.ts +0 -3
  27. package/dist/features_c.js +0 -1
  28. package/dist/features_c.mjs +0 -1
  29. package/dist/features_d.d.ts +0 -3
  30. package/dist/features_d.js +0 -1
  31. package/dist/features_d.mjs +0 -1
  32. package/dist/features_e.d.ts +0 -3
  33. package/dist/features_e.js +0 -1
  34. package/dist/features_e.mjs +0 -1
  35. package/dist/features_f.d.ts +0 -3
  36. package/dist/features_f.js +0 -1
  37. package/dist/features_f.mjs +0 -1
  38. package/dist/features_g.d.ts +0 -3
  39. package/dist/features_g.js +0 -1
  40. package/dist/features_g.mjs +0 -1
  41. package/dist/features_h.d.ts +0 -3
  42. package/dist/features_h.js +0 -1
  43. package/dist/features_h.mjs +0 -1
  44. package/dist/index.d.ts +0 -9
  45. package/dist/index.js +0 -2
  46. package/dist/index.mjs +0 -2
  47. package/dist/types.d.ts +0 -362
  48. package/dist/types.js +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stackshift-ui/features",
3
3
  "description": "",
4
- "version": "6.0.5",
4
+ "version": "6.0.6-beta.0",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "main": "./dist/index.js",
@@ -35,15 +35,15 @@
35
35
  "dependencies": {
36
36
  "classnames": "^2.5.1",
37
37
  "@stackshift-ui/scripts": "6.0.2",
38
- "@stackshift-ui/heading": "6.0.3",
39
- "@stackshift-ui/text": "6.0.3",
40
38
  "@stackshift-ui/system": "6.0.3",
41
- "@stackshift-ui/image": "6.0.3",
42
39
  "@stackshift-ui/button": "6.0.3",
43
- "@stackshift-ui/section": "6.0.3",
44
40
  "@stackshift-ui/card": "6.0.3",
41
+ "@stackshift-ui/flex": "6.0.3",
42
+ "@stackshift-ui/section": "6.0.3",
45
43
  "@stackshift-ui/container": "6.0.3",
46
- "@stackshift-ui/flex": "6.0.3"
44
+ "@stackshift-ui/text": "6.0.3",
45
+ "@stackshift-ui/heading": "6.0.3",
46
+ "@stackshift-ui/image": "6.0.3"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "@types/react": "16.8 - 19",
@@ -92,8 +92,8 @@ function FeaturesLists({ features }: { features?: ArrayOfImageTitleAndText[] })
92
92
  className={`w-full px-4 mb-8 md:w-1/2 ${index % 2 === 0 ? `lg:mb-0` : "lg:mt-12"}`}
93
93
  key={index}>
94
94
  <Card className="py-6 pl-6 pr-4 mb-8 bg-white" borderRadius="md">
95
- <span className="inline-block p-3 mb-4 rounded-lg bg-secondary/50">
96
- {feature?.mainImage?.image && (
95
+ {feature?.mainImage?.image && (
96
+ <span className="inline-block p-3 mb-4 rounded-lg bg-secondary/50">
97
97
  <Image
98
98
  className="object-scale-down"
99
99
  src={`${feature?.mainImage?.image}`}
@@ -101,8 +101,8 @@ function FeaturesLists({ features }: { features?: ArrayOfImageTitleAndText[] })
101
101
  height={40}
102
102
  alt={feature?.mainImage?.alt ?? `features-image-${index}`}
103
103
  />
104
- )}
105
- </span>
104
+ </span>
105
+ )}
106
106
  <Text weight="bold" fontSize="2xl" className="mb-2 text-gray-500">
107
107
  {feature?.title}
108
108
  </Text>
@@ -52,7 +52,7 @@ function FeatureItems({ features }: { features?: ArrayOfImageTitleAndText[] }) {
52
52
  if (!features) return null;
53
53
 
54
54
  return (
55
- <Flex wrap justify="start" className="-mx-3">
55
+ <Flex wrap justify="start" align="stretch" className="-mx-3">
56
56
  {features.map(feature => {
57
57
  return <FeatureItem feature={feature} key={feature._key} />;
58
58
  })}
@@ -52,7 +52,7 @@ function FeatureItems({ features }: { features?: ArrayOfImageTitleAndText[] }) {
52
52
  if (!features) return null;
53
53
 
54
54
  return (
55
- <Flex wrap justify="center">
55
+ <Flex wrap justify="center" align="stretch">
56
56
  {features.map(feature => (
57
57
  <FeatureItem feature={feature} key={feature._key} />
58
58
  ))}
@@ -64,9 +64,11 @@ function CTAButton({ primaryButton }: { primaryButton?: LabeledRoute }) {
64
64
  if (!primaryButton?.label) return null;
65
65
 
66
66
  return (
67
- <Button as="link" link={primaryButton} ariaLabel={primaryButton?.label}>
68
- {primaryButton?.label}
69
- </Button>
67
+ <Container maxWidth={448} className="ml-0">
68
+ <Button as="link" link={primaryButton} ariaLabel={primaryButton?.label}>
69
+ {primaryButton?.label}
70
+ </Button>
71
+ </Container>
70
72
  );
71
73
  }
72
74
 
@@ -98,7 +100,7 @@ function ImageGallery({ images }: { images?: any[] }) {
98
100
  <div className="w-full lg:w-1/2">
99
101
  <div className="items-end mb-4 lg:flex lg:flex-wrap">
100
102
  <div className="h-full px-3 mb-4 lg:mb-0 lg:w-2/3">
101
- {images[0]?.image && renderImage(images[0].image, images[0].alt, 356, 192, "h-[269px]")}
103
+ {images[0]?.image && renderImage(images[0].image, images[0].alt, 356, 192, "h-full")}
102
104
  </div>
103
105
  <div className="h-full px-3 lg:w-1/3">
104
106
  {images[1]?.image && renderImage(images[1].image, images[1].alt, 166, 128, "")}
@@ -116,7 +116,7 @@ function ImageGallery({ images }: { images?: any[] }) {
116
116
  <div className="w-full lg:w-1/2">
117
117
  <div className="items-end mb-4 lg:flex lg:flex-wrap">
118
118
  <div className="h-full px-3 mb-4 lg:mb-0 lg:w-2/3">
119
- {images[0]?.image && renderImage(images[0].image, images[0].alt, 356, 192, "h-[269px]")}
119
+ {images[0]?.image && renderImage(images[0].image, images[0].alt, 356, 192, "h-full")}
120
120
  </div>
121
121
  <div className="h-full px-3 lg:w-1/3">
122
122
  {images[1]?.image && renderImage(images[1].image, images[1].alt, 166, 128, "")}
@@ -59,7 +59,7 @@ function FeatureItem({ feature }: { feature?: ArrayOfImageTitleAndText }) {
59
59
  if (!feature) return null;
60
60
 
61
61
  return (
62
- <Flex as="li">
62
+ <Flex as="li" className="mb-5">
63
63
  <FeatureIcon />
64
64
  <div className="max-w-xs">
65
65
  <Text weight="bold" className="text-gray-500">
@@ -1 +0,0 @@
1
- import{Card as c}from"@stackshift-ui/card";import{Container as g}from"@stackshift-ui/container";import{Flex as d}from"@stackshift-ui/flex";import{Heading as p}from"@stackshift-ui/heading";import{Image as x}from"@stackshift-ui/image";import{Section as w}from"@stackshift-ui/section";import{Text as n}from"@stackshift-ui/text";import b from"react";import{jsx as m,jsxs as t}from"react/jsx-runtime";function N({caption:i,title:l,description:o,features:a,tags:s}){return m(w,{className:"py-20 bg-background",children:m(g,{maxWidth:1280,children:t(d,{wrap:!0,align:"center",children:[m("div",{className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:t(g,{maxWidth:448,children:[m(h,{caption:i,title:l,description:o}),m(T,{tags:s})]})}),m(v,{features:a})]})})})}function h({caption:i,title:l,description:o}){return t(b.Fragment,{children:[i&&m(n,{weight:"bold",className:"text-secondary",children:i}),l&&m(p,{fontSize:"3xl",children:l}),o&&m(n,{muted:!0,className:"mb-6 leading-loose",children:o})]})}function T({tags:i}){return i?m("ul",{children:i&&i.map(l=>t("li",{className:"flex mb-4",children:[m("svg",{className:"w-6 h-6 mr-2 text-secondary",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:m("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"})}),m(n,{muted:!0,weight:"bold",children:l})]},l))}):null}function v({features:i}){return i?m(d,{wrap:!0,className:"w-full lg:w-1/2",children:i&&(i==null?void 0:i.map((l,o)=>{var a,s,e,r;return m("div",{className:`w-full px-4 mb-8 md:w-1/2 ${o%2===0?"lg:mb-0":"lg:mt-12"}`,children:t(c,{className:"py-6 pl-6 pr-4 mb-8 bg-white",borderRadius:"md",children:[m("span",{className:"inline-block p-3 mb-4 rounded-lg bg-secondary/50",children:((a=l==null?void 0:l.mainImage)==null?void 0:a.image)&&m(x,{className:"object-scale-down",src:`${(s=l==null?void 0:l.mainImage)==null?void 0:s.image}`,width:40,height:40,alt:(r=(e=l==null?void 0:l.mainImage)==null?void 0:e.alt)!=null?r:`features-image-${o}`})}),m(n,{weight:"bold",fontSize:"2xl",className:"mb-2 text-gray-500",children:l==null?void 0:l.title}),m(n,{muted:!0,className:"leading-loose",children:l==null?void 0:l.plainText})]})},o)}))}):null}export{N as a};
@@ -1 +0,0 @@
1
- import{Button as p}from"@stackshift-ui/button";import{Card as w}from"@stackshift-ui/card";import{Container as v}from"@stackshift-ui/container";import{Flex as b}from"@stackshift-ui/flex";import{Heading as e}from"@stackshift-ui/heading";import{Image as N}from"@stackshift-ui/image";import{Section as F}from"@stackshift-ui/section";import{Text as s}from"@stackshift-ui/text";import h from"react";import{jsx as l,jsxs as c}from"react/jsx-runtime";function d({featuredItems:o}){let[i,n]=h.useState(0);return l(F,{className:"py-20 overflow-x-auto bg-background",children:l(v,{maxWidth:1280,children:l(b,{className:"relative",children:l(S,{featuredItems:o,slider:r=>{o&&(r==="next"?i!==o.length-1?n(t=>t+1):n(0):i>=1?n(t=>t-1):n(o.length-1))},children:c("div",{className:"order-1 w-full ml-auto xl:w-4/5",children:[l(k,{featuredItems:o,item:i}),l(C,{featuredItems:o,item:i})]})})})})})}function k({featuredItems:o,item:i}){var n,x,r,t,m,a,g;return(x=(n=o==null?void 0:o[i])==null?void 0:n.mainImage)!=null&&x.image?l("div",{className:"mx-auto overflow-hidden rounded-md md:max-w-xl xl:max-w-4xl",children:l(N,{className:"relative object-cover rounded-md",src:`${(t=(r=o==null?void 0:o[i])==null?void 0:r.mainImage)==null?void 0:t.image}`,sizes:"100vw",width:896,height:575,alt:(g=(a=(m=o==null?void 0:o[i])==null?void 0:m.mainImage)==null?void 0:a.alt)!=null?g:`features-image-${i}`})}):null}function C({featuredItems:o,item:i}){var n,x,r,t,m,a;return o?c(w,{className:"top-0 left-0 max-w-xl p-6 mx-auto text-center bg-white md:mt-12 md:p-10 lg:mt-12 lg:p-10 xl:absolute xl:mx-0 xl:mt-20 xl:py-24",borderRadius:"md",children:[l(s,{weight:"bold",className:"text-xs lg:text-md md:text-sm xl:text-lg text-secondary",children:((n=o==null?void 0:o[i])==null?void 0:n.subtitle)&&((x=o==null?void 0:o[i])==null?void 0:x.subtitle)}),l(e,{fontSize:"3xl",children:((r=o==null?void 0:o[i])==null?void 0:r.title)&&((t=o==null?void 0:o[i])==null?void 0:t.title)}),l(s,{muted:!0,className:"text-xs leading-loose text-center md:mt-5 md:text-sm lg:mt-5 lg:text-sm",children:((m=o==null?void 0:o[i])==null?void 0:m.description)&&((a=o==null?void 0:o[i])==null?void 0:a.description)})]}):null}function S({featuredItems:o,children:i,slider:n}){return o?c(h.Fragment,{children:[l("div",{className:"absolute left-0 z-40 items-center mt-20 -mx-3 order-0 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(o==null?void 0:o.length)>=2&&l(p,{as:"button",ariaLabel:"Show Previous Feature",className:"z-10 p-4 text-white ",onClick:()=>n("prev"),children:l("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M10 19l-7-7m0 0l7-7m-7 7h18"})})})}),i,l("div",{className:"absolute right-0 z-40 items-center order-2 mt-20 -mx-3 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(o==null?void 0:o.length)>=2&&l(p,{as:"button",ariaLabel:"Show Next Feature",className:"p-4 text-white ",onClick:()=>n("next"),children:l("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M14 5l7 7m0 0l-7 7m7-7H3"})})})})]}):null}export{d as a};
@@ -1 +0,0 @@
1
- import{Container as f}from"@stackshift-ui/container";import{Flex as N}from"@stackshift-ui/flex";import{Heading as b}from"@stackshift-ui/heading";import{Image as d}from"@stackshift-ui/image";import{Section as s}from"@stackshift-ui/section";import{Text as i}from"@stackshift-ui/text";import T from"react";import{jsx as r,jsxs as o}from"react/jsx-runtime";function y({caption:t,title:n,features:l,images:e}){return r(s,{className:"py-20 bg-background",children:r(f,{maxWidth:1280,children:o(N,{wrap:!0,align:"center",children:[r("div",{className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:o(f,{maxWidth:448,children:[r(F,{caption:t,title:n}),r(k,{features:l})]})}),r(C,{images:e})]})})})}function F({caption:t,title:n}){return o(T.Fragment,{children:[t&&r(i,{weight:"bold",className:"text-secondary",children:t}),n&&r(b,{fontSize:"3xl",className:"mb-6",children:n})]})}function k({features:t}){return!t||(t==null?void 0:t.length)<=0?null:r("ul",{children:t.map(n=>r(A,{feature:n},n._key))})}function A({feature:t}){return t?o(N,{as:"li",children:[r(I,{}),o("div",{className:"max-w-xs",children:[r(i,{weight:"bold",className:"text-gray-500",children:t==null?void 0:t.title}),r(i,{muted:!0,className:"leading-loose",children:t==null?void 0:t.plainText})]})]}):null}function I(){return r("svg",{className:"w-8 h-8 mr-3 text-primary",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"})})}function C({images:t}){var n,l,e,m,c,a,w,x,p,h,u,v;return!t||(t==null?void 0:t.length)===0?null:o("div",{className:"items-center w-full px-4 sm:flex md:px-0 lg:w-1/2",children:[o("div",{className:"mb-5 sm:mb-0 sm:w-1/2",children:[((n=t==null?void 0:t[0])==null?void 0:n.image)&&r(d,{className:"object-cover overflow-hidden rounded-md",src:`${(l=t==null?void 0:t[0])==null?void 0:l.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(m=(e=t==null?void 0:t[0])==null?void 0:e.alt)!=null?m:"features-image-1"}),((c=t==null?void 0:t[1])==null?void 0:c.image)&&r(d,{className:"object-cover mt-6 overflow-hidden rounded-md",src:`${(a=t==null?void 0:t[1])==null?void 0:a.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(x=(w=t==null?void 0:t[1])==null?void 0:w.alt)!=null?x:"features-image-2"})]}),((p=t==null?void 0:t[2])==null?void 0:p.image)&&r(d,{className:"object-cover overflow-hidden rounded-md sm:ml-6 sm:w-1/2",src:`${(h=t==null?void 0:t[2])==null?void 0:h.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(v=(u=t==null?void 0:t[2])==null?void 0:u.alt)!=null?v:"features-image-3"})]})}export{y as a};
@@ -1 +0,0 @@
1
- import{Button as x}from"@stackshift-ui/button";import{Container as f}from"@stackshift-ui/container";import{Flex as s}from"@stackshift-ui/flex";import{Heading as v}from"@stackshift-ui/heading";import{Image as h}from"@stackshift-ui/image";import{Section as w}from"@stackshift-ui/section";import{Text as m}from"@stackshift-ui/text";import{jsx as l,jsxs as i}from"react/jsx-runtime";function N({caption:e,title:a,description:t,images:n,primaryButton:o}){return l(w,{className:"py-20 bg-background",children:l(f,{maxWidth:1280,children:i(s,{wrap:!0,align:"center",children:[i(s,{direction:"col",className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:[l(p,{caption:e,title:a,description:t}),l(F,{primaryButton:o})]}),l(C,{images:n})]})})})}function p({caption:e,title:a,description:t}){return i(f,{maxWidth:448,className:"ml-0",children:[e&&l(m,{weight:"bold",className:"font-bold text-secondary",children:e}),a&&l(v,{fontSize:"3xl",className:"mb-6",children:a}),t&&l(m,{muted:!0,className:"mb-6 leading-loose",children:t})]})}function F({primaryButton:e}){return e!=null&&e.label?l(x,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label}):null}function C({images:e}){var t,n,o,d;if(!e||(e==null?void 0:e.length)===0)return null;function a(c,r,g,u,b){return l("div",{className:`overflow-hidden ${b}`,children:l(h,{className:"object-cover w-full h-auto rounded-md",src:c,sizes:"100vw",width:g,height:u,alt:r!=null?r:"feature-image"})})}return i("div",{className:"w-full lg:w-1/2",children:[i("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[l("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((t=e[0])==null?void 0:t.image)&&a(e[0].image,e[0].alt,356,192,"h-[269px]")}),l("div",{className:"h-full px-3 lg:w-1/3",children:((n=e[1])==null?void 0:n.image)&&a(e[1].image,e[1].alt,166,128,"")})]}),i("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[l("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((o=e[2])==null?void 0:o.image)&&a(e[2].image,e[2].alt,166,128,"h-[269px] lg:h-[126px]")}),l("div",{className:"h-full px-3 lg:w-2/3",children:((d=e[3])==null?void 0:d.image)&&a(e[3].image,e[3].alt,356,192,"")})]})]})}export{N as a};
@@ -1 +0,0 @@
1
- import{lazy as r}from"react";import{jsx as R}from"react/jsx-runtime";var A={variant_a:r(()=>import("./features_a.mjs")),variant_b:r(()=>import("./features_b.mjs")),variant_c:r(()=>import("./features_c.mjs")),variant_d:r(()=>import("./features_d.mjs")),variant_e:r(()=>import("./features_e.mjs")),variant_f:r(()=>import("./features_f.mjs")),variant_g:r(()=>import("./features_g.mjs")),variant_h:r(()=>import("./features_h.mjs"))},x="Features",b=({data:e})=>{var t,s,o,m,p,u,f,g,c,v,l,I,y,a,F,T;let i=e==null?void 0:e.variant,n=i&&A[i],_={caption:(s=(t=e==null?void 0:e.variants)==null?void 0:t.subtitle)!=null?s:void 0,title:(m=(o=e==null?void 0:e.variants)==null?void 0:o.title)!=null?m:void 0,description:(u=(p=e==null?void 0:e.variants)==null?void 0:p.description)!=null?u:void 0,features:(g=(f=e==null?void 0:e.variants)==null?void 0:f.arrayOfImageTitleAndText)!=null?g:void 0,tags:(v=(c=e==null?void 0:e.variants)==null?void 0:c.tags)!=null?v:void 0,featuredItems:(I=(l=e==null?void 0:e.variants)==null?void 0:l.featuredItems)!=null?I:void 0,images:(a=(y=e==null?void 0:e.variants)==null?void 0:y.images)!=null?a:void 0,primaryButton:(T=(F=e==null?void 0:e.variants)==null?void 0:F.primaryButton)!=null?T:void 0};return n?R(n,{..._}):null};b.displayName=x;export{b as a};
@@ -1 +0,0 @@
1
- import{Container as s}from"@stackshift-ui/container";import{Flex as g}from"@stackshift-ui/flex";import{Heading as p}from"@stackshift-ui/heading";import{Image as c}from"@stackshift-ui/image";import{Section as d}from"@stackshift-ui/section";import{Text as o}from"@stackshift-ui/text";import r from"react";import{jsx as m,jsxs as a}from"react/jsx-runtime";function x({caption:n,title:i,description:t,features:l}){return m(d,{className:"py-20 bg-background",children:a(s,{maxWidth:1280,children:[m(s,{maxWidth:448,className:"mb-16 text-center ",children:m(I,{caption:n,title:i,description:t})}),m(g,{wrap:!0,children:m(F,{features:l})})]})})}function I({caption:n,title:i,description:t}){return a(r.Fragment,{children:[n?m(o,{weight:"bold",className:"text-secondary",children:n}):null,i?m(p,{fontSize:"3xl",children:i}):null,t?m(o,{muted:!0,className:"mb-6 leading-loose",children:t}):null]})}function F({features:n}){return n?m(r.Fragment,{children:n==null?void 0:n.map(i=>m(b,{feature:i},i._key))}):null}function b({feature:n}){var i;return a("div",{className:"w-full px-4 mt-16 mb-12 md:w-1/2 lg:mb-0 lg:w-1/4",children:[(i=n==null?void 0:n.mainImage)!=null&&i.image?m(T,{feature:n}):null,n!=null&&n.title?m(o,{weight:"bold",className:"mb-4 text-gray-500",fontSize:"xl",children:n==null?void 0:n.title}):null,n!=null&&n.plainText?m(o,{muted:!0,className:"leading-loose",children:n==null?void 0:n.plainText}):null]})}function T({feature:n}){var i,t,l,e;return(i=n==null?void 0:n.mainImage)!=null&&i.image?m("span",{className:"inline-block p-3 mb-4 rounded bg-secondary/50 text-primary-foreground md:mb-6",children:m(c,{className:"object-scale-down",src:`${(t=n==null?void 0:n.mainImage)==null?void 0:t.image}`,width:40,height:40,alt:(e=(l=n==null?void 0:n.mainImage)==null?void 0:l.alt)!=null?e:"features-image-"})}):null}export{x as a};
@@ -1 +0,0 @@
1
- import{Container as s}from"@stackshift-ui/container";import{Flex as u}from"@stackshift-ui/flex";import{Heading as v}from"@stackshift-ui/heading";import{Image as x}from"@stackshift-ui/image";import{Section as w}from"@stackshift-ui/section";import{Text as d}from"@stackshift-ui/text";import h from"react";import{jsx as l,jsxs as a}from"react/jsx-runtime";function b({caption:e,title:t,description:r,images:n,tags:i}){return l(w,{className:"py-20 bg-background",children:l(s,{maxWidth:1280,children:a(u,{wrap:!0,align:"center",children:[l("div",{className:"w-full px-4 mb-12 lg:mb-0 lg:w-1/2",children:a(s,{maxWidth:448,children:[l(N,{caption:e,title:t,description:r}),l(F,{tags:i})]})}),l(I,{images:n})]})})})}function N({caption:e,title:t,description:r}){return a(h.Fragment,{children:[e&&l(d,{weight:"bold",className:"text-secondary",children:e}),t&&l(v,{fontSize:"3xl",className:"mb-3",children:t}),r&&l(d,{muted:!0,className:"mb-6 leading-loose ",children:r})]})}function F({tags:e}){return e?l("ul",{className:"font-bold text-gray-500",children:e.map(t=>l(y,{item:t}))}):null}function y({item:e}){return e?a(u,{as:"li",align:"center",className:"mb-2 ",children:[l("svg",{className:"w-5 h-5 mr-2 text-primary-foreground",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:l("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"})}),l("span",{children:e})]}):null}function I({images:e}){var r,n,i,o;if(!e||(e==null?void 0:e.length)===0)return null;function t(g,m,c,f,p){return l("div",{className:`overflow-hidden ${p}`,children:l(x,{className:"object-cover w-full h-auto rounded-md",src:g,sizes:"100vw",width:c,height:f,alt:m!=null?m:"feature-image"})})}return a("div",{className:"w-full lg:w-1/2",children:[a("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[l("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((r=e[0])==null?void 0:r.image)&&t(e[0].image,e[0].alt,356,192,"h-[269px]")}),l("div",{className:"h-full px-3 lg:w-1/3",children:((n=e[1])==null?void 0:n.image)&&t(e[1].image,e[1].alt,166,128,"")})]}),a("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[l("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((i=e[2])==null?void 0:i.image)&&t(e[2].image,e[2].alt,166,128,"h-[269px] lg:h-[126px]")}),l("div",{className:"h-full px-3 lg:w-2/3",children:((o=e[3])==null?void 0:o.image)&&t(e[3].image,e[3].alt,356,192,"")})]})]})}export{b as a};
@@ -1 +0,0 @@
1
- import{Card as s}from"@stackshift-ui/card";import{Container as r}from"@stackshift-ui/container";import{Flex as d}from"@stackshift-ui/flex";import{Heading as g}from"@stackshift-ui/heading";import{Image as c}from"@stackshift-ui/image";import{Section as p}from"@stackshift-ui/section";import{Text as a}from"@stackshift-ui/text";import x from"react";import{jsx as i,jsxs as l}from"react/jsx-runtime";function b({caption:t,title:m,description:n,features:e}){return i(p,{className:"py-20 bg-background",children:l(r,{maxWidth:1280,children:[i(r,{maxWidth:448,className:"mb-16 text-center ",children:i(T,{caption:t,title:m,description:n})}),i(w,{features:e})]})})}function T({caption:t,title:m,description:n}){return l(x.Fragment,{children:[t?i(a,{weight:"bold",className:"text-secondary",children:t}):null,m?i(g,{fontSize:"3xl",children:m}):null,n?i(a,{muted:!0,className:"mb-6 leading-loose",children:n}):null]})}function w({features:t}){return t?i(d,{wrap:!0,justify:"start",className:"-mx-3",children:t.map(m=>i(N,{feature:m},m._key))}):null}function N({feature:t}){var m,n,e,o;return i("div",{className:"w-full px-3 mb-6 lg:w-1/2",children:l(s,{className:"flex flex-wrap h-full p-6 bg-white",borderRadius:"md",children:[i("div",{className:"self-start inline-block p-3 mb-4 mr-6 rounded-lg bg-secondary/50 md:p-5 lg:mb-0",children:((m=t==null?void 0:t.mainImage)==null?void 0:m.image)&&i(c,{className:"object-scale-down",src:`${(n=t==null?void 0:t.mainImage)==null?void 0:n.image}`,width:40,height:40,alt:(o=(e=t==null?void 0:t.mainImage)==null?void 0:e.alt)!=null?o:"features-main-image"})}),l("div",{className:"w-full lg:w-2/3",children:[i(a,{fontSize:"2xl",weight:"bold",className:"mb-2 text-gray-500",children:t==null?void 0:t.title}),i(a,{muted:!0,children:t==null?void 0:t.plainText})]})]})})}export{b as a};
@@ -1 +0,0 @@
1
- import{Card as s}from"@stackshift-ui/card";import{Container as r}from"@stackshift-ui/container";import{Flex as d}from"@stackshift-ui/flex";import{Heading as c}from"@stackshift-ui/heading";import{Image as g}from"@stackshift-ui/image";import{Section as p}from"@stackshift-ui/section";import{Text as o}from"@stackshift-ui/text";import x from"react";import{jsx as i,jsxs as a}from"react/jsx-runtime";function b({caption:t,title:m,description:n,features:e}){return i(p,{className:"py-20 bg-background",children:a(r,{maxWidth:1280,children:[i(r,{maxWidth:448,className:"mb-8 text-center",children:i(T,{caption:t,title:m,description:n})}),i(y,{features:e})]})})}function T({caption:t,title:m,description:n}){return a(x.Fragment,{children:[t?i(o,{weight:"bold",className:"text-secondary",children:t}):null,m?i(c,{fontSize:"3xl",children:m}):null,n?i(o,{muted:!0,className:"mb-6 leading-loose",children:n}):null]})}function y({features:t}){return t?i(d,{wrap:!0,justify:"center",children:t.map(m=>i(h,{feature:m},m._key))}):null}function h({feature:t}){var m,n,e,l;return i("div",{className:"w-full px-4 mt-8 lg:mb-0 lg:w-1/3",children:a(s,{className:"h-full px-6 py-12 text-center bg-white",borderRadius:"md",children:[i("div",{className:"self-start inline-block p-3 mb-6 rounded-lg bg-secondary/50 md:p-5",children:((m=t==null?void 0:t.mainImage)==null?void 0:m.image)&&i(g,{className:"object-scale-down",src:`${(n=t==null?void 0:t.mainImage)==null?void 0:n.image}`,width:40,height:40,alt:(l=(e=t==null?void 0:t.mainImage)==null?void 0:e.alt)!=null?l:"features-image-"})}),i(o,{fontSize:"xl",weight:"bold",className:"px-8 mb-4 text-gray-500",children:t==null?void 0:t.title}),i(o,{muted:!0,children:t==null?void 0:t.plainText})]})})}export{b as a};
@@ -1,23 +0,0 @@
1
- import React from "react";
2
- import { ArrayOfImageTitleAndText, FeaturedItem, Images, LabeledRoute, SectionsProps } from "./types";
3
- export interface FeaturesProps {
4
- caption?: string;
5
- title?: string;
6
- description?: string;
7
- features?: ArrayOfImageTitleAndText[];
8
- tags?: string[];
9
- featuredItems?: FeaturedItem[];
10
- images?: Images[];
11
- primaryButton?: LabeledRoute;
12
- }
13
- export interface FeaturesProps {
14
- caption?: string;
15
- title?: string;
16
- description?: string;
17
- features?: ArrayOfImageTitleAndText[];
18
- tags?: string[];
19
- featuredItems?: FeaturedItem[];
20
- images?: Images[];
21
- primaryButton?: LabeledRoute;
22
- }
23
- export declare const Features: React.FC<SectionsProps>;
package/dist/features.js DELETED
@@ -1 +0,0 @@
1
- "use strict";var xn=Object.create;var R=Object.defineProperty;var wn=Object.getOwnPropertyDescriptor;var un=Object.getOwnPropertyNames;var bn=Object.getPrototypeOf,vn=Object.prototype.hasOwnProperty;var F=(t,n)=>()=>(t&&(n=t(t=0)),n);var h=(t,n)=>{for(var i in n)R(t,i,{get:n[i],enumerable:!0})},it=(t,n,i,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(let e of un(n))!vn.call(t,e)&&e!==i&&R(t,e,{get:()=>n[e],enumerable:!(l=wn(n,e))||l.enumerable});return t};var f=(t,n,i)=>(i=t!=null?xn(bn(t)):{},it(n||!t||!t.__esModule?R(i,"default",{value:t,enumerable:!0}):i,t)),hn=t=>it(R({},"__esModule",{value:!0}),t);var at={};h(at,{Features_A:()=>mt,default:()=>mt});function mt({caption:t,title:n,description:i,features:l}){return(0,d.jsx)(rt.Section,{className:"py-20 bg-background",children:(0,d.jsxs)(P.Container,{maxWidth:1280,children:[(0,d.jsx)(P.Container,{maxWidth:448,className:"mb-16 text-center ",children:(0,d.jsx)(Nn,{caption:t,title:n,description:i})}),(0,d.jsx)(lt.Flex,{wrap:!0,children:(0,d.jsx)(Fn,{features:l})})]})})}function Nn({caption:t,title:n,description:i}){return(0,d.jsxs)(L.default.Fragment,{children:[t?(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}):null,n?(0,d.jsx)(et.Heading,{fontSize:"3xl",children:n}):null,i?(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose",children:i}):null]})}function Fn({features:t}){return t?(0,d.jsx)(L.default.Fragment,{children:t==null?void 0:t.map(n=>(0,d.jsx)(fn,{feature:n},n._key))}):null}function fn({feature:t}){var n;return(0,d.jsxs)("div",{className:"w-full px-4 mt-16 mb-12 md:w-1/2 lg:mb-0 lg:w-1/4",children:[(n=t==null?void 0:t.mainImage)!=null&&n.image?(0,d.jsx)(Tn,{feature:t}):null,t!=null&&t.title?(0,d.jsx)(k.Text,{weight:"bold",className:"mb-4 text-gray-500",fontSize:"xl",children:t==null?void 0:t.title}):null,t!=null&&t.plainText?(0,d.jsx)(k.Text,{muted:!0,className:"leading-loose",children:t==null?void 0:t.plainText}):null]})}function Tn({feature:t}){var n,i,l,e;return(n=t==null?void 0:t.mainImage)!=null&&n.image?(0,d.jsx)("span",{className:"inline-block d-3 mb-4 rounded bg-secondary/50 text-primary-foreground md:mb-6",children:(0,d.jsx)(ot.Image,{className:"object-scale-down",src:`${(i=t==null?void 0:t.mainImage)==null?void 0:i.image}`,width:40,height:40,alt:(e=(l=t==null?void 0:t.mainImage)==null?void 0:l.alt)!=null?e:"features-image-"})}):null}var P,lt,et,ot,rt,k,L,d,st=F(()=>{"use strict";P=require("@stackshift-ui/container"),lt=require("@stackshift-ui/flex"),et=require("@stackshift-ui/heading"),ot=require("@stackshift-ui/image"),rt=require("@stackshift-ui/section"),k=require("@stackshift-ui/text"),L=f(require("react")),d=require("react/jsx-runtime")});var ut={};h(ut,{Features_B:()=>wt,default:()=>wt});function wt({caption:t,title:n,description:i,features:l,tags:e}){return(0,d.jsx)(rt.Section,{className:"py-20 bg-background",children:(0,d.jsx)(_.Container,{maxWidth:1280,children:(0,d.jsxs)(lt.Flex,{wrap:!0,align:"center",children:[(0,d.jsx)("div",{className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:(0,d.jsxs)(_.Container,{maxWidth:448,children:[(0,d.jsx)(yn,{caption:t,title:n,description:i}),(0,d.jsx)(Cn,{tags:e})]})}),(0,d.jsx)(kn,{features:l})]})})})}function yn({caption:t,title:n,description:i}){return(0,d.jsxs)(xt.default.Fragment,{children:[t&&(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}),n&&(0,d.jsx)(et.Heading,{fontSize:"3xl",children:n}),i&&(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose",children:i})]})}function Cn({tags:t}){return t?(0,d.jsx)("ul",{children:t&&t.map(n=>(0,d.jsxs)("li",{className:"flex mb-4",children:[(0,d.jsx)("svg",{className:"w-6 h-6 mr-2 text-secondary",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,d.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,d.jsx)(k.Text,{muted:!0,weight:"bold",children:n})]},n))}):null}function kn({features:t}){return t?(0,d.jsx)(lt.Flex,{wrap:!0,className:"w-full lg:w-1/2",children:t&&(t==null?void 0:t.map((n,i)=>{var l,e,a,w;return(0,d.jsx)("div",{className:`w-full px-4 mb-8 md:w-1/2 ${i%2===0?"lg:mb-0":"lg:mt-12"}`,children:(0,d.jsxs)(ct.Card,{className:"py-6 pl-6 pr-4 mb-8 bg-white",borderRadius:"md",children:[(0,d.jsx)("span",{className:"inline-block d-3 mb-4 rounded-lg bg-secondary/50",children:((l=n==null?void 0:n.mainImage)==null?void 0:l.image)&&(0,d.jsx)(ot.Image,{className:"object-scale-down",src:`${(e=n==null?void 0:n.mainImage)==null?void 0:e.image}`,width:40,height:40,alt:(w=(a=n==null?void 0:n.mainImage)==null?void 0:a.alt)!=null?w:`features-image-${i}`})}),(0,d.jsx)(k.Text,{weight:"bold",fontSize:"2xl",className:"mb-2 text-gray-500",children:n==null?void 0:n.title}),(0,d.jsx)(k.Text,{muted:!0,className:"leading-loose",children:n==null?void 0:n.plainText})]})},i)}))}):null}var ct,_,lt,et,ot,rt,k,xt,d,bt=F(()=>{"use strict";ct=require("@stackshift-ui/card"),_=require("@stackshift-ui/container"),xt=f(require("react"))});var Ct={};h(Ct,{Features_C:()=>yt,default:()=>yt});function yt({caption:t,title:n,description:i,features:l}){return(0,d.jsx)(rt.Section,{className:"py-20 bg-background",children:(0,d.jsxs)(_.Container,{maxWidth:1280,children:[(0,d.jsx)(_.Container,{maxWidth:448,className:"mb-16 text-center ",children:(0,d.jsx)(An,{caption:t,title:n,description:i})}),(0,d.jsx)(Sn,{features:l})]})})}function An({caption:t,title:n,description:i}){return(0,d.jsxs)(Tt.default.Fragment,{children:[t?(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}):null,n?(0,d.jsx)(et.Heading,{fontSize:"3xl",children:n}):null,i?(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose",children:i}):null]})}function Sn({features:t}){return t?(0,d.jsx)(lt.Flex,{wrap:!0,justify:"start",className:"-mx-3",children:t.map(n=>(0,d.jsx)(Rn,{feature:n},n._key))}):null}function Rn({feature:t}){var n,i,l,e;return(0,d.jsx)("div",{className:"w-full px-3 mb-6 lg:w-1/2",children:(0,d.jsxs)(vt.Card,{className:"flex flex-wrap h-full d-6 bg-white",borderRadius:"md",children:[(0,d.jsx)("div",{className:"self-start inline-block d-3 mb-4 mr-6 rounded-lg bg-secondary/50 md:d-5 lg:mb-0",children:((n=t==null?void 0:t.mainImage)==null?void 0:n.image)&&(0,d.jsx)(ot.Image,{className:"object-scale-down",src:`${(i=t==null?void 0:t.mainImage)==null?void 0:i.image}`,width:40,height:40,alt:(e=(l=t==null?void 0:t.mainImage)==null?void 0:l.alt)!=null?e:"features-main-image"})}),(0,d.jsxs)("div",{className:"w-full lg:w-2/3",children:[(0,d.jsx)(k.Text,{fontSize:"2xl",weight:"bold",className:"mb-2 text-gray-500",children:t==null?void 0:t.title}),(0,d.jsx)(k.Text,{muted:!0,children:t==null?void 0:t.plainText})]})]})})}var vt,_,lt,et,ot,rt,k,Tt,d,kt=F(()=>{"use strict";vt=require("@stackshift-ui/card"),Tt=f(require("react"))});var _t={};h(_t,{Features_D:()=>Lt,default:()=>Lt});function Lt({caption:t,title:n,description:i,features:l}){return(0,d.jsx)(rt.Section,{className:"py-20 bg-background",children:(0,d.jsxs)(_.Container,{maxWidth:1280,children:[(0,d.jsx)(_.Container,{maxWidth:448,className:"mb-8 text-center",children:(0,d.jsx)(In,{caption:t,title:n,description:i})}),(0,d.jsx)(zn,{features:l})]})})}function In({caption:t,title:n,description:i}){return(0,d.jsxs)(Pt.default.Fragment,{children:[t?(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}):null,n?(0,d.jsx)(et.Heading,{fontSize:"3xl",children:n}):null,i?(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose",children:i}):null]})}function zn({features:t}){return t?(0,d.jsx)(lt.Flex,{wrap:!0,justify:"center",children:t.map(n=>(0,d.jsx)(Pn,{feature:n},n._key))}):null}function Pn({feature:t}){var n,i,l,e;return(0,d.jsx)("div",{className:"w-full px-4 mt-8 lg:mb-0 lg:w-1/3",children:(0,d.jsxs)(At.Card,{className:"h-full px-6 py-12 text-center bg-white",borderRadius:"md",children:[(0,d.jsx)("div",{className:"self-start inline-block d-3 mb-6 rounded-lg bg-secondary/50 md:d-5",children:((n=t==null?void 0:t.mainImage)==null?void 0:n.image)&&(0,d.jsx)(ot.Image,{className:"object-scale-down",src:`${(i=t==null?void 0:t.mainImage)==null?void 0:i.image}`,width:40,height:40,alt:(e=(l=t==null?void 0:t.mainImage)==null?void 0:l.alt)!=null?e:"features-image-"})}),(0,d.jsx)(k.Text,{fontSize:"xl",weight:"bold",className:"px-8 mb-4 text-gray-500",children:t==null?void 0:t.title}),(0,d.jsx)(k.Text,{muted:!0,children:t==null?void 0:t.plainText})]})})}var At,_,lt,et,ot,rt,k,Pt,d,Ht=F(()=>{"use strict";At=require("@stackshift-ui/card"),Pt=f(require("react"))});var Bt={};h(Bt,{Features_E:()=>Gt,default:()=>Gt});function Gt({featuredItems:t}){let[n,i]=V.default.useState(0);return(0,d.jsx)(rt.Section,{className:"py-20 overflow-d-auto bg-background",children:(0,d.jsx)(_.Container,{maxWidth:1280,children:(0,d.jsx)($t.Flex,{className:"relative",children:(0,d.jsx)(Hn,{featuredItems:t,slider:e=>{t&&(e==="next"?n!==t.length-1?i(a=>a+1):i(0):n>=1?i(a=>a-1):i(t.length-1))},children:(0,d.jsxs)("div",{className:"order-1 w-full ml-auto xl:w-4/5",children:[(0,d.jsx)(Ln,{featuredItems:t,item:n}),(0,d.jsx)(_n,{featuredItems:t,item:n})]})})})})})}function Ln({featuredItems:t,item:n}){var i,l,e,a,w,g,u;return(l=(i=t==null?void 0:t[n])==null?void 0:i.mainImage)!=null&&l.image?(0,d.jsx)("div",{className:"mx-auto overflow-hidden rounded-md md:max-w-xl xl:max-w-4xl",children:(0,d.jsx)(ot.Image,{className:"relative object-cover rounded-md",src:`${(a=(e=t==null?void 0:t[n])==null?void 0:e.mainImage)==null?void 0:a.image}`,sizes:"100vw",width:896,height:575,alt:(u=(g=(w=t==null?void 0:t[n])==null?void 0:w.mainImage)==null?void 0:g.alt)!=null?u:`features-image-${n}`})}):null}function _n({featuredItems:t,item:n}){var i,l,e,a,w,g;return t?(0,d.jsxs)(Wt.Card,{className:"top-0 left-0 max-w-xl d-6 mx-auto text-center bg-white md:mt-12 md:d-10 lg:mt-12 lg:d-10 xl:absolute xl:mx-0 xl:mt-20 xl:py-24",borderRadius:"md",children:[(0,d.jsx)(k.Text,{weight:"bold",className:"text-xs lg:text-md md:text-sm xl:text-lg text-secondary",children:((i=t==null?void 0:t[n])==null?void 0:i.subtitle)&&((l=t==null?void 0:t[n])==null?void 0:l.subtitle)}),(0,d.jsx)(et.Heading,{fontSize:"3xl",children:((e=t==null?void 0:t[n])==null?void 0:e.title)&&((a=t==null?void 0:t[n])==null?void 0:a.title)}),(0,d.jsx)(k.Text,{muted:!0,className:"text-xs leading-loose text-center md:mt-5 md:text-sm lg:mt-5 lg:text-sm",children:((w=t==null?void 0:t[n])==null?void 0:w.description)&&((g=t==null?void 0:t[n])==null?void 0:g.description)})]}):null}function Hn({featuredItems:t,children:n,slider:i}){return t?(0,d.jsxs)(V.default.Fragment,{children:[(0,d.jsx)("div",{className:"absolute left-0 k-40 items-center mt-20 -mx-3 order-0 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(t==null?void 0:t.length)>=2&&(0,d.jsx)($.Button,{as:"button",ariaLabel:"Show Previous Feature",className:"k-10 d-4 text-white ",onClick:()=>i("prev"),children:(0,d.jsx)("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M10 19l-7-7m0 0l7-7m-7 7h18"})})})}),n,(0,d.jsx)("div",{className:"absolute right-0 k-40 items-center order-2 mt-20 -mx-3 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(t==null?void 0:t.length)>=2&&(0,d.jsx)($.Button,{as:"button",ariaLabel:"Show Next Feature",className:"d-4 text-white ",onClick:()=>i("next"),children:(0,d.jsx)("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M14 5l7 7m0 0l-7 7m7-7H3"})})})})]}):null}var $,Wt,_,$t,et,ot,rt,k,V,d,Dt=F(()=>{"use strict";$=require("@stackshift-ui/button"),Wt=require("@stackshift-ui/card"),V=f(require("react"))});var Ut={};h(Ut,{Features_F:()=>Qt,default:()=>Qt});function Qt({caption:t,title:n,description:i,images:l,primaryButton:e}){return(0,d.jsx)(rt.Section,{className:"py-20 bg-background",children:(0,d.jsx)(_.Container,{maxWidth:1280,children:(0,d.jsxs)(lt.Flex,{wrap:!0,align:"center",children:[(0,d.jsxs)(lt.Flex,{direction:"col",className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:[(0,d.jsx)(Wn,{caption:t,title:n,description:i}),(0,d.jsx)(On,{primaryButton:e})]}),(0,d.jsx)($n,{images:l})]})})})}function Wn({caption:t,title:n,description:i}){return(0,d.jsxs)(_.Container,{maxWidth:448,className:"ml-0",children:[t&&(0,d.jsx)(k.Text,{weight:"bold",className:"font-bold text-secondary",children:t}),n&&(0,d.jsx)(et.Heading,{fontSize:"3xl",className:"mb-6",children:n}),i&&(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose",children:i})]})}function On({primaryButton:t}){return t!=null&&t.label?(0,d.jsx)(Et.Button,{as:"link",link:t,ariaLabel:t==null?void 0:t.label,children:t==null?void 0:t.label}):null}function $n({images:t}){var i,l,e,a;if(!t||(t==null?void 0:t.length)===0)return null;function n(w,g,u,b,v){return(0,d.jsx)("div",{className:`overflow-hidden ${v}`,children:(0,d.jsx)(ot.Image,{className:"object-cover w-full h-auto rounded-md",src:w,sizes:"100vw",width:u,height:b,alt:g!=null?g:"feature-image"})})}return(0,d.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,d.jsxs)("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[(0,d.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((i=t[0])==null?void 0:i.image)&&n(t[0].image,t[0].alt,356,192,"h-[269px]")}),(0,d.jsx)("div",{className:"h-full px-3 lg:w-1/3",children:((l=t[1])==null?void 0:l.image)&&n(t[1].image,t[1].alt,166,128,"")})]}),(0,d.jsxs)("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[(0,d.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((e=t[2])==null?void 0:e.image)&&n(t[2].image,t[2].alt,166,128,"h-[269px] lg:h-[126px]")}),(0,d.jsx)("div",{className:"h-full px-3 lg:w-2/3",children:((a=t[3])==null?void 0:a.image)&&n(t[3].image,t[3].alt,356,192,"")})]})]})}var Et,_,lt,et,ot,rt,k,d,Xt=F(()=>{"use strict";Et=require("@stackshift-ui/button")});var en={};h(en,{Features_G:()=>ln,default:()=>ln});function ln({caption:t,title:n,description:i,images:l,tags:e}){return(0,d.jsx)(rt.Section,{className:"py-20 bg-background",children:(0,d.jsx)(D.Container,{maxWidth:1280,children:(0,d.jsxs)(lt.Flex,{wrap:!0,align:"center",children:[(0,d.jsx)("div",{className:"w-full px-4 mb-12 lg:mb-0 lg:w-1/2",children:(0,d.jsxs)(D.Container,{maxWidth:448,children:[(0,d.jsx)(jn,{caption:t,title:n,description:i}),(0,d.jsx)(Vn,{tags:e})]})}),(0,d.jsx)(Gn,{images:l})]})})})}function jn({caption:t,title:n,description:i}){return(0,d.jsxs)(nn.default.Fragment,{children:[t&&(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}),n&&(0,d.jsx)(et.Heading,{fontSize:"3xl",className:"mb-3",children:n}),i&&(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose ",children:i})]})}function Vn({tags:t}){return t?(0,d.jsx)("ul",{className:"font-bold text-gray-500",children:t.map(n=>(0,d.jsx)(Mn,{item:n}))}):null}function Mn({item:t}){return t?(0,d.jsxs)(lt.Flex,{as:"li",align:"center",className:"mb-2 ",children:[(0,d.jsx)("svg",{className:"w-5 h-5 mr-2 text-primary-foreground",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,d.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,d.jsx)("span",{children:t})]}):null}function Gn({images:t}){var i,l,e,a;if(!t||(t==null?void 0:t.length)===0)return null;function n(w,g,u,b,v){return(0,d.jsx)("div",{className:`overflow-hidden ${v}`,children:(0,d.jsx)(ot.Image,{className:"object-cover w-full h-auto rounded-md",src:w,sizes:"100vw",width:u,height:b,alt:g!=null?g:"feature-image"})})}return(0,d.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,d.jsxs)("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[(0,d.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((i=t[0])==null?void 0:i.image)&&n(t[0].image,t[0].alt,356,192,"h-[269px]")}),(0,d.jsx)("div",{className:"h-full px-3 lg:w-1/3",children:((l=t[1])==null?void 0:l.image)&&n(t[1].image,t[1].alt,166,128,"")})]}),(0,d.jsxs)("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[(0,d.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((e=t[2])==null?void 0:e.image)&&n(t[2].image,t[2].alt,166,128,"h-[269px] lg:h-[126px]")}),(0,d.jsx)("div",{className:"h-full px-3 lg:w-2/3",children:((a=t[3])==null?void 0:a.image)&&n(t[3].image,t[3].alt,356,192,"")})]})]})}var D,lt,et,ot,rt,k,nn,d,on=F(()=>{"use strict";D=require("@stackshift-ui/container"),nn=f(require("react"))});var cn={};h(cn,{Features_H:()=>sn,default:()=>sn});function sn({caption:t,title:n,features:i,images:l}){return(0,d.jsx)(rt.Section,{className:"py-20 bg-background",children:(0,d.jsx)(J.Container,{maxWidth:1280,children:(0,d.jsxs)(lt.Flex,{wrap:!0,align:"center",children:[(0,d.jsx)("div",{className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:(0,d.jsxs)(J.Container,{maxWidth:448,children:[(0,d.jsx)(Bn,{caption:t,title:n}),(0,d.jsx)(Dn,{features:i})]})}),(0,d.jsx)(Jn,{images:l})]})})})}function Bn({caption:t,title:n}){return(0,d.jsxs)(an.default.Fragment,{children:[t&&(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}),n&&(0,d.jsx)(et.Heading,{fontSize:"3xl",className:"mb-6",children:n})]})}function Dn({features:t}){return!t||(t==null?void 0:t.length)<=0?null:(0,d.jsx)("ul",{children:t.map(n=>(0,d.jsx)(En,{feature:n},n._key))})}function En({feature:t}){return t?(0,d.jsxs)(lt.Flex,{as:"li",children:[(0,d.jsx)(qn,{}),(0,d.jsxs)("div",{className:"max-w-xs",children:[(0,d.jsx)(k.Text,{weight:"bold",className:"text-gray-500",children:t==null?void 0:t.title}),(0,d.jsx)(k.Text,{muted:!0,className:"leading-loose",children:t==null?void 0:t.plainText})]})]}):null}function qn(){return(0,d.jsx)("svg",{className:"w-8 h-8 mr-3 text-primary",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"})})}function Jn({images:t}){var n,i,l,e,a,w,g,u,b,v,y,C;return!t||(t==null?void 0:t.length)===0?null:(0,d.jsxs)("div",{className:"items-center w-full px-4 sm:flex md:px-0 lg:w-1/2",children:[(0,d.jsxs)("div",{className:"mb-5 sm:mb-0 sm:w-1/2",children:[((n=t==null?void 0:t[0])==null?void 0:n.image)&&(0,d.jsx)(ot.Image,{className:"object-cover overflow-hidden rounded-md",src:`${(i=t==null?void 0:t[0])==null?void 0:i.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(e=(l=t==null?void 0:t[0])==null?void 0:l.alt)!=null?e:"features-image-1"}),((a=t==null?void 0:t[1])==null?void 0:a.image)&&(0,d.jsx)(ot.Image,{className:"object-cover mt-6 overflow-hidden rounded-md",src:`${(w=t==null?void 0:t[1])==null?void 0:w.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(u=(g=t==null?void 0:t[1])==null?void 0:g.alt)!=null?u:"features-image-2"})]}),((b=t==null?void 0:t[2])==null?void 0:b.image)&&(0,d.jsx)(ot.Image,{className:"object-cover overflow-hidden rounded-md sm:ml-6 sm:w-1/2",src:`${(v=t==null?void 0:t[2])==null?void 0:v.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(C=(y=t==null?void 0:t[2])==null?void 0:y.alt)!=null?C:"features-image-3"})]})}var J,lt,et,ot,rt,k,an,d,dn=F(()=>{"use strict";J=require("@stackshift-ui/container"),an=f(require("react"))});var Un={};h(Un,{Features:()=>pn});module.exports=hn(Un);var N=require("react"),Kn={variant_a:(0,N.lazy)(()=>Promise.resolve().then(()=>(st(),at))),variant_b:(0,N.lazy)(()=>Promise.resolve().then(()=>(bt(),ut))),variant_c:(0,N.lazy)(()=>Promise.resolve().then(()=>(kt(),Ct))),variant_d:(0,N.lazy)(()=>Promise.resolve().then(()=>(Ht(),_t))),variant_e:(0,N.lazy)(()=>Promise.resolve().then(()=>(Dt(),Bt))),variant_f:(0,N.lazy)(()=>Promise.resolve().then(()=>(Xt(),Ut))),variant_g:(0,N.lazy)(()=>Promise.resolve().then(()=>(on(),en))),variant_h:(0,N.lazy)(()=>Promise.resolve().then(()=>(dn(),cn)))},Qn="Features",pn=({data:t})=>{var e,a,w,g,u,b,v,y,C,Q,U,X,Y,Z,tt,nt;let n=t==null?void 0:t.variant,i=n&&Kn[n],l={caption:(a=(e=t==null?void 0:t.variants)==null?void 0:e.subtitle)!=null?a:void 0,title:(g=(w=t==null?void 0:t.variants)==null?void 0:w.title)!=null?g:void 0,description:(b=(u=t==null?void 0:t.variants)==null?void 0:u.description)!=null?b:void 0,features:(y=(v=t==null?void 0:t.variants)==null?void 0:v.arrayOfImageTitleAndText)!=null?y:void 0,tags:(Q=(C=t==null?void 0:t.variants)==null?void 0:C.tags)!=null?Q:void 0,featuredItems:(X=(U=t==null?void 0:t.variants)==null?void 0:U.featuredItems)!=null?X:void 0,images:(Z=(Y=t==null?void 0:t.variants)==null?void 0:Y.images)!=null?Z:void 0,primaryButton:(nt=(tt=t==null?void 0:t.variants)==null?void 0:tt.primaryButton)!=null?nt:void 0};return i?(0,d.jsx)(i,{...l}):null};pn.displayName=Qn;0&&(module.exports={Features});
package/dist/features.mjs DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-DODP4JDQ.mjs";export{a as Features};
@@ -1,3 +0,0 @@
1
- import { FeaturesProps } from ".";
2
- export default function Features_A({ caption, title, description, features }: FeaturesProps): import("react/jsx-runtime").JSX.Element;
3
- export { Features_A };
@@ -1 +0,0 @@
1
- "use strict";var F=Object.create;var e=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var y=Object.getPrototypeOf,N=Object.prototype.hasOwnProperty;var w=(n,m)=>{for(var t in m)e(n,t,{get:m[t],enumerable:!0})},g=(n,m,t,o)=>{if(m&&typeof m=="object"||typeof m=="function")for(let l of T(m))!N.call(n,l)&&l!==t&&e(n,l,{get:()=>m[l],enumerable:!(o=b(m,l))||o.enumerable});return n};var h=(n,m,t)=>(t=n!=null?F(y(n)):{},g(m||!n||!n.__esModule?e(t,"default",{value:n,enumerable:!0}):t,n)),A=n=>g(e({},"__esModule",{value:!0}),n);var R={};w(R,{Features_A:()=>I,default:()=>I});module.exports=A(R);var s=require("@stackshift-ui/container"),p=require("@stackshift-ui/flex"),c=require("@stackshift-ui/heading"),d=require("@stackshift-ui/image"),x=require("@stackshift-ui/section"),a=require("@stackshift-ui/text"),r=h(require("react")),i=require("react/jsx-runtime");function I({caption:n,title:m,description:t,features:o}){return(0,i.jsx)(x.Section,{className:"py-20 bg-background",children:(0,i.jsxs)(s.Container,{maxWidth:1280,children:[(0,i.jsx)(s.Container,{maxWidth:448,className:"mb-16 text-center ",children:(0,i.jsx)(P,{caption:n,title:m,description:t})}),(0,i.jsx)(p.Flex,{wrap:!0,children:(0,i.jsx)(k,{features:o})})]})})}function P({caption:n,title:m,description:t}){return(0,i.jsxs)(r.default.Fragment,{children:[n?(0,i.jsx)(a.Text,{weight:"bold",className:"text-secondary",children:n}):null,m?(0,i.jsx)(c.Heading,{fontSize:"3xl",children:m}):null,t?(0,i.jsx)(a.Text,{muted:!0,className:"mb-6 leading-loose",children:t}):null]})}function k({features:n}){return n?(0,i.jsx)(r.default.Fragment,{children:n==null?void 0:n.map(m=>(0,i.jsx)(C,{feature:m},m._key))}):null}function C({feature:n}){var m;return(0,i.jsxs)("div",{className:"w-full px-4 mt-16 mb-12 md:w-1/2 lg:mb-0 lg:w-1/4",children:[(m=n==null?void 0:n.mainImage)!=null&&m.image?(0,i.jsx)(S,{feature:n}):null,n!=null&&n.title?(0,i.jsx)(a.Text,{weight:"bold",className:"mb-4 text-gray-500",fontSize:"xl",children:n==null?void 0:n.title}):null,n!=null&&n.plainText?(0,i.jsx)(a.Text,{muted:!0,className:"leading-loose",children:n==null?void 0:n.plainText}):null]})}function S({feature:n}){var m,t,o,l;return(m=n==null?void 0:n.mainImage)!=null&&m.image?(0,i.jsx)("span",{className:"inline-block p-3 mb-4 rounded bg-secondary/50 text-primary-foreground md:mb-6",children:(0,i.jsx)(d.Image,{className:"object-scale-down",src:`${(t=n==null?void 0:n.mainImage)==null?void 0:t.image}`,width:40,height:40,alt:(l=(o=n==null?void 0:n.mainImage)==null?void 0:o.alt)!=null?l:"features-image-"})}):null}0&&(module.exports={Features_A});
@@ -1 +0,0 @@
1
- import{a}from"./chunk-IS5MPNWR.mjs";export{a as Features_A,a as default};
@@ -1,3 +0,0 @@
1
- import { FeaturesProps } from ".";
2
- export default function Features_B({ caption, title, description, features, tags }: FeaturesProps): import("react/jsx-runtime").JSX.Element;
3
- export { Features_B };
@@ -1 +0,0 @@
1
- "use strict";var T=Object.create;var s=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var F=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty;var C=(m,l)=>{for(var o in l)s(m,o,{get:l[o],enumerable:!0})},c=(m,l,o,t)=>{if(l&&typeof l=="object"||typeof l=="function")for(let n of y(l))!I.call(m,n)&&n!==o&&s(m,n,{get:()=>l[n],enumerable:!(t=v(l,n))||t.enumerable});return m};var R=(m,l,o)=>(o=m!=null?T(F(m)):{},c(l||!m||!m.__esModule?s(o,"default",{value:m,enumerable:!0}):o,m)),k=m=>c(s({},"__esModule",{value:!0}),m);var S={};C(S,{Features_B:()=>h,default:()=>h});module.exports=k(S);var p=require("@stackshift-ui/card"),e=require("@stackshift-ui/container"),r=require("@stackshift-ui/flex"),x=require("@stackshift-ui/heading"),w=require("@stackshift-ui/image"),b=require("@stackshift-ui/section"),a=require("@stackshift-ui/text"),N=R(require("react")),i=require("react/jsx-runtime");function h({caption:m,title:l,description:o,features:t,tags:n}){return(0,i.jsx)(b.Section,{className:"py-20 bg-background",children:(0,i.jsx)(e.Container,{maxWidth:1280,children:(0,i.jsxs)(r.Flex,{wrap:!0,align:"center",children:[(0,i.jsx)("div",{className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:(0,i.jsxs)(e.Container,{maxWidth:448,children:[(0,i.jsx)(u,{caption:m,title:l,description:o}),(0,i.jsx)(z,{tags:n})]})}),(0,i.jsx)(A,{features:t})]})})})}function u({caption:m,title:l,description:o}){return(0,i.jsxs)(N.default.Fragment,{children:[m&&(0,i.jsx)(a.Text,{weight:"bold",className:"text-secondary",children:m}),l&&(0,i.jsx)(x.Heading,{fontSize:"3xl",children:l}),o&&(0,i.jsx)(a.Text,{muted:!0,className:"mb-6 leading-loose",children:o})]})}function z({tags:m}){return m?(0,i.jsx)("ul",{children:m&&m.map(l=>(0,i.jsxs)("li",{className:"flex mb-4",children:[(0,i.jsx)("svg",{className:"w-6 h-6 mr-2 text-secondary",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,i.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,i.jsx)(a.Text,{muted:!0,weight:"bold",children:l})]},l))}):null}function A({features:m}){return m?(0,i.jsx)(r.Flex,{wrap:!0,className:"w-full lg:w-1/2",children:m&&(m==null?void 0:m.map((l,o)=>{var t,n,g,d;return(0,i.jsx)("div",{className:`w-full px-4 mb-8 md:w-1/2 ${o%2===0?"lg:mb-0":"lg:mt-12"}`,children:(0,i.jsxs)(p.Card,{className:"py-6 pl-6 pr-4 mb-8 bg-white",borderRadius:"md",children:[(0,i.jsx)("span",{className:"inline-block p-3 mb-4 rounded-lg bg-secondary/50",children:((t=l==null?void 0:l.mainImage)==null?void 0:t.image)&&(0,i.jsx)(w.Image,{className:"object-scale-down",src:`${(n=l==null?void 0:l.mainImage)==null?void 0:n.image}`,width:40,height:40,alt:(d=(g=l==null?void 0:l.mainImage)==null?void 0:g.alt)!=null?d:`features-image-${o}`})}),(0,i.jsx)(a.Text,{weight:"bold",fontSize:"2xl",className:"mb-2 text-gray-500",children:l==null?void 0:l.title}),(0,i.jsx)(a.Text,{muted:!0,className:"leading-loose",children:l==null?void 0:l.plainText})]})},o)}))}):null}0&&(module.exports={Features_B});
@@ -1 +0,0 @@
1
- import{a}from"./chunk-76IS6VW4.mjs";export{a as Features_B,a as default};
@@ -1,3 +0,0 @@
1
- import { FeaturesProps } from ".";
2
- export default function Features_C({ caption, title, description, features }: FeaturesProps): import("react/jsx-runtime").JSX.Element;
3
- export { Features_C };
@@ -1 +0,0 @@
1
- "use strict";var w=Object.create;var o=Object.defineProperty;var N=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var h=Object.getPrototypeOf,F=Object.prototype.hasOwnProperty;var I=(t,i)=>{for(var n in i)o(t,n,{get:i[n],enumerable:!0})},s=(t,i,n,a)=>{if(i&&typeof i=="object"||typeof i=="function")for(let e of y(i))!F.call(t,e)&&e!==n&&o(t,e,{get:()=>i[e],enumerable:!(a=N(i,e))||a.enumerable});return t};var f=(t,i,n)=>(n=t!=null?w(h(t)):{},s(i||!t||!t.__esModule?o(n,"default",{value:t,enumerable:!0}):n,t)),u=t=>s(o({},"__esModule",{value:!0}),t);var S={};I(S,{Features_C:()=>T,default:()=>T});module.exports=u(S);var d=require("@stackshift-ui/card"),r=require("@stackshift-ui/container"),g=require("@stackshift-ui/flex"),c=require("@stackshift-ui/heading"),p=require("@stackshift-ui/image"),x=require("@stackshift-ui/section"),l=require("@stackshift-ui/text"),b=f(require("react")),m=require("react/jsx-runtime");function T({caption:t,title:i,description:n,features:a}){return(0,m.jsx)(x.Section,{className:"py-20 bg-background",children:(0,m.jsxs)(r.Container,{maxWidth:1280,children:[(0,m.jsx)(r.Container,{maxWidth:448,className:"mb-16 text-center ",children:(0,m.jsx)(A,{caption:t,title:i,description:n})}),(0,m.jsx)(C,{features:a})]})})}function A({caption:t,title:i,description:n}){return(0,m.jsxs)(b.default.Fragment,{children:[t?(0,m.jsx)(l.Text,{weight:"bold",className:"text-secondary",children:t}):null,i?(0,m.jsx)(c.Heading,{fontSize:"3xl",children:i}):null,n?(0,m.jsx)(l.Text,{muted:!0,className:"mb-6 leading-loose",children:n}):null]})}function C({features:t}){return t?(0,m.jsx)(g.Flex,{wrap:!0,justify:"start",className:"-mx-3",children:t.map(i=>(0,m.jsx)(v,{feature:i},i._key))}):null}function v({feature:t}){var i,n,a,e;return(0,m.jsx)("div",{className:"w-full px-3 mb-6 lg:w-1/2",children:(0,m.jsxs)(d.Card,{className:"flex flex-wrap h-full p-6 bg-white",borderRadius:"md",children:[(0,m.jsx)("div",{className:"self-start inline-block p-3 mb-4 mr-6 rounded-lg bg-secondary/50 md:p-5 lg:mb-0",children:((i=t==null?void 0:t.mainImage)==null?void 0:i.image)&&(0,m.jsx)(p.Image,{className:"object-scale-down",src:`${(n=t==null?void 0:t.mainImage)==null?void 0:n.image}`,width:40,height:40,alt:(e=(a=t==null?void 0:t.mainImage)==null?void 0:a.alt)!=null?e:"features-main-image"})}),(0,m.jsxs)("div",{className:"w-full lg:w-2/3",children:[(0,m.jsx)(l.Text,{fontSize:"2xl",weight:"bold",className:"mb-2 text-gray-500",children:t==null?void 0:t.title}),(0,m.jsx)(l.Text,{muted:!0,children:t==null?void 0:t.plainText})]})]})})}0&&(module.exports={Features_C});
@@ -1 +0,0 @@
1
- import{a}from"./chunk-W3RGT6IT.mjs";export{a as Features_C,a as default};
@@ -1,3 +0,0 @@
1
- import { FeaturesProps } from ".";
2
- export default function Features_D({ caption, title, description, features }: FeaturesProps): import("react/jsx-runtime").JSX.Element;
3
- export { Features_D };
@@ -1 +0,0 @@
1
- "use strict";var y=Object.create;var l=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var F=Object.getOwnPropertyNames;var I=Object.getPrototypeOf,N=Object.prototype.hasOwnProperty;var w=(t,i)=>{for(var n in i)l(t,n,{get:i[n],enumerable:!0})},s=(t,i,n,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let e of F(i))!N.call(t,e)&&e!==n&&l(t,e,{get:()=>i[e],enumerable:!(o=h(i,e))||o.enumerable});return t};var A=(t,i,n)=>(n=t!=null?y(I(t)):{},s(i||!t||!t.__esModule?l(n,"default",{value:t,enumerable:!0}):n,t)),C=t=>s(l({},"__esModule",{value:!0}),t);var k={};w(k,{Features_D:()=>T,default:()=>T});module.exports=C(k);var d=require("@stackshift-ui/card"),r=require("@stackshift-ui/container"),c=require("@stackshift-ui/flex"),g=require("@stackshift-ui/heading"),p=require("@stackshift-ui/image"),x=require("@stackshift-ui/section"),a=require("@stackshift-ui/text"),b=A(require("react")),m=require("react/jsx-runtime");function T({caption:t,title:i,description:n,features:o}){return(0,m.jsx)(x.Section,{className:"py-20 bg-background",children:(0,m.jsxs)(r.Container,{maxWidth:1280,children:[(0,m.jsx)(r.Container,{maxWidth:448,className:"mb-8 text-center",children:(0,m.jsx)(u,{caption:t,title:i,description:n})}),(0,m.jsx)(S,{features:o})]})})}function u({caption:t,title:i,description:n}){return(0,m.jsxs)(b.default.Fragment,{children:[t?(0,m.jsx)(a.Text,{weight:"bold",className:"text-secondary",children:t}):null,i?(0,m.jsx)(g.Heading,{fontSize:"3xl",children:i}):null,n?(0,m.jsx)(a.Text,{muted:!0,className:"mb-6 leading-loose",children:n}):null]})}function S({features:t}){return t?(0,m.jsx)(c.Flex,{wrap:!0,justify:"center",children:t.map(i=>(0,m.jsx)(f,{feature:i},i._key))}):null}function f({feature:t}){var i,n,o,e;return(0,m.jsx)("div",{className:"w-full px-4 mt-8 lg:mb-0 lg:w-1/3",children:(0,m.jsxs)(d.Card,{className:"h-full px-6 py-12 text-center bg-white",borderRadius:"md",children:[(0,m.jsx)("div",{className:"self-start inline-block p-3 mb-6 rounded-lg bg-secondary/50 md:p-5",children:((i=t==null?void 0:t.mainImage)==null?void 0:i.image)&&(0,m.jsx)(p.Image,{className:"object-scale-down",src:`${(n=t==null?void 0:t.mainImage)==null?void 0:n.image}`,width:40,height:40,alt:(e=(o=t==null?void 0:t.mainImage)==null?void 0:o.alt)!=null?e:"features-image-"})}),(0,m.jsx)(a.Text,{fontSize:"xl",weight:"bold",className:"px-8 mb-4 text-gray-500",children:t==null?void 0:t.title}),(0,m.jsx)(a.Text,{muted:!0,children:t==null?void 0:t.plainText})]})})}0&&(module.exports={Features_D});
@@ -1 +0,0 @@
1
- import{a}from"./chunk-YVG2YZHF.mjs";export{a as Features_D,a as default};
@@ -1,3 +0,0 @@
1
- import { FeaturesProps } from ".";
2
- export default function Features_E({ featuredItems }: FeaturesProps): import("react/jsx-runtime").JSX.Element;
3
- export { Features_E };
@@ -1 +0,0 @@
1
- "use strict";var C=Object.create;var c=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var L=Object.getOwnPropertyNames;var z=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty;var R=(o,l)=>{for(var n in l)c(o,n,{get:l[n],enumerable:!0})},w=(o,l,n,r)=>{if(l&&typeof l=="object"||typeof l=="function")for(let t of L(l))!B.call(o,t)&&t!==n&&c(o,t,{get:()=>l[t],enumerable:!(r=S(l,t))||r.enumerable});return o};var u=(o,l,n)=>(n=o!=null?C(z(o)):{},w(l||!o||!o.__esModule?c(n,"default",{value:o,enumerable:!0}):n,o)),y=o=>w(c({},"__esModule",{value:!0}),o);var W={};R(W,{Features_E:()=>k,default:()=>k});module.exports=y(W);var g=require("@stackshift-ui/button"),v=require("@stackshift-ui/card"),b=require("@stackshift-ui/container"),e=require("@stackshift-ui/flex"),N=require("@stackshift-ui/heading"),F=require("@stackshift-ui/image"),d=require("@stackshift-ui/section"),p=require("@stackshift-ui/text"),s=u(require("react")),i=require("react/jsx-runtime");function k({featuredItems:o}){let[l,n]=s.default.useState(0);return(0,i.jsx)(d.Section,{className:"py-20 overflow-x-auto bg-background",children:(0,i.jsx)(b.Container,{maxWidth:1280,children:(0,i.jsx)(e.Flex,{className:"relative",children:(0,i.jsx)(T,{featuredItems:o,slider:t=>{o&&(t==="next"?l!==o.length-1?n(x=>x+1):n(0):l>=1?n(x=>x-1):n(o.length-1))},children:(0,i.jsxs)("div",{className:"order-1 w-full ml-auto xl:w-4/5",children:[(0,i.jsx)(H,{featuredItems:o,item:l}),(0,i.jsx)(P,{featuredItems:o,item:l})]})})})})})}function H({featuredItems:o,item:l}){var n,r,t,x,m,a,h;return(r=(n=o==null?void 0:o[l])==null?void 0:n.mainImage)!=null&&r.image?(0,i.jsx)("div",{className:"mx-auto overflow-hidden rounded-md md:max-w-xl xl:max-w-4xl",children:(0,i.jsx)(F.Image,{className:"relative object-cover rounded-md",src:`${(x=(t=o==null?void 0:o[l])==null?void 0:t.mainImage)==null?void 0:x.image}`,sizes:"100vw",width:896,height:575,alt:(h=(a=(m=o==null?void 0:o[l])==null?void 0:m.mainImage)==null?void 0:a.alt)!=null?h:`features-image-${l}`})}):null}function P({featuredItems:o,item:l}){var n,r,t,x,m,a;return o?(0,i.jsxs)(v.Card,{className:"top-0 left-0 max-w-xl p-6 mx-auto text-center bg-white md:mt-12 md:p-10 lg:mt-12 lg:p-10 xl:absolute xl:mx-0 xl:mt-20 xl:py-24",borderRadius:"md",children:[(0,i.jsx)(p.Text,{weight:"bold",className:"text-xs lg:text-md md:text-sm xl:text-lg text-secondary",children:((n=o==null?void 0:o[l])==null?void 0:n.subtitle)&&((r=o==null?void 0:o[l])==null?void 0:r.subtitle)}),(0,i.jsx)(N.Heading,{fontSize:"3xl",children:((t=o==null?void 0:o[l])==null?void 0:t.title)&&((x=o==null?void 0:o[l])==null?void 0:x.title)}),(0,i.jsx)(p.Text,{muted:!0,className:"text-xs leading-loose text-center md:mt-5 md:text-sm lg:mt-5 lg:text-sm",children:((m=o==null?void 0:o[l])==null?void 0:m.description)&&((a=o==null?void 0:o[l])==null?void 0:a.description)})]}):null}function T({featuredItems:o,children:l,slider:n}){return o?(0,i.jsxs)(s.default.Fragment,{children:[(0,i.jsx)("div",{className:"absolute left-0 z-40 items-center mt-20 -mx-3 order-0 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(o==null?void 0:o.length)>=2&&(0,i.jsx)(g.Button,{as:"button",ariaLabel:"Show Previous Feature",className:"z-10 p-4 text-white ",onClick:()=>n("prev"),children:(0,i.jsx)("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M10 19l-7-7m0 0l7-7m-7 7h18"})})})}),l,(0,i.jsx)("div",{className:"absolute right-0 z-40 items-center order-2 mt-20 -mx-3 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(o==null?void 0:o.length)>=2&&(0,i.jsx)(g.Button,{as:"button",ariaLabel:"Show Next Feature",className:"p-4 text-white ",onClick:()=>n("next"),children:(0,i.jsx)("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M14 5l7 7m0 0l-7 7m7-7H3"})})})})]}):null}0&&(module.exports={Features_E});
@@ -1 +0,0 @@
1
- import{a}from"./chunk-7B6FI3PR.mjs";export{a as Features_E,a as default};
@@ -1,3 +0,0 @@
1
- import { FeaturesProps } from ".";
2
- export default function Features_F({ caption, title, description, images, primaryButton, }: FeaturesProps): import("react/jsx-runtime").JSX.Element;
3
- export { Features_F };
@@ -1 +0,0 @@
1
- "use strict";var r=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var F=Object.getOwnPropertyNames;var C=Object.prototype.hasOwnProperty;var I=(e,a)=>{for(var t in a)r(e,t,{get:a[t],enumerable:!0})},T=(e,a,t,n)=>{if(a&&typeof a=="object"||typeof a=="function")for(let i of F(a))!C.call(e,i)&&i!==t&&r(e,i,{get:()=>a[i],enumerable:!(n=p(a,i))||n.enumerable});return e};var k=e=>T(r({},"__esModule",{value:!0}),e);var H={};I(H,{Features_F:()=>x,default:()=>x});module.exports=k(H);var c=require("@stackshift-ui/button"),m=require("@stackshift-ui/container"),d=require("@stackshift-ui/flex"),g=require("@stackshift-ui/heading"),u=require("@stackshift-ui/image"),b=require("@stackshift-ui/section"),s=require("@stackshift-ui/text"),l=require("react/jsx-runtime");function x({caption:e,title:a,description:t,images:n,primaryButton:i}){return(0,l.jsx)(b.Section,{className:"py-20 bg-background",children:(0,l.jsx)(m.Container,{maxWidth:1280,children:(0,l.jsxs)(d.Flex,{wrap:!0,align:"center",children:[(0,l.jsxs)(d.Flex,{direction:"col",className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:[(0,l.jsx)(L,{caption:e,title:a,description:t}),(0,l.jsx)(S,{primaryButton:i})]}),(0,l.jsx)(z,{images:n})]})})})}function L({caption:e,title:a,description:t}){return(0,l.jsxs)(m.Container,{maxWidth:448,className:"ml-0",children:[e&&(0,l.jsx)(s.Text,{weight:"bold",className:"font-bold text-secondary",children:e}),a&&(0,l.jsx)(g.Heading,{fontSize:"3xl",className:"mb-6",children:a}),t&&(0,l.jsx)(s.Text,{muted:!0,className:"mb-6 leading-loose",children:t})]})}function S({primaryButton:e}){return e!=null&&e.label?(0,l.jsx)(c.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label}):null}function z({images:e}){var t,n,i,f;if(!e||(e==null?void 0:e.length)===0)return null;function a(v,o,h,w,N){return(0,l.jsx)("div",{className:`overflow-hidden ${N}`,children:(0,l.jsx)(u.Image,{className:"object-cover w-full h-auto rounded-md",src:v,sizes:"100vw",width:h,height:w,alt:o!=null?o:"feature-image"})})}return(0,l.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,l.jsxs)("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[(0,l.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((t=e[0])==null?void 0:t.image)&&a(e[0].image,e[0].alt,356,192,"h-[269px]")}),(0,l.jsx)("div",{className:"h-full px-3 lg:w-1/3",children:((n=e[1])==null?void 0:n.image)&&a(e[1].image,e[1].alt,166,128,"")})]}),(0,l.jsxs)("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[(0,l.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((i=e[2])==null?void 0:i.image)&&a(e[2].image,e[2].alt,166,128,"h-[269px] lg:h-[126px]")}),(0,l.jsx)("div",{className:"h-full px-3 lg:w-2/3",children:((f=e[3])==null?void 0:f.image)&&a(e[3].image,e[3].alt,356,192,"")})]})]})}0&&(module.exports={Features_F});
@@ -1 +0,0 @@
1
- import{a}from"./chunk-CH65ARWJ.mjs";export{a as Features_F,a as default};
@@ -1,3 +0,0 @@
1
- import { FeaturesProps } from ".";
2
- export default function Features_G({ caption, title, description, images, tags }: FeaturesProps): import("react/jsx-runtime").JSX.Element;
3
- export { Features_G };
@@ -1 +0,0 @@
1
- "use strict";var F=Object.create;var i=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var I=Object.getOwnPropertyNames;var z=Object.getPrototypeOf,C=Object.prototype.hasOwnProperty;var R=(e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})},g=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of I(t))!C.call(e,a)&&a!==r&&i(e,a,{get:()=>t[a],enumerable:!(n=y(t,a))||n.enumerable});return e};var T=(e,t,r)=>(r=e!=null?F(z(e)):{},g(t||!e||!e.__esModule?i(r,"default",{value:e,enumerable:!0}):r,e)),S=e=>g(i({},"__esModule",{value:!0}),e);var W={};R(W,{Features_G:()=>x,default:()=>x});module.exports=S(W);var o=require("@stackshift-ui/container"),d=require("@stackshift-ui/flex"),c=require("@stackshift-ui/heading"),f=require("@stackshift-ui/image"),p=require("@stackshift-ui/section"),s=require("@stackshift-ui/text"),v=T(require("react")),l=require("react/jsx-runtime");function x({caption:e,title:t,description:r,images:n,tags:a}){return(0,l.jsx)(p.Section,{className:"py-20 bg-background",children:(0,l.jsx)(o.Container,{maxWidth:1280,children:(0,l.jsxs)(d.Flex,{wrap:!0,align:"center",children:[(0,l.jsx)("div",{className:"w-full px-4 mb-12 lg:mb-0 lg:w-1/2",children:(0,l.jsxs)(o.Container,{maxWidth:448,children:[(0,l.jsx)(G,{caption:e,title:t,description:r}),(0,l.jsx)(H,{tags:a})]})}),(0,l.jsx)(P,{images:n})]})})})}function G({caption:e,title:t,description:r}){return(0,l.jsxs)(v.default.Fragment,{children:[e&&(0,l.jsx)(s.Text,{weight:"bold",className:"text-secondary",children:e}),t&&(0,l.jsx)(c.Heading,{fontSize:"3xl",className:"mb-3",children:t}),r&&(0,l.jsx)(s.Text,{muted:!0,className:"mb-6 leading-loose ",children:r})]})}function H({tags:e}){return e?(0,l.jsx)("ul",{className:"font-bold text-gray-500",children:e.map(t=>(0,l.jsx)(L,{item:t}))}):null}function L({item:e}){return e?(0,l.jsxs)(d.Flex,{as:"li",align:"center",className:"mb-2 ",children:[(0,l.jsx)("svg",{className:"w-5 h-5 mr-2 text-primary-foreground",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,l.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,l.jsx)("span",{children:e})]}):null}function P({images:e}){var r,n,a,u;if(!e||(e==null?void 0:e.length)===0)return null;function t(w,m,h,b,N){return(0,l.jsx)("div",{className:`overflow-hidden ${N}`,children:(0,l.jsx)(f.Image,{className:"object-cover w-full h-auto rounded-md",src:w,sizes:"100vw",width:h,height:b,alt:m!=null?m:"feature-image"})})}return(0,l.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,l.jsxs)("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[(0,l.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((r=e[0])==null?void 0:r.image)&&t(e[0].image,e[0].alt,356,192,"h-[269px]")}),(0,l.jsx)("div",{className:"h-full px-3 lg:w-1/3",children:((n=e[1])==null?void 0:n.image)&&t(e[1].image,e[1].alt,166,128,"")})]}),(0,l.jsxs)("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[(0,l.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((a=e[2])==null?void 0:a.image)&&t(e[2].image,e[2].alt,166,128,"h-[269px] lg:h-[126px]")}),(0,l.jsx)("div",{className:"h-full px-3 lg:w-2/3",children:((u=e[3])==null?void 0:u.image)&&t(e[3].image,e[3].alt,356,192,"")})]})]})}0&&(module.exports={Features_G});
@@ -1 +0,0 @@
1
- import{a}from"./chunk-VMJMULYP.mjs";export{a as Features_G,a as default};
@@ -1,3 +0,0 @@
1
- import { FeaturesProps } from ".";
2
- export default function Features_H({ caption, title, features, images }: FeaturesProps): import("react/jsx-runtime").JSX.Element;
3
- export { Features_H };
@@ -1 +0,0 @@
1
- "use strict";var k=Object.create;var d=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var I=Object.getOwnPropertyNames;var C=Object.getPrototypeOf,z=Object.prototype.hasOwnProperty;var S=(t,n)=>{for(var o in n)d(t,o,{get:n[o],enumerable:!0})},b=(t,n,o,e)=>{if(n&&typeof n=="object"||typeof n=="function")for(let l of I(n))!z.call(t,l)&&l!==o&&d(t,l,{get:()=>n[l],enumerable:!(e=A(n,l))||e.enumerable});return t};var j=(t,n,o)=>(o=t!=null?k(C(t)):{},b(n||!t||!t.__esModule?d(o,"default",{value:t,enumerable:!0}):o,t)),H=t=>b(d({},"__esModule",{value:!0}),t);var P={};S(P,{Features_H:()=>F,default:()=>F});module.exports=H(P);var c=require("@stackshift-ui/container"),a=require("@stackshift-ui/flex"),s=require("@stackshift-ui/heading"),i=require("@stackshift-ui/image"),T=require("@stackshift-ui/section"),m=require("@stackshift-ui/text"),y=j(require("react")),r=require("react/jsx-runtime");function F({caption:t,title:n,features:o,images:e}){return(0,r.jsx)(T.Section,{className:"py-20 bg-background",children:(0,r.jsx)(c.Container,{maxWidth:1280,children:(0,r.jsxs)(a.Flex,{wrap:!0,align:"center",children:[(0,r.jsx)("div",{className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:(0,r.jsxs)(c.Container,{maxWidth:448,children:[(0,r.jsx)(L,{caption:t,title:n}),(0,r.jsx)(O,{features:o})]})}),(0,r.jsx)($,{images:e})]})})})}function L({caption:t,title:n}){return(0,r.jsxs)(y.default.Fragment,{children:[t&&(0,r.jsx)(m.Text,{weight:"bold",className:"text-secondary",children:t}),n&&(0,r.jsx)(s.Heading,{fontSize:"3xl",className:"mb-6",children:n})]})}function O({features:t}){return!t||(t==null?void 0:t.length)<=0?null:(0,r.jsx)("ul",{children:t.map(n=>(0,r.jsx)(V,{feature:n},n._key))})}function V({feature:t}){return t?(0,r.jsxs)(a.Flex,{as:"li",children:[(0,r.jsx)(W,{}),(0,r.jsxs)("div",{className:"max-w-xs",children:[(0,r.jsx)(m.Text,{weight:"bold",className:"text-gray-500",children:t==null?void 0:t.title}),(0,r.jsx)(m.Text,{muted:!0,className:"leading-loose",children:t==null?void 0:t.plainText})]})]}):null}function W(){return(0,r.jsx)("svg",{className:"w-8 h-8 mr-3 text-primary",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"})})}function $({images:t}){var n,o,e,l,w,x,p,h,u,v,f,N;return!t||(t==null?void 0:t.length)===0?null:(0,r.jsxs)("div",{className:"items-center w-full px-4 sm:flex md:px-0 lg:w-1/2",children:[(0,r.jsxs)("div",{className:"mb-5 sm:mb-0 sm:w-1/2",children:[((n=t==null?void 0:t[0])==null?void 0:n.image)&&(0,r.jsx)(i.Image,{className:"object-cover overflow-hidden rounded-md",src:`${(o=t==null?void 0:t[0])==null?void 0:o.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(l=(e=t==null?void 0:t[0])==null?void 0:e.alt)!=null?l:"features-image-1"}),((w=t==null?void 0:t[1])==null?void 0:w.image)&&(0,r.jsx)(i.Image,{className:"object-cover mt-6 overflow-hidden rounded-md",src:`${(x=t==null?void 0:t[1])==null?void 0:x.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(h=(p=t==null?void 0:t[1])==null?void 0:p.alt)!=null?h:"features-image-2"})]}),((u=t==null?void 0:t[2])==null?void 0:u.image)&&(0,r.jsx)(i.Image,{className:"object-cover overflow-hidden rounded-md sm:ml-6 sm:w-1/2",src:`${(v=t==null?void 0:t[2])==null?void 0:v.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(N=(f=t==null?void 0:t[2])==null?void 0:f.alt)!=null?N:"features-image-3"})]})}0&&(module.exports={Features_H});
@@ -1 +0,0 @@
1
- import{a}from"./chunk-AN3PFBVX.mjs";export{a as Features_H,a as default};
package/dist/index.d.ts DELETED
@@ -1,9 +0,0 @@
1
- export * from "./features";
2
- export * from "./features_a";
3
- export * from "./features_b";
4
- export * from "./features_c";
5
- export * from "./features_d";
6
- export * from "./features_e";
7
- export * from "./features_f";
8
- export * from "./features_g";
9
- export * from "./features_h";
package/dist/index.js DELETED
@@ -1,2 +0,0 @@
1
- "use client";
2
- "use strict";var xn=Object.create;var R=Object.defineProperty;var wn=Object.getOwnPropertyDescriptor;var un=Object.getOwnPropertyNames;var bn=Object.getPrototypeOf,vn=Object.prototype.hasOwnProperty;var f=(t,n)=>()=>(t&&(n=t(t=0)),n);var h=(t,n)=>{for(var i in n)R(t,i,{get:n[i],enumerable:!0})},vt=(t,n,i,e)=>{if(n&&typeof n=="object"||typeof n=="function")for(let l of un(n))!vn.call(t,l)&&l!==i&&R(t,l,{get:()=>n[l],enumerable:!(e=wn(n,l))||e.enumerable});return t};var F=(t,n,i)=>(i=t!=null?xn(bn(t)):{},vt(n||!t||!t.__esModule?R(i,"default",{value:t,enumerable:!0}):i,t)),hn=t=>vt(R({},"__esModule",{value:!0}),t);var Tt={};h(Tt,{Features_A:()=>_,default:()=>_});function _({caption:t,title:n,description:i,features:e}){return(0,d.jsx)(Ft.Section,{className:"py-20 bg-background",children:(0,d.jsxs)(P.Container,{maxWidth:1280,children:[(0,d.jsx)(P.Container,{maxWidth:448,className:"mb-16 text-center ",children:(0,d.jsx)(Nn,{caption:t,title:n,description:i})}),(0,d.jsx)(ht.Flex,{wrap:!0,children:(0,d.jsx)(fn,{features:e})})]})})}function Nn({caption:t,title:n,description:i}){return(0,d.jsxs)(L.default.Fragment,{children:[t?(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}):null,n?(0,d.jsx)(Nt.Heading,{fontSize:"3xl",children:n}):null,i?(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose",children:i}):null]})}function fn({features:t}){return t?(0,d.jsx)(L.default.Fragment,{children:t==null?void 0:t.map(n=>(0,d.jsx)(Fn,{feature:n},n._key))}):null}function Fn({feature:t}){var n;return(0,d.jsxs)("div",{className:"w-full px-4 mt-16 mb-12 md:w-1/2 lg:mb-0 lg:w-1/4",children:[(n=t==null?void 0:t.mainImage)!=null&&n.image?(0,d.jsx)(Tn,{feature:t}):null,t!=null&&t.title?(0,d.jsx)(k.Text,{weight:"bold",className:"mb-4 text-gray-500",fontSize:"xl",children:t==null?void 0:t.title}):null,t!=null&&t.plainText?(0,d.jsx)(k.Text,{muted:!0,className:"leading-loose",children:t==null?void 0:t.plainText}):null]})}function Tn({feature:t}){var n,i,e,l;return(n=t==null?void 0:t.mainImage)!=null&&n.image?(0,d.jsx)("span",{className:"inline-block d-3 mb-4 rounded bg-secondary/50 text-primary-foreground md:mb-6",children:(0,d.jsx)(ft.Image,{className:"object-scale-down",src:`${(i=t==null?void 0:t.mainImage)==null?void 0:i.image}`,width:40,height:40,alt:(l=(e=t==null?void 0:t.mainImage)==null?void 0:e.alt)!=null?l:"features-image-"})}):null}var P,ht,Nt,ft,Ft,k,L,d,H=f(()=>{"use strict";P=require("@stackshift-ui/container"),ht=require("@stackshift-ui/flex"),Nt=require("@stackshift-ui/heading"),ft=require("@stackshift-ui/image"),Ft=require("@stackshift-ui/section"),k=require("@stackshift-ui/text"),L=F(require("react")),d=require("react/jsx-runtime")});var Rt={};h(Rt,{Features_B:()=>$,default:()=>$});function $({caption:t,title:n,description:i,features:e,tags:l}){return(0,d.jsx)(Ft.Section,{className:"py-20 bg-background",children:(0,d.jsx)(W.Container,{maxWidth:1280,children:(0,d.jsxs)(ht.Flex,{wrap:!0,align:"center",children:[(0,d.jsx)("div",{className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:(0,d.jsxs)(W.Container,{maxWidth:448,children:[(0,d.jsx)(yn,{caption:t,title:n,description:i}),(0,d.jsx)(Cn,{tags:l})]})}),(0,d.jsx)(kn,{features:e})]})})})}function yn({caption:t,title:n,description:i}){return(0,d.jsxs)(St.default.Fragment,{children:[t&&(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}),n&&(0,d.jsx)(Nt.Heading,{fontSize:"3xl",children:n}),i&&(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose",children:i})]})}function Cn({tags:t}){return t?(0,d.jsx)("ul",{children:t&&t.map(n=>(0,d.jsxs)("li",{className:"flex mb-4",children:[(0,d.jsx)("svg",{className:"w-6 h-6 mr-2 text-secondary",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,d.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,d.jsx)(k.Text,{muted:!0,weight:"bold",children:n})]},n))}):null}function kn({features:t}){return t?(0,d.jsx)(ht.Flex,{wrap:!0,className:"w-full lg:w-1/2",children:t&&(t==null?void 0:t.map((n,i)=>{var e,l,a,w;return(0,d.jsx)("div",{className:`w-full px-4 mb-8 md:w-1/2 ${i%2===0?"lg:mb-0":"lg:mt-12"}`,children:(0,d.jsxs)(yt.Card,{className:"py-6 pl-6 pr-4 mb-8 bg-white",borderRadius:"md",children:[(0,d.jsx)("span",{className:"inline-block d-3 mb-4 rounded-lg bg-secondary/50",children:((e=n==null?void 0:n.mainImage)==null?void 0:e.image)&&(0,d.jsx)(ft.Image,{className:"object-scale-down",src:`${(l=n==null?void 0:n.mainImage)==null?void 0:l.image}`,width:40,height:40,alt:(w=(a=n==null?void 0:n.mainImage)==null?void 0:a.alt)!=null?w:`features-image-${i}`})}),(0,d.jsx)(k.Text,{weight:"bold",fontSize:"2xl",className:"mb-2 text-gray-500",children:n==null?void 0:n.title}),(0,d.jsx)(k.Text,{muted:!0,className:"leading-loose",children:n==null?void 0:n.plainText})]})},i)}))}):null}var yt,W,ht,Nt,ft,Ft,k,St,d,j=f(()=>{"use strict";yt=require("@stackshift-ui/card"),W=require("@stackshift-ui/container"),St=F(require("react"))});var Wt={};h(Wt,{Features_C:()=>M,default:()=>M});function M({caption:t,title:n,description:i,features:e}){return(0,d.jsx)(Ft.Section,{className:"py-20 bg-background",children:(0,d.jsxs)(W.Container,{maxWidth:1280,children:[(0,d.jsx)(W.Container,{maxWidth:448,className:"mb-16 text-center ",children:(0,d.jsx)(An,{caption:t,title:n,description:i})}),(0,d.jsx)(Sn,{features:e})]})})}function An({caption:t,title:n,description:i}){return(0,d.jsxs)(Ht.default.Fragment,{children:[t?(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}):null,n?(0,d.jsx)(Nt.Heading,{fontSize:"3xl",children:n}):null,i?(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose",children:i}):null]})}function Sn({features:t}){return t?(0,d.jsx)(ht.Flex,{wrap:!0,justify:"start",className:"-mx-3",children:t.map(n=>(0,d.jsx)(Rn,{feature:n},n._key))}):null}function Rn({feature:t}){var n,i,e,l;return(0,d.jsx)("div",{className:"w-full px-3 mb-6 lg:w-1/2",children:(0,d.jsxs)(It.Card,{className:"flex flex-wrap h-full d-6 bg-white",borderRadius:"md",children:[(0,d.jsx)("div",{className:"self-start inline-block d-3 mb-4 mr-6 rounded-lg bg-secondary/50 md:d-5 lg:mb-0",children:((n=t==null?void 0:t.mainImage)==null?void 0:n.image)&&(0,d.jsx)(ft.Image,{className:"object-scale-down",src:`${(i=t==null?void 0:t.mainImage)==null?void 0:i.image}`,width:40,height:40,alt:(l=(e=t==null?void 0:t.mainImage)==null?void 0:e.alt)!=null?l:"features-main-image"})}),(0,d.jsxs)("div",{className:"w-full lg:w-2/3",children:[(0,d.jsx)(k.Text,{fontSize:"2xl",weight:"bold",className:"mb-2 text-gray-500",children:t==null?void 0:t.title}),(0,d.jsx)(k.Text,{muted:!0,children:t==null?void 0:t.plainText})]})]})})}var It,W,ht,Nt,ft,Ft,k,Ht,d,G=f(()=>{"use strict";It=require("@stackshift-ui/card"),Ht=F(require("react"))});var Bt={};h(Bt,{Features_D:()=>D,default:()=>D});function D({caption:t,title:n,description:i,features:e}){return(0,d.jsx)(Ft.Section,{className:"py-20 bg-background",children:(0,d.jsxs)(W.Container,{maxWidth:1280,children:[(0,d.jsx)(W.Container,{maxWidth:448,className:"mb-8 text-center",children:(0,d.jsx)(In,{caption:t,title:n,description:i})}),(0,d.jsx)(zn,{features:e})]})})}function In({caption:t,title:n,description:i}){return(0,d.jsxs)(Gt.default.Fragment,{children:[t?(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}):null,n?(0,d.jsx)(Nt.Heading,{fontSize:"3xl",children:n}):null,i?(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose",children:i}):null]})}function zn({features:t}){return t?(0,d.jsx)($t.Flex,{wrap:!0,justify:"center",children:t.map(n=>(0,d.jsx)(Pn,{feature:n},n._key))}):null}function Pn({feature:t}){var n,i,e,l;return(0,d.jsx)("div",{className:"w-full px-4 mt-8 lg:mb-0 lg:w-1/3",children:(0,d.jsxs)(Ot.Card,{className:"h-full px-6 py-12 text-center bg-white",borderRadius:"md",children:[(0,d.jsx)("div",{className:"self-start inline-block d-3 mb-6 rounded-lg bg-secondary/50 md:d-5",children:((n=t==null?void 0:t.mainImage)==null?void 0:n.image)&&(0,d.jsx)(ft.Image,{className:"object-scale-down",src:`${(i=t==null?void 0:t.mainImage)==null?void 0:i.image}`,width:40,height:40,alt:(l=(e=t==null?void 0:t.mainImage)==null?void 0:e.alt)!=null?l:"features-image-"})}),(0,d.jsx)(k.Text,{fontSize:"xl",weight:"bold",className:"px-8 mb-4 text-gray-500",children:t==null?void 0:t.title}),(0,d.jsx)(k.Text,{muted:!0,children:t==null?void 0:t.plainText})]})})}var Ot,W,$t,Nt,ft,Ft,k,Gt,d,E=f(()=>{"use strict";Ot=require("@stackshift-ui/card"),Gt=F(require("react"))});var Ut={};h(Ut,{Features_E:()=>Q,default:()=>Q});function Q({featuredItems:t}){let[n,i]=K.default.useState(0);return(0,d.jsx)(Ft.Section,{className:"py-20 overflow-d-auto bg-background",children:(0,d.jsx)(W.Container,{maxWidth:1280,children:(0,d.jsx)(ht.Flex,{className:"relative",children:(0,d.jsx)(Hn,{featuredItems:t,slider:l=>{t&&(l==="next"?n!==t.length-1?i(a=>a+1):i(0):n>=1?i(a=>a-1):i(t.length-1))},children:(0,d.jsxs)("div",{className:"order-1 w-full ml-auto xl:w-4/5",children:[(0,d.jsx)(Ln,{featuredItems:t,item:n}),(0,d.jsx)(_n,{featuredItems:t,item:n})]})})})})})}function Ln({featuredItems:t,item:n}){var i,e,l,a,w,g,u;return(e=(i=t==null?void 0:t[n])==null?void 0:i.mainImage)!=null&&e.image?(0,d.jsx)("div",{className:"mx-auto overflow-hidden rounded-md md:max-w-xl xl:max-w-4xl",children:(0,d.jsx)(ft.Image,{className:"relative object-cover rounded-md",src:`${(a=(l=t==null?void 0:t[n])==null?void 0:l.mainImage)==null?void 0:a.image}`,sizes:"100vw",width:896,height:575,alt:(u=(g=(w=t==null?void 0:t[n])==null?void 0:w.mainImage)==null?void 0:g.alt)!=null?u:`features-image-${n}`})}):null}function _n({featuredItems:t,item:n}){var i,e,l,a,w,g;return t?(0,d.jsxs)(Dt.Card,{className:"top-0 left-0 max-w-xl d-6 mx-auto text-center bg-white md:mt-12 md:d-10 lg:mt-12 lg:d-10 xl:absolute xl:mx-0 xl:mt-20 xl:py-24",borderRadius:"md",children:[(0,d.jsx)(k.Text,{weight:"bold",className:"text-xs lg:text-md md:text-sm xl:text-lg text-secondary",children:((i=t==null?void 0:t[n])==null?void 0:i.subtitle)&&((e=t==null?void 0:t[n])==null?void 0:e.subtitle)}),(0,d.jsx)(Nt.Heading,{fontSize:"3xl",children:((l=t==null?void 0:t[n])==null?void 0:l.title)&&((a=t==null?void 0:t[n])==null?void 0:a.title)}),(0,d.jsx)(k.Text,{muted:!0,className:"text-xs leading-loose text-center md:mt-5 md:text-sm lg:mt-5 lg:text-sm",children:((w=t==null?void 0:t[n])==null?void 0:w.description)&&((g=t==null?void 0:t[n])==null?void 0:g.description)})]}):null}function Hn({featuredItems:t,children:n,slider:i}){return t?(0,d.jsxs)(K.default.Fragment,{children:[(0,d.jsx)("div",{className:"absolute left-0 k-40 items-center mt-20 -mx-3 order-0 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(t==null?void 0:t.length)>=2&&(0,d.jsx)(q.Button,{as:"button",ariaLabel:"Show Previous Feature",className:"k-10 d-4 text-white ",onClick:()=>i("prev"),children:(0,d.jsx)("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M10 19l-7-7m0 0l7-7m-7 7h18"})})})}),n,(0,d.jsx)("div",{className:"absolute right-0 k-40 items-center order-2 mt-20 -mx-3 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(t==null?void 0:t.length)>=2&&(0,d.jsx)(q.Button,{as:"button",ariaLabel:"Show Next Feature",className:"d-4 text-white ",onClick:()=>i("next"),children:(0,d.jsx)("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M14 5l7 7m0 0l-7 7m7-7H3"})})})})]}):null}var q,Dt,W,ht,Nt,ft,Ft,k,K,d,U=f(()=>{"use strict";q=require("@stackshift-ui/button"),Dt=require("@stackshift-ui/card"),K=F(require("react"))});var nn={};h(nn,{Features_F:()=>tt,default:()=>tt});function tt({caption:t,title:n,description:i,images:e,primaryButton:l}){return(0,d.jsx)(Ft.Section,{className:"py-20 bg-background",children:(0,d.jsx)(W.Container,{maxWidth:1280,children:(0,d.jsxs)(ht.Flex,{wrap:!0,align:"center",children:[(0,d.jsxs)(ht.Flex,{direction:"col",className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:[(0,d.jsx)(Wn,{caption:t,title:n,description:i}),(0,d.jsx)(On,{primaryButton:l})]}),(0,d.jsx)($n,{images:e})]})})})}function Wn({caption:t,title:n,description:i}){return(0,d.jsxs)(W.Container,{maxWidth:448,className:"ml-0",children:[t&&(0,d.jsx)(k.Text,{weight:"bold",className:"font-bold text-secondary",children:t}),n&&(0,d.jsx)(Nt.Heading,{fontSize:"3xl",className:"mb-6",children:n}),i&&(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose",children:i})]})}function On({primaryButton:t}){return t!=null&&t.label?(0,d.jsx)(Xt.Button,{as:"link",link:t,ariaLabel:t==null?void 0:t.label,children:t==null?void 0:t.label}):null}function $n({images:t}){var i,e,l,a;if(!t||(t==null?void 0:t.length)===0)return null;function n(w,g,u,b,v){return(0,d.jsx)("div",{className:`overflow-hidden ${v}`,children:(0,d.jsx)(ft.Image,{className:"object-cover w-full h-auto rounded-md",src:w,sizes:"100vw",width:u,height:b,alt:g!=null?g:"feature-image"})})}return(0,d.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,d.jsxs)("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[(0,d.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((i=t[0])==null?void 0:i.image)&&n(t[0].image,t[0].alt,356,192,"h-[269px]")}),(0,d.jsx)("div",{className:"h-full px-3 lg:w-1/3",children:((e=t[1])==null?void 0:e.image)&&n(t[1].image,t[1].alt,166,128,"")})]}),(0,d.jsxs)("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[(0,d.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((l=t[2])==null?void 0:l.image)&&n(t[2].image,t[2].alt,166,128,"h-[269px] lg:h-[126px]")}),(0,d.jsx)("div",{className:"h-full px-3 lg:w-2/3",children:((a=t[3])==null?void 0:a.image)&&n(t[3].image,t[3].alt,356,192,"")})]})]})}var Xt,W,ht,Nt,ft,Ft,k,d,nt=f(()=>{"use strict";Xt=require("@stackshift-ui/button")});var mn={};h(mn,{Features_G:()=>ot,default:()=>ot});function ot({caption:t,title:n,description:i,images:e,tags:l}){return(0,d.jsx)(Ft.Section,{className:"py-20 bg-background",children:(0,d.jsx)(it.Container,{maxWidth:1280,children:(0,d.jsxs)(ht.Flex,{wrap:!0,align:"center",children:[(0,d.jsx)("div",{className:"w-full px-4 mb-12 lg:mb-0 lg:w-1/2",children:(0,d.jsxs)(it.Container,{maxWidth:448,children:[(0,d.jsx)(jn,{caption:t,title:n,description:i}),(0,d.jsx)(Vn,{tags:l})]})}),(0,d.jsx)(Gn,{images:e})]})})})}function jn({caption:t,title:n,description:i}){return(0,d.jsxs)(rn.default.Fragment,{children:[t&&(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}),n&&(0,d.jsx)(Nt.Heading,{fontSize:"3xl",className:"mb-3",children:n}),i&&(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose ",children:i})]})}function Vn({tags:t}){return t?(0,d.jsx)("ul",{className:"font-bold text-gray-500",children:t.map(n=>(0,d.jsx)(Mn,{item:n}))}):null}function Mn({item:t}){return t?(0,d.jsxs)(ht.Flex,{as:"li",align:"center",className:"mb-2 ",children:[(0,d.jsx)("svg",{className:"w-5 h-5 mr-2 text-primary-foreground",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,d.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,d.jsx)("span",{children:t})]}):null}function Gn({images:t}){var i,e,l,a;if(!t||(t==null?void 0:t.length)===0)return null;function n(w,g,u,b,v){return(0,d.jsx)("div",{className:`overflow-hidden ${v}`,children:(0,d.jsx)(ft.Image,{className:"object-cover w-full h-auto rounded-md",src:w,sizes:"100vw",width:u,height:b,alt:g!=null?g:"feature-image"})})}return(0,d.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,d.jsxs)("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[(0,d.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((i=t[0])==null?void 0:i.image)&&n(t[0].image,t[0].alt,356,192,"h-[269px]")}),(0,d.jsx)("div",{className:"h-full px-3 lg:w-1/3",children:((e=t[1])==null?void 0:e.image)&&n(t[1].image,t[1].alt,166,128,"")})]}),(0,d.jsxs)("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[(0,d.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((l=t[2])==null?void 0:l.image)&&n(t[2].image,t[2].alt,166,128,"h-[269px] lg:h-[126px]")}),(0,d.jsx)("div",{className:"h-full px-3 lg:w-2/3",children:((a=t[3])==null?void 0:a.image)&&n(t[3].image,t[3].alt,356,192,"")})]})]})}var it,ht,Nt,ft,Ft,k,rn,d,rt=f(()=>{"use strict";it=require("@stackshift-ui/container"),rn=F(require("react"))});var dn={};h(dn,{Features_H:()=>st,default:()=>st});function st({caption:t,title:n,features:i,images:e}){return(0,d.jsx)(Ft.Section,{className:"py-20 bg-background",children:(0,d.jsx)(mt.Container,{maxWidth:1280,children:(0,d.jsxs)(ht.Flex,{wrap:!0,align:"center",children:[(0,d.jsx)("div",{className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:(0,d.jsxs)(mt.Container,{maxWidth:448,children:[(0,d.jsx)(Bn,{caption:t,title:n}),(0,d.jsx)(Dn,{features:i})]})}),(0,d.jsx)(Jn,{images:e})]})})})}function Bn({caption:t,title:n}){return(0,d.jsxs)(cn.default.Fragment,{children:[t&&(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}),n&&(0,d.jsx)(Nt.Heading,{fontSize:"3xl",className:"mb-6",children:n})]})}function Dn({features:t}){return!t||(t==null?void 0:t.length)<=0?null:(0,d.jsx)("ul",{children:t.map(n=>(0,d.jsx)(En,{feature:n},n._key))})}function En({feature:t}){return t?(0,d.jsxs)(ht.Flex,{as:"li",children:[(0,d.jsx)(qn,{}),(0,d.jsxs)("div",{className:"max-w-xs",children:[(0,d.jsx)(k.Text,{weight:"bold",className:"text-gray-500",children:t==null?void 0:t.title}),(0,d.jsx)(k.Text,{muted:!0,className:"leading-loose",children:t==null?void 0:t.plainText})]})]}):null}function qn(){return(0,d.jsx)("svg",{className:"w-8 h-8 mr-3 text-primary",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"})})}function Jn({images:t}){var n,i,e,l,a,w,g,u,b,v,y,C;return!t||(t==null?void 0:t.length)===0?null:(0,d.jsxs)("div",{className:"items-center w-full px-4 sm:flex md:px-0 lg:w-1/2",children:[(0,d.jsxs)("div",{className:"mb-5 sm:mb-0 sm:w-1/2",children:[((n=t==null?void 0:t[0])==null?void 0:n.image)&&(0,d.jsx)(ft.Image,{className:"object-cover overflow-hidden rounded-md",src:`${(i=t==null?void 0:t[0])==null?void 0:i.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(l=(e=t==null?void 0:t[0])==null?void 0:e.alt)!=null?l:"features-image-1"}),((a=t==null?void 0:t[1])==null?void 0:a.image)&&(0,d.jsx)(ft.Image,{className:"object-cover mt-6 overflow-hidden rounded-md",src:`${(w=t==null?void 0:t[1])==null?void 0:w.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(u=(g=t==null?void 0:t[1])==null?void 0:g.alt)!=null?u:"features-image-2"})]}),((b=t==null?void 0:t[2])==null?void 0:b.image)&&(0,d.jsx)(ft.Image,{className:"object-cover overflow-hidden rounded-md sm:ml-6 sm:w-1/2",src:`${(v=t==null?void 0:t[2])==null?void 0:v.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(C=(y=t==null?void 0:t[2])==null?void 0:y.alt)!=null?C:"features-image-3"})]})}var mt,ht,Nt,ft,Ft,k,cn,d,ct=f(()=>{"use strict";mt=require("@stackshift-ui/container"),cn=F(require("react"))});var Un={};h(Un,{Features:()=>pn,Features_A:()=>_,Features_B:()=>$,Features_C:()=>M,Features_D:()=>D,Features_E:()=>Q,Features_F:()=>tt,Features_G:()=>ot,Features_H:()=>st});module.exports=hn(Un);var N=require("react"),Kn={variant_a:(0,N.lazy)(()=>Promise.resolve().then(()=>(H(),Tt))),variant_b:(0,N.lazy)(()=>Promise.resolve().then(()=>(j(),Rt))),variant_c:(0,N.lazy)(()=>Promise.resolve().then(()=>(G(),Wt))),variant_d:(0,N.lazy)(()=>Promise.resolve().then(()=>(E(),Bt))),variant_e:(0,N.lazy)(()=>Promise.resolve().then(()=>(U(),Ut))),variant_f:(0,N.lazy)(()=>Promise.resolve().then(()=>(nt(),nn))),variant_g:(0,N.lazy)(()=>Promise.resolve().then(()=>(rt(),mn))),variant_h:(0,N.lazy)(()=>Promise.resolve().then(()=>(ct(),dn)))},Qn="Features",pn=({data:t})=>{var l,a,w,g,u,b,v,y,C,dt,pt,gt,xt,wt,ut,bt;let n=t==null?void 0:t.variant,i=n&&Kn[n],e={caption:(a=(l=t==null?void 0:t.variants)==null?void 0:l.subtitle)!=null?a:void 0,title:(g=(w=t==null?void 0:t.variants)==null?void 0:w.title)!=null?g:void 0,description:(b=(u=t==null?void 0:t.variants)==null?void 0:u.description)!=null?b:void 0,features:(y=(v=t==null?void 0:t.variants)==null?void 0:v.arrayOfImageTitleAndText)!=null?y:void 0,tags:(dt=(C=t==null?void 0:t.variants)==null?void 0:C.tags)!=null?dt:void 0,featuredItems:(gt=(pt=t==null?void 0:t.variants)==null?void 0:pt.featuredItems)!=null?gt:void 0,images:(wt=(xt=t==null?void 0:t.variants)==null?void 0:xt.images)!=null?wt:void 0,primaryButton:(bt=(ut=t==null?void 0:t.variants)==null?void 0:ut.primaryButton)!=null?bt:void 0};return i?(0,d.jsx)(i,{...e}):null};pn.displayName=Qn;H();j();G();E();U();nt();rt();ct();0&&(module.exports={Features,Features_A,Features_B,Features_C,Features_D,Features_E,Features_F,Features_G,Features_H});
package/dist/index.mjs DELETED
@@ -1,2 +0,0 @@
1
- "use client";
2
- "use strict";import{a as p}from"./chunk-VMJMULYP.mjs";import{a as x}from"./chunk-AN3PFBVX.mjs";import{a as c}from"./chunk-DODP4JDQ.mjs";import{a as o}from"./chunk-IS5MPNWR.mjs";import{a as r}from"./chunk-76IS6VW4.mjs";import{a as e}from"./chunk-W3RGT6IT.mjs";import{a as t}from"./chunk-YVG2YZHF.mjs";import{a as f}from"./chunk-7B6FI3PR.mjs";import{a as m}from"./chunk-CH65ARWJ.mjs";export{c as Features,o as Features_A,r as Features_B,e as Features_C,t as Features_D,f as Features_E,m as Features_F,p as Features_G,x as Features_H};
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);