@npm_leadtech/legal-contracts-ui 0.188.1 → 0.188.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.
@@ -11,9 +11,9 @@ var r = ({ title: r, description: i, groups: a }) => {
11
11
  title: r,
12
12
  description: i,
13
13
  align: "start",
14
- titleClass: "font-sans text-super-large font-bold"
14
+ titleClass: "font-sans text-large md:text-super-large font-bold"
15
15
  }), /* @__PURE__ */ t("div", {
16
- className: "grid grid-cols-1 gap-6 md:grid-cols-3 lg:grid-cols-5 lg:gap-10",
16
+ className: "grid grid-cols-1 gap-6 md:grid-cols-5 md:gap-4 lg:gap-10",
17
17
  children: o.map((e) => /* @__PURE__ */ n("div", {
18
18
  className: "flex flex-col gap-2.5",
19
19
  children: [/* @__PURE__ */ n("div", {
@@ -22,15 +22,19 @@ var r = ({ title: r, description: i, groups: a }) => {
22
22
  className: "flex h-6 w-6 shrink-0 items-center justify-center rounded",
23
23
  children: e.icon
24
24
  }), /* @__PURE__ */ t("p", {
25
- className: "text-small font-bold text-neutral-800",
25
+ className: "text-small min-w-0 break-words font-bold text-neutral-800",
26
26
  children: e.label
27
27
  })]
28
28
  }), /* @__PURE__ */ t("div", {
29
29
  className: "flex flex-col gap-2.5",
30
30
  children: e.tools.map((e) => /* @__PURE__ */ t("a", {
31
31
  href: e.href,
32
- className: "text-small hover:bg-neutral-25 flex h-10 w-full items-center rounded-lg border border-neutral-200 bg-white p-2 font-bold text-neutral-800 transition-colors",
33
- children: e.label
32
+ title: e.label,
33
+ className: "text-small hover:bg-neutral-25 flex min-h-10 w-full items-center rounded-lg border border-neutral-200 bg-white p-2 font-bold text-neutral-800 transition-colors",
34
+ children: /* @__PURE__ */ t("span", {
35
+ className: "break-words",
36
+ children: e.label
37
+ })
34
38
  }, e.id))
35
39
  })]
36
40
  }, e.id))
@@ -27,7 +27,7 @@ var r = ({ items: r, image: i }) => {
27
27
  })]
28
28
  }, n.id))
29
29
  }), a && /* @__PURE__ */ e("div", {
30
- className: "h-53.5 overflow-hidden rounded-2xl lg:h-full [&_img]:h-full [&_img]:w-full [&_img]:object-cover",
30
+ className: "h-53.5 overflow-hidden rounded-2xl md:hidden lg:block lg:h-full [&_img]:h-full [&_img]:w-full [&_img]:object-cover",
31
31
  children: i
32
32
  })]
33
33
  })
@@ -3,51 +3,51 @@ import { UploadZone as t } from "./UploadZone.js";
3
3
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
4
  import i from "clsx";
5
5
  //#region lib/components/organisms/PdfToolsHero.tsx
