@npm_leadtech/legal-contracts-ui 0.189.0 → 0.190.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.
@@ -130,6 +130,20 @@ export interface ToastProps {
130
130
  onClose: () => void;
131
131
  }
132
132
 
133
+ export interface UploadZoneError {
134
+ kind: UploadZoneErrorKind;
135
+ }
136
+
137
+ export interface UploadZoneErrorCopy {
138
+ tooLarge: string;
139
+ unsupportedFormat: string;
140
+ generic: string;
141
+ retryLabel: string;
142
+ chooseFileLabel: string;
143
+ }
144
+
145
+ export type UploadZoneErrorKind = 'too-large' | 'unsupported-format' | 'generic';
146
+
133
147
  export interface UploadZoneProps {
134
148
  uploadPromptText?: string;
135
149
  addDocumentLabel: string;
@@ -144,5 +158,11 @@ export interface UploadZoneProps {
144
158
  onAddDocument?: () => void;
145
159
  onDropDocument?: (e: React.DragEvent<HTMLDivElement>) => void;
146
160
  dataQa?: string;
161
+ /** Inline error state: replaces the prompt block and keeps the zone droppable. */
162
+ error?: UploadZoneError | null;
163
+ /** Per-locale copy for the inline error state; missing entries fall back to English. */
164
+ errorCopy?: Partial<UploadZoneErrorCopy>;
165
+ /** Recovery action for the inline error CTA (retry or open the picker). */
166
+ onErrorAction?: () => void;
147
167
  }
148
168
 
@@ -10,6 +10,20 @@ export declare interface ConversionSectionProps {
10
10
  dataQa?: string;
11
11
  }
12
12
 
13
+ export interface UploadZoneError {
14
+ kind: UploadZoneErrorKind;
15
+ }
16
+
17
+ export interface UploadZoneErrorCopy {
18
+ tooLarge: string;
19
+ unsupportedFormat: string;
20
+ generic: string;
21
+ retryLabel: string;
22
+ chooseFileLabel: string;
23
+ }
24
+
25
+ export type UploadZoneErrorKind = 'too-large' | 'unsupported-format' | 'generic';
26
+
13
27
  export interface UploadZoneProps {
14
28
  uploadPromptText?: string;
15
29
  addDocumentLabel: string;
@@ -24,5 +38,11 @@ export interface UploadZoneProps {
24
38
  onAddDocument?: () => void;
25
39
  onDropDocument?: (e: React.DragEvent<HTMLDivElement>) => void;
26
40
  dataQa?: string;
41
+ /** Inline error state: replaces the prompt block and keeps the zone droppable. */
42
+ error?: UploadZoneError | null;
43
+ /** Per-locale copy for the inline error state; missing entries fall back to English. */
44
+ errorCopy?: Partial<UploadZoneErrorCopy>;
45
+ /** Recovery action for the inline error CTA (retry or open the picker). */
46
+ onErrorAction?: () => void;
27
47
  }
28
48
 
@@ -122,6 +122,20 @@ export interface ToastProps {
122
122
  onClose: () => void;
123
123
  }
124
124
 
125
+ export interface UploadZoneError {
126
+ kind: UploadZoneErrorKind;
127
+ }
128
+
129
+ export interface UploadZoneErrorCopy {
130
+ tooLarge: string;
131
+ unsupportedFormat: string;
132
+ generic: string;
133
+ retryLabel: string;
134
+ chooseFileLabel: string;
135
+ }
136
+
137
+ export type UploadZoneErrorKind = 'too-large' | 'unsupported-format' | 'generic';
138
+
125
139
  export interface UploadZoneProps {
126
140
  uploadPromptText?: string;
127
141
  addDocumentLabel: string;
@@ -136,5 +150,11 @@ export interface UploadZoneProps {
136
150
  onAddDocument?: () => void;
137
151
  onDropDocument?: (e: React.DragEvent<HTMLDivElement>) => void;
138
152
  dataQa?: string;
153
+ /** Inline error state: replaces the prompt block and keeps the zone droppable. */
154
+ error?: UploadZoneError | null;
155
+ /** Per-locale copy for the inline error state; missing entries fall back to English. */
156
+ errorCopy?: Partial<UploadZoneErrorCopy>;
157
+ /** Recovery action for the inline error CTA (retry or open the picker). */
158
+ onErrorAction?: () => void;
139
159
  }
140
160
 
@@ -19,6 +19,20 @@ export declare interface Hero2SectionProps {
19
19
  uploadZone: UploadZoneProps;
20
20
  }
21
21
 
22
+ export interface UploadZoneError {
23
+ kind: UploadZoneErrorKind;
24
+ }
25
+
26
+ export interface UploadZoneErrorCopy {
27
+ tooLarge: string;
28
+ unsupportedFormat: string;
29
+ generic: string;
30
+ retryLabel: string;
31
+ chooseFileLabel: string;
32
+ }
33
+
34
+ export type UploadZoneErrorKind = 'too-large' | 'unsupported-format' | 'generic';
35
+
22
36
  export interface UploadZoneProps {
23
37
  uploadPromptText?: string;
24
38
  addDocumentLabel: string;
@@ -33,5 +47,11 @@ export interface UploadZoneProps {
33
47
  onAddDocument?: () => void;
34
48
  onDropDocument?: (e: React.DragEvent<HTMLDivElement>) => void;
35
49
  dataQa?: string;
50
+ /** Inline error state: replaces the prompt block and keeps the zone droppable. */
51
+ error?: UploadZoneError | null;
52
+ /** Per-locale copy for the inline error state; missing entries fall back to English. */
53
+ errorCopy?: Partial<UploadZoneErrorCopy>;
54
+ /** Recovery action for the inline error CTA (retry or open the picker). */
55
+ onErrorAction?: () => void;
36
56
  }
37
57
 
@@ -20,6 +20,20 @@ export declare interface PdfToolsHeroProps {
20
20
  bgRight?: ReactNode | null;
21
21
  }
22
22
 
23
+ export interface UploadZoneError {
24
+ kind: UploadZoneErrorKind;
25
+ }
26
+
27
+ export interface UploadZoneErrorCopy {
28
+ tooLarge: string;
29
+ unsupportedFormat: string;
30
+ generic: string;
31
+ retryLabel: string;
32
+ chooseFileLabel: string;
33
+ }
34
+
35
+ export type UploadZoneErrorKind = 'too-large' | 'unsupported-format' | 'generic';
36
+
23
37
  export interface UploadZoneProps {
24
38
  uploadPromptText?: string;
25
39
  addDocumentLabel: string;
@@ -34,5 +48,11 @@ export interface UploadZoneProps {
34
48
  onAddDocument?: () => void;
35
49
  onDropDocument?: (e: React.DragEvent<HTMLDivElement>) => void;
36
50
  dataQa?: string;
51
+ /** Inline error state: replaces the prompt block and keeps the zone droppable. */
52
+ error?: UploadZoneError | null;
53
+ /** Per-locale copy for the inline error state; missing entries fall back to English. */
54
+ errorCopy?: Partial<UploadZoneErrorCopy>;
55
+ /** Recovery action for the inline error CTA (retry or open the picker). */
56
+ onErrorAction?: () => void;
37
57
  }
38
58
 
@@ -108,6 +108,20 @@ export interface ToastProps {
108
108
  onClose: () => void;
109
109
  }
110
110
 
111
+ export interface UploadZoneError {
112
+ kind: UploadZoneErrorKind;
113
+ }
114
+
115
+ export interface UploadZoneErrorCopy {
116
+ tooLarge: string;
117
+ unsupportedFormat: string;
118
+ generic: string;
119
+ retryLabel: string;
120
+ chooseFileLabel: string;
121
+ }
122
+
123
+ export type UploadZoneErrorKind = 'too-large' | 'unsupported-format' | 'generic';
124
+
111
125
  export interface UploadZoneProps {
112
126
  uploadPromptText?: string;
113
127
  addDocumentLabel: string;
@@ -122,5 +136,11 @@ export interface UploadZoneProps {
122
136
  onAddDocument?: () => void;
123
137
  onDropDocument?: (e: React.DragEvent<HTMLDivElement>) => void;
124
138
  dataQa?: string;
139
+ /** Inline error state: replaces the prompt block and keeps the zone droppable. */
140
+ error?: UploadZoneError | null;
141
+ /** Per-locale copy for the inline error state; missing entries fall back to English. */
142
+ errorCopy?: Partial<UploadZoneErrorCopy>;
143
+ /** Recovery action for the inline error CTA (retry or open the picker). */
144
+ onErrorAction?: () => void;
125
145
  }
126
146
 
@@ -0,0 +1,9 @@
1
+ import { FC } from 'react';
2
+
3
+ export declare const TrustpilotStaticBox: FC<TrustpilotStaticBoxProps>;
4
+
5
+ export declare interface TrustpilotStaticBoxProps {
6
+ score: string;
7
+ label: string;
8
+ }
9
+
@@ -0,0 +1,21 @@
1
+ import { TrustpilotWordmarkIcon as e } from "./TrustpilotWordmarkIcon.js";
2
+ import "react";
3
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
+ //#region lib/components/molecules/TrustpilotStaticBox.tsx
5
+ var r = ({ score: r, label: i }) => /* @__PURE__ */ n("div", {
6
+ className: "pointer-events-none flex h-full w-full items-center justify-center gap-2",
7
+ "aria-label": `Trustpilot ${i} ${r} out of 5`,
8
+ "data-qa": "trustpilot_static_box",
9
+ children: [/* @__PURE__ */ n("p", {
10
+ className: "text-small shrink-0 whitespace-nowrap text-neutral-800",
11
+ children: [/* @__PURE__ */ t("span", {
12
+ className: "font-bold",
13
+ children: `${i} ${r} `
14
+ }), /* @__PURE__ */ t("span", {
15
+ className: "font-normal",
16
+ children: "out of 5"
17
+ })]
18
+ }), /* @__PURE__ */ t(e, { className: "block h-5 w-20 shrink-0" })]
19
+ });
20
+ //#endregion
21
+ export { r as TrustpilotStaticBox };
@@ -0,0 +1,4 @@
1
+ import * as React_2 from 'react';
2
+
3
+ export declare const TrustpilotWordmarkIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
4
+
@@ -0,0 +1,30 @@
1
+ import "react";
2
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
3
+ //#region lib/components/icons/TrustpilotWordmarkIcon.tsx
4
+ var n = (n) => /* @__PURE__ */ e("svg", {
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ width: "80",
7
+ height: "20",
8
+ fill: "none",
9
+ viewBox: "0 0 80 20",
10
+ "aria-hidden": !0,
11
+ ...n,
12
+ children: /* @__PURE__ */ t("g", { children: [
13
+ /* @__PURE__ */ e("path", {
14
+ fillRule: "evenodd",
15
+ clipRule: "evenodd",
16
+ d: "M20.0135 7.14285H28.2459V8.67056H25.0045V17.2825H23.2278V8.67056H20L20.0135 7.14285ZM27.8929 9.94141H29.4119V11.361H29.4391C29.4933 11.1582 29.5882 10.9689 29.7239 10.7796C29.8595 10.5903 30.0222 10.4146 30.2257 10.2659C30.4155 10.1036 30.6325 9.98196 30.8767 9.88733C31.1072 9.79269 31.3513 9.73861 31.5955 9.73861C31.7143 9.73861 31.8119 9.74391 31.8849 9.74787C31.9286 9.75024 31.9634 9.75213 31.9888 9.75213C32.0566 9.76565 32.138 9.77917 32.2058 9.77917V11.3339C32.0973 11.3069 31.9753 11.2934 31.8533 11.2799L31.8533 11.2799L31.8532 11.2799L31.8532 11.2799L31.8532 11.2799L31.8532 11.2799L31.8532 11.2799L31.8532 11.2799L31.8532 11.2799L31.8532 11.2798L31.8532 11.2798L31.8532 11.2798L31.8532 11.2798L31.8199 11.2761L31.8199 11.2761C31.7111 11.264 31.6114 11.2528 31.5005 11.2528C31.2293 11.2528 30.9716 11.3069 30.7275 11.415C30.4834 11.5232 30.2799 11.6854 30.09 11.8882C29.9137 12.1045 29.7646 12.3614 29.6561 12.6724C29.5476 12.9833 29.4933 13.3483 29.4933 13.7539V17.242H27.8658L27.8929 9.94141ZM38.0653 17.2826H39.6657H39.6792V9.94142H38.0517V14.2001C38.0517 14.484 38.0246 14.7544 37.9568 14.9977C37.889 15.2411 37.7941 15.4574 37.6449 15.6332C37.5092 15.8089 37.3194 15.9441 37.0888 16.0523C36.8583 16.1604 36.5734 16.2145 36.2344 16.2145C35.7868 16.2145 35.4342 16.0793 35.1901 15.8089C34.9324 15.5521 34.8103 15.0924 34.8103 14.4434V9.94142H33.1828V14.6057C33.1828 15.5656 33.3998 16.2956 33.8338 16.7688C34.2678 17.2555 34.9731 17.4854 35.936 17.4854C36.3429 17.4854 36.7498 17.3772 37.1431 17.1474C37.5364 16.9175 37.8347 16.6336 38.0382 16.2551H38.0653V17.2826ZM42.432 14.9301C42.4862 15.4032 42.6625 15.7277 42.9745 15.9305C43.2864 16.1198 43.6661 16.2144 44.1001 16.2144C44.2493 16.2144 44.4256 16.2009 44.6155 16.1739C44.8054 16.1468 44.9953 16.1063 45.158 16.0387C45.3343 15.9711 45.4699 15.8764 45.5784 15.7412C45.6869 15.606 45.7412 15.4438 45.7276 15.241C45.7141 15.0382 45.6463 14.8625 45.4971 14.7273C45.3479 14.5921 45.1716 14.4974 44.9546 14.4028C44.7376 14.3217 44.4799 14.2541 44.1951 14.2C43.9634 14.156 43.7317 14.1031 43.4927 14.0485L43.4927 14.0484L43.3271 14.0107C43.0287 13.9431 42.7303 13.862 42.4455 13.7674C42.1607 13.6727 41.9166 13.5511 41.686 13.3753C41.469 13.2131 41.2792 13.0103 41.1571 12.7534C41.0215 12.4965 40.9537 12.1991 40.9537 11.8205C40.9537 11.415 41.0486 11.0905 41.252 10.8201C41.4419 10.5497 41.6996 10.3334 41.998 10.1712C42.2963 10.0089 42.6354 9.88724 43.0016 9.81965C43.3678 9.75205 43.7204 9.72501 44.0459 9.72501C44.4256 9.72501 44.7918 9.76557 45.1309 9.84669C45.4699 9.9278 45.7954 10.0495 46.0667 10.2388C46.3515 10.4145 46.5821 10.6579 46.7584 10.9418C46.9482 11.2257 47.0567 11.5772 47.111 11.9828H45.4157C45.3343 11.5907 45.158 11.3338 44.8868 11.1986C44.6019 11.0634 44.29 10.9959 43.9238 10.9959C43.8153 10.9959 43.6661 11.0094 43.517 11.0229C43.3542 11.0499 43.2186 11.077 43.0694 11.131C42.9338 11.1851 42.8117 11.2662 42.7168 11.3609C42.6218 11.4555 42.5676 11.5907 42.5676 11.7529C42.5676 11.9557 42.6354 12.1045 42.771 12.2261C42.9067 12.3478 43.083 12.4424 43.3135 12.5371C43.5305 12.6182 43.7882 12.6858 44.073 12.7399C44.3578 12.794 44.6562 12.8615 44.9545 12.9291L44.9546 12.9292C45.2529 12.9968 45.5378 13.0779 45.8226 13.1725C46.1074 13.2671 46.3651 13.3888 46.5821 13.5646C46.7991 13.7268 46.9889 13.9296 47.1246 14.173C47.2602 14.4163 47.328 14.7273 47.328 15.0788C47.328 15.5114 47.233 15.8764 47.0296 16.1874C46.8262 16.4848 46.5685 16.7417 46.2566 16.931C45.9446 17.1202 45.5784 17.2554 45.1987 17.3501C44.8054 17.4312 44.4256 17.4853 44.0459 17.4853C43.5848 17.4853 43.1508 17.4312 42.7575 17.323C42.3642 17.2149 42.0115 17.0526 41.7267 16.8498C41.4419 16.6335 41.2114 16.3766 41.0486 16.0522C40.8859 15.7412 40.7909 15.3627 40.7774 14.9165H42.4184V14.9301H42.432ZM49.0232 9.94149H47.7891V11.1447H49.0232V15.471C49.0368 15.7684 49.0639 16.0523 49.1182 16.2822C49.1724 16.512 49.2674 16.7013 49.4166 16.8635C49.5657 17.0122 49.7692 17.1339 50.0269 17.215C50.2845 17.2961 50.6236 17.3367 51.0576 17.3367C51.2475 17.3367 51.4102 17.3367 51.5865 17.3097C51.7628 17.2961 51.9392 17.2826 52.1155 17.2556V15.9983C52.0177 16.0226 51.909 16.036 51.809 16.0483L51.7764 16.0523C51.6679 16.0659 51.5458 16.0659 51.4374 16.0659C51.2475 16.0659 51.1119 16.0388 51.0034 15.9983C50.9084 15.9577 50.827 15.8901 50.7728 15.809C50.7321 15.7279 50.6914 15.6197 50.6779 15.498C50.6643 15.3628 50.6507 15.2277 50.6507 15.0519V11.1312H52.1155V9.92797H50.6507V7.72428H49.0232V9.94149ZM53.2686 9.94141H54.7876V10.9419H54.8147C55.0453 10.5092 55.3572 10.2118 55.7641 10.0225C56.1709 9.83325 56.6049 9.73861 57.0932 9.73861C57.6764 9.73861 58.1782 9.83325 58.6122 10.0496C59.0462 10.2524 59.3988 10.5227 59.6836 10.8878C59.9684 11.2393 60.1854 11.6584 60.321 12.1316C60.4566 12.6048 60.538 13.1185 60.538 13.6458C60.538 14.146 60.4702 14.6192 60.3481 15.0788C60.2125 15.5385 60.0226 15.9576 59.765 16.3091C59.5073 16.6606 59.1818 16.9446 58.7749 17.1609C58.368 17.3772 57.9069 17.4853 57.3644 17.4853C57.1339 17.4853 56.8897 17.4583 56.6592 17.4177C56.4286 17.3772 56.1981 17.3096 55.9811 17.2149C55.7641 17.1203 55.5606 16.9986 55.3843 16.8499C55.1944 16.7012 55.0453 16.5254 54.9232 16.3362H54.8961V20H53.2686V9.94141ZM58.8018 12.6591C58.8967 12.97 58.9374 13.2945 58.9374 13.619C58.9374 13.9435 58.8967 14.2544 58.8289 14.5789C58.7611 14.8898 58.639 15.1602 58.4763 15.4036C58.3 15.6334 58.0965 15.8362 57.8388 15.9849C57.5812 16.1336 57.2828 16.2147 56.903 16.2147C56.564 16.2147 56.2792 16.1471 56.0215 16.0119C55.7638 15.8768 55.5468 15.701 55.3705 15.4712C55.1806 15.2413 55.0585 14.9709 54.9636 14.66C54.8687 14.349 54.828 14.0111 54.828 13.6325C54.828 12.8484 55.0043 12.2129 55.3434 11.7398C55.696 11.2666 56.2114 11.0367 56.8895 11.0367C57.215 11.0367 57.5133 11.1043 57.771 11.2531C58.0151 11.4018 58.2321 11.591 58.4085 11.8344C58.5848 12.0777 58.7204 12.3481 58.8018 12.6591ZM61.7992 7.14288H63.4267V8.67059H61.7992V7.14288ZM63.4267 9.94142H61.7992V17.2826H63.4267V9.94142ZM64.8782 7.14288H66.5057V17.2826H64.8782V7.14288ZM69.896 17.1879C70.3571 17.3907 70.886 17.4853 71.4692 17.4853C72.066 17.4853 72.5813 17.3772 73.0425 17.1879C73.5036 16.9986 73.8969 16.7282 74.2088 16.3902C74.5208 16.0387 74.7513 15.6332 74.9276 15.16C75.1039 14.6868 75.1853 14.173 75.1853 13.6052C75.1853 13.0509 75.0904 12.5372 74.9276 12.064C74.7649 11.5908 74.5208 11.1717 74.2088 10.8337C73.8833 10.4957 73.5036 10.2253 73.0425 10.036C72.5813 9.83325 72.0524 9.73861 71.4692 9.73861C70.886 9.73861 70.3571 9.84677 69.896 10.036C69.4349 10.2253 69.0416 10.4957 68.7296 10.8337C68.4177 11.1852 68.1736 11.5908 68.0108 12.064C67.8345 12.5372 67.7531 13.0509 67.7531 13.6052C67.7531 14.1595 67.8481 14.6868 68.0108 15.16C68.1736 15.6332 68.4177 16.0523 68.7296 16.3902C69.0551 16.7282 69.4349 16.9851 69.896 17.1879ZM71.4695 16.2012C71.8221 16.2012 72.1476 16.1201 72.4053 15.9714C72.6765 15.8227 72.8799 15.6199 73.0563 15.3765C73.2326 15.1332 73.3546 14.8493 73.436 14.5518C73.5174 14.2409 73.5581 13.9299 73.5581 13.6055C73.5581 13.2945 73.5174 12.9836 73.436 12.6726C73.3546 12.3617 73.2326 12.0913 73.0563 11.8479C72.8799 11.6046 72.6629 11.4153 72.4053 11.2666C72.134 11.1179 71.8221 11.0367 71.4695 11.0367C71.1168 11.0367 70.7913 11.1179 70.5337 11.2666C70.2624 11.4153 70.059 11.6181 69.8827 11.8479C69.7063 12.0913 69.5843 12.3617 69.5029 12.6726C69.4215 12.9836 69.3808 13.2945 69.3808 13.6055C69.3808 13.9299 69.4215 14.2409 69.5029 14.5518C69.5843 14.8628 69.7063 15.1332 69.8827 15.3765C70.059 15.6199 70.276 15.8227 70.5337 15.9714C70.8049 16.1336 71.1168 16.2012 71.4695 16.2012ZM76.9079 9.94149H75.6737V11.1447H76.9079V15.471C76.9215 15.7684 76.9486 16.0523 77.0029 16.2822C77.0571 16.512 77.152 16.7013 77.3012 16.8635C77.4504 17.0122 77.6538 17.1339 77.9115 17.215C78.1692 17.2961 78.5083 17.3367 78.9423 17.3367C79.1321 17.3367 79.2949 17.3367 79.4712 17.3097C79.6475 17.2961 79.8238 17.2826 80.0001 17.2556V15.9983C79.9024 16.0226 79.7936 16.036 79.6937 16.0483C79.6827 16.0497 79.6718 16.051 79.6611 16.0523C79.5526 16.0659 79.4305 16.0659 79.322 16.0659C79.1321 16.0659 78.9965 16.0388 78.888 15.9983C78.7931 15.9577 78.7117 15.8901 78.6575 15.809C78.6168 15.7279 78.5761 15.6197 78.5625 15.498C78.549 15.3628 78.5354 15.2277 78.5354 15.0519V11.1312H80.0001V9.92797H78.5354V7.72428H76.9079V9.94149Z",
17
+ fill: "#1E2021"
18
+ }),
19
+ /* @__PURE__ */ e("path", {
20
+ d: "M18.5714 7.09683H11.4763L9.29217 0L7.09513 7.09683L0 7.08324L5.73814 11.4746L3.5411 18.5714L9.27924 14.1801L15.0174 18.5714L12.8333 11.4746L18.5714 7.09683Z",
21
+ fill: "#00B67A"
22
+ }),
23
+ /* @__PURE__ */ e("path", {
24
+ d: "M13.3093 13.0247L12.8333 11.4814L9.26164 14.1854L13.3093 13.0247Z",
25
+ fill: "#005128"
26
+ })
27
+ ] })
28
+ });
29
+ //#endregion
30
+ export { n as TrustpilotWordmarkIcon };
@@ -9,6 +9,20 @@ export declare type Hero2Highlight = {
9
9
 
10
10
  export declare const UploadZone: FC<UploadZoneProps>;
11
11
 
12
+ export declare interface UploadZoneError {
13
+ kind: UploadZoneErrorKind;
14
+ }
15
+
16
+ export declare interface UploadZoneErrorCopy {
17
+ tooLarge: string;
18
+ unsupportedFormat: string;
19
+ generic: string;
20
+ retryLabel: string;
21
+ chooseFileLabel: string;
22
+ }
23
+
24
+ export declare type UploadZoneErrorKind = 'too-large' | 'unsupported-format' | 'generic';
25
+
12
26
  export declare interface UploadZoneProps {
13
27
  uploadPromptText?: string;
14
28
  addDocumentLabel: string;
@@ -23,5 +37,11 @@ export declare interface UploadZoneProps {
23
37
  onAddDocument?: () => void;
24
38
  onDropDocument?: (e: React.DragEvent<HTMLDivElement>) => void;
25
39
  dataQa?: string;
40
+ /** Inline error state: replaces the prompt block and keeps the zone droppable. */
41
+ error?: UploadZoneError | null;
42
+ /** Per-locale copy for the inline error state; missing entries fall back to English. */
43
+ errorCopy?: Partial<UploadZoneErrorCopy>;
44
+ /** Recovery action for the inline error CTA (retry or open the picker). */
45
+ onErrorAction?: () => void;
26
46
  }
27
47
 
@@ -1,16 +1,72 @@
1
1
  "use client";
2
2
  "use client";
3
3
  import { AddIcon as e } from "./AddIcon.js";
4
- import { SecurityIcon as t } from "./SecurityIcon.js";
5
- import { UploadDocIcon as n } from "./UploadDocIcon.js";
6
- import { Button as r } from "./Button.js";
7
- import { Markdown as i } from "./Markdown.js";
8
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
9
- import s from "clsx";
4
+ import { InfoIcon as t } from "./InfoIcon.js";
5
+ import { SecurityIcon as n } from "./SecurityIcon.js";
6
+ import { UploadDocIcon as r } from "./UploadDocIcon.js";
7
+ import { Button as i } from "./Button.js";
8
+ import { Markdown as a } from "./Markdown.js";
9
+ import { useEffect as o, useRef as s } from "react";
10
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
11
+ import u from "clsx";
10
12
  //#region lib/components/molecules/UploadZone.tsx
11
- var c = ({ uploadPromptText: c, addDocumentLabel: l, fileSizeText: u, disclaimer: d, title: f, description: p, trustLine: m, uploadIcon: h, variant: g = "default", containerClassName: _ = "", onAddDocument: v, onDropDocument: y, dataQa: b }) => {
12
- let x = g === "pdf-tools";
13
- return /* @__PURE__ */ o("div", {
13
+ var d = {
14
+ tooLarge: "File’s too large.",
15
+ unsupportedFormat: "Upload failed.",
16
+ generic: "Something went wrong. Please retry.",
17
+ retryLabel: "Try Again",
18
+ chooseFileLabel: "Choose Another File"
19
+ };
20
+ function f(e, t) {
21
+ return e === "too-large" ? t.tooLarge : e === "unsupported-format" ? t.unsupportedFormat : t.generic;
22
+ }
23
+ function p(e, t) {
24
+ return e === "generic" ? t.retryLabel : t.chooseFileLabel;
25
+ }
26
+ var m = ({ uploadPromptText: m, addDocumentLabel: h, fileSizeText: g, disclaimer: _, title: v, description: y, trustLine: b, uploadIcon: x, variant: S = "default", containerClassName: C = "", onAddDocument: w, onDropDocument: T, dataQa: E, error: D, errorCopy: O, onErrorAction: k }) => {
27
+ let A = S === "pdf-tools", j = s(null), M = s(void 0), N = D?.kind ?? null, P = {
28
+ ...d,
29
+ ...O
30
+ };
31
+ o(() => {
32
+ let e = M.current;
33
+ e !== void 0 && N !== null && N !== e && j.current?.focus(), M.current = N;
34
+ }, [N]);
35
+ let F = N ? /* @__PURE__ */ l("div", {
36
+ role: "alert",
37
+ "aria-live": "assertive",
38
+ "data-qa": E ? `${E}_error` : "upload-document-error",
39
+ className: "flex flex-col items-center gap-3",
40
+ children: [
41
+ /* @__PURE__ */ c(t, {
42
+ "aria-hidden": "true",
43
+ className: "h-6 w-6",
44
+ fill: "var(--color-error-500)"
45
+ }),
46
+ /* @__PURE__ */ c("p", {
47
+ className: "text-small md:text-medium text-neutral-600",
48
+ children: f(N, P)
49
+ }),
50
+ /* @__PURE__ */ c(i, {
51
+ ref: j,
52
+ dataQa: E ? `${E}_error_action` : void 0,
53
+ variant: "primary-green",
54
+ className: "w-fit",
55
+ onClick: () => {
56
+ if (k) {
57
+ k();
58
+ return;
59
+ }
60
+ w?.();
61
+ },
62
+ children: /* @__PURE__ */ c("span", {
63
+ className: "text-medium font-bold",
64
+ children: p(N, P)
65
+ })
66
+ })
67
+ ]
68
+ }) : null;
69
+ return /* @__PURE__ */ l("div", {
14
70
  role: "presentation",
15
71
  "data-qa": "upload-document-dragover",
16
72
  onDragOver: (e) => {
@@ -20,87 +76,92 @@ var c = ({ uploadPromptText: c, addDocumentLabel: l, fileSizeText: u, disclaimer
20
76
  e.preventDefault();
21
77
  },
22
78
  onDrop: (e) => {
23
- e.preventDefault(), y?.(e);
79
+ e.preventDefault(), T?.(e);
24
80
  },
25
- className: s("rounded-3xl", x ? "w-full bg-white p-5 shadow-[0px_10px_30px_0px_rgba(2,55,74,0.06)]" : "group bg-neutral-200/50 p-4 backdrop-blur-xs md:max-w-80 lg:max-w-120 xl:max-w-140", _),
26
- children: [x && /* @__PURE__ */ o("div", {
81
+ className: u("rounded-3xl", A ? "w-full bg-white p-5 shadow-[0px_10px_30px_0px_rgba(2,55,74,0.06)]" : "group bg-neutral-200/50 p-4 backdrop-blur-xs md:max-w-80 lg:max-w-120 xl:max-w-140", C),
82
+ children: [A && /* @__PURE__ */ l("div", {
27
83
  className: "border-primary-300 flex flex-col items-center gap-4 rounded-2xl border-[1.5px] border-dashed px-4 py-8 text-center md:px-6 lg:px-8 lg:py-10",
28
84
  children: [
29
- /* @__PURE__ */ a("div", {
85
+ /* @__PURE__ */ c("div", {
30
86
  className: "bg-primary-50 text-primary-800 flex h-13.5 w-13.5 items-center justify-center rounded-2xl",
31
- children: h ?? /* @__PURE__ */ a(n, { className: "h-6 w-6" })
87
+ children: x ?? /* @__PURE__ */ c(r, { className: "h-6 w-6" })
32
88
  }),
33
- (f || c || p) && /* @__PURE__ */ o("div", {
89
+ F,
90
+ !F && (v || m || y) && /* @__PURE__ */ l("div", {
34
91
  className: "flex flex-col gap-1.5",
35
92
  children: [
36
- f && /* @__PURE__ */ a("p", {
93
+ v && /* @__PURE__ */ c("p", {
37
94
  className: "text-big md:text-large font-bold text-neutral-800",
38
- children: f
95
+ children: v
39
96
  }),
40
- c && /* @__PURE__ */ a("p", {
97
+ m && /* @__PURE__ */ c("p", {
41
98
  className: "text-small text-neutral-600",
42
- children: c
99
+ children: m
43
100
  }),
44
- p && /* @__PURE__ */ a("p", {
101
+ y && /* @__PURE__ */ c("p", {
45
102
  className: "text-small md:text-medium text-neutral-600",
46
- children: p
103
+ children: y
47
104
  })
48
105
  ]
49
106
  }),
50
- /* @__PURE__ */ a(r, {
51
- dataQa: b,
107
+ !F && /* @__PURE__ */ c(i, {
108
+ dataQa: E,
52
109
  variant: "primary-green",
53
110
  className: "w-fit",
54
- onClick: v,
55
- children: /* @__PURE__ */ a("span", {
111
+ onClick: w,
112
+ children: /* @__PURE__ */ c("span", {
56
113
  className: "text-medium font-bold",
57
- children: l
114
+ children: h
58
115
  })
59
116
  }),
60
- u && /* @__PURE__ */ a("p", {
117
+ g && /* @__PURE__ */ c("p", {
61
118
  className: "text-extra-small md:text-small text-neutral-600",
62
- children: u
119
+ children: g
63
120
  }),
64
- m && /* @__PURE__ */ o("div", {
121
+ b && /* @__PURE__ */ l("div", {
65
122
  className: "flex items-start justify-center gap-1 text-left md:items-center",
66
- children: [/* @__PURE__ */ a(t, {
123
+ children: [/* @__PURE__ */ c(n, {
67
124
  className: "h-4 w-4 shrink-0",
68
125
  fill: "var(--color-neutral-600)"
69
- }), /* @__PURE__ */ a("p", {
126
+ }), /* @__PURE__ */ c("p", {
70
127
  className: "text-extra-small md:text-small text-neutral-600",
71
- children: m
128
+ children: b
72
129
  })]
73
130
  })
74
131
  ]
75
- }), !x && /* @__PURE__ */ o("div", {
132
+ }), !A && /* @__PURE__ */ l("div", {
76
133
  className: "bg-neutral-25 flex flex-col gap-14 rounded-2xl px-6 pt-14 pb-2 text-center",
77
- children: [/* @__PURE__ */ o("div", {
134
+ children: [/* @__PURE__ */ l("div", {
78
135
  className: "flex flex-col items-center gap-10",
79
- children: [c && /* @__PURE__ */ a("p", {
80
- className: "text-medium text-neutral-400 transition-all duration-500 group-hover:text-neutral-900",
81
- children: c
82
- }), /* @__PURE__ */ o(r, {
83
- dataQa: b,
84
- variant: "primary-green",
85
- className: "w-fit",
86
- onClick: v,
87
- children: [/* @__PURE__ */ a(e, {}), /* @__PURE__ */ a("span", {
88
- className: "text-medium font-bold",
89
- children: l
90
- })]
91
- })]
92
- }), /* @__PURE__ */ o("div", {
136
+ children: [
137
+ F,
138
+ !F && m && /* @__PURE__ */ c("p", {
139
+ className: "text-medium text-neutral-400 transition-all duration-500 group-hover:text-neutral-900",
140
+ children: m
141
+ }),
142
+ !F && /* @__PURE__ */ l(i, {
143
+ dataQa: E,
144
+ variant: "primary-green",
145
+ className: "w-fit",
146
+ onClick: w,
147
+ children: [/* @__PURE__ */ c(e, {}), /* @__PURE__ */ c("span", {
148
+ className: "text-medium font-bold",
149
+ children: h
150
+ })]
151
+ })
152
+ ]
153
+ }), /* @__PURE__ */ l("div", {
93
154
  className: "flex flex-col gap-2",
94
- children: [u && /* @__PURE__ */ a("p", {
155
+ children: [g && /* @__PURE__ */ c("p", {
95
156
  className: "text-extra-small text-neutral-400",
96
- children: u
97
- }), d && /* @__PURE__ */ a(i, {
157
+ children: g
158
+ }), _ && /* @__PURE__ */ c(a, {
98
159
  className: "text-tiny text-neutral-400 [&_a]:text-neutral-400",
99
- content: d
160
+ content: _
100
161
  })]
101
162
  })]
102
163
  })]
103
164
  });
104
165
  };
105
166
  //#endregion
106
- export { c as UploadZone };
167
+ export { m as UploadZone };
@@ -1411,6 +1411,15 @@ export declare interface TrustPilotSectionProps {
1411
1411
  title: string;
1412
1412
  }
1413
1413
 
1414
+ export declare const TrustpilotStaticBox: FC<TrustpilotStaticBoxProps>;
1415
+
1416
+ export declare interface TrustpilotStaticBoxProps {
1417
+ score: string;
1418
+ label: string;
1419
+ }
1420
+
1421
+ export declare const TrustpilotWordmarkIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
1422
+
1414
1423
  export declare const TrustSection: FC<TrustSectionProps>;
1415
1424
 
1416
1425
  export declare interface TrustSectionProps {
@@ -1445,6 +1454,20 @@ export declare interface UnsubscribeSectionProps {
1445
1454
 
1446
1455
  export declare const UploadDocIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
1447
1456
 
1457
+ export interface UploadZoneError {
1458
+ kind: UploadZoneErrorKind;
1459
+ }
1460
+
1461
+ export interface UploadZoneErrorCopy {
1462
+ tooLarge: string;
1463
+ unsupportedFormat: string;
1464
+ generic: string;
1465
+ retryLabel: string;
1466
+ chooseFileLabel: string;
1467
+ }
1468
+
1469
+ export type UploadZoneErrorKind = 'too-large' | 'unsupported-format' | 'generic';
1470
+
1448
1471
  export interface UploadZoneProps {
1449
1472
  uploadPromptText?: string;
1450
1473
  addDocumentLabel: string;
@@ -1459,6 +1482,12 @@ export interface UploadZoneProps {
1459
1482
  onAddDocument?: () => void;
1460
1483
  onDropDocument?: (e: React.DragEvent<HTMLDivElement>) => void;
1461
1484
  dataQa?: string;
1485
+ /** Inline error state: replaces the prompt block and keeps the zone droppable. */
1486
+ error?: UploadZoneError | null;
1487
+ /** Per-locale copy for the inline error state; missing entries fall back to English. */
1488
+ errorCopy?: Partial<UploadZoneErrorCopy>;
1489
+ /** Recovery action for the inline error CTA (retry or open the picker). */
1490
+ onErrorAction?: () => void;
1462
1491
  }
1463
1492
 
1464
1493
  export declare const UsFlagIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
package/dist/index.js CHANGED
@@ -53,106 +53,108 @@ import { CheckIcon as X } from "./components/CheckIcon.js";
53
53
  import { SecurityIcon as Z } from "./components/SecurityIcon.js";
54
54
  import { UploadDocIcon as Q } from "./components/UploadDocIcon.js";
55
55
  import { LockIcon as $ } from "./components/LockIcon.js";
56
- import { Breadcrumb as ee } from "./components/Breadcrumb.js";
57
- import { getButtonClasses as te } from "./components/Button.utils.js";
58
- import { Button as ne } from "./components/Button.js";
59
- import { HighlightedText as re } from "./components/HighlightedText.js";
60
- import { Item as ie } from "./components/Item.js";
61
- import { NavMenuItem as ae } from "./components/NavMenuItem.js";
62
- import { Markdown as oe } from "./components/Markdown.js";
63
- import { Input as se } from "./components/Input.js";
64
- import { Select as ce } from "./components/Select.js";
65
- import { Textarea as le } from "./components/Textarea.js";
66
- import { Checkbox as ue } from "./components/Checkbox.js";
67
- import { LinkWrapper as de } from "./components/LinkWrapper.js";
68
- import { Modal as fe } from "./components/Modal.js";
69
- import { Toast as pe } from "./components/Toast.js";
70
- import { PhoneButton as me } from "./components/PhoneButton.js";
71
- import { ImageWithPreview as he } from "./components/ImageWithPreview.js";
72
- import { LinkedProducts as ge } from "./components/LinkedProducts.js";
73
- import { ContentItem as _e } from "./components/ContentItem.js";
74
- import { CookiesBar as ve } from "./components/CookiesBar.js";
75
- import { FaqItemWrapper as ye } from "./components/FaqItemWrapper.js";
76
- import { FaqItem as be } from "./components/FaqItem.js";
77
- import { FooterNav as xe } from "./components/FooterNav.js";
78
- import { HeroImageShell as Se } from "./components/HeroImageShell.js";
79
- import { LanguageSelector as Ce } from "./components/LanguageSelector.js";
80
- import { LawGeniusImageShell as we } from "./components/LawGeniusImageShell.js";
81
- import { LawGeniusStepCard as Te } from "./components/LawGeniusStepCard.js";
82
- import { NavMenu as Ee } from "./components/NavMenu.js";
83
- import { PricingPlanCard as De } from "./components/PricingPlanCard.js";
84
- import { PreformOption as Oe } from "./components/PreformOption.js";
85
- import { PreviewDownload as ke } from "./components/PreviewDownload.js";
86
- import { ResourcesImageShell as Ae } from "./components/ResourcesImageShell.js";
87
- import { SearchBar as je } from "./components/SearchBar.js";
88
- import { SectionHeading as Me } from "./components/SectionHeading.js";
89
- import { StepImageShell as Ne } from "./components/StepImageShell.js";
90
- import { TableOfContentsWrapper as Pe } from "./components/TableOfContentsWrapper.js";
91
- import { TableOfContents as Fe } from "./components/TableOfContents.js";
92
- import { TrustedBadge as Ie } from "./components/TrustedBadge.js";
93
- import { TwoColumnSection as Le } from "./components/TwoColumnSection.js";
94
- import { DocumentItem as Re } from "./components/DocumentItem.js";
95
- import { ContactMethodCard as ze } from "./components/ContactMethodCard.js";
96
- import { AlternativeSubtypeDocument as Be } from "./components/AlternativeSubtypeDocument.js";
97
- import { DefaultSubtypeDocument as Ve } from "./components/DefaultSubtypeDocument.js";
98
- import { DocumentReviewUploadCard as He } from "./components/DocumentReviewUploadCard.js";
99
- import { Tooltips as Ue } from "./components/Tooltips.js";
100
- import { FreeDocumentModal as We } from "./components/FreeDocumentModal.js";
101
- import { Article as Ge } from "./components/Article.js";
102
- import { ContinueEditingBanner as Ke } from "./components/ContinueEditingBanner.js";
103
- import { LeadGateErrorModal as qe } from "./components/LeadGateErrorModal.js";
104
- import { LeadGateModal as Je } from "./components/LeadGateModal.js";
105
- import { LeadGateSuccessFeatureItem as Ye } from "./components/LeadGateSuccessFeatureItem.js";
106
- import { LeadGateSuccessModal as Xe } from "./components/LeadGateSuccessModal.js";
107
- import { BlogSection as Ze } from "./components/BlogSection.js";
108
- import { AsideNavMenu as Qe } from "./components/AsideNavMenu.js";
109
- import { BenefitsBar as $e } from "./components/BenefitsBar.js";
110
- import { CategoriesSection as et } from "./components/CategoriesSection.js";
111
- import { ContactBanner as tt } from "./components/ContactBanner.js";
112
- import { FaqSection as nt } from "./components/FaqSection.js";
113
- import { FaqTeaserSection as rt } from "./components/FaqTeaserSection.js";
114
- import { Footer as it } from "./components/Footer.js";
115
- import { MobileMenu as at } from "./components/MobileMenu.js";
116
- import { Header as ot } from "./components/Header.js";
117
- import { HeroSection as st } from "./components/HeroSection.js";
118
- import { Hero2Section as ct } from "./components/Hero2Section.js";
119
- import { HowItWorksSection as lt } from "./components/HowItWorksSection.js";
120
- import { Jumbotron as ut } from "./components/Jumbotron.js";
121
- import { Jumbotron2 as dt } from "./components/Jumbotron2.js";
122
- import { Jumbotron3 as ft } from "./components/Jumbotron3.js";
123
- import { MoreTemplatesSection as pt } from "./components/MoreTemplatesSection.js";
124
- import { PricingOfferingsSection as mt } from "./components/PricingOfferingsSection.js";
125
- import { PricingPlansSection as ht } from "./components/PricingPlansSection.js";
126
- import { PricingSupportTeaserSection as gt } from "./components/PricingSupportTeaserSection.js";
127
- import { Preform as _t } from "./components/Preform.js";
128
- import { PreviewSection as vt } from "./components/PreviewSection.js";
129
- import { ProcessSection as yt } from "./components/ProcessSection.js";
130
- import { ProductInfo as bt } from "./components/ProductInfo.js";
131
- import { RatafiaSection as xt } from "./components/RatafiaSection.js";
132
- import { TrustSection as St } from "./components/TrustSection.js";
133
- import { TryNowSection as Ct } from "./components/TryNowSection.js";
134
- import { IntroSection as wt } from "./components/IntroSection.js";
135
- import { MissionSection as Tt } from "./components/MissionSection.js";
136
- import { ValuesSection as Et } from "./components/ValuesSection.js";
137
- import { Storyline as Dt } from "./components/Storyline.js";
138
- import { WeHelpSection as Ot } from "./components/WeHelpSection.js";
139
- import { GuidelinesSection as kt } from "./components/GuidelinesSection.js";
140
- import { ExpertsSection as At } from "./components/ExpertsSection.js";
141
- import { FastAndSimpleSection as jt } from "./components/FastAndSimpleSection.js";
142
- import { FeaturesSection as Mt } from "./components/FeaturesSection.js";
143
- import { BannerTagSection as Nt } from "./components/BannerTagSection.js";
144
- import { PartnersSection as Pt } from "./components/PartnersSection.js";
145
- import { CtaFeatureTag as Ft, CtaSample as It, CtaSection as Lt } from "./components/CtaSection.js";
146
- import { ContactUsSection as Rt } from "./components/ContactUsSection.js";
147
- import { UnsubscribeSection as zt } from "./components/UnsubscribeSection.js";
148
- import { JumboCard as Bt } from "./components/JumboCard.js";
149
- import { DocumentCategories as Vt } from "./components/DocumentCategories.js";
150
- import { DocumentSection as Ht } from "./components/DocumentSection.js";
151
- import { ContactFormSection as Ut } from "./components/ContactFormSection.js";
152
- import { ContactMethodsSection as Wt } from "./components/ContactMethodsSection.js";
153
- import { JumboDocs as Gt } from "./components/JumboDocs.js";
154
- import { TrustPilotSection as Kt } from "./components/TrustPilotSection.js";
155
- import { PdfToolsHero as qt } from "./components/PdfToolsHero.js";
156
- import { PdfToolsBenefitsSection as Jt } from "./components/PdfToolsBenefitsSection.js";
157
- import { ExploreToolsSection as Yt } from "./components/ExploreToolsSection.js";
158
- export { i as AddIcon, Be as AlternativeSubtypeDocument, Ge as Article, Qe as AsideNavMenu, e as Badge, Nt as BannerTagSection, $e as BenefitsBar, Ze as BlogSection, ee as Breadcrumb, y as BusinessIcon, ne as Button, B as CaFlagIcon, et as CategoriesSection, X as CheckIcon, ue as Checkbox, c as ChevronDownIcon, l as ChevronRightIcon, J as ClearIcon, N as CloseIcon, D as CommunicationIcon, tt as ContactBanner, Ut as ContactFormSection, ze as ContactMethodCard, Wt as ContactMethodsSection, Rt as ContactUsSection, _e as ContentItem, Ke as ContinueEditingBanner, ve as CookiesBar, Ft as CtaFeatureTag, It as CtaSample, Lt as CtaSection, H as DeFlagIcon, Ve as DefaultSubtypeDocument, O as DocEditFillIcon, I as DocOutlineIcon, Vt as DocumentCategories, Re as DocumentItem, He as DocumentReviewUploadCard, Ht as DocumentSection, T as DoneCircleIcon, q as DoneIcon, x as EmploymentIcon, _ as EstatePlanningIcon, At as ExpertsSection, Yt as ExploreToolsSection, t as FacebookIcon, b as FamilyIcon, be as FaqItem, ye as FaqItemWrapper, nt as FaqSection, rt as FaqTeaserSection, jt as FastAndSimpleSection, Mt as FeaturesSection, L as FillFormsIcon, h as FinanceIcon, it as Footer, xe as FooterNav, We as FreeDocumentModal, V as GbFlagIcon, kt as GuidelinesSection, M as HamburgerIcon, ot as Header, E as HelpGuideIcon, ct as Hero2Section, Se as HeroImageShell, st as HeroSection, re as HighlightedText, F as HistoryIcon, lt as HowItWorksSection, he as ImageWithPreview, u as InfoIcon, se as Input, s as InstagramIcon, wt as IntroSection, ie as Item, Bt as JumboCard, Gt as JumboDocs, ut as Jumbotron, dt as Jumbotron2, ft as Jumbotron3, Ce as LanguageSelector, we as LawGeniusImageShell, Te as LawGeniusStepCard, qe as LeadGateErrorModal, Je as LeadGateModal, Ye as LeadGateSuccessFeatureItem, Xe as LeadGateSuccessModal, de as LinkWrapper, ge as LinkedProducts, o as LinkedinIcon, P as LocationIcon, $ as LockIcon, j as MailFillIcon, oe as Markdown, Tt as MissionSection, at as MobileMenu, fe as Modal, pt as MoreTemplatesSection, Ee as NavMenu, ae as NavMenuItem, Pt as PartnersSection, Jt as PdfToolsBenefitsSection, qt as PdfToolsHero, v as PersonalIcon, me as PhoneButton, r as PhoneIcon, k as PhoneTalkIcon, A as PlusIcon, _t as Preform, Oe as PreformOption, ke as PreviewDownload, vt as PreviewSection, mt as PricingOfferingsSection, De as PricingPlanCard, ht as PricingPlansSection, gt as PricingSupportTeaserSection, R as PrintIcon, C as PrivateIcon, yt as ProcessSection, bt as ProductInfo, G as QuestionIcon, Y as QuestionOutlineIcon, xt as RatafiaSection, g as RealStateIcon, Ae as ResourcesImageShell, m as SaveIcon, U as ScalatorIcon, je as SearchBar, d as SearchIcon, Me as SectionHeading, Z as SecurityIcon, ce as Select, K as SinglePhoneIcon, W as SparkIcon, S as StarsIcon, Ne as StepImageShell, Dt as Storyline, Fe as TableOfContents, Pe as TableOfContentsWrapper, le as Textarea, n as TikTokIcon, z as TimeIcon, pe as Toast, Ue as Tooltips, Kt as TrustPilotSection, St as TrustSection, Ie as TrustedBadge, p as TrustedIcon, Ct as TryNowSection, Le as TwoColumnSection, zt as UnsubscribeSection, Q as UploadDocIcon, f as UsFlagIcon, Et as ValuesSection, w as VerifiedIcon, Ot as WeHelpSection, a as ZoomIcon, te as getButtonClasses };
56
+ import { TrustpilotWordmarkIcon as ee } from "./components/TrustpilotWordmarkIcon.js";
57
+ import { Breadcrumb as te } from "./components/Breadcrumb.js";
58
+ import { getButtonClasses as ne } from "./components/Button.utils.js";
59
+ import { Button as re } from "./components/Button.js";
60
+ import { HighlightedText as ie } from "./components/HighlightedText.js";
61
+ import { Item as ae } from "./components/Item.js";
62
+ import { NavMenuItem as oe } from "./components/NavMenuItem.js";
63
+ import { Markdown as se } from "./components/Markdown.js";
64
+ import { Input as ce } from "./components/Input.js";
65
+ import { Select as le } from "./components/Select.js";
66
+ import { Textarea as ue } from "./components/Textarea.js";
67
+ import { Checkbox as de } from "./components/Checkbox.js";
68
+ import { LinkWrapper as fe } from "./components/LinkWrapper.js";
69
+ import { Modal as pe } from "./components/Modal.js";
70
+ import { Toast as me } from "./components/Toast.js";
71
+ import { PhoneButton as he } from "./components/PhoneButton.js";
72
+ import { ImageWithPreview as ge } from "./components/ImageWithPreview.js";
73
+ import { LinkedProducts as _e } from "./components/LinkedProducts.js";
74
+ import { ContentItem as ve } from "./components/ContentItem.js";
75
+ import { CookiesBar as ye } from "./components/CookiesBar.js";
76
+ import { FaqItemWrapper as be } from "./components/FaqItemWrapper.js";
77
+ import { FaqItem as xe } from "./components/FaqItem.js";
78
+ import { FooterNav as Se } from "./components/FooterNav.js";
79
+ import { HeroImageShell as Ce } from "./components/HeroImageShell.js";
80
+ import { LanguageSelector as we } from "./components/LanguageSelector.js";
81
+ import { LawGeniusImageShell as Te } from "./components/LawGeniusImageShell.js";
82
+ import { LawGeniusStepCard as Ee } from "./components/LawGeniusStepCard.js";
83
+ import { NavMenu as De } from "./components/NavMenu.js";
84
+ import { PricingPlanCard as Oe } from "./components/PricingPlanCard.js";
85
+ import { PreformOption as ke } from "./components/PreformOption.js";
86
+ import { PreviewDownload as Ae } from "./components/PreviewDownload.js";
87
+ import { ResourcesImageShell as je } from "./components/ResourcesImageShell.js";
88
+ import { SearchBar as Me } from "./components/SearchBar.js";
89
+ import { SectionHeading as Ne } from "./components/SectionHeading.js";
90
+ import { StepImageShell as Pe } from "./components/StepImageShell.js";
91
+ import { TableOfContentsWrapper as Fe } from "./components/TableOfContentsWrapper.js";
92
+ import { TableOfContents as Ie } from "./components/TableOfContents.js";
93
+ import { TrustedBadge as Le } from "./components/TrustedBadge.js";
94
+ import { TwoColumnSection as Re } from "./components/TwoColumnSection.js";
95
+ import { DocumentItem as ze } from "./components/DocumentItem.js";
96
+ import { ContactMethodCard as Be } from "./components/ContactMethodCard.js";
97
+ import { AlternativeSubtypeDocument as Ve } from "./components/AlternativeSubtypeDocument.js";
98
+ import { DefaultSubtypeDocument as He } from "./components/DefaultSubtypeDocument.js";
99
+ import { DocumentReviewUploadCard as Ue } from "./components/DocumentReviewUploadCard.js";
100
+ import { Tooltips as We } from "./components/Tooltips.js";
101
+ import { FreeDocumentModal as Ge } from "./components/FreeDocumentModal.js";
102
+ import { Article as Ke } from "./components/Article.js";
103
+ import { ContinueEditingBanner as qe } from "./components/ContinueEditingBanner.js";
104
+ import { LeadGateErrorModal as Je } from "./components/LeadGateErrorModal.js";
105
+ import { LeadGateModal as Ye } from "./components/LeadGateModal.js";
106
+ import { LeadGateSuccessFeatureItem as Xe } from "./components/LeadGateSuccessFeatureItem.js";
107
+ import { LeadGateSuccessModal as Ze } from "./components/LeadGateSuccessModal.js";
108
+ import { TrustpilotStaticBox as Qe } from "./components/TrustpilotStaticBox.js";
109
+ import { BlogSection as $e } from "./components/BlogSection.js";
110
+ import { AsideNavMenu as et } from "./components/AsideNavMenu.js";
111
+ import { BenefitsBar as tt } from "./components/BenefitsBar.js";
112
+ import { CategoriesSection as nt } from "./components/CategoriesSection.js";
113
+ import { ContactBanner as rt } from "./components/ContactBanner.js";
114
+ import { FaqSection as it } from "./components/FaqSection.js";
115
+ import { FaqTeaserSection as at } from "./components/FaqTeaserSection.js";
116
+ import { Footer as ot } from "./components/Footer.js";
117
+ import { MobileMenu as st } from "./components/MobileMenu.js";
118
+ import { Header as ct } from "./components/Header.js";
119
+ import { HeroSection as lt } from "./components/HeroSection.js";
120
+ import { Hero2Section as ut } from "./components/Hero2Section.js";
121
+ import { HowItWorksSection as dt } from "./components/HowItWorksSection.js";
122
+ import { Jumbotron as ft } from "./components/Jumbotron.js";
123
+ import { Jumbotron2 as pt } from "./components/Jumbotron2.js";
124
+ import { Jumbotron3 as mt } from "./components/Jumbotron3.js";
125
+ import { MoreTemplatesSection as ht } from "./components/MoreTemplatesSection.js";
126
+ import { PricingOfferingsSection as gt } from "./components/PricingOfferingsSection.js";
127
+ import { PricingPlansSection as _t } from "./components/PricingPlansSection.js";
128
+ import { PricingSupportTeaserSection as vt } from "./components/PricingSupportTeaserSection.js";
129
+ import { Preform as yt } from "./components/Preform.js";
130
+ import { PreviewSection as bt } from "./components/PreviewSection.js";
131
+ import { ProcessSection as xt } from "./components/ProcessSection.js";
132
+ import { ProductInfo as St } from "./components/ProductInfo.js";
133
+ import { RatafiaSection as Ct } from "./components/RatafiaSection.js";
134
+ import { TrustSection as wt } from "./components/TrustSection.js";
135
+ import { TryNowSection as Tt } from "./components/TryNowSection.js";
136
+ import { IntroSection as Et } from "./components/IntroSection.js";
137
+ import { MissionSection as Dt } from "./components/MissionSection.js";
138
+ import { ValuesSection as Ot } from "./components/ValuesSection.js";
139
+ import { Storyline as kt } from "./components/Storyline.js";
140
+ import { WeHelpSection as At } from "./components/WeHelpSection.js";
141
+ import { GuidelinesSection as jt } from "./components/GuidelinesSection.js";
142
+ import { ExpertsSection as Mt } from "./components/ExpertsSection.js";
143
+ import { FastAndSimpleSection as Nt } from "./components/FastAndSimpleSection.js";
144
+ import { FeaturesSection as Pt } from "./components/FeaturesSection.js";
145
+ import { BannerTagSection as Ft } from "./components/BannerTagSection.js";
146
+ import { PartnersSection as It } from "./components/PartnersSection.js";
147
+ import { CtaFeatureTag as Lt, CtaSample as Rt, CtaSection as zt } from "./components/CtaSection.js";
148
+ import { ContactUsSection as Bt } from "./components/ContactUsSection.js";
149
+ import { UnsubscribeSection as Vt } from "./components/UnsubscribeSection.js";
150
+ import { JumboCard as Ht } from "./components/JumboCard.js";
151
+ import { DocumentCategories as Ut } from "./components/DocumentCategories.js";
152
+ import { DocumentSection as Wt } from "./components/DocumentSection.js";
153
+ import { ContactFormSection as Gt } from "./components/ContactFormSection.js";
154
+ import { ContactMethodsSection as Kt } from "./components/ContactMethodsSection.js";
155
+ import { JumboDocs as qt } from "./components/JumboDocs.js";
156
+ import { TrustPilotSection as Jt } from "./components/TrustPilotSection.js";
157
+ import { PdfToolsHero as Yt } from "./components/PdfToolsHero.js";
158
+ import { PdfToolsBenefitsSection as Xt } from "./components/PdfToolsBenefitsSection.js";
159
+ import { ExploreToolsSection as Zt } from "./components/ExploreToolsSection.js";
160
+ export { i as AddIcon, Ve as AlternativeSubtypeDocument, Ke as Article, et as AsideNavMenu, e as Badge, Ft as BannerTagSection, tt as BenefitsBar, $e as BlogSection, te as Breadcrumb, y as BusinessIcon, re as Button, B as CaFlagIcon, nt as CategoriesSection, X as CheckIcon, de as Checkbox, c as ChevronDownIcon, l as ChevronRightIcon, J as ClearIcon, N as CloseIcon, D as CommunicationIcon, rt as ContactBanner, Gt as ContactFormSection, Be as ContactMethodCard, Kt as ContactMethodsSection, Bt as ContactUsSection, ve as ContentItem, qe as ContinueEditingBanner, ye as CookiesBar, Lt as CtaFeatureTag, Rt as CtaSample, zt as CtaSection, H as DeFlagIcon, He as DefaultSubtypeDocument, O as DocEditFillIcon, I as DocOutlineIcon, Ut as DocumentCategories, ze as DocumentItem, Ue as DocumentReviewUploadCard, Wt as DocumentSection, T as DoneCircleIcon, q as DoneIcon, x as EmploymentIcon, _ as EstatePlanningIcon, Mt as ExpertsSection, Zt as ExploreToolsSection, t as FacebookIcon, b as FamilyIcon, xe as FaqItem, be as FaqItemWrapper, it as FaqSection, at as FaqTeaserSection, Nt as FastAndSimpleSection, Pt as FeaturesSection, L as FillFormsIcon, h as FinanceIcon, ot as Footer, Se as FooterNav, Ge as FreeDocumentModal, V as GbFlagIcon, jt as GuidelinesSection, M as HamburgerIcon, ct as Header, E as HelpGuideIcon, ut as Hero2Section, Ce as HeroImageShell, lt as HeroSection, ie as HighlightedText, F as HistoryIcon, dt as HowItWorksSection, ge as ImageWithPreview, u as InfoIcon, ce as Input, s as InstagramIcon, Et as IntroSection, ae as Item, Ht as JumboCard, qt as JumboDocs, ft as Jumbotron, pt as Jumbotron2, mt as Jumbotron3, we as LanguageSelector, Te as LawGeniusImageShell, Ee as LawGeniusStepCard, Je as LeadGateErrorModal, Ye as LeadGateModal, Xe as LeadGateSuccessFeatureItem, Ze as LeadGateSuccessModal, fe as LinkWrapper, _e as LinkedProducts, o as LinkedinIcon, P as LocationIcon, $ as LockIcon, j as MailFillIcon, se as Markdown, Dt as MissionSection, st as MobileMenu, pe as Modal, ht as MoreTemplatesSection, De as NavMenu, oe as NavMenuItem, It as PartnersSection, Xt as PdfToolsBenefitsSection, Yt as PdfToolsHero, v as PersonalIcon, he as PhoneButton, r as PhoneIcon, k as PhoneTalkIcon, A as PlusIcon, yt as Preform, ke as PreformOption, Ae as PreviewDownload, bt as PreviewSection, gt as PricingOfferingsSection, Oe as PricingPlanCard, _t as PricingPlansSection, vt as PricingSupportTeaserSection, R as PrintIcon, C as PrivateIcon, xt as ProcessSection, St as ProductInfo, G as QuestionIcon, Y as QuestionOutlineIcon, Ct as RatafiaSection, g as RealStateIcon, je as ResourcesImageShell, m as SaveIcon, U as ScalatorIcon, Me as SearchBar, d as SearchIcon, Ne as SectionHeading, Z as SecurityIcon, le as Select, K as SinglePhoneIcon, W as SparkIcon, S as StarsIcon, Pe as StepImageShell, kt as Storyline, Ie as TableOfContents, Fe as TableOfContentsWrapper, ue as Textarea, n as TikTokIcon, z as TimeIcon, me as Toast, We as Tooltips, Jt as TrustPilotSection, wt as TrustSection, Le as TrustedBadge, p as TrustedIcon, Qe as TrustpilotStaticBox, ee as TrustpilotWordmarkIcon, Tt as TryNowSection, Re as TwoColumnSection, Vt as UnsubscribeSection, Q as UploadDocIcon, f as UsFlagIcon, Ot as ValuesSection, w as VerifiedIcon, At as WeHelpSection, a as ZoomIcon, ne as getButtonClasses };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-contracts-ui",
3
- "version": "0.189.0",
3
+ "version": "0.190.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -270,6 +270,10 @@
270
270
  "import": "./dist/components/TrustedIcon.js",
271
271
  "types": "./dist/components/TrustedIcon.d.ts"
272
272
  },
273
+ "./components/TrustpilotWordmarkIcon": {
274
+ "import": "./dist/components/TrustpilotWordmarkIcon.js",
275
+ "types": "./dist/components/TrustpilotWordmarkIcon.d.ts"
276
+ },
273
277
  "./components/UploadDocIcon": {
274
278
  "import": "./dist/components/UploadDocIcon.js",
275
279
  "types": "./dist/components/UploadDocIcon.d.ts"
@@ -430,6 +434,10 @@
430
434
  "import": "./dist/components/TrustedBadge.js",
431
435
  "types": "./dist/components/TrustedBadge.d.ts"
432
436
  },
437
+ "./components/TrustpilotStaticBox": {
438
+ "import": "./dist/components/TrustpilotStaticBox.js",
439
+ "types": "./dist/components/TrustpilotStaticBox.d.ts"
440
+ },
433
441
  "./components/TwoColumnSection": {
434
442
  "import": "./dist/components/TwoColumnSection.js",
435
443
  "types": "./dist/components/TwoColumnSection.d.ts"
@@ -741,6 +749,29 @@
741
749
  "bugs": {
742
750
  "url": "https://bitbucket.org/grupoblidoo/legal-contracts-ui/issues"
743
751
  },
752
+ "scripts": {
753
+ "dev": "vite",
754
+ "build": "tsc --project tsconfig.build.json && vite build && cp lib/globals-core.css dist/globals.css",
755
+ "sonar:scan": "bash scripts/sonar.sh",
756
+ "sonar": "pnpm test && pnpm sonar:scan",
757
+ "chromatic": "npx chromatic --project-token=chpt_be90ce8462f803c",
758
+ "yalc-push": "pnpm build && yalc push",
759
+ "format": "prettier --write .",
760
+ "prettier": "prettier --check .",
761
+ "eslint": "eslint . --quiet",
762
+ "test": "vitest run --coverage --project unit",
763
+ "test:storybook": "vitest run --project storybook --reporter=default",
764
+ "test:all": "pnpm test && pnpm test:storybook",
765
+ "test:watch": "vitest --coverage --project unit",
766
+ "storybook": "storybook dev -p 6006",
767
+ "build-storybook": "storybook build",
768
+ "reinstall-force": "rm -Rf node_modules && pnpm install",
769
+ "prepare-upgrade": "pnpm reinstall-force && pnpm build && pnpm chromatic && git add . && git commit -m \"$MSG\" --allow-empty && npm config set tag-version-prefix ''",
770
+ "upgrade-patch": "pnpm prepare-upgrade && npm version patch -m \"Update patch version number\" && git push && git push --tags",
771
+ "upgrade-minor": "pnpm prepare-upgrade && npm version minor -m \"Update minor version number\" && git push && git push --tags",
772
+ "upgrade-major": "pnpm prepare-upgrade && npm version major -m \"Update major version number\" && git push && git push --tags",
773
+ "prepare": "husky"
774
+ },
744
775
  "dependencies": {
745
776
  "clsx": "^2.1.1",
746
777
  "react-markdown": "^10.1.0",
@@ -818,26 +849,5 @@
818
849
  "prettier --write --ignore-unknown"
819
850
  ]
820
851
  },
821
- "scripts": {
822
- "dev": "vite",
823
- "build": "tsc --project tsconfig.build.json && vite build && cp lib/globals-core.css dist/globals.css",
824
- "sonar:scan": "bash scripts/sonar.sh",
825
- "sonar": "pnpm test && pnpm sonar:scan",
826
- "chromatic": "npx chromatic --project-token=chpt_be90ce8462f803c",
827
- "yalc-push": "pnpm build && yalc push",
828
- "format": "prettier --write .",
829
- "prettier": "prettier --check .",
830
- "eslint": "eslint . --quiet",
831
- "test": "vitest run --coverage --project unit",
832
- "test:storybook": "vitest run --project storybook --reporter=default",
833
- "test:all": "pnpm test && pnpm test:storybook",
834
- "test:watch": "vitest --coverage --project unit",
835
- "storybook": "storybook dev -p 6006",
836
- "build-storybook": "storybook build",
837
- "reinstall-force": "rm -Rf node_modules && pnpm install",
838
- "prepare-upgrade": "pnpm reinstall-force && pnpm build && pnpm chromatic && git add . && git commit -m \"$MSG\" --allow-empty && npm config set tag-version-prefix ''",
839
- "upgrade-patch": "pnpm prepare-upgrade && npm version patch -m \"Update patch version number\" && git push && git push --tags",
840
- "upgrade-minor": "pnpm prepare-upgrade && npm version minor -m \"Update minor version number\" && git push && git push --tags",
841
- "upgrade-major": "pnpm prepare-upgrade && npm version major -m \"Update major version number\" && git push && git push --tags"
842
- }
843
- }
852
+ "packageManager": "pnpm@10.28.0+sha512.05df71d1421f21399e053fde567cea34d446fa02c76571441bfc1c7956e98e363088982d940465fd34480d4d90a0668bc12362f8aa88000a64e83d0b0e47be48"
853
+ }