@npm_leadtech/legal-lib-components 2.40.1 → 2.40.3
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 +4 -2
- 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
|
@@ -2734,11 +2734,10 @@ html[data-theme='lawdistrict'] .document-status.--is-new {
|
|
|
2734
2734
|
|
|
2735
2735
|
.e-spinner {
|
|
2736
2736
|
animation: rotate 2s linear infinite;
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
stroke: var(--others-white);
|
|
2737
|
+
width: 24px;
|
|
2738
|
+
height: 24px; }
|
|
2739
|
+
.e-spinner path {
|
|
2740
|
+
fill: var(--others-white);
|
|
2742
2741
|
stroke-linecap: round;
|
|
2743
2742
|
stroke-dasharray: 15, 150;
|
|
2744
2743
|
animation: dash 1.5s ease-in-out infinite; }
|
|
@@ -2747,8 +2746,11 @@ html[data-theme='lawdistrict'] .document-status.--is-new {
|
|
|
2747
2746
|
width: 70px;
|
|
2748
2747
|
height: 70px; }
|
|
2749
2748
|
|
|
2750
|
-
.spinner--
|
|
2751
|
-
|
|
2749
|
+
.spinner--neutral path {
|
|
2750
|
+
fill: var(--neutral-neutral-2); }
|
|
2751
|
+
|
|
2752
|
+
.spinner--primary path {
|
|
2753
|
+
fill: var(--primary-main); }
|
|
2752
2754
|
|
|
2753
2755
|
.tagline {
|
|
2754
2756
|
margin-bottom: 1rem; }
|
|
@@ -3024,6 +3026,56 @@ html[data-theme='lawdistrict'] .document-status.--is-new {
|
|
|
3024
3026
|
.message-information__text__time.regular {
|
|
3025
3027
|
font-weight: 400; }
|
|
3026
3028
|
|
|
3029
|
+
.accordion__container {
|
|
3030
|
+
overflow: hidden;
|
|
3031
|
+
border-bottom: 1px solid var(--neutral-neutral-4); }
|
|
3032
|
+
.accordion__container:first-child {
|
|
3033
|
+
border-top: 1px solid var(--neutral-neutral-4); }
|
|
3034
|
+
.accordion__container:last-child {
|
|
3035
|
+
border-bottom-left-radius: 4px;
|
|
3036
|
+
border-bottom-right-radius: 4px; }
|
|
3037
|
+
.accordion__container .accordion__button {
|
|
3038
|
+
border-right: 1px solid var(--neutral-neutral-4);
|
|
3039
|
+
border-left: 1px solid var(--neutral-neutral-4);
|
|
3040
|
+
width: 100%;
|
|
3041
|
+
text-align: left;
|
|
3042
|
+
padding: 1rem 1.5rem;
|
|
3043
|
+
display: flex;
|
|
3044
|
+
align-items: center;
|
|
3045
|
+
justify-content: space-between;
|
|
3046
|
+
background: var(--neutral-neutral-6);
|
|
3047
|
+
border-bottom: none;
|
|
3048
|
+
border-top: none;
|
|
3049
|
+
cursor: pointer;
|
|
3050
|
+
font-family: Inter;
|
|
3051
|
+
font-size: 16px;
|
|
3052
|
+
font-style: normal;
|
|
3053
|
+
font-weight: 400;
|
|
3054
|
+
line-height: 22px;
|
|
3055
|
+
letter-spacing: -0.3px; }
|
|
3056
|
+
.accordion__container .accordion__button.--success {
|
|
3057
|
+
background: #eff7f5; }
|
|
3058
|
+
.accordion__container .accordion__button.--locked {
|
|
3059
|
+
cursor: not-allowed; }
|
|
3060
|
+
.accordion__container .accordion__button:not(.--locked):hover {
|
|
3061
|
+
background-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.04), transparent); }
|
|
3062
|
+
.accordion__container .accordion__title {
|
|
3063
|
+
color: var(--primary-main-dark-1);
|
|
3064
|
+
font-family: Inter;
|
|
3065
|
+
font-size: 18px;
|
|
3066
|
+
font-style: normal;
|
|
3067
|
+
font-weight: 700;
|
|
3068
|
+
line-height: 24px;
|
|
3069
|
+
letter-spacing: -0.3px; }
|
|
3070
|
+
.accordion__container .accordion__title.--locked {
|
|
3071
|
+
color: var(--neutral-neutral-2); }
|
|
3072
|
+
.accordion__container .accordion__content {
|
|
3073
|
+
padding: 0 1.5rem;
|
|
3074
|
+
transition: height 0.7s ease-in-out;
|
|
3075
|
+
border-right: 1px solid var(--neutral-neutral-4);
|
|
3076
|
+
border-left: 1px solid var(--neutral-neutral-4);
|
|
3077
|
+
border-bottom: none; }
|
|
3078
|
+
|
|
3027
3079
|
.also-known-as {
|
|
3028
3080
|
display: flex;
|
|
3029
3081
|
align-items: center;
|
|
@@ -4140,11 +4192,9 @@ html[data-theme='lawdistrict'] .document-status.--is-new {
|
|
|
4140
4192
|
.e-text--is-invalid .e-text__error {
|
|
4141
4193
|
display: flex;
|
|
4142
4194
|
align-content: center;
|
|
4143
|
-
position: absolute;
|
|
4144
4195
|
bottom: -5.5rem;
|
|
4145
4196
|
margin-top: 0.5rem;
|
|
4146
|
-
color: var(--error-main);
|
|
4147
|
-
height: 5rem; }
|
|
4197
|
+
color: var(--error-main); }
|
|
4148
4198
|
.e-text--is-invalid .e-text__error-icon {
|
|
4149
4199
|
display: flex; }
|
|
4150
4200
|
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
@@ -4160,7 +4210,7 @@ html[data-theme='lawdistrict'] .document-status.--is-new {
|
|
|
4160
4210
|
.e-text--is-invalid .e-text__error img {
|
|
4161
4211
|
max-width: 20px;
|
|
4162
4212
|
margin-right: 0.25rem;
|
|
4163
|
-
|
|
4213
|
+
width: 16px; }
|
|
4164
4214
|
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
4165
4215
|
.e-text--is-invalid .e-text__error img {
|
|
4166
4216
|
height: 20px; } }
|
|
@@ -4265,6 +4315,10 @@ html[data-theme='lawdistrict'] .document-status.--is-new {
|
|
|
4265
4315
|
.about-us-content__image img {
|
|
4266
4316
|
width: 100%; }
|
|
4267
4317
|
|
|
4318
|
+
.accordion {
|
|
4319
|
+
width: 100%;
|
|
4320
|
+
padding-bottom: 2rem; }
|
|
4321
|
+
|
|
4268
4322
|
.articles_wrapper {
|
|
4269
4323
|
display: flex;
|
|
4270
4324
|
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 {};
|