@npm_leadtech/legal-contracts-ui 0.99.2 → 0.99.3

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.
@@ -3,7 +3,6 @@ import { ReactNode } from 'react';
3
3
 
4
4
  export declare interface ContactMethod {
5
5
  id: string;
6
- icon: ReactNode;
7
6
  label?: ReactNode;
8
7
  helper?: string;
9
8
  variant: 'phone' | 'email' | 'location';
@@ -1,33 +1,36 @@
1
- import { jsxs as s, Fragment as r, jsx as a } from "react/jsx-runtime";
2
- import { LinkWrapper as n } from "./LinkWrapper.js";
3
- const h = ({ icon: l, label: t, helper: e, variant: i }) => /* @__PURE__ */ s("article", { className: "bg-neutral-25 flex flex-wrap gap-2 rounded-sm p-4 md:flex-col", children: [
4
- i === "phone" && /* @__PURE__ */ s(r, { children: [
5
- /* @__PURE__ */ s(n, { variant: "primary-green", className: "w-full md:hidden", children: [
6
- l,
1
+ import { jsxs as i, Fragment as r, jsx as a } from "react/jsx-runtime";
2
+ import { PhoneTalkIcon as n } from "./PhoneTalkIcon.js";
3
+ import { MailFillIcon as m } from "./MailFillIcon.js";
4
+ import { LocationIcon as c } from "./LocationIcon.js";
5
+ import { LinkWrapper as t } from "./LinkWrapper.js";
6
+ const y = ({ label: e, helper: l, variant: s }) => /* @__PURE__ */ i("article", { className: "bg-neutral-25 flex flex-wrap gap-2 rounded-sm p-4 md:flex-col", children: [
7
+ s === "phone" && /* @__PURE__ */ i(r, { children: [
8
+ /* @__PURE__ */ i(t, { variant: "primary-green", className: "w-full md:hidden", children: [
9
+ /* @__PURE__ */ a(n, { fill: "white" }),
7
10
  " ",
8
- t
11
+ e
9
12
  ] }),
10
- /* @__PURE__ */ s("div", { className: "hidden gap-2 md:flex", children: [
11
- /* @__PURE__ */ a("span", { className: "shrink-0", children: l }),
12
- /* @__PURE__ */ s("div", { className: "flex flex-col gap-1", children: [
13
- /* @__PURE__ */ a(n, { className: "justify-start! p-0! no-underline!", variant: "tertiary-link", children: /* @__PURE__ */ a("span", { className: "text-medium text-primary-800 font-bold", children: t }) }),
14
- e && /* @__PURE__ */ a("p", { className: "text-small mx-auto text-neutral-600 md:mx-0", children: e })
13
+ /* @__PURE__ */ i("div", { className: "hidden gap-2 md:flex", children: [
14
+ /* @__PURE__ */ a("span", { className: "shrink-0", children: /* @__PURE__ */ a(n, { fill: "var(--primary-800)" }) }),
15
+ /* @__PURE__ */ i("div", { className: "flex flex-col gap-1", children: [
16
+ /* @__PURE__ */ a(t, { className: "justify-start! p-0! no-underline!", variant: "tertiary-link", children: /* @__PURE__ */ a("span", { className: "text-medium text-primary-800 font-bold", children: e }) }),
17
+ l && /* @__PURE__ */ a("p", { className: "text-small mx-auto text-neutral-600 md:mx-0", children: l })
15
18
  ] })
16
19
  ] }),
17
- e && /* @__PURE__ */ a("p", { className: "text-small mx-auto text-neutral-600 md:mx-0 md:hidden", children: e })
20
+ l && /* @__PURE__ */ a("p", { className: "text-small mx-auto text-neutral-600 md:mx-0 md:hidden", children: l })
18
21
  ] }),
19
- i === "email" && /* @__PURE__ */ s("div", { className: "flex gap-2", children: [
20
- /* @__PURE__ */ a("span", { className: "shrink-0", children: l }),
21
- /* @__PURE__ */ s("div", { className: "flex flex-col gap-1", children: [
22
- /* @__PURE__ */ a(n, { className: "justify-start! p-0!", variant: "tertiary-link", children: /* @__PURE__ */ a("span", { className: "text-medium text-primary-800 font-bold", children: t }) }),
23
- e && /* @__PURE__ */ a("p", { className: "text-small text-neutral-600", children: e })
22
+ s === "email" && /* @__PURE__ */ i("div", { className: "flex gap-2", children: [
23
+ /* @__PURE__ */ a("span", { className: "shrink-0", children: /* @__PURE__ */ a(m, { fill: "var(--primary-800)" }) }),
24
+ /* @__PURE__ */ i("div", { className: "flex flex-col gap-1", children: [
25
+ /* @__PURE__ */ a(t, { className: "justify-start! p-0!", variant: "tertiary-link", children: /* @__PURE__ */ a("span", { className: "text-medium text-primary-800 font-bold", children: e }) }),
26
+ l && /* @__PURE__ */ a("p", { className: "text-small text-neutral-600", children: l })
24
27
  ] })
25
28
  ] }),
26
- i === "location" && /* @__PURE__ */ s("div", { className: "flex gap-2", children: [
27
- /* @__PURE__ */ a("span", { className: "shrink-0", children: l }),
28
- e && /* @__PURE__ */ a("p", { className: "text-small text-neutral-600", children: e })
29
+ s === "location" && /* @__PURE__ */ i("div", { className: "flex gap-2", children: [
30
+ /* @__PURE__ */ a("span", { className: "shrink-0", children: /* @__PURE__ */ a(c, { fill: "var(--primary-800)" }) }),
31
+ l && /* @__PURE__ */ a("p", { className: "text-small text-neutral-600", children: l })
29
32
  ] })
30
33
  ] });
31
34
  export {
32
- h as ContactMethodCard
35
+ y as ContactMethodCard
33
36
  };
@@ -3,7 +3,6 @@ import { ReactNode } from 'react';
3
3
 
4
4
  export interface ContactMethod {
5
5
  id: string;
6
- icon: ReactNode;
7
6
  label?: ReactNode;
8
7
  helper?: string;
9
8
  variant: 'phone' | 'email' | 'location';
@@ -48,7 +48,6 @@ export interface ContactFormSectionProps {
48
48
 
49
49
  export interface ContactMethod {
50
50
  id: string;
51
- icon: ReactNode;
52
51
  label?: ReactNode;
53
52
  helper?: string;
54
53
  variant: 'phone' | 'email' | 'location';
@@ -66,11 +65,7 @@ export declare interface ContactUsTemplateProps {
66
65
  contactForm: ContactFormSectionProps;
67
66
  faqSection: {
68
67
  faqTitle: string;
69
- faqItems: {
70
- id: string;
71
- question: string;
72
- answer: string;
73
- }[];
68
+ faqText: string;
74
69
  faqCta: ReactNode;
75
70
  };
76
71
  }
@@ -1,29 +1,26 @@
1
- import { jsx as a, jsxs as e } from "react/jsx-runtime";
1
+ import { jsx as a, jsxs as l } from "react/jsx-runtime";
2
2
  import { ContactFormSection as i } from "./ContactFormSection.js";
3
3
  import { Jumbotron2 as o } from "./Jumbotron2.js";
4
- import { ContactMethodsSection as c } from "./ContactMethodsSection.js";
5
- import { Markdown as d } from "./Markdown.js";
6
- import { LinkWrapper as p } from "./LinkWrapper.js";
7
- const v = ({
8
- jumbotron: m,
9
- contactMethods: t,
10
- contactForm: s,
11
- faqSection: l
12
- }) => /* @__PURE__ */ a("main", { className: "bg-primary-50 py-10 md:px-6 md:pb-20 lg:px-8 xl:px-0", children: /* @__PURE__ */ e("div", { className: "relative mx-auto flex w-full max-w-300 flex-col gap-12", children: [
13
- /* @__PURE__ */ a(o, { ...m, className: "pb-0!" }),
14
- /* @__PURE__ */ e("div", { className: "relative flex flex-col gap-10 md:grid md:grid-cols-2 md:items-start md:gap-x-10 md:gap-y-8 lg:gap-x-16 xl:gap-x-20", children: [
15
- /* @__PURE__ */ a(c, { ...t }),
16
- /* @__PURE__ */ a("div", { className: "md:row-span-2", children: /* @__PURE__ */ a(i, { ...s }) }),
17
- /* @__PURE__ */ e("div", { className: "flex flex-col gap-8 px-6", children: [
18
- /* @__PURE__ */ a("h3", { className: "text-large text-primary-700 font-bold", children: l.faqTitle }),
19
- /* @__PURE__ */ a("div", { className: "flex flex-col gap-8", children: l.faqItems.map((r) => /* @__PURE__ */ e("div", { className: "flex flex-col gap-4 text-neutral-800", children: [
20
- /* @__PURE__ */ a("h4", { className: "text-big font-bold", children: r.question }),
21
- /* @__PURE__ */ a(d, { content: r.answer, className: "text-medium [&_p:last-child]:mb-0" })
22
- ] }, r.id)) }),
23
- /* @__PURE__ */ a(p, { className: "w-fit", variant: "secondary-green", children: l.faqCta })
4
+ import { ContactMethodsSection as s } from "./ContactMethodsSection.js";
5
+ import { Markdown as c } from "./Markdown.js";
6
+ import { LinkWrapper as d } from "./LinkWrapper.js";
7
+ const N = ({
8
+ jumbotron: r,
9
+ contactMethods: m,
10
+ contactForm: t,
11
+ faqSection: e
12
+ }) => /* @__PURE__ */ a("main", { className: "bg-primary-50 flex-1 py-10 md:px-6 md:pb-20 lg:px-8 xl:px-0", children: /* @__PURE__ */ l("div", { className: "relative mx-auto flex w-full max-w-300 flex-col gap-12", children: [
13
+ /* @__PURE__ */ a(o, { ...r, className: "pb-0!" }),
14
+ /* @__PURE__ */ l("div", { className: "relative flex flex-col gap-10 md:grid md:grid-cols-2 md:items-start md:gap-x-10 md:gap-y-8 lg:gap-x-16 xl:gap-x-20", children: [
15
+ /* @__PURE__ */ a(s, { ...m }),
16
+ /* @__PURE__ */ a("div", { className: "md:row-span-2", children: /* @__PURE__ */ a(i, { ...t }) }),
17
+ /* @__PURE__ */ l("div", { className: "flex flex-col gap-8 px-6", children: [
18
+ /* @__PURE__ */ a("h3", { className: "text-large text-primary-700 font-bold", children: e.faqTitle }),
19
+ /* @__PURE__ */ a("div", { className: "flex flex-col gap-8", children: /* @__PURE__ */ a(c, { content: e.faqText, className: "text-medium text-neutral-800 [&_p:last-child]:mb-0" }) }),
20
+ /* @__PURE__ */ a(d, { className: "w-fit", variant: "secondary-green", children: e.faqCta })
24
21
  ] })
25
22
  ] })
26
23
  ] }) });
27
24
  export {
28
- v as ContactUsTemplate
25
+ N as ContactUsTemplate
29
26
  };
@@ -1,9 +1,9 @@
1
1
  import { jsxs as l, jsx as r } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import { SearchBar as u } from "./SearchBar.js";
4
- import { PhoneTalkIcon as f } from "./PhoneTalkIcon.js";
5
- import { CloseIcon as h } from "./CloseIcon.js";
6
- import { LinkWrapper as b } from "./LinkWrapper.js";
4
+ import { CloseIcon as f } from "./CloseIcon.js";
5
+ import { LinkWrapper as h } from "./LinkWrapper.js";
6
+ import { PhoneTalkIcon as b } from "./PhoneTalkIcon.js";
7
7
  const k = ({
8
8
  isOpen: s,
9
9
  onClose: m,
@@ -24,7 +24,7 @@ const k = ({
24
24
  "aria-label": "Close menu",
25
25
  children: [
26
26
  x,
27
- /* @__PURE__ */ r(h, { fill: "var(--primary-500)" })
27
+ /* @__PURE__ */ r(f, { fill: "var(--primary-500)" })
28
28
  ]
29
29
  }
30
30
  )
@@ -36,7 +36,7 @@ const k = ({
36
36
  ] }),
37
37
  /* @__PURE__ */ r("nav", { className: "flex flex-col gap-0", children: p.map((e, n) => {
38
38
  const i = e.icon != null;
39
- return e.content != null ? /* @__PURE__ */ r("div", { className: "flex items-center px-6 pb-8", children: /* @__PURE__ */ r(b, { variant: "secondary-green", children: e.content }) }, e.id ?? `custom-${n.toString()}`) : /* @__PURE__ */ l(
39
+ return e.content != null ? /* @__PURE__ */ r("div", { className: "flex items-center px-6 pb-8", children: /* @__PURE__ */ r(h, { variant: "secondary-green", children: e.content }) }, e.id ?? `custom-${n.toString()}`) : /* @__PURE__ */ l(
40
40
  "div",
41
41
  {
42
42
  className: e.title !== "" && !i ? "border-t border-b border-neutral-200 pt-4" : "",
@@ -65,7 +65,7 @@ const k = ({
65
65
  href: `tel:${t.phoneNumber.replaceAll(" ", "")}`,
66
66
  className: "bg-primary-700 flex w-full items-center justify-center gap-2 rounded-md p-3 text-base font-semibold text-white",
67
67
  children: [
68
- /* @__PURE__ */ r(f, { fill: "#ffff" }),
68
+ /* @__PURE__ */ r(b, { fill: "#ffff" }),
69
69
  t.phoneNumber
70
70
  ]
71
71
  }
@@ -16,7 +16,6 @@ export type ButtonVariant = 'primary-green' | 'primary-darkgreen' | 'primary-yel
16
16
 
17
17
  export interface ContactMethod {
18
18
  id: string;
19
- icon: ReactNode;
20
19
  label?: ReactNode;
21
20
  helper?: string;
22
21
  variant: 'phone' | 'email' | 'location';
@@ -181,7 +181,6 @@ export declare interface ContactFormSectionProps {
181
181
 
182
182
  export declare interface ContactMethod {
183
183
  id: string;
184
- icon: ReactNode;
185
184
  label?: ReactNode;
186
185
  helper?: string;
187
186
  variant: 'phone' | 'email' | 'location';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-contracts-ui",
3
- "version": "0.99.2",
3
+ "version": "0.99.3",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",