@eliseubatista99/react-scaffold-core 1.1.18 → 1.1.20
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/components/form/form.d.ts +7 -1
- package/dist/components/form/stories/form.stories.d.ts +7 -4
- package/dist/components/pageLayout/pageLayout.d.ts +1 -0
- package/dist/components/pageLayout/pageLayout.hook.d.ts +7 -0
- package/dist/components/pageLayout/stories/pageLayout.stories.d.ts +1 -0
- package/dist/index.cjs.js +11 -11
- package/dist/index.es.js +601 -546
- package/package.json +1 -1
|
@@ -4,10 +4,16 @@ export interface FormSubmitButton {
|
|
|
4
4
|
styles?: React.CSSProperties;
|
|
5
5
|
content: React.ReactNode;
|
|
6
6
|
}
|
|
7
|
+
export interface FormSubmitSection {
|
|
8
|
+
renderBeforeSubmitButton?: React.ReactNode;
|
|
9
|
+
submitButton: FormSubmitButton;
|
|
10
|
+
renderAfterSubmitButton?: React.ReactNode;
|
|
11
|
+
styles?: React.CSSProperties;
|
|
12
|
+
}
|
|
7
13
|
export interface FormProps {
|
|
8
14
|
children?: React.ReactNode;
|
|
9
15
|
configurations?: FormFieldConfiguration[];
|
|
10
|
-
|
|
16
|
+
submitSection: FormSubmitSection;
|
|
11
17
|
onMount?: (data: FormFieldOutputData[], hasErrors?: boolean) => Promise<void>;
|
|
12
18
|
onPreSubmit?: () => void;
|
|
13
19
|
onSubmit: (data: FormFieldOutputData[], hasErrors?: boolean) => Promise<void>;
|
|
@@ -19,10 +19,12 @@ declare const meta: {
|
|
|
19
19
|
childrenStyles: {
|
|
20
20
|
gap: string;
|
|
21
21
|
};
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
submitSection: {
|
|
23
|
+
submitButton: {
|
|
24
|
+
content: import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
styles: {
|
|
26
|
+
marginTop: string;
|
|
27
|
+
};
|
|
26
28
|
};
|
|
27
29
|
};
|
|
28
30
|
onSubmit: (_: import('../../..').FormFieldOutputData[]) => Promise<void>;
|
|
@@ -36,3 +38,4 @@ declare const meta: {
|
|
|
36
38
|
export default meta;
|
|
37
39
|
type Story = StoryObj<typeof meta>;
|
|
38
40
|
export declare const Default: Story;
|
|
41
|
+
export declare const WithAnotherButton: Story;
|
|
@@ -6,6 +6,7 @@ export interface PageLayoutHeaderAndFooterProps {
|
|
|
6
6
|
export interface PageLayoutProps {
|
|
7
7
|
header?: PageLayoutHeaderAndFooterProps;
|
|
8
8
|
footer?: PageLayoutHeaderAndFooterProps;
|
|
9
|
+
sidebar?: Omit<PageLayoutHeaderAndFooterProps, "visibility">;
|
|
9
10
|
floatingContent?: React.ReactNode;
|
|
10
11
|
allowScroll?: boolean;
|
|
11
12
|
reserveSpaceForScrollbar?: boolean;
|
|
@@ -17,6 +17,13 @@ export declare const usePageLayoutHelper: (props: PageLayoutProps) => {
|
|
|
17
17
|
visibility?: "always" | "fixed";
|
|
18
18
|
styles?: React.CSSProperties;
|
|
19
19
|
};
|
|
20
|
+
sidebar: {
|
|
21
|
+
width: number;
|
|
22
|
+
visible: boolean;
|
|
23
|
+
ref: React.RefObject<HTMLDivElement | null>;
|
|
24
|
+
styles?: React.CSSProperties;
|
|
25
|
+
content?: React.ReactNode;
|
|
26
|
+
};
|
|
20
27
|
page: {
|
|
21
28
|
extraHeight: number;
|
|
22
29
|
};
|
|
@@ -12,6 +12,7 @@ declare const meta: {
|
|
|
12
12
|
export default meta;
|
|
13
13
|
type Story = StoryObj<typeof meta>;
|
|
14
14
|
export declare const Default: Story;
|
|
15
|
+
export declare const WithSidebar: Story;
|
|
15
16
|
export declare const WithHeaderAlwaysVisible: Story;
|
|
16
17
|
export declare const WithFixedHeader: Story;
|
|
17
18
|
export declare const WithFooterAlwaysVisible: Story;
|