@npm_leadtech/legal-lib-components 2.40.3 → 2.41.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.
Files changed (26) hide show
  1. package/dist/cjs/index.js +3 -5
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/legal-lib-components.css +11 -65
  4. package/dist/cjs/src/components/molecules/index.d.ts +0 -1
  5. package/dist/cjs/src/components/organisms/index.d.ts +0 -1
  6. package/dist/esm/index.js +2 -4
  7. package/dist/esm/index.js.map +1 -1
  8. package/dist/esm/legal-lib-components.css +11 -65
  9. package/dist/esm/src/components/molecules/index.d.ts +0 -1
  10. package/dist/esm/src/components/organisms/index.d.ts +0 -1
  11. package/dist/index.d.ts +1 -64
  12. package/package.json +1 -1
  13. package/dist/cjs/src/components/molecules/AccordionItem/AccordionItem.d.ts +0 -4
  14. package/dist/cjs/src/components/molecules/AccordionItem/AccordionItemProps.types.d.ts +0 -10
  15. package/dist/cjs/src/components/molecules/AccordionItem/index.d.ts +0 -1
  16. package/dist/cjs/src/components/organisms/Accordion/Accordion.context.d.ts +0 -43
  17. package/dist/cjs/src/components/organisms/Accordion/Accordion.d.ts +0 -4
  18. package/dist/cjs/src/components/organisms/Accordion/AccordionProps.types.d.ts +0 -13
  19. package/dist/cjs/src/components/organisms/Accordion/index.d.ts +0 -2
  20. package/dist/esm/src/components/molecules/AccordionItem/AccordionItem.d.ts +0 -4
  21. package/dist/esm/src/components/molecules/AccordionItem/AccordionItemProps.types.d.ts +0 -10
  22. package/dist/esm/src/components/molecules/AccordionItem/index.d.ts +0 -1
  23. package/dist/esm/src/components/organisms/Accordion/Accordion.context.d.ts +0 -43
  24. package/dist/esm/src/components/organisms/Accordion/Accordion.d.ts +0 -4
  25. package/dist/esm/src/components/organisms/Accordion/AccordionProps.types.d.ts +0 -13
  26. package/dist/esm/src/components/organisms/Accordion/index.d.ts +0 -2
