elseware-ui 2.18.2 → 2.19.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/build/components/data-display/index.d.ts +1 -0
- package/build/components/data-display/progress-bar/ProgressBar.d.ts +11 -0
- package/build/components/data-display/progress-bar/index.d.ts +1 -0
- package/build/components/data-entry/form/Form.d.ts +6 -3
- package/build/components/data-entry/form/FormObserver.d.ts +9 -0
- package/build/index.es.js +48 -17
- package/build/index.js +48 -16
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Variant, Size } from "../../../data/enums";
|
|
2
|
+
export interface ProgressBarProps {
|
|
3
|
+
value: number;
|
|
4
|
+
variant?: keyof typeof Variant;
|
|
5
|
+
size?: keyof typeof Size;
|
|
6
|
+
showLabel?: boolean;
|
|
7
|
+
label?: string;
|
|
8
|
+
labelPlacement?: "top" | "overlay";
|
|
9
|
+
styles?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const ProgressBar: ({ value, variant, size, showLabel, label, labelPlacement, styles, }: ProgressBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ProgressBar";
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
export interface FormProps {
|
|
3
|
-
initialValues?:
|
|
3
|
+
initialValues?: Record<string, any>;
|
|
4
4
|
validationSchema?: object;
|
|
5
5
|
enableReinitialize?: boolean;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
styles?: string;
|
|
8
|
-
onSubmit: any;
|
|
8
|
+
onSubmit: (values: any) => void;
|
|
9
|
+
onChange?: (values: Record<string, any>, meta?: {
|
|
10
|
+
changed: Record<string, any>;
|
|
11
|
+
}) => void;
|
|
9
12
|
}
|
|
10
|
-
export declare const Form: ({ initialValues, validationSchema, enableReinitialize, children, styles, onSubmit, }: FormProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const Form: ({ initialValues, validationSchema, enableReinitialize, children, styles, onSubmit, onChange, }: FormProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FormikProps } from "formik";
|
|
2
|
+
interface FormObserverProps {
|
|
3
|
+
formik: FormikProps<Record<string, any>>;
|
|
4
|
+
onChange?: (values: Record<string, any>, meta?: {
|
|
5
|
+
changed: Record<string, any>;
|
|
6
|
+
}) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const FormObserver: ({ formik, onChange }: FormObserverProps) => null;
|
|
9
|
+
export default FormObserver;
|