@npm_leadtech/legal-lib-components 2.43.0 → 2.45.0
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/cjs/index.js +5 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/legal-lib-components.css +119 -11
- package/dist/cjs/src/components/molecules/AccordionItem/AccordionItem.d.ts +4 -0
- package/dist/cjs/src/components/molecules/AccordionItem/AccordionItemProps.types.d.ts +10 -0
- package/dist/cjs/src/components/molecules/AccordionItem/index.d.ts +1 -0
- package/dist/cjs/src/components/molecules/TypeModulesList/TypeModulesList.d.ts +5 -0
- package/dist/cjs/src/components/molecules/TypeModulesList/TypeModulesListProps.types.d.ts +13 -0
- package/dist/cjs/src/components/molecules/TypeModulesList/index.d.ts +2 -0
- package/dist/cjs/src/components/molecules/index.d.ts +2 -0
- package/dist/cjs/src/components/organisms/Accordion/Accordion.context.d.ts +43 -0
- package/dist/cjs/src/components/organisms/Accordion/Accordion.d.ts +4 -0
- package/dist/cjs/src/components/organisms/Accordion/AccordionProps.types.d.ts +13 -0
- package/dist/cjs/src/components/organisms/Accordion/index.d.ts +2 -0
- package/dist/cjs/src/components/organisms/index.d.ts +1 -0
- package/dist/esm/index.js +5 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/legal-lib-components.css +119 -11
- package/dist/esm/src/components/molecules/AccordionItem/AccordionItem.d.ts +4 -0
- package/dist/esm/src/components/molecules/AccordionItem/AccordionItemProps.types.d.ts +10 -0
- package/dist/esm/src/components/molecules/AccordionItem/index.d.ts +1 -0
- package/dist/esm/src/components/molecules/TypeModulesList/TypeModulesList.d.ts +5 -0
- package/dist/esm/src/components/molecules/TypeModulesList/TypeModulesListProps.types.d.ts +13 -0
- package/dist/esm/src/components/molecules/TypeModulesList/index.d.ts +2 -0
- package/dist/esm/src/components/molecules/index.d.ts +2 -0
- package/dist/esm/src/components/organisms/Accordion/Accordion.context.d.ts +43 -0
- package/dist/esm/src/components/organisms/Accordion/Accordion.d.ts +4 -0
- package/dist/esm/src/components/organisms/Accordion/AccordionProps.types.d.ts +13 -0
- package/dist/esm/src/components/organisms/Accordion/index.d.ts +2 -0
- package/dist/esm/src/components/organisms/index.d.ts +1 -0
- package/dist/index.d.ts +79 -1
- package/package.json +1 -1
|
@@ -2802,11 +2802,10 @@ html[data-theme='lawdistrict'] .document-status.--is-new {
|
|
|
2802
2802
|
|
|
2803
2803
|
.e-spinner {
|
|
2804
2804
|
animation: rotate 2s linear infinite;
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
stroke: var(--others-white);
|
|
2805
|
+
width: 24px;
|
|
2806
|
+
height: 24px; }
|
|
2807
|
+
.e-spinner path {
|
|
2808
|
+
fill: var(--others-white);
|
|
2810
2809
|
stroke-linecap: round;
|
|
2811
2810
|
stroke-dasharray: 15, 150;
|
|
2812
2811
|
animation: dash 1.5s ease-in-out infinite; }
|
|
@@ -2815,8 +2814,11 @@ html[data-theme='lawdistrict'] .document-status.--is-new {
|
|
|
2815
2814
|
width: 70px;
|
|
2816
2815
|
height: 70px; }
|
|
2817
2816
|
|
|
2818
|
-
.spinner--
|
|
2819
|
-
|
|
2817
|
+
.spinner--neutral path {
|
|
2818
|
+
fill: var(--neutral-neutral-2); }
|
|
2819
|
+
|
|
2820
|
+
.spinner--primary path {
|
|
2821
|
+
fill: var(--primary-main); }
|
|
2820
2822
|
|
|
2821
2823
|
.tagline {
|
|
2822
2824
|
margin-bottom: 1rem; }
|
|
@@ -3092,6 +3094,56 @@ html[data-theme='lawdistrict'] .document-status.--is-new {
|
|
|
3092
3094
|
.message-information__text__time.regular {
|
|
3093
3095
|
font-weight: 400; }
|
|
3094
3096
|
|
|
3097
|
+
.accordion__container {
|
|
3098
|
+
overflow: hidden;
|
|
3099
|
+
border-bottom: 1px solid var(--neutral-neutral-4); }
|
|
3100
|
+
.accordion__container:first-child {
|
|
3101
|
+
border-top: 1px solid var(--neutral-neutral-4); }
|
|
3102
|
+
.accordion__container:last-child {
|
|
3103
|
+
border-bottom-left-radius: 4px;
|
|
3104
|
+
border-bottom-right-radius: 4px; }
|
|
3105
|
+
.accordion__container .accordion__button {
|
|
3106
|
+
border-right: 1px solid var(--neutral-neutral-4);
|
|
3107
|
+
border-left: 1px solid var(--neutral-neutral-4);
|
|
3108
|
+
width: 100%;
|
|
3109
|
+
text-align: left;
|
|
3110
|
+
padding: 1rem 1.5rem;
|
|
3111
|
+
display: flex;
|
|
3112
|
+
align-items: center;
|
|
3113
|
+
justify-content: space-between;
|
|
3114
|
+
background: var(--neutral-neutral-6);
|
|
3115
|
+
border-bottom: none;
|
|
3116
|
+
border-top: none;
|
|
3117
|
+
cursor: pointer;
|
|
3118
|
+
font-family: Inter;
|
|
3119
|
+
font-size: 16px;
|
|
3120
|
+
font-style: normal;
|
|
3121
|
+
font-weight: 400;
|
|
3122
|
+
line-height: 22px;
|
|
3123
|
+
letter-spacing: -0.3px; }
|
|
3124
|
+
.accordion__container .accordion__button.--success {
|
|
3125
|
+
background: #eff7f5; }
|
|
3126
|
+
.accordion__container .accordion__button.--locked {
|
|
3127
|
+
cursor: not-allowed; }
|
|
3128
|
+
.accordion__container .accordion__button:not(.--locked):hover {
|
|
3129
|
+
background-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.04), transparent); }
|
|
3130
|
+
.accordion__container .accordion__title {
|
|
3131
|
+
color: var(--primary-main-dark-1);
|
|
3132
|
+
font-family: Inter;
|
|
3133
|
+
font-size: 18px;
|
|
3134
|
+
font-style: normal;
|
|
3135
|
+
font-weight: 700;
|
|
3136
|
+
line-height: 24px;
|
|
3137
|
+
letter-spacing: -0.3px; }
|
|
3138
|
+
.accordion__container .accordion__title.--locked {
|
|
3139
|
+
color: var(--neutral-neutral-2); }
|
|
3140
|
+
.accordion__container .accordion__content {
|
|
3141
|
+
padding: 0 1.5rem;
|
|
3142
|
+
transition: height 0.7s ease-in-out;
|
|
3143
|
+
border-right: 1px solid var(--neutral-neutral-4);
|
|
3144
|
+
border-left: 1px solid var(--neutral-neutral-4);
|
|
3145
|
+
border-bottom: none; }
|
|
3146
|
+
|
|
3095
3147
|
.also-known-as {
|
|
3096
3148
|
display: flex;
|
|
3097
3149
|
align-items: center;
|
|
@@ -4335,11 +4387,9 @@ html[data-theme='lawdistrict'] .document-status.--is-new {
|
|
|
4335
4387
|
.e-text--is-invalid .e-text__error {
|
|
4336
4388
|
display: flex;
|
|
4337
4389
|
align-content: center;
|
|
4338
|
-
position: absolute;
|
|
4339
4390
|
bottom: -5.5rem;
|
|
4340
4391
|
margin-top: 0.5rem;
|
|
4341
|
-
color: var(--error-main);
|
|
4342
|
-
height: 5rem; }
|
|
4392
|
+
color: var(--error-main); }
|
|
4343
4393
|
.e-text--is-invalid .e-text__error-icon {
|
|
4344
4394
|
display: flex; }
|
|
4345
4395
|
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
@@ -4355,7 +4405,7 @@ html[data-theme='lawdistrict'] .document-status.--is-new {
|
|
|
4355
4405
|
.e-text--is-invalid .e-text__error img {
|
|
4356
4406
|
max-width: 20px;
|
|
4357
4407
|
margin-right: 0.25rem;
|
|
4358
|
-
|
|
4408
|
+
width: 16px; }
|
|
4359
4409
|
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
4360
4410
|
.e-text--is-invalid .e-text__error img {
|
|
4361
4411
|
height: 20px; } }
|
|
@@ -4421,6 +4471,60 @@ html[data-theme='lawdistrict'] .document-status.--is-new {
|
|
|
4421
4471
|
.trustworthy-websites__image {
|
|
4422
4472
|
margin: 1.5rem; }
|
|
4423
4473
|
|
|
4474
|
+
.type-modules-list {
|
|
4475
|
+
display: flex;
|
|
4476
|
+
flex-direction: column;
|
|
4477
|
+
gap: 2rem; }
|
|
4478
|
+
.type-modules-list .module-item {
|
|
4479
|
+
display: flex;
|
|
4480
|
+
flex-wrap: wrap;
|
|
4481
|
+
justify-content: center;
|
|
4482
|
+
background-color: var(--neutral-neutral-6);
|
|
4483
|
+
padding: 24px;
|
|
4484
|
+
box-shadow: 0px 2px 6px 0px #02374a3f; }
|
|
4485
|
+
.type-modules-list .module-title {
|
|
4486
|
+
font-family: "Inter", sans-serif;
|
|
4487
|
+
font-size: 18px;
|
|
4488
|
+
font-weight: 700;
|
|
4489
|
+
line-height: 24px;
|
|
4490
|
+
letter-spacing: -0.3px;
|
|
4491
|
+
text-align: left;
|
|
4492
|
+
margin-bottom: 1rem; }
|
|
4493
|
+
.type-modules-list .module-description {
|
|
4494
|
+
font-family: "Inter", sans-serif;
|
|
4495
|
+
font-size: 16px;
|
|
4496
|
+
font-weight: 400;
|
|
4497
|
+
line-height: 22px;
|
|
4498
|
+
letter-spacing: -0.3px;
|
|
4499
|
+
text-align: left;
|
|
4500
|
+
margin-bottom: 1rem; }
|
|
4501
|
+
.type-modules-list .module-image {
|
|
4502
|
+
width: 150px;
|
|
4503
|
+
margin-right: 20px; }
|
|
4504
|
+
.type-modules-list .module-content {
|
|
4505
|
+
flex: 1; }
|
|
4506
|
+
.type-modules-list .module-buttons {
|
|
4507
|
+
display: flex;
|
|
4508
|
+
gap: 1rem;
|
|
4509
|
+
width: max-content; }
|
|
4510
|
+
.type-modules-list .e-button {
|
|
4511
|
+
display: flex;
|
|
4512
|
+
justify-content: center;
|
|
4513
|
+
width: 100%;
|
|
4514
|
+
margin: 0 0.2rem;
|
|
4515
|
+
padding-top: 0.6rem;
|
|
4516
|
+
padding-bottom: 0.6rem;
|
|
4517
|
+
background: var(--others-white); }
|
|
4518
|
+
@media (min-width: 960px) {
|
|
4519
|
+
.type-modules-list .e-button {
|
|
4520
|
+
margin: 0 0.5rem; } }
|
|
4521
|
+
.type-modules-list .e-button.download-icon::before {
|
|
4522
|
+
content: '';
|
|
4523
|
+
width: 1rem;
|
|
4524
|
+
height: 1rem;
|
|
4525
|
+
background-image: url("data:image/svg+xml,%3Csvg width%3D%2216%22 height%3D%2216%22 viewBox%3D%220 0 16 16%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M12.8625 8.47054C13.1222 8.21085 13.1222 7.7898 12.8625 7.53012C12.6029 7.27059 12.1822 7.2704 11.9225 7.52969L8.66602 10.7803V3.33366C8.66602 2.96547 8.36754 2.66699 7.99935 2.66699C7.63116 2.66699 7.33268 2.96547 7.33268 3.33366V10.7803L4.0858 7.52763C3.82457 7.26593 3.4006 7.26574 3.13914 7.5272C2.87784 7.7885 2.87784 8.21215 3.13914 8.47345L7.29224 12.6266C7.68277 13.0171 8.31593 13.0171 8.70646 12.6266L12.8625 8.47054Z%22 fill%3D%22%233D4042%22%2F%3E%3C%2Fsvg%3E");
|
|
4526
|
+
margin-right: 0.5rem; }
|
|
4527
|
+
|
|
4424
4528
|
.about-us-content {
|
|
4425
4529
|
display: flex;
|
|
4426
4530
|
flex-flow: row wrap;
|
|
@@ -4460,6 +4564,10 @@ html[data-theme='lawdistrict'] .document-status.--is-new {
|
|
|
4460
4564
|
.about-us-content__image img {
|
|
4461
4565
|
width: 100%; }
|
|
4462
4566
|
|
|
4567
|
+
.accordion {
|
|
4568
|
+
width: 100%;
|
|
4569
|
+
padding-bottom: 2rem; }
|
|
4570
|
+
|
|
4463
4571
|
.articles_wrapper {
|
|
4464
4572
|
display: flex;
|
|
4465
4573
|
flex-direction: column;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type AccordionItemProps } from './AccordionItemProps.types';
|
|
3
|
+
import './AccordionItem.scss';
|
|
4
|
+
export declare const AccordionItem: ({ accordionRightContent, children, defaultHeightItem, index, isOpen, onClick, title }: AccordionItemProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AccordionItem } from './AccordionItem';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface TypeModulesListProps {
|
|
3
|
+
typeModules: TypeModule[];
|
|
4
|
+
}
|
|
5
|
+
export interface TypeModule {
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
buttonPdfCta: string;
|
|
9
|
+
buttonPdfUrl: string;
|
|
10
|
+
buttonWordCta: string;
|
|
11
|
+
buttonWordUrl: string;
|
|
12
|
+
image: React.ReactNode;
|
|
13
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './AccordionItem';
|
|
1
2
|
export * from './AlsoKnownAs';
|
|
2
3
|
export * from './Article';
|
|
3
4
|
export * from './BaseBoxList';
|
|
@@ -27,3 +28,4 @@ export * from './StepGetForm';
|
|
|
27
28
|
export * from './TextInput';
|
|
28
29
|
export * from './TooltipMenu';
|
|
29
30
|
export * from './TrustworthyWebsites';
|
|
31
|
+
export * from './TypeModulesList';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Handler = 'error' | 'warning' | 'success' | 'default';
|
|
3
|
+
type Action = {
|
|
4
|
+
type: 'message';
|
|
5
|
+
accordionItem: number;
|
|
6
|
+
message: string;
|
|
7
|
+
} | {
|
|
8
|
+
type: 'loading';
|
|
9
|
+
accordionItem: number;
|
|
10
|
+
} | {
|
|
11
|
+
type: 'locked';
|
|
12
|
+
accordionItem: number;
|
|
13
|
+
} | {
|
|
14
|
+
type: 'unlocked';
|
|
15
|
+
accordionItem: number;
|
|
16
|
+
resetAction?: string;
|
|
17
|
+
} | {
|
|
18
|
+
type: 'handler';
|
|
19
|
+
accordionItem: number;
|
|
20
|
+
handlerMessage: Handler;
|
|
21
|
+
};
|
|
22
|
+
type Dispatch = (action: Action) => void;
|
|
23
|
+
interface ItemDataAccordion {
|
|
24
|
+
handler: string;
|
|
25
|
+
isLoading: boolean;
|
|
26
|
+
message: string;
|
|
27
|
+
locked: {
|
|
28
|
+
actionType: string;
|
|
29
|
+
isLocked: boolean;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
interface AccordionProviderProps {
|
|
33
|
+
children: React.ReactNode;
|
|
34
|
+
elements: number;
|
|
35
|
+
}
|
|
36
|
+
declare function AccordionProvider({ children, elements }: AccordionProviderProps): JSX.Element;
|
|
37
|
+
declare function useDispatchDataAccordionItem(): {
|
|
38
|
+
dispatch: Dispatch;
|
|
39
|
+
};
|
|
40
|
+
declare function useStateDataAccordionItem(accordionLoadingItem?: number): {
|
|
41
|
+
state: ItemDataAccordion;
|
|
42
|
+
};
|
|
43
|
+
export { AccordionProvider, useDispatchDataAccordionItem, useStateDataAccordionItem };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface AccordionItem {
|
|
3
|
+
accordionRightContent?: React.ReactNode;
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
title?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface AccordionProps {
|
|
9
|
+
data: AccordionItem[];
|
|
10
|
+
defaultActiveIndex?: number;
|
|
11
|
+
defaultHeightItem?: number;
|
|
12
|
+
}
|
|
13
|
+
export {};
|