@npm_leadtech/legal-contracts-ui 0.160.0 → 0.161.0

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.
@@ -3,70 +3,70 @@ import { Textarea as b } from "./Textarea.js";
3
3
  import { Checkbox as v } from "./Checkbox.js";
4
4
  import { ClearIcon as y } from "./ClearIcon.js";
5
5
  import { DoneIcon as w } from "./DoneIcon.js";
6
- import { Input as n } from "./Input.js";
6
+ import { Input as s } from "./Input.js";
7
7
  import { Select as j } from "./Select.js";
8
- import { Markdown as I } from "./Markdown.js";
9
- import { InfoIcon as S } from "./InfoIcon.js";
8
+ import { Markdown as k } from "./Markdown.js";
9
+ import { InfoIcon as I } from "./InfoIcon.js";
10
10
  import { Button as o } from "./Button.js";
11
- import { LinkWrapper as k } from "./LinkWrapper.js";
12
- const C = () => /* @__PURE__ */ e("div", { role: "status", "aria-live": "polite", className: "mt-6 flex items-center justify-center rounded py-6", children: /* @__PURE__ */ e("div", { className: "border-primary-500 h-[25px] w-[25px] animate-spin rounded-full border-3 border-t-transparent" }) }), L = ({ title: r, message: l, cta: i }) => /* @__PURE__ */ t("div", { role: "status", "aria-live": "polite", className: "flex flex-col items-center justify-center gap-8 px-4 py-3", children: [
11
+ import { LinkWrapper as S } from "./LinkWrapper.js";
12
+ const C = () => /* @__PURE__ */ e("div", { role: "status", "aria-live": "polite", className: "mt-6 flex items-center justify-center rounded py-6", children: /* @__PURE__ */ e("div", { className: "border-primary-500 h-[25px] w-[25px] animate-spin rounded-full border-3 border-t-transparent" }) }), q = ({ title: r, message: a, cta: l }) => /* @__PURE__ */ t("div", { role: "status", "aria-live": "polite", className: "flex flex-col items-center justify-center gap-8 px-4 py-3", children: [
13
13
  /* @__PURE__ */ t("div", { className: "flex flex-col items-center gap-2", children: [
14
14
  /* @__PURE__ */ e("div", { className: "bg-error-20 w-fit rounded-full p-3", children: /* @__PURE__ */ e(y, { width: 48, height: 48, fill: "var(--error-500)" }) }),
15
15
  /* @__PURE__ */ e("p", { className: "text-big font-bold text-neutral-800", children: r }),
16
- /* @__PURE__ */ e("p", { className: "text-medium text-neutral-800", children: l })
16
+ /* @__PURE__ */ e("p", { "data-qa": "feedback-error-message", className: "text-medium text-neutral-800", children: a })
17
17
  ] }),
18
- /* @__PURE__ */ e(o, { ...i, variant: "primary-green" })
19
- ] }), B = ({ title: r, message: l, cta: i }) => /* @__PURE__ */ t("div", { role: "status", "aria-live": "polite", className: "flex flex-col items-center justify-center gap-8 px-4 py-3", children: [
18
+ /* @__PURE__ */ e(o, { ...l, variant: "primary-green" })
19
+ ] }), L = ({ title: r, message: a, cta: l }) => /* @__PURE__ */ t("div", { role: "status", "aria-live": "polite", className: "flex flex-col items-center justify-center gap-8 px-4 py-3", children: [
20
20
  /* @__PURE__ */ t("div", { className: "flex flex-col items-center gap-2", children: [
21
21
  /* @__PURE__ */ e("div", { className: "bg-primary-100 w-fit rounded-full p-3", children: /* @__PURE__ */ e(w, { width: 48, height: 48, fill: "var(--color-primary-500)" }) }),
22
22
  /* @__PURE__ */ e("p", { className: "text-big font-bold text-neutral-800", children: r }),
23
- /* @__PURE__ */ e("p", { className: "text-medium text-neutral-800", children: l })
23
+ /* @__PURE__ */ e("p", { "data-qa": "feedback-success-message", className: "text-medium text-neutral-800", children: a })
24
24
  ] }),
25
- /* @__PURE__ */ e(k, { className: "w-fit", children: i })
25
+ /* @__PURE__ */ e(S, { className: "w-fit", children: l })
26
26
  ] }), G = ({
27
27
  title: r,
28
- subjectOptions: l,
29
- fullNameField: i,
28
+ subjectOptions: a,
29
+ fullNameField: l,
30
30
  emailField: m,
31
31
  referenceNumberField: d,
32
32
  subjectField: p,
33
33
  messageField: f,
34
- privacyField: s,
34
+ privacyField: c,
35
35
  requiredFieldsText: h,
36
- securityHint: x,
37
- status: a = "default",
38
- successFeedback: u,
39
- errorFeedback: N,
40
- onSubmit: g,
41
- button: c
36
+ securityHint: u,
37
+ status: i = "default",
38
+ successFeedback: x,
39
+ errorFeedback: g,
40
+ onSubmit: N,
41
+ button: n
42
42
  }) => /* @__PURE__ */ t("section", { className: "rounded-sm bg-white p-8 shadow-sm", children: [
43
43
  /* @__PURE__ */ t("div", { className: "space-y-4", children: [
44
44
  /* @__PURE__ */ e("p", { className: "text-big font-bold text-neutral-600", children: r }),
45
45
  /* @__PURE__ */ e("div", { className: "h-px w-full bg-neutral-200", "aria-hidden": "true" })
46
46
  ] }),
47
- a === "loading" && /* @__PURE__ */ e(C, {}),
48
- a === "error" && /* @__PURE__ */ e(L, { ...N }),
49
- a === "success" && /* @__PURE__ */ e(B, { ...u }),
50
- a === "default" && /* @__PURE__ */ t("form", { className: "mt-6 flex flex-col gap-6", noValidate: !0, onSubmit: g, children: [
51
- /* @__PURE__ */ e(n, { ...i, type: "text" }),
52
- /* @__PURE__ */ e(n, { ...m, type: "email" }),
53
- /* @__PURE__ */ e(n, { ...d }),
54
- /* @__PURE__ */ e(j, { ...p, options: l }),
47
+ i === "loading" && /* @__PURE__ */ e(C, {}),
48
+ i === "error" && /* @__PURE__ */ e(q, { ...g }),
49
+ i === "success" && /* @__PURE__ */ e(L, { ...x }),
50
+ i === "default" && /* @__PURE__ */ t("form", { className: "mt-6 flex flex-col gap-6", noValidate: !0, onSubmit: N, children: [
51
+ /* @__PURE__ */ e(s, { ...l, type: "text" }),
52
+ /* @__PURE__ */ e(s, { ...m, type: "email" }),
53
+ /* @__PURE__ */ e(s, { ...d }),
54
+ /* @__PURE__ */ e(j, { ...p, options: a }),
55
55
  /* @__PURE__ */ e(b, { ...f }),
56
56
  /* @__PURE__ */ e("p", { className: "text-medium text-neutral-600", children: h }),
57
- /* @__PURE__ */ e(v, { ...s, children: /* @__PURE__ */ e(I, { className: "text-medium [&_p:last-child]:mb-0", content: s.label }) }),
57
+ /* @__PURE__ */ e(v, { ...c, children: /* @__PURE__ */ e(k, { className: "text-medium [&_p:last-child]:mb-0", content: c.label }) }),
58
58
  /* @__PURE__ */ t(
59
59
  "div",
60
60
  {
61
61
  id: "security-hint",
62
62
  className: "text-small flex items-start gap-2 rounded bg-neutral-50 p-4 text-neutral-600",
63
63
  children: [
64
- /* @__PURE__ */ e(S, { width: 24, height: 24, "aria-hidden": "true" }),
65
- /* @__PURE__ */ e("p", { children: x })
64
+ /* @__PURE__ */ e(I, { width: 24, height: 24, "aria-hidden": "true" }),
65
+ /* @__PURE__ */ e("p", { children: u })
66
66
  ]
67
67
  }
68
68
  ),
69
- /* @__PURE__ */ e(o, { ...c, className: "w-fit self-center", type: "submit", children: c.children })
69
+ /* @__PURE__ */ e(o, { ...n, className: "w-fit self-center", type: "submit", children: n.children })
70
70
  ] })
71
71
  ] });
72
72
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-contracts-ui",
3
- "version": "0.160.0",
3
+ "version": "0.161.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",