@npm_leadtech/legal-contracts-ui 0.58.8 → 0.59.1
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 +1 -0
- package/dist/components/ContactBanner.js +23 -13
- package/dist/components/ContactFormSection.js +1 -1
- package/dist/components/Header.js +44 -34
- package/dist/components/Input.d.ts +0 -1
- package/dist/components/Input.js +12 -16
- package/dist/components/Markdown.js +31 -31
- package/dist/components/Preform.d.ts +23 -22
- package/dist/components/Preform.js +17 -39
- package/dist/components/PreformOption.d.ts +1 -3
- package/dist/components/PreformOption.js +6 -9
- package/dist/components/ProductTemplate.d.ts +4 -25
- package/dist/globals.css +1 -1
- package/dist/shared/hooks/useScroll.js +15 -0
- package/package.json +1 -1
- package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/deserialize.js +0 -62
- package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/index.js +0 -11
- package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/serialize.js +0 -106
- package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/types.js +0 -13
- package/dist/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.js +0 -20
- package/dist/node_modules/.pnpm/devlop@1.1.0/node_modules/devlop/lib/default.js +0 -5
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.js +0 -38
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.js +0 -245
- package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.js +0 -7
- package/dist/node_modules/.pnpm/hast-util-from-parse5@8.0.3/node_modules/hast-util-from-parse5/lib/index.js +0 -145
- package/dist/node_modules/.pnpm/hast-util-parse-selector@4.0.0/node_modules/hast-util-parse-selector/lib/index.js +0 -20
- package/dist/node_modules/.pnpm/hast-util-raw@9.1.0/node_modules/hast-util-raw/lib/index.js +0 -217
- package/dist/node_modules/.pnpm/hast-util-to-parse5@8.0.1/node_modules/hast-util-to-parse5/lib/index.js +0 -118
- package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/create-h.js +0 -112
- package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/index.js +0 -8
- package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +0 -44
- package/dist/node_modules/.pnpm/html-void-elements@3.0.0/node_modules/html-void-elements/index.js +0 -25
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/doctype.js +0 -98
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/error-codes.js +0 -7
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/foreign-content.js +0 -210
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/html.js +0 -250
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/token.js +0 -14
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/unicode.js +0 -73
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/formatting-element-list.js +0 -84
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/index.js +0 -2271
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/open-element-stack.js +0 -240
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/serializer/index.js +0 -2
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/index.js +0 -1940
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/preprocessor.js +0 -88
- package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tree-adapters/default.js +0 -162
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/index.js +0 -12
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/aria.js +0 -61
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/find.js +0 -33
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/html.js +0 -368
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/normalize.js +0 -6
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/svg.js +0 -566
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-insensitive-transform.js +0 -7
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-sensitive-transform.js +0 -6
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/create.js +0 -19
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/defined-info.js +0 -36
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/info.js +0 -28
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/merge.js +0 -10
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/schema.js +0 -21
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/types.js +0 -14
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xlink.js +0 -19
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xml.js +0 -11
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xmlns.js +0 -11
- package/dist/node_modules/.pnpm/rehype-raw@7.0.0/node_modules/rehype-raw/lib/index.js +0 -12
- package/dist/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.js +0 -11
- package/dist/node_modules/.pnpm/unist-util-is@6.0.1/node_modules/unist-util-is/lib/index.js +0 -91
- package/dist/node_modules/.pnpm/unist-util-position@5.0.0/node_modules/unist-util-position/lib/index.js +0 -17
- package/dist/node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/color.js +0 -6
- package/dist/node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/index.js +0 -56
- package/dist/node_modules/.pnpm/unist-util-visit@5.1.0/node_modules/unist-util-visit/lib/index.js +0 -16
- package/dist/node_modules/.pnpm/vfile-location@5.0.3/node_modules/vfile-location/lib/index.js +0 -42
- package/dist/node_modules/.pnpm/web-namespaces@2.0.1/node_modules/web-namespaces/index.js +0 -11
- package/dist/node_modules/.pnpm/zwitch@2.0.4/node_modules/zwitch/index.js +0 -18
|
@@ -1,16 +1,26 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
+
};
|
|
14
24
|
export {
|
|
15
|
-
|
|
25
|
+
h as ContactBanner
|
|
16
26
|
};
|
|
@@ -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";
|
|
2
3
|
import { Select as t } from "./Select.js";
|
|
3
4
|
import { Textarea as i } from "./Textarea.js";
|
|
4
5
|
import { Checkbox as l } from "./Checkbox.js";
|
|
5
6
|
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,44 +1,54 @@
|
|
|
1
|
-
import { jsxs as r,
|
|
1
|
+
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { MobileMenu as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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";
|
|
6
7
|
import { ScalatorIcon as x } from "./ScalatorIcon.js";
|
|
7
|
-
import { SearchBar as
|
|
8
|
-
const
|
|
9
|
-
logo:
|
|
8
|
+
import { SearchBar as f } from "./SearchBar.js";
|
|
9
|
+
const j = ({
|
|
10
|
+
logo: l,
|
|
10
11
|
navMenu: d,
|
|
11
12
|
searchBarProps: i,
|
|
12
|
-
languageSelectorProps:
|
|
13
|
+
languageSelectorProps: a,
|
|
13
14
|
userActions: n,
|
|
14
15
|
mobileMenu: t
|
|
15
|
-
}) =>
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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",
|
|
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",
|
|
28
21
|
{
|
|
29
|
-
className:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
|
|
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
|
+
] })
|
|
37
47
|
}
|
|
38
|
-
)
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
48
|
+
),
|
|
49
|
+
/* @__PURE__ */ e(o, { ...t, logo: l, userActions: n, searchBarProps: i })
|
|
50
|
+
] });
|
|
51
|
+
};
|
|
42
52
|
export {
|
|
43
|
-
|
|
53
|
+
j as Header
|
|
44
54
|
};
|
package/dist/components/Input.js
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import { jsxs as e, jsx as
|
|
2
|
-
const
|
|
1
|
+
import { jsxs as e, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
const x = ({
|
|
3
3
|
label: n,
|
|
4
|
-
id:
|
|
4
|
+
id: t,
|
|
5
5
|
name: s,
|
|
6
6
|
type: i = "text",
|
|
7
7
|
placeholder: u,
|
|
8
8
|
required: r = !1,
|
|
9
9
|
tooltip: a,
|
|
10
|
-
|
|
11
|
-
...d
|
|
10
|
+
...c
|
|
12
11
|
}) => /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: [
|
|
13
12
|
/* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: [
|
|
14
|
-
/* @__PURE__ */ e("label", { htmlFor:
|
|
13
|
+
/* @__PURE__ */ e("label", { htmlFor: t, className: "text-medium font-bold text-neutral-800", children: [
|
|
15
14
|
n,
|
|
16
15
|
" ",
|
|
17
|
-
r && /* @__PURE__ */
|
|
16
|
+
r && /* @__PURE__ */ l("span", { className: "text-red-500", children: "*" })
|
|
18
17
|
] }),
|
|
19
|
-
a && /* @__PURE__ */
|
|
18
|
+
a && /* @__PURE__ */ l(
|
|
20
19
|
"span",
|
|
21
20
|
{
|
|
22
21
|
className: "text-extra-small inline-flex h-5 w-5 items-center justify-center rounded-full border border-neutral-200 text-neutral-400",
|
|
@@ -26,22 +25,19 @@ const m = ({
|
|
|
26
25
|
}
|
|
27
26
|
)
|
|
28
27
|
] }),
|
|
29
|
-
/* @__PURE__ */
|
|
28
|
+
/* @__PURE__ */ l(
|
|
30
29
|
"input",
|
|
31
30
|
{
|
|
32
|
-
id:
|
|
31
|
+
id: t,
|
|
33
32
|
name: s,
|
|
34
33
|
type: i,
|
|
35
34
|
placeholder: u,
|
|
36
35
|
required: r,
|
|
37
|
-
className: "bg-neutral-25 text-small focus-visible:outline-primary-500 w-full rounded border border-neutral-
|
|
38
|
-
|
|
39
|
-
c?.(o.target.value);
|
|
40
|
-
},
|
|
41
|
-
...d
|
|
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
|
|
42
38
|
}
|
|
43
39
|
)
|
|
44
40
|
] });
|
|
45
41
|
export {
|
|
46
|
-
|
|
42
|
+
x as Input
|
|
47
43
|
};
|
|
@@ -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
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import g from "
|
|
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";
|
|
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: [i],
|
|
21
|
+
remarkPlugins: [p],
|
|
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: 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
|
|
38
38
|
} : void 0,
|
|
39
39
|
children: o
|
|
40
40
|
}
|
|
@@ -1,40 +1,41 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
1
2
|
import { FC } from 'react';
|
|
2
3
|
import { ReactNode } from 'react';
|
|
3
4
|
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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';
|
|
13
17
|
|
|
14
18
|
export declare const Preform: FC<PreformProps>;
|
|
15
19
|
|
|
16
20
|
export interface PreformOptionProps {
|
|
17
21
|
label: string;
|
|
18
|
-
value: string;
|
|
19
|
-
icon: ReactNode;
|
|
20
22
|
selected: boolean;
|
|
21
|
-
|
|
23
|
+
icon: ReactNode;
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
export declare interface PreformProps {
|
|
25
27
|
trustedBadge: TrustedBadgeProps;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
title?: string;
|
|
29
|
+
options: PreformOptionProps[];
|
|
30
|
+
cta: ButtonProps;
|
|
29
31
|
}
|
|
30
32
|
|
|
31
|
-
export
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
onClick: (str: string) => void;
|
|
33
|
+
export type ResponsiveButtonVariant = ButtonVariant | {
|
|
34
|
+
initial?: ButtonVariant;
|
|
35
|
+
sm?: ButtonVariant;
|
|
36
|
+
md?: ButtonVariant;
|
|
37
|
+
lg?: ButtonVariant;
|
|
38
|
+
xl?: ButtonVariant;
|
|
38
39
|
};
|
|
39
40
|
|
|
40
41
|
export interface TrustedBadgeProps {
|
|
@@ -1,42 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { TrustedBadge as
|
|
3
|
-
import { PreformOption as
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
6
|
-
/* @__PURE__ */
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
|
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 })
|
|
39
17
|
] }) });
|
|
40
18
|
export {
|
|
41
|
-
|
|
19
|
+
f as Preform
|
|
42
20
|
};
|
|
@@ -1,24 +1,21 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
const
|
|
3
|
+
const i = ({ label: o, selected: r, icon: l }) => /* @__PURE__ */ n(
|
|
4
4
|
"button",
|
|
5
5
|
{
|
|
6
|
-
className: `group flex w-full cursor-pointer items-center gap-2 rounded border
|
|
7
|
-
onClick: () => {
|
|
8
|
-
t?.(o);
|
|
9
|
-
},
|
|
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"}`,
|
|
10
7
|
children: [
|
|
11
|
-
/* @__PURE__ */ e("div", { className: "size-6 sm:size-12", children:
|
|
8
|
+
/* @__PURE__ */ e("div", { className: "size-6 sm:size-12", children: l }),
|
|
12
9
|
/* @__PURE__ */ e(
|
|
13
10
|
"span",
|
|
14
11
|
{
|
|
15
12
|
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"}`,
|
|
16
|
-
children:
|
|
13
|
+
children: o
|
|
17
14
|
}
|
|
18
15
|
)
|
|
19
16
|
]
|
|
20
17
|
}
|
|
21
18
|
);
|
|
22
19
|
export {
|
|
23
|
-
|
|
20
|
+
i as PreformOption
|
|
24
21
|
};
|
|
@@ -84,16 +84,6 @@ 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
|
-
value: string;
|
|
93
|
-
placeholder: string;
|
|
94
|
-
onChange: (str: string) => void;
|
|
95
|
-
};
|
|
96
|
-
|
|
97
87
|
export interface JumbotronProps {
|
|
98
88
|
title: string;
|
|
99
89
|
description: string;
|
|
@@ -107,17 +97,15 @@ export interface LinkedProductProps {
|
|
|
107
97
|
|
|
108
98
|
export interface PreformOptionProps {
|
|
109
99
|
label: string;
|
|
110
|
-
value: string;
|
|
111
|
-
icon: ReactNode;
|
|
112
100
|
selected: boolean;
|
|
113
|
-
|
|
101
|
+
icon: ReactNode;
|
|
114
102
|
}
|
|
115
103
|
|
|
116
104
|
export interface PreformProps {
|
|
117
105
|
trustedBadge: TrustedBadgeProps;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
106
|
+
title?: string;
|
|
107
|
+
options: PreformOptionProps[];
|
|
108
|
+
cta: ButtonProps;
|
|
121
109
|
}
|
|
122
110
|
|
|
123
111
|
export interface PreviewDownloadProps {
|
|
@@ -160,15 +148,6 @@ export declare interface ProductTemplateProps {
|
|
|
160
148
|
tryNowSection: TryNowSectionProps;
|
|
161
149
|
}
|
|
162
150
|
|
|
163
|
-
export type RadioFieldData = {
|
|
164
|
-
isVisible: boolean;
|
|
165
|
-
label: string;
|
|
166
|
-
name: string;
|
|
167
|
-
options: PreformOptionProps[];
|
|
168
|
-
radioSelected: string;
|
|
169
|
-
onClick: (str: string) => void;
|
|
170
|
-
};
|
|
171
|
-
|
|
172
151
|
export type ResponsiveButtonVariant = ButtonVariant | {
|
|
173
152
|
initial?: ButtonVariant;
|
|
174
153
|
sm?: ButtonVariant;
|