@zealicsolutions/web-ui 0.3.19 → 0.3.20
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/containers/Container.d.ts +38 -2
- package/dist/cjs/src/containers/FormStepContainer.d.ts +4 -2
- package/dist/cjs/src/contexts/FormStepContext/FormStepContext.d.ts +12 -0
- package/dist/cjs/src/contexts/FormStepContext/FormStepContextProvider.d.ts +5 -0
- package/dist/cjs/src/contexts/OrganismContext/OrganismContext.d.ts +8 -0
- package/dist/cjs/src/contexts/OrganismContext/OrganismContextProvider.d.ts +6 -0
- package/dist/cjs/src/contexts/OrganismContext/utils.d.ts +3 -0
- package/dist/cjs/src/contexts/hooks/index.d.ts +4 -0
- package/dist/cjs/src/contexts/hooks/useFormStepContext.d.ts +1 -0
- package/dist/cjs/src/contexts/hooks/useOrganismContext.d.ts +1 -0
- package/dist/cjs/src/organisms/FeedContent/styles.d.ts +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/containers/Container.d.ts +38 -2
- package/dist/esm/src/containers/FormStepContainer.d.ts +4 -2
- package/dist/esm/src/contexts/FormStepContext/FormStepContext.d.ts +12 -0
- package/dist/esm/src/contexts/FormStepContext/FormStepContextProvider.d.ts +5 -0
- package/dist/esm/src/contexts/OrganismContext/OrganismContext.d.ts +8 -0
- package/dist/esm/src/contexts/OrganismContext/OrganismContextProvider.d.ts +6 -0
- package/dist/esm/src/contexts/OrganismContext/utils.d.ts +3 -0
- package/dist/esm/src/contexts/hooks/index.d.ts +4 -0
- package/dist/esm/src/contexts/hooks/useFormStepContext.d.ts +1 -0
- package/dist/esm/src/contexts/hooks/useOrganismContext.d.ts +1 -0
- package/dist/esm/src/organisms/FeedContent/styles.d.ts +1 -1
- package/dist/index.d.ts +42 -5
- package/package.json +1 -1
@@ -1,4 +1,40 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ContainerComponentProps, ContainerProps } from 'containers';
|
3
|
-
export declare const Container: ({ children, wide, compact, type, props }:
|
4
|
-
|
3
|
+
export declare const Container: ({ children, wide, compact, type, props, id, }: Partial<{
|
4
|
+
type: import("containers").ContainerType;
|
5
|
+
wide: Partial<{
|
6
|
+
containerStyle: import("styled-components").CSSProperties;
|
7
|
+
containerProps: Partial<{
|
8
|
+
position: import("containers").ContainerPositionType;
|
9
|
+
scrollBehaviour: import("containers").ContainerScrollBehaviourType;
|
10
|
+
cornerRadius: number;
|
11
|
+
styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
12
|
+
formProps: import("containers").FormContainerProps;
|
13
|
+
formStepProps: import("containers").FormStepContainerProps;
|
14
|
+
}>;
|
15
|
+
}>;
|
16
|
+
compact: Partial<{
|
17
|
+
containerStyle: import("styled-components").CSSProperties;
|
18
|
+
containerProps: Partial<{
|
19
|
+
position: import("containers").ContainerPositionType;
|
20
|
+
scrollBehaviour: import("containers").ContainerScrollBehaviourType;
|
21
|
+
cornerRadius: number;
|
22
|
+
styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
23
|
+
formProps: import("containers").FormContainerProps;
|
24
|
+
formStepProps: import("containers").FormStepContainerProps;
|
25
|
+
}>;
|
26
|
+
}>;
|
27
|
+
props: Partial<{
|
28
|
+
position: import("containers").ContainerPositionType;
|
29
|
+
scrollBehaviour: import("containers").ContainerScrollBehaviourType;
|
30
|
+
cornerRadius: number;
|
31
|
+
styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
32
|
+
formProps: import("containers").FormContainerProps;
|
33
|
+
formStepProps: import("containers").FormStepContainerProps;
|
34
|
+
}>;
|
35
|
+
}> & {
|
36
|
+
children?: import("react").ReactNode;
|
37
|
+
} & {
|
38
|
+
id: string;
|
39
|
+
}) => JSX.Element;
|
40
|
+
export declare const ContainerComponent: ({ type, items, config, tabsProps, id, }: ContainerComponentProps) => JSX.Element | null;
|
@@ -1,4 +1,6 @@
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
2
2
|
import { FormStepContainerProps } from 'containers';
|
3
|
-
export declare type StepContainerProps = PropsWithChildren<Partial<FormStepContainerProps
|
4
|
-
|
3
|
+
export declare type StepContainerProps = PropsWithChildren<Partial<FormStepContainerProps>> & {
|
4
|
+
id: string;
|
5
|
+
};
|
6
|
+
export declare const FormStepContainer: ({ formStepName, order, conditionConfig, id, }: StepContainerProps) => JSX.Element | null;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
2
|
+
export declare type FormStepContextType = {
|
3
|
+
steps: number;
|
4
|
+
currentStep: number;
|
5
|
+
goToNextStep: () => void;
|
6
|
+
goToPrevStep: () => void;
|
7
|
+
reset: () => void;
|
8
|
+
canGoToNextStep: boolean;
|
9
|
+
canGoToPrevStep: boolean;
|
10
|
+
setStep: Dispatch<SetStateAction<number>>;
|
11
|
+
};
|
12
|
+
export declare const FormStepContext: import("react").Context<FormStepContextType>;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
2
|
+
export declare type FormStepContextProviderProps = PropsWithChildren<Partial<{
|
3
|
+
initSteps: number;
|
4
|
+
}>>;
|
5
|
+
export declare const FormStepContextProvider: ({ initSteps, children, }: FormStepContextProviderProps) => JSX.Element;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { ContainerComponentProps, Molecule } from 'containers';
|
3
|
+
import { GroupedMoleculesByStep } from './utils';
|
4
|
+
export declare type OrganismContextType = {
|
5
|
+
items: (ContainerComponentProps | Molecule)[];
|
6
|
+
groupedMoleculeByStep: GroupedMoleculesByStep;
|
7
|
+
};
|
8
|
+
export declare const OrganismContext: import("react").Context<OrganismContextType>;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
2
|
+
import { ContainerComponentProps, Molecule } from 'containers';
|
3
|
+
export declare type FormStepContextProviderProps = PropsWithChildren<Partial<{
|
4
|
+
initItems: (ContainerComponentProps | Molecule)[];
|
5
|
+
}>>;
|
6
|
+
export declare const OrganismContextProvider: ({ initItems, children, }: FormStepContextProviderProps) => JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const useFormStepContext: () => import("contexts/FormStepContext/FormStepContext").FormStepContextType;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const useOrganismContext: () => import("contexts/OrganismContext/OrganismContext").OrganismContextType;
|
@@ -15,5 +15,5 @@ export declare const CloseButton: import("styled-components").StyledComponent<"d
|
|
15
15
|
disabled?: boolean | undefined;
|
16
16
|
} & {
|
17
17
|
children?: import("react").ReactNode;
|
18
|
-
} & Pick<FeedContentProps, "
|
18
|
+
} & Pick<FeedContentProps, "feedContentTemplate" | "withCloseIcon">, never>;
|
19
19
|
export declare const PdfWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, Pick<FeedContentProps, "showDefaultDocumentStyles">, never>;
|
package/dist/index.d.ts
CHANGED
@@ -37,13 +37,14 @@ import { LoginFields as LoginFields$1 } from 'organisms/LoginForm/types';
|
|
37
37
|
import { AnnotationsList as AnnotationsList$1 } from 'contexts/MlrRichTextViewerContext/types';
|
38
38
|
import * as contexts_MlrRichTextViewerContext_MlrRichTextViewerContext from 'contexts/MlrRichTextViewerContext/MlrRichTextViewerContext';
|
39
39
|
import * as contexts_ButtonActionsContext_ButtonActionsContext from 'contexts/ButtonActionsContext/ButtonActionsContext';
|
40
|
-
import
|
40
|
+
import * as containers from 'containers';
|
41
|
+
import { ContainerComponentProps as ContainerComponentProps$1, ConditionConfig as ConditionConfig$1, Molecule as Molecule$1 } from 'containers';
|
41
42
|
export * from 'helpers/constants';
|
42
43
|
import { CheckboxInternalConfigProps as CheckboxInternalConfigProps$1 } from 'atoms/Checkbox/types';
|
43
44
|
import { CustomDescendant } from 'atoms/RichTextViewer/types';
|
44
45
|
import { ConsentCaptureProps } from 'molecules/Consent/ConsentCapture';
|
45
46
|
import * as containers_types_types from 'containers/types/types';
|
46
|
-
import { ContainerProps as ContainerProps$
|
47
|
+
import { ContainerProps as ContainerProps$1 } from 'containers/types/types';
|
47
48
|
|
48
49
|
declare type TouchableOpacityProps = PropsWithChildren<{
|
49
50
|
activeOpacity?: number;
|
@@ -1417,8 +1418,44 @@ declare type Consent = {
|
|
1417
1418
|
};
|
1418
1419
|
declare const Consent: <T extends string>({ text, consentCaptureProps, containerStyles, clearStyles, }: ConsentProps<T>) => JSX.Element;
|
1419
1420
|
|
1420
|
-
declare const Container: ({ children, wide, compact, type, props }:
|
1421
|
-
|
1421
|
+
declare const Container: ({ children, wide, compact, type, props, id, }: Partial<{
|
1422
|
+
type: containers.ContainerType;
|
1423
|
+
wide: Partial<{
|
1424
|
+
containerStyle: styled_components.CSSProperties;
|
1425
|
+
containerProps: Partial<{
|
1426
|
+
position: containers.ContainerPositionType;
|
1427
|
+
scrollBehaviour: containers.ContainerScrollBehaviourType;
|
1428
|
+
cornerRadius: number;
|
1429
|
+
styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
|
1430
|
+
formProps: containers.FormContainerProps;
|
1431
|
+
formStepProps: containers.FormStepContainerProps;
|
1432
|
+
}>;
|
1433
|
+
}>;
|
1434
|
+
compact: Partial<{
|
1435
|
+
containerStyle: styled_components.CSSProperties;
|
1436
|
+
containerProps: Partial<{
|
1437
|
+
position: containers.ContainerPositionType;
|
1438
|
+
scrollBehaviour: containers.ContainerScrollBehaviourType;
|
1439
|
+
cornerRadius: number;
|
1440
|
+
styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
|
1441
|
+
formProps: containers.FormContainerProps;
|
1442
|
+
formStepProps: containers.FormStepContainerProps;
|
1443
|
+
}>;
|
1444
|
+
}>;
|
1445
|
+
props: Partial<{
|
1446
|
+
position: containers.ContainerPositionType;
|
1447
|
+
scrollBehaviour: containers.ContainerScrollBehaviourType;
|
1448
|
+
cornerRadius: number;
|
1449
|
+
styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
|
1450
|
+
formProps: containers.FormContainerProps;
|
1451
|
+
formStepProps: containers.FormStepContainerProps;
|
1452
|
+
}>;
|
1453
|
+
}> & {
|
1454
|
+
children?: React$1.ReactNode;
|
1455
|
+
} & {
|
1456
|
+
id: string;
|
1457
|
+
}) => JSX.Element;
|
1458
|
+
declare const ContainerComponent: ({ type, items, config, tabsProps, id, }: ContainerComponentProps$1) => JSX.Element | null;
|
1422
1459
|
|
1423
1460
|
declare type ActionTypes = 'link' | 'popup' | 'drawer' | 'download' | 'submit' | 'reset' | 'destroy';
|
1424
1461
|
declare type DownloadFile = {
|
@@ -1696,7 +1733,7 @@ declare type ConditionConfig = Nullable<{
|
|
1696
1733
|
criteriaList: ConditionCriteria[];
|
1697
1734
|
}>;
|
1698
1735
|
|
1699
|
-
declare const ContainerWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, Pick<ContainerProps$
|
1736
|
+
declare const ContainerWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, Pick<ContainerProps$1, "type"> & {
|
1700
1737
|
containerProps?: Partial<{
|
1701
1738
|
position: containers_types_types.ContainerPositionType;
|
1702
1739
|
scrollBehaviour: containers_types_types.ContainerScrollBehaviourType;
|