@npm_leadtech/legal-contracts-ui 0.158.0 → 0.158.2

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,7 +1,7 @@
1
1
  import { jsx as x } from "react/jsx-runtime";
2
2
  import m from "clsx";
3
- const w = ({ children: l, variant: o = "default", className: c = "", ...t }) => {
4
- const e = t.href || "", n = e.toLowerCase(), u = n.startsWith("mailto:"), a = n.startsWith("tel:"), r = "cursor-pointer text-primary-700", i = {
3
+ const w = ({ children: l, variant: s = "default", className: c = "", ...t }) => {
4
+ const e = t.href || "", n = e.toLowerCase(), u = n.startsWith("mailto:"), a = n.startsWith("tel:"), r = "cursor-pointer text-primary-700 underline decoration-primary-700/40 underline-offset-2", i = {
5
5
  default: "text-neutral-900 underline",
6
6
  legal: r,
7
7
  ratafia: "cursor-pointer text-primary-200 underline decoration-white/40 underline-offset-2 hover:text-white",
@@ -10,15 +10,15 @@ const w = ({ children: l, variant: o = "default", className: c = "", ...t }) =>
10
10
  unsubscribe: r,
11
11
  cookies: "text-white",
12
12
  story: "text-neutral-800 underline"
13
- }, f = i[o] ?? i.default, h = e.startsWith("http"), d = (() => {
13
+ }, f = i[s] ?? i.default, d = e.startsWith("http"), h = (() => {
14
14
  if (!a) return e;
15
15
  try {
16
16
  return decodeURIComponent(e).replaceAll(/\s/g, "");
17
17
  } catch {
18
18
  return e.replaceAll("%20", "").replaceAll(/\s/g, "");
19
19
  }
20
- })(), s = t.target === "_blank" || h && !a && !u ? "_blank" : t.target, g = s === "_blank" ? "noopener noreferrer" : t.rel;
21
- return /* @__PURE__ */ x("a", { ...t, href: d, className: m(c, f), target: s, rel: g, children: l });
20
+ })(), o = t.target === "_blank" || d && !a && !u ? "_blank" : t.target, g = o === "_blank" ? "noopener noreferrer" : t.rel;
21
+ return /* @__PURE__ */ x("a", { ...t, href: h, className: m(c, f), target: o, rel: g, children: l });
22
22
  };
23
23
  export {
24
24
  w as Anchor
@@ -1,12 +1,12 @@
1
- import { jsx as e, jsxs as m } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as a } from "react/jsx-runtime";
2
2
  import { AsideNavMenu as x } from "./AsideNavMenu.js";
3
3
  import { Jumbotron2 as i } from "./Jumbotron2.js";
4
- import { FaqSection as p } from "./FaqSection.js";
5
- const d = ({ jumbotron: a, asideNavMenu: r, faqSections: o }) => /* @__PURE__ */ e("main", { className: "bg-primary-50 flex-1 px-4 py-10 text-neutral-800 md:px-8", children: /* @__PURE__ */ m("div", { className: "mx-auto flex w-full max-w-300 flex-col gap-10", children: [
6
- /* @__PURE__ */ e(i, { ...a }),
7
- /* @__PURE__ */ m("div", { className: "flex flex-col gap-10 md:flex-row md:gap-24", children: [
4
+ import { FaqSection as t } from "./FaqSection.js";
5
+ const d = ({ jumbotron: m, asideNavMenu: r, faqSections: o }) => /* @__PURE__ */ e("main", { className: "bg-primary-50 flex-1 px-4 py-10 text-neutral-800 md:px-8", children: /* @__PURE__ */ a("div", { className: "mx-auto flex w-full max-w-300 flex-col gap-10", children: [
6
+ /* @__PURE__ */ e(i, { ...m }),
7
+ /* @__PURE__ */ a("div", { className: "flex flex-col gap-10 md:flex-row md:gap-24", children: [
8
8
  /* @__PURE__ */ e(x, { ...r }),
9
- /* @__PURE__ */ e("div", { className: "flex flex-1 flex-col gap-10", children: o.map((l) => /* @__PURE__ */ e(p, { ...l }, l.title)) })
9
+ /* @__PURE__ */ e("div", { className: "flex flex-1 flex-col gap-10", children: o.map((l) => /* @__PURE__ */ e(t, { ...l, variant: "legal" }, l.title)) })
10
10
  ] })
11
11
  ] }) });
12
12
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-contracts-ui",
3
- "version": "0.158.0",
3
+ "version": "0.158.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",