@zealicsolutions/web-ui 0.3.1 → 0.3.2
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/atoms/RadioButtons/RadioButtons.d.ts +40 -21
- package/dist/cjs/src/atoms/RadioButtons/RadioButtons.stories.d.ts +22 -8
- package/dist/cjs/src/atoms/RadioButtons/RadioOption.d.ts +6 -3
- package/dist/cjs/src/atoms/RadioButtons/helpers.d.ts +9 -3
- package/dist/cjs/src/atoms/RadioButtons/styles.d.ts +7 -7
- package/dist/cjs/src/atoms/Select/Select.d.ts +17 -14
- package/dist/cjs/src/atoms/Select/Select.stories.d.ts +14 -1
- package/dist/cjs/src/molecules/CheckboxField/CheckboxGroup.d.ts +5 -1
- package/dist/cjs/src/molecules/RadioButtonField/RadioButtonField.d.ts +41 -16
- package/dist/cjs/src/molecules/RadioButtonField/RadioButtonField.stories.d.ts +34 -10
- package/dist/cjs/src/molecules/SelectField/SelectField.stories.d.ts +14 -1
- package/dist/cjs/src/typescript.d.ts +3 -0
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/atoms/RadioButtons/RadioButtons.d.ts +40 -21
- package/dist/esm/src/atoms/RadioButtons/RadioButtons.stories.d.ts +22 -8
- package/dist/esm/src/atoms/RadioButtons/RadioOption.d.ts +6 -3
- package/dist/esm/src/atoms/RadioButtons/helpers.d.ts +9 -3
- package/dist/esm/src/atoms/RadioButtons/styles.d.ts +7 -7
- package/dist/esm/src/atoms/Select/Select.d.ts +17 -14
- package/dist/esm/src/atoms/Select/Select.stories.d.ts +14 -1
- package/dist/esm/src/molecules/CheckboxField/CheckboxGroup.d.ts +5 -1
- package/dist/esm/src/molecules/RadioButtonField/RadioButtonField.d.ts +41 -16
- package/dist/esm/src/molecules/RadioButtonField/RadioButtonField.stories.d.ts +34 -10
- package/dist/esm/src/molecules/SelectField/SelectField.stories.d.ts +14 -1
- package/dist/esm/src/typescript.d.ts +3 -0
- package/dist/index.d.ts +99 -53
- package/package.json +1 -1
@@ -1,37 +1,56 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
+
import { RadioGroup } from '@mui/material';
|
3
|
+
import { RefCallBack } from 'react-hook-form/dist/types';
|
2
4
|
import { SizesTypes, ThemeColors } from 'theme';
|
3
|
-
import { StylesType } from 'typescript';
|
4
|
-
|
5
|
+
import type { Callback, OverrideStyles, StyledTransientProps, StylesType } from 'typescript';
|
6
|
+
import { SelectOption } from '../Select/Select';
|
7
|
+
export declare type RadioButtonInternalConfigProps = Partial<{
|
5
8
|
selectedRadioOptionBackgroundColor: ThemeColors | string;
|
6
9
|
selectedRadioOptionIndicatorColor: ThemeColors | string;
|
7
10
|
buttonPadding: number;
|
8
11
|
textPadding: number;
|
9
12
|
styles: StylesType;
|
10
13
|
wrapperStyles: StylesType;
|
11
|
-
buttonOptionSpacing
|
12
|
-
|
13
|
-
|
14
|
-
id: T;
|
15
|
-
label?: string;
|
16
|
-
error?: boolean;
|
17
|
-
disabled?: boolean;
|
18
|
-
isRichText?: boolean;
|
19
|
-
};
|
14
|
+
buttonOptionSpacing: SizesTypes;
|
15
|
+
radioGroupWrapperStyles: StylesType;
|
16
|
+
}>;
|
20
17
|
export declare type RadioButtonsProps<T extends string> = Partial<{
|
21
|
-
|
22
|
-
|
18
|
+
ref: RefCallBack;
|
19
|
+
name: string;
|
23
20
|
value: T;
|
21
|
+
options: SelectOption[];
|
22
|
+
onBlur: Callback;
|
23
|
+
onChange: (value: T) => void;
|
24
24
|
isRow: boolean;
|
25
|
-
|
26
|
-
|
25
|
+
isError: boolean;
|
26
|
+
disabled: boolean;
|
27
|
+
isEditMode: boolean;
|
28
|
+
isRichText: boolean;
|
27
29
|
internalConfig: RadioButtonInternalConfigProps;
|
28
30
|
}>;
|
29
|
-
export declare const RadioButtons: <T extends string>({ value,
|
30
|
-
|
31
|
-
|
31
|
+
export declare const RadioButtons: <T extends string>({ ref, name, value, options, onBlur, onChange, isRow, isError, disabled, isEditMode, isRichText, internalConfig, }: Partial<{
|
32
|
+
ref: RefCallBack;
|
33
|
+
name: string;
|
32
34
|
value: T;
|
35
|
+
options: SelectOption[];
|
36
|
+
onBlur: Callback;
|
37
|
+
onChange: (value: T) => void;
|
33
38
|
isRow: boolean;
|
34
|
-
|
35
|
-
|
36
|
-
|
39
|
+
isError: boolean;
|
40
|
+
disabled: boolean;
|
41
|
+
isEditMode: boolean;
|
42
|
+
isRichText: boolean;
|
43
|
+
internalConfig: Partial<{
|
44
|
+
selectedRadioOptionBackgroundColor: ThemeColors | string;
|
45
|
+
selectedRadioOptionIndicatorColor: ThemeColors | string;
|
46
|
+
buttonPadding: number;
|
47
|
+
textPadding: number;
|
48
|
+
styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
49
|
+
wrapperStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
50
|
+
buttonOptionSpacing: SizesTypes;
|
51
|
+
radioGroupWrapperStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
52
|
+
}>;
|
37
53
|
}>) => JSX.Element;
|
54
|
+
export declare const RadioGroupWrapper: import("styled-components").StyledComponent<typeof RadioGroup, import("styled-components").DefaultTheme, StyledTransientProps<{
|
55
|
+
isRow: boolean;
|
56
|
+
}> & OverrideStyles, never>;
|
@@ -1,17 +1,31 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import type {
|
2
|
+
import type { StoryFn } from '@storybook/react';
|
3
3
|
import { RadioButtons as RadioButtonsComponent } from './RadioButtons';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
|
-
component: <T extends string>({ value,
|
7
|
-
|
8
|
-
|
6
|
+
component: <T extends string>({ ref, name, value, options, onBlur, onChange, isRow, isError, disabled, isEditMode, isRichText, internalConfig, }: Partial<{
|
7
|
+
ref: import("react-hook-form").RefCallBack;
|
8
|
+
name: string;
|
9
9
|
value: T;
|
10
|
+
options: import("..").SelectOption[];
|
11
|
+
onBlur: import("../../typescript").Callback;
|
12
|
+
onChange: (value: T) => void;
|
10
13
|
isRow: boolean;
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
+
isError: boolean;
|
15
|
+
disabled: boolean;
|
16
|
+
isEditMode: boolean;
|
17
|
+
isRichText: boolean;
|
18
|
+
internalConfig: Partial<{
|
19
|
+
selectedRadioOptionBackgroundColor: string;
|
20
|
+
selectedRadioOptionIndicatorColor: string;
|
21
|
+
buttonPadding: number;
|
22
|
+
textPadding: number;
|
23
|
+
styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
24
|
+
wrapperStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
25
|
+
buttonOptionSpacing: import("theme").SizesTypes;
|
26
|
+
radioGroupWrapperStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
27
|
+
}>;
|
14
28
|
}>) => JSX.Element;
|
15
29
|
};
|
16
30
|
export default _default;
|
17
|
-
export declare const RadioButtons:
|
31
|
+
export declare const RadioButtons: StoryFn<typeof RadioButtonsComponent>;
|
@@ -1,9 +1,12 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { RadioButtonInternalConfigProps,
|
2
|
+
import { RadioButtonInternalConfigProps, SelectOption } from 'atoms';
|
3
3
|
declare type RadioOptionProps = {
|
4
|
-
|
4
|
+
option: SelectOption;
|
5
|
+
isError?: boolean;
|
6
|
+
disabled?: boolean;
|
5
7
|
isEditMode?: boolean;
|
8
|
+
isRichText?: boolean;
|
6
9
|
internalConfig?: RadioButtonInternalConfigProps;
|
7
10
|
};
|
8
|
-
export declare const RadioOption: ({
|
11
|
+
export declare const RadioOption: ({ option, isError, disabled, isEditMode, isRichText, internalConfig, }: RadioOptionProps) => JSX.Element;
|
9
12
|
export {};
|
@@ -1,9 +1,15 @@
|
|
1
|
-
import { RadioButtonInternalConfigProps
|
2
|
-
import { StylesType } from 'typescript';
|
1
|
+
import { RadioButtonInternalConfigProps } from 'atoms';
|
2
|
+
import type { StylesType } from 'typescript';
|
3
3
|
declare type RadioOptionStylesConfig = {
|
4
4
|
textStyles: StylesType;
|
5
|
+
groupWrapperStyles: StylesType;
|
5
6
|
radioIconWrapperStyles: StylesType;
|
6
7
|
radioLabelWrapperStyles: StylesType;
|
7
8
|
};
|
8
|
-
|
9
|
+
declare type GetRadioOptionStylesProps = Partial<{
|
10
|
+
isError: boolean;
|
11
|
+
disabled: boolean;
|
12
|
+
internalConfig: RadioButtonInternalConfigProps;
|
13
|
+
}>;
|
14
|
+
export declare const getRadioOptionStyles: ({ isError, disabled, internalConfig, }: GetRadioOptionStylesProps) => RadioOptionStylesConfig;
|
9
15
|
export {};
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { FormControlLabel, Radio } from '@mui/material';
|
2
|
-
import { OverrideStyles } from 'typescript';
|
3
|
-
export declare const RadioLabelWrapper: import("styled-components").StyledComponent<typeof FormControlLabel, import("styled-components").DefaultTheme, {
|
4
|
-
|
5
|
-
} & OverrideStyles, never>;
|
6
|
-
export declare const RadioIconWrapper: import("styled-components").StyledComponent<typeof Radio, import("styled-components").DefaultTheme, {
|
2
|
+
import type { OverrideStyles, StyledTransientProps } from 'typescript';
|
3
|
+
export declare const RadioLabelWrapper: import("styled-components").StyledComponent<typeof FormControlLabel, import("styled-components").DefaultTheme, StyledTransientProps<{
|
4
|
+
isError?: boolean | undefined;
|
5
|
+
}> & OverrideStyles, never>;
|
6
|
+
export declare const RadioIconWrapper: import("styled-components").StyledComponent<typeof Radio, import("styled-components").DefaultTheme, StyledTransientProps<{
|
7
7
|
disabled: boolean;
|
8
|
-
|
9
|
-
} & OverrideStyles, never>;
|
8
|
+
isError?: boolean | undefined;
|
9
|
+
}> & OverrideStyles, never>;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ThemeColors } from 'theme';
|
3
|
-
import { StylesType } from 'typescript';
|
3
|
+
import type { Callback, StylesType } from 'typescript';
|
4
|
+
import { RefCallBack } from 'react-hook-form/dist/types';
|
4
5
|
export declare type SelectOption = {
|
5
6
|
id: string;
|
6
7
|
label: string;
|
@@ -15,16 +16,18 @@ export declare type SelectInternalConfigurationOptions = {
|
|
15
16
|
wrapperStyles: StylesType;
|
16
17
|
styles: StylesType;
|
17
18
|
};
|
18
|
-
export declare type SelectProps = {
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
19
|
+
export declare type SelectProps = Partial<{
|
20
|
+
ref: RefCallBack;
|
21
|
+
onBlur: Callback;
|
22
|
+
value: string;
|
23
|
+
optionsPresentation: boolean;
|
24
|
+
onChange: (value: string) => void;
|
25
|
+
placeholder: string;
|
26
|
+
disabled: boolean;
|
27
|
+
options: SelectOption[];
|
28
|
+
isError: boolean;
|
29
|
+
isEditMode: boolean;
|
30
|
+
selectInternalConfig: SelectInternalConfigurationOptions;
|
31
|
+
isRichText: boolean;
|
32
|
+
}>;
|
33
|
+
export declare const Select: ({ ref, onBlur, onChange, value, placeholder, options, disabled, optionsPresentation, isError, selectInternalConfig, isRichText, }: SelectProps) => JSX.Element;
|
@@ -3,7 +3,20 @@ import { StoryFn } from '@storybook/react';
|
|
3
3
|
import { SelectProps } from './Select';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
|
-
component: ({ onChange, value, placeholder, options, disabled, optionsPresentation, isError, selectInternalConfig, isRichText, }:
|
6
|
+
component: ({ ref, onBlur, onChange, value, placeholder, options, disabled, optionsPresentation, isError, selectInternalConfig, isRichText, }: Partial<{
|
7
|
+
ref: import("react-hook-form").RefCallBack;
|
8
|
+
onBlur: import("../../typescript").Callback;
|
9
|
+
value: string;
|
10
|
+
optionsPresentation: boolean;
|
11
|
+
onChange: (value: string) => void;
|
12
|
+
placeholder: string;
|
13
|
+
disabled: boolean;
|
14
|
+
options: import("./Select").SelectOption[];
|
15
|
+
isError: boolean;
|
16
|
+
isEditMode: boolean;
|
17
|
+
selectInternalConfig: import("./Select").SelectInternalConfigurationOptions;
|
18
|
+
isRichText: boolean;
|
19
|
+
}>) => JSX.Element;
|
7
20
|
};
|
8
21
|
export default _default;
|
9
22
|
export declare const Select: StoryFn<SelectProps>;
|
@@ -1,7 +1,11 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
+
import { RefCallBack } from 'react-hook-form/dist/types';
|
3
|
+
import type { Callback } from 'typescript';
|
2
4
|
import { CheckboxesProps } from './CheckboxField';
|
3
5
|
export declare type CheckboxGroupProps = Partial<{
|
6
|
+
ref: RefCallBack;
|
7
|
+
onBlur: Callback;
|
4
8
|
onChange: (checkedIds: string[]) => void;
|
5
9
|
checkboxesProps: CheckboxesProps;
|
6
10
|
}>;
|
7
|
-
export declare const CheckboxGroup: ({ onChange, checkboxesProps }: CheckboxGroupProps) => JSX.Element;
|
11
|
+
export declare const CheckboxGroup: ({ ref, onBlur, onChange, checkboxesProps }: CheckboxGroupProps) => JSX.Element;
|
@@ -1,35 +1,60 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { RadioButtonsProps } from 'atoms';
|
2
|
+
import { RadioButtonInternalConfigProps, RadioButtonsProps } from 'atoms';
|
3
3
|
import { Control, ControllerProps } from 'react-hook-form/dist/types';
|
4
|
-
import {
|
4
|
+
import type { StylesType } from 'typescript';
|
5
5
|
import { FieldLabelsProps } from '../FieldLabels/FieldLabels';
|
6
6
|
export declare type RadioButtonFieldProps<T extends string> = Partial<{
|
7
7
|
name: string;
|
8
|
-
control: Control<any>;
|
9
8
|
rules: ControllerProps['rules'];
|
10
|
-
|
9
|
+
styles: StylesType;
|
10
|
+
control: Control<any>;
|
11
11
|
optional: boolean;
|
12
|
+
required: boolean;
|
13
|
+
labelsProps: FieldLabelsProps;
|
12
14
|
defaultValue: string;
|
13
|
-
styles: CSSProperties;
|
14
15
|
radioButtonsProps: RadioButtonsProps<T>;
|
15
|
-
|
16
|
+
internalConfig: RadioButtonInternalConfigProps;
|
16
17
|
}>;
|
17
|
-
export declare const RadioButtonField: <T extends string>({
|
18
|
+
export declare const RadioButtonField: <T extends string>({ name, rules, styles, control, optional, required, labelsProps, defaultValue, radioButtonsProps, }: Partial<{
|
18
19
|
name: string;
|
19
|
-
control: Control<any>;
|
20
20
|
rules: ControllerProps['rules'];
|
21
|
-
|
21
|
+
styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
22
|
+
control: Control<any>;
|
22
23
|
optional: boolean;
|
24
|
+
required: boolean;
|
25
|
+
labelsProps: FieldLabelsProps;
|
23
26
|
defaultValue: string;
|
24
|
-
styles: CSSProperties;
|
25
27
|
radioButtonsProps: Partial<{
|
26
|
-
|
27
|
-
|
28
|
+
ref: import("react-hook-form").RefCallBack;
|
29
|
+
name: string;
|
28
30
|
value: T;
|
31
|
+
options: import("atoms").SelectOption[];
|
32
|
+
onBlur: import("typescript").Callback;
|
33
|
+
onChange: (value: T) => void;
|
29
34
|
isRow: boolean;
|
30
|
-
|
31
|
-
|
32
|
-
|
35
|
+
isError: boolean;
|
36
|
+
disabled: boolean;
|
37
|
+
isEditMode: boolean;
|
38
|
+
isRichText: boolean;
|
39
|
+
internalConfig: Partial<{
|
40
|
+
selectedRadioOptionBackgroundColor: string;
|
41
|
+
selectedRadioOptionIndicatorColor: string;
|
42
|
+
buttonPadding: number;
|
43
|
+
textPadding: number;
|
44
|
+
styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
45
|
+
wrapperStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
46
|
+
buttonOptionSpacing: import("../..").SizesTypes;
|
47
|
+
radioGroupWrapperStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
48
|
+
}>;
|
49
|
+
}>;
|
50
|
+
internalConfig: Partial<{
|
51
|
+
selectedRadioOptionBackgroundColor: string;
|
52
|
+
selectedRadioOptionIndicatorColor: string;
|
53
|
+
buttonPadding: number;
|
54
|
+
textPadding: number;
|
55
|
+
styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
56
|
+
wrapperStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
57
|
+
buttonOptionSpacing: import("../..").SizesTypes;
|
58
|
+
radioGroupWrapperStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
33
59
|
}>;
|
34
|
-
labelsProps: FieldLabelsProps;
|
35
60
|
}>) => JSX.Element;
|
@@ -3,24 +3,48 @@ import type { ComponentStory } from '@storybook/react';
|
|
3
3
|
import { RadioButtonField as RadioButtonFieldComponent } from './RadioButtonField';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
|
-
component: <T extends string>({
|
6
|
+
component: <T extends string>({ name, rules, styles, control, optional, required, labelsProps, defaultValue, radioButtonsProps, }: Partial<{
|
7
7
|
name: string;
|
8
|
-
control: import("react-hook-form").Control<any, any>;
|
9
8
|
rules: Omit<import("react-hook-form").RegisterOptions<import("react-hook-form").FieldValues, string>, "disabled" | "valueAsNumber" | "valueAsDate" | "setValueAs"> | undefined;
|
10
|
-
|
9
|
+
styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
10
|
+
control: import("react-hook-form").Control<any, any>;
|
11
11
|
optional: boolean;
|
12
|
+
required: boolean;
|
13
|
+
labelsProps: import("..").FieldLabelsProps;
|
12
14
|
defaultValue: string;
|
13
|
-
styles: import("styled-components").CSSProperties;
|
14
15
|
radioButtonsProps: Partial<{
|
15
|
-
|
16
|
-
|
16
|
+
ref: import("react-hook-form").RefCallBack;
|
17
|
+
name: string;
|
17
18
|
value: T;
|
19
|
+
options: import("../..").SelectOption[];
|
20
|
+
onBlur: import("typescript").Callback;
|
21
|
+
onChange: (value: T) => void;
|
18
22
|
isRow: boolean;
|
19
|
-
|
20
|
-
|
21
|
-
|
23
|
+
isError: boolean;
|
24
|
+
disabled: boolean;
|
25
|
+
isEditMode: boolean;
|
26
|
+
isRichText: boolean;
|
27
|
+
internalConfig: Partial<{
|
28
|
+
selectedRadioOptionBackgroundColor: string;
|
29
|
+
selectedRadioOptionIndicatorColor: string;
|
30
|
+
buttonPadding: number;
|
31
|
+
textPadding: number;
|
32
|
+
styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
33
|
+
wrapperStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
34
|
+
buttonOptionSpacing: import("theme").SizesTypes;
|
35
|
+
radioGroupWrapperStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
36
|
+
}>;
|
37
|
+
}>;
|
38
|
+
internalConfig: Partial<{
|
39
|
+
selectedRadioOptionBackgroundColor: string;
|
40
|
+
selectedRadioOptionIndicatorColor: string;
|
41
|
+
buttonPadding: number;
|
42
|
+
textPadding: number;
|
43
|
+
styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
44
|
+
wrapperStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
45
|
+
buttonOptionSpacing: import("theme").SizesTypes;
|
46
|
+
radioGroupWrapperStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
22
47
|
}>;
|
23
|
-
labelsProps: import("..").FieldLabelsProps;
|
24
48
|
}>) => JSX.Element;
|
25
49
|
};
|
26
50
|
export default _default;
|
@@ -4,7 +4,20 @@ import { SelectFieldProps } from './SelectField';
|
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
6
|
component: ({ selectProps, name, defaultValue, optional, required, control, styles, labelsProps, rules, }: Partial<{
|
7
|
-
selectProps:
|
7
|
+
selectProps: Partial<{
|
8
|
+
ref: import("react-hook-form").RefCallBack;
|
9
|
+
onBlur: import("typescript").Callback;
|
10
|
+
value: string;
|
11
|
+
optionsPresentation: boolean;
|
12
|
+
onChange: (value: string) => void;
|
13
|
+
placeholder: string;
|
14
|
+
disabled: boolean;
|
15
|
+
options: import("../..").SelectOption[];
|
16
|
+
isError: boolean;
|
17
|
+
isEditMode: boolean;
|
18
|
+
selectInternalConfig: import("../..").SelectInternalConfigurationOptions;
|
19
|
+
isRichText: boolean;
|
20
|
+
}>;
|
8
21
|
labelsProps: import("..").FieldLabelsProps;
|
9
22
|
name: string;
|
10
23
|
rules: Omit<import("react-hook-form").RegisterOptions<import("react-hook-form").FieldValues, string>, "disabled" | "valueAsNumber" | "valueAsDate" | "setValueAs"> | undefined;
|
@@ -1,5 +1,8 @@
|
|
1
1
|
import { DefaultTheme, ThemedCssFunction } from 'styled-components';
|
2
2
|
export declare type StylesType = ReturnType<ThemedCssFunction<DefaultTheme>>;
|
3
|
+
export declare type StyledTransientProps<T> = {
|
4
|
+
[K in keyof T & string as `$${K}`]: T[K];
|
5
|
+
};
|
3
6
|
export declare type OverrideStyles = {
|
4
7
|
$styles?: StylesType;
|
5
8
|
};
|