@npm_leadtech/legal-contracts-ui 0.59.1 → 0.59.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist/components/ContactBanner.d.ts +0 -1
  2. package/dist/components/ContactBanner.js +13 -23
  3. package/dist/components/ContactFormSection.js +1 -1
  4. package/dist/components/Header.js +34 -44
  5. package/dist/components/Input.d.ts +1 -0
  6. package/dist/components/Input.js +16 -12
  7. package/dist/components/Markdown.js +31 -31
  8. package/dist/components/Preform.d.ts +23 -23
  9. package/dist/components/Preform.js +39 -17
  10. package/dist/components/PreformOption.d.ts +4 -1
  11. package/dist/components/PreformOption.js +9 -6
  12. package/dist/components/ProductTemplate.d.ts +26 -4
  13. package/dist/globals.css +1 -1
  14. package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/deserialize.js +62 -0
  15. package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/index.js +11 -0
  16. package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/serialize.js +106 -0
  17. package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/types.js +13 -0
  18. package/dist/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.js +20 -0
  19. package/dist/node_modules/.pnpm/devlop@1.1.0/node_modules/devlop/lib/default.js +5 -0
  20. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.js +38 -0
  21. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.js +245 -0
  22. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.js +7 -0
  23. package/dist/node_modules/.pnpm/hast-util-from-parse5@8.0.3/node_modules/hast-util-from-parse5/lib/index.js +145 -0
  24. package/dist/node_modules/.pnpm/hast-util-parse-selector@4.0.0/node_modules/hast-util-parse-selector/lib/index.js +20 -0
  25. package/dist/node_modules/.pnpm/hast-util-raw@9.1.0/node_modules/hast-util-raw/lib/index.js +217 -0
  26. package/dist/node_modules/.pnpm/hast-util-to-parse5@8.0.1/node_modules/hast-util-to-parse5/lib/index.js +118 -0
  27. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/create-h.js +112 -0
  28. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/index.js +8 -0
  29. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +44 -0
  30. package/dist/node_modules/.pnpm/html-void-elements@3.0.0/node_modules/html-void-elements/index.js +25 -0
  31. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/doctype.js +98 -0
  32. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/error-codes.js +7 -0
  33. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/foreign-content.js +210 -0
  34. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/html.js +250 -0
  35. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/token.js +14 -0
  36. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/unicode.js +73 -0
  37. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/formatting-element-list.js +84 -0
  38. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/index.js +2271 -0
  39. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/open-element-stack.js +240 -0
  40. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/serializer/index.js +2 -0
  41. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/index.js +1940 -0
  42. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/preprocessor.js +88 -0
  43. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tree-adapters/default.js +162 -0
  44. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/index.js +12 -0
  45. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/aria.js +61 -0
  46. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/find.js +33 -0
  47. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/html.js +368 -0
  48. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/normalize.js +6 -0
  49. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/svg.js +566 -0
  50. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
  51. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
  52. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/create.js +19 -0
  53. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/defined-info.js +36 -0
  54. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/info.js +28 -0
  55. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/merge.js +10 -0
  56. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/schema.js +21 -0
  57. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/types.js +14 -0
  58. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xlink.js +19 -0
  59. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xml.js +11 -0
  60. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xmlns.js +11 -0
  61. package/dist/node_modules/.pnpm/rehype-raw@7.0.0/node_modules/rehype-raw/lib/index.js +12 -0
  62. package/dist/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.js +11 -0
  63. package/dist/node_modules/.pnpm/unist-util-is@6.0.1/node_modules/unist-util-is/lib/index.js +91 -0
  64. package/dist/node_modules/.pnpm/unist-util-position@5.0.0/node_modules/unist-util-position/lib/index.js +17 -0
  65. package/dist/node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/color.js +6 -0
  66. package/dist/node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/index.js +56 -0
  67. package/dist/node_modules/.pnpm/unist-util-visit@5.1.0/node_modules/unist-util-visit/lib/index.js +16 -0
  68. package/dist/node_modules/.pnpm/vfile-location@5.0.3/node_modules/vfile-location/lib/index.js +42 -0
  69. package/dist/node_modules/.pnpm/web-namespaces@2.0.1/node_modules/web-namespaces/index.js +11 -0
  70. package/dist/node_modules/.pnpm/zwitch@2.0.4/node_modules/zwitch/index.js +18 -0
  71. package/package.json +1 -1
  72. package/dist/shared/hooks/useScroll.js +0 -15
