@npm_leadtech/legal-contracts-ui 0.154.2 → 0.154.3

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.
@@ -1,38 +1,38 @@
1
- import { jsxs as s, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import o from "clsx";
4
- import { ChevronRightIcon as n } from "./ChevronRightIcon.js";
4
+ import { ChevronRightIcon as m } from "./ChevronRightIcon.js";
5
5
  const b = ({
6
- image: c,
6
+ image: i,
7
7
  title: t,
8
8
  description: a,
9
- documentUrl: l,
9
+ documentUrl: s,
10
10
  variant: r = "default",
11
- className: d = ""
11
+ className: c = ""
12
12
  }) => {
13
- const i = {
13
+ const d = {
14
14
  default: "py-4 px-2 items-start",
15
15
  card: "border border-0.5 border-neutral-200 shadow-lg bg-white pl-6 pr-4 py-5"
16
- }, m = {
16
+ }, n = {
17
17
  default: "",
18
18
  card: "font-bold"
19
19
  };
20
- return /* @__PURE__ */ s(
20
+ return /* @__PURE__ */ l(
21
21
  "div",
22
22
  {
23
23
  className: o(
24
24
  'hover:bg-primary-50 relative flex cursor-pointer items-center gap-4 rounded-sm [&_a]:before:absolute [&_a]:before:inset-0 [&_a]:before:content-[""]',
25
- i[r],
26
- d
25
+ d[r],
26
+ c
27
27
  ),
28
28
  children: [
29
- c,
30
- /* @__PURE__ */ s("div", { className: "flex flex-1 flex-col gap-1", children: [
31
- t && /* @__PURE__ */ e("p", { className: o("text-medium text-neutral-800", m[r]), children: t }),
29
+ /* @__PURE__ */ e("div", { className: "shrink-0", children: i }),
30
+ /* @__PURE__ */ l("div", { className: "flex flex-1 flex-col gap-1", children: [
31
+ t && /* @__PURE__ */ e("p", { className: o("text-medium text-neutral-800", n[r]), children: t }),
32
32
  a && /* @__PURE__ */ e("p", { className: "text-extra-small text-neutral-600", children: a })
33
33
  ] }),
34
- !!l && /* @__PURE__ */ e("div", { className: "h-0 w-0 opacity-0", children: l }),
35
- r === "card" && /* @__PURE__ */ e(n, { width: 20, height: 20 })
34
+ !!s && /* @__PURE__ */ e("div", { className: "h-0 w-0 opacity-0", children: s }),
35
+ r === "card" && /* @__PURE__ */ e(m, { width: 20, height: 20 })
36
36
  ]
37
37
  }
38
38
  );
@@ -1,19 +1,27 @@
1
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
2
  import "react";
3
- import { SectionHeading as s } from "./SectionHeading.js";
3
+ import n from "clsx";
4
+ import { SectionHeading as a } from "./SectionHeading.js";
4
5
  import { Item as d } from "./Item.js";
5
- import { ChevronDownIcon as a } from "./ChevronDownIcon.js";
6
- const b = ({ header: o, moreDocuments: l = [] }) => l.length === 0 ? null : /* @__PURE__ */ i("section", { className: "mx-auto px-6 py-10 text-neutral-800 lg:px-8 lg:py-12 xl:max-w-300 xl:px-0", children: [
7
- /* @__PURE__ */ i("div", { className: "hidden flex-col gap-6 md:flex", children: [
8
- /* @__PURE__ */ e(s, { ...o, align: "start", className: "pl-7" }),
9
- /* @__PURE__ */ e("div", { className: "grid grid-flow-col grid-rows-3", children: l.map((r, n) => /* @__PURE__ */ e("div", { className: `border-neutral-200 px-6 ${n < 6 ? "border-r" : ""} `, children: /* @__PURE__ */ e(d, { ...r }) }, `desktop-${r.id}`)) })
6
+ import { ChevronDownIcon as t } from "./ChevronDownIcon.js";
7
+ const b = ({ header: o, moreDocuments: i = [] }) => i.length === 0 ? null : /* @__PURE__ */ l("section", { className: "mx-auto px-6 py-10 text-neutral-800 lg:px-8 lg:py-12 xl:max-w-300 xl:px-0", children: [
8
+ /* @__PURE__ */ l("div", { className: "hidden flex-col gap-6 md:flex", children: [
9
+ /* @__PURE__ */ e(a, { ...o, align: "start", className: "pl-7" }),
10
+ /* @__PURE__ */ e("div", { className: "grid grid-flow-col grid-rows-3", children: i.map((r, s) => /* @__PURE__ */ e(
11
+ "div",
12
+ {
13
+ className: n("max-w-51 border-neutral-200 px-6 lg:max-w-full", s < 6 && "border-r"),
14
+ children: /* @__PURE__ */ e(d, { ...r })
15
+ },
16
+ `desktop-${r.id}`
17
+ )) })
10
18
  ] }),
11
- /* @__PURE__ */ e("div", { className: "flex flex-col gap-10 md:hidden", children: /* @__PURE__ */ i("details", { className: "group", children: [
12
- /* @__PURE__ */ i("summary", { className: "flex cursor-pointer list-none items-center justify-between rounded-sm border border-neutral-200 p-4", children: [
19
+ /* @__PURE__ */ e("div", { className: "flex flex-col gap-10 md:hidden", children: /* @__PURE__ */ l("details", { className: "group", children: [
20
+ /* @__PURE__ */ l("summary", { className: "flex cursor-pointer list-none items-center justify-between rounded-sm border border-neutral-200 p-4", children: [
13
21
  /* @__PURE__ */ e("span", { children: o.title }),
14
- /* @__PURE__ */ e(a, { className: "h-5 w-5 transition-transform group-open:rotate-180" })
22
+ /* @__PURE__ */ e(t, { className: "h-5 w-5 transition-transform group-open:rotate-180" })
15
23
  ] }),
16
- /* @__PURE__ */ e("div", { className: "flex flex-col border-x border-b border-neutral-200", children: l.map((r) => /* @__PURE__ */ e(
24
+ /* @__PURE__ */ e("div", { className: "flex flex-col border-x border-b border-neutral-200", children: i.map((r) => /* @__PURE__ */ e(
17
25
  d,
18
26
  {
19
27
  id: r.id,
@@ -1,12 +1,12 @@
1
- import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
- import { Markdown as x } from "./Markdown.js";
3
- const c = ({ trustPilot: l, content: a, title: s }) => /* @__PURE__ */ t("section", { className: "bg-white px-6 py-8 lg:px-8 lg:py-12 xl:px-0", children: [
4
- /* @__PURE__ */ t("div", { className: "mx-auto w-fit", children: [
5
- /* @__PURE__ */ e("h2", { className: "text-super-large mb-8 text-center font-bold text-neutral-800", children: s }),
6
- /* @__PURE__ */ e(x, { content: a, variant: "about-us", className: "mx-auto" })
1
+ import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
+ import { Markdown as s } from "./Markdown.js";
3
+ const r = ({ trustPilot: a, content: t, title: x }) => /* @__PURE__ */ l("section", { className: "mx-auto bg-white px-6 py-8 lg:px-8 lg:py-12 xl:max-w-300 xl:px-0", children: [
4
+ /* @__PURE__ */ l("div", { className: "mx-auto w-fit", children: [
5
+ /* @__PURE__ */ e("h2", { className: "text-super-large mb-8 text-center font-bold text-neutral-800", children: x }),
6
+ /* @__PURE__ */ e(s, { content: t, variant: "about-us", className: "mx-auto" })
7
7
  ] }),
8
- !!l && /* @__PURE__ */ e("section", { className: "bg-white px-6 py-8 lg:px-8 lg:py-12 xl:px-0", children: /* @__PURE__ */ e("div", { className: "mx-auto w-full max-w-6xl md:h-34", children: l }) })
8
+ !!a && /* @__PURE__ */ e("section", { className: "bg-white px-6 py-8 lg:px-8 lg:py-12 xl:px-0", children: /* @__PURE__ */ e("div", { className: "mx-auto w-full max-w-6xl md:h-34", children: a }) })
9
9
  ] });
10
10
  export {
11
- c as TrustPilotSection
11
+ r as TrustPilotSection
12
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-contracts-ui",
3
- "version": "0.154.2",
3
+ "version": "0.154.3",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",