@npm_leadtech/legal-lib-components 2.43.0 → 2.44.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 +65 -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/index.d.ts +1 -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 +65 -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/index.d.ts +1 -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 +64 -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; } }
|
|
@@ -4460,6 +4510,10 @@ html[data-theme='lawdistrict'] .document-status.--is-new {
|
|
|
4460
4510
|
.about-us-content__image img {
|
|
4461
4511
|
width: 100%; }
|
|
4462
4512
|
|
|
4513
|
+
.accordion {
|
|
4514
|
+
width: 100%;
|
|
4515
|
+
padding-bottom: 2rem; }
|
|
4516
|
+
|
|
4463
4517
|
.articles_wrapper {
|
|
4464
4518
|
display: flex;
|
|
4465
4519
|
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,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 {};
|