@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.
- package/dist/components/ContactBanner.d.ts +0 -1
- package/dist/components/ContactBanner.js +13 -23
- package/dist/components/ContactFormSection.js +1 -1
- package/dist/components/Header.js +34 -44
- package/dist/components/Input.d.ts +1 -0
- package/dist/components/Input.js +16 -12
- package/dist/components/Markdown.js +31 -31
- package/dist/components/Preform.d.ts +23 -23
- package/dist/components/Preform.js +39 -17
- package/dist/components/PreformOption.d.ts +4 -1
- package/dist/components/PreformOption.js +9 -6
- package/dist/components/ProductTemplate.d.ts +26 -4
- package/dist/globals.css +1 -1
- package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/deserialize.js +62 -0
- package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/index.js +11 -0
- package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/serialize.js +106 -0
- package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/types.js +13 -0
- package/dist/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.js +20 -0
- package/dist/node_modules/.pnpm/devlop@1.1.0/node_modules/devlop/lib/default.js +5 -0
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.js +38 -0
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.js +245 -0
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.js +7 -0
- package/dist/node_modules/.pnpm/hast-util-from-parse5@8.0.3/node_modules/hast-util-from-parse5/lib/index.js +145 -0
- package/dist/node_modules/.pnpm/hast-util-parse-selector@4.0.0/node_modules/hast-util-parse-selector/lib/index.js +20 -0
- package/dist/node_modules/.pnpm/hast-util-raw@9.1.0/node_modules/hast-util-raw/lib/index.js +217 -0
- package/dist/node_modules/.pnpm/hast-util-to-parse5@8.0.1/node_modules/hast-util-to-parse5/lib/index.js +118 -0
- package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/create-h.js +112 -0
- package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/index.js +8 -0
- package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +44 -0
- package/dist/node_modules/.pnpm/html-void-elements@3.0.0/node_modules/html-void-elements/index.js +25 -0
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/doctype.js +98 -0
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/error-codes.js +7 -0
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/foreign-content.js +210 -0
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/html.js +250 -0
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/token.js +14 -0
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/unicode.js +73 -0
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/formatting-element-list.js +84 -0
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/index.js +2271 -0
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/open-element-stack.js +240 -0
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/serializer/index.js +2 -0
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/index.js +1940 -0
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/preprocessor.js +88 -0
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tree-adapters/default.js +162 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/index.js +12 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/aria.js +61 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/find.js +33 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/html.js +368 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/normalize.js +6 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/svg.js +566 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/create.js +19 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/defined-info.js +36 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/info.js +28 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/merge.js +10 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/schema.js +21 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/types.js +14 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xlink.js +19 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xml.js +11 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xmlns.js +11 -0
- package/dist/node_modules/.pnpm/rehype-raw@7.0.0/node_modules/rehype-raw/lib/index.js +12 -0
- package/dist/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.js +11 -0
- package/dist/node_modules/.pnpm/unist-util-is@6.0.1/node_modules/unist-util-is/lib/index.js +91 -0
- package/dist/node_modules/.pnpm/unist-util-position@5.0.0/node_modules/unist-util-position/lib/index.js +17 -0
- package/dist/node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/color.js +6 -0
- package/dist/node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/index.js +56 -0
- package/dist/node_modules/.pnpm/unist-util-visit@5.1.0/node_modules/unist-util-visit/lib/index.js +16 -0
- package/dist/node_modules/.pnpm/vfile-location@5.0.3/node_modules/vfile-location/lib/index.js +42 -0
- package/dist/node_modules/.pnpm/web-namespaces@2.0.1/node_modules/web-namespaces/index.js +11 -0
- package/dist/node_modules/.pnpm/zwitch@2.0.4/node_modules/zwitch/index.js +18 -0
- package/package.json +1 -1
- package/dist/shared/hooks/useScroll.js +0 -15
|
@@ -1,26 +1,16 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
|
|
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
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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
|
|
9
|
-
const
|
|
10
|
-
logo:
|
|
7
|
+
import { SearchBar as o } from "./SearchBar.js";
|
|
8
|
+
const v = ({
|
|
9
|
+
logo: a,
|
|
11
10
|
navMenu: d,
|
|
12
11
|
searchBarProps: i,
|
|
13
|
-
languageSelectorProps:
|
|
12
|
+
languageSelectorProps: l,
|
|
14
13
|
userActions: n,
|
|
15
14
|
mobileMenu: t
|
|
16
|
-
}) => {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
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:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
|
|
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
|
-
|
|
50
|
-
|
|
51
|
-
};
|
|
38
|
+
)
|
|
39
|
+
] }) }),
|
|
40
|
+
/* @__PURE__ */ e(c, { ...t, logo: a, userActions: n, searchBarProps: i })
|
|
41
|
+
] });
|
|
52
42
|
export {
|
|
53
|
-
|
|
43
|
+
v as Header
|
|
54
44
|
};
|
package/dist/components/Input.js
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { jsxs as e, jsx as
|
|
2
|
-
const
|
|
1
|
+
import { jsxs as e, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
const m = ({
|
|
3
3
|
label: n,
|
|
4
|
-
id:
|
|
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
|
-
|
|
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:
|
|
14
|
+
/* @__PURE__ */ e("label", { htmlFor: l, className: "text-medium font-bold text-neutral-800", children: [
|
|
14
15
|
n,
|
|
15
16
|
" ",
|
|
16
|
-
r && /* @__PURE__ */
|
|
17
|
+
r && /* @__PURE__ */ t("span", { className: "text-red-500", children: "*" })
|
|
17
18
|
] }),
|
|
18
|
-
a && /* @__PURE__ */
|
|
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__ */
|
|
29
|
+
/* @__PURE__ */ t(
|
|
29
30
|
"input",
|
|
30
31
|
{
|
|
31
|
-
id:
|
|
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-
|
|
37
|
-
|
|
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
|
-
|
|
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 "
|
|
4
|
-
import p from "
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
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: [
|
|
21
|
-
remarkPlugins: [
|
|
20
|
+
rehypePlugins: [g],
|
|
21
|
+
remarkPlugins: [i],
|
|
22
22
|
components: m ? {
|
|
23
|
-
h1:
|
|
24
|
-
h2:
|
|
25
|
-
h3:
|
|
26
|
-
h4:
|
|
27
|
-
p:
|
|
28
|
-
a,
|
|
29
|
-
ul:
|
|
30
|
-
ol:
|
|
31
|
-
code:
|
|
32
|
-
blockquote:
|
|
33
|
-
video:
|
|
34
|
-
table:
|
|
35
|
-
td:
|
|
36
|
-
th:
|
|
37
|
-
tr:
|
|
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
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
cta: ReactNode;
|
|
28
|
+
radioFieldData?: RadioFieldData;
|
|
29
|
+
inputFieldData?: InputFieldData;
|
|
31
30
|
}
|
|
32
31
|
|
|
33
|
-
export type
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
|
2
|
-
import { TrustedBadge as
|
|
3
|
-
import { PreformOption as
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
6
|
-
/* @__PURE__ */
|
|
7
|
-
/* @__PURE__ */
|
|
8
|
-
|
|
9
|
-
"div",
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
const
|
|
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
|
|
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:
|
|
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:
|
|
16
|
+
children: l
|
|
14
17
|
}
|
|
15
18
|
)
|
|
16
19
|
]
|
|
17
20
|
}
|
|
18
21
|
);
|
|
19
22
|
export {
|
|
20
|
-
|
|
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
|
-
|
|
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
|
-
|
|
107
|
-
|
|
108
|
-
|
|
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;
|