@npm_leadtech/legal-contracts-ui 0.131.7 → 0.132.1

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.
package/README.md CHANGED
@@ -16,6 +16,36 @@ After making the necessary changes, we can use Yalc tool to work with the librar
16
16
  3. After this linking, you will need restart the project container.
17
17
  4. From this point on, any new change requires running step 1 again and restarting the project container.
18
18
 
19
+ ## SonarQube
20
+
21
+ El análisis apunta por defecto al **servidor corporativo** (`sonar.host.url` en `sonar-project.properties` → `http://sonarqube.1elegal.net:9000`). Requiere **VPN** y un token válido en ese servidor.
22
+
23
+ ```bash
24
+ pnpm install
25
+ pnpm sonar # tests + scan al corporativo
26
+ pnpm sonar:scan # solo scan (tras pnpm test)
27
+ ```
28
+
29
+ Token: `SONAR_TOKEN` o `sonar.token` en `sonar-project.properties` (debe ser un token generado en el Sonar corporativo, no en el local).
30
+
31
+ Comprobar conectividad:
32
+
33
+ ```bash
34
+ curl -sf http://sonarqube.1elegal.net:9000/api/system/status && echo OK
35
+ ```
36
+
37
+ ### Sonar local (opcional, devops)
38
+
39
+ Solo si quieres probar contra el Docker local (no sincronizado con corporativo):
40
+
41
+ 1. `make sonar-build` en el repo **devops**
42
+ 2. `/etc/hosts`: `172.18.0.25 sonar.legal-contracts.com`
43
+ 3. Token generado en ese Sonar local + override:
44
+
45
+ ```bash
46
+ SONAR_HOST_URL=http://sonar.legal-contracts.com:9000 SONAR_TOKEN=tu_token_local pnpm sonar:scan
47
+ ```
48
+
19
49
  # Add component to storybook library or make changes and upload to npm
20
50
 
21
51
  1. Create component files, including tests and story or make changes
@@ -1,27 +1,28 @@
1
1
  import { jsx as e, jsxs as l, Fragment as n } from "react/jsx-runtime";
2
- import { Note as c } from "./Note.js";
2
+ import { Note as a } from "./Note.js";
3
3
  import { HistoryIcon as i } from "./HistoryIcon.js";
4
4
  import { DocOutlineIcon as m } from "./DocOutlineIcon.js";
5
5
  import { DoneCircleIcon as o } from "./DoneCircleIcon.js";
6
- const u = ({ lastUpdate: s, reviewer: r, alsoKnownAs: a }) => /* @__PURE__ */ e("section", { className: "bg-neutral-25 px-6 py-4 text-neutral-800 lg:px-8 xl:px-30", children: /* @__PURE__ */ e("div", { className: "mx-auto flex w-full max-w-300 flex-col gap-6", children: /* @__PURE__ */ l("div", { className: "text-small flex flex-col gap-2 text-neutral-600", children: [
6
+ const u = ({ lastUpdate: s, reviewer: c, alsoKnownAs: r }) => /* @__PURE__ */ e("section", { className: "bg-neutral-25 px-6 py-4 text-neutral-800 lg:px-8 xl:px-30", children: /* @__PURE__ */ e("div", { className: "mx-auto flex w-full max-w-300 flex-col gap-6", children: /* @__PURE__ */ l("div", { className: "text-small flex flex-col gap-2 text-neutral-600", children: [
7
7
  /* @__PURE__ */ l("div", { className: "flex flex-wrap items-center gap-2 sm:gap-4", children: [
8
- /* @__PURE__ */ l(c, { children: [
8
+ /* @__PURE__ */ l(a, { children: [
9
9
  /* @__PURE__ */ e(i, { className: "size-4.5", fill: "var(--neutral-600)" }),
10
10
  /* @__PURE__ */ e("span", { children: s })
11
11
  ] }),
12
- !!r && /* @__PURE__ */ l(n, { children: [
12
+ !!c && /* @__PURE__ */ l(n, { children: [
13
13
  /* @__PURE__ */ e("span", { className: "hidden h-5 w-px bg-neutral-600 sm:block", "aria-hidden": !0 }),
14
- /* @__PURE__ */ l(c, { children: [
14
+ /* @__PURE__ */ l(a, { children: [
15
15
  /* @__PURE__ */ e(o, { className: "size-4.5", fill: "var(--neutral-600)" }),
16
- r
16
+ c
17
17
  ] })
18
18
  ] })
19
19
  ] }),
20
- a.docs.length > 0 && /* @__PURE__ */ l("div", { className: "flex flex-wrap items-center gap-2", children: [
21
- /* @__PURE__ */ e(m, { className: "size-4.5", fill: "var(--secondary-600)" }),
22
- " ",
23
- a.label,
24
- a.docs.map((t) => /* @__PURE__ */ e("span", { className: "text-small rounded border border-neutral-200 bg-white px-2 py-1", children: t }, t))
20
+ r.docs.length > 0 && /* @__PURE__ */ l("div", { className: "flex flex-wrap items-center gap-2", children: [
21
+ /* @__PURE__ */ l(a, { children: [
22
+ /* @__PURE__ */ e(m, { className: "size-4.5", fill: "var(--secondary-600)" }),
23
+ r.label
24
+ ] }),
25
+ r.docs.map((t) => /* @__PURE__ */ e("span", { className: "text-small rounded border border-neutral-200 bg-white px-2 py-1", children: t }, t))
25
26
  ] })
26
27
  ] }) }) });
27
28
  export {
@@ -12,7 +12,7 @@ const g = ({ header: r, trustReasons: m, cta: c, trustPilot: i }) => /* @__PURE_
12
12
  ] }, a)) }),
13
13
  /* @__PURE__ */ e(d, { className: "w-full md:w-fit", children: c })
14
14
  ] }) }),
15
- /* @__PURE__ */ e("section", { className: "mx-auto w-full bg-white", children: !!i && /* @__PURE__ */ e("div", { className: "mx-auto w-full max-w-254 md:h-34", children: i }) })
15
+ /* @__PURE__ */ e("section", { className: "mx-auto w-full bg-white px-6 py-10 lg:px-8 xl:px-0", children: !!i && /* @__PURE__ */ e("div", { className: "mx-auto w-full max-w-254 md:h-34", children: i }) })
16
16
  ] });
17
17
  export {
18
18
  g as TrustSection