@npm_leadtech/legal-contracts-ui 0.52.0 → 0.52.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/FaqSection.js +5 -5
- package/dist/components/Header.d.ts +2 -1
- package/dist/components/Header.js +1 -1
- package/dist/components/LanguageSelector.d.ts +3 -4
- package/dist/components/LanguageSelector.js +19 -17
- package/dist/globals.css +1 -1
- package/package.json +1 -13
- package/dist/components/CaFlagIcon.d.ts +0 -4
- package/dist/components/CaFlagIcon.js +0 -36
- package/dist/components/DeFlagIcon.d.ts +0 -4
- package/dist/components/DeFlagIcon.js +0 -13
- package/dist/components/GbFlagIcon.d.ts +0 -4
- package/dist/components/GbFlagIcon.js +0 -49
- package/dist/components/index.d.ts +0 -834
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { Markdown as
|
|
4
|
-
import { FaqItem as
|
|
3
|
+
import { Markdown as m } from "./Markdown.js";
|
|
4
|
+
import { FaqItem as n } from "./FaqItem.js";
|
|
5
5
|
const p = ({ title: l, description: o, faqItems: r, className: s = "" }) => {
|
|
6
6
|
if (r.length === 0) return null;
|
|
7
7
|
const c = l.toLowerCase().replace(/\s+/g, "-");
|
|
8
|
-
return /* @__PURE__ */ a("div", { id: c, className: `flex flex-col gap-2 text-neutral-800 ${s} p-0.5`, children: [
|
|
8
|
+
return /* @__PURE__ */ a("div", { id: c, className: `flex flex-col gap-2 text-neutral-800 ${s} scroll-mt-12 p-0.5`, children: [
|
|
9
9
|
/* @__PURE__ */ a("div", { className: "mb-4 flex flex-col", children: [
|
|
10
10
|
/* @__PURE__ */ e("h3", { className: "text-super-large font-bold", children: l }),
|
|
11
|
-
o !== "" && /* @__PURE__ */ e(
|
|
11
|
+
o !== "" && /* @__PURE__ */ e(m, { content: o, className: "text-medium mt-6" })
|
|
12
12
|
] }),
|
|
13
|
-
/* @__PURE__ */ e("div", { className: "flex flex-col gap-4", children: r.map((t) => /* @__PURE__ */ e(
|
|
13
|
+
/* @__PURE__ */ e("div", { className: "flex flex-col gap-4", children: r.map((t) => /* @__PURE__ */ e(n, { ...t }, t.question)) })
|
|
14
14
|
] });
|
|
15
15
|
};
|
|
16
16
|
export {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as default_2 } from 'react';
|
|
1
2
|
import { FC } from 'react';
|
|
2
3
|
import * as React_2 from 'react';
|
|
3
4
|
import { ReactNode } from 'react';
|
|
@@ -6,7 +7,7 @@ export interface FormattedLanguageItem {
|
|
|
6
7
|
code: string;
|
|
7
8
|
name: string;
|
|
8
9
|
url?: string;
|
|
9
|
-
flag: ReactNode;
|
|
10
|
+
flag: default_2.ReactNode;
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
export declare const Header: FC<HeaderProps>;
|
|
@@ -26,7 +26,7 @@ const S = ({
|
|
|
26
26
|
] }),
|
|
27
27
|
/* @__PURE__ */ l("div", { className: "text-medium hidden flex-wrap items-center gap-4 lg:flex xl:gap-6", children: [
|
|
28
28
|
/* @__PURE__ */ e(x, { ...c }),
|
|
29
|
-
|
|
29
|
+
/* @__PURE__ */ e("div", { className: "hidden xl:block", children: s && /* @__PURE__ */ e(v, { ...s }) }),
|
|
30
30
|
n
|
|
31
31
|
] }),
|
|
32
32
|
/* @__PURE__ */ e(
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { default as default_2 } from 'react';
|
|
3
2
|
|
|
4
3
|
export declare interface FormattedLanguageItem {
|
|
5
4
|
code: string;
|
|
6
5
|
name: string;
|
|
7
6
|
url?: string;
|
|
8
|
-
flag: ReactNode;
|
|
7
|
+
flag: default_2.ReactNode;
|
|
9
8
|
}
|
|
10
9
|
|
|
11
|
-
export declare const LanguageSelector: FC<LanguageSelectorProps>;
|
|
10
|
+
export declare const LanguageSelector: default_2.FC<LanguageSelectorProps>;
|
|
12
11
|
|
|
13
12
|
export declare interface LanguageSelectorProps {
|
|
14
13
|
currentLanguage: FormattedLanguageItem;
|
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { ChevronDownIcon as o } from "./ChevronDownIcon.js";
|
|
3
|
-
|
|
3
|
+
import "react";
|
|
4
|
+
const p = ({
|
|
4
5
|
currentLanguage: l,
|
|
5
|
-
availableLanguages:
|
|
6
|
-
variant:
|
|
7
|
-
isOpen:
|
|
8
|
-
onToggle:
|
|
9
|
-
}) =>
|
|
10
|
-
/* @__PURE__ */ s("div", { className: "flex items-center gap-2
|
|
6
|
+
availableLanguages: a,
|
|
7
|
+
variant: n = "default",
|
|
8
|
+
isOpen: i = !1,
|
|
9
|
+
onToggle: c
|
|
10
|
+
}) => n === "compact" ? /* @__PURE__ */ s("div", { className: "group relative inline-flex w-auto cursor-pointer flex-col px-4 py-2", children: [
|
|
11
|
+
/* @__PURE__ */ s("div", { className: "flex items-center gap-2 py-1", children: [
|
|
11
12
|
/* @__PURE__ */ e("span", { className: "flex items-center justify-center", children: l.flag }),
|
|
12
|
-
/* @__PURE__ */ e("span", { className: "text-
|
|
13
|
+
/* @__PURE__ */ e("span", { className: "text-base text-gray-600", children: l.name })
|
|
13
14
|
] }),
|
|
14
|
-
/* @__PURE__ */ e("div", { className: "pointer-events-none absolute top-full z-10 flex
|
|
15
|
+
/* @__PURE__ */ e("div", { className: "width-full pointer-events-none absolute top-full left-0 z-10 flex min-w-max flex-col p-2 opacity-0 shadow-md transition-opacity duration-200 group-hover:pointer-events-auto group-hover:opacity-100", children: a.map((t, r) => /* @__PURE__ */ s(
|
|
15
16
|
"a",
|
|
16
17
|
{
|
|
17
18
|
href: t.url,
|
|
18
|
-
className: "hover:bg-primary-100 flex items-center gap-2 rounded-sm bg-white px-
|
|
19
|
+
className: "hover:bg-primary-100 flex items-center gap-2 rounded-sm bg-white px-3 py-2 transition-colors",
|
|
20
|
+
style: { animationDelay: `${String(r * 0.05)}s` },
|
|
19
21
|
children: [
|
|
20
22
|
/* @__PURE__ */ e("span", { className: "flex items-center justify-center", children: t.flag }),
|
|
21
|
-
/* @__PURE__ */ e("span", { className: "text-
|
|
23
|
+
/* @__PURE__ */ e("span", { className: "text-base text-gray-600", children: t.name })
|
|
22
24
|
]
|
|
23
25
|
},
|
|
24
26
|
t.code
|
|
@@ -27,23 +29,23 @@ const f = ({
|
|
|
27
29
|
/* @__PURE__ */ s(
|
|
28
30
|
"button",
|
|
29
31
|
{
|
|
30
|
-
className: `bg-primary-800 flex w-full cursor-pointer items-center justify-between px-4 py-2 ${
|
|
31
|
-
onClick:
|
|
32
|
+
className: `bg-primary-800 flex w-full cursor-pointer items-center justify-between px-4 py-2 ${i ? "bg-gray-50" : ""}`,
|
|
33
|
+
onClick: c,
|
|
32
34
|
children: [
|
|
33
35
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-2 px-2 font-medium text-gray-800", children: [
|
|
34
36
|
/* @__PURE__ */ e("span", { className: "flex items-center justify-center", children: l.flag }),
|
|
35
37
|
/* @__PURE__ */ e("span", { className: "text-base text-white", children: l.name })
|
|
36
38
|
] }),
|
|
37
|
-
/* @__PURE__ */ e("div", { className: `mr-1 transition-transform duration-200 ${
|
|
39
|
+
/* @__PURE__ */ e("div", { className: `mr-1 transition-transform duration-200 ${i ? "rotate-180" : "rotate-0"}`, children: /* @__PURE__ */ e(o, { fill: "#ffff", width: 24, height: 24 }) })
|
|
38
40
|
]
|
|
39
41
|
}
|
|
40
42
|
),
|
|
41
|
-
|
|
43
|
+
i && /* @__PURE__ */ e("div", { className: "absolute top-10 z-10 flex w-full flex-col", children: a.map((t, r) => /* @__PURE__ */ e(
|
|
42
44
|
"a",
|
|
43
45
|
{
|
|
44
46
|
href: t.url,
|
|
45
47
|
className: "mt-2 w-full animate-[slideDown_0.3s_both] items-center justify-between rounded-md bg-white px-4 py-3 ease-out",
|
|
46
|
-
style: { animationDelay: `${String(
|
|
48
|
+
style: { animationDelay: `${String(r * 0.05)}s` },
|
|
47
49
|
children: /* @__PURE__ */ s("div", { className: "flex items-center gap-2 px-2 text-gray-600", children: [
|
|
48
50
|
/* @__PURE__ */ e("span", { className: "flex items-center justify-center", children: t.flag }),
|
|
49
51
|
/* @__PURE__ */ e("span", { className: "text-base", children: t.name })
|
|
@@ -53,5 +55,5 @@ const f = ({
|
|
|
53
55
|
)) })
|
|
54
56
|
] });
|
|
55
57
|
export {
|
|
56
|
-
|
|
58
|
+
p as LanguageSelector
|
|
57
59
|
};
|