@npm_leadtech/legal-contracts-ui 0.99.6 → 0.99.7

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,26 +1,14 @@
1
1
  import { FC } from 'react';
2
+ import { ReactNode } from 'react';
2
3
 
3
4
  export declare const NotFoundTemplate: FC<NotFoundTemplateProps>;
4
5
 
5
6
  export declare interface NotFoundTemplateProps {
6
7
  intro: {
7
- title?: string;
8
- message?: string;
9
- image?: {
10
- url?: string;
11
- alt?: string;
12
- width?: number;
13
- height?: number;
14
- };
15
- cta?: {
16
- children: React.ReactNode;
17
- href?: string;
18
- size?: 'small' | 'medium' | 'large';
19
- variant?: string;
20
- iconPosition?: 'left' | 'right';
21
- disabled?: boolean;
22
- className?: string;
23
- };
8
+ image?: ReactNode;
9
+ title?: ReactNode;
10
+ message?: ReactNode;
11
+ cta?: ReactNode;
24
12
  };
25
13
  }
26
14
 
@@ -1,13 +1,20 @@
1
- import { jsx as l, jsxs as a } from "react/jsx-runtime";
2
- import { LinkWrapper as s } from "./LinkWrapper.js";
3
- const i = ({ intro: e }) => /* @__PURE__ */ l("main", { className: "flex-1", children: /* @__PURE__ */ a("div", { className: "bg-neutral-white flex flex-col items-center py-16 text-center md:flex-row md:py-20 md:text-left lg:gap-20", children: [
4
- e.image?.url && /* @__PURE__ */ l("div", { className: "mb-4 md:mr-6 md:mb-0 md:basis-42/100 lg:mr-10 lg:basis-39/100 xl:basis-36/100 [&_img]:h-auto [&_img]:w-full [&_img]:rounded-2xl xl:[&_img]:h-full xl:[&_img]:object-cover", children: /* @__PURE__ */ l("img", { src: e.image.url, alt: e.image.alt, width: e.image.width, height: e.image.height }) }),
1
+ import { jsx as e, jsxs as a } from "react/jsx-runtime";
2
+ import { LinkWrapper as m } from "./LinkWrapper.js";
3
+ const i = ({ intro: l }) => /* @__PURE__ */ e("main", { className: "flex-1", children: /* @__PURE__ */ a("div", { className: "bg-neutral-white flex flex-col items-center py-16 text-center md:flex-row md:py-20 md:text-left lg:gap-20", children: [
4
+ l.image != null ? /* @__PURE__ */ e("div", { className: "mb-4 md:mr-6 md:mb-0 md:basis-42/100 lg:mr-10 lg:basis-39/100 xl:basis-36/100 [&_img]:h-auto [&_img]:w-full [&_img]:rounded-2xl xl:[&_img]:h-full xl:[&_img]:object-cover", children: l.image }) : null,
5
5
  /* @__PURE__ */ a("div", { className: "mt-4 flex basis-full flex-col items-center md:mt-0 md:basis-56/100 md:items-start lg:basis-59/100 xl:basis-60/100", children: [
6
- (e.title || e.message) && /* @__PURE__ */ a("div", { className: "flex flex-col gap-6 text-center md:text-left", children: [
7
- e.title && /* @__PURE__ */ l("h1", { className: "font-lora text-extra-large font-normal text-neutral-800", children: e.title }),
8
- e.message && /* @__PURE__ */ l("p", { className: "text-medium text-neutral-800", children: e.message })
9
- ] }),
10
- e.cta && /* @__PURE__ */ l("div", { className: "mt-8 flex w-full justify-center md:justify-start", children: /* @__PURE__ */ l(s, { disabled: !1, className: e.cta.className, children: /* @__PURE__ */ l("a", { href: typeof e.cta.href == "string" ? e.cta.href : "#", children: e.cta.children }) }) })
6
+ l.title != null ? /* @__PURE__ */ e("h1", { className: "font-lora text-extra-large font-normal text-neutral-800", children: l.title }) : null,
7
+ l.message != null ? /* @__PURE__ */ e("p", { className: "text-medium text-neutral-800", children: l.message }) : null,
8
+ l.cta != null ? /* @__PURE__ */ e(
9
+ m,
10
+ {
11
+ disabled: !1,
12
+ variant: "primary-darkgreen",
13
+ size: "large",
14
+ className: "mt-8 flex w-full justify-center md:justify-start",
15
+ children: l.cta
16
+ }
17
+ ) : null
11
18
  ] })
12
19
  ] }) });
13
20
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-contracts-ui",
3
- "version": "0.99.6",
3
+ "version": "0.99.7",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",