@@ -7,6 +7,5 @@ export declare interface ContactBannerProps {
7
7
  phoneNumber?: string;
8
8
  contactHoursText?: string;
9
9
  contactHours?: string;
10
- isScrolled?: boolean;
11
10
  }
12
11
 
@@ -1,26 +1,16 @@
1
- import { jsx as e, jsxs as r } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
2
  import "react";
3
- import { useScroll as i } from "../shared/hooks/useScroll.js";
4
- import { InfoIcon as c } from "./InfoIcon.js";
5
- const h = ({ contactText: s, phoneNumber: l, contactHoursText: t, contactHours: a }) => {
6
- const n = i(10);
7
- return /* @__PURE__ */ e(
8
- "section",
9
- {
10
- className: `flex w-full justify-center border-b border-neutral-200 bg-neutral-50 px-4 transition-all duration-500 ease-in-out ${n ? "h-0 py-0" : "h-8.75 py-2"}`,
11
- children: /* @__PURE__ */ r("div", { className: "flex flex-wrap items-center justify-center gap-4 text-center text-neutral-900 md:text-left", children: [
12
- s && /* @__PURE__ */ e("p", { className: "text-small hidden sm:block", children: s }),
13
- /* @__PURE__ */ e("div", { className: "h-5 w-5", children: /* @__PURE__ */ e(c, {}) }),
14
- l && /* @__PURE__ */ e("a", { href: `tel:${l}`, className: "text-small block font-bold sm:hidden", children: l }),
15
- l && /* @__PURE__ */ e("p", { className: "text-small hidden font-bold sm:block", children: l }),
16
- /* @__PURE__ */ r("div", { className: "text-small flex items-center gap-1", children: [
17
- t && /* @__PURE__ */ e("span", { className: "hidden sm:block", children: t }),
18
- a && /* @__PURE__ */ e("span", { children: a })
19
- ] })
20
- ] })
21
- }
22
- );
23
- };
3
+ import { InfoIcon as r } from "./InfoIcon.js";
4
+ const m = ({ contactText: s, phoneNumber: l, contactHoursText: t, contactHours: a }) => /* @__PURE__ */ e("section", { className: "flex w-full justify-center border-b border-neutral-200 bg-neutral-50 px-4 py-2", children: /* @__PURE__ */ n("div", { className: "flex flex-wrap items-center justify-center gap-4 text-center text-neutral-900 md:text-left", children: [
5
+ s && /* @__PURE__ */ e("p", { className: "text-small hidden sm:block", children: s }),
6
+ /* @__PURE__ */ e("div", { className: "h-5 w-5", children: /* @__PURE__ */ e(r, {}) }),
7
+ l && /* @__PURE__ */ e("a", { href: `tel:${l}`, className: "text-small block font-bold sm:hidden", children: l }),
8
+ l && /* @__PURE__ */ e("p", { className: "text-small hidden font-bold sm:block", children: l }),
9
+ /* @__PURE__ */ n("div", { className: "text-small flex items-center gap-1", children: [
10
+ t && /* @__PURE__ */ e("span", { className: "hidden sm:block", children: t }),
11
+ a && /* @__PURE__ */ e("span", { children: a })
12
+ ] })
13
+ ] }) });
24
14
  export {
25
- h as ContactBanner
15
+ m as ContactBanner
26
16
  };
@@ -1,9 +1,9 @@
1
1
  import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
- import { Input as a } from "./Input.js";
3
2
  import { Select as t } from "./Select.js";
4
3
  import { Textarea as i } from "./Textarea.js";
5
4
  import { Checkbox as l } from "./Checkbox.js";
6
5
  import { CommunicationIcon as n } from "./CommunicationIcon.js";
6
+ import { Input as a } from "./Input.js";
7
7
  import { Item as o } from "./Item.js";
8
8
  import { Button as s } from "./Button.js";
