@npm_leadtech/legal-contracts-ui 0.38.6 → 0.38.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,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Modal as o } from "./Modal.js";
|
|
3
3
|
import { ZoomIcon as t } from "./ZoomIcon.js";
|
|
4
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 }),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { JSX } from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
|
|
4
|
+
export declare const Modal: ({ trigger, children }: ModalProps) => JSX.Element;
|
|
5
|
+
|
|
4
6
|
export interface ModalProps {
|
|
5
7
|
trigger: ReactNode;
|
|
6
8
|
children: ReactNode;
|
|
7
9
|
}
|
|
8
|
-
|
|
9
|
-
export declare const ModalWrapper: ({ trigger, children }: ModalProps) => JSX.Element;
|
|
10
10
|
|
package/dist/components/Modal.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as l, Fragment as a, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import { useState as c } from "react";
|
|
4
|
-
const f = ({ trigger:
|
|
5
|
-
const [t, n] = c(!1),
|
|
4
|
+
const f = ({ trigger: r, children: o }) => {
|
|
5
|
+
const [t, n] = c(!1), s = () => {
|
|
6
6
|
n(!t);
|
|
7
7
|
};
|
|
8
8
|
return /* @__PURE__ */ l(a, { children: [
|
|
9
|
-
/* @__PURE__ */ e("button", { onClick:
|
|
10
|
-
t && /* @__PURE__ */ e("button", { className: "bg-primary-900/80 fixed inset-0 z-50 flex items-center justify-center", onClick:
|
|
9
|
+
/* @__PURE__ */ e("button", { onClick: s, className: "cursor-pointer", children: r }),
|
|
10
|
+
t && /* @__PURE__ */ e("button", { className: "bg-primary-900/80 fixed inset-0 z-50 flex items-center justify-center", onClick: s, children: /* @__PURE__ */ e("div", { className: "relative flex max-h-screen w-full items-start justify-center overflow-y-auto px-6 py-24", children: /* @__PURE__ */ e(
|
|
11
11
|
"div",
|
|
12
12
|
{
|
|
13
13
|
onClick: (i) => {
|
|
@@ -19,5 +19,5 @@ const f = ({ trigger: s, children: o }) => {
|
|
|
19
19
|
] });
|
|
20
20
|
};
|
|
21
21
|
export {
|
|
22
|
-
f as
|
|
22
|
+
f as Modal
|
|
23
23
|
};
|
|
@@ -170,11 +170,13 @@ export declare const DocEditFillIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>
|
|
|
170
170
|
|
|
171
171
|
export declare const DocOutlineIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
172
172
|
|
|
173
|
-
export interface DocsModuleProps {
|
|
173
|
+
export declare interface DocsModuleProps {
|
|
174
174
|
pdfDownload: ButtonProps;
|
|
175
175
|
wordDownload: ButtonProps;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
+
export declare const DocsModules: FC<DocsModuleProps>;
|
|
179
|
+
|
|
178
180
|
export declare const DocumentCategories: FC<DocumentCategoriesProps>;
|
|
179
181
|
|
|
180
182
|
export declare interface DocumentCategoriesProps {
|