@npm_leadtech/legal-contracts-ui 0.183.0 → 0.183.1

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,50 +1,19 @@
1
1
  import "react";
2
- import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
+ import { jsx as e } from "react/jsx-runtime";
3
3
  //#region lib/components/icons/DoneCircleIcon.tsx
4
- var n = ({ fill: n = "var(--color-primary-900)", ...r }) => /* @__PURE__ */ t("svg", {
4
+ var t = ({ fill: t = "var(--color-primary-900)", ...n }) => /* @__PURE__ */ e("svg", {
5
5
  xmlns: "http://www.w3.org/2000/svg",
6
6
  width: "32",
7
7
  height: "32",
8
8
  fill: "none",
9
9
  viewBox: "0 0 32 32",
10
- ...r,
11
- children: [/* @__PURE__ */ e("mask", {
12
- id: "mask0_1024_3975",
13
- width: "28",
14
- height: "28",
15
- x: "2",
16
- y: "2",
17
- maskUnits: "userSpaceOnUse",
18
- style: { maskType: "luminance" },
19
- children: /* @__PURE__ */ e("path", {
20
- fill: "#fff",
21
- fillRule: "evenodd",
22
- d: "M16 2.667C8.64 2.667 2.667 8.64 2.667 16S8.64 29.333 16 29.333 29.333 23.36 29.333 16 23.36 2.667 16 2.667m0 24C10.12 26.667 5.333 21.88 5.333 16S10.12 5.333 16 5.333 26.667 10.12 26.667 16 21.88 26.667 16 26.667m-2.667-7.774 7.84-7.84c.52-.52 1.374-.52 1.894 0s.52 1.36 0 1.88L14.28 21.72c-.52.52-1.36.52-1.88 0l-3.453-3.453c-.52-.52-.52-1.36 0-1.88s1.36-.52 1.88 0z",
23
- clipRule: "evenodd"
24
- })
25
- }), /* @__PURE__ */ t("g", {
26
- mask: "url(#mask0_1024_3975)",
27
- children: [/* @__PURE__ */ e("path", {
28
- fill: n,
29
- fillRule: "evenodd",
30
- d: "M0 0h32v32H0z",
31
- clipRule: "evenodd"
32
- }), /* @__PURE__ */ e("mask", {
33
- id: "mask1_1024_3975",
34
- width: "32",
35
- height: "32",
36
- x: "0",
37
- y: "0",
38
- maskUnits: "userSpaceOnUse",
39
- style: { maskType: "luminance" },
40
- children: /* @__PURE__ */ e("path", {
41
- fill: "#fff",
42
- fillRule: "evenodd",
43
- d: "M0 0h32v32H0z",
44
- clipRule: "evenodd"
45
- })
46
- })]
47
- })]
10
+ ...n,
11
+ children: /* @__PURE__ */ e("path", {
12
+ fill: t,
13
+ fillRule: "evenodd",
14
+ clipRule: "evenodd",
15
+ d: "M16 2.667C8.64 2.667 2.667 8.64 2.667 16S8.64 29.333 16 29.333 29.333 23.36 29.333 16 23.36 2.667 16 2.667m0 24C10.12 26.667 5.333 21.88 5.333 16S10.12 5.333 16 5.333 26.667 10.12 26.667 16 21.88 26.667 16 26.667m-2.667-7.774 7.84-7.84c.52-.52 1.374-.52 1.894 0s.52 1.36 0 1.88L14.28 21.72c-.52.52-1.36.52-1.88 0l-3.453-3.453c-.52-.52-.52-1.36 0-1.88s1.36-.52 1.88 0z"
16
+ })
48
17
  });
49
18
  //#endregion
50
- export { n as DoneCircleIcon };
19
+ export { t as DoneCircleIcon };
@@ -11,6 +11,7 @@ var o = ({ isOpen: o, setIsOpen: s, title: c, closeLeadGateLabel: l, heading: u,
11
11
  setIsOpen: s,
12
12
  showClose: !1,
13
13
  overlayVariant: "grey",
14
+ isScrollable: !1,
14
15
  children: /* @__PURE__ */ a("div", {
15
16
  className: "shadow-small flex w-[338px] max-w-[calc(100vw-3rem)] flex-col rounded-sm bg-white p-6 sm:w-96",
16
17
  children: [/* @__PURE__ */ a("div", {
@@ -17,6 +17,7 @@ var c = (e) => {
17
17
  setIsOpen: u,
18
18
  showClose: !1,
19
19
  overlayVariant: "grey",
20
+ isScrollable: !1,
20
21
  children: /* @__PURE__ */ s("div", {
21
22
  className: "shadow-small flex w-[338px] max-w-[calc(100vw-3rem)] flex-col rounded-sm bg-white p-6 sm:w-96",
22
23
  children: [/* @__PURE__ */ s("div", {
@@ -14,6 +14,7 @@ var l = ({ isOpen: l, setIsOpen: u, title: d, closeLeadGateLabel: f, subtitle: p
14
14
  setIsOpen: u,
15
15
  showClose: !1,
16
16
  overlayVariant: "grey",
17
+ isScrollable: !1,
17
18
  children: /* @__PURE__ */ c("div", {
18
19
  className: "shadow-small flex w-[338px] max-w-[calc(100vw-3rem)] flex-col rounded-sm bg-white p-6 sm:w-96",
19
20
  children: [/* @__PURE__ */ c("div", {
@@ -1,7 +1,7 @@
1
1
  import { JSX } from 'react';
2
2
  import { ReactNode } from 'react';
3
3
 
4
- export declare const Modal: ({ trigger, children, isOpen, setIsOpen, showClose, onTrigger, overlayVariant }: ModalProps) => JSX.Element;
4
+ export declare const Modal: ({ trigger, children, isOpen, setIsOpen, showClose, onTrigger, overlayVariant, isScrollable }: ModalProps) => JSX.Element;
5
5
 
6
6
  export declare type ModalOverlayVariant = 'primary' | 'grey';
7
7
 
@@ -13,5 +13,6 @@ export interface ModalProps {
13
13
  showClose?: boolean;
14
14
  onTrigger?: () => void;
15
15
  overlayVariant?: ModalOverlayVariant;
16
+ isScrollable?: boolean;
16
17
  }
17
18
 
@@ -9,10 +9,10 @@ import { createPortal as o } from "react-dom";
9
9
  var s = {
10
10
  primary: "bg-primary-900/80",
11
11
  grey: "bg-backdrop-grey"
12
- }, c = ({ trigger: c, children: l, isOpen: u, setIsOpen: d, showClose: f, onTrigger: p, overlayVariant: m = "primary" }) => {
13
- let h = () => {
12
+ }, c = ({ trigger: c, children: l, isOpen: u, setIsOpen: d, showClose: f, onTrigger: p, overlayVariant: m = "primary", isScrollable: h = !0 }) => {
13
+ let g = () => {
14
14
  p?.(), d(!0);
15
- }, g = () => {
15
+ }, _ = () => {
16
16
  d(!1);
17
17
  };
18
18
  return t(() => {
@@ -24,28 +24,28 @@ var s = {
24
24
  }, [u]), /* @__PURE__ */ i(n, { children: [!!c && /* @__PURE__ */ r("button", {
25
25
  type: "button",
26
26
  "aria-label": "zoom",
27
- onClick: h,
27
+ onClick: g,
28
28
  className: "flex w-full cursor-pointer justify-center",
29
29
  children: c
30
30
  }), u && o(/* @__PURE__ */ i("div", {
31
31
  role: "dialog",
32
32
  "aria-modal": "true",
33
- className: a(s[m], "fixed inset-0 z-1001"),
33
+ className: a(s[m], "fixed inset-0 z-1001 flex items-center justify-center"),
34
34
  children: [/* @__PURE__ */ r("button", {
35
35
  type: "button",
36
36
  tabIndex: -1,
37
37
  "data-testid": "modal-backdrop",
38
38
  className: "absolute inset-0 z-0 cursor-default border-none bg-transparent p-0",
39
- onClick: g,
39
+ onClick: _,
40
40
  "aria-label": "Close modal"
41
41
  }), /* @__PURE__ */ r("div", {
42
- className: "pointer-events-none relative z-10 flex min-h-full w-full items-center justify-center overflow-y-auto p-6",
42
+ className: a("pointer-events-none relative z-10 flex w-full", h ? "max-h-screen items-start justify-center overflow-y-auto px-6 py-24" : "min-h-full items-center justify-center p-6"),
43
43
  children: /* @__PURE__ */ i("div", {
44
44
  className: "pointer-events-auto relative",
45
45
  children: [f && /* @__PURE__ */ r("button", {
46
46
  type: "button",
47
47
  className: "absolute top-4 right-4 z-10 cursor-pointer rounded-full p-2 transition-colors hover:bg-neutral-100 focus:outline-none",
48
- onClick: g,
48
+ onClick: _,
49
49
  "aria-label": "Close",
50
50
  children: /* @__PURE__ */ r(e, {})
51
51
  }), l]
@@ -947,7 +947,7 @@ export declare interface MobileMenuSection {
947
947
  content?: ReactNode | null;
948
948
  }
949
949
 
950
- export declare const Modal: ({ trigger, children, isOpen, setIsOpen, showClose, onTrigger, overlayVariant }: ModalProps) => JSX.Element;
950
+ export declare const Modal: ({ trigger, children, isOpen, setIsOpen, showClose, onTrigger, overlayVariant, isScrollable }: ModalProps) => JSX.Element;
951
951
 
952
952
  export declare type ModalOverlayVariant = 'primary' | 'grey';
953
953
 
@@ -959,6 +959,7 @@ export interface ModalProps {
959
959
  showClose?: boolean;
960
960
  onTrigger?: () => void;
961
961
  overlayVariant?: ModalOverlayVariant;
962
+ isScrollable?: boolean;
962
963
  }
963
964
 
964
965
  export declare const MoreTemplatesSection: FC<PopularDocumentsProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-contracts-ui",
3
- "version": "0.183.0",
3
+ "version": "0.183.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",