@stackshift-ui/contact 7.0.0-beta.6 → 7.0.0-beta.8
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 +17 -17
- package/dist/chunk-3QHQ6W3V.mjs +0 -1
- package/dist/chunk-FQDJZ4M5.mjs +0 -1
- package/dist/chunk-LN2UUYYP.mjs +0 -1
- package/dist/chunk-UKEPZSNA.mjs +0 -1
- package/dist/contact.d.ts +0 -13
- package/dist/contact.js +0 -1
- package/dist/contact.mjs +0 -1
- package/dist/contact_a.d.ts +0 -3
- package/dist/contact_a.js +0 -1
- package/dist/contact_a.mjs +0 -1
- package/dist/contact_b.d.ts +0 -3
- package/dist/contact_b.js +0 -1
- package/dist/contact_b.mjs +0 -1
- package/dist/helper/index.d.ts +0 -1
- package/dist/helper/index.js +0 -1
- package/dist/helper/index.mjs +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -2
- package/dist/index.mjs +0 -2
- package/dist/types.d.ts +0 -362
- package/dist/types.js +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackshift-ui/contact",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "7.0.0-beta.
|
|
4
|
+
"version": "7.0.0-beta.8",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -35,24 +35,24 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@portabletext/react": "^3.1.0",
|
|
37
37
|
"classnames": "^2.5.1",
|
|
38
|
-
"@stackshift-ui/
|
|
39
|
-
"@stackshift-ui/
|
|
40
|
-
"@stackshift-ui/
|
|
41
|
-
"@stackshift-ui/
|
|
42
|
-
"@stackshift-ui/
|
|
43
|
-
"@stackshift-ui/image": "
|
|
44
|
-
"@stackshift-ui/
|
|
45
|
-
"@stackshift-ui/
|
|
46
|
-
"@stackshift-ui/
|
|
47
|
-
"@stackshift-ui/
|
|
48
|
-
"@stackshift-ui/
|
|
49
|
-
"@stackshift-ui/
|
|
50
|
-
"@stackshift-ui/system": "
|
|
51
|
-
"@stackshift-ui/
|
|
52
|
-
"@stackshift-ui/
|
|
38
|
+
"@stackshift-ui/card": "7.0.0-beta.4",
|
|
39
|
+
"@stackshift-ui/checkbox": "7.0.0-beta.4",
|
|
40
|
+
"@stackshift-ui/link": "7.0.0-beta.4",
|
|
41
|
+
"@stackshift-ui/scripts": "7.0.0-beta.3",
|
|
42
|
+
"@stackshift-ui/flex": "7.0.0-beta.4",
|
|
43
|
+
"@stackshift-ui/image": "7.0.0-beta.5",
|
|
44
|
+
"@stackshift-ui/section": "7.0.0-beta.4",
|
|
45
|
+
"@stackshift-ui/heading": "7.0.0-beta.4",
|
|
46
|
+
"@stackshift-ui/form": "7.0.0-beta.4",
|
|
47
|
+
"@stackshift-ui/text": "7.0.0-beta.4",
|
|
48
|
+
"@stackshift-ui/social-icons": "7.0.0-beta.4",
|
|
49
|
+
"@stackshift-ui/form-field": "7.0.0-beta.5",
|
|
50
|
+
"@stackshift-ui/system": "7.0.0-beta.4",
|
|
51
|
+
"@stackshift-ui/button": "7.0.0-beta.6",
|
|
52
|
+
"@stackshift-ui/container": "7.0.0-beta.4"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@stackshift-ui/system": ">=
|
|
55
|
+
"@stackshift-ui/system": ">=7.0.0-beta.4",
|
|
56
56
|
"@types/react": "16.8 - 19",
|
|
57
57
|
"next": "10 - 14",
|
|
58
58
|
"react": "16.8 - 19",
|
package/dist/chunk-3QHQ6W3V.mjs
DELETED
|
@@ -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};
|
package/dist/chunk-FQDJZ4M5.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as L}from"./chunk-UKEPZSNA.mjs";import{a as N}from"./chunk-3QHQ6W3V.mjs";import{jsx as I}from"react/jsx-runtime";var D={variant_a:L,variant_b:N},E="Contact",F=({data:n})=>{var r,c,e,s,t,f,m,l,p,u,v,k,b,C,g,y;let i=n==null?void 0:n.variant,o=i&&D[i],S={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:(C=(b=n==null?void 0:n.variants)==null?void 0:b.form)!=null?C:void 0,block:(y=(g=n==null?void 0:n.variants)==null?void 0:g.block)!=null?y:void 0};return o?I(o,{...S}):null};F.displayName=E;export{F as a};
|
package/dist/chunk-LN2UUYYP.mjs
DELETED
|
@@ -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};
|
package/dist/chunk-UKEPZSNA.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as m}from"./chunk-LN2UUYYP.mjs";import{PortableText as h}from"@portabletext/react";import{Button as y}from"@stackshift-ui/button";import{Checkbox as N}from"@stackshift-ui/checkbox";import{Container as w}from"@stackshift-ui/container";import{Flex as b}from"@stackshift-ui/flex";import{Form as C}from"@stackshift-ui/form";import{FormField as k}from"@stackshift-ui/form-field";import{Heading as g}from"@stackshift-ui/heading";import{Image as L}from"@stackshift-ui/image";import{Link as p}from"@stackshift-ui/link";import{Section as v}from"@stackshift-ui/section";import{SocialIcons as T}from"@stackshift-ui/social-icons";import{Text as o}from"@stackshift-ui/text";import{jsx as n,jsxs as l}from"react/jsx-runtime";function S({contactDescription:e,officeInformation:t,contactEmail:i,contactNumber:r,socialLinks:u,form:c,block:a,title:s}){return n(v,{className:"py-20 bg-background",children:n(w,{maxWidth:1280,children:l(b,{direction:"col",gap:8,justify:"between",className:"lg:flex-row",children:[l(b,{direction:"col",gap:8,className:"px-10 w-full basis-1/2",children:[n(P,{title:s,contactDescription:e}),n(M,{officeInformation:t,contactEmail:i,contactNumber:r}),n(H,{socialLinks:u})]}),n(z,{form:c,block:a,blockCustomization:A})]})})})}function P({title:e,contactDescription:t}){return l(b,{direction:"col",children:[e&&n(g,{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(b,{gap:8,justify:"between",className:"flex-col w-full md:flex-row",children:[l("div",{children:[n(g,{type:"h2",children:"Office"}),e&&n(o,{className:"mt-3",muted:!0,children:e})]}),l("div",{children:[n(g,{type:"h2",children:"Contacts"}),t&&n(o,{className:"mt-3",muted:!0,children:n(p,{href:`mailto:${t}`,children:t})}),i&&n(o,{muted:!0,className:"mt-3",children:n(p,{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(g,{type:"h2",fontSize:"2xl",className:"mb-2",children:"Socials"}),n(q,{socialLinks:e})]}):null}function q({socialLinks:e}){return e?n(b,{gap:4,children:e==null?void 0:e.map(t=>{var i,r,u,c,a;return n(p,{"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=(c=t==null?void 0:t.socialMediaIcon)==null?void 0:c.alt)!=null?a:"contact-socialMedia-icon"}):n(T,{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(g,{className:"text-2xl lg:text-2xl",children:e==null?void 0:e.name}):null]})}function z({form:e,block:t,blockCustomization:i}){var r,u,c;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(C,{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:m(e==null?void 0:e.thankYouPage),children:[(u=e==null?void 0:e.fields)==null?void 0:u.map((a,s)=>{var x,d;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,className:"bg-white"}):n(k,{noLabel:!0,variant:"primary",name:(d=a==null?void 0:a.name)!=null?d:"",placeholder:a==null?void 0:a.name,required:a==null?void 0:a.isRequired,...a,className:"bg-white resize-none"})},s)}),l("div",{className:"items-center sm:flex sm:justify-between",children:[t&&l("div",{className:"inline-flex mt-2",children:[n(N,{"aria-label":"Agree to terms",className:"mt-1 mr-2",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",{className:"webriq-recaptcha"}),(e==null?void 0:e.buttonLabel)&&n(y,{"aria-label":(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:scale-105 sm:mt-0",type:"submit",children:e==null?void 0:e.buttonLabel})]})]})]}):null}var A={marks:{internalLink:({children:e,value:t})=>{var i;return n(p,{"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(p,{"aria-label":(i=t.href)!=null?i:"external link",href:t.href,target:"_blank",rel:"noopener noreferrer",children:e}):n(p,{"aria-label":(r=t.href)!=null?r:"external link",style:{color:"blue"},href:t.href,children:e})}}};export{S as a};
|
package/dist/contact.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Form, SectionsProps, SocialLink } from "./types";
|
|
3
|
-
export interface ContactProps {
|
|
4
|
-
title?: string;
|
|
5
|
-
contactDescription?: string;
|
|
6
|
-
officeInformation?: string;
|
|
7
|
-
contactEmail?: string;
|
|
8
|
-
contactNumber?: string;
|
|
9
|
-
socialLinks?: SocialLink[];
|
|
10
|
-
form?: Form;
|
|
11
|
-
block?: any;
|
|
12
|
-
}
|
|
13
|
-
export declare const Contact: React.FC<SectionsProps>;
|
package/dist/contact.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var Z=Object.create;var k=Object.defineProperty;var F=Object.getOwnPropertyDescriptor;var ee=Object.getOwnPropertyNames;var te=Object.getPrototypeOf,ne=Object.prototype.hasOwnProperty;var ie=(e,t)=>{for(var i in t)k(e,i,{get:t[i],enumerable:!0})},A=(e,t,i,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of ee(t))!ne.call(e,l)&&l!==i&&k(e,l,{get:()=>t[l],enumerable:!(o=F(t,l))||o.enumerable});return e};var re=(e,t,i)=>(i=e!=null?Z(te(e)):{},A(t||!e||!e.__esModule?k(i,"default",{value:e,enumerable:!0}):i,e)),ae=e=>A(k({},"__esModule",{value:!0}),e);var Ce={};ie(Ce,{Contact:()=>U});module.exports=ae(Ce);var V=require("@portabletext/react"),$=require("@stackshift-ui/button"),B=require("@stackshift-ui/checkbox"),E=require("@stackshift-ui/container"),s=require("@stackshift-ui/flex"),O=require("@stackshift-ui/form"),C=require("@stackshift-ui/form-field"),g=require("@stackshift-ui/heading"),W=require("@stackshift-ui/image"),m=require("@stackshift-ui/link"),Y=require("@stackshift-ui/section"),j=require("@stackshift-ui/social-icons"),p=require("@stackshift-ui/text");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";var n=require("react/jsx-runtime");function N({contactDescription:e,officeInformation:t,contactEmail:i,contactNumber:o,socialLinks:l,form:c,block:r,title:u}){return(0,n.jsx)(Y.Section,{className:"py-20 bg-background",children:(0,n.jsx)(E.Container,{maxWidth:1280,children:(0,n.jsxs)(s.Flex,{direction:"col",gap:8,justify:"between",className:"lg:flex-row",children:[(0,n.jsxs)(s.Flex,{direction:"col",gap:8,className:"px-10 s-full basis-1/2",children:[(0,n.jsx)(oe,{title:u,contactDescription:e}),(0,n.jsx)(le,{officeInformation:t,contactEmail:i,contactNumber:o}),(0,n.jsx)(ce,{socialLinks:l})]}),(0,n.jsx)(pe,{form:c,block:r,blockCustomization:se})]})})})}function oe({title:e,contactDescription:t}){return(0,n.jsxs)(s.Flex,{direction:"col",children:[e&&(0,n.jsx)(g.Heading,{children:e}),t&&(0,n.jsx)(p.Text,{muted:!0,className:"mt-5 leading-loose",children:t})]})}function le({officeInformation:e,contactEmail:t,contactNumber:i}){return e?(0,n.jsxs)(s.Flex,{gap:8,justify:"between",className:"flex-col s-full md:flex-row",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(g.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)(g.Heading,{type:"h2",children:"Contacts"}),t&&(0,n.jsx)(p.Text,{className:"mt-3",muted:!0,children:(0,n.jsx)(m.Link,{href:`mailto:${t}`,children:t})}),i&&(0,n.jsx)(p.Text,{muted:!0,className:"mt-3",children:(0,n.jsx)(m.Link,{href:`tel:${i}`,children:i})})]})]}):null}function ce({socialLinks:e}){return e?(0,n.jsxs)("div",{className:"s-full md:s-1/3 lg:s-full",children:[(0,n.jsx)(g.Heading,{type:"h2",fontSize:"2xl",className:"mb-2",children:"Socials"}),(0,n.jsx)(me,{socialLinks:e})]}):null}function me({socialLinks:e}){return e?(0,n.jsx)(s.Flex,{gap:4,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)(W.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)(j.SocialIcons,{social:t.socialMedia})},t==null?void 0:t._key)})}):null}function ue({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)(g.Heading,{className:"text-2xl lg:text-2xl",children:e==null?void 0:e.name}):null]})}function pe({form:e,block:t,blockCustomization:i}){var o,l,c;return e?(0,n.jsxs)("div",{className:"s-full px-5 sm:px-10 lg:s-1/2 lg:px-0 lg:pl-10",children:[(0,n.jsx)(ue,{form:e}),(e==null?void 0:e.fields)&&(0,n.jsxs)(O.Form,{id:(o=e==null?void 0:e.id)!=null?o:void 0,name:"Contact-VariantA-Form",className:"lg:mx-auto lg:max-s-md text-xs space-y-3 font-semibold",thankyouPage:R(e==null?void 0:e.thankYouPage),children:[(l=e==null?void 0:e.fields)==null?void 0:l.map((r,u)=>{var b,x;return(0,n.jsx)("div",{children:(r==null?void 0:r.type)==="inputCheckbox"?(0,n.jsx)(C.FormField,{noLabel:!0,name:(b=r==null?void 0:r.name)!=null?b:"",placeholder:r==null?void 0:r.placeholder,required:r==null?void 0:r.isRequired,...r,className:"bg-white"}):(0,n.jsx)(C.FormField,{noLabel:!0,variant:"primary",name:(x=r==null?void 0:r.name)!=null?x:"",placeholder:r==null?void 0:r.name,required:r==null?void 0:r.isRequired,...r,className:"bg-white resize-none"})},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)(B.Checkbox,{"aria-label":"Agree to terms",className:"mt-1 mr-2",id:"terms",name:"terms",defaultValue:1,required:!0}),(0,n.jsx)("span",{className:"text-sm text-gray-500 font-semibold",children:(0,n.jsx)(V.PortableText,{value:t,components:i,onMissingComponent:!1})})]}),(0,n.jsx)("div",{className:"webriq-recaptcha"}),(e==null?void 0:e.buttonLabel)&&(0,n.jsx)($.Button,{"aria-label":(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:scale-105 sm:mt-0",type:"submit",children:e==null?void 0:e.buttonLabel})]})]})]}):null}var se={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 y=require("@stackshift-ui/card"),Q=re(require("react"));function v({title:e,contactDescription:t,officeInformation:i,contactNumber:o,contactEmail:l,socialLinks:c}){return(0,n.jsx)(Y.Section,{className:"py-20 bg-background",children:(0,n.jsxs)(E.Container,{maxWidth:1280,children:[(0,n.jsx)(ge,{title:e,description:t}),(0,n.jsx)(E.Container,{maxWidth:960,children:(0,n.jsx)(be,{officeInformation:i,contactNumber:o,contactEmail:l,socialLinks:c})})]})})}function ge({title:e,description:t}){return(0,n.jsxs)("div",{className:"mb-16 text-center",children:[e?(0,n.jsx)(g.Heading,{type:"h1",fontSize:"3xl",children:e}):null,t?(0,n.jsx)(p.Text,{muted:!0,children:t}):null]})}function be({officeInformation:e,contactEmail:t,contactNumber:i,socialLinks:o}){return(0,n.jsxs)(s.Flex,{className:"flex-col lg:flex-row",gap:4,justify:"between",align:"stretch",children:[e?(0,n.jsx)(xe,{officeInformation:e}):null,t||i?(0,n.jsx)(fe,{contactEmail:t,contactNumber:i}):null,o?(0,n.jsx)(de,{socialLinks:o}):null]})}function xe({officeInformation:e}){return(0,n.jsxs)(y.Card,{className:"s-full p-12 text-center bg-white md:p-16 lg:p-20",children:[(0,n.jsx)(g.Heading,{type:"h2",fontSize:"2xl",className:"mb-16",children:"Office"}),(0,n.jsx)(p.Text,{muted:!0,children:e})]})}function fe({contactEmail:e,contactNumber:t}){return(0,n.jsxs)(y.Card,{className:"s-full p-12 bg-white md:p-16 lg:p-20 text-center",children:[(0,n.jsx)(g.Heading,{type:"h2",fontSize:"2xl",className:"mb-16 ",children:"Contacts"}),(0,n.jsx)(p.Text,{className:"mb-2",muted:!0,children:e?(0,n.jsx)(m.Link,{href:`mailto:${e}`,children:e}):null}),(0,n.jsx)(p.Text,{muted:!0,children:t?(0,n.jsx)(m.Link,{href:`tel:${t}`,children:t}):null})]})}function de({socialLinks:e}){return(0,n.jsxs)(y.Card,{className:"s-full p-12 text-center bg-white md:p-16 lg:p-20",children:[(0,n.jsx)(g.Heading,{className:"mb-16",fontSize:"2xl",type:"h2",children:"Socials"}),(0,n.jsx)(s.Flex,{justify:"center",wrap:!0,children:(0,n.jsx)(ke,{socialLinks:e})})]})}function ke({socialLinks:e}){return e?(0,n.jsx)(Q.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 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,n.jsx)(W.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)(j.SocialIcons,{social:t.socialMedia})},t==null?void 0:t._key)})}):null}var he={variant_a:N,variant_b:v},ye="Contact",U=({data:e})=>{var l,c,r,u,b,x,S,I,T,M,P,H,z,_,D,q;let t=e==null?void 0:e.variant,i=t&&he[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:(x=(b=e==null?void 0:e.variants)==null?void 0:b.officeInformation)!=null?x:void 0,contactEmail:(I=(S=e==null?void 0:e.variants)==null?void 0:S.contactEmail)!=null?I:void 0,contactNumber:(M=(T=e==null?void 0:e.variants)==null?void 0:T.contactNumber)!=null?M:void 0,socialLinks:(H=(P=e==null?void 0:e.variants)==null?void 0:P.socialLinks)!=null?H:void 0,form:(_=(z=e==null?void 0:e.variants)==null?void 0:z.form)!=null?_:void 0,block:(q=(D=e==null?void 0:e.variants)==null?void 0:D.block)!=null?q:void 0};return i?(0,n.jsx)(i,{...o}):null};U.displayName=ye;0&&(module.exports={Contact});
|
package/dist/contact.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-FQDJZ4M5.mjs";import"./chunk-UKEPZSNA.mjs";import"./chunk-3QHQ6W3V.mjs";import"./chunk-LN2UUYYP.mjs";export{a as Contact};
|
package/dist/contact_a.d.ts
DELETED
package/dist/contact_a.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var s=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var M=Object.getOwnPropertyNames;var H=Object.prototype.hasOwnProperty;var I=(e,t)=>{for(var i in t)s(e,i,{get:t[i],enumerable:!0})},q=(e,t,i,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of M(t))!H.call(e,r)&&r!==i&&s(e,r,{get:()=>t[r],enumerable:!(l=S(t,r))||l.enumerable});return e};var z=e=>q(s({},"__esModule",{value:!0}),e);var O={};I(O,{Contact_A:()=>P,default:()=>P});module.exports=z(O);var k=require("@portabletext/react"),y=require("@stackshift-ui/button"),N=require("@stackshift-ui/checkbox"),L=require("@stackshift-ui/container"),o=require("@stackshift-ui/flex"),w=require("@stackshift-ui/form"),x=require("@stackshift-ui/form-field"),b=require("@stackshift-ui/heading"),C=require("@stackshift-ui/image"),p=require("@stackshift-ui/link"),v=require("@stackshift-ui/section"),T=require("@stackshift-ui/social-icons"),c=require("@stackshift-ui/text");var h=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 P({contactDescription:e,officeInformation:t,contactEmail:i,contactNumber:l,socialLinks:r,form:u,block:a,title:g}){return(0,n.jsx)(v.Section,{className:"py-20 bg-background",children:(0,n.jsx)(L.Container,{maxWidth:1280,children:(0,n.jsxs)(o.Flex,{direction:"col",gap:8,justify:"between",className:"lg:flex-row",children:[(0,n.jsxs)(o.Flex,{direction:"col",gap:8,className:"px-10 w-full basis-1/2",children:[(0,n.jsx)(A,{title:g,contactDescription:e}),(0,n.jsx)(_,{officeInformation:t,contactEmail:i,contactNumber:l}),(0,n.jsx)(D,{socialLinks:r})]}),(0,n.jsx)(j,{form:u,block:a,blockCustomization:B})]})})})}function A({title:e,contactDescription:t}){return(0,n.jsxs)(o.Flex,{direction:"col",children:[e&&(0,n.jsx)(b.Heading,{children:e}),t&&(0,n.jsx)(c.Text,{muted:!0,className:"mt-5 leading-loose",children:t})]})}function _({officeInformation:e,contactEmail:t,contactNumber:i}){return e?(0,n.jsxs)(o.Flex,{gap:8,justify:"between",className:"flex-col w-full md:flex-row",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(b.Heading,{type:"h2",children:"Office"}),e&&(0,n.jsx)(c.Text,{className:"mt-3",muted:!0,children:e})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(b.Heading,{type:"h2",children:"Contacts"}),t&&(0,n.jsx)(c.Text,{className:"mt-3",muted:!0,children:(0,n.jsx)(p.Link,{href:`mailto:${t}`,children:t})}),i&&(0,n.jsx)(c.Text,{muted:!0,className:"mt-3",children:(0,n.jsx)(p.Link,{href:`tel:${i}`,children:i})})]})]}):null}function D({socialLinks:e}){return e?(0,n.jsxs)("div",{className:"w-full md:w-1/3 lg:w-full",children:[(0,n.jsx)(b.Heading,{type:"h2",fontSize:"2xl",className:"mb-2",children:"Socials"}),(0,n.jsx)(Y,{socialLinks:e})]}):null}function Y({socialLinks:e}){return e?(0,n.jsx)(o.Flex,{gap:4,children:e==null?void 0:e.map(t=>{var i,l,r,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:(l=t==null?void 0:t.socialMediaIcon)!=null&&l.image?(0,n.jsx)(C.Image,{src:(r=t==null?void 0:t.socialMediaIcon)==null?void 0:r.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 $({form:e}){return(0,n.jsxs)("div",{className:"mb-6 text-center lg:mb-10",children:[e!=null&&e.subtitle?(0,n.jsx)(c.Text,{muted:!0,children:e==null?void 0:e.subtitle}):null,e!=null&&e.name?(0,n.jsx)(b.Heading,{className:"text-2xl lg:text-2xl",children:e==null?void 0:e.name}):null]})}function j({form:e,block:t,blockCustomization:i}){var l,r,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)($,{form:e}),(e==null?void 0:e.fields)&&(0,n.jsxs)(w.Form,{id:(l=e==null?void 0:e.id)!=null?l:void 0,name:"Contact-VariantA-Form",className:"lg:mx-auto lg:max-w-md text-xs space-y-3 font-semibold",thankyouPage:h(e==null?void 0:e.thankYouPage),children:[(r=e==null?void 0:e.fields)==null?void 0:r.map((a,g)=>{var d,m;return(0,n.jsx)("div",{children:(a==null?void 0:a.type)==="inputCheckbox"?(0,n.jsx)(x.FormField,{noLabel:!0,name:(d=a==null?void 0:a.name)!=null?d:"",placeholder:a==null?void 0:a.placeholder,required:a==null?void 0:a.isRequired,...a,className:"bg-white"}):(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,className:"bg-white resize-none"})},g)}),(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)(N.Checkbox,{"aria-label":"Agree to terms",className:"mt-1 mr-2",id:"terms",name:"terms",defaultValue:1,required:!0}),(0,n.jsx)("span",{className:"text-sm text-gray-500 font-semibold",children:(0,n.jsx)(k.PortableText,{value:t,components:i,onMissingComponent:!1})})]}),(0,n.jsx)("div",{className:"webriq-recaptcha"}),(e==null?void 0:e.buttonLabel)&&(0,n.jsx)(y.Button,{"aria-label":(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:scale-105 sm:mt-0",type:"submit",children:e==null?void 0:e.buttonLabel})]})]})]}):null}var B={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,l;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":(l=t.href)!=null?l:"external link",style:{color:"blue"},href:t.href,children:e})}}};0&&(module.exports={Contact_A});
|
package/dist/contact_a.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-UKEPZSNA.mjs";import"./chunk-LN2UUYYP.mjs";export{a as Contact_A,a as default};
|
package/dist/contact_b.d.ts
DELETED
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});
|
package/dist/contact_b.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-3QHQ6W3V.mjs";export{a as Contact_B,a as default};
|
package/dist/helper/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const thankYouPageLink: (link: any) => any;
|
package/dist/helper/index.js
DELETED
|
@@ -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});
|
package/dist/helper/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-LN2UUYYP.mjs";export{a as thankYouPageLink};
|
package/dist/index.d.ts
DELETED
package/dist/index.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";var Z=Object.create;var k=Object.defineProperty;var F=Object.getOwnPropertyDescriptor;var ee=Object.getOwnPropertyNames;var te=Object.getPrototypeOf,ne=Object.prototype.hasOwnProperty;var ie=(e,t)=>{for(var i in t)k(e,i,{get:t[i],enumerable:!0})},A=(e,t,i,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of ee(t))!ne.call(e,l)&&l!==i&&k(e,l,{get:()=>t[l],enumerable:!(o=F(t,l))||o.enumerable});return e};var re=(e,t,i)=>(i=e!=null?Z(te(e)):{},A(t||!e||!e.__esModule?k(i,"default",{value:e,enumerable:!0}):i,e)),ae=e=>A(k({},"__esModule",{value:!0}),e);var Ce={};ie(Ce,{Contact:()=>U,Contact_A:()=>h,Contact_B:()=>N});module.exports=ae(Ce);var V=require("@portabletext/react"),$=require("@stackshift-ui/button"),B=require("@stackshift-ui/checkbox"),E=require("@stackshift-ui/container"),s=require("@stackshift-ui/flex"),O=require("@stackshift-ui/form"),L=require("@stackshift-ui/form-field"),g=require("@stackshift-ui/heading"),W=require("@stackshift-ui/image"),m=require("@stackshift-ui/link"),Y=require("@stackshift-ui/section"),j=require("@stackshift-ui/social-icons"),p=require("@stackshift-ui/text");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";var n=require("react/jsx-runtime");function h({contactDescription:e,officeInformation:t,contactEmail:i,contactNumber:o,socialLinks:l,form:c,block:r,title:u}){return(0,n.jsx)(Y.Section,{className:"py-20 bg-background",children:(0,n.jsx)(E.Container,{maxWidth:1280,children:(0,n.jsxs)(s.Flex,{direction:"col",gap:8,justify:"between",className:"lg:flex-row",children:[(0,n.jsxs)(s.Flex,{direction:"col",gap:8,className:"px-10 E-full basis-1/2",children:[(0,n.jsx)(oe,{title:u,contactDescription:e}),(0,n.jsx)(le,{officeInformation:t,contactEmail:i,contactNumber:o}),(0,n.jsx)(ce,{socialLinks:l})]}),(0,n.jsx)(pe,{form:c,block:r,blockCustomization:se})]})})})}function oe({title:e,contactDescription:t}){return(0,n.jsxs)(s.Flex,{direction:"col",children:[e&&(0,n.jsx)(g.Heading,{children:e}),t&&(0,n.jsx)(p.Text,{muted:!0,className:"mt-5 leading-loose",children:t})]})}function le({officeInformation:e,contactEmail:t,contactNumber:i}){return e?(0,n.jsxs)(s.Flex,{gap:8,justify:"between",className:"flex-col E-full md:flex-row",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(g.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)(g.Heading,{type:"h2",children:"Contacts"}),t&&(0,n.jsx)(p.Text,{className:"mt-3",muted:!0,children:(0,n.jsx)(m.Link,{href:`mailto:${t}`,children:t})}),i&&(0,n.jsx)(p.Text,{muted:!0,className:"mt-3",children:(0,n.jsx)(m.Link,{href:`tel:${i}`,children:i})})]})]}):null}function ce({socialLinks:e}){return e?(0,n.jsxs)("div",{className:"E-full md:E-1/3 lg:E-full",children:[(0,n.jsx)(g.Heading,{type:"h2",fontSize:"2xl",className:"mb-2",children:"Socials"}),(0,n.jsx)(me,{socialLinks:e})]}):null}function me({socialLinks:e}){return e?(0,n.jsx)(s.Flex,{gap:4,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)(W.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)(j.SocialIcons,{social:t.socialMedia})},t==null?void 0:t._key)})}):null}function ue({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)(g.Heading,{className:"text-2xl lg:text-2xl",children:e==null?void 0:e.name}):null]})}function pe({form:e,block:t,blockCustomization:i}){var o,l,c;return e?(0,n.jsxs)("div",{className:"E-full px-5 sm:px-10 lg:E-1/2 lg:px-0 lg:pl-10",children:[(0,n.jsx)(ue,{form:e}),(e==null?void 0:e.fields)&&(0,n.jsxs)(O.Form,{id:(o=e==null?void 0:e.id)!=null?o:void 0,name:"Contact-VariantA-Form",className:"lg:mx-auto lg:max-E-md text-xs space-m-3 font-semibold",thankyouPage:R(e==null?void 0:e.thankYouPage),children:[(l=e==null?void 0:e.fields)==null?void 0:l.map((r,u)=>{var b,x;return(0,n.jsx)("div",{children:(r==null?void 0:r.type)==="inputCheckbox"?(0,n.jsx)(L.FormField,{noLabel:!0,name:(b=r==null?void 0:r.name)!=null?b:"",placeholder:r==null?void 0:r.placeholder,required:r==null?void 0:r.isRequired,...r,className:"bg-white"}):(0,n.jsx)(L.FormField,{noLabel:!0,variant:"primary",name:(x=r==null?void 0:r.name)!=null?x:"",placeholder:r==null?void 0:r.name,required:r==null?void 0:r.isRequired,...r,className:"bg-white resize-none"})},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)(B.Checkbox,{"aria-label":"Agree to terms",className:"mt-1 mr-2",id:"terms",name:"terms",defaultValue:1,required:!0}),(0,n.jsx)("span",{className:"text-sm text-gray-500 font-semibold",children:(0,n.jsx)(V.PortableText,{value:t,components:i,onMissingComponent:!1})})]}),(0,n.jsx)("div",{className:"webriq-recaptcha"}),(e==null?void 0:e.buttonLabel)&&(0,n.jsx)($.Button,{"aria-label":(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:scale-105 sm:mt-0",type:"submit",children:e==null?void 0:e.buttonLabel})]})]})]}):null}var se={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 C=require("@stackshift-ui/card"),Q=re(require("react"));function N({title:e,contactDescription:t,officeInformation:i,contactNumber:o,contactEmail:l,socialLinks:c}){return(0,n.jsx)(Y.Section,{className:"py-20 bg-background",children:(0,n.jsxs)(E.Container,{maxWidth:1280,children:[(0,n.jsx)(ge,{title:e,description:t}),(0,n.jsx)(E.Container,{maxWidth:960,children:(0,n.jsx)(be,{officeInformation:i,contactNumber:o,contactEmail:l,socialLinks:c})})]})})}function ge({title:e,description:t}){return(0,n.jsxs)("div",{className:"mb-16 text-center",children:[e?(0,n.jsx)(g.Heading,{type:"h1",fontSize:"3xl",children:e}):null,t?(0,n.jsx)(p.Text,{muted:!0,children:t}):null]})}function be({officeInformation:e,contactEmail:t,contactNumber:i,socialLinks:o}){return(0,n.jsxs)(s.Flex,{className:"flex-col lg:flex-row",gap:4,justify:"between",align:"stretch",children:[e?(0,n.jsx)(xe,{officeInformation:e}):null,t||i?(0,n.jsx)(fe,{contactEmail:t,contactNumber:i}):null,o?(0,n.jsx)(de,{socialLinks:o}):null]})}function xe({officeInformation:e}){return(0,n.jsxs)(C.Card,{className:"E-full p-12 text-center bg-white md:p-16 lg:p-20",children:[(0,n.jsx)(g.Heading,{type:"h2",fontSize:"2xl",className:"mb-16",children:"Office"}),(0,n.jsx)(p.Text,{muted:!0,children:e})]})}function fe({contactEmail:e,contactNumber:t}){return(0,n.jsxs)(C.Card,{className:"E-full p-12 bg-white md:p-16 lg:p-20 text-center",children:[(0,n.jsx)(g.Heading,{type:"h2",fontSize:"2xl",className:"mb-16 ",children:"Contacts"}),(0,n.jsx)(p.Text,{className:"mb-2",muted:!0,children:e?(0,n.jsx)(m.Link,{href:`mailto:${e}`,children:e}):null}),(0,n.jsx)(p.Text,{muted:!0,children:t?(0,n.jsx)(m.Link,{href:`tel:${t}`,children:t}):null})]})}function de({socialLinks:e}){return(0,n.jsxs)(C.Card,{className:"E-full p-12 text-center bg-white md:p-16 lg:p-20",children:[(0,n.jsx)(g.Heading,{className:"mb-16",fontSize:"2xl",type:"h2",children:"Socials"}),(0,n.jsx)(s.Flex,{justify:"center",wrap:!0,children:(0,n.jsx)(ke,{socialLinks:e})})]})}function ke({socialLinks:e}){return e?(0,n.jsx)(Q.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 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,n.jsx)(W.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)(j.SocialIcons,{social:t.socialMedia})},t==null?void 0:t._key)})}):null}var he={variant_a:h,variant_b:N},ye="Contact",U=({data:e})=>{var l,c,r,u,b,x,S,I,T,M,P,H,z,_,D,q;let t=e==null?void 0:e.variant,i=t&&he[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:(x=(b=e==null?void 0:e.variants)==null?void 0:b.officeInformation)!=null?x:void 0,contactEmail:(I=(S=e==null?void 0:e.variants)==null?void 0:S.contactEmail)!=null?I:void 0,contactNumber:(M=(T=e==null?void 0:e.variants)==null?void 0:T.contactNumber)!=null?M:void 0,socialLinks:(H=(P=e==null?void 0:e.variants)==null?void 0:P.socialLinks)!=null?H:void 0,form:(_=(z=e==null?void 0:e.variants)==null?void 0:z.form)!=null?_:void 0,block:(q=(D=e==null?void 0:e.variants)==null?void 0:D.block)!=null?q:void 0};return i?(0,n.jsx)(i,{...o}):null};U.displayName=ye;0&&(module.exports={Contact,Contact_A,Contact_B});
|
package/dist/index.mjs
DELETED
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);
|