@npm_leadtech/legal-contracts-ui 0.61.0 → 0.61.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.
Files changed (37) hide show
  1. package/dist/components/AllDocumentsTemplate.d.ts +8 -32
  2. package/dist/components/AlternativeSubtypeDocument.d.ts +2 -24
  3. package/dist/components/AlternativeSubtypeDocument.js +8 -8
  4. package/dist/components/BlogSection.d.ts +1 -23
  5. package/dist/components/BlogSection.js +6 -6
  6. package/dist/components/Button.utils.js +127 -39
  7. package/dist/components/CategoriesSection.d.ts +2 -24
  8. package/dist/components/CategoriesSection.js +13 -13
  9. package/dist/components/CategoryProductTemplate.d.ts +9 -33
  10. package/dist/components/ContentItem.d.ts +8 -32
  11. package/dist/components/ContentItem.js +22 -20
  12. package/dist/components/DefaultSubtypeDocument.d.ts +3 -25
  13. package/dist/components/DefaultSubtypeDocument.js +17 -17
  14. package/dist/components/FaqTeaserSection.d.ts +1 -23
  15. package/dist/components/FaqTeaserSection.js +10 -10
  16. package/dist/components/HeroSection.d.ts +1 -23
  17. package/dist/components/HeroSection.js +13 -13
  18. package/dist/components/HomeTemplate.d.ts +7 -29
  19. package/dist/components/{DocsModules.d.ts → LinkWrapper.d.ts} +11 -15
  20. package/dist/components/LinkWrapper.js +9 -0
  21. package/dist/components/MobileMenu.js +8 -7
  22. package/dist/components/Preform.js +18 -17
  23. package/dist/components/PreviewDownload.js +21 -20
  24. package/dist/components/PreviewSection.d.ts +1 -23
  25. package/dist/components/PreviewSection.js +6 -6
  26. package/dist/components/ProductTemplate.d.ts +11 -35
  27. package/dist/components/ProductTemplate.js +30 -30
  28. package/dist/components/RatafiaSection.d.ts +1 -23
  29. package/dist/components/RatafiaSection.js +7 -4
  30. package/dist/components/TrustSection.d.ts +1 -23
  31. package/dist/components/TrustSection.js +6 -6
  32. package/dist/components/TryNowSection.d.ts +1 -23
  33. package/dist/components/TryNowSection.js +5 -5
  34. package/dist/globals.css +1 -1
  35. package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +16 -0
  36. package/package.json +5 -5
  37. package/dist/components/DocsModules.js +0 -9
@@ -1,4 +1,3 @@
1
- import { ComponentPropsWithRef } from 'react';
2
1
  import { FC } from 'react';
3
2
  import { ReactNode } from 'react';
4
3
 
@@ -21,8 +20,8 @@ export interface BaseSubtypeDocumentProps {
21
20
  id: string;
22
21
  link: ReactNode;
23
22
  sampleImage: ReactNode;
24
- pdfDownload: ButtonProps;
25
- wordDownload: ButtonProps;
23
+ pdfDownload: ReactNode;
24
+ wordDownload: ReactNode;
26
25
  }
27
26
 
28
27
  export interface BreadcrumbProps {
@@ -33,39 +32,26 @@ export interface BreadcrumbProps {
33
32
  className?: string;
34
33
  }
35
34
 
36
- export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
37
- children: ReactNode;
38
- size?: ButtonSize;
39
- variant?: ResponsiveButtonVariant;
40
- iconPosition?: IconPosition;
41
- }
42
-
43
- export type ButtonSize = 'small' | 'default' | 'large';
44
-
45
- export type ButtonVariant = 'primary-green' | 'primary-darkgreen' | 'primary-yellow' | 'primary-white' | 'secondary-green' | 'secondary-yellow' | 'secondary-red' | 'secondary-black' | 'tertiary-bold' | 'tertiary-thin' | 'tertiary-icon' | 'tertiary-link' | 'icon-black' | 'icon-grey' | 'icon-mobile';
46
-
47
35
  export interface ContentItemProps {
48
36
  id: string;
49
37
  title: string | null;
50
38
  content: string | null;
51
39
  linkedProducts: LinkedProductProps[];
52
40
  sampleImage: ImageWithPreviewProps | null;
53
- cta: string | null;
54
- docsModules: DocsModuleProps | null;
41
+ cta: ReactNode | null;
42
+ docsModules: {
43
+ pdfDownload: ReactNode;
44
+ wordDownload: ReactNode;
45
+ } | null;
55
46
  subtypeDocs: SubtypeDocumentProps[];
56
47
  }
57
48
 
