@zealicsolutions/web-ui 0.3.19 → 0.3.21
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/contexts/index.d.ts +2 -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/contexts/index.d.ts +2 -0
- package/dist/esm/src/organisms/FeedContent/styles.d.ts +1 -1
- package/dist/index.d.ts +66 -16
- 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;
|
@@ -5,3 +5,5 @@ export * from './hooks/useMlrRichTextViewerContext';
|
|
5
5
|
export * from './hooks/useButtonActionsContext';
|
6
6
|
export * from './ButtonActionsContext/ButtonActionsContext';
|
7
7
|
export * from './ButtonActionsContext/ButtonActionsContextProvider';
|
8
|
+
export * from './OrganismContext/OrganismContext';
|
9
|
+
export * from './OrganismContext/OrganismContextProvider';
|
@@ -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>;
|