@npm_leadtech/legal-contracts-ui 0.158.2 → 0.158.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,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: 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 = {
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 = {
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: s = "default", className: c = "", ...t }) =>
10
10
  unsubscribe: r,
11
11
  cookies: "text-white",
12
12
  story: "text-neutral-800 underline"
13
- }, f = i[s] ?? i.default, d = e.startsWith("http"), h = (() => {
13
+ }, f = i[o] ?? i.default, h = e.startsWith("http"), d = (() => {
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
- })(), 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 });
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 });
22
22
  };
23
23
  export {
24
24
  w as Anchor
@@ -11,21 +11,11 @@ const d = ({
11
11
  error: o = !1,
12
12
  ...n
13
13
  }) => /* @__PURE__ */ m("label", { htmlFor: t, className: "text-medium flex cursor-pointer items-center gap-2 text-neutral-800 select-none", children: [
14
- /* @__PURE__ */ r(
15
- "input",
16
- {
17
- "data-qa": s,
18
- id: t,
19
- name: i,
20
- type: "checkbox",
21
- required: a,
22
- className: "peer sr-only",
23
- ...n
24
- }
25
- ),
14
+ /* @__PURE__ */ r("input", { id: t, name: i, type: "checkbox", required: a, className: "peer sr-only", ...n }),
26
15
  /* @__PURE__ */ r(
27
16
  "div",
28
17
  {
18
+ "data-qa": s,
29
19
  className: c(
30
20
  "flex h-5.5 w-5.5 items-center justify-center rounded transition-colors",
31
21
  "peer-focus-visible:ring-primary-500 peer-focus-visible:ring-2 peer-focus-visible:ring-offset-2",
@@ -1,12 +1,12 @@
1
- import { jsx as e, jsxs as a } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as m } 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 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: [
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: [
8
8
  /* @__PURE__ */ e(x, { ...r }),
9
- /* @__PURE__ */ e("div", { className: "flex flex-1 flex-col gap-10", children: o.map((l) => /* @__PURE__ */ e(t, { ...l, variant: "legal" }, l.title)) })
9
+ /* @__PURE__ */ e("div", { className: "flex flex-1 flex-col gap-10", children: o.map((l) => /* @__PURE__ */ e(p, { ...l }, 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.2",
3
+ "version": "0.158.3",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",