58
49
  export interface DefaultSubtypeDocumentProps extends BaseSubtypeDocumentProps {
59
50
  format: 'Default';
60
- createDocButton: ButtonProps;
51
+ createDocButton: ReactNode;
61
52
  description: string;
62
53
  }
63
54
 
64
- export interface DocsModuleProps {
65
- pdfDownload: ButtonProps;
66
- wordDownload: ButtonProps;
67
- }
68
-
69
55
  export interface DocumentCategoriesProps {
70
56
  title: string;
71
57
  categories: Array<{
@@ -106,8 +92,6 @@ export interface FaqSectionProps {
106
92
  className?: string;
107
93
  }
108
94
 
109
- export type IconPosition = 'left' | 'right' | 'top';
110
-
111
95
  export interface ImageWithPreviewProps {
112
96
  small: ReactNode;
113
97
  large: ReactNode;
@@ -125,13 +109,5 @@ export interface LinkedProductProps {
125
109
  children: ReactNode;
126
110
  }
127
111
 
128
- export type ResponsiveButtonVariant = ButtonVariant | {
129
- initial?: ButtonVariant;
130
- sm?: ButtonVariant;
131
- md?: ButtonVariant;
132
- lg?: ButtonVariant;
133
- xl?: ButtonVariant;
134
- };
135
-
136
112
  export type SubtypeDocumentProps = DefaultSubtypeDocumentProps | AlternativeSubtypeDocumentProps;
137
113
 
@@ -1,4 +1,3 @@
1
- import { ComponentPropsWithRef } from 'react';
2
1
  import { FC } from 'react';
3
2
  import { ReactNode } from 'react';
4
3
 
@@ -12,28 +11,7 @@ export interface BaseSubtypeDocumentProps {
12
11
  id: string;
13
12
  link: ReactNode;
14
13
  sampleImage: ReactNode;
15
- pdfDownload: ButtonProps;
16
- wordDownload: ButtonProps;
14
+ pdfDownload: ReactNode;
15
+ wordDownload: ReactNode;
17
16
  }
18
-
19
- export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
20
- children: ReactNode;
21
- size?: ButtonSize;
22
- variant?: ResponsiveButtonVariant;
23
- iconPosition?: IconPosition;
24
- }
25
-
26
- export type ButtonSize = 'small' | 'default' | 'large';
27
-
28
- export type ButtonVariant = 'primary-green' | 'primary-darkgreen' | 'primary-yellow' | 'primary-white' | 'secondary-green' | 'secondary-yellow' | 'secondary-red' | 'secondary-black' | 'tertiary-bold' | 'tertiary-thin' | 'tertiary-icon' | 'tertiary-link' | 'icon-black' | 'icon-grey' | 'icon-mobile';
29
-
30
- export type IconPosition = 'left' | 'right' | 'top';
31
-
32
- export type ResponsiveButtonVariant = ButtonVariant | {
33
- initial?: ButtonVariant;
34
- sm?: ButtonVariant;
35
- md?: ButtonVariant;
36
- lg?: ButtonVariant;
37
- xl?: ButtonVariant;
38
- };
39
17
 
@@ -1,17 +1,17 @@
1
1
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
- import { Button as a } from "./Button.js";
2
+ import { LinkWrapper as a } from "./LinkWrapper.js";
3
3
  const m = ({
4
- link: t,
5
- sampleImage: s,
6
- pdfDownload: r,
4
+ link: r,
5
+ sampleImage: t,
6
+ pdfDownload: s,
7
7
  wordDownload: c
8
8
  }) => /* @__PURE__ */ l("div", { className: "bg-neutral-25 flex w-full max-w-100 items-center justify-center gap-4 rounded-xl p-4 lg:max-w-55.75 lg:flex-col", children: [
9
- /* @__PURE__ */ e("div", { className: "max-w-29 shadow", children: s }),
9
+ /* @__PURE__ */ e("div", { className: "max-w-29 shadow", children: t }),
10
10
  /* @__PURE__ */ l("div", { className: "flex w-full flex-col gap-4 lg:items-center lg:justify-center", children: [
11
- /* @__PURE__ */ e("div", { className: "text-medium font-bold text-neutral-900 underline lg:text-center", children: t }),
11
+ /* @__PURE__ */ e("div", { className: "text-medium font-bold text-neutral-900 underline lg:text-center", children: r }),
12
12
  /* @__PURE__ */ l("div", { className: "flex w-full flex-col justify-between gap-3 lg:flex-row lg:gap-0.75", children: [
13
- /* @__PURE__ */ e(a, { ...r, size: "small", className: "w-full", variant: "secondary-black" }),
14
- /* @__PURE__ */ e(a, { ...c, size: "small", className: "w-full", variant: "secondary-black" })
13
+ /* @__PURE__ */ e(a, { size: "small", className: "w-full", variant: "secondary-black", children: s }),
14
+ /* @__PURE__ */ e(a, { size: "small", className: "w-full", variant: "secondary-black", children: c })
15
15
  ] })
16
16
  ] })
17
17
  ] });
@@ -1,4 +1,3 @@
1
- import { ComponentPropsWithRef } from 'react';
2
1
  import { FC } from 'react';
3
2
  import { ReactNode } from 'react';
4
3
 
@@ -12,30 +11,9 @@ export declare interface BlogSectionProps {
12
11
  description: string;
13
12
  cta: ReactNode;
14
13
  }[];
15
- cta: ButtonProps;
14
+ cta: ReactNode;
16
15
  }
17
16
 
18
- export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
19
- children: ReactNode;
20
- size?: ButtonSize;
21
- variant?: ResponsiveButtonVariant;
22
- iconPosition?: IconPosition;
23
- }
24
-
25
- export type ButtonSize = 'small' | 'default' | 'large';
26
-
27
- export type ButtonVariant = 'primary-green' | 'primary-darkgreen' | 'primary-yellow' | 'primary-white' | 'secondary-green' | 'secondary-yellow' | 'secondary-red' | 'secondary-black' | 'tertiary-bold' | 'tertiary-thin' | 'tertiary-icon' | 'tertiary-link' | 'icon-black' | 'icon-grey' | 'icon-mobile';
28
-
29
- export type IconPosition = 'left' | 'right' | 'top';
30
-
31
- export type ResponsiveButtonVariant = ButtonVariant | {
32
- initial?: ButtonVariant;
33
- sm?: ButtonVariant;
34
- md?: ButtonVariant;
35
- lg?: ButtonVariant;
36
- xl?: ButtonVariant;
37
- };
38
-
39
17
  export interface SectionHeadingProps {
40
18
  title: string;
41
19
  description?: string;
@@ -1,18 +1,18 @@
1
1
  import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import { SectionHeading as o } from "./SectionHeading.js";
4
- import { Button as a } from "./Button.js";
5
- const x = ({ header: r, articles: t, cta: m }) => t.length === 0 ? null : /* @__PURE__ */ e("section", { className: "mx-auto px-8 pt-10 pb-12 lg:px-12 lg:pb-14 xl:max-w-300 xl:px-0", children: /* @__PURE__ */ i("div", { className: "mx-auto flex flex-col items-center gap-8", children: [
6
- /* @__PURE__ */ e(o, { ...r }),
7
- /* @__PURE__ */ e("div", { className: "grid gap-6 lg:grid-cols-2", children: t.map((l) => /* @__PURE__ */ i("article", { className: "flex flex-col rounded-sm bg-white shadow md:flex-row", children: [
4
+ import { LinkWrapper as r } from "./LinkWrapper.js";
5
+ const x = ({ header: t, articles: a, cta: m }) => a.length === 0 ? null : /* @__PURE__ */ e("section", { className: "mx-auto px-8 pt-10 pb-12 lg:px-12 lg:pb-14 xl:max-w-300 xl:px-0", children: /* @__PURE__ */ i("div", { className: "mx-auto flex flex-col items-center gap-8", children: [
6
+ /* @__PURE__ */ e(o, { ...t }),
7
+ /* @__PURE__ */ e("div", { className: "grid gap-6 lg:grid-cols-2", children: a.map((l) => /* @__PURE__ */ i("article", { className: "flex flex-col rounded-sm bg-white shadow md:flex-row", children: [
8
8
  /* @__PURE__ */ e("div", { className: "relative h-42 shrink-0 overflow-hidden rounded-l-sm md:h-50 lg:h-auto lg:max-w-51 [&_img]:h-full [&_img]:w-full [&_img]:object-cover", children: l.image }),
9
9
  /* @__PURE__ */ i("div", { className: "flex flex-col gap-4 p-6 text-neutral-800", children: [
10
10
  /* @__PURE__ */ e("h3", { className: "text-big font-semibold", children: l.title }),
11
11
  /* @__PURE__ */ e("p", { className: "text-medium", children: l.description }),
12
- /* @__PURE__ */ e("p", { className: "text-primary-700 hover:text-primary-500 font-semibold hover:underline", children: l.cta })
12
+ /* @__PURE__ */ e(r, { className: "w-fit", variant: "tertiary-bold", children: l.cta })
13
13
  ] })
14
14
  ] }, l.title)) }),
15
- /* @__PURE__ */ e(a, { className: "w-full md:w-fit", variant: "secondary-green", ...m })
15
+ /* @__PURE__ */ e(r, { className: "w-full md:w-fit", variant: "secondary-green", children: m })
16
16
  ] }) });
17
17
  export {
18
18
  x as BlogSection
@@ -1,46 +1,134 @@
1
- const r = "inline-flex items-center justify-center gap-2 rounded-sm transition-all duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2", d = {
2
- "primary-green": `${r} bg-primary-700 hover:bg-primary-500 border border-transparent font-semibold text-white disabled:cursor-not-allowed disabled:bg-neutral-200 disabled:text-neutral-400`,
3
- "primary-darkgreen": `${r} bg-primary-900 hover:bg-primary-800 border border-transparent font-semibold text-white disabled:cursor-not-allowed disabled:bg-neutral-200 disabled:text-neutral-400`,
4
- "primary-yellow": `${r} bg-secondary-500 hover:bg-secondary-400 border border-transparent font-semibold text-neutral-900 disabled:cursor-not-allowed disabled:bg-neutral-200 disabled:text-neutral-400`,
5
- "primary-white": `${r} border border-transparent bg-white font-semibold text-neutral-900 hover:bg-neutral-50 disabled:cursor-not-allowed disabled:bg-neutral-200 disabled:text-neutral-400`,
6
- "secondary-green": `${r} border-2 border-primary-700 bg-white font-semibold text-primary-700 hover:bg-primary-100 hover:text-primary-800 disabled:cursor-not-allowed disabled:border-neutral-200 disabled:bg-neutral-200 disabled:text-neutral-400`,
7
- "secondary-yellow": `${r} border-2 border-secondary-500 bg-transparent font-semibold text-neutral-900 hover:border-secondary-600 hover:bg-secondary-100 disabled:cursor-not-allowed disabled:border-neutral-200 disabled:bg-neutral-200 disabled:text-neutral-400`,
8
- "secondary-red": `${r} border-2 border-error-500 bg-transparent font-semibold text-error-500 hover:bg-error-25 disabled:cursor-not-allowed disabled:border-neutral-200 disabled:bg-neutral-200 disabled:text-neutral-400`,
9
- "secondary-black": `${r} border-2 border-neutral-600 bg-transparent font-semibold text-neutral-800 hover:bg-neutral-200 disabled:cursor-not-allowed disabled:border-neutral-200 disabled:bg-neutral-200 disabled:text-neutral-400`,
10
- "tertiary-bold": `${r} border border-transparent bg-transparent p-1.5! font-semibold text-primary-700 hover:bg-primary-200 hover:text-primary-500 disabled:cursor-not-allowed disabled:bg-white disabled:text-neutral-400`,
11
- "tertiary-thin": `${r} border border-transparent bg-transparent p-1.5! font-normal text-neutral-800 hover:bg-primary-100 disabled:cursor-not-allowed disabled:bg-white disabled:text-neutral-400`,
12
- "tertiary-icon": `${r} border border-transparent bg-transparent p-1.5! font-medium text-neutral-800 hover:bg-primary-100 disabled:cursor-not-allowed disabled:bg-white disabled:text-neutral-400`,
13
- "tertiary-link": `${r} border border-transparent bg-transparent text-primary-700 underline underline-offset-2 disabled:cursor-not-allowed disabled:bg-white disabled:text-neutral-400`,
14
- "icon-black": `${r} border border-transparent bg-black font-semibold text-white hover:bg-neutral-800 disabled:cursor-not-allowed disabled:bg-neutral-400`,
15
- "icon-grey": `${r} border-2 border-neutral-600 bg-transparent font-semibold text-neutral-800 hover:bg-neutral-200 disabled:cursor-not-allowed disabled:border-neutral-400 disabled:bg-white disabled:text-neutral-400`,
16
- "icon-mobile": `${r} border-2 border-neutral-200 bg-transparent px-8! text-primary-700 !rounded-sm hover:bg-neutral-50 disabled:cursor-not-allowed disabled:border-neutral-400 disabled:bg-white disabled:text-neutral-400`
17
- }, o = (t, e) => e.split(" ").map((l) => `${t}:${l}`).join(" "), i = Object.fromEntries(
18
- Object.entries(d).map(([t, e]) => [t, o("sm", e)])
19
- ), u = Object.fromEntries(
20
- Object.entries(d).map(([t, e]) => [t, o("md", e)])
21
- ), p = Object.fromEntries(
22
- Object.entries(d).map(([t, e]) => [t, o("lg", e)])
23
- ), g = Object.fromEntries(
24
- Object.entries(d).map(([t, e]) => [t, o("xl", e)])
25
- ), c = {
1
+ import { clsx as l } from "../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
2
+ const n = {
3
+ "primary-green": {
4
+ initial: "btn-primary-green",
5
+ sm: "sm:btn-primary-green",
6
+ md: "md:btn-primary-green",
7
+ lg: "lg:btn-primary-green",
8
+ xl: "xl:btn-primary-green"
9
+ },
10
+ "primary-darkgreen": {
11
+ initial: "btn-primary-darkgreen",
12
+ sm: "sm:btn-primary-darkgreen",
13
+ md: "md:btn-primary-darkgreen",
14
+ lg: "lg:btn-primary-darkgreen",
15
+ xl: "xl:btn-primary-darkgreen"
16
+ },
17
+ "primary-yellow": {
18
+ initial: "btn-primary-yellow",
19
+ sm: "sm:btn-primary-yellow",
20
+ md: "md:btn-primary-yellow",
21
+ lg: "lg:btn-primary-yellow",
22
+ xl: "xl:btn-primary-yellow"
23
+ },
24
+ "primary-white": {
25
+ initial: "btn-primary-white",
26
+ sm: "sm:btn-primary-white",
27
+ md: "md:btn-primary-white",
28
+ lg: "lg:btn-primary-white",
29
+ xl: "xl:btn-primary-white"
30
+ },
31
+ "secondary-green": {
32
+ initial: "btn-secondary-green",
33
+ sm: "sm:btn-secondary-green",
34
+ md: "md:btn-secondary-green",
35
+ lg: "lg:btn-secondary-green",
36
+ xl: "xl:btn-secondary-green"
37
+ },
38
+ "secondary-yellow": {
39
+ initial: "btn-secondary-yellow",
40
+ sm: "sm:btn-secondary-yellow",
41
+ md: "md:btn-secondary-yellow",
42
+ lg: "lg:btn-secondary-yellow",
43
+ xl: "xl:btn-secondary-yellow"
44
+ },
45
+ "secondary-red": {
46
+ initial: "btn-secondary-red",
47
+ sm: "sm:btn-secondary-red",
48
+ md: "md:btn-secondary-red",
49
+ lg: "lg:btn-secondary-red",
50
+ xl: "xl:btn-secondary-red"
51
+ },
52
+ "secondary-black": {
53
+ initial: "btn-secondary-black",
54
+ sm: "sm:btn-secondary-black",
55
+ md: "md:btn-secondary-black",
56
+ lg: "lg:btn-secondary-black",
57
+ xl: "xl:btn-secondary-black"
58
+ },
59
+ "tertiary-bold": {
60
+ initial: "btn-tertiary-bold",
61
+ sm: "sm:btn-tertiary-bold",
62
+ md: "md:btn-tertiary-bold",
63
+ lg: "lg:btn-tertiary-bold",
64
+ xl: "xl:btn-tertiary-bold"
65
+ },
66
+ "tertiary-thin": {
67
+ initial: "btn-tertiary-thin",
68
+ sm: "sm:btn-tertiary-thin",
69
+ md: "md:btn-tertiary-thin",
70
+ lg: "lg:btn-tertiary-thin",
71
+ xl: "xl:btn-tertiary-thin"
72
+ },
73
+ "tertiary-icon": {
74
+ initial: "btn-tertiary-icon",
75
+ sm: "sm:btn-tertiary-icon",
76
+ md: "md:btn-tertiary-icon",
77
+ lg: "lg:btn-tertiary-icon",
78
+ xl: "xl:btn-tertiary-icon"
79
+ },
80
+ "tertiary-link": {
81
+ initial: "btn-tertiary-link",
82
+ sm: "sm:btn-tertiary-link",
83
+ md: "md:btn-tertiary-link",
84
+ lg: "lg:btn-tertiary-link",
85
+ xl: "xl:btn-tertiary-link"
86
+ },
87
+ "icon-black": {
88
+ initial: "btn-icon-black",
89
+ sm: "sm:btn-icon-black",
90
+ md: "md:btn-icon-black",
91
+ lg: "lg:btn-icon-black",
92
+ xl: "xl:btn-icon-black"
93
+ },
94
+ "icon-grey": {
95
+ initial: "btn-icon-grey",
96
+ sm: "sm:btn-icon-grey",
97
+ md: "md:btn-icon-grey",
98
+ lg: "lg:btn-icon-grey",
99
+ xl: "xl:btn-icon-grey"
100
+ },
101
+ "icon-mobile": {
102
+ initial: "btn-icon-mobile",
103
+ sm: "sm:btn-icon-mobile",
104
+ md: "md:btn-icon-mobile",
105
+ lg: "lg:btn-icon-mobile",
106
+ xl: "xl:btn-icon-mobile"
107
+ }
108
+ }, a = {
26
109
  small: "px-3 py-1.5 text-small",
27
110
  default: "px-4 py-2.5 text-medium",
28
111
  large: "px-6 py-3 text-big"
29
- }, f = (t = "default", e = "primary-green", l = "left", n = !1, s) => {
30
- const b = () => l === "top" ? "flex-col" : l === "right" ? "flex-row-reverse" : "flex-row";
31
- return [
32
- n ? "" : "cursor-pointer",
33
- (() => {
34
- if (typeof e == "string")
35
- return d[e];
36
- const a = [];
37
- return e.initial && a.push(d[e.initial]), e.sm && a.push(i[e.sm]), e.md && a.push(u[e.md]), e.lg && a.push(p[e.lg]), e.xl && a.push(g[e.xl]), a.join(" ");
38
- })(),
39
- c[t],
112
+ }, o = (e = "default", t = "primary-green", r = "left", i = !1, m) => {
113
+ const b = () => typeof t == "string" ? n[t].initial : l(
114
+ t.initial && n[t.initial].initial,
115
+ t.sm && n[t.sm].sm,
116
+ t.md && n[t.md].md,
117
+ t.lg && n[t.lg].lg,
118
+ t.xl && n[t.xl].xl
119
+ );
120
+ return l(
121
+ !i && "cursor-pointer",
122
+ a[e],
40
123
  b(),
41
- s
42
- ].join(" ");
124
+ {
125
+ "flex-col": r === "top",
126
+ "flex-row-reverse": r === "right",
127
+ "flex-row": r === "left" || !r
128
+ },
129
+ m
130
+ );
43
131
  };
44
132
  export {
45
- f as getButtonClasses
133
+ o as getButtonClasses
46
134
  };
@@ -1,18 +1,6 @@
1
- import { ComponentPropsWithRef } from 'react';
2
1
  import { FC } from 'react';
3
2
  import { ReactNode } from 'react';
4
3
 
5
- export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
6
- children: ReactNode;
7
- size?: ButtonSize;
8
- variant?: ResponsiveButtonVariant;
9
- iconPosition?: IconPosition;
10
- }
11
-
12
- export type ButtonSize = 'small' | 'default' | 'large';
13
-
14
- export type ButtonVariant = 'primary-green' | 'primary-darkgreen' | 'primary-yellow' | 'primary-white' | 'secondary-green' | 'secondary-yellow' | 'secondary-red' | 'secondary-black' | 'tertiary-bold' | 'tertiary-thin' | 'tertiary-icon' | 'tertiary-link' | 'icon-black' | 'icon-grey' | 'icon-mobile';
15
-
16
4
  export declare const CategoriesSection: FC<CategoriesSectionProps>;
17
5
 
18
6
  export declare interface CategoriesSectionProps {
@@ -21,21 +9,11 @@ export declare interface CategoriesSectionProps {
21
9
  title: string;
22
10
  description: string;
23
11
  icon: ReactNode;
24
- cta: ButtonProps;
12
+ cta: ReactNode;
25
13
  }[];
26
- cta: ButtonProps;
14
+ cta: ReactNode;
27
15
  }
28
16
 
29
- export type IconPosition = 'left' | 'right' | 'top';
30
-
31
- export type ResponsiveButtonVariant = ButtonVariant | {
32
- initial?: ButtonVariant;
33
- sm?: ButtonVariant;
34
- md?: ButtonVariant;
35
- lg?: ButtonVariant;
36
- xl?: ButtonVariant;
37
- };
38
-
39
17
  export interface SectionHeadingProps {
40
18
  title: string;
41
19
  description?: string;
@@ -1,21 +1,21 @@
1
- import { jsxs as i, jsx as l } from "react/jsx-runtime";
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
2
  import "react";
3
- import { SectionHeading as s } from "./SectionHeading.js";
4
- import { Button as n } from "./Button.js";
5
- const p = ({ header: r, categories: a, cta: t }) => a.length === 0 ? null : /* @__PURE__ */ i("section", { className: "mx-auto flex flex-col items-center gap-8 px-6 py-10 text-neutral-900 lg:px-8 xl:max-w-300 xl:px-0", children: [
6
- /* @__PURE__ */ l(s, { ...r }),
7
- /* @__PURE__ */ l("div", { className: "flex flex-col gap-6 lg:grid lg:grid-cols-2", children: a.map((e) => /* @__PURE__ */ i("div", { className: "bg-neutral-25 flex flex-col gap-6 rounded-lg p-6", children: [
3
+ import { SectionHeading as c } from "./SectionHeading.js";
4
+ import { LinkWrapper as a } from "./LinkWrapper.js";
5
+ const x = ({ header: n, categories: r, cta: t }) => r.length === 0 ? null : /* @__PURE__ */ i("section", { className: "mx-auto flex flex-col items-center gap-8 px-6 py-10 text-neutral-900 lg:px-8 xl:max-w-300 xl:px-0", children: [
6
+ /* @__PURE__ */ e(c, { ...n }),
7
+ /* @__PURE__ */ e("div", { className: "flex flex-col gap-6 lg:grid lg:grid-cols-2", children: r.map((l) => /* @__PURE__ */ i("div", { className: "bg-neutral-25 flex flex-col gap-6 rounded-lg p-6", children: [
8
8
  /* @__PURE__ */ i("div", { className: "flex flex-col gap-2", children: [
9
9
  /* @__PURE__ */ i("div", { className: "flex gap-2", children: [
10
- /* @__PURE__ */ l("span", { children: e.icon }),
11
- /* @__PURE__ */ l("p", { className: "text-big font-bold", children: e.title })
10
+ /* @__PURE__ */ e("span", { children: l.icon }),
11
+ /* @__PURE__ */ e("p", { className: "text-big font-bold", children: l.title })
12
12
  ] }),
13
- /* @__PURE__ */ l("p", { children: e.description })
13
+ /* @__PURE__ */ e("p", { children: l.description })
14
14
  ] }),
15
- /* @__PURE__ */ l(n, { variant: "secondary-green", className: "w-fit", ...e.cta })
16
- ] }, e.title)) }),
17
- /* @__PURE__ */ l(n, { className: "w-full md:w-fit", variant: "primary-darkgreen", ...t })
15
+ /* @__PURE__ */ e(a, { variant: "secondary-green", className: "w-fit", children: l.cta })
16
+ ] }, l.title)) }),
17
+ /* @__PURE__ */ e(a, { className: "w-full md:w-fit", variant: "primary-darkgreen", children: t })
18
18
  ] });
19
19
  export {
20
- p as CategoriesSection
20
+ x as CategoriesSection
21
21
  };
@@ -1,4 +1,3 @@
1
- import { ComponentPropsWithRef } from 'react';
2
1
  import { FC } from 'react';
3
2
  import { ReactNode } from 'react';
4
3
 
@@ -10,8 +9,8 @@ export interface BaseSubtypeDocumentProps {
10
9
  id: string;
11
10
  link: ReactNode;
12
11
  sampleImage: ReactNode;
13
- pdfDownload: ButtonProps;
14
- wordDownload: ButtonProps;
12
+ pdfDownload: ReactNode;
13
+ wordDownload: ReactNode;
15
14
  }
16
15
 
17
16
  export interface BlogSectionProps {
@@ -22,7 +21,7 @@ export interface BlogSectionProps {
22
21
  description: string;
23
22
  cta: ReactNode;
24
23
  }[];
25
- cta: ButtonProps;
24
+ cta: ReactNode;
26
25
  }
27
26
 
28
27
  export interface BreadcrumbProps {
@@ -33,17 +32,6 @@ export interface BreadcrumbProps {
33
32
  className?: string;
34
33
  }
35
34
 
36
- export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
37
- children: ReactNode;
38
- size?: ButtonSize;
39
- variant?: ResponsiveButtonVariant;
40
- iconPosition?: IconPosition;
41
- }
42
-
43
- export type ButtonSize = 'small' | 'default' | 'large';
44
-
45
- export type ButtonVariant = 'primary-green' | 'primary-darkgreen' | 'primary-yellow' | 'primary-white' | 'secondary-green' | 'secondary-yellow' | 'secondary-red' | 'secondary-black' | 'tertiary-bold' | 'tertiary-thin' | 'tertiary-icon' | 'tertiary-link' | 'icon-black' | 'icon-grey' | 'icon-mobile';
46
-
47
35
  export declare const CategoryProductTemplate: FC<CategoryProductTemplateProps>;
48
36
 
49
37
  export declare interface CategoryProductTemplateProps {
@@ -62,22 +50,20 @@ export interface ContentItemProps {
62
50
  content: string | null;
63
51
  linkedProducts: LinkedProductProps[];
64
52
  sampleImage: ImageWithPreviewProps | null;
65
- cta: string | null;
66
- docsModules: DocsModuleProps | null;
53
+ cta: ReactNode | null;
54
+ docsModules: {
55
+ pdfDownload: ReactNode;
56
+ wordDownload: ReactNode;
57
+ } | null;
67
58
  subtypeDocs: SubtypeDocumentProps[];
68
59
  }
69
60
 
70
61
  export interface DefaultSubtypeDocumentProps extends BaseSubtypeDocumentProps {
71
62
  format: 'Default';
72
- createDocButton: ButtonProps;
63
+ createDocButton: ReactNode;
73
64
  description: string;
74
65
  }
75
66
 
76
- export interface DocsModuleProps {
77
- pdfDownload: ButtonProps;
78
- wordDownload: ButtonProps;
79
- }
80
-
81
67
  export interface DocumentCategoriesProps {
82
68
  title: string;
83
69
  categories: Array<{
@@ -118,8 +104,6 @@ export interface FaqSectionProps {
118
104
  className?: string;
119
105
  }
120
106
 
121
- export type IconPosition = 'left' | 'right' | 'top';
122
-
123
107
  export interface ImageWithPreviewProps {
124
108
  small: ReactNode;
125
109
  large: ReactNode;
@@ -137,14 +121,6 @@ export interface LinkedProductProps {
137
121
  children: ReactNode;
138
122
  }
139
123
 
140
- export type ResponsiveButtonVariant = ButtonVariant | {
141
- initial?: ButtonVariant;
142
- sm?: ButtonVariant;
143
- md?: ButtonVariant;
144
- lg?: ButtonVariant;
145
- xl?: ButtonVariant;
146
- };
147
-
148
124
  export interface SectionHeadingProps {
149
125
  title: string;
150
126
  description?: string;
@@ -1,4 +1,3 @@
1
- import { ComponentPropsWithRef } from 'react';
2
1
  import { FC } from 'react';
3
2
  import { ReactNode } from 'react';
4
3
 
@@ -10,21 +9,10 @@ export interface BaseSubtypeDocumentProps {
10
9
  id: string;
11
10
  link: ReactNode;
12
11
  sampleImage: ReactNode;
13
- pdfDownload: ButtonProps;
14
- wordDownload: ButtonProps;
12
+ pdfDownload: ReactNode;
13
+ wordDownload: ReactNode;
15
14
  }
16
15
 
17
- export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
18
- children: ReactNode;
19
- size?: ButtonSize;
20
- variant?: ResponsiveButtonVariant;
21
- iconPosition?: IconPosition;
22
- }
23
-
24
- export type ButtonSize = 'small' | 'default' | 'large';
25
-
26
- export type ButtonVariant = 'primary-green' | 'primary-darkgreen' | 'primary-yellow' | 'primary-white' | 'secondary-green' | 'secondary-yellow' | 'secondary-red' | 'secondary-black' | 'tertiary-bold' | 'tertiary-thin' | 'tertiary-icon' | 'tertiary-link' | 'icon-black' | 'icon-grey' | 'icon-mobile';
27
-
28
16
  export declare const ContentItem: FC<ContentItemProps>;
29
17
 
30
18
  export declare interface ContentItemProps {
@@ -33,24 +21,20 @@ export declare interface ContentItemProps {
33
21
  content: string | null;
34
22
  linkedProducts: LinkedProductProps[];
35
23
  sampleImage: ImageWithPreviewProps | null;
36
- cta: string | null;
37
- docsModules: DocsModuleProps | null;
24
+ cta: ReactNode | null;
25
+ docsModules: {
26
+ pdfDownload: ReactNode;
27
+ wordDownload: ReactNode;
28
+ } | null;
38
29
  subtypeDocs: SubtypeDocumentProps[];
39
30
  }
40
31
 
41
32
  export interface DefaultSubtypeDocumentProps extends BaseSubtypeDocumentProps {
42
33
  format: 'Default';
43
- createDocButton: ButtonProps;
34
+ createDocButton: ReactNode;
44
35
  description: string;
45
36
  }
46
37
 
47
- export interface DocsModuleProps {
48
- pdfDownload: ButtonProps;
49
- wordDownload: ButtonProps;
50
- }
51
-
52
- export type IconPosition = 'left' | 'right' | 'top';
53
-
54
38
  export interface ImageWithPreviewProps {
55
39
  small: ReactNode;
56
40
  large: ReactNode;
@@ -61,13 +45,5 @@ export interface LinkedProductProps {
61
45
  children: ReactNode;
62
46
  }
63
47
 
64
- export type ResponsiveButtonVariant = ButtonVariant | {
65
- initial?: ButtonVariant;
66
- sm?: ButtonVariant;
67
- md?: ButtonVariant;
68
- lg?: ButtonVariant;
69
- xl?: ButtonVariant;
70
- };
71
-
72
48
  export type SubtypeDocumentProps = DefaultSubtypeDocumentProps | AlternativeSubtypeDocumentProps;
73
49