dt-shared-front 2.2.65 → 2.2.67
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-control/form-control.d.ts +2 -1
- package/dist/components/switch/switch.d.ts +6 -0
- package/dist/components/switch/switch.stories.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/main.css +38 -38
- package/dist/main.css.map +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,8 @@ declare type IFormControlProps<C extends ElementType> = {
|
|
|
7
7
|
label?: string;
|
|
8
8
|
component?: C;
|
|
9
9
|
onChange?: any;
|
|
10
|
+
errorPosition?: 'absolute' | 'relative' | 'static' | 'initial' | 'inherit';
|
|
10
11
|
};
|
|
11
12
|
export declare const isRequiredField: (validationSchema: any, name: any) => any;
|
|
12
|
-
export declare function FormControl<T extends ElementType>({ name, label, component, onChange, ...props }: PropsWithChildren<IFormControlProps<T>>): React.JSX.Element;
|
|
13
|
+
export declare function FormControl<T extends ElementType>({ name, label, component, onChange, errorPosition, ...props }: PropsWithChildren<IFormControlProps<T>>): React.JSX.Element;
|
|
13
14
|
export {};
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
declare enum ESwitchSize {
|
|
3
|
+
small = "small",
|
|
4
|
+
medium = "medium",
|
|
5
|
+
large = "large"
|
|
6
|
+
}
|
|
2
7
|
declare type ISwitchProps = {
|
|
3
8
|
value?: boolean;
|
|
4
9
|
name?: string;
|
|
@@ -6,6 +11,7 @@ declare type ISwitchProps = {
|
|
|
6
11
|
className?: string;
|
|
7
12
|
onChange?: (value: boolean) => void;
|
|
8
13
|
disabled?: boolean;
|
|
14
|
+
size?: keyof typeof ESwitchSize;
|
|
9
15
|
};
|
|
10
16
|
export declare const Switch: (props: ISwitchProps) => React.JSX.Element;
|
|
11
17
|
export {};
|