6
- var a = ({ title: a, titleRich: o, subtitle: s, uploadZone: c, badges: l, trustPilot: u, bgLeft: d, bgRight: f }) => /* @__PURE__ */ r("section", {
7
- className: "relative flex flex-col items-center gap-6 px-6 pt-10 pb-12 lg:px-8 lg:pt-16 lg:pb-16 xl:px-0",
8
- children: [
9
- !!d && /* @__PURE__ */ n("div", {
10
- className: "pointer-events-none absolute top-0 -left-25 hidden lg:block xl:left-0",
11
- children: d
12
- }),
13
- !!f && /* @__PURE__ */ n("div", {
14
- className: "pointer-events-none absolute -right-15 bottom-0 hidden lg:block xl:right-5",
15
- children: f
16
- }),
17
- /* @__PURE__ */ r("div", {
18
- className: "flex flex-col items-center gap-3",
19
- children: [/* @__PURE__ */ n("h1", {
20
- className: "text-hero text-center font-bold text-neutral-800",
21
- children: o ?? a
22
- }), /* @__PURE__ */ n(e, {
23
- content: s,
24
- className: "text-medium text-center text-neutral-600 [&_p:last-child]:mb-0"
25
- })]
26
- }),
27
- /* @__PURE__ */ n("div", {
28
- className: "relative mx-auto w-full max-w-300",
29
- children: /* @__PURE__ */ n(t, {
30
- ...c,
31
- variant: "pdf-tools"
32
- })
33
- }),
34
- (!!u || l.length > 0) && /* @__PURE__ */ n("div", {
35
- className: "-mx-6 self-stretch bg-neutral-50 px-6 py-4 lg:-mx-8 lg:px-8 xl:mx-0",
36
- children: /* @__PURE__ */ r("div", {
37
- className: i("mx-auto flex max-w-300 flex-wrap items-center gap-3", u && l.length > 0 ? "flex-col justify-between sm:flex-row" : "justify-center"),
6
+ var a = ({ title: a, titleRich: o, subtitle: s, uploadZone: c, badges: l, trustPilot: u, bgLeft: d, bgRight: f }) => {
7
+ let p = !!u || l.length > 0;
8
+ return /* @__PURE__ */ r("section", {
9
+ className: i("relative flex flex-col items-center gap-6 bg-neutral-50 px-4 pt-8 md:px-6 lg:px-8 lg:pt-16 xl:px-0", p ? "pb-6 lg:pb-8" : "pb-10 lg:pb-16"),
10
+ children: [
11
+ !!d && /* @__PURE__ */ n("div", {
12
+ className: "pointer-events-none absolute top-0 -left-25 hidden lg:block xl:left-0",
13
+ children: d
14
+ }),
15
+ !!f && /* @__PURE__ */ n("div", {
16
+ className: "pointer-events-none absolute -right-15 bottom-0 hidden lg:block xl:right-5",
17
+ children: f
18
+ }),
19
+ /* @__PURE__ */ r("div", {
20
+ className: "flex max-w-300 flex-col items-center gap-3",
21
+ children: [/* @__PURE__ */ n("h1", {
22
+ className: "text-super-large md:text-hero text-center font-bold text-neutral-800",
23
+ children: o ?? a
24
+ }), /* @__PURE__ */ n(e, {
25
+ content: s,
26
+ className: "text-small md:text-medium text-center text-neutral-600 [&_p:last-child]:mb-0"
27
+ })]
28
+ }),
29
+ /* @__PURE__ */ n("div", {
30
+ className: "relative mx-auto w-full max-w-300",
31
+ children: /* @__PURE__ */ n(t, {
32
+ ...c,
33
+ variant: "pdf-tools"
34
+ })
35
+ }),
36
+ p && /* @__PURE__ */ r("div", {
37
+ className: i("mx-auto flex w-full max-w-300 flex-col items-center gap-3", u && l.length > 0 ? "lg:flex-row lg:justify-between" : "justify-center"),
38
38
  children: [!!u && u, l.length > 0 && /* @__PURE__ */ n("div", {
39
- className: "flex flex-wrap items-center gap-3",
39
+ className: "flex flex-wrap items-center justify-center gap-x-3 gap-y-2 md:gap-x-6",
40
40
  children: l.map((e) => /* @__PURE__ */ r("div", {
41
41
  className: "flex items-center gap-1",
42
42
  children: [e.icon, /* @__PURE__ */ n("p", {
43
- className: "text-small text-neutral-800",
43
+ className: "text-extra-small md:text-small text-neutral-800",
44
44
  children: e.text
45
45
  })]
46
46
  }, e.id))
47
47
  })]
48
48
  })
49
- })
50
- ]
51
- });
49
+ ]
50
+ });
51
+ };
52
52
  //#endregion
53
53
  export { a as PdfToolsHero };
@@ -1,36 +1,49 @@
1
- import { Toast as e } from "./Toast.js";
2
- import { FaqSection as t } from "./FaqSection.js";
3
- import { ProcessSection as n } from "./ProcessSection.js";
4
- import { PdfToolsHero as r } from "./PdfToolsHero.js";
5
- import { PdfToolsBenefitsSection as i } from "./PdfToolsBenefitsSection.js";
6
- import { ExploreToolsSection as a } from "./ExploreToolsSection.js";
7
- import { jsx as o, jsxs as s } from "react/jsx-runtime";
1
+ import { SecurityIcon as e } from "./SecurityIcon.js";
2
+ import { Toast as t } from "./Toast.js";
3
+ import { FaqSection as n } from "./FaqSection.js";
4
+ import { ProcessSection as r } from "./ProcessSection.js";
5
+ import { PdfToolsHero as i } from "./PdfToolsHero.js";
6
+ import { PdfToolsBenefitsSection as a } from "./PdfToolsBenefitsSection.js";
7
+ import { ExploreToolsSection as o } from "./ExploreToolsSection.js";
8
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
9
+ import l from "clsx";
8
10
  //#region lib/components/templates/PdfToolsTemplate.tsx
9
- var c = ({ hero: c, howItWorks: l, benefits: u, exploreTools: d, faq: f, faqNote: p, toast: m }) => /* @__PURE__ */ s("main", {
10
- className: "w-full flex-1 bg-white",
11
- "data-qa": "pdf_tools_page",
12
- children: [
13
- /* @__PURE__ */ o(r, { ...c }),
14
- /* @__PURE__ */ o(n, {
15
- ...l,
16
- variant: "pdf-tools",
17
- header: {
18
- ...l.header,
19
- titleClass: "font-sans text-super-large font-bold"
20
- }
21
- }),
22
- /* @__PURE__ */ o(i, { ...u }),
23
- d ? /* @__PURE__ */ o(a, { ...d }) : null,
24
- f ? /* @__PURE__ */ o(t, {
25
- ...f,
26
- className: "mx-auto max-w-250 px-6 py-12 lg:px-8 lg:pb-20 xl:px-0"
27
- }) : null,
28
- !!p && /* @__PURE__ */ o("div", {
29
- className: "mx-auto flex max-w-250 items-start gap-2 px-6 pb-12 lg:px-8 xl:px-0",
30
- children: p
31
- }),
32
- m && /* @__PURE__ */ o(e, { ...m })
33
- ]
34
- });
11
+ var u = ({ hero: u, howItWorks: d, benefits: f, exploreTools: p, faq: m, faqNote: h, toast: g }) => {
12
+ let _ = !!h;
13
+ return /* @__PURE__ */ c("main", {
14
+ className: "w-full flex-1 bg-white",
15
+ "data-qa": "pdf_tools_page",
16
+ children: [
17
+ /* @__PURE__ */ s(i, { ...u }),
18
+ /* @__PURE__ */ s(r, {
19
+ ...d,
20
+ variant: "pdf-tools",
21
+ header: {
22
+ ...d.header,
23
+ titleClass: "font-sans text-super-large font-bold"
24
+ }
25
+ }),
26
+ /* @__PURE__ */ s(a, { ...f }),
27
+ p ? /* @__PURE__ */ s(o, { ...p }) : null,
28
+ (!!m || _) && /* @__PURE__ */ c("div", {
29
+ className: "bg-neutral-50",
30
+ children: [m ? /* @__PURE__ */ s(n, {
31
+ ...m,
32
+ className: l("mx-auto max-w-300 px-6 pt-8 lg:px-8 lg:pt-10 xl:px-0", _ ? "pb-4" : "pb-12 lg:pb-20")
33
+ }) : null, _ && /* @__PURE__ */ c("div", {
34
+ className: "text-extra-small mx-auto flex max-w-300 items-start gap-2 px-6 pb-12 text-neutral-900 md:items-center lg:px-8 lg:pb-20 xl:px-0 [&_p]:mb-0",
35
+ children: [/* @__PURE__ */ s(e, {
36
+ className: "h-6 w-6 shrink-0",
37
+ fill: "var(--color-neutral-600)"
38
+ }), /* @__PURE__ */ s("div", {
39
+ className: "flex-1",
40
+ children: h
41
+ })]
42
+ })]
43
+ }),
44
+ g && /* @__PURE__ */ s(t, { ...g })
45
+ ]
46
+ });
47
+ };
35
48
  //#endregion
36
- export { c as PdfToolsTemplate };
49
+ export { u as PdfToolsTemplate };
@@ -7,12 +7,12 @@ var i = ({ image: i, header: a, steps: o, variant: s = "default" }) => {
7
7
  if (o.length === 0) return null;
8
8
  let c = s === "pdf-tools";
9
9
  return /* @__PURE__ */ n("section", {
10
- className: r("relative mx-auto px-6 py-10 lg:px-8 lg:py-12 xl:px-0", c ? "bg-white" : "bg-neutral-50"),
10
+ className: r("relative mx-auto px-6 lg:px-8 xl:px-0", c ? "bg-white py-8 lg:py-10" : "bg-neutral-50 py-10 lg:py-12"),
11
11
  children: [!c && /* @__PURE__ */ t("div", {
12
12
  className: "pointer-events-none absolute top-0 right-0 hidden lg:block",
13
13
  children: i
14
14
  }), /* @__PURE__ */ n("div", {
15
- className: "relative mx-auto flex flex-col gap-6 xl:max-w-250",
15
+ className: r("relative mx-auto flex flex-col gap-6", c ? "max-w-300" : "xl:max-w-250"),
16
16
  children: [/* @__PURE__ */ t(e, {
17
17
  ...a,
18
18
  titleClass: "font-sans text-super-large font-bold",
@@ -22,7 +22,7 @@ var i = ({ image: i, header: a, steps: o, variant: s = "default" }) => {
22
22
  children: o.map((e) => /* @__PURE__ */ n("div", {
23
23
  className: c ? "flex flex-col overflow-hidden rounded-2xl bg-white shadow-[0px_2px_6px_0px_rgba(2,55,74,0.1)]" : "flex items-center gap-6 rounded-sm bg-white p-6 shadow-lg md:flex-col md:justify-center md:gap-10 md:py-10",
24
24
  children: [/* @__PURE__ */ t("div", {
25
- className: r("overflow-hidden [&_img]:h-full [&_img]:w-full [&_img]:object-cover", c ? "bg-primary-50 h-53.5 w-full" : "h-22 w-22 shrink-0 md:h-30 md:w-30"),
25
+ className: r("overflow-hidden", c ? "bg-primary-50 flex h-53.5 w-full items-center justify-center p-4 [&_img]:h-auto [&_img]:max-h-full [&_img]:w-auto [&_img]:max-w-full [&_img]:object-contain" : "h-22 w-22 shrink-0 md:h-30 md:w-30 [&_img]:h-full [&_img]:w-full [&_img]:object-cover"),
26
26
  children: e.image
27
27
  }), /* @__PURE__ */ n("div", {
28
28
  className: r("flex flex-col", c ? "gap-4 border-t border-neutral-200 p-6" : "gap-2 md:text-center"),
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  "use client";
3
3
  import { AddIcon as e } from "./AddIcon.js";
4
- import { UploadDocIcon as t } from "./UploadDocIcon.js";
5
- import { LockIcon as n } from "./LockIcon.js";
4
+ import { SecurityIcon as t } from "./SecurityIcon.js";
5
+ import { UploadDocIcon as n } from "./UploadDocIcon.js";
6
6
  import { Button as r } from "./Button.js";
7
7
  import { Markdown as i } from "./Markdown.js";
8
8
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
@@ -22,85 +22,83 @@ var c = ({ uploadPromptText: c, addDocumentLabel: l, fileSizeText: u, disclaimer
22
22
  e.preventDefault(), y?.(e);
23
23
  },
24
24
  className: s("rounded-3xl", x ? "w-full bg-white p-5 shadow-[0px_10px_30px_0px_rgba(2,55,74,0.06)]" : "group bg-neutral-200/50 p-4 backdrop-blur-xs md:max-w-80 lg:max-w-120 xl:max-w-140", _),
25
- children: [
26
- /* @__PURE__ */ a("input", {
27
- type: "file",
28
- id: "file-upload",
29
- className: "sr-only",
30
- onChange: v,
31
- multiple: !0
32
- }),
33
- x && /* @__PURE__ */ o("div", {
34
- className: "flex flex-col gap-4",
35
- children: [/* @__PURE__ */ o("div", {
36
- className: "border-primary-300 flex flex-col items-center gap-4 rounded-2xl border-[1.5px] border-dashed px-6 py-6 text-center lg:px-8",
25
+ children: [x && /* @__PURE__ */ o("div", {
26
+ className: "border-primary-300 flex flex-col items-center gap-4 rounded-2xl border-[1.5px] border-dashed px-4 py-8 text-center md:px-6 lg:px-8 lg:py-10",
27
+ children: [
28
+ /* @__PURE__ */ a("div", {
29
+ className: "bg-primary-50 text-primary-800 flex h-13.5 w-13.5 items-center justify-center rounded-2xl",
30
+ children: h ?? /* @__PURE__ */ a(n, { className: "h-6 w-6" })
31
+ }),
32
+ (f || c || p) && /* @__PURE__ */ o("div", {
33
+ className: "flex flex-col gap-1.5",
37
34
  children: [
38
- /* @__PURE__ */ a("div", {
39
- className: "bg-primary-50 text-primary-800 flex h-13.5 w-13.5 items-center justify-center rounded-2xl",
40
- children: h ?? /* @__PURE__ */ a(t, { className: "h-6 w-6" })
35
+ f && /* @__PURE__ */ a("p", {
36
+ className: "text-big md:text-large font-bold text-neutral-800",
37
+ children: f
41
38
  }),
42
- (f || p) && /* @__PURE__ */ o("div", {
43
- className: "flex flex-col gap-1.5",
44
- children: [f && /* @__PURE__ */ a("p", {
45
- className: "text-large font-bold text-neutral-800",
46
- children: f
47
- }), p && /* @__PURE__ */ a("p", {
48
- className: "text-medium text-neutral-600",
49
- children: p
50
- })]
51
- }),
52
- /* @__PURE__ */ o(r, {
53
- dataQa: b,
54
- variant: "primary-green",
55
- className: "w-fit",
56
- onClick: v,
57
- children: [/* @__PURE__ */ a(e, {}), /* @__PURE__ */ a("span", {
58
- className: "text-medium font-bold",
59
- children: l
60
- })]
61
- }),
62
- u && /* @__PURE__ */ a("p", {
39
+ c && /* @__PURE__ */ a("p", {
63
40
  className: "text-small text-neutral-600",
64
- children: u
41
+ children: c
42
+ }),
43
+ p && /* @__PURE__ */ a("p", {
44
+ className: "text-small md:text-medium text-neutral-600",
45
+ children: p
65
46
  })
66
47
  ]
67
- }), m && /* @__PURE__ */ o("div", {
68
- className: "flex items-center justify-center gap-1",
69
- children: [/* @__PURE__ */ a(n, { className: "h-4 w-4 text-neutral-600" }), /* @__PURE__ */ a("p", {
70
- className: "text-small text-neutral-600",
48
+ }),
49
+ /* @__PURE__ */ a(r, {
50
+ dataQa: b,
51
+ variant: "primary-green",
52
+ className: "w-fit",
53
+ onClick: v,
54
+ children: /* @__PURE__ */ a("span", {
55
+ className: "text-medium font-bold",
56
+ children: l
57
+ })
58
+ }),
59
+ u && /* @__PURE__ */ a("p", {
60
+ className: "text-extra-small md:text-small text-neutral-600",
61
+ children: u
62
+ }),
63
+ m && /* @__PURE__ */ o("div", {
64
+ className: "flex items-start justify-center gap-1 text-left md:items-center",
65
+ children: [/* @__PURE__ */ a(t, {
66
+ className: "h-4 w-4 shrink-0",
67
+ fill: "var(--color-neutral-600)"
68
+ }), /* @__PURE__ */ a("p", {
69
+ className: "text-extra-small md:text-small text-neutral-600",
71
70
  children: m
72
71
  })]
73
- })]
74
- }),
75
- !x && /* @__PURE__ */ o("div", {
76
- className: "bg-neutral-25 flex flex-col gap-14 rounded-2xl px-6 pt-14 pb-2 text-center",
77
- children: [/* @__PURE__ */ o("div", {
78
- className: "flex flex-col items-center gap-10",
79
- children: [c && /* @__PURE__ */ a("p", {
80
- className: "text-medium text-neutral-400 transition-all duration-500 group-hover:text-neutral-900",
81
- children: c
82
- }), /* @__PURE__ */ o(r, {
83
- dataQa: b,
84
- variant: "primary-green",
85
- className: "w-fit",
86
- onClick: v,
87
- children: [/* @__PURE__ */ a(e, {}), /* @__PURE__ */ a("span", {
88
- className: "text-medium font-bold",
89
- children: l
90
- })]
91
- })]
92
- }), /* @__PURE__ */ o("div", {
93
- className: "flex flex-col gap-2",
94
- children: [u && /* @__PURE__ */ a("p", {
95
- className: "text-extra-small text-neutral-400",
96
- children: u
97
- }), d && /* @__PURE__ */ a(i, {
98
- className: "text-tiny text-neutral-400 [&_a]:text-neutral-400",
99
- content: d
72
+ })
73
+ ]
74
+ }), !x && /* @__PURE__ */ o("div", {
75
+ className: "bg-neutral-25 flex flex-col gap-14 rounded-2xl px-6 pt-14 pb-2 text-center",
76
+ children: [/* @__PURE__ */ o("div", {
77
+ className: "flex flex-col items-center gap-10",
78
+ children: [c && /* @__PURE__ */ a("p", {
79
+ className: "text-medium text-neutral-400 transition-all duration-500 group-hover:text-neutral-900",
80
+ children: c
81
+ }), /* @__PURE__ */ o(r, {
82
+ dataQa: b,
83
+ variant: "primary-green",
84
+ className: "w-fit",
85
+ onClick: v,
86
+ children: [/* @__PURE__ */ a(e, {}), /* @__PURE__ */ a("span", {
87
+ className: "text-medium font-bold",
88
+ children: l
100
89
  })]
101
90
  })]
102
- })
103
- ]
91
+ }), /* @__PURE__ */ o("div", {
92
+ className: "flex flex-col gap-2",
93
+ children: [u && /* @__PURE__ */ a("p", {
94
+ className: "text-extra-small text-neutral-400",
95
+ children: u
96
+ }), d && /* @__PURE__ */ a(i, {
97
+ className: "text-tiny text-neutral-400 [&_a]:text-neutral-400",
98
+ content: d
99
+ })]
100
+ })]
101
+ })]
104
102
  });
105
103
  };
106
104
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-contracts-ui",
3
- "version": "0.188.1",
3
+ "version": "0.188.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -741,29 +741,6 @@
741
741
  "bugs": {
742
742
  "url": "https://bitbucket.org/grupoblidoo/legal-contracts-ui/issues"
743
743
  },
744
- "scripts": {
745
- "dev": "vite",
746
- "build": "tsc --project tsconfig.build.json && vite build && cp lib/globals-core.css dist/globals.css",
747
- "sonar:scan": "bash scripts/sonar.sh",
748
- "sonar": "pnpm test && pnpm sonar:scan",
749
- "chromatic": "npx chromatic --project-token=chpt_be90ce8462f803c",
750
- "yalc-push": "pnpm build && yalc push",
751
- "format": "prettier --write .",
752
- "prettier": "prettier --check .",
753
- "eslint": "eslint . --quiet",
754
- "test": "vitest run --coverage --project unit",
755
- "test:storybook": "vitest run --project storybook --reporter=default",
756
- "test:all": "pnpm test && pnpm test:storybook",
757
- "test:watch": "vitest --coverage --project unit",
758
- "storybook": "storybook dev -p 6006",
759
- "build-storybook": "storybook build",
760
- "reinstall-force": "rm -Rf node_modules && pnpm install",
761
- "prepare-upgrade": "pnpm reinstall-force && pnpm build && pnpm chromatic && git add . && git commit -m \"$MSG\" --allow-empty && npm config set tag-version-prefix ''",
762
- "upgrade-patch": "pnpm prepare-upgrade && npm version patch -m \"Update patch version number\" && git push && git push --tags",
763
- "upgrade-minor": "pnpm prepare-upgrade && npm version minor -m \"Update minor version number\" && git push && git push --tags",
764
- "upgrade-major": "pnpm prepare-upgrade && npm version major -m \"Update major version number\" && git push && git push --tags",
765
- "prepare": "husky"
766
- },
767
744
  "dependencies": {
768
745
  "clsx": "^2.1.1",
769
746
  "react-markdown": "^10.1.0",
@@ -841,5 +818,26 @@
841
818
  "prettier --write --ignore-unknown"
842
819
  ]
843
820
  },
844
- "packageManager": "pnpm@10.28.0+sha512.05df71d1421f21399e053fde567cea34d446fa02c76571441bfc1c7956e98e363088982d940465fd34480d4d90a0668bc12362f8aa88000a64e83d0b0e47be48"
845
- }
821
+ "scripts": {
822
+ "dev": "vite",
823
+ "build": "tsc --project tsconfig.build.json && vite build && cp lib/globals-core.css dist/globals.css",
824
+ "sonar:scan": "bash scripts/sonar.sh",
825
+ "sonar": "pnpm test && pnpm sonar:scan",
826
+ "chromatic": "npx chromatic --project-token=chpt_be90ce8462f803c",
827
+ "yalc-push": "pnpm build && yalc push",
828
+ "format": "prettier --write .",
829
+ "prettier": "prettier --check .",
830
+ "eslint": "eslint . --quiet",
831
+ "test": "vitest run --coverage --project unit",
832
+ "test:storybook": "vitest run --project storybook --reporter=default",
833
+ "test:all": "pnpm test && pnpm test:storybook",
834
+ "test:watch": "vitest --coverage --project unit",
835
+ "storybook": "storybook dev -p 6006",
836
+ "build-storybook": "storybook build",
837
+ "reinstall-force": "rm -Rf node_modules && pnpm install",
838
+ "prepare-upgrade": "pnpm reinstall-force && pnpm build && pnpm chromatic && git add . && git commit -m \"$MSG\" --allow-empty && npm config set tag-version-prefix ''",
839
+ "upgrade-patch": "pnpm prepare-upgrade && npm version patch -m \"Update patch version number\" && git push && git push --tags",
840
+ "upgrade-minor": "pnpm prepare-upgrade && npm version minor -m \"Update minor version number\" && git push && git push --tags",
841
+ "upgrade-major": "pnpm prepare-upgrade && npm version major -m \"Update major version number\" && git push && git push --tags"
842
+ }
843
+ }