@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.
- package/dist/components/ContentItem.d.ts +2 -1
- package/dist/components/ContentItem.js +6 -6
- package/dist/components/ImageWithPreview.d.ts +2 -1
- package/dist/components/ImageWithPreview.js +5 -5
- package/dist/components/ProductTemplate.d.ts +2 -1
- package/dist/components/index.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { ImageWithPreview as
|
|
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:
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
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
|
|
4
|
-
const
|
|
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(
|
|
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
|
-
|
|
9
|
+
n as ImageWithPreview
|
|
10
10
|
};
|
|
@@ -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
|
-
|
|
367
|
+
small: ReactNode;
|
|
368
|
+
large: ReactNode;
|
|
368
369
|
}
|
|
369
370
|
|
|
370
371
|
export declare const InfoIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
|