9
9
  const c = [
@@ -1,54 +1,44 @@
1
- import { jsxs as r, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as r, Fragment as m, jsx as e } from "react/jsx-runtime";
2
2
  import "react";
3
- import { MobileMenu as o } from "./MobileMenu.js";
4
- import { useScroll as c } from "../shared/hooks/useScroll.js";
5
- import { NavMenu as s } from "./NavMenu.js";
6
- import { LanguageSelector as p } from "./LanguageSelector.js";
3
+ import { MobileMenu as c } from "./MobileMenu.js";
4
+ import { NavMenu as p } from "./NavMenu.js";
5
+ import { LanguageSelector as s } from "./LanguageSelector.js";
7
6
  import { ScalatorIcon as x } from "./ScalatorIcon.js";
8
- import { SearchBar as f } from "./SearchBar.js";
9
- const j = ({
10
- logo: l,
7
+ import { SearchBar as o } from "./SearchBar.js";
8
+ const v = ({
9
+ logo: a,
11
10
  navMenu: d,
12
11
  searchBarProps: i,
13
- languageSelectorProps: a,
12
+ languageSelectorProps: l,
14
13
  userActions: n,
15
14
  mobileMenu: t
16
- }) => {
17
- const m = c(10);
18
- return /* @__PURE__ */ r("div", { className: "sticky top-0 z-1000 flex w-full flex-col", children: [
19
- /* @__PURE__ */ e(
20
- "header",
15
+ }) => /* @__PURE__ */ r(m, { children: [
16
+ /* @__PURE__ */ e("header", { className: "bg-primary-50", children: /* @__PURE__ */ r("div", { className: "flex w-full items-center justify-between px-4 py-4 text-neutral-800 md:px-8", children: [
17
+ /* @__PURE__ */ r("div", { className: "flex flex-1 items-center gap-8", children: [
18
+ a,
19
+ /* @__PURE__ */ e(p, { className: "hidden lg:block", ...d })
20
+ ] }),
21
+ /* @__PURE__ */ r("div", { className: "text-medium hidden flex-wrap items-center gap-4 lg:flex xl:gap-6", children: [
22
+ /* @__PURE__ */ e(o, { ...i }),
23
+ l && /* @__PURE__ */ e("div", { className: "hidden xl:block", children: /* @__PURE__ */ e(s, { ...l }) }),
24
+ n
25
+ ] }),
26
+ /* @__PURE__ */ r(
27
+ "button",
21
28
  {
22
- className: `transition-colors duration-300 ease-in-out ${m ? "bg-white shadow-md" : "bg-primary-50"}`,
23
- children: /* @__PURE__ */ r("div", { className: "flex w-full items-center justify-between px-4 py-4 text-neutral-800 md:px-8", children: [
24
- /* @__PURE__ */ r("div", { className: "flex flex-1 items-center gap-8", children: [
25
- l,
26
- /* @__PURE__ */ e(s, { className: "hidden lg:block", ...d })
27
- ] }),
28
- /* @__PURE__ */ r("div", { className: "text-medium hidden flex-wrap items-center gap-4 lg:flex xl:gap-6", children: [
29
- /* @__PURE__ */ e(f, { ...i }),
30
- a && /* @__PURE__ */ e("div", { className: "hidden xl:block", children: /* @__PURE__ */ e(p, { ...a }) }),
31
- n
32
- ] }),
33
- /* @__PURE__ */ r(
34
- "button",
35
- {
36
- className: "text-small text-primary-500 flex items-center justify-center gap-1 rounded border border-neutral-400 bg-white px-2 py-1 lg:hidden",
37
- onClick: t.onOpen,
38
- "aria-label": "Open menu",
39
- "aria-expanded": t.isOpen,
40
- children: [
41
- t.openText,
42
- /* @__PURE__ */ e(x, {})
43
- ]
44
- }
45
- )
46
- ] })
29
+ className: "text-small text-primary-500 flex items-center justify-center gap-1 rounded border border-neutral-400 bg-white px-2 py-1 lg:hidden",
30
+ onClick: t.onOpen,
31
+ "aria-label": "Open menu",
32
+ "aria-expanded": t.isOpen,
33
+ children: [
34
+ t.openText,
35
+ /* @__PURE__ */ e(x, {})
36
+ ]
47
37
  }
48
- ),
49
- /* @__PURE__ */ e(o, { ...t, logo: l, userActions: n, searchBarProps: i })
50
- ] });
51
- };
38
+ )
39
+ ] }) }),
40
+ /* @__PURE__ */ e(c, { ...t, logo: a, userActions: n, searchBarProps: i })
41
+ ] });
52
42
  export {
53
- j as Header
43
+ v as Header
54
44
  };
@@ -11,5 +11,6 @@ export declare interface InputProps extends React.InputHTMLAttributes<HTMLInputE
11
11
  placeholder?: string;
12
12
  required?: boolean;
13
13
  tooltip?: string;
14
+ onInputChange?: (str: string) => void;
14
15
  }
