@npm_leadtech/legal-lib-components 2.40.3 → 2.41.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.
- package/dist/cjs/images/componentsSvg/SvgProps.d.ts +5 -0
- package/dist/cjs/images/componentsSvg/generalCategories/BusinessIconCategory.d.ts +3 -0
- package/dist/cjs/images/componentsSvg/generalCategories/EmploymentIconCategory.d.ts +3 -0
- package/dist/cjs/images/componentsSvg/generalCategories/FinanceIconCategory.d.ts +3 -0
- package/dist/cjs/images/componentsSvg/generalCategories/PersonalFamilyIconCategory.d.ts +3 -0
- package/dist/cjs/images/componentsSvg/generalCategories/RealEstateIconCategory.d.ts +3 -0
- package/dist/cjs/images/componentsSvg/generalCategories/index.d.ts +5 -0
- package/dist/cjs/index.js +3 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/legal-lib-components.css +206 -65
- package/dist/cjs/src/components/atoms/MoreDocsItem/MoreDocsItem.d.ts +4 -0
- package/dist/cjs/src/components/atoms/MoreDocsItem/MoreDocsItemProps.d.ts +7 -0
- package/dist/cjs/src/components/atoms/MoreDocsItem/index.d.ts +2 -0
- package/dist/cjs/src/components/atoms/PopularDocsItem/PopularDocsItem.d.ts +4 -0
- package/dist/cjs/src/components/atoms/PopularDocsItem/PopularDocsItemProps.d.ts +7 -0
- package/dist/cjs/src/components/atoms/PopularDocsItem/index.d.ts +2 -0
- package/dist/cjs/src/components/atoms/index.d.ts +2 -0
- package/dist/cjs/src/components/molecules/MoreDocsDesktop/MoreDocsDesktop.d.ts +4 -0
- package/dist/cjs/src/components/molecules/MoreDocsDesktop/MoreDocsDesktopProps.d.ts +5 -0
- package/dist/cjs/src/components/molecules/MoreDocsDesktop/index.d.ts +2 -0
- package/dist/cjs/src/components/molecules/MoreDocsMobile/MoreDocsMobile.d.ts +4 -0
- package/dist/cjs/src/components/molecules/MoreDocsMobile/MoreDocsMobileProps.d.ts +5 -0
- package/dist/cjs/src/components/molecules/MoreDocsMobile/index.d.ts +2 -0
- package/dist/cjs/src/components/molecules/PopularDocs/PopularDocs.d.ts +4 -0
- package/dist/cjs/src/components/molecules/PopularDocs/PopularDocsProps.d.ts +5 -0
- package/dist/cjs/src/components/molecules/PopularDocs/index.d.ts +2 -0
- package/dist/cjs/src/components/molecules/index.d.ts +3 -1
- package/dist/cjs/src/components/organisms/index.d.ts +0 -1
- package/dist/cjs/src/components/sections/MoreDocsSection/MoreDocsSection.d.ts +3 -0
- package/dist/cjs/src/components/sections/MoreDocsSection/MoreDocsSectionProps.d.ts +5 -0
- package/dist/cjs/src/components/sections/MoreDocsSection/index.d.ts +2 -0
- package/dist/cjs/src/components/sections/index.d.ts +1 -0
- package/dist/cjs/src/hooks/useIsMobileOrTable.d.ts +1 -0
- package/dist/cjs/src/index.d.ts +1 -0
- package/dist/cjs/src/utils/ProductCategory.d.ts +7 -0
- package/dist/cjs/src/utils/getCategoryIcons.d.ts +3 -0
- package/dist/esm/images/componentsSvg/SvgProps.d.ts +5 -0
- package/dist/esm/images/componentsSvg/generalCategories/BusinessIconCategory.d.ts +3 -0
- package/dist/esm/images/componentsSvg/generalCategories/EmploymentIconCategory.d.ts +3 -0
- package/dist/esm/images/componentsSvg/generalCategories/FinanceIconCategory.d.ts +3 -0
- package/dist/esm/images/componentsSvg/generalCategories/PersonalFamilyIconCategory.d.ts +3 -0
- package/dist/esm/images/componentsSvg/generalCategories/RealEstateIconCategory.d.ts +3 -0
- package/dist/esm/images/componentsSvg/generalCategories/index.d.ts +5 -0
- package/dist/esm/index.js +3 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/legal-lib-components.css +206 -65
- package/dist/esm/src/components/atoms/MoreDocsItem/MoreDocsItem.d.ts +4 -0
- package/dist/esm/src/components/atoms/MoreDocsItem/MoreDocsItemProps.d.ts +7 -0
- package/dist/esm/src/components/atoms/MoreDocsItem/index.d.ts +2 -0
- package/dist/esm/src/components/atoms/PopularDocsItem/PopularDocsItem.d.ts +4 -0
- package/dist/esm/src/components/atoms/PopularDocsItem/PopularDocsItemProps.d.ts +7 -0
- package/dist/esm/src/components/atoms/PopularDocsItem/index.d.ts +2 -0
- package/dist/esm/src/components/atoms/index.d.ts +2 -0
- package/dist/esm/src/components/molecules/MoreDocsDesktop/MoreDocsDesktop.d.ts +4 -0
- package/dist/esm/src/components/molecules/MoreDocsDesktop/MoreDocsDesktopProps.d.ts +5 -0
- package/dist/esm/src/components/molecules/MoreDocsDesktop/index.d.ts +2 -0
- package/dist/esm/src/components/molecules/MoreDocsMobile/MoreDocsMobile.d.ts +4 -0
- package/dist/esm/src/components/molecules/MoreDocsMobile/MoreDocsMobileProps.d.ts +5 -0
- package/dist/esm/src/components/molecules/MoreDocsMobile/index.d.ts +2 -0
- package/dist/esm/src/components/molecules/PopularDocs/PopularDocs.d.ts +4 -0
- package/dist/esm/src/components/molecules/PopularDocs/PopularDocsProps.d.ts +5 -0
- package/dist/esm/src/components/molecules/PopularDocs/index.d.ts +2 -0
- package/dist/esm/src/components/molecules/index.d.ts +3 -1
- package/dist/esm/src/components/organisms/index.d.ts +0 -1
- package/dist/esm/src/components/sections/MoreDocsSection/MoreDocsSection.d.ts +3 -0
- package/dist/esm/src/components/sections/MoreDocsSection/MoreDocsSectionProps.d.ts +5 -0
- package/dist/esm/src/components/sections/MoreDocsSection/index.d.ts +2 -0
- package/dist/esm/src/components/sections/index.d.ts +1 -0
- package/dist/esm/src/hooks/useIsMobileOrTable.d.ts +1 -0
- package/dist/esm/src/index.d.ts +1 -0
- package/dist/esm/src/utils/ProductCategory.d.ts +7 -0
- package/dist/esm/src/utils/getCategoryIcons.d.ts +3 -0
- package/dist/index.d.ts +56 -64
- package/package.json +1 -1
- package/dist/cjs/src/components/molecules/AccordionItem/AccordionItem.d.ts +0 -4
- package/dist/cjs/src/components/molecules/AccordionItem/AccordionItemProps.types.d.ts +0 -10
- package/dist/cjs/src/components/molecules/AccordionItem/index.d.ts +0 -1
- package/dist/cjs/src/components/organisms/Accordion/Accordion.context.d.ts +0 -43
- package/dist/cjs/src/components/organisms/Accordion/Accordion.d.ts +0 -4
- package/dist/cjs/src/components/organisms/Accordion/AccordionProps.types.d.ts +0 -13
- package/dist/cjs/src/components/organisms/Accordion/index.d.ts +0 -2
- package/dist/esm/src/components/molecules/AccordionItem/AccordionItem.d.ts +0 -4
- package/dist/esm/src/components/molecules/AccordionItem/AccordionItemProps.types.d.ts +0 -10
- package/dist/esm/src/components/molecules/AccordionItem/index.d.ts +0 -1
- package/dist/esm/src/components/organisms/Accordion/Accordion.context.d.ts +0 -43
- package/dist/esm/src/components/organisms/Accordion/Accordion.d.ts +0 -4
- package/dist/esm/src/components/organisms/Accordion/AccordionProps.types.d.ts +0 -13
- package/dist/esm/src/components/organisms/Accordion/index.d.ts +0 -2
package/dist/index.d.ts
CHANGED
|
@@ -276,12 +276,38 @@ interface MessageProps {
|
|
|
276
276
|
|
|
277
277
|
declare const Message: FC<MessageProps>;
|
|
278
278
|
|
|
279
|
+
declare enum ProductCategory {
|
|
280
|
+
Business = "Business",
|
|
281
|
+
Employment = "Employment",
|
|
282
|
+
RealEstate = "Real Estate",
|
|
283
|
+
Finance = "Finance",
|
|
284
|
+
PersonalFamily = "Personal and Family"
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
interface MoreDocsItemProps {
|
|
288
|
+
id: string;
|
|
289
|
+
title: string;
|
|
290
|
+
description: ProductCategory;
|
|
291
|
+
slug: string;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
declare const MoreDocsItem: React$1.FC<MoreDocsItemProps>;
|
|
295
|
+
|
|
279
296
|
interface PaypalButtonProps {
|
|
280
297
|
onClickButton: () => void;
|
|
281
298
|
}
|
|
282
299
|
|
|
283
300
|
declare const PaypalButton: FC<PaypalButtonProps>;
|
|
284
301
|
|
|
302
|
+
interface PopularDocsItemProps {
|
|
303
|
+
id: string;
|
|
304
|
+
title: string;
|
|
305
|
+
description: ProductCategory;
|
|
306
|
+
slug: string;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
declare const PopularDocsItem: React$1.FC<PopularDocsItemProps>;
|
|
310
|
+
|
|
285
311
|
interface ProgressBarProps {
|
|
286
312
|
currentStep: number;
|
|
287
313
|
allSteps: any[];
|
|
@@ -507,18 +533,6 @@ interface MessageInformationProps {
|
|
|
507
533
|
|
|
508
534
|
declare const MessageInformation: FC<MessageInformationProps>;
|
|
509
535
|
|
|
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
536
|
interface AlsoKnownAsProps {
|
|
523
537
|
title: string;
|
|
524
538
|
documents: string[];
|
|
@@ -693,6 +707,20 @@ interface MenuItemsSectionProps {
|
|
|
693
707
|
|
|
694
708
|
declare const MenuItemsSection: FC<MenuItemsSectionProps>;
|
|
695
709
|
|
|
710
|
+
interface MoreDocsDesktopProps {
|
|
711
|
+
title: string;
|
|
712
|
+
documents: MoreDocsItemProps[];
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
declare const MoreDocsDesktop: React$1.FC<MoreDocsDesktopProps>;
|
|
716
|
+
|
|
717
|
+
interface MoreDocsMobileProps {
|
|
718
|
+
title: string;
|
|
719
|
+
documents: MoreDocsItemProps[];
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
declare const MoreDocsMobile: React$1.FC<MoreDocsMobileProps>;
|
|
723
|
+
|
|
696
724
|
interface List {
|
|
697
725
|
onClick: () => void;
|
|
698
726
|
content: string;
|
|
@@ -733,6 +761,13 @@ interface PhoneContactBoxMobileProps {
|
|
|
733
761
|
|
|
734
762
|
declare const PhoneContactBoxMobile: React$1.FC<PhoneContactBoxMobileProps>;
|
|
735
763
|
|
|
764
|
+
interface PopularDocsProps {
|
|
765
|
+
title: string;
|
|
766
|
+
documents: PopularDocsItemProps[];
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
declare const PopularDocs: React$1.FC<PopularDocsProps>;
|
|
770
|
+
|
|
736
771
|
interface PricingCardProps {
|
|
737
772
|
order?: number;
|
|
738
773
|
subscriptionId?: string;
|
|
@@ -834,57 +869,6 @@ interface AboutUsContentProps {
|
|
|
834
869
|
|
|
835
870
|
declare const AboutUsContent: FC<AboutUsContentProps>;
|
|
836
871
|
|
|
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
872
|
interface ArticlesListProps {
|
|
889
873
|
articles: ArticleProps[];
|
|
890
874
|
}
|
|
@@ -1040,6 +1024,13 @@ interface LegalSectionProps {
|
|
|
1040
1024
|
|
|
1041
1025
|
declare const LegalSection: React$1.FC<LegalSectionProps>;
|
|
1042
1026
|
|
|
1027
|
+
interface MoreDocsSectionProps {
|
|
1028
|
+
title: string;
|
|
1029
|
+
documents: MoreDocsItemProps[];
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
declare const MoreDocsSection: React$1.FC<MoreDocsSectionProps>;
|
|
1033
|
+
|
|
1043
1034
|
interface PeopleSayAboutUsSectionProps {
|
|
1044
1035
|
title?: string;
|
|
1045
1036
|
contentTrustPilot: TrustPilotProps;
|
|
@@ -1144,7 +1135,8 @@ interface UseIsMobileOrTablePropsReturn {
|
|
|
1144
1135
|
isMobile: boolean;
|
|
1145
1136
|
isTablet: boolean;
|
|
1146
1137
|
load: boolean;
|
|
1138
|
+
isGtLandscapeTablets: boolean;
|
|
1147
1139
|
}
|
|
1148
1140
|
declare const useIsMobileOrTable: () => UseIsMobileOrTablePropsReturn;
|
|
1149
1141
|
|
|
1150
|
-
export { AboutUsContent, type AboutUsContentProps, AboutUsPage, type AboutUsPageProps, AboutUsSection, type AboutUsSectionProps,
|
|
1142
|
+
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, MoreDocsDesktop, type MoreDocsDesktopProps, MoreDocsItem, type MoreDocsItemProps, MoreDocsMobile, type MoreDocsMobileProps, MoreDocsSection, type MoreDocsSectionProps, NavBarDropDown, type NavBarDropDownProps, Pagination, type PaginationProps, PaypalButton, type PaypalButtonProps, PeopleSayAboutUsSection, type PeopleSayAboutUsSectionProps, PhoneContactBoxDesktop, type PhoneContactBoxDesktopProps, PhoneContactBoxMobile, type PhoneContactBoxMobileProps, PopularDocs, PopularDocsItem, type PopularDocsItemProps, type PopularDocsProps, PricingCard, type PricingCardProps, ProductCategory, 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,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 +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,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,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 +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,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 {};
|