@npm_leadtech/legal-contracts-ui 0.115.7 → 0.115.9

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,60 +1,50 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import l, { defaultUrlTransform as i } from "react-markdown";
3
- import a from "rehype-raw";
4
- import s from "remark-gfm";
5
- import { Anchor as d } from "./Anchor.js";
6
- import { Blockquote as f } from "./Blockquote.js";
7
- import { Code as c } from "./Code.js";
8
- import { Header1 as u } from "./Header1.js";
9
- import { Header2 as h } from "./Header2.js";
10
- import { Header3 as b } from "./Header3.js";
11
- import { Header4 as g } from "./Header4.js";
12
- import { OrderedList as C } from "./OrderedList.js";
13
- import { Paragraph as x } from "./Paragraph.js";
14
- import { TableRow as w, TableHeader as k, TableData as _, Table as T } from "./Table.js";
15
- import { UnorderedList as H } from "./UnorderedList.js";
16
- import { Video as q } from "./Video.js";
17
- import { Emphasis as P } from "./Emphasis.js";
18
- import R from "clsx";
19
- const U = (e) => e.startsWith("tel:") ? e : i(e), v = ({ content: e, className: t = "", useCustom: n = !0, variant: m = "default" }) => {
2
+ import a, { defaultUrlTransform as s } from "react-markdown";
3
+ import i from "rehype-raw";
4
+ import l from "remark-gfm";
5
+ import { Anchor as f } from "./Anchor.js";
6
+ import { Blockquote as c } from "./Blockquote.js";
7
+ import { Code as d } from "./Code.js";
8
+ import { Header1 as h } from "./Header1.js";
9
+ import { Header2 as u } from "./Header2.js";
10
+ import { Header3 as C } from "./Header3.js";
11
+ import { Header4 as b } from "./Header4.js";
12
+ import { OrderedList as k } from "./OrderedList.js";
13
+ import { Paragraph as T } from "./Paragraph.js";
14
+ import { TableRow as w, TableHeader as g, TableData as H, Table as q } from "./Table.js";
15
+ import { UnorderedList as x } from "./UnorderedList.js";
16
+ import { Video as P } from "./Video.js";
17
+ import { Emphasis as R } from "./Emphasis.js";
18
+ import U from "clsx";
19
+ const y = (m) => m.startsWith("tel:") ? m : s(m), v = ({ content: m, className: t = "", useCustom: n = !0, variant: e = "default" }) => {
20
20
  const p = {
21
- h1: u,
22
- h2: (o) => /* @__PURE__ */ r(h, { variant: m, ...o }),
23
- h3: b,
24
- h4: g,
25
- p: (o) => /* @__PURE__ */ r(x, { variant: m, ...o }),
26
- a: (o) => /* @__PURE__ */ r(d, { variant: m, ...o }),
27
- ul: (o) => /* @__PURE__ */ r(H, { variant: m, ...o }),
28
- ol: (o) => /* @__PURE__ */ r(C, { variant: m, ...o }),
29
- code: c,
30
- blockquote: (o) => /* @__PURE__ */ r(f, { variant: m, ...o }),
31
- video: q,
32
- table: T,
33
- td: _,
34
- th: k,
21
+ h1: h,
22
+ h2: (o) => /* @__PURE__ */ r(u, { variant: e, ...o }),
23
+ h3: C,
24
+ h4: b,
25
+ p: (o) => /* @__PURE__ */ r(T, { variant: e, ...o }),
26
+ a: (o) => /* @__PURE__ */ r(f, { variant: e, ...o }),
27
+ ul: (o) => /* @__PURE__ */ r(x, { variant: e, ...o }),
28
+ ol: (o) => /* @__PURE__ */ r(k, { variant: e, ...o }),
29
+ code: d,
30
+ blockquote: (o) => /* @__PURE__ */ r(c, { variant: e, ...o }),
31
+ video: P,
32
+ table: q,
33
+ td: H,
34
+ th: g,
35
35
  tr: w,
36
- em: P
36
+ em: R
37
37
  };
38
- return /* @__PURE__ */ r(
39
- "div",
38
+ return /* @__PURE__ */ r("div", { className: U("w-full min-w-0", t), children: /* @__PURE__ */ r(
39
+ a,
40
40
  {
41
- className: R(
42
- "w-full min-w-0",
43
- m === "unsubscribe" && "[&_img]:bg-neutral-25 mb-16 overflow-hidden rounded-lg bg-white px-6 md:mb-12 lg:px-8 xl:px-12 2xl:px-16 [&_h2+p]:pt-6 [&_img]:mx-auto [&_img]:block [&_img]:h-auto [&_img]:w-full [&_img]:max-w-full [&_p+h2]:mt-0",
44
- t
45
- ),
46
- children: /* @__PURE__ */ r(
47
- l,
48
- {
49
- rehypePlugins: [a],
50
- remarkPlugins: [s],
51
- urlTransform: U,
52
- components: n ? p : void 0,
53
- children: e
54
- }
55
- )
41
+ rehypePlugins: [i],
42
+ remarkPlugins: [l],
43
+ urlTransform: y,
44
+ components: n ? p : void 0,
45
+ children: m
56
46
  }
57
- );
47
+ ) });
58
48
  };
59
49
  export {
60
50
  v as Markdown
@@ -1,10 +1,13 @@
1
- import { jsx as l } from "react/jsx-runtime";
2
- import a from "clsx";
3
- const u = ({ variant: t = "default", children: e }) => /* @__PURE__ */ l("p", { className: a(t !== "unsubscribe" && "mb-4", {
4
- default: "",
5
- legal: "text-neutral-800 last:mb-0 tracking-tight",
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import l from "clsx";
3
+ const m = ({ variant: t = "default", children: a }) => /* @__PURE__ */ e("p", { className: l({
4
+ default: "mb-4",
5
+ legal: "mb-4 text-neutral-800 last:mb-0 tracking-tight",
6
+ tooltip: "mb-4",
7
+ "about-us": "mb-4",
8
+ pricing: "mb-4",
6
9
  unsubscribe: "mb-0 w-full rounded-lg bg-neutral-25 px-6 pb-6 text-left text-base leading-6 text-neutral-800 md:text-lg lg:px-ds-11xl"
7
- }[t]), children: e });
10
+ }[t]), children: a });
8
11
  export {
9
- u as Paragraph
12
+ m as Paragraph
10
13
  };
@@ -1,10 +1,10 @@
1
- import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
- import { Jumbotron3 as a } from "./Jumbotron3.js";
3
- import { Markdown as i } from "./Markdown.js";
4
- const o = ({ jumbotron: r, stepDescription: l }) => /* @__PURE__ */ s("main", { className: "flex min-h-screen flex-1 flex-col bg-white", children: [
5
- /* @__PURE__ */ e("div", { className: "bg-primary-50 w-full", children: /* @__PURE__ */ e(a, { ...r, className: "pt-10 pb-20" }) }),
6
- /* @__PURE__ */ e("div", { className: "mx-auto w-full max-w-300", children: /* @__PURE__ */ e("section", { className: "w-full bg-white", children: /* @__PURE__ */ e(i, { ...l, variant: "unsubscribe" }) }) })
1
+ import { jsxs as i, jsx as l } from "react/jsx-runtime";
2
+ import { Jumbotron3 as r } from "./Jumbotron3.js";
3
+ import { Markdown as a } from "./Markdown.js";
4
+ const n = ({ jumbotron: m, stepDescription: e }) => /* @__PURE__ */ i("main", { className: "flex min-h-screen flex-1 flex-col bg-white", children: [
5
+ /* @__PURE__ */ l("div", { className: "bg-primary-50 w-full", children: /* @__PURE__ */ l(r, { ...m, className: "pt-10 pb-20" }) }),
6
+ /* @__PURE__ */ l("div", { className: "mx-auto w-full max-w-300", children: /* @__PURE__ */ l("section", { className: "[&_img]:bg-neutral-25 mb-16 w-full overflow-hidden rounded-lg bg-white px-6 md:mb-12 lg:px-8 xl:px-12 2xl:px-16 [&_h2+p]:pt-6 [&_img]:mx-auto [&_img]:block [&_img]:h-auto [&_img]:w-full [&_img]:max-w-full [&_p+h2]:mt-0", children: /* @__PURE__ */ l(a, { ...e, variant: "unsubscribe" }) }) })
7
7
  ] });
8
8
  export {
9
- o as UnsubscribeTemplate
9
+ n as UnsubscribeTemplate
10
10
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-contracts-ui",
3
- "version": "0.115.7",
3
+ "version": "0.115.9",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",