@npm_leadtech/legal-contracts-ui 0.58.4 → 0.58.5

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,32 +1,32 @@
1
- import { jsx as e, jsxs as d } from "react/jsx-runtime";
2
- import { TrustedBadge as p } from "./TrustedBadge.js";
3
- import { PreformOption as f } from "./PreformOption.js";
4
- import { Input as n } from "./Input.js";
5
- const h = ({
1
+ import { jsx as e, jsxs as p } from "react/jsx-runtime";
2
+ import { TrustedBadge as f } from "./TrustedBadge.js";
3
+ import { PreformOption as n } from "./PreformOption.js";
4
+ import { Input as u } from "./Input.js";
5
+ const v = ({
6
6
  trustedBadge: r,
7
7
  title: a,
8
- options: s,
9
- cta: m,
10
- radioSelected: t,
8
+ options: m,
9
+ cta: t,
10
+ radioSelected: s,
11
11
  onClickRadio: c,
12
- inputValue: i,
13
- onInputChange: x
14
- }) => /* @__PURE__ */ e("section", { className: "bg-neutral-25 pt-10 text-neutral-800 sm:px-6 lg:px-8 xl:px-30", children: /* @__PURE__ */ d("div", { className: "relative mx-auto flex max-w-300 flex-col gap-6 rounded bg-white px-6 pt-8 pb-6 shadow-md sm:items-center sm:gap-8 lg:px-26 xl:px-10", children: [
15
- /* @__PURE__ */ e(p, { ...r }),
12
+ inputValue: x,
13
+ onInputChange: i
14
+ }) => /* @__PURE__ */ e("section", { className: "bg-neutral-25 pt-10 text-neutral-800 sm:px-6 lg:px-8 xl:px-30", children: /* @__PURE__ */ p("div", { className: "relative mx-auto flex max-w-300 flex-col gap-6 rounded bg-white px-6 pt-8 pb-6 shadow-md sm:items-center sm:gap-8 lg:px-26 xl:px-10", children: [
15
+ /* @__PURE__ */ e(f, { ...r }),
16
16
  /* @__PURE__ */ e("h2", { className: "text-medium sm:text-large font-bold", children: a }),
17
- /* @__PURE__ */ e("div", { className: "flex w-full max-w-272 flex-wrap justify-center gap-2 sm:gap-4", children: s.map((l) => {
18
- if (l.isVisible)
17
+ /* @__PURE__ */ e("div", { className: "flex w-full max-w-272 flex-wrap justify-center gap-2 sm:gap-4", children: m.map(({ isVisible: d, ...l }) => {
18
+ if (d)
19
19
  return l.type === "radio" ? /* @__PURE__ */ e(
20
20
  "div",
21
21
  {
22
22
  className: "w-[calc(50%-4px)] sm:w-[calc(25%-12px)] lg:w-[calc(20%-13px)] xl:w-[calc(16.66%-14px)]",
23
- children: /* @__PURE__ */ e(f, { ...l, selected: l.id === t, onClick: c })
23
+ children: /* @__PURE__ */ e(n, { ...l, selected: l.id === s, onClick: c })
24
24
  },
25
25
  l.id
26
- ) : /* @__PURE__ */ e("div", { className: "mt-4 flex basis-full justify-center md:mt-0", children: /* @__PURE__ */ e(n, { ...l, value: i, onInputChange: x }) }, l.id);
26
+ ) : /* @__PURE__ */ e("div", { className: "mt-4 flex basis-full justify-center md:mt-0", children: /* @__PURE__ */ e(u, { ...l, value: x, onInputChange: i }) }, l.id);
27
27
  }) }),
28
- m
28
+ t
29
29
  ] }) });
30
30
  export {
31
- h as Preform
31
+ v as Preform
32
32
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-contracts-ui",
3
- "version": "0.58.4",
3
+ "version": "0.58.5",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",