@@ -2734,10 +2734,11 @@ html[data-theme='lawdistrict'] .document-status.--is-new {
2734
2734
 
2735
2735
  .e-spinner {
2736
2736
  animation: rotate 2s linear infinite;
2737
- width: 24px;
2738
- height: 24px; }
2739
- .e-spinner path {
2740
- fill: var(--others-white);
2737
+ margin: -16px -16px 0 -25px;
2738
+ width: 50px;
2739
+ height: 50px; }
2740
+ .e-spinner .path {
2741
+ stroke: var(--others-white);
2741
2742
  stroke-linecap: round;
2742
2743
  stroke-dasharray: 15, 150;
2743
2744
  animation: dash 1.5s ease-in-out infinite; }
@@ -2746,11 +2747,8 @@ html[data-theme='lawdistrict'] .document-status.--is-new {
2746
2747
  width: 70px;
2747
2748
  height: 70px; }
2748
2749
 
2749
- .spinner--neutral path {
2750
- fill: var(--neutral-neutral-2); }
2751
-
2752
- .spinner--primary path {
2753
- fill: var(--primary-main); }
2750
+ .spinner--primary .path {
2751
+ stroke: var(--primary-main); }
2754
2752
 
2755
2753
  .tagline {
2756
2754
  margin-bottom: 1rem; }
@@ -3026,56 +3024,6 @@ html[data-theme='lawdistrict'] .document-status.--is-new {
3026
3024
  .message-information__text__time.regular {
3027
3025
  font-weight: 400; }
3028
3026
 
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
-
3079
3027
  .also-known-as {
3080
3028
  display: flex;
3081
3029
  align-items: center;
@@ -4192,9 +4140,11 @@ html[data-theme='lawdistrict'] .document-status.--is-new {
4192
4140
  .e-text--is-invalid .e-text__error {
4193
4141
  display: flex;
4194
4142
  align-content: center;
4143
+ position: absolute;
4195
4144
  bottom: -5.5rem;
4196
4145
  margin-top: 0.5rem;
4197
- color: var(--error-main); }
4146
+ color: var(--error-main);
4147
+ height: 5rem; }
4198
4148
  .e-text--is-invalid .e-text__error-icon {
4199
4149
  display: flex; }
4200
4150
  @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
@@ -4210,7 +4160,7 @@ html[data-theme='lawdistrict'] .document-status.--is-new {
4210
4160
  .e-text--is-invalid .e-text__error img {
4211
4161
  max-width: 20px;
4212
4162
  margin-right: 0.25rem;
4213
- width: 16px; }
4163
+ height: 25%; }
4214
4164
  @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
4215
4165
  .e-text--is-invalid .e-text__error img {
4216
4166
  height: 20px; } }
@@ -4315,10 +4265,6 @@ html[data-theme='lawdistrict'] .document-status.--is-new {
4315
4265
  .about-us-content__image img {
4316
4266
  width: 100%; }
4317
4267
 
4318
- .accordion {
4319
- width: 100%;
4320
- padding-bottom: 2rem; }
4321
-
4322
4268
  .articles_wrapper {
4323
4269
  display: flex;
4324
4270
  flex-direction: column;
@@ -1,4 +1,3 @@
1
- export * from './AccordionItem';
2
1
  export * from './AlsoKnownAs';
3
2
  export * from './Article';
4
3
  export * from './BaseBoxList';
@@ -1,5 +1,4 @@
1
1
  export * from './AboutUsContent';
2
- export * from './Accordion';
3
2
  export * from './ArticlesList';
4
3
  export * from './AsSeeInContent';
5
4
  export * from './ContactJumbotron';
package/dist/index.d.ts CHANGED
@@ -507,18 +507,6 @@ interface MessageInformationProps {
507
507
 
508
508
  declare const MessageInformation: FC<MessageInformationProps>;
509
509
 
510
- interface AccordionItemProps {
511
- accordionRightContent?: React.ReactNode;
512
- children?: React.ReactNode;
513
- defaultHeightItem?: number;
514
- index: number;
515
- isOpen?: boolean;
516
- onClick: () => void;
517
- title?: string;
518
- }
519
-
520
- declare const AccordionItem$1: ({ accordionRightContent, children, defaultHeightItem, index, isOpen, onClick, title }: AccordionItemProps) => JSX.Element;
521
-
522
510
  interface AlsoKnownAsProps {
523
511
  title: string;
524
512
  documents: string[];
@@ -834,57 +822,6 @@ interface AboutUsContentProps {
834
822
 
835
823
  declare const AboutUsContent: FC<AboutUsContentProps>;
836
824
 
837
- interface AccordionItem {
838
- accordionRightContent?: React.ReactNode;
839
- children?: React.ReactNode;
840
- onClick?: () => void;
841
- title?: string;
842
- }
843
- interface AccordionProps {
844
- data: AccordionItem[];
845
- defaultActiveIndex?: number;
846
- defaultHeightItem?: number;
847
- }
848
-
849
- declare const Accordion: ({ data, defaultActiveIndex, defaultHeightItem }: AccordionProps) => JSX.Element;
850
-
851
- type Handler = 'error' | 'warning' | 'success' | 'default';
852
- type Action = {
853
- type: 'message';
854
- accordionItem: number;
855
- message: string;
856
- } | {
857
- type: 'loading';
858
- accordionItem: number;
859
- } | {
860
- type: 'locked';
861
- accordionItem: number;
862
- } | {
863
- type: 'unlocked';
864
- accordionItem: number;
865
- resetAction?: string;
866
- } | {
867
- type: 'handler';
868
- accordionItem: number;
869
- handlerMessage: Handler;
870
- };
871
- type Dispatch = (action: Action) => void;
872
- interface ItemDataAccordion {
873
- handler: string;
874
- isLoading: boolean;
875
- message: string;
876
- locked: {
877
- actionType: string;
878
- isLocked: boolean;
879
- };
880
- }
881
- declare function useDispatchDataAccordionItem(): {
882
- dispatch: Dispatch;
883
- };
884
- declare function useStateDataAccordionItem(accordionLoadingItem?: number): {
885
- state: ItemDataAccordion;
886
- };
887
-
888
825
  interface ArticlesListProps {
889
826
  articles: ArticleProps[];
890
827
  }
@@ -1147,4 +1084,4 @@ interface UseIsMobileOrTablePropsReturn {
1147
1084
  }
1148
1085
  declare const useIsMobileOrTable: () => UseIsMobileOrTablePropsReturn;
1149
1086
 
1150
- export { AboutUsContent, type AboutUsContentProps, AboutUsPage, type AboutUsPageProps, AboutUsSection, type AboutUsSectionProps, Accordion, AccordionItem$1 as AccordionItem, AddButton, type AddButtonProps, AlsoKnownAs, type AlsoKnownAsProps, Article, type ArticleProps, ArticlesList, type ArticlesListProps, AsSeeInContent, type AsSeeInContentProps, AsSeeInSection, type AsSeeInSectionProps, AsideMenuSection, type AsideMenuSectionProps, BaseBox, BaseBoxList, type BaseBoxListProps, type BaseBoxProps, BillCard, type BillCardProps, BlogSection, type BlogSectionProps, BottomFixedBar, type BottomFixedBarProps, BottomOverlay, BottomOverlayMenu, type BottomOverlayMenuProps, type BottomOverlayProps, BoxForm, type BoxFormProps, BreadcrumItem, type BreadcrumItemProps, Breadcrumb, type BreadcrumbProps, Button, ButtonIcon, type ButtonIconProps, type ButtonProps, CardPane, type CardPaneInfoProps, type CardPaneProps, Checkbox, type CheckboxProps, ContactBox, type ContactBoxProps, ContactJumbotron, type ContactJumbotronProps, ContactSection, type ContactSectionProps, ContactUsPage, type ContactUsPageProps, ContinueEditingBanner, type ContinueEditingBannerProps, CookiePolicyBar, type CookiePolicyBarProps, CountDownMessage, type CountDownMessageProps, DatePickerCustom, type DatePickerCustomProps, DialogMenuIcon, type DialogMenuIconProps, Disclaimer, type DisclaimerProps, Divider, type DividerProps, DocumentStatus, type DocumentStatusProps, DocumentTag, type DocumentTagProps, EmailContactBox, type EmailContactBoxProps, ExpertCard, ExpertCardList, type ExpertCardListProps, type ExpertCardProps, ExpertsSection, type ExpertsSectionProps, FaqGroup, type FaqGroupProps, FaqItem, type FaqItemProps, FaqSection, type FaqSectionProps, FaqsPage, type FaqsPageProps, Feedback, type FeedbackProps, FormFaq, type FormFaqProps, FreeDocModalContent, type FreeDocModalContentProps, GoogleButton, type GoogleButtonProps, GuidelinesContent, type GuidelinesContentProps, GuidelinesSection, type GuidelinesSectionProps, HowGetYourFormsSection, type HowGetYourFormsSectionProps, IconImage, type IconImageProps, IconSvgURLWithThemeColor, type IconSvgURLWithThemeColorProps, type ImageStructure, InfoBox, type InfoBoxProps, JumbotronSimplifiedSection, type JumbotronSimplifiedSectionProps, JumbotronStatic, type JumbotronStaticProps, type LatestApplication, LearnMoreSection, type LearnMoreSectionProps, LegalPage, type LegalPageProps, LegalSection, type LegalSectionProps, ListStepsGetForm, type ListStepsGetFormProps, Logo, type LogoProps, LogoText, type LogoTextProps, type MenuItemProps, MenuItems, MenuItemsSection, type MenuItemsSectionProps, MenuPlacement, Message, MessageInformation, type MessageInformationProps, type MessageProps, MobileBottomBar, type MobileBottomBarProps, NavBarDropDown, type NavBarDropDownProps, Pagination, type PaginationProps, PaypalButton, type PaypalButtonProps, PeopleSayAboutUsSection, type PeopleSayAboutUsSectionProps, PhoneContactBoxDesktop, type PhoneContactBoxDesktopProps, PhoneContactBoxMobile, type PhoneContactBoxMobileProps, PricingCard, type PricingCardProps, ProgressBar, type ProgressBarProps, Radio, type RadioProps, RemoveButton, type RemoveButtonProps, RichTextInner, type RichTextInnerProps, type RichTextMedia, RichTextStrapi, type RichTextStrapiProps, SearchSelect, type SearchSelectProps, ShowMoreBox, type ShowMoreBoxProps, type SideMenuTabProps, SidemenuTab, Snackbar, type SnackbarProps, Spinner, type SpinnerProps, StepGetForm, type StepGetFormProps, Tagline, type TaglineProps, TextArea, type TextAreaProps, TextInput, type TextInputProps, Toggle, type ToggleProps, Tooltip, TooltipMenu, type TooltipMenuProps, type TooltipProps, TopBar, TopBarMobile, type TopBarProps, Trustpilot as TrustPilot, type TrustPilotProps, TrustworthyWebsites, type TrustworthyWebsitesProps, TryOurFreeLegalBlogsContent, type TryOurFreeLegalBlogsContentProps, TryOurFreeLegalBlogsSection, type TryOurFreeLegalBlogsSectionProps, TryUsSection, type TryUsSectionProps, UnsubscribePage, type UnsubscribePageProps, UnsubscribeSection, type UnsubscribeSectionProps, type WhyLawDistrictItem, WhyLawDistrictItems, type WhyLawDistrictItemsProps, WhyLawDistrictSection, type WhyLawDistrictSectionProps, WideInfoBar, useDispatchDataAccordionItem, useIntersectionObserver, useIsMobileOrTable, useStateDataAccordionItem };
1087
+ export { AboutUsContent, type AboutUsContentProps, AboutUsPage, type AboutUsPageProps, AboutUsSection, type AboutUsSectionProps, AddButton, type AddButtonProps, AlsoKnownAs, type AlsoKnownAsProps, Article, type ArticleProps, ArticlesList, type ArticlesListProps, AsSeeInContent, type AsSeeInContentProps, AsSeeInSection, type AsSeeInSectionProps, AsideMenuSection, type AsideMenuSectionProps, BaseBox, BaseBoxList, type BaseBoxListProps, type BaseBoxProps, BillCard, type BillCardProps, BlogSection, type BlogSectionProps, BottomFixedBar, type BottomFixedBarProps, BottomOverlay, BottomOverlayMenu, type BottomOverlayMenuProps, type BottomOverlayProps, BoxForm, type BoxFormProps, BreadcrumItem, type BreadcrumItemProps, Breadcrumb, type BreadcrumbProps, Button, ButtonIcon, type ButtonIconProps, type ButtonProps, CardPane, type CardPaneInfoProps, type CardPaneProps, Checkbox, type CheckboxProps, ContactBox, type ContactBoxProps, ContactJumbotron, type ContactJumbotronProps, ContactSection, type ContactSectionProps, ContactUsPage, type ContactUsPageProps, ContinueEditingBanner, type ContinueEditingBannerProps, CookiePolicyBar, type CookiePolicyBarProps, CountDownMessage, type CountDownMessageProps, DatePickerCustom, type DatePickerCustomProps, DialogMenuIcon, type DialogMenuIconProps, Disclaimer, type DisclaimerProps, Divider, type DividerProps, DocumentStatus, type DocumentStatusProps, DocumentTag, type DocumentTagProps, EmailContactBox, type EmailContactBoxProps, ExpertCard, ExpertCardList, type ExpertCardListProps, type ExpertCardProps, ExpertsSection, type ExpertsSectionProps, FaqGroup, type FaqGroupProps, FaqItem, type FaqItemProps, FaqSection, type FaqSectionProps, FaqsPage, type FaqsPageProps, Feedback, type FeedbackProps, FormFaq, type FormFaqProps, FreeDocModalContent, type FreeDocModalContentProps, GoogleButton, type GoogleButtonProps, GuidelinesContent, type GuidelinesContentProps, GuidelinesSection, type GuidelinesSectionProps, HowGetYourFormsSection, type HowGetYourFormsSectionProps, IconImage, type IconImageProps, IconSvgURLWithThemeColor, type IconSvgURLWithThemeColorProps, type ImageStructure, InfoBox, type InfoBoxProps, JumbotronSimplifiedSection, type JumbotronSimplifiedSectionProps, JumbotronStatic, type JumbotronStaticProps, type LatestApplication, LearnMoreSection, type LearnMoreSectionProps, LegalPage, type LegalPageProps, LegalSection, type LegalSectionProps, ListStepsGetForm, type ListStepsGetFormProps, Logo, type LogoProps, LogoText, type LogoTextProps, type MenuItemProps, MenuItems, MenuItemsSection, type MenuItemsSectionProps, MenuPlacement, Message, MessageInformation, type MessageInformationProps, type MessageProps, MobileBottomBar, type MobileBottomBarProps, NavBarDropDown, type NavBarDropDownProps, Pagination, type PaginationProps, PaypalButton, type PaypalButtonProps, PeopleSayAboutUsSection, type PeopleSayAboutUsSectionProps, PhoneContactBoxDesktop, type PhoneContactBoxDesktopProps, PhoneContactBoxMobile, type PhoneContactBoxMobileProps, PricingCard, type PricingCardProps, ProgressBar, type ProgressBarProps, Radio, type RadioProps, RemoveButton, type RemoveButtonProps, RichTextInner, type RichTextInnerProps, type RichTextMedia, RichTextStrapi, type RichTextStrapiProps, SearchSelect, type SearchSelectProps, ShowMoreBox, type ShowMoreBoxProps, type SideMenuTabProps, SidemenuTab, Snackbar, type SnackbarProps, Spinner, type SpinnerProps, StepGetForm, type StepGetFormProps, Tagline, type TaglineProps, TextArea, type TextAreaProps, TextInput, type TextInputProps, Toggle, type ToggleProps, Tooltip, TooltipMenu, type TooltipMenuProps, type TooltipProps, TopBar, TopBarMobile, type TopBarProps, Trustpilot as TrustPilot, type TrustPilotProps, TrustworthyWebsites, type TrustworthyWebsitesProps, TryOurFreeLegalBlogsContent, type TryOurFreeLegalBlogsContentProps, TryOurFreeLegalBlogsSection, type TryOurFreeLegalBlogsSectionProps, TryUsSection, type TryUsSectionProps, UnsubscribePage, type UnsubscribePageProps, UnsubscribeSection, type UnsubscribeSectionProps, type WhyLawDistrictItem, WhyLawDistrictItems, type WhyLawDistrictItemsProps, WhyLawDistrictSection, type WhyLawDistrictSectionProps, WideInfoBar, useIntersectionObserver, useIsMobileOrTable };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "2.40.3",
3
+ "version": "2.41.0",
4
4
  "dependencies": {
5
5
  "@testing-library/jest-dom": "^6.1.4",
6
6
  "@tippyjs/react": "4.2.6",
@@ -1,4 +0,0 @@
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;
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- export interface AccordionItemProps {
3
- accordionRightContent?: React.ReactNode;
4
- children?: React.ReactNode;
5
- defaultHeightItem?: number;
6
- index: number;
7
- isOpen?: boolean;
8
- onClick: () => void;
9
- title?: string;
10
- }
@@ -1 +0,0 @@
1
- export { AccordionItem } from './AccordionItem';
@@ -1,43 +0,0 @@
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 };
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { type AccordionProps } from './AccordionProps.types';
3
- import './Accordion.scss';
4
- export declare const Accordion: ({ data, defaultActiveIndex, defaultHeightItem }: AccordionProps) => JSX.Element;
@@ -1,13 +0,0 @@
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 {};
@@ -1,2 +0,0 @@
1
- export { Accordion } from './Accordion';
2
- export { useDispatchDataAccordionItem, useStateDataAccordionItem } from './Accordion.context';
@@ -1,4 +0,0 @@
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;
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- export interface AccordionItemProps {
3
- accordionRightContent?: React.ReactNode;
4
- children?: React.ReactNode;
5
- defaultHeightItem?: number;
6
- index: number;
7
- isOpen?: boolean;
8
- onClick: () => void;
9
- title?: string;
10
- }
@@ -1 +0,0 @@
1
- export { AccordionItem } from './AccordionItem';
@@ -1,43 +0,0 @@
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 };
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { type AccordionProps } from './AccordionProps.types';
3
- import './Accordion.scss';
4
- export declare const Accordion: ({ data, defaultActiveIndex, defaultHeightItem }: AccordionProps) => JSX.Element;
@@ -1,13 +0,0 @@
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 {};
@@ -1,2 +0,0 @@
1
- export { Accordion } from './Accordion';
2
- export { useDispatchDataAccordionItem, useStateDataAccordionItem } from './Accordion.context';