@npm_leadtech/legal-contracts-ui 0.59.3 → 0.59.4
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 -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,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
|
}
|