@npm_leadtech/legal-contracts-ui 0.38.2 → 0.38.3

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.
@@ -12,7 +12,8 @@ export declare interface ContentItemProps {
12
12
  }
13
13
 
14
14
  export interface ImageWithPreviewProps {
15
- children: ReactNode;
15
+ small: ReactNode;
16
+ large: ReactNode;
16
17
  }
17
18
 
18
19
  export interface LinkedProductProps {
@@ -1,12 +1,12 @@
1
- import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
- import { ImageWithPreview as l } from "./ImageWithPreview.js";
1
+ import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
+ import { ImageWithPreview as a } from "./ImageWithPreview.js";
3
3
  import { LinkedProducts as i } from "./LinkedProducts.js";
4
4
  import { Markdown as n } from "./Markdown.js";
5
- const d = ({ id: r, title: t, content: o, linkedProducts: m, sampleImage: s }) => /* @__PURE__ */ a("div", { id: r, className: "flex flex-col gap-6 text-neutral-800", children: [
5
+ const d = ({ id: r, title: t, content: m, linkedProducts: o, sampleImage: l }) => /* @__PURE__ */ s("div", { id: r, className: "flex flex-col gap-6 text-neutral-800", children: [
6
6
  t && /* @__PURE__ */ e("h2", { className: "text-super-large font-bold", children: t }),
7
- o && /* @__PURE__ */ e(n, { content: o, className: "text-medium" }),
8
- m.length > 0 && /* @__PURE__ */ e(i, { linkedProducts: m }),
9
- s && /* @__PURE__ */ e(l, { ...s })
7
+ m && /* @__PURE__ */ e(n, { content: m, className: "text-medium [&_p:last-child]:mb-0" }),
8
+ o.length > 0 && /* @__PURE__ */ e(i, { linkedProducts: o }),
9
+ l && /* @__PURE__ */ e(a, { ...l })
10
10
  ] }, r);
11
11
  export {
12
12
  d as ContentItem
@@ -4,6 +4,7 @@ import { ReactNode } from 'react';
4
4
  export declare const ImageWithPreview: FC<ImageWithPreviewProps>;
5
5
 
6
6
  export declare interface ImageWithPreviewProps {
7
- children: ReactNode;
7
+ small: ReactNode;
8
+ large: ReactNode;
8
9
  }
9
10
 
@@ -1,10 +1,10 @@
1
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
2
  import { ModalWrapper as o } from "./Modal.js";
3
- import { ZoomIcon as l } from "./ZoomIcon.js";
4
- const c = ({ children: r }) => /* @__PURE__ */ i("div", { className: "relative aspect-3/4 w-75 self-center overflow-hidden border border-neutral-200", children: [
3
+ import { ZoomIcon as t } from "./ZoomIcon.js";
4
+ const n = ({ small: r, large: i }) => /* @__PURE__ */ l("div", { className: "relative aspect-3/4 w-75 self-center overflow-hidden border border-neutral-200", children: [
5
5
  /* @__PURE__ */ e("div", { className: "h-full w-full [&_img]:h-full [&_img]:w-full [&_img]:object-cover", children: r }),
6
- /* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e(o, { trigger: /* @__PURE__ */ e(l, { className: "bg-primary-700 size-8 rounded p-2 opacity-80 hover:opacity-100" }), children: r }) })
6
+ /* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e(o, { trigger: /* @__PURE__ */ e(t, { className: "bg-primary-700 size-8 rounded p-2 opacity-80 hover:opacity-100" }), children: i }) })
7
7
  ] });
8
8
  export {
9
- c as ImageWithPreview
9
+ n as ImageWithPreview
10
10
  };
@@ -51,7 +51,8 @@ export interface FaqSectionProps {
51
51
  export type IconPosition = 'left' | 'right' | 'top';
52
52
 
53
53
  export interface ImageWithPreviewProps {
54
- children: ReactNode;
54
+ small: ReactNode;
55
+ large: ReactNode;
55
56
  }
56
57
 
57
58
  export interface JumbotronProps {
@@ -364,7 +364,8 @@ export declare type IconPosition = 'left' | 'right' | 'top';
364
364
  export declare const ImageWithPreview: FC<ImageWithPreviewProps>;
365
365
 
366
366
  export declare interface ImageWithPreviewProps {
367
- children: ReactNode;
367
+ small: ReactNode;
368
+ large: ReactNode;
368
369
  }
369
370
 
370
371
  export declare const InfoIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-contracts-ui",
3
- "version": "0.38.2",
3
+ "version": "0.38.3",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",