@npm_leadtech/legal-contracts-ui 0.59.3 → 0.59.5
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/Button.utils.js +36 -92
- package/dist/components/ContactBanner.d.ts +1 -0
- package/dist/components/ContactBanner.js +23 -11
- package/dist/components/Header.d.ts +9 -0
- package/dist/components/Header.js +57 -38
- package/dist/components/Markdown.js +31 -31
- package/dist/globals.css +1 -1
- 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,102 +1,46 @@
|
|
|
1
|
-
const
|
|
2
|
-
"primary-green":
|
|
3
|
-
"primary-darkgreen":
|
|
4
|
-
"primary-yellow":
|
|
5
|
-
"primary-white":
|
|
6
|
-
"secondary-green":
|
|
7
|
-
"secondary-yellow":
|
|
8
|
-
"secondary-red":
|
|
9
|
-
"secondary-black":
|
|
10
|
-
"tertiary-bold":
|
|
11
|
-
"tertiary-thin":
|
|
12
|
-
"tertiary-icon":
|
|
13
|
-
"tertiary-link":
|
|
14
|
-
"icon-black":
|
|
15
|
-
"icon-grey":
|
|
16
|
-
"icon-mobile":
|
|
17
|
-
}, o = {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"tertiary-bold": "sm:btn-tertiary-bold",
|
|
27
|
-
"tertiary-thin": "sm:btn-tertiary-thin",
|
|
28
|
-
"tertiary-icon": "sm:btn-tertiary-icon",
|
|
29
|
-
"tertiary-link": "sm:btn-tertiary-link",
|
|
30
|
-
"icon-black": "sm:btn-icon-black",
|
|
31
|
-
"icon-grey": "sm:btn-icon-grey",
|
|
32
|
-
"icon-mobile": "sm:btn-icon-mobile"
|
|
33
|
-
}, b = {
|
|
34
|
-
"primary-green": "md:btn-primary-green",
|
|
35
|
-
"primary-darkgreen": "md:btn-primary-darkgreen",
|
|
36
|
-
"primary-yellow": "md:btn-primary-yellow",
|
|
37
|
-
"primary-white": "md:btn-primary-white",
|
|
38
|
-
"secondary-green": "md:btn-secondary-green",
|
|
39
|
-
"secondary-yellow": "md:btn-secondary-yellow",
|
|
40
|
-
"secondary-red": "md:btn-secondary-red",
|
|
41
|
-
"secondary-black": "md:btn-secondary-black",
|
|
42
|
-
"tertiary-bold": "md:btn-tertiary-bold",
|
|
43
|
-
"tertiary-thin": "md:btn-tertiary-thin",
|
|
44
|
-
"tertiary-icon": "md:btn-tertiary-icon",
|
|
45
|
-
"tertiary-link": "md:btn-tertiary-link",
|
|
46
|
-
"icon-black": "md:btn-icon-black",
|
|
47
|
-
"icon-grey": "md:btn-icon-grey",
|
|
48
|
-
"icon-mobile": "md:btn-icon-mobile"
|
|
49
|
-
}, c = {
|
|
50
|
-
"primary-green": "lg:btn-primary-green",
|
|
51
|
-
"primary-darkgreen": "lg:btn-primary-darkgreen",
|
|
52
|
-
"primary-yellow": "lg:btn-primary-yellow",
|
|
53
|
-
"primary-white": "lg:btn-primary-white",
|
|
54
|
-
"secondary-green": "lg:btn-secondary-green",
|
|
55
|
-
"secondary-yellow": "lg:btn-secondary-yellow",
|
|
56
|
-
"secondary-red": "lg:btn-secondary-red",
|
|
57
|
-
"secondary-black": "lg:btn-secondary-black",
|
|
58
|
-
"tertiary-bold": "lg:btn-tertiary-bold",
|
|
59
|
-
"tertiary-thin": "lg:btn-tertiary-thin",
|
|
60
|
-
"tertiary-icon": "lg:btn-tertiary-icon",
|
|
61
|
-
"tertiary-link": "lg:btn-tertiary-link",
|
|
62
|
-
"icon-black": "lg:btn-icon-black",
|
|
63
|
-
"icon-grey": "lg:btn-icon-grey",
|
|
64
|
-
"icon-mobile": "lg:btn-icon-mobile"
|
|
65
|
-
}, s = {
|
|
66
|
-
"primary-green": "xl:btn-primary-green",
|
|
67
|
-
"primary-darkgreen": "xl:btn-primary-darkgreen",
|
|
68
|
-
"primary-yellow": "xl:btn-primary-yellow",
|
|
69
|
-
"primary-white": "xl:btn-primary-white",
|
|
70
|
-
"secondary-green": "xl:btn-secondary-green",
|
|
71
|
-
"secondary-yellow": "xl:btn-secondary-yellow",
|
|
72
|
-
"secondary-red": "xl:btn-secondary-red",
|
|
73
|
-
"secondary-black": "xl:btn-secondary-black",
|
|
74
|
-
"tertiary-bold": "xl:btn-tertiary-bold",
|
|
75
|
-
"tertiary-thin": "xl:btn-tertiary-thin",
|
|
76
|
-
"tertiary-icon": "xl:btn-tertiary-icon",
|
|
77
|
-
"tertiary-link": "xl:btn-tertiary-link",
|
|
78
|
-
"icon-black": "xl:btn-icon-black",
|
|
79
|
-
"icon-grey": "xl:btn-icon-grey",
|
|
80
|
-
"icon-mobile": "xl:btn-icon-mobile"
|
|
81
|
-
}, d = {
|
|
1
|
+
const r = "inline-flex items-center justify-center gap-2 rounded-sm transition-all duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2", d = {
|
|
2
|
+
"primary-green": `${r} bg-primary-700 hover:bg-primary-500 border border-transparent font-semibold text-white disabled:cursor-not-allowed disabled:bg-neutral-200 disabled:text-neutral-400`,
|
|
3
|
+
"primary-darkgreen": `${r} bg-primary-900 hover:bg-primary-800 border border-transparent font-semibold text-white disabled:cursor-not-allowed disabled:bg-neutral-200 disabled:text-neutral-400`,
|
|
4
|
+
"primary-yellow": `${r} bg-secondary-500 hover:bg-secondary-400 border border-transparent font-semibold text-neutral-900 disabled:cursor-not-allowed disabled:bg-neutral-200 disabled:text-neutral-400`,
|
|
5
|
+
"primary-white": `${r} border border-transparent bg-white font-semibold text-neutral-900 hover:bg-neutral-50 disabled:cursor-not-allowed disabled:bg-neutral-200 disabled:text-neutral-400`,
|
|
6
|
+
"secondary-green": `${r} border-2 border-primary-700 bg-white font-semibold text-primary-700 hover:bg-primary-100 hover:text-primary-800 disabled:cursor-not-allowed disabled:border-neutral-200 disabled:bg-neutral-200 disabled:text-neutral-400`,
|
|
7
|
+
"secondary-yellow": `${r} border-2 border-secondary-500 bg-transparent font-semibold text-neutral-900 hover:border-secondary-600 hover:bg-secondary-100 disabled:cursor-not-allowed disabled:border-neutral-200 disabled:bg-neutral-200 disabled:text-neutral-400`,
|
|
8
|
+
"secondary-red": `${r} border-2 border-error-500 bg-transparent font-semibold text-error-500 hover:bg-error-25 disabled:cursor-not-allowed disabled:border-neutral-200 disabled:bg-neutral-200 disabled:text-neutral-400`,
|
|
9
|
+
"secondary-black": `${r} border-2 border-neutral-600 bg-transparent font-semibold text-neutral-800 hover:bg-neutral-200 disabled:cursor-not-allowed disabled:border-neutral-200 disabled:bg-neutral-200 disabled:text-neutral-400`,
|
|
10
|
+
"tertiary-bold": `${r} border border-transparent bg-transparent p-1.5! font-semibold text-primary-700 hover:bg-primary-200 hover:text-primary-500 disabled:cursor-not-allowed disabled:bg-white disabled:text-neutral-400`,
|
|
11
|
+
"tertiary-thin": `${r} border border-transparent bg-transparent p-1.5! font-normal text-neutral-800 hover:bg-primary-100 disabled:cursor-not-allowed disabled:bg-white disabled:text-neutral-400`,
|
|
12
|
+
"tertiary-icon": `${r} border border-transparent bg-transparent p-1.5! font-medium text-neutral-800 hover:bg-primary-100 disabled:cursor-not-allowed disabled:bg-white disabled:text-neutral-400`,
|
|
13
|
+
"tertiary-link": `${r} border border-transparent bg-transparent text-primary-700 underline underline-offset-2 disabled:cursor-not-allowed disabled:bg-white disabled:text-neutral-400`,
|
|
14
|
+
"icon-black": `${r} border border-transparent bg-black font-semibold text-white hover:bg-neutral-800 disabled:cursor-not-allowed disabled:bg-neutral-400`,
|
|
15
|
+
"icon-grey": `${r} border-2 border-neutral-600 bg-transparent font-semibold text-neutral-800 hover:bg-neutral-200 disabled:cursor-not-allowed disabled:border-neutral-400 disabled:bg-white disabled:text-neutral-400`,
|
|
16
|
+
"icon-mobile": `${r} border-2 border-neutral-200 bg-transparent px-8! text-primary-700 !rounded-sm hover:bg-neutral-50 disabled:cursor-not-allowed disabled:border-neutral-400 disabled:bg-white disabled:text-neutral-400`
|
|
17
|
+
}, o = (t, e) => e.split(" ").map((l) => `${t}:${l}`).join(" "), i = Object.fromEntries(
|
|
18
|
+
Object.entries(d).map(([t, e]) => [t, o("sm", e)])
|
|
19
|
+
), u = Object.fromEntries(
|
|
20
|
+
Object.entries(d).map(([t, e]) => [t, o("md", e)])
|
|
21
|
+
), p = Object.fromEntries(
|
|
22
|
+
Object.entries(d).map(([t, e]) => [t, o("lg", e)])
|
|
23
|
+
), g = Object.fromEntries(
|
|
24
|
+
Object.entries(d).map(([t, e]) => [t, o("xl", e)])
|
|
25
|
+
), c = {
|
|
82
26
|
small: "px-3 py-1.5 text-small",
|
|
83
27
|
default: "px-4 py-2.5 text-medium",
|
|
84
28
|
large: "px-6 py-3 text-big"
|
|
85
|
-
},
|
|
86
|
-
const
|
|
29
|
+
}, f = (t = "default", e = "primary-green", l = "left", n = !1, s) => {
|
|
30
|
+
const b = () => l === "top" ? "flex-col" : l === "right" ? "flex-row-reverse" : "flex-row";
|
|
87
31
|
return [
|
|
88
|
-
|
|
32
|
+
n ? "" : "cursor-pointer",
|
|
89
33
|
(() => {
|
|
90
|
-
if (typeof
|
|
91
|
-
return
|
|
92
|
-
const
|
|
93
|
-
return
|
|
34
|
+
if (typeof e == "string")
|
|
35
|
+
return d[e];
|
|
36
|
+
const a = [];
|
|
37
|
+
return e.initial && a.push(d[e.initial]), e.sm && a.push(i[e.sm]), e.md && a.push(u[e.md]), e.lg && a.push(p[e.lg]), e.xl && a.push(g[e.xl]), a.join(" ");
|
|
94
38
|
})(),
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
39
|
+
c[t],
|
|
40
|
+
b(),
|
|
41
|
+
s
|
|
98
42
|
].join(" ");
|
|
99
43
|
};
|
|
100
44
|
export {
|
|
101
|
-
|
|
45
|
+
f as getButtonClasses
|
|
102
46
|
};
|
|
@@ -1,16 +1,28 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import { InfoIcon as r } from "./InfoIcon.js";
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
const o = ({
|
|
5
|
+
contactText: s,
|
|
6
|
+
phoneNumber: l,
|
|
7
|
+
contactHoursText: t,
|
|
8
|
+
contactHours: a,
|
|
9
|
+
isScrolled: i
|
|
10
|
+
}) => /* @__PURE__ */ e(
|
|
11
|
+
"section",
|
|
12
|
+
{
|
|
13
|
+
className: `flex w-full justify-center border-b border-neutral-200 bg-neutral-50 px-4 transition-all duration-500 ease-in-out ${i ? "h-0 py-0" : "h-8.75 py-2"}`,
|
|
14
|
+
children: /* @__PURE__ */ n("div", { className: "flex flex-wrap items-center justify-center gap-4 text-center text-neutral-900 md:text-left", children: [
|
|
15
|
+
s && /* @__PURE__ */ e("p", { className: "text-small hidden sm:block", children: s }),
|
|
16
|
+
/* @__PURE__ */ e("div", { className: "h-5 w-5", children: /* @__PURE__ */ e(r, {}) }),
|
|
17
|
+
l && /* @__PURE__ */ e("a", { href: `tel:${l}`, className: "text-small block font-bold sm:hidden", children: l }),
|
|
18
|
+
l && /* @__PURE__ */ e("p", { className: "text-small hidden font-bold sm:block", children: l }),
|
|
19
|
+
/* @__PURE__ */ n("div", { className: "text-small flex items-center gap-1", children: [
|
|
20
|
+
t && /* @__PURE__ */ e("span", { className: "hidden sm:block", children: t }),
|
|
21
|
+
a && /* @__PURE__ */ e("span", { children: a })
|
|
22
|
+
] })
|
|
23
|
+
] })
|
|
24
|
+
}
|
|
25
|
+
);
|
|
14
26
|
export {
|
|
15
|
-
|
|
27
|
+
o as ContactBanner
|
|
16
28
|
};
|
|
@@ -2,6 +2,14 @@ import { FC } from 'react';
|
|
|
2
2
|
import * as React_2 from 'react';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
4
|
|
|
5
|
+
export interface ContactBannerProps {
|
|
6
|
+
contactText?: string;
|
|
7
|
+
phoneNumber?: string;
|
|
8
|
+
contactHoursText?: string;
|
|
9
|
+
contactHours?: string;
|
|
10
|
+
isScrolled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
|
|
5
13
|
export interface FormattedLanguageItem {
|
|
6
14
|
code: string;
|
|
7
15
|
name: string;
|
|
@@ -18,6 +26,7 @@ export declare interface HeaderProps {
|
|
|
18
26
|
languageSelectorProps?: LanguageSelectorProps;
|
|
19
27
|
userActions: ReactNode;
|
|
20
28
|
mobileMenu: Omit<MobileMenuProps, 'logo' | 'userActions' | 'searchBarProps'>;
|
|
29
|
+
contactBannerProps: Omit<ContactBannerProps, 'isScrolled'>;
|
|
21
30
|
}
|
|
22
31
|
|
|
23
32
|
export interface LanguageSelectorProps {
|
|
@@ -1,44 +1,63 @@
|
|
|
1
|
-
import { jsxs as r,
|
|
2
|
-
import "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as p, useEffect as f } from "react";
|
|
3
|
+
import { ContactBanner as x } from "./ContactBanner.js";
|
|
4
|
+
import { MobileMenu as h } from "./MobileMenu.js";
|
|
5
|
+
import { NavMenu as u } from "./NavMenu.js";
|
|
6
|
+
import { LanguageSelector as w } from "./LanguageSelector.js";
|
|
7
|
+
import { ScalatorIcon as v } from "./ScalatorIcon.js";
|
|
8
|
+
import { SearchBar as g } from "./SearchBar.js";
|
|
9
|
+
const O = ({
|
|
10
|
+
logo: l,
|
|
10
11
|
navMenu: d,
|
|
11
|
-
searchBarProps:
|
|
12
|
-
languageSelectorProps:
|
|
12
|
+
searchBarProps: a,
|
|
13
|
+
languageSelectorProps: i,
|
|
13
14
|
userActions: n,
|
|
14
|
-
mobileMenu: t
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
|
|
15
|
+
mobileMenu: t,
|
|
16
|
+
contactBannerProps: c
|
|
17
|
+
}) => {
|
|
18
|
+
const [o, m] = p(!1);
|
|
19
|
+
return f(() => {
|
|
20
|
+
const s = () => {
|
|
21
|
+
m(window.scrollY > 10);
|
|
22
|
+
};
|
|
23
|
+
return window.addEventListener("scroll", s, { passive: !0 }), () => {
|
|
24
|
+
window.removeEventListener("scroll", s);
|
|
25
|
+
};
|
|
26
|
+
}, []), /* @__PURE__ */ r("div", { className: "sticky top-0 z-1000 flex w-full flex-col", children: [
|
|
27
|
+
/* @__PURE__ */ e(x, { isScrolled: o, ...c }),
|
|
28
|
+
/* @__PURE__ */ e(
|
|
29
|
+
"header",
|
|
28
30
|
{
|
|
29
|
-
className:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
|
|
31
|
+
className: `transition-colors duration-300 ease-in-out ${o ? "bg-white shadow-md" : "bg-primary-50"}`,
|
|
32
|
+
children: /* @__PURE__ */ r("div", { className: "flex w-full items-center justify-between px-4 py-4 text-neutral-800 md:px-8", children: [
|
|
33
|
+
/* @__PURE__ */ r("div", { className: "flex flex-1 items-center gap-8", children: [
|
|
34
|
+
l,
|
|
35
|
+
/* @__PURE__ */ e(u, { className: "hidden lg:block", ...d })
|
|
36
|
+
] }),
|
|
37
|
+
/* @__PURE__ */ r("div", { className: "text-medium hidden flex-wrap items-center gap-4 lg:flex xl:gap-6", children: [
|
|
38
|
+
/* @__PURE__ */ e(g, { ...a }),
|
|
39
|
+
i && /* @__PURE__ */ e("div", { className: "hidden xl:block", children: /* @__PURE__ */ e(w, { ...i }) }),
|
|
40
|
+
n
|
|
41
|
+
] }),
|
|
42
|
+
/* @__PURE__ */ r(
|
|
43
|
+
"button",
|
|
44
|
+
{
|
|
45
|
+
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",
|
|
46
|
+
onClick: t.onOpen,
|
|
47
|
+
"aria-label": "Open menu",
|
|
48
|
+
"aria-expanded": t.isOpen,
|
|
49
|
+
children: [
|
|
50
|
+
t.openText,
|
|
51
|
+
/* @__PURE__ */ e(v, {})
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
] })
|
|
37
56
|
}
|
|
38
|
-
)
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
57
|
+
),
|
|
58
|
+
/* @__PURE__ */ e(h, { ...t, logo: l, userActions: n, searchBarProps: a })
|
|
59
|
+
] });
|
|
60
|
+
};
|
|
42
61
|
export {
|
|
43
|
-
|
|
62
|
+
O as Header
|
|
44
63
|
};
|
|
@@ -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
|
}
|