15
16
 
@@ -1,21 +1,22 @@
1
- import { jsxs as e, jsx as l } from "react/jsx-runtime";
2
- const x = ({
1
+ import { jsxs as e, jsx as t } from "react/jsx-runtime";
2
+ const m = ({
3
3
  label: n,
4
- id: t,
4
+ id: l,
5
5
  name: s,
6
6
  type: i = "text",
7
7
  placeholder: u,
8
8
  required: r = !1,
9
9
  tooltip: a,
10
- ...c
10
+ onInputChange: c,
11
+ ...d
11
12
  }) => /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: [
12
13
  /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: [
13
- /* @__PURE__ */ e("label", { htmlFor: t, className: "text-medium font-bold text-neutral-800", children: [
14
+ /* @__PURE__ */ e("label", { htmlFor: l, className: "text-medium font-bold text-neutral-800", children: [
14
15
  n,
15
16
  " ",
16
- r && /* @__PURE__ */ l("span", { className: "text-red-500", children: "*" })
17
+ r && /* @__PURE__ */ t("span", { className: "text-red-500", children: "*" })
17
18
  ] }),
18
- a && /* @__PURE__ */ l(
19
+ a && /* @__PURE__ */ t(
19
20
  "span",
20
21
  {
21
22
  className: "text-extra-small inline-flex h-5 w-5 items-center justify-center rounded-full border border-neutral-200 text-neutral-400",
@@ -25,19 +26,22 @@ const x = ({
25
26
  }
26
27
  )
27
28
  ] }),
28
- /* @__PURE__ */ l(
29
+ /* @__PURE__ */ t(
29
30
  "input",
30
31
  {
31
- id: t,
32
+ id: l,
32
33
  name: s,
33
34
  type: i,
34
35
  placeholder: u,
35
36
  required: r,
36
- className: "bg-neutral-25 text-small focus-visible:outline-primary-500 w-full rounded border border-neutral-200 px-4 py-2 text-neutral-800 placeholder:text-neutral-400 focus-visible:outline-2",
37
- ...c
37
+ className: "bg-neutral-25 text-small focus-visible:outline-primary-500 w-full rounded border border-neutral-400 p-3 text-neutral-800 placeholder:text-neutral-600 focus-visible:outline-2",
38
+ onChange: (o) => {
39
+ c?.(o.target.value);
40
+ },
41
+ ...d
38
42
  }
39
43
  )
40
44
  ] });
41
45
  export {
42
- x as Input
46
+ m as Input
43
47
  };
@@ -1,40 +1,40 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import t from "react-markdown";
3
- import i from "rehype-raw";
4
- import p from "remark-gfm";
5
- import { Anchor as a } from "./Anchor.js";
6
- import { Blockquote as d } from "./Blockquote.js";
7
- import { Code as f } from "./Code.js";
8
- import { Header1 as n } from "./Header1.js";
9
- import { Header2 as l } from "./Header2.js";
10
- import { Header3 as c } from "./Header3.js";
11
- import { Header4 as s } from "./Header4.js";
12
- import { OrderedList as h } from "./OrderedList.js";
13
- import { Paragraph as u } from "./Paragraph.js";
14
- import { TableRow as b, TableHeader as k, TableData as H, Table as w } from "./Table.js";
15
- import { UnorderedList as T } from "./UnorderedList.js";
16
- import { Video as g } from "./Video.js";
3
+ import i from "remark-gfm";
4
+ import { Anchor as p } from "./Anchor.js";
5
+ import { Blockquote as a } from "./Blockquote.js";
6
+ import { Code as d } from "./Code.js";
7
+ import { Header1 as f } from "./Header1.js";
8
+ import { Header2 as n } from "./Header2.js";
9
+ import { Header3 as l } from "./Header3.js";
10
+ import { Header4 as c } from "./Header4.js";
11
+ import { OrderedList as s } from "./OrderedList.js";
12
+ import { Paragraph as h } from "./Paragraph.js";
13
+ import { TableRow as u, TableHeader as b, TableData as k, Table as H } from "./Table.js";
14
+ import { UnorderedList as w } from "./UnorderedList.js";
15
+ import { Video as T } from "./Video.js";
16
+ import g from "../node_modules/.pnpm/rehype-raw@7.0.0/node_modules/rehype-raw/lib/index.js";
17
17
  const z = ({ content: o, className: e = "", useCustom: m = !0 }) => /* @__PURE__ */ r("div", { className: e, children: /* @__PURE__ */ r(
18
18
  t,
19
19
  {
20
- rehypePlugins: [i],
21
- remarkPlugins: [p],
20
+ rehypePlugins: [g],
21
+ remarkPlugins: [i],
22
22
  components: m ? {
23
- h1: n,
24
- h2: l,
25
- h3: c,
26
- h4: s,
27
- p: u,
28
- a,
29
- ul: T,
30
- ol: h,
31
- code: f,
32
- blockquote: d,
33
- video: g,
34
- table: w,
35
- td: H,
36
- th: k,
37
- tr: b
23
+ h1: f,
24
+ h2: n,
25
+ h3: l,
26
+ h4: c,
27
+ p: h,
28
+ a: p,
29
+ ul: w,
30
+ ol: s,
31
+ code: d,
32
+ blockquote: a,
33
+ video: T,
34
+ table: H,
35
+ td: k,
36
+ th: b,
37
+ tr: u
38
38
  } : void 0,
39
39
  children: o
40
40
  }
@@ -1,41 +1,41 @@
1
- import { ComponentPropsWithRef } from 'react';
2
1
  import { FC } from 'react';
3
2
  import { ReactNode } from 'react';
4
3
 
5
- export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
6
- children: ReactNode;
7
- size?: ButtonSize;
8
- variant?: ResponsiveButtonVariant;
9
- iconPosition?: IconPosition;
10
- }
11
-
12
- export type ButtonSize = 'small' | 'default' | 'large';
13
-
14
- export type ButtonVariant = 'primary-green' | 'primary-darkgreen' | 'primary-yellow' | 'primary-white' | 'secondary-green' | 'secondary-yellow' | 'secondary-red' | 'secondary-black' | 'tertiary-bold' | 'tertiary-thin' | 'tertiary-icon' | 'tertiary-link' | 'icon-black' | 'icon-grey' | 'icon-mobile';
15
-
16
- export type IconPosition = 'left' | 'right' | 'top';
4
+ export declare type InputFieldData = {
5
+ isVisible: boolean;
6
+ id: string;
7
+ label: string;
8
+ name: string;
9
+ placeholder: string;
10
+ value: string;
11
+ onChange: (str: string) => void;
12
+ };
17
13
 
18
14
  export declare const Preform: FC<PreformProps>;
19
15
 
20
16
  export interface PreformOptionProps {
21
17
  label: string;
22
- selected: boolean;
18
+ value: string;
19
+ alternativeUrl: string;
23
20
  icon: ReactNode;
21
+ selected: boolean;
22
+ onClick?: (str: string) => void;
24
23
  }
25
24
 
26
25
  export declare interface PreformProps {
27
26
  trustedBadge: TrustedBadgeProps;
28
- title?: string;
29
- options: PreformOptionProps[];
30
- cta: ButtonProps;
27
+ cta: ReactNode;
28
+ radioFieldData?: RadioFieldData;
29
+ inputFieldData?: InputFieldData;
31
30
  }
32
31
 
33
- export type ResponsiveButtonVariant = ButtonVariant | {
34
- initial?: ButtonVariant;
35
- sm?: ButtonVariant;
36
- md?: ButtonVariant;
37
- lg?: ButtonVariant;
38
- xl?: ButtonVariant;
32
+ export declare type RadioFieldData = {
33
+ isVisible: boolean;
34
+ label: string;
35
+ name: string;
36
+ options: PreformOptionProps[];
37
+ radioSelected: string;
38
+ onClick: (str: string) => void;
39
39
  };
40
40
 
41
41
  export interface TrustedBadgeProps {
@@ -1,20 +1,42 @@
1
- import { jsx as e, jsxs as x } from "react/jsx-runtime";
2
- import { TrustedBadge as s } from "./TrustedBadge.js";
3
- import { PreformOption as p } from "./PreformOption.js";
4
- import { Button as c } from "./Button.js";
5
- const f = ({ trustedBadge: a, title: m, options: r, cta: t }) => /* @__PURE__ */ e("section", { className: "bg-neutral-25 pt-10 text-neutral-800 sm:px-6 lg:px-8 xl:px-30", children: /* @__PURE__ */ x("div", { className: "relative mx-auto flex max-w-300 flex-col gap-6 rounded bg-white px-6 pt-8 pb-6 shadow-md sm:items-center sm:gap-8 lg:px-26 xl:px-10", children: [
6
- /* @__PURE__ */ e(s, { ...a }),
7
- /* @__PURE__ */ e("h2", { className: "text-medium sm:text-large font-bold", children: m }),
8
- /* @__PURE__ */ e("div", { className: "flex w-full max-w-272 flex-wrap justify-center gap-2 sm:gap-4", children: r.map((l) => /* @__PURE__ */ e(
9
- "div",
10
- {
11
- className: "w-[calc(50%-4px)] sm:w-[calc(25%-12px)] lg:w-[calc(20%-13px)] xl:w-[calc(16.66%-14px)]",
12
- children: /* @__PURE__ */ e(p, { ...l })
13
- },
14
- l.label
15
- )) }),
16
- /* @__PURE__ */ e(c, { ...t })
1
+ import { jsx as l, jsxs as c, Fragment as a } from "react/jsx-runtime";
2
+ import { TrustedBadge as n } from "./TrustedBadge.js";
3
+ import { PreformOption as o } from "./PreformOption.js";
4
+ import { Input as p } from "./Input.js";
5
+ const d = ({ trustedBadge: r, cta: x, inputFieldData: e, radioFieldData: m }) => /* @__PURE__ */ l("section", { className: "bg-neutral-25 pt-10 text-neutral-800 sm:px-6 lg:px-8 xl:px-30", children: /* @__PURE__ */ c("div", { className: "relative mx-auto flex max-w-300 flex-col gap-6 rounded bg-white px-6 pt-8 pb-6 shadow-md sm:items-center sm:gap-8 lg:px-26 xl:px-10", children: [
6
+ /* @__PURE__ */ l(n, { ...r }),
7
+ m?.isVisible && /* @__PURE__ */ c(a, { children: [
8
+ /* @__PURE__ */ l("h2", { className: "text-medium sm:text-large font-bold", children: m.label }),
9
+ /* @__PURE__ */ c("div", { className: "flex w-full max-w-272 flex-wrap justify-center gap-2 sm:gap-4", children: [
10
+ m.options.map((s) => /* @__PURE__ */ l(
11
+ "div",
12
+ {
13
+ className: "w-[calc(50%-4px)] sm:w-[calc(25%-12px)] lg:w-[calc(20%-13px)] xl:w-[calc(16.66%-14px)]",
14
+ children: /* @__PURE__ */ l(
15
+ o,
16
+ {
17
+ ...s,
18
+ selected: s.value === m.radioSelected,
19
+ onClick: m.onClick
20
+ }
21
+ )
22
+ },
23
+ s.value
24
+ )),
25
+ e?.isVisible && /* @__PURE__ */ l("div", { className: "mt-4 flex basis-full justify-center md:mt-0", children: /* @__PURE__ */ l(
26
+ p,
27
+ {
28
+ id: e.id,
29
+ label: e.label,
30
+ name: e.name,
31
+ placeholder: e.placeholder,
32
+ value: e.value,
33
+ onInputChange: e.onChange
34
+ }
35
+ ) }, e.name)
36
+ ] })
37
+ ] }),
38
+ x
17
39
  ] }) });
18
40
  export {
19
- f as Preform
41
+ d as Preform
20
42
  };
@@ -5,7 +5,10 @@ export declare const PreformOption: FC<PreformOptionProps>;
5
5
 
6
6
  export declare interface PreformOptionProps {
7
7
  label: string;
8
- selected: boolean;
8
+ value: string;
9
+ alternativeUrl: string;
9
10
  icon: ReactNode;
11
+ selected: boolean;
12
+ onClick?: (str: string) => void;
10
13
  }
11
14
 
@@ -1,21 +1,24 @@
1
- import { jsxs as n, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
2
  import "react";
3
- const i = ({ label: o, selected: r, icon: l }) => /* @__PURE__ */ n(
3
+ const m = ({ value: o, label: l, selected: r, icon: n, onClick: t }) => /* @__PURE__ */ i(
4
4
  "button",
5
5
  {
6
- className: `group flex w-full cursor-pointer items-center gap-2 rounded border p-2 hover:bg-neutral-50 sm:flex-col sm:p-4 ${r ? "border-primary-900 border-2" : "border-neutral-200"}`,
6
+ className: `group flex w-full cursor-pointer items-center gap-2 rounded border-2 p-2 hover:bg-neutral-50 sm:flex-col sm:p-4 ${r ? "border-primary-900" : "border-neutral-200"}`,
7
+ onClick: () => {
8
+ t?.(o);
9
+ },
7
10
  children: [
8
- /* @__PURE__ */ e("div", { className: "size-6 sm:size-12", children: l }),
11
+ /* @__PURE__ */ e("div", { className: "size-6 sm:size-12", children: n }),
9
12
  /* @__PURE__ */ e(
10
13
  "span",
11
14
  {
12
15
  className: `text-small inline-grid place-content-center text-neutral-800 group-hover:font-bold lg:h-9 lg:w-34 lg:align-middle ${r ? "font-bold" : "font-normal"}`,
13
- children: o
16
+ children: l
14
17
  }
15
18
  )
16
19
  ]
17
20
  }
18
21
  );
19
22
  export {
20
- i as PreformOption
23
+ m as PreformOption
21
24
  };
@@ -84,6 +84,16 @@ export interface ImageWithPreviewProps {
84
84
  large: ReactNode;
85
85
  }
86
86
 
87
+ export type InputFieldData = {
88
+ isVisible: boolean;
89
+ id: string;
90
+ label: string;
91
+ name: string;
92
+ placeholder: string;
93
+ value: string;
94
+ onChange: (str: string) => void;
95
+ };
96
+
87
97
  export interface JumbotronProps {
88
98
  title: string;
89
99
  description: string;
@@ -97,15 +107,18 @@ export interface LinkedProductProps {
97
107
 
98
108
  export interface PreformOptionProps {
99
109
  label: string;
100
- selected: boolean;
110
+ value: string;
111
+ alternativeUrl: string;
101
112
  icon: ReactNode;
113
+ selected: boolean;
114
+ onClick?: (str: string) => void;
102
115
  }
103
116
 
104
117
  export interface PreformProps {
105
118
  trustedBadge: TrustedBadgeProps;
106
- title?: string;
107
- options: PreformOptionProps[];
108
- cta: ButtonProps;
119
+ cta: ReactNode;
120
+ radioFieldData?: RadioFieldData;
121
+ inputFieldData?: InputFieldData;
109
122
  }
110
123
 
111
124
  export interface PreviewDownloadProps {
@@ -148,6 +161,15 @@ export declare interface ProductTemplateProps {
148
161
  tryNowSection: TryNowSectionProps;
149
162
  }
150
163
 
164
+ export type RadioFieldData = {
165
+ isVisible: boolean;
166
+ label: string;
167
+ name: string;
168
+ options: PreformOptionProps[];
169
+ radioSelected: string;
170
+ onClick: (str: string) => void;
171
+ };
172
+
151
173
  export type ResponsiveButtonVariant = ButtonVariant | {
152
174
  initial?: ButtonVariant;
153
175
  sm?: ButtonVariant;