@npm_leadtech/legal-contracts-ui 0.59.2 → 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.
Files changed (67) hide show
  1. package/dist/components/ContactBanner.d.ts +1 -0
  2. package/dist/components/ContactBanner.js +23 -11
  3. package/dist/components/Header.d.ts +9 -0
  4. package/dist/components/Header.js +57 -38
  5. package/dist/components/Markdown.js +31 -31
  6. package/dist/components/Preform.d.ts +1 -1
  7. package/dist/components/PreformOption.d.ts +1 -1
  8. package/dist/components/ProductTemplate.d.ts +1 -1
  9. package/dist/globals.css +1 -1
  10. package/package.json +1 -1
  11. package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/deserialize.js +0 -62
  12. package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/index.js +0 -11
  13. package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/serialize.js +0 -106
  14. package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/types.js +0 -13
  15. package/dist/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.js +0 -20
  16. package/dist/node_modules/.pnpm/devlop@1.1.0/node_modules/devlop/lib/default.js +0 -5
  17. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.js +0 -38
  18. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.js +0 -245
  19. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.js +0 -7
  20. package/dist/node_modules/.pnpm/hast-util-from-parse5@8.0.3/node_modules/hast-util-from-parse5/lib/index.js +0 -145
  21. package/dist/node_modules/.pnpm/hast-util-parse-selector@4.0.0/node_modules/hast-util-parse-selector/lib/index.js +0 -20
  22. package/dist/node_modules/.pnpm/hast-util-raw@9.1.0/node_modules/hast-util-raw/lib/index.js +0 -217
  23. package/dist/node_modules/.pnpm/hast-util-to-parse5@8.0.1/node_modules/hast-util-to-parse5/lib/index.js +0 -118
  24. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/create-h.js +0 -112
  25. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/index.js +0 -8
  26. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +0 -44
  27. package/dist/node_modules/.pnpm/html-void-elements@3.0.0/node_modules/html-void-elements/index.js +0 -25
  28. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/doctype.js +0 -98
  29. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/error-codes.js +0 -7
  30. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/foreign-content.js +0 -210
  31. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/html.js +0 -250
  32. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/token.js +0 -14
  33. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/unicode.js +0 -73
  34. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/formatting-element-list.js +0 -84
  35. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/index.js +0 -2271
  36. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/open-element-stack.js +0 -240
  37. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/serializer/index.js +0 -2
  38. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/index.js +0 -1940
  39. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/preprocessor.js +0 -88
  40. package/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tree-adapters/default.js +0 -162
  41. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/index.js +0 -12
  42. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/aria.js +0 -61
  43. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/find.js +0 -33
  44. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/html.js +0 -368
  45. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/normalize.js +0 -6
  46. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/svg.js +0 -566
  47. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-insensitive-transform.js +0 -7
  48. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-sensitive-transform.js +0 -6
  49. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/create.js +0 -19
  50. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/defined-info.js +0 -36
  51. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/info.js +0 -28
  52. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/merge.js +0 -10
  53. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/schema.js +0 -21
  54. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/types.js +0 -14
  55. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xlink.js +0 -19
  56. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xml.js +0 -11
  57. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xmlns.js +0 -11
  58. package/dist/node_modules/.pnpm/rehype-raw@7.0.0/node_modules/rehype-raw/lib/index.js +0 -12
  59. package/dist/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.js +0 -11
  60. package/dist/node_modules/.pnpm/unist-util-is@6.0.1/node_modules/unist-util-is/lib/index.js +0 -91
  61. package/dist/node_modules/.pnpm/unist-util-position@5.0.0/node_modules/unist-util-position/lib/index.js +0 -17
  62. package/dist/node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/color.js +0 -6
  63. package/dist/node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/index.js +0 -56
  64. package/dist/node_modules/.pnpm/unist-util-visit@5.1.0/node_modules/unist-util-visit/lib/index.js +0 -16
  65. package/dist/node_modules/.pnpm/vfile-location@5.0.3/node_modules/vfile-location/lib/index.js +0 -42
  66. package/dist/node_modules/.pnpm/web-namespaces@2.0.1/node_modules/web-namespaces/index.js +0 -11
  67. package/dist/node_modules/.pnpm/zwitch@2.0.4/node_modules/zwitch/index.js +0 -18
@@ -7,5 +7,6 @@ export declare interface ContactBannerProps {
7
7
  phoneNumber?: string;
8
8
  contactHoursText?: string;
9
9
  contactHours?: string;
10
+ isScrolled?: boolean;
10
11
  }
11
12
 
@@ -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 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
- ] }) });
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
- m as ContactBanner
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, Fragment as m, jsx as e } from "react/jsx-runtime";
2
- import "react";
3
- import { MobileMenu as c } from "./MobileMenu.js";
4
- import { NavMenu as p } from "./NavMenu.js";
5
- import { LanguageSelector as s } from "./LanguageSelector.js";
6
- import { ScalatorIcon as x } from "./ScalatorIcon.js";
7
- import { SearchBar as o } from "./SearchBar.js";
8
- const v = ({
9
- logo: a,
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: i,
12
- languageSelectorProps: l,
12
+ searchBarProps: a,
13
+ languageSelectorProps: i,
13
14
  userActions: n,
14
- mobileMenu: t
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",
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: "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
- ]
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
- /* @__PURE__ */ e(c, { ...t, logo: a, userActions: n, searchBarProps: i })
41
- ] });
57
+ ),
58
+ /* @__PURE__ */ e(h, { ...t, logo: l, userActions: n, searchBarProps: a })
59
+ ] });
60
+ };
42
61
  export {
43
- v as Header
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 "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";
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: [g],
21
- remarkPlugins: [i],
20
+ rehypePlugins: [i],
21
+ remarkPlugins: [p],
22
22
  components: m ? {
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
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
  }
@@ -16,7 +16,7 @@ export declare const Preform: FC<PreformProps>;
16
16
  export interface PreformOptionProps {
17
17
  label: string;
18
18
  value: string;
19
- alternativeUrl: string;
19
+ alternativeUrl: string | null;
20
20
  icon: ReactNode;
21
21
  selected: boolean;
22
22
  onClick?: (str: string) => void;
@@ -6,7 +6,7 @@ export declare const PreformOption: FC<PreformOptionProps>;
6
6
  export declare interface PreformOptionProps {
7
7
  label: string;
8
8
  value: string;
9
- alternativeUrl: string;
9
+ alternativeUrl: string | null;
10
10
  icon: ReactNode;
11
11
  selected: boolean;
12
12
  onClick?: (str: string) => void;
@@ -108,7 +108,7 @@ export interface LinkedProductProps {
108
108
  export interface PreformOptionProps {
109
109
  label: string;
110
110
  value: string;
111
- alternativeUrl: string;
111
+ alternativeUrl: string | null;
112
112
  icon: ReactNode;
113
113
  selected: boolean;
114
114
  onClick?: (str: string) => void;