@true-engineering/true-react-common-ui-kit 1.0.2 → 1.1.0
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/AccountInfo/AccountInfo.d.ts +4 -4
- package/dist/components/AccountInfo/AccountInfo.styles.d.ts +60 -56
- package/dist/components/AddButton/AddButton.d.ts +6 -6
- package/dist/components/AddButton/AddButton.styles.d.ts +23 -23
- package/dist/components/Button/Button.d.ts +19 -33
- package/dist/components/Button/Button.styles.d.ts +144 -144
- package/dist/components/Checkbox/Checkbox.d.ts +16 -27
- package/dist/components/Checkbox/Checkbox.styles.d.ts +39 -42
- package/dist/components/CloseButton/CloseButton.d.ts +4 -4
- package/dist/components/CloseButton/CloseButton.styles.d.ts +22 -22
- package/dist/components/Colors/Colors.styles.d.ts +28 -28
- package/dist/components/CssBaseline/CssBaseline.d.ts +1 -1
- package/dist/components/CssBaseline/CssBaseline.styles.d.ts +7 -7
- package/dist/components/DateInput/DateInput.d.ts +8 -9
- package/dist/components/DateInput/DateInput.styles.d.ts +7 -7
- package/dist/components/DatePicker/DatePicker.d.ts +29 -36
- package/dist/components/DatePicker/DatePicker.styles.d.ts +38 -34
- package/dist/components/DatePicker/DatePickerHeader/DatePickerHeader.d.ts +9 -9
- package/dist/components/DatePicker/DatePickerHeader/DatePickerHeader.styles.d.ts +59 -59
- package/dist/components/DatePicker/DatePickerInput/DatePickerInput.d.ts +7 -9
- package/dist/components/DatePicker/DatePickerInput/DatePickerInput.styles.d.ts +16 -16
- package/dist/components/Description/Description.d.ts +6 -6
- package/dist/components/Description/Description.styles.d.ts +18 -18
- package/dist/components/FiltersPane/FilterInterval/FilterInterval.d.ts +19 -19
- package/dist/components/FiltersPane/FilterInterval/FilterInterval.styles.d.ts +44 -44
- package/dist/components/FiltersPane/FilterMultiSelect/FilterMultiSelect.d.ts +2 -8
- package/dist/components/FiltersPane/FilterSelect/FilterSelect.d.ts +17 -35
- package/dist/components/FiltersPane/FilterSelect/FilterSelect.styles.d.ts +111 -111
- package/dist/components/FiltersPane/FilterSelect/locales.d.ts +6 -10
- package/dist/components/FiltersPane/FilterValueView/FilterValueView.d.ts +1 -9
- package/dist/components/FiltersPane/FilterValueView/FilterValueView.styles.d.ts +8 -8
- package/dist/components/FiltersPane/FilterWithDates/FilterWithDates.d.ts +13 -21
- package/dist/components/FiltersPane/FilterWithDates/FilterWithDates.styles.d.ts +41 -41
- package/dist/components/FiltersPane/FilterWithPeriod/FilterWithPeriod.d.ts +8 -8
- package/dist/components/FiltersPane/FilterWithPeriod/FilterWithPeriod.styles.d.ts +7 -7
- package/dist/components/FiltersPane/FilterWrapper/FilterWrapper.d.ts +18 -41
- package/dist/components/FiltersPane/FilterWrapper/FilterWrapper.styles.d.ts +92 -92
- package/dist/components/FiltersPane/FiltersPane.d.ts +15 -34
- package/dist/components/FiltersPane/FiltersPane.styles.d.ts +50 -50
- package/dist/components/FiltersPane/FiltersPaneSearch/FiltersPaneSearch.d.ts +18 -37
- package/dist/components/FiltersPane/FiltersPaneSearch/FiltersPaneSearch.styles.d.ts +82 -82
- package/dist/components/FiltersPane/locales.d.ts +22 -28
- package/dist/components/FiltersPane/types.d.ts +38 -65
- package/dist/components/Flag/Flag.d.ts +2 -2
- package/dist/components/Flag/Flag.styles.d.ts +8 -8
- package/dist/components/FlexibleTable/FlexibleTable.d.ts +20 -45
- package/dist/components/FlexibleTable/FlexibleTable.styles.d.ts +93 -93
- package/dist/components/FlexibleTable/TableRow.d.ts +21 -38
- package/dist/components/FlexibleTable/TableValue.d.ts +16 -28
- package/dist/components/FlexibleTable/types.d.ts +31 -37
- package/dist/components/Icon/ComplexIconBoilerplate.d.ts +1 -1
- package/dist/components/Icon/Icon.d.ts +2 -2
- package/dist/components/Icon/Icon.styles.d.ts +4 -4
- package/dist/components/Icon/IconBoilerplate.d.ts +1 -1
- package/dist/components/Icon/complexIcons/icons.d.ts +1 -1
- package/dist/components/Icon/icons/icons.d.ts +5 -97
- package/dist/components/IncrementInput/ChangeButton.d.ts +5 -5
- package/dist/components/IncrementInput/IncrementInput.d.ts +3 -4
- package/dist/components/IncrementInput/IncrementInput.styles.d.ts +52 -52
- package/dist/components/Input/Input.d.ts +37 -48
- package/dist/components/Input/Input.styles.d.ts +242 -242
- package/dist/components/List/List.d.ts +12 -12
- package/dist/components/List/List.styles.d.ts +35 -35
- package/dist/components/Modal/Modal.d.ts +19 -19
- package/dist/components/Modal/Modal.styles.d.ts +235 -235
- package/dist/components/MoreMenu/MoreMenu.d.ts +7 -7
- package/dist/components/MoreMenu/MoreMenu.styles.d.ts +45 -45
- package/dist/components/MultiSelect/MultiSelect.d.ts +13 -28
- package/dist/components/MultiSelect/MultiSelect.styles.d.ts +38 -38
- package/dist/components/MultiSelect/MultiSelectInput/MultiSelectInput.d.ts +6 -12
- package/dist/components/MultiSelect/MultiSelectInput/MultiSelectInput.styles.d.ts +58 -58
- package/dist/components/MultiSelectList/MultiSelectList.d.ts +20 -43
- package/dist/components/MultiSelectList/MultiSelectList.styles.d.ts +90 -90
- package/dist/components/MultiSelectList/locales.d.ts +6 -10
- package/dist/components/Notification/Notification.d.ts +9 -14
- package/dist/components/Notification/Notification.styles.d.ts +30 -33
- package/dist/components/NumberInput/NumberInput.d.ts +10 -16
- package/dist/components/NumberInput/helpers.d.ts +2 -10
- package/dist/components/PhoneInput/PhoneInput.d.ts +7 -14
- package/dist/components/PhoneInput/PhoneInput.styles.d.ts +60 -60
- package/dist/components/PhoneInput/PhoneInputCountryList/PhoneInputCountryList.d.ts +7 -7
- package/dist/components/PhoneInput/PhoneInputCountryList/PhoneInputCountryList.styles.d.ts +74 -78
- package/dist/components/PhoneInput/types.d.ts +11 -11
- package/dist/components/RadioButton/RadioButton.d.ts +8 -18
- package/dist/components/RadioButton/RadioButton.styles.d.ts +25 -25
- package/dist/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.d.ts +374 -634
- package/dist/components/SearchInput/SearchInput.d.ts +2 -12
- package/dist/components/SearchInput/SearchInput.styles.d.ts +32 -32
- package/dist/components/Select/Select.d.ts +22 -50
- package/dist/components/Select/Select.styles.d.ts +53 -53
- package/dist/components/Select/SelectList/SelectList.d.ts +15 -30
- package/dist/components/Select/SelectList/SelectList.styles.d.ts +35 -37
- package/dist/components/Select/helpers.d.ts +2 -9
- package/dist/components/SmartInput/SmartInput.d.ts +16 -28
- package/dist/components/SmartInput/helpers.d.ts +4 -8
- package/dist/components/Switch/Switch.d.ts +13 -26
- package/dist/components/Switch/Switch.styles.d.ts +58 -58
- package/dist/components/TextArea/TextArea.d.ts +23 -26
- package/dist/components/TextArea/TextArea.styles.d.ts +124 -124
- package/dist/components/TextWithInfo/TextWithInfo.d.ts +9 -9
- package/dist/components/TextWithInfo/TextWithInfo.styles.d.ts +40 -40
- package/dist/components/TextWithTooltip/TextWithTooltip.d.ts +12 -12
- package/dist/components/TextWithTooltip/TextWithTooltip.styles.d.ts +10 -10
- package/dist/components/ThemedPreloader/ThemedPreloader.d.ts +4 -4
- package/dist/components/ThemedPreloader/ThemedPreloader.styles.d.ts +10 -10
- package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.d.ts +1 -1
- package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.d.ts +35 -35
- package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.d.ts +2 -2
- package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.d.ts +5 -5
- package/dist/components/Toaster/Toaster.d.ts +11 -16
- package/dist/components/Toaster/Toaster.styles.d.ts +41 -41
- package/dist/components/Tooltip/Tooltip.d.ts +4 -4
- package/dist/components/Tooltip/Tooltip.styles.d.ts +27 -25
- package/dist/helpers/data-attributes.d.ts +4 -11
- package/dist/helpers/phone.d.ts +8 -28
- package/dist/helpers/utils.d.ts +7 -28
- package/dist/hooks/use-did-mount-effect.d.ts +1 -4
- package/dist/hooks/use-dropdown.d.ts +7 -14
- package/dist/hooks/use-is-mounted.d.ts +1 -1
- package/dist/hooks/use-on-click-outside.d.ts +4 -25
- package/dist/hooks/use-theme.d.ts +5 -10
- package/dist/hooks/use-tweak-styles.d.ts +1 -5
- package/dist/style.css +90 -205
- package/dist/theme.d.ts +55 -51
- package/dist/true-react-common-ui-kit.js +16713 -24318
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +18 -16
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/dist/types.d.ts +23 -77
- package/package.json +1 -1
- package/src/components/Select/Select.tsx +21 -13
- package/src/components/Select/SelectList/SelectList.tsx +8 -6
- package/src/components/Select/helpers.ts +9 -6
- package/src/components/SmartInput/SmartInput.tsx +130 -127
|
@@ -3,9 +3,9 @@ import { ICommonProps } from '../../types';
|
|
|
3
3
|
import { IListProps } from '../List';
|
|
4
4
|
import { AccountInfoStyles } from './AccountInfo.styles';
|
|
5
5
|
export interface IAccountInfoProps extends ICommonProps {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
tweakStyles?: AccountInfoStyles;
|
|
7
|
+
avatar?: ReactNode;
|
|
8
|
+
accountName: ReactNode;
|
|
9
|
+
options: IListProps['items'];
|
|
10
10
|
}
|
|
11
11
|
export declare const AccountInfo: FC<IAccountInfoProps>;
|
|
@@ -1,60 +1,64 @@
|
|
|
1
1
|
import { ComponentStyles } from '../../types';
|
|
2
2
|
export declare const styles: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
3
|
+
tweakList: {};
|
|
4
|
+
'slide-up-enter': {
|
|
5
|
+
opacity: number;
|
|
6
|
+
transform: string;
|
|
7
|
+
};
|
|
8
|
+
'slide-up-enter-active': {
|
|
9
|
+
opacity: number;
|
|
10
|
+
transform: string;
|
|
11
|
+
transition: ({ timeout }: {
|
|
12
|
+
timeout: number;
|
|
13
|
+
}) => string;
|
|
14
|
+
transitionProperty: string;
|
|
15
|
+
};
|
|
16
|
+
'slide-up-exit-active': {
|
|
17
|
+
opacity: number;
|
|
18
|
+
transform: string;
|
|
19
|
+
};
|
|
20
|
+
'slide-up-exit': {
|
|
21
|
+
opacity: number;
|
|
22
|
+
transform: string;
|
|
23
|
+
transition: ({ timeout }: {
|
|
24
|
+
timeout: number;
|
|
25
|
+
}) => string;
|
|
26
|
+
transitionProperty: string;
|
|
27
|
+
};
|
|
28
|
+
root: {
|
|
29
|
+
display: string;
|
|
30
|
+
};
|
|
31
|
+
account: {
|
|
32
|
+
display: string;
|
|
33
|
+
position: string;
|
|
34
|
+
alignItems: string;
|
|
35
|
+
cursor: string;
|
|
36
|
+
};
|
|
37
|
+
accountName: {
|
|
38
|
+
margin: number[];
|
|
39
|
+
fontSize: number;
|
|
40
|
+
transition: string;
|
|
41
|
+
};
|
|
42
|
+
accountNameOpened: {};
|
|
43
|
+
accountChevron: {
|
|
44
|
+
width: number;
|
|
45
|
+
height: number;
|
|
46
|
+
transition: string;
|
|
47
|
+
transitionProperty: string;
|
|
48
|
+
};
|
|
49
|
+
accountChevronOpened: {
|
|
50
|
+
transform: string;
|
|
51
|
+
};
|
|
52
|
+
accountMenu: {
|
|
53
|
+
position: string;
|
|
54
|
+
zIndex: number;
|
|
55
|
+
top: string;
|
|
56
|
+
right: number;
|
|
57
|
+
marginTop: number;
|
|
58
|
+
};
|
|
59
|
+
avatarIcon: {
|
|
60
|
+
width: number;
|
|
61
|
+
height: number;
|
|
62
|
+
};
|
|
59
63
|
};
|
|
60
64
|
export declare type AccountInfoStyles = ComponentStyles<typeof styles>;
|
|
@@ -2,11 +2,11 @@ import { FC } from 'react';
|
|
|
2
2
|
import { ICommonProps } from '../../types';
|
|
3
3
|
import { AddButtonStyles } from './AddButton.styles';
|
|
4
4
|
export interface IAddButtonProps extends ICommonProps {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
tweakStyles?: AddButtonStyles;
|
|
6
|
+
text: string;
|
|
7
|
+
type?: 'submit' | 'button';
|
|
8
|
+
isDisabled?: boolean;
|
|
9
|
+
isFullWidth?: boolean;
|
|
10
|
+
onClick?(): void | Promise<void>;
|
|
11
11
|
}
|
|
12
12
|
export declare const AddButton: FC<IAddButtonProps>;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { ComponentStyles } from '../../types';
|
|
2
2
|
export declare const styles: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
root: {
|
|
4
|
+
display: string;
|
|
5
|
+
alignItems: string;
|
|
6
|
+
padding: string;
|
|
7
|
+
height: number;
|
|
8
|
+
cursor: string;
|
|
9
|
+
outline: string;
|
|
10
|
+
transition: string;
|
|
11
|
+
fontSize: number;
|
|
12
|
+
'&:hover': {
|
|
13
|
+
transition: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
disabled: {
|
|
17
|
+
cursor: string;
|
|
18
|
+
};
|
|
19
|
+
icon: {
|
|
20
|
+
width: number;
|
|
21
|
+
display: string;
|
|
22
|
+
marginRight: number;
|
|
23
|
+
};
|
|
24
|
+
fullWidth: {
|
|
25
|
+
width: string;
|
|
14
26
|
};
|
|
15
|
-
};
|
|
16
|
-
disabled: {
|
|
17
|
-
cursor: string;
|
|
18
|
-
};
|
|
19
|
-
icon: {
|
|
20
|
-
width: number;
|
|
21
|
-
display: string;
|
|
22
|
-
marginRight: number;
|
|
23
|
-
};
|
|
24
|
-
fullWidth: {
|
|
25
|
-
width: string;
|
|
26
|
-
};
|
|
27
27
|
};
|
|
28
28
|
export declare type AddButtonStyles = ComponentStyles<typeof styles>;
|
|
@@ -1,42 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
FC,
|
|
3
|
-
ReactElement,
|
|
4
|
-
ReactNode,
|
|
5
|
-
ButtonHTMLAttributes,
|
|
6
|
-
MouseEvent,
|
|
7
|
-
} from 'react';
|
|
1
|
+
import { FC, ReactElement, ReactNode, ButtonHTMLAttributes, MouseEvent } from 'react';
|
|
8
2
|
import { ICommonProps } from '../../types';
|
|
9
3
|
import { IThemedPreloaderProps } from '../ThemedPreloader';
|
|
10
4
|
import { IIconType } from '../Icon';
|
|
11
5
|
import { ButtonStyles } from './Button.styles';
|
|
12
6
|
export declare type IButtonSize = 's' | 'm' | 'l' | 'xl';
|
|
13
|
-
export declare const BUTTON_VIEWS: readonly [
|
|
14
|
-
'primary',
|
|
15
|
-
'secondary',
|
|
16
|
-
'outline',
|
|
17
|
-
'warning',
|
|
18
|
-
'destructive',
|
|
19
|
-
'text',
|
|
20
|
-
'custom',
|
|
21
|
-
];
|
|
7
|
+
export declare const BUTTON_VIEWS: readonly ["primary", "secondary", "outline", "warning", "destructive", "text", "custom"];
|
|
22
8
|
export declare type IButtonView = (typeof BUTTON_VIEWS)[number];
|
|
23
9
|
export interface IButtonProps extends ICommonProps {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
10
|
+
tweakStyles?: ButtonStyles;
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
type?: ButtonHTMLAttributes<unknown>['type'];
|
|
13
|
+
size?: IButtonSize;
|
|
14
|
+
view?: IButtonView;
|
|
15
|
+
shouldSkipTabNavigation?: boolean;
|
|
16
|
+
isDisabled?: boolean;
|
|
17
|
+
isFullWidth?: boolean;
|
|
18
|
+
isInline?: boolean;
|
|
19
|
+
isLoading?: boolean;
|
|
20
|
+
isActive?: boolean;
|
|
21
|
+
icon?: IIconType | ReactElement;
|
|
22
|
+
iconPosition?: 'left' | 'right';
|
|
23
|
+
preloaderType?: IThemedPreloaderProps['type'];
|
|
24
|
+
testId?: string;
|
|
25
|
+
onClick?(event: MouseEvent<HTMLButtonElement>): void | Promise<void>;
|
|
26
|
+
onMouseDown?(event: MouseEvent<HTMLButtonElement>): void | Promise<void>;
|
|
41
27
|
}
|
|
42
28
|
export declare const Button: FC<IButtonProps>;
|
|
@@ -1,150 +1,150 @@
|
|
|
1
1
|
import { ComponentStyles } from '../../types';
|
|
2
2
|
import { ThemedPreloaderStyles } from '../ThemedPreloader';
|
|
3
3
|
export declare const styles: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
4
|
+
root: {
|
|
5
|
+
display: string;
|
|
6
|
+
justifyContent: string;
|
|
7
|
+
alignItems: string;
|
|
8
|
+
cursor: string;
|
|
9
|
+
outline: string;
|
|
10
|
+
boxSizing: string;
|
|
11
|
+
transition: string;
|
|
12
|
+
transitionProperty: string;
|
|
13
|
+
maxWidth: string;
|
|
14
|
+
border: (string | number)[];
|
|
15
|
+
position: string;
|
|
16
|
+
boxShadow: string;
|
|
17
|
+
'&[disabled]': {
|
|
18
|
+
cursor: string;
|
|
19
|
+
pointerEvents: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
primary: {};
|
|
23
|
+
secondary: {};
|
|
24
|
+
outline: {};
|
|
25
|
+
warning: {};
|
|
26
|
+
destructive: {};
|
|
27
|
+
text: {};
|
|
28
|
+
custom: {};
|
|
29
|
+
children: {};
|
|
30
|
+
icon: {
|
|
31
|
+
width: number;
|
|
32
|
+
height: number;
|
|
33
|
+
flexShrink: number;
|
|
34
|
+
transition: string;
|
|
35
|
+
};
|
|
36
|
+
iconFromLeft: {
|
|
37
|
+
flexDirection: string;
|
|
38
|
+
gap: number;
|
|
39
|
+
'& $icon': {
|
|
40
|
+
marginLeft: number;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
iconFromRight: {
|
|
44
|
+
flexDirection: string;
|
|
45
|
+
gap: number;
|
|
46
|
+
'& $icon': {
|
|
47
|
+
marginRight: number;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
onlyIcon: {};
|
|
51
|
+
withIcon: {};
|
|
52
|
+
s: {
|
|
53
|
+
padding: number[];
|
|
54
|
+
height: number;
|
|
55
|
+
fontSize: number;
|
|
56
|
+
letterSpacing: number;
|
|
57
|
+
'&$onlyIcon': {
|
|
58
|
+
padding: number;
|
|
59
|
+
width: number;
|
|
60
|
+
};
|
|
61
|
+
'& $icon': {
|
|
62
|
+
width: number;
|
|
63
|
+
height: number;
|
|
64
|
+
};
|
|
65
|
+
'& $iconFromLeft': {
|
|
66
|
+
gap: number;
|
|
67
|
+
};
|
|
68
|
+
'& $iconFromRight': {
|
|
69
|
+
gap: number;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
m: {
|
|
73
|
+
padding: number[];
|
|
74
|
+
height: number;
|
|
75
|
+
fontSize: number;
|
|
76
|
+
'& $iconFromLeft': {
|
|
77
|
+
gap: number;
|
|
78
|
+
};
|
|
79
|
+
'& $iconFromRight': {
|
|
80
|
+
gap: number;
|
|
81
|
+
};
|
|
82
|
+
'&$onlyIcon': {
|
|
83
|
+
padding: number;
|
|
84
|
+
width: number;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
l: {
|
|
88
|
+
padding: number[];
|
|
89
|
+
height: number;
|
|
90
|
+
fontSize: number;
|
|
91
|
+
'& $iconFromLeft': {
|
|
92
|
+
gap: number;
|
|
93
|
+
};
|
|
94
|
+
'& $iconFromRight': {
|
|
95
|
+
gap: number;
|
|
96
|
+
};
|
|
97
|
+
'&$onlyIcon': {
|
|
98
|
+
padding: number;
|
|
99
|
+
width: number;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
xl: {
|
|
103
|
+
padding: number[];
|
|
104
|
+
height: number;
|
|
105
|
+
fontSize: number;
|
|
106
|
+
'&$onlyIcon': {
|
|
107
|
+
padding: number;
|
|
108
|
+
width: number;
|
|
109
|
+
};
|
|
110
|
+
'& $iconFromLeft': {
|
|
111
|
+
gap: number;
|
|
112
|
+
};
|
|
113
|
+
'& $iconFromRight': {
|
|
114
|
+
gap: number;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
fullWidth: {
|
|
118
|
+
minWidth: string;
|
|
119
|
+
width: string;
|
|
120
|
+
};
|
|
121
|
+
inline: {
|
|
122
|
+
borderTopLeftRadius: number;
|
|
123
|
+
borderBottomLeftRadius: number;
|
|
124
|
+
};
|
|
125
|
+
active: {};
|
|
126
|
+
content: {
|
|
127
|
+
display: string;
|
|
128
|
+
alignItems: string;
|
|
129
|
+
height: string;
|
|
130
|
+
};
|
|
131
|
+
loader: {
|
|
132
|
+
display: string;
|
|
133
|
+
position: string;
|
|
134
|
+
left: string;
|
|
135
|
+
top: string;
|
|
136
|
+
transform: string;
|
|
137
|
+
};
|
|
138
|
+
loading: {
|
|
139
|
+
'& $content': {
|
|
140
|
+
visibility: string;
|
|
141
|
+
};
|
|
142
|
+
'& $loader': {
|
|
143
|
+
display: string;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
disabled: {};
|
|
147
|
+
tweakPreloader: {};
|
|
148
148
|
};
|
|
149
149
|
export declare const dotsPreloaderStyles: ThemedPreloaderStyles;
|
|
150
150
|
export declare type ButtonStyles = ComponentStyles<typeof styles>;
|
|
@@ -2,31 +2,20 @@ import { PropsWithChildren } from 'react';
|
|
|
2
2
|
import { ICommonProps } from '../../types';
|
|
3
3
|
import { CheckboxStyles } from './Checkbox.styles';
|
|
4
4
|
export interface ICheckboxProps<V> extends ICommonProps {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
tweakStyles?: CheckboxStyles;
|
|
6
|
+
isChecked?: boolean;
|
|
7
|
+
isSemiChecked?: boolean;
|
|
8
|
+
isDisabled?: boolean;
|
|
9
|
+
isInvalid?: boolean;
|
|
10
|
+
value: V;
|
|
11
|
+
size?: number;
|
|
12
|
+
alignItems?: 'top' | 'center';
|
|
13
|
+
textMargin?: number;
|
|
14
|
+
labelPosition?: 'right' | 'left';
|
|
15
|
+
testId?: string;
|
|
16
|
+
onSelect(value: {
|
|
17
|
+
value: V;
|
|
18
|
+
isSelected: boolean;
|
|
19
|
+
}): void;
|
|
17
20
|
}
|
|
18
|
-
export declare function Checkbox<V>({
|
|
19
|
-
children,
|
|
20
|
-
isDisabled,
|
|
21
|
-
isChecked,
|
|
22
|
-
value,
|
|
23
|
-
size,
|
|
24
|
-
alignItems,
|
|
25
|
-
textMargin,
|
|
26
|
-
data,
|
|
27
|
-
testId,
|
|
28
|
-
isSemiChecked,
|
|
29
|
-
labelPosition,
|
|
30
|
-
tweakStyles,
|
|
31
|
-
onSelect,
|
|
32
|
-
}: PropsWithChildren<ICheckboxProps<V>>): JSX.Element;
|
|
21
|
+
export declare function Checkbox<V>({ children, isDisabled, isChecked, value, size, alignItems, textMargin, data, testId, isSemiChecked, labelPosition, tweakStyles, onSelect, }: PropsWithChildren<ICheckboxProps<V>>): JSX.Element;
|