@stackshift-ui/contact 6.0.6-beta.1 → 6.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stackshift-ui/contact",
3
3
  "description": "",
4
- "version": "6.0.6-beta.1",
4
+ "version": "6.0.6",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "main": "./dist/index.js",
@@ -29,29 +29,29 @@
29
29
  "typescript": "^5.6.2",
30
30
  "vite-tsconfig-paths": "^5.0.1",
31
31
  "vitest": "^2.1.1",
32
- "@stackshift-ui/eslint-config": "6.0.3-beta.1",
33
- "@stackshift-ui/typescript-config": "6.0.3-beta.1"
32
+ "@stackshift-ui/typescript-config": "6.0.3",
33
+ "@stackshift-ui/eslint-config": "6.0.3"
34
34
  },
35
35
  "dependencies": {
36
36
  "@portabletext/react": "^3.1.0",
37
37
  "classnames": "^2.5.1",
38
- "@stackshift-ui/flex": "6.0.4-beta.1",
39
- "@stackshift-ui/container": "6.0.4-beta.1",
40
- "@stackshift-ui/card": "6.0.4-beta.1",
41
- "@stackshift-ui/form-field": "6.0.6-beta.1",
42
- "@stackshift-ui/form": "6.0.4-beta.1",
43
- "@stackshift-ui/button": "6.0.4-beta.1",
44
- "@stackshift-ui/heading": "6.0.4-beta.1",
45
- "@stackshift-ui/link": "6.0.4-beta.1",
46
- "@stackshift-ui/image": "6.0.4-beta.1",
47
- "@stackshift-ui/scripts": "6.0.3-beta.1",
48
- "@stackshift-ui/text": "6.0.4-beta.1",
49
- "@stackshift-ui/system": "6.0.4-beta.1",
50
- "@stackshift-ui/social-icons": "6.0.4-beta.1",
51
- "@stackshift-ui/section": "6.0.4-beta.1"
38
+ "@stackshift-ui/button": "6.0.4",
39
+ "@stackshift-ui/container": "6.0.4",
40
+ "@stackshift-ui/card": "6.0.4",
41
+ "@stackshift-ui/form-field": "6.0.6",
42
+ "@stackshift-ui/form": "6.0.4",
43
+ "@stackshift-ui/flex": "6.0.4",
44
+ "@stackshift-ui/heading": "6.0.4",
45
+ "@stackshift-ui/scripts": "6.0.3",
46
+ "@stackshift-ui/link": "6.0.4",
47
+ "@stackshift-ui/image": "6.0.4",
48
+ "@stackshift-ui/social-icons": "6.0.4",
49
+ "@stackshift-ui/section": "6.0.4",
50
+ "@stackshift-ui/system": "6.0.4",
51
+ "@stackshift-ui/text": "6.0.4"
52
52
  },
53
53
  "peerDependencies": {
54
- "@stackshift-ui/system": ">=6.0.4-beta.1",
54
+ "@stackshift-ui/system": ">=6.0.4",
55
55
  "@types/react": "16.8 - 19",
56
56
  "next": "10 - 14",
57
57
  "react": "16.8 - 19",
@@ -1 +0,0 @@
1
- import{Card as p}from"@stackshift-ui/card";import{Container as c}from"@stackshift-ui/container";import{Flex as g}from"@stackshift-ui/flex";import{Heading as l}from"@stackshift-ui/heading";import{Image as x}from"@stackshift-ui/image";import{Link as d}from"@stackshift-ui/link";import{Section as C}from"@stackshift-ui/section";import{SocialIcons as b}from"@stackshift-ui/social-icons";import{Text as f}from"@stackshift-ui/text";import h from"react";import{jsx as e,jsxs as i}from"react/jsx-runtime";function s({title:n,contactDescription:t,officeInformation:r,contactNumber:a,contactEmail:m,socialLinks:o}){return e(C,{className:"py-20 bg-background",children:i(c,{maxWidth:1280,children:[e(k,{title:n,description:t}),e(c,{maxWidth:960,children:e(y,{officeInformation:r,contactNumber:a,contactEmail:m,socialLinks:o})})]})})}function k({title:n,description:t}){return i("div",{className:"mb-16 text-center",children:[n?e(l,{type:"h1",fontSize:"3xl",children:n}):null,t?e(f,{muted:!0,children:t}):null]})}function y({officeInformation:n,contactEmail:t,contactNumber:r,socialLinks:a}){return i(g,{className:"flex-col lg:flex-row",gap:4,justify:"between",align:"stretch",children:[n?e(N,{officeInformation:n}):null,t||r?e(S,{contactEmail:t,contactNumber:r}):null,a?e(w,{socialLinks:a}):null]})}function N({officeInformation:n}){return i(p,{className:"w-full p-12 text-center bg-white md:p-16 lg:p-20",children:[e(l,{type:"h2",fontSize:"2xl",className:"mb-16",children:"Office"}),e(f,{muted:!0,children:n})]})}function S({contactEmail:n,contactNumber:t}){return i(p,{className:"w-full p-12 bg-white md:p-16 lg:p-20 text-center",children:[e(l,{type:"h2",fontSize:"2xl",className:"mb-16 ",children:"Contacts"}),e(f,{className:"mb-2",muted:!0,children:n?e(d,{href:`mailto:${n}`,children:n}):null}),e(f,{muted:!0,children:t?e(d,{href:`tel:${t}`,children:t}):null})]})}function w({socialLinks:n}){return i(p,{className:"w-full p-12 text-center bg-white md:p-16 lg:p-20",children:[e(l,{className:"mb-16",fontSize:"2xl",type:"h2",children:"Socials"}),e(g,{justify:"center",wrap:!0,children:e(I,{socialLinks:n})})]})}function I({socialLinks:n}){return n?e(h.Fragment,{children:n==null?void 0:n.map(t=>{var r,a,m,o,u;return e(d,{"aria-label":(t==null?void 0:t.socialMedia)||(t==null?void 0:t.socialMediaPlatform)||"",className:"inline-block mr-4 mb-4 rounded",target:"_blank",rel:"noopener noreferrer",href:(r=t==null?void 0:t.socialMediaLink)!=null?r:"/page-not-found",children:(a=t==null?void 0:t.socialMediaIcon)!=null&&a.image?e(x,{src:(m=t==null?void 0:t.socialMediaIcon)==null?void 0:m.image,width:24,height:24,alt:(u=(o=t==null?void 0:t.socialMediaIcon)==null?void 0:o.alt)!=null?u:"contact-socialMedia-icon"}):e(b,{social:t.socialMedia})},t==null?void 0:t._key)})}):null}export{s as a};
@@ -1 +0,0 @@
1
- import{a as s}from"./chunk-LN2UUYYP.mjs";import{PortableText as h}from"@portabletext/react";import{Button as y}from"@stackshift-ui/button";import{Container as N}from"@stackshift-ui/container";import{Flex as g}from"@stackshift-ui/flex";import{Form as v}from"@stackshift-ui/form";import{FormField as k}from"@stackshift-ui/form-field";import{Heading as b}from"@stackshift-ui/heading";import{Image as L}from"@stackshift-ui/image";import{Link as c}from"@stackshift-ui/link";import{Section as w}from"@stackshift-ui/section";import{SocialIcons as C}from"@stackshift-ui/social-icons";import{Text as o}from"@stackshift-ui/text";import T from"react";import{jsx as n,jsxs as l}from"react/jsx-runtime";function S({contactDescription:e,officeInformation:t,contactEmail:i,contactNumber:r,socialLinks:u,form:p,block:a,title:d}){return n(w,{className:"py-20 bg-background",children:n(N,{maxWidth:1280,children:l(g,{direction:"col",gap:8,justify:"between",className:"lg:flex-row",children:[l(g,{direction:"col",gap:8,className:"px-10 w-full basis-1/2",children:[n(P,{title:d,contactDescription:e}),n(M,{officeInformation:t,contactEmail:i,contactNumber:r}),n(H,{socialLinks:u})]}),n(A,{form:p,block:a,blockCustomization:z})]})})})}function P({title:e,contactDescription:t}){return l("div",{children:[e&&n(b,{children:e}),t&&n(o,{muted:!0,className:"mt-5 leading-loose",children:t})]})}function M({officeInformation:e,contactEmail:t,contactNumber:i}){return e?l(g,{gap:8,justify:"between",className:"flex-col w-full md:flex-row",children:[l("div",{children:[n(b,{type:"h2",children:"Office"}),e&&n(o,{className:"mt-3",muted:!0,children:e})]}),l("div",{children:[n(b,{type:"h2",children:"Contacts"}),n(o,{className:"my-3",muted:!0,children:t&&n(c,{href:`mailto:${t}`,children:t})}),n(o,{muted:!0,children:i&&n(c,{href:`tel:${i}`,children:i})})]})]}):null}function H({socialLinks:e}){return e?l("div",{className:"w-full md:w-1/3 lg:w-full",children:[n(b,{type:"h2",fontSize:"2xl",className:"mb-2",children:"Socials"}),n(g,{gap:4,children:n(q,{socialLinks:e})})]}):null}function q({socialLinks:e}){return e?n(T.Fragment,{children:e==null?void 0:e.map(t=>{var i,r,u,p,a;return n(c,{"aria-label":(t==null?void 0:t.socialMedia)||(t==null?void 0:t.socialMediaPlatform)||"",className:"inline-block mr-4 rounded",target:"_blank",rel:"noopener noreferrer",href:(i=t==null?void 0:t.socialMediaLink)!=null?i:"/page-not-found",children:(r=t==null?void 0:t.socialMediaIcon)!=null&&r.image?n(L,{src:(u=t==null?void 0:t.socialMediaIcon)==null?void 0:u.image,width:24,height:24,alt:(a=(p=t==null?void 0:t.socialMediaIcon)==null?void 0:p.alt)!=null?a:"contact-socialMedia-icon"}):n(C,{social:t.socialMedia})},t==null?void 0:t._key)})}):null}function I({form:e}){return l("div",{className:"mb-6 text-center lg:mb-10",children:[e!=null&&e.subtitle?n(o,{muted:!0,children:e==null?void 0:e.subtitle}):null,e!=null&&e.name?n(b,{className:"text-2xl lg:text-2xl",children:e==null?void 0:e.name}):null]})}function A({form:e,block:t,blockCustomization:i}){var r,u,p;return e?l("div",{className:"w-full px-5 sm:px-10 lg:w-1/2 lg:px-0 lg:pl-10",children:[n(I,{form:e}),(e==null?void 0:e.fields)&&l(v,{id:(r=e==null?void 0:e.id)!=null?r:void 0,name:"Contact-VariantA-Form",className:"lg:mx-auto lg:max-w-md text-xs space-y-3 font-semibold",thankyouPage:s(e==null?void 0:e.thankYouPage),children:[(u=e==null?void 0:e.fields)==null?void 0:u.map((a,d)=>{var x,m;return n("div",{children:(a==null?void 0:a.type)==="inputCheckbox"?n(k,{noLabel:!0,name:(x=a==null?void 0:a.name)!=null?x:"",placeholder:a==null?void 0:a.placeholder,required:a==null?void 0:a.isRequired,...a}):n(k,{noLabel:!0,variant:"primary",name:(m=a==null?void 0:a.name)!=null?m:"",placeholder:a==null?void 0:a.name,required:a==null?void 0:a.isRequired,...a})},d)}),l("div",{className:"items-center sm:flex sm:justify-between",children:[t&&l("div",{className:"inline-flex mt-2",children:[n("input",{"aria-label":"Agree to terms",className:"mt-1 mr-2",type:"checkbox",id:"terms",name:"terms",defaultValue:1,required:!0}),n("span",{className:"text-sm text-gray-500 font-semibold",children:n(h,{value:t,components:i,onMissingComponent:!1})})]}),n("div",{children:n("div",{className:"webriq-recaptcha"})}),(e==null?void 0:e.buttonLabel)&&n(y,{as:"button",ariaLabel:(p=e==null?void 0:e.buttonLabel)!=null?p:"Contact form submit button",className:"inline-block px-6 py-2 mt-5 font-bold leading-loose text-white transition duration-200 rounded-global bg-primary hover:bg-primary-foreground sm:mt-0",type:"submit",children:e==null?void 0:e.buttonLabel})]})]})]}):null}var z={marks:{internalLink:({children:e,value:t})=>{var i;return n(c,{"aria-label":(i=t.href)!=null?i:"internal link",style:{color:"red"},href:t.slug.current,children:e})},link:({children:e,value:t})=>{var i,r;return t.blank?n(c,{"aria-label":(i=t.href)!=null?i:"external link",href:t.href,target:"_blank",rel:"noopener noreferrer",children:e}):n(c,{"aria-label":(r=t.href)!=null?r:"external link",style:{color:"blue"},href:t.href,children:e})}}};export{S as a};
@@ -1 +0,0 @@
1
- var r=e=>e?(e==null?void 0:e.linkType)==="linkInternal"?`/${e==null?void 0:e.internalLink}`:e==null?void 0:e.externalLink:"/thank-you";export{r as a};
@@ -1 +0,0 @@
1
- import{lazy as N}from"react";import{jsx as F}from"react/jsx-runtime";var S={variant_a:N(()=>import("./contact_a.mjs")),variant_b:N(()=>import("./contact_b.mjs"))},D="Contact",E=({data:n})=>{var r,c,e,s,t,f,m,l,p,u,v,k,b,y,g,L;let i=n==null?void 0:n.variant,o=i&&S[i],C={title:(c=(r=n==null?void 0:n.variants)==null?void 0:r.title)!=null?c:void 0,contactDescription:(s=(e=n==null?void 0:n.variants)==null?void 0:e.contactDescription)!=null?s:void 0,officeInformation:(f=(t=n==null?void 0:n.variants)==null?void 0:t.officeInformation)!=null?f:void 0,contactEmail:(l=(m=n==null?void 0:n.variants)==null?void 0:m.contactEmail)!=null?l:void 0,contactNumber:(u=(p=n==null?void 0:n.variants)==null?void 0:p.contactNumber)!=null?u:void 0,socialLinks:(k=(v=n==null?void 0:n.variants)==null?void 0:v.socialLinks)!=null?k:void 0,form:(y=(b=n==null?void 0:n.variants)==null?void 0:b.form)!=null?y:void 0,block:(L=(g=n==null?void 0:n.variants)==null?void 0:g.block)!=null?L:void 0};return o?F(o,{...C}):null};E.displayName=D;export{E as a};
package/dist/contact.d.ts DELETED
@@ -1,12 +0,0 @@
1
- import { SectionsProps, SocialLink, Form } from "./types";
2
- export interface ContactProps {
3
- title?: string;
4
- contactDescription?: string;
5
- officeInformation?: string;
6
- contactEmail?: string;
7
- contactNumber?: string;
8
- socialLinks?: SocialLink[];
9
- form?: Form;
10
- block?: any;
11
- }
12
- export declare const Contact: React.FC<SectionsProps>;
package/dist/contact.js DELETED
@@ -1 +0,0 @@
1
- "use strict";var le=Object.create;var k=Object.defineProperty;var ce=Object.getOwnPropertyDescriptor;var me=Object.getOwnPropertyNames;var ue=Object.getPrototypeOf,pe=Object.prototype.hasOwnProperty;var C=(e,n)=>()=>(e&&(n=e(e=0)),n);var N=(e,n)=>{for(var i in n)k(e,i,{get:n[i],enumerable:!0})},A=(e,n,i,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let l of me(n))!pe.call(e,l)&&l!==i&&k(e,l,{get:()=>n[l],enumerable:!(o=ce(n,l))||o.enumerable});return e};var V=(e,n,i)=>(i=e!=null?le(ue(e)):{},A(n||!e||!e.__esModule?k(i,"default",{value:e,enumerable:!0}):i,e)),se=e=>A(k({},"__esModule",{value:!0}),e);var $,E=C(()=>{"use strict";$=e=>e?(e==null?void 0:e.linkType)==="linkInternal"?`/${e==null?void 0:e.internalLink}`:e==null?void 0:e.externalLink:"/thank-you"});var U={};N(U,{Contact_A:()=>Q,default:()=>Q});function Q({contactDescription:e,officeInformation:n,contactEmail:i,contactNumber:o,socialLinks:l,form:c,block:r,title:u}){return(0,t.jsx)(G.Section,{className:"py-20 bg-background",children:(0,t.jsx)(W.Container,{maxWidth:1280,children:(0,t.jsxs)(x.Flex,{direction:"col",gap:8,justify:"between",className:"lg:flex-row",children:[(0,t.jsxs)(x.Flex,{direction:"col",gap:8,className:"px-10 x-full basis-1/2",children:[(0,t.jsx)(ge,{title:u,contactDescription:e}),(0,t.jsx)(be,{officeInformation:n,contactEmail:i,contactNumber:o}),(0,t.jsx)(xe,{socialLinks:l})]}),(0,t.jsx)(ke,{form:c,block:r,blockCustomization:he})]})})})}function ge({title:e,contactDescription:n}){return(0,t.jsxs)("div",{children:[e&&(0,t.jsx)(s.Heading,{children:e}),n&&(0,t.jsx)(p.Text,{muted:!0,className:"mt-5 leading-loose",children:n})]})}function be({officeInformation:e,contactEmail:n,contactNumber:i}){return e?(0,t.jsxs)(x.Flex,{gap:8,justify:"between",className:"flex-col x-full md:flex-row",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(s.Heading,{type:"h2",children:"Office"}),e&&(0,t.jsx)(p.Text,{className:"mt-3",muted:!0,children:e})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(s.Heading,{type:"h2",children:"Contacts"}),(0,t.jsx)(p.Text,{className:"my-3",muted:!0,children:n&&(0,t.jsx)(m.Link,{href:`mailto:${n}`,children:n})}),(0,t.jsx)(p.Text,{muted:!0,children:i&&(0,t.jsx)(m.Link,{href:`tel:${i}`,children:i})})]})]}):null}function xe({socialLinks:e}){return e?(0,t.jsxs)("div",{className:"x-full md:x-1/3 lg:x-full",children:[(0,t.jsx)(s.Heading,{type:"h2",fontSize:"2xl",className:"mb-2",children:"Socials"}),(0,t.jsx)(x.Flex,{gap:4,children:(0,t.jsx)(fe,{socialLinks:e})})]}):null}function fe({socialLinks:e}){return e?(0,t.jsx)(K.default.Fragment,{children:e==null?void 0:e.map(n=>{var i,o,l,c,r;return(0,t.jsx)(m.Link,{"aria-label":(n==null?void 0:n.socialMedia)||(n==null?void 0:n.socialMediaPlatform)||"",className:"inline-block mr-4 rounded",target:"_blank",rel:"noopener noreferrer",href:(i=n==null?void 0:n.socialMediaLink)!=null?i:"/page-not-found",children:(o=n==null?void 0:n.socialMediaIcon)!=null&&o.image?(0,t.jsx)(j.Image,{src:(l=n==null?void 0:n.socialMediaIcon)==null?void 0:l.image,width:24,height:24,alt:(r=(c=n==null?void 0:n.socialMediaIcon)==null?void 0:c.alt)!=null?r:"contact-socialMedia-icon"}):(0,t.jsx)(J.SocialIcons,{social:n.socialMedia})},n==null?void 0:n._key)})}):null}function de({form:e}){return(0,t.jsxs)("div",{className:"mb-6 text-center lg:mb-10",children:[e!=null&&e.subtitle?(0,t.jsx)(p.Text,{muted:!0,children:e==null?void 0:e.subtitle}):null,e!=null&&e.name?(0,t.jsx)(s.Heading,{className:"text-2xl lg:text-2xl",children:e==null?void 0:e.name}):null]})}function ke({form:e,block:n,blockCustomization:i}){var o,l,c;return e?(0,t.jsxs)("div",{className:"x-full px-5 sm:px-10 lg:x-1/2 lg:px-0 lg:pl-10",children:[(0,t.jsx)(de,{form:e}),(e==null?void 0:e.fields)&&(0,t.jsxs)(Y.Form,{id:(o=e==null?void 0:e.id)!=null?o:void 0,name:"Contact-VariantA-Form",className:"lg:mx-auto lg:max-x-md text-xs space-y-3 font-semibold",thankyouPage:$(e==null?void 0:e.thankYouPage),children:[(l=e==null?void 0:e.fields)==null?void 0:l.map((r,u)=>{var g,b;return(0,t.jsx)("div",{children:(r==null?void 0:r.type)==="inputCheckbox"?(0,t.jsx)(L.FormField,{noLabel:!0,name:(g=r==null?void 0:r.name)!=null?g:"",placeholder:r==null?void 0:r.placeholder,required:r==null?void 0:r.isRequired,...r}):(0,t.jsx)(L.FormField,{noLabel:!0,variant:"primary",name:(b=r==null?void 0:r.name)!=null?b:"",placeholder:r==null?void 0:r.name,required:r==null?void 0:r.isRequired,...r})},u)}),(0,t.jsxs)("div",{className:"items-center sm:flex sm:justify-between",children:[n&&(0,t.jsxs)("div",{className:"inline-flex mt-2",children:[(0,t.jsx)("input",{"aria-label":"Agree to terms",className:"mt-1 mr-2",type:"checkbox",id:"terms",name:"terms",defaultValue:1,required:!0}),(0,t.jsx)("span",{className:"text-sm text-gray-500 font-semibold",children:(0,t.jsx)(O.PortableText,{value:n,components:i,onMissingComponent:!1})})]}),(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:"webriq-recaptcha"})}),(e==null?void 0:e.buttonLabel)&&(0,t.jsx)(B.Button,{as:"button",ariaLabel:(c=e==null?void 0:e.buttonLabel)!=null?c:"Contact form submit button",className:"inline-block px-6 py-2 mt-5 font-bold leading-loose text-white transition duration-200 rounded-global bg-primary hover:bg-primary-foreground sm:mt-0",type:"submit",children:e==null?void 0:e.buttonLabel})]})]})]}):null}var O,B,W,x,Y,L,s,j,m,G,J,p,K,t,he,X=C(()=>{"use strict";O=require("@portabletext/react"),B=require("@stackshift-ui/button"),W=require("@stackshift-ui/container"),x=require("@stackshift-ui/flex"),Y=require("@stackshift-ui/form"),L=require("@stackshift-ui/form-field"),s=require("@stackshift-ui/heading"),j=require("@stackshift-ui/image"),m=require("@stackshift-ui/link"),G=require("@stackshift-ui/section"),J=require("@stackshift-ui/social-icons"),p=require("@stackshift-ui/text"),K=V(require("react"));E();t=require("react/jsx-runtime");he={marks:{internalLink:({children:e,value:n})=>{var i;return(0,t.jsx)(m.Link,{"aria-label":(i=n.href)!=null?i:"internal link",style:{color:"red"},href:n.slug.current,children:e})},link:({children:e,value:n})=>{var i,o;return n.blank?(0,t.jsx)(m.Link,{"aria-label":(i=n.href)!=null?i:"external link",href:n.href,target:"_blank",rel:"noopener noreferrer",children:e}):(0,t.jsx)(m.Link,{"aria-label":(o=n.href)!=null?o:"external link",style:{color:"blue"},href:n.href,children:e})}}}});var ie={};N(ie,{Contact_B:()=>te,default:()=>te});function te({title:e,contactDescription:n,officeInformation:i,contactNumber:o,contactEmail:l,socialLinks:c}){return(0,a.jsx)(G.Section,{className:"py-20 bg-background",children:(0,a.jsxs)(W.Container,{maxWidth:1280,children:[(0,a.jsx)(ye,{title:e,description:n}),(0,a.jsx)(W.Container,{maxWidth:960,children:(0,a.jsx)(Ce,{officeInformation:i,contactNumber:o,contactEmail:l,socialLinks:c})})]})})}function ye({title:e,description:n}){return(0,a.jsxs)("div",{className:"mb-16 text-center",children:[e?(0,a.jsx)(s.Heading,{type:"h1",fontSize:"3xl",children:e}):null,n?(0,a.jsx)(p.Text,{muted:!0,children:n}):null]})}function Ce({officeInformation:e,contactEmail:n,contactNumber:i,socialLinks:o}){return(0,a.jsxs)(x.Flex,{className:"flex-col lg:flex-row",gap:4,justify:"between",align:"stretch",children:[e?(0,a.jsx)(Ne,{officeInformation:e}):null,n||i?(0,a.jsx)(Le,{contactEmail:n,contactNumber:i}):null,o?(0,a.jsx)(ve,{socialLinks:o}):null]})}function Ne({officeInformation:e}){return(0,a.jsxs)(y.Card,{className:"x-full p-12 text-center bg-white md:p-16 lg:p-20",children:[(0,a.jsx)(s.Heading,{type:"h2",fontSize:"2xl",className:"mb-16",children:"Office"}),(0,a.jsx)(p.Text,{muted:!0,children:e})]})}function Le({contactEmail:e,contactNumber:n}){return(0,a.jsxs)(y.Card,{className:"x-full p-12 bg-white md:p-16 lg:p-20 text-center",children:[(0,a.jsx)(s.Heading,{type:"h2",fontSize:"2xl",className:"mb-16 ",children:"Contacts"}),(0,a.jsx)(p.Text,{className:"mb-2",muted:!0,children:e?(0,a.jsx)(m.Link,{href:`mailto:${e}`,children:e}):null}),(0,a.jsx)(p.Text,{muted:!0,children:n?(0,a.jsx)(m.Link,{href:`tel:${n}`,children:n}):null})]})}function ve({socialLinks:e}){return(0,a.jsxs)(y.Card,{className:"x-full p-12 text-center bg-white md:p-16 lg:p-20",children:[(0,a.jsx)(s.Heading,{className:"mb-16",fontSize:"2xl",type:"h2",children:"Socials"}),(0,a.jsx)(x.Flex,{justify:"center",wrap:!0,children:(0,a.jsx)(we,{socialLinks:e})})]})}function we({socialLinks:e}){return e?(0,a.jsx)(ne.default.Fragment,{children:e==null?void 0:e.map(n=>{var i,o,l,c,r;return(0,a.jsx)(m.Link,{"aria-label":(n==null?void 0:n.socialMedia)||(n==null?void 0:n.socialMediaPlatform)||"",className:"inline-block mr-4 mb-4 rounded",target:"_blank",rel:"noopener noreferrer",href:(i=n==null?void 0:n.socialMediaLink)!=null?i:"/page-not-found",children:(o=n==null?void 0:n.socialMediaIcon)!=null&&o.image?(0,a.jsx)(j.Image,{src:(l=n==null?void 0:n.socialMediaIcon)==null?void 0:l.image,width:24,height:24,alt:(r=(c=n==null?void 0:n.socialMediaIcon)==null?void 0:c.alt)!=null?r:"contact-socialMedia-icon"}):(0,a.jsx)(J.SocialIcons,{social:n.socialMedia})},n==null?void 0:n._key)})}):null}var y,W,x,s,j,m,G,J,p,ne,a,re=C(()=>{"use strict";y=require("@stackshift-ui/card"),ne=V(require("react")),a=require("react/jsx-runtime")});var Te={};N(Te,{Contact:()=>ae});module.exports=se(Te);var S=require("react"),Se={variant_a:(0,S.lazy)(()=>Promise.resolve().then(()=>(X(),U))),variant_b:(0,S.lazy)(()=>Promise.resolve().then(()=>(re(),ie)))},Ie="Contact",ae=({data:e})=>{var l,c,r,u,g,b,I,T,M,P,H,z,_,D,R,q;let n=e==null?void 0:e.variant,i=n&&Se[n],o={title:(c=(l=e==null?void 0:e.variants)==null?void 0:l.title)!=null?c:void 0,contactDescription:(u=(r=e==null?void 0:e.variants)==null?void 0:r.contactDescription)!=null?u:void 0,officeInformation:(b=(g=e==null?void 0:e.variants)==null?void 0:g.officeInformation)!=null?b:void 0,contactEmail:(T=(I=e==null?void 0:e.variants)==null?void 0:I.contactEmail)!=null?T:void 0,contactNumber:(P=(M=e==null?void 0:e.variants)==null?void 0:M.contactNumber)!=null?P:void 0,socialLinks:(z=(H=e==null?void 0:e.variants)==null?void 0:H.socialLinks)!=null?z:void 0,form:(D=(_=e==null?void 0:e.variants)==null?void 0:_.form)!=null?D:void 0,block:(q=(R=e==null?void 0:e.variants)==null?void 0:R.block)!=null?q:void 0};return i?(0,a.jsx)(i,{...o}):null};ae.displayName=Ie;0&&(module.exports={Contact});
package/dist/contact.mjs DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-UM52ZZHP.mjs";export{a as Contact};
@@ -1,3 +0,0 @@
1
- import { ContactProps } from ".";
2
- export default function Contact_A({ contactDescription, officeInformation, contactEmail, contactNumber, socialLinks, form, block, title, }: ContactProps): import("react/jsx-runtime").JSX.Element;
3
- export { Contact_A };
package/dist/contact_a.js DELETED
@@ -1 +0,0 @@
1
- "use strict";var M=Object.create;var g=Object.defineProperty;var H=Object.getOwnPropertyDescriptor;var I=Object.getOwnPropertyNames;var q=Object.getPrototypeOf,A=Object.prototype.hasOwnProperty;var z=(e,t)=>{for(var i in t)g(e,i,{get:t[i],enumerable:!0})},h=(e,t,i,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of I(t))!A.call(e,l)&&l!==i&&g(e,l,{get:()=>t[l],enumerable:!(r=H(t,l))||r.enumerable});return e};var R=(e,t,i)=>(i=e!=null?M(q(e)):{},h(t||!e||!e.__esModule?g(i,"default",{value:e,enumerable:!0}):i,e)),_=e=>h(g({},"__esModule",{value:!0}),e);var W={};z(W,{Contact_A:()=>S,default:()=>S});module.exports=_(W);var y=require("@portabletext/react"),L=require("@stackshift-ui/button"),N=require("@stackshift-ui/container"),b=require("@stackshift-ui/flex"),v=require("@stackshift-ui/form"),x=require("@stackshift-ui/form-field"),c=require("@stackshift-ui/heading"),w=require("@stackshift-ui/image"),p=require("@stackshift-ui/link"),C=require("@stackshift-ui/section"),T=require("@stackshift-ui/social-icons"),o=require("@stackshift-ui/text"),P=R(require("react"));var k=e=>e?(e==null?void 0:e.linkType)==="linkInternal"?`/${e==null?void 0:e.internalLink}`:e==null?void 0:e.externalLink:"/thank-you";var n=require("react/jsx-runtime");function S({contactDescription:e,officeInformation:t,contactEmail:i,contactNumber:r,socialLinks:l,form:u,block:a,title:d}){return(0,n.jsx)(C.Section,{className:"py-20 bg-background",children:(0,n.jsx)(N.Container,{maxWidth:1280,children:(0,n.jsxs)(b.Flex,{direction:"col",gap:8,justify:"between",className:"lg:flex-row",children:[(0,n.jsxs)(b.Flex,{direction:"col",gap:8,className:"px-10 w-full basis-1/2",children:[(0,n.jsx)(D,{title:d,contactDescription:e}),(0,n.jsx)(Y,{officeInformation:t,contactEmail:i,contactNumber:r}),(0,n.jsx)($,{socialLinks:l})]}),(0,n.jsx)(O,{form:u,block:a,blockCustomization:V})]})})})}function D({title:e,contactDescription:t}){return(0,n.jsxs)("div",{children:[e&&(0,n.jsx)(c.Heading,{children:e}),t&&(0,n.jsx)(o.Text,{muted:!0,className:"mt-5 leading-loose",children:t})]})}function Y({officeInformation:e,contactEmail:t,contactNumber:i}){return e?(0,n.jsxs)(b.Flex,{gap:8,justify:"between",className:"flex-col w-full md:flex-row",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(c.Heading,{type:"h2",children:"Office"}),e&&(0,n.jsx)(o.Text,{className:"mt-3",muted:!0,children:e})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(c.Heading,{type:"h2",children:"Contacts"}),(0,n.jsx)(o.Text,{className:"my-3",muted:!0,children:t&&(0,n.jsx)(p.Link,{href:`mailto:${t}`,children:t})}),(0,n.jsx)(o.Text,{muted:!0,children:i&&(0,n.jsx)(p.Link,{href:`tel:${i}`,children:i})})]})]}):null}function $({socialLinks:e}){return e?(0,n.jsxs)("div",{className:"w-full md:w-1/3 lg:w-full",children:[(0,n.jsx)(c.Heading,{type:"h2",fontSize:"2xl",className:"mb-2",children:"Socials"}),(0,n.jsx)(b.Flex,{gap:4,children:(0,n.jsx)(j,{socialLinks:e})})]}):null}function j({socialLinks:e}){return e?(0,n.jsx)(P.default.Fragment,{children:e==null?void 0:e.map(t=>{var i,r,l,u,a;return(0,n.jsx)(p.Link,{"aria-label":(t==null?void 0:t.socialMedia)||(t==null?void 0:t.socialMediaPlatform)||"",className:"inline-block mr-4 rounded",target:"_blank",rel:"noopener noreferrer",href:(i=t==null?void 0:t.socialMediaLink)!=null?i:"/page-not-found",children:(r=t==null?void 0:t.socialMediaIcon)!=null&&r.image?(0,n.jsx)(w.Image,{src:(l=t==null?void 0:t.socialMediaIcon)==null?void 0:l.image,width:24,height:24,alt:(a=(u=t==null?void 0:t.socialMediaIcon)==null?void 0:u.alt)!=null?a:"contact-socialMedia-icon"}):(0,n.jsx)(T.SocialIcons,{social:t.socialMedia})},t==null?void 0:t._key)})}):null}function B({form:e}){return(0,n.jsxs)("div",{className:"mb-6 text-center lg:mb-10",children:[e!=null&&e.subtitle?(0,n.jsx)(o.Text,{muted:!0,children:e==null?void 0:e.subtitle}):null,e!=null&&e.name?(0,n.jsx)(c.Heading,{className:"text-2xl lg:text-2xl",children:e==null?void 0:e.name}):null]})}function O({form:e,block:t,blockCustomization:i}){var r,l,u;return e?(0,n.jsxs)("div",{className:"w-full px-5 sm:px-10 lg:w-1/2 lg:px-0 lg:pl-10",children:[(0,n.jsx)(B,{form:e}),(e==null?void 0:e.fields)&&(0,n.jsxs)(v.Form,{id:(r=e==null?void 0:e.id)!=null?r:void 0,name:"Contact-VariantA-Form",className:"lg:mx-auto lg:max-w-md text-xs space-y-3 font-semibold",thankyouPage:k(e==null?void 0:e.thankYouPage),children:[(l=e==null?void 0:e.fields)==null?void 0:l.map((a,d)=>{var s,m;return(0,n.jsx)("div",{children:(a==null?void 0:a.type)==="inputCheckbox"?(0,n.jsx)(x.FormField,{noLabel:!0,name:(s=a==null?void 0:a.name)!=null?s:"",placeholder:a==null?void 0:a.placeholder,required:a==null?void 0:a.isRequired,...a}):(0,n.jsx)(x.FormField,{noLabel:!0,variant:"primary",name:(m=a==null?void 0:a.name)!=null?m:"",placeholder:a==null?void 0:a.name,required:a==null?void 0:a.isRequired,...a})},d)}),(0,n.jsxs)("div",{className:"items-center sm:flex sm:justify-between",children:[t&&(0,n.jsxs)("div",{className:"inline-flex mt-2",children:[(0,n.jsx)("input",{"aria-label":"Agree to terms",className:"mt-1 mr-2",type:"checkbox",id:"terms",name:"terms",defaultValue:1,required:!0}),(0,n.jsx)("span",{className:"text-sm text-gray-500 font-semibold",children:(0,n.jsx)(y.PortableText,{value:t,components:i,onMissingComponent:!1})})]}),(0,n.jsx)("div",{children:(0,n.jsx)("div",{className:"webriq-recaptcha"})}),(e==null?void 0:e.buttonLabel)&&(0,n.jsx)(L.Button,{as:"button",ariaLabel:(u=e==null?void 0:e.buttonLabel)!=null?u:"Contact form submit button",className:"inline-block px-6 py-2 mt-5 font-bold leading-loose text-white transition duration-200 rounded-global bg-primary hover:bg-primary-foreground sm:mt-0",type:"submit",children:e==null?void 0:e.buttonLabel})]})]})]}):null}var V={marks:{internalLink:({children:e,value:t})=>{var i;return(0,n.jsx)(p.Link,{"aria-label":(i=t.href)!=null?i:"internal link",style:{color:"red"},href:t.slug.current,children:e})},link:({children:e,value:t})=>{var i,r;return t.blank?(0,n.jsx)(p.Link,{"aria-label":(i=t.href)!=null?i:"external link",href:t.href,target:"_blank",rel:"noopener noreferrer",children:e}):(0,n.jsx)(p.Link,{"aria-label":(r=t.href)!=null?r:"external link",style:{color:"blue"},href:t.href,children:e})}}};0&&(module.exports={Contact_A});
@@ -1 +0,0 @@
1
- import{a}from"./chunk-JWY2XRFB.mjs";import"./chunk-LN2UUYYP.mjs";export{a as Contact_A,a as default};
@@ -1,3 +0,0 @@
1
- import { ContactProps } from ".";
2
- export default function Contact_B({ title, contactDescription, officeInformation, contactNumber, contactEmail, socialLinks, }: ContactProps): import("react/jsx-runtime").JSX.Element;
3
- export { Contact_B };
package/dist/contact_b.js DELETED
@@ -1 +0,0 @@
1
- "use strict";var y=Object.create;var l=Object.defineProperty;var N=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var w=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty;var L=(e,t)=>{for(var r in t)l(e,r,{get:t[r],enumerable:!0})},x=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of S(t))!I.call(e,i)&&i!==r&&l(e,i,{get:()=>t[i],enumerable:!(a=N(t,i))||a.enumerable});return e};var M=(e,t,r)=>(r=e!=null?y(w(e)):{},x(t||!e||!e.__esModule?l(r,"default",{value:e,enumerable:!0}):r,e)),H=e=>x(l({},"__esModule",{value:!0}),e);var O={};L(O,{Contact_B:()=>k,default:()=>k});module.exports=H(O);var p=require("@stackshift-ui/card"),u=require("@stackshift-ui/container"),c=require("@stackshift-ui/flex"),o=require("@stackshift-ui/heading"),C=require("@stackshift-ui/image"),d=require("@stackshift-ui/link"),b=require("@stackshift-ui/section"),h=require("@stackshift-ui/social-icons"),m=require("@stackshift-ui/text"),s=M(require("react")),n=require("react/jsx-runtime");function k({title:e,contactDescription:t,officeInformation:r,contactNumber:a,contactEmail:i,socialLinks:f}){return(0,n.jsx)(b.Section,{className:"py-20 bg-background",children:(0,n.jsxs)(u.Container,{maxWidth:1280,children:[(0,n.jsx)(F,{title:e,description:t}),(0,n.jsx)(u.Container,{maxWidth:960,children:(0,n.jsx)(T,{officeInformation:r,contactNumber:a,contactEmail:i,socialLinks:f})})]})})}function F({title:e,description:t}){return(0,n.jsxs)("div",{className:"mb-16 text-center",children:[e?(0,n.jsx)(o.Heading,{type:"h1",fontSize:"3xl",children:e}):null,t?(0,n.jsx)(m.Text,{muted:!0,children:t}):null]})}function T({officeInformation:e,contactEmail:t,contactNumber:r,socialLinks:a}){return(0,n.jsxs)(c.Flex,{className:"flex-col lg:flex-row",gap:4,justify:"between",align:"stretch",children:[e?(0,n.jsx)(z,{officeInformation:e}):null,t||r?(0,n.jsx)(P,{contactEmail:t,contactNumber:r}):null,a?(0,n.jsx)(_,{socialLinks:a}):null]})}function z({officeInformation:e}){return(0,n.jsxs)(p.Card,{className:"w-full p-12 text-center bg-white md:p-16 lg:p-20",children:[(0,n.jsx)(o.Heading,{type:"h2",fontSize:"2xl",className:"mb-16",children:"Office"}),(0,n.jsx)(m.Text,{muted:!0,children:e})]})}function P({contactEmail:e,contactNumber:t}){return(0,n.jsxs)(p.Card,{className:"w-full p-12 bg-white md:p-16 lg:p-20 text-center",children:[(0,n.jsx)(o.Heading,{type:"h2",fontSize:"2xl",className:"mb-16 ",children:"Contacts"}),(0,n.jsx)(m.Text,{className:"mb-2",muted:!0,children:e?(0,n.jsx)(d.Link,{href:`mailto:${e}`,children:e}):null}),(0,n.jsx)(m.Text,{muted:!0,children:t?(0,n.jsx)(d.Link,{href:`tel:${t}`,children:t}):null})]})}function _({socialLinks:e}){return(0,n.jsxs)(p.Card,{className:"w-full p-12 text-center bg-white md:p-16 lg:p-20",children:[(0,n.jsx)(o.Heading,{className:"mb-16",fontSize:"2xl",type:"h2",children:"Socials"}),(0,n.jsx)(c.Flex,{justify:"center",wrap:!0,children:(0,n.jsx)(v,{socialLinks:e})})]})}function v({socialLinks:e}){return e?(0,n.jsx)(s.default.Fragment,{children:e==null?void 0:e.map(t=>{var r,a,i,f,g;return(0,n.jsx)(d.Link,{"aria-label":(t==null?void 0:t.socialMedia)||(t==null?void 0:t.socialMediaPlatform)||"",className:"inline-block mr-4 mb-4 rounded",target:"_blank",rel:"noopener noreferrer",href:(r=t==null?void 0:t.socialMediaLink)!=null?r:"/page-not-found",children:(a=t==null?void 0:t.socialMediaIcon)!=null&&a.image?(0,n.jsx)(C.Image,{src:(i=t==null?void 0:t.socialMediaIcon)==null?void 0:i.image,width:24,height:24,alt:(g=(f=t==null?void 0:t.socialMediaIcon)==null?void 0:f.alt)!=null?g:"contact-socialMedia-icon"}):(0,n.jsx)(h.SocialIcons,{social:t.socialMedia})},t==null?void 0:t._key)})}):null}0&&(module.exports={Contact_B});
@@ -1 +0,0 @@
1
- import{a}from"./chunk-3QHQ6W3V.mjs";export{a as Contact_B,a as default};
@@ -1 +0,0 @@
1
- export declare const thankYouPageLink: (link: any) => any;
@@ -1 +0,0 @@
1
- "use strict";var u=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var L=Object.prototype.hasOwnProperty;var f=(e,r)=>{for(var a in r)u(e,a,{get:r[a],enumerable:!0})},h=(e,r,a,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of y(r))!L.call(e,t)&&t!==a&&u(e,t,{get:()=>r[t],enumerable:!(o=s(r,t))||o.enumerable});return e};var n=e=>h(u({},"__esModule",{value:!0}),e);var x={};f(x,{thankYouPageLink:()=>p});module.exports=n(x);var p=e=>e?(e==null?void 0:e.linkType)==="linkInternal"?`/${e==null?void 0:e.internalLink}`:e==null?void 0:e.externalLink:"/thank-you";0&&(module.exports={thankYouPageLink});
@@ -1 +0,0 @@
1
- import{a}from"../chunk-LN2UUYYP.mjs";export{a as thankYouPageLink};
package/dist/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from "./contact";
2
- export * from "./contact_a";
3
- export * from "./contact_b";
package/dist/index.js DELETED
@@ -1,2 +0,0 @@
1
- "use client";
2
- "use strict";var le=Object.create;var k=Object.defineProperty;var ce=Object.getOwnPropertyDescriptor;var me=Object.getOwnPropertyNames;var ue=Object.getPrototypeOf,pe=Object.prototype.hasOwnProperty;var C=(e,t)=>()=>(e&&(t=e(e=0)),t);var N=(e,t)=>{for(var i in t)k(e,i,{get:t[i],enumerable:!0})},O=(e,t,i,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of me(t))!pe.call(e,l)&&l!==i&&k(e,l,{get:()=>t[l],enumerable:!(o=ce(t,l))||o.enumerable});return e};var B=(e,t,i)=>(i=e!=null?le(ue(e)):{},O(t||!e||!e.__esModule?k(i,"default",{value:e,enumerable:!0}):i,e)),se=e=>O(k({},"__esModule",{value:!0}),e);var W,Y=C(()=>{"use strict";W=e=>e?(e==null?void 0:e.linkType)==="linkInternal"?`/${e==null?void 0:e.internalLink}`:e==null?void 0:e.externalLink:"/thank-you"});var F={};N(F,{Contact_A:()=>v,default:()=>v});function v({contactDescription:e,officeInformation:t,contactEmail:i,contactNumber:o,socialLinks:l,form:c,block:r,title:u}){return(0,n.jsx)(U.Section,{className:"py-20 bg-background",children:(0,n.jsx)(J.Container,{maxWidth:1280,children:(0,n.jsxs)(x.Flex,{direction:"col",gap:8,justify:"between",className:"lg:flex-row",children:[(0,n.jsxs)(x.Flex,{direction:"col",gap:8,className:"px-10 w-full basis-1/2",children:[(0,n.jsx)(ge,{title:u,contactDescription:e}),(0,n.jsx)(be,{officeInformation:t,contactEmail:i,contactNumber:o}),(0,n.jsx)(xe,{socialLinks:l})]}),(0,n.jsx)(ke,{form:c,block:r,blockCustomization:he})]})})})}function ge({title:e,contactDescription:t}){return(0,n.jsxs)("div",{children:[e&&(0,n.jsx)(s.Heading,{children:e}),t&&(0,n.jsx)(p.Text,{muted:!0,className:"mt-5 leading-loose",children:t})]})}function be({officeInformation:e,contactEmail:t,contactNumber:i}){return e?(0,n.jsxs)(x.Flex,{gap:8,justify:"between",className:"flex-col w-full md:flex-row",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(s.Heading,{type:"h2",children:"Office"}),e&&(0,n.jsx)(p.Text,{className:"mt-3",muted:!0,children:e})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(s.Heading,{type:"h2",children:"Contacts"}),(0,n.jsx)(p.Text,{className:"my-3",muted:!0,children:t&&(0,n.jsx)(m.Link,{href:`mailto:${t}`,children:t})}),(0,n.jsx)(p.Text,{muted:!0,children:i&&(0,n.jsx)(m.Link,{href:`tel:${i}`,children:i})})]})]}):null}function xe({socialLinks:e}){return e?(0,n.jsxs)("div",{className:"w-full md:w-1/3 lg:w-full",children:[(0,n.jsx)(s.Heading,{type:"h2",fontSize:"2xl",className:"mb-2",children:"Socials"}),(0,n.jsx)(x.Flex,{gap:4,children:(0,n.jsx)(fe,{socialLinks:e})})]}):null}function fe({socialLinks:e}){return e?(0,n.jsx)(Z.default.Fragment,{children:e==null?void 0:e.map(t=>{var i,o,l,c,r;return(0,n.jsx)(m.Link,{"aria-label":(t==null?void 0:t.socialMedia)||(t==null?void 0:t.socialMediaPlatform)||"",className:"inline-block mr-4 rounded",target:"_blank",rel:"noopener noreferrer",href:(i=t==null?void 0:t.socialMediaLink)!=null?i:"/page-not-found",children:(o=t==null?void 0:t.socialMediaIcon)!=null&&o.image?(0,n.jsx)(Q.Image,{src:(l=t==null?void 0:t.socialMediaIcon)==null?void 0:l.image,width:24,height:24,alt:(r=(c=t==null?void 0:t.socialMediaIcon)==null?void 0:c.alt)!=null?r:"contact-socialMedia-icon"}):(0,n.jsx)(X.SocialIcons,{social:t.socialMedia})},t==null?void 0:t._key)})}):null}function de({form:e}){return(0,n.jsxs)("div",{className:"mb-6 text-center lg:mb-10",children:[e!=null&&e.subtitle?(0,n.jsx)(p.Text,{muted:!0,children:e==null?void 0:e.subtitle}):null,e!=null&&e.name?(0,n.jsx)(s.Heading,{className:"text-2xl lg:text-2xl",children:e==null?void 0:e.name}):null]})}function ke({form:e,block:t,blockCustomization:i}){var o,l,c;return e?(0,n.jsxs)("div",{className:"w-full px-5 sm:px-10 lg:w-1/2 lg:px-0 lg:pl-10",children:[(0,n.jsx)(de,{form:e}),(e==null?void 0:e.fields)&&(0,n.jsxs)(K.Form,{id:(o=e==null?void 0:e.id)!=null?o:void 0,name:"Contact-VariantA-Form",className:"lg:mx-auto lg:max-w-md text-xs space-y-3 font-semibold",thankyouPage:W(e==null?void 0:e.thankYouPage),children:[(l=e==null?void 0:e.fields)==null?void 0:l.map((r,u)=>{var g,b;return(0,n.jsx)("div",{children:(r==null?void 0:r.type)==="inputCheckbox"?(0,n.jsx)(L.FormField,{noLabel:!0,name:(g=r==null?void 0:r.name)!=null?g:"",placeholder:r==null?void 0:r.placeholder,required:r==null?void 0:r.isRequired,...r}):(0,n.jsx)(L.FormField,{noLabel:!0,variant:"primary",name:(b=r==null?void 0:r.name)!=null?b:"",placeholder:r==null?void 0:r.name,required:r==null?void 0:r.isRequired,...r})},u)}),(0,n.jsxs)("div",{className:"items-center sm:flex sm:justify-between",children:[t&&(0,n.jsxs)("div",{className:"inline-flex mt-2",children:[(0,n.jsx)("input",{"aria-label":"Agree to terms",className:"mt-1 mr-2",type:"checkbox",id:"terms",name:"terms",defaultValue:1,required:!0}),(0,n.jsx)("span",{className:"text-sm text-gray-500 font-semibold",children:(0,n.jsx)(j.PortableText,{value:t,components:i,onMissingComponent:!1})})]}),(0,n.jsx)("div",{children:(0,n.jsx)("div",{className:"webriq-recaptcha"})}),(e==null?void 0:e.buttonLabel)&&(0,n.jsx)(G.Button,{as:"button",ariaLabel:(c=e==null?void 0:e.buttonLabel)!=null?c:"Contact form submit button",className:"inline-block px-6 py-2 mt-5 font-bold leading-loose text-white transition duration-200 rounded-global bg-primary hover:bg-primary-foreground sm:mt-0",type:"submit",children:e==null?void 0:e.buttonLabel})]})]})]}):null}var j,G,J,x,K,L,s,Q,m,U,X,p,Z,n,he,w=C(()=>{"use strict";j=require("@portabletext/react"),G=require("@stackshift-ui/button"),J=require("@stackshift-ui/container"),x=require("@stackshift-ui/flex"),K=require("@stackshift-ui/form"),L=require("@stackshift-ui/form-field"),s=require("@stackshift-ui/heading"),Q=require("@stackshift-ui/image"),m=require("@stackshift-ui/link"),U=require("@stackshift-ui/section"),X=require("@stackshift-ui/social-icons"),p=require("@stackshift-ui/text"),Z=B(require("react"));Y();n=require("react/jsx-runtime");he={marks:{internalLink:({children:e,value:t})=>{var i;return(0,n.jsx)(m.Link,{"aria-label":(i=t.href)!=null?i:"internal link",style:{color:"red"},href:t.slug.current,children:e})},link:({children:e,value:t})=>{var i,o;return t.blank?(0,n.jsx)(m.Link,{"aria-label":(i=t.href)!=null?i:"external link",href:t.href,target:"_blank",rel:"noopener noreferrer",children:e}):(0,n.jsx)(m.Link,{"aria-label":(o=t.href)!=null?o:"external link",style:{color:"blue"},href:t.href,children:e})}}}});var re={};N(re,{Contact_B:()=>T,default:()=>T});function T({title:e,contactDescription:t,officeInformation:i,contactNumber:o,contactEmail:l,socialLinks:c}){return(0,a.jsx)(U.Section,{className:"py-20 bg-background",children:(0,a.jsxs)(J.Container,{maxWidth:1280,children:[(0,a.jsx)(ye,{title:e,description:t}),(0,a.jsx)(J.Container,{maxWidth:960,children:(0,a.jsx)(Ce,{officeInformation:i,contactNumber:o,contactEmail:l,socialLinks:c})})]})})}function ye({title:e,description:t}){return(0,a.jsxs)("div",{className:"mb-16 text-center",children:[e?(0,a.jsx)(s.Heading,{type:"h1",fontSize:"3xl",children:e}):null,t?(0,a.jsx)(p.Text,{muted:!0,children:t}):null]})}function Ce({officeInformation:e,contactEmail:t,contactNumber:i,socialLinks:o}){return(0,a.jsxs)(x.Flex,{className:"flex-col lg:flex-row",gap:4,justify:"between",align:"stretch",children:[e?(0,a.jsx)(Ne,{officeInformation:e}):null,t||i?(0,a.jsx)(Le,{contactEmail:t,contactNumber:i}):null,o?(0,a.jsx)(ve,{socialLinks:o}):null]})}function Ne({officeInformation:e}){return(0,a.jsxs)(y.Card,{className:"w-full p-12 text-center bg-white md:p-16 lg:p-20",children:[(0,a.jsx)(s.Heading,{type:"h2",fontSize:"2xl",className:"mb-16",children:"Office"}),(0,a.jsx)(p.Text,{muted:!0,children:e})]})}function Le({contactEmail:e,contactNumber:t}){return(0,a.jsxs)(y.Card,{className:"w-full p-12 bg-white md:p-16 lg:p-20 text-center",children:[(0,a.jsx)(s.Heading,{type:"h2",fontSize:"2xl",className:"mb-16 ",children:"Contacts"}),(0,a.jsx)(p.Text,{className:"mb-2",muted:!0,children:e?(0,a.jsx)(m.Link,{href:`mailto:${e}`,children:e}):null}),(0,a.jsx)(p.Text,{muted:!0,children:t?(0,a.jsx)(m.Link,{href:`tel:${t}`,children:t}):null})]})}function ve({socialLinks:e}){return(0,a.jsxs)(y.Card,{className:"w-full p-12 text-center bg-white md:p-16 lg:p-20",children:[(0,a.jsx)(s.Heading,{className:"mb-16",fontSize:"2xl",type:"h2",children:"Socials"}),(0,a.jsx)(x.Flex,{justify:"center",wrap:!0,children:(0,a.jsx)(we,{socialLinks:e})})]})}function we({socialLinks:e}){return e?(0,a.jsx)(ie.default.Fragment,{children:e==null?void 0:e.map(t=>{var i,o,l,c,r;return(0,a.jsx)(m.Link,{"aria-label":(t==null?void 0:t.socialMedia)||(t==null?void 0:t.socialMediaPlatform)||"",className:"inline-block mr-4 mb-4 rounded",target:"_blank",rel:"noopener noreferrer",href:(i=t==null?void 0:t.socialMediaLink)!=null?i:"/page-not-found",children:(o=t==null?void 0:t.socialMediaIcon)!=null&&o.image?(0,a.jsx)(Q.Image,{src:(l=t==null?void 0:t.socialMediaIcon)==null?void 0:l.image,width:24,height:24,alt:(r=(c=t==null?void 0:t.socialMediaIcon)==null?void 0:c.alt)!=null?r:"contact-socialMedia-icon"}):(0,a.jsx)(X.SocialIcons,{social:t.socialMedia})},t==null?void 0:t._key)})}):null}var y,J,x,s,Q,m,U,X,p,ie,a,M=C(()=>{"use strict";y=require("@stackshift-ui/card"),ie=B(require("react")),a=require("react/jsx-runtime")});var Te={};N(Te,{Contact:()=>ae,Contact_A:()=>v,Contact_B:()=>T});module.exports=se(Te);var P=require("react"),Se={variant_a:(0,P.lazy)(()=>Promise.resolve().then(()=>(w(),F))),variant_b:(0,P.lazy)(()=>Promise.resolve().then(()=>(M(),re)))},Ie="Contact",ae=({data:e})=>{var l,c,r,u,g,b,H,z,_,D,R,q,A,V,$,E;let t=e==null?void 0:e.variant,i=t&&Se[t],o={title:(c=(l=e==null?void 0:e.variants)==null?void 0:l.title)!=null?c:void 0,contactDescription:(u=(r=e==null?void 0:e.variants)==null?void 0:r.contactDescription)!=null?u:void 0,officeInformation:(b=(g=e==null?void 0:e.variants)==null?void 0:g.officeInformation)!=null?b:void 0,contactEmail:(z=(H=e==null?void 0:e.variants)==null?void 0:H.contactEmail)!=null?z:void 0,contactNumber:(D=(_=e==null?void 0:e.variants)==null?void 0:_.contactNumber)!=null?D:void 0,socialLinks:(q=(R=e==null?void 0:e.variants)==null?void 0:R.socialLinks)!=null?q:void 0,form:(V=(A=e==null?void 0:e.variants)==null?void 0:A.form)!=null?V:void 0,block:(E=($=e==null?void 0:e.variants)==null?void 0:$.block)!=null?E:void 0};return i?(0,a.jsx)(i,{...o}):null};ae.displayName=Ie;w();M();0&&(module.exports={Contact,Contact_A,Contact_B});
package/dist/index.mjs DELETED
@@ -1,2 +0,0 @@
1
- "use client";
2
- "use strict";import{a as e}from"./chunk-UM52ZZHP.mjs";import{a as o}from"./chunk-JWY2XRFB.mjs";import{a as r}from"./chunk-3QHQ6W3V.mjs";import"./chunk-LN2UUYYP.mjs";export{e as Contact,o as Contact_A,r as Contact_B};
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);