@true-engineering/true-react-common-ui-kit 1.0.1 → 1.0.2
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/LICENSE +1 -1
- package/dist/components/AccountInfo/AccountInfo.d.ts +4 -4
- package/dist/components/AccountInfo/AccountInfo.styles.d.ts +56 -60
- 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 +33 -19
- package/dist/components/Button/Button.styles.d.ts +144 -144
- package/dist/components/Checkbox/Checkbox.d.ts +27 -16
- package/dist/components/Checkbox/Checkbox.styles.d.ts +42 -39
- 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 +9 -8
- package/dist/components/DateInput/DateInput.styles.d.ts +7 -7
- package/dist/components/DatePicker/DatePicker.d.ts +36 -29
- package/dist/components/DatePicker/DatePicker.styles.d.ts +34 -38
- 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 +9 -7
- 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 +8 -2
- package/dist/components/FiltersPane/FilterSelect/FilterSelect.d.ts +35 -17
- package/dist/components/FiltersPane/FilterSelect/FilterSelect.styles.d.ts +111 -111
- package/dist/components/FiltersPane/FilterSelect/locales.d.ts +10 -6
- package/dist/components/FiltersPane/FilterValueView/FilterValueView.d.ts +9 -1
- package/dist/components/FiltersPane/FilterValueView/FilterValueView.styles.d.ts +8 -8
- package/dist/components/FiltersPane/FilterWithDates/FilterWithDates.d.ts +21 -13
- 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 +41 -18
- package/dist/components/FiltersPane/FilterWrapper/FilterWrapper.styles.d.ts +92 -92
- package/dist/components/FiltersPane/FiltersPane.d.ts +34 -15
- package/dist/components/FiltersPane/FiltersPane.styles.d.ts +50 -50
- package/dist/components/FiltersPane/FiltersPaneSearch/FiltersPaneSearch.d.ts +37 -18
- package/dist/components/FiltersPane/FiltersPaneSearch/FiltersPaneSearch.styles.d.ts +82 -82
- package/dist/components/FiltersPane/locales.d.ts +28 -22
- package/dist/components/FiltersPane/types.d.ts +65 -38
- 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 +45 -20
- package/dist/components/FlexibleTable/FlexibleTable.styles.d.ts +93 -93
- package/dist/components/FlexibleTable/TableRow.d.ts +38 -21
- package/dist/components/FlexibleTable/TableValue.d.ts +28 -16
- package/dist/components/FlexibleTable/types.d.ts +37 -31
- 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 +97 -5
- package/dist/components/IncrementInput/ChangeButton.d.ts +5 -5
- package/dist/components/IncrementInput/IncrementInput.d.ts +4 -3
- package/dist/components/IncrementInput/IncrementInput.styles.d.ts +52 -52
- package/dist/components/Input/Input.d.ts +48 -37
- 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 -44
- package/dist/components/MultiSelect/MultiSelect.d.ts +28 -13
- package/dist/components/MultiSelect/MultiSelect.styles.d.ts +38 -38
- package/dist/components/MultiSelect/MultiSelectInput/MultiSelectInput.d.ts +12 -6
- package/dist/components/MultiSelect/MultiSelectInput/MultiSelectInput.styles.d.ts +58 -58
- package/dist/components/MultiSelectList/MultiSelectList.d.ts +43 -20
- package/dist/components/MultiSelectList/MultiSelectList.styles.d.ts +90 -90
- package/dist/components/MultiSelectList/locales.d.ts +10 -6
- package/dist/components/Notification/Notification.d.ts +14 -9
- package/dist/components/Notification/Notification.styles.d.ts +33 -30
- package/dist/components/NumberInput/NumberInput.d.ts +16 -10
- package/dist/components/NumberInput/helpers.d.ts +10 -2
- package/dist/components/PhoneInput/PhoneInput.d.ts +14 -7
- 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 +78 -74
- package/dist/components/PhoneInput/types.d.ts +11 -11
- package/dist/components/RadioButton/RadioButton.d.ts +18 -8
- package/dist/components/RadioButton/RadioButton.styles.d.ts +25 -25
- package/dist/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.d.ts +634 -374
- package/dist/components/SearchInput/SearchInput.d.ts +12 -2
- package/dist/components/SearchInput/SearchInput.styles.d.ts +32 -32
- package/dist/components/Select/Select.d.ts +50 -21
- package/dist/components/Select/Select.styles.d.ts +53 -53
- package/dist/components/Select/SelectList/SelectList.d.ts +30 -15
- package/dist/components/Select/SelectList/SelectList.styles.d.ts +37 -35
- package/dist/components/Select/helpers.d.ts +9 -2
- package/dist/components/SmartInput/SmartInput.d.ts +28 -16
- package/dist/components/SmartInput/helpers.d.ts +8 -4
- package/dist/components/Switch/Switch.d.ts +26 -13
- package/dist/components/Switch/Switch.styles.d.ts +58 -58
- package/dist/components/TextArea/TextArea.d.ts +26 -23
- 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 +16 -11
- 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 +25 -27
- package/dist/helpers/data-attributes.d.ts +11 -4
- package/dist/helpers/phone.d.ts +28 -8
- package/dist/helpers/utils.d.ts +28 -7
- package/dist/hooks/use-did-mount-effect.d.ts +4 -1
- package/dist/hooks/use-dropdown.d.ts +14 -7
- package/dist/hooks/use-is-mounted.d.ts +1 -1
- package/dist/hooks/use-on-click-outside.d.ts +25 -4
- package/dist/hooks/use-theme.d.ts +10 -5
- package/dist/hooks/use-tweak-styles.d.ts +5 -1
- package/dist/style.css +205 -90
- package/dist/theme.d.ts +51 -55
- package/dist/true-react-common-ui-kit.js +24375 -16679
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +300 -211
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/dist/types.d.ts +77 -23
- package/package.json +1 -1
- package/src/components/List/List.tsx +9 -2
- package/src/components/Modal/Modal.tsx +1 -1
- package/src/components/MoreMenu/MoreMenu.styles.ts +2 -0
- package/src/components/MoreMenu/MoreMenu.tsx +35 -24
- package/src/types.ts +1 -1
|
@@ -1,44 +1,44 @@
|
|
|
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
|
-
disabled: {
|
|
24
|
-
cursor: string;
|
|
3
|
+
root: {
|
|
4
|
+
position: string;
|
|
5
|
+
boxSizing: string;
|
|
6
|
+
height: string;
|
|
7
|
+
width: string;
|
|
8
|
+
cursor: string;
|
|
9
|
+
fontSize: number;
|
|
10
|
+
};
|
|
11
|
+
required: {
|
|
12
|
+
'&:before': {
|
|
13
|
+
content: string;
|
|
14
|
+
position: string;
|
|
15
|
+
left: number;
|
|
16
|
+
top: string;
|
|
17
|
+
transform: string;
|
|
18
|
+
width: number;
|
|
19
|
+
height: number;
|
|
20
|
+
borderRadius: string;
|
|
25
21
|
};
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
22
|
+
};
|
|
23
|
+
disabled: {
|
|
24
|
+
cursor: string;
|
|
25
|
+
};
|
|
26
|
+
listContainer: {
|
|
27
|
+
position: string;
|
|
28
|
+
top: string;
|
|
29
|
+
left: number;
|
|
30
|
+
right: number;
|
|
31
|
+
zIndex: number;
|
|
32
|
+
};
|
|
33
|
+
invalid: {};
|
|
34
|
+
open: {};
|
|
35
|
+
full: {};
|
|
36
|
+
left: {};
|
|
37
|
+
right: {};
|
|
38
|
+
tweakMultiSelectList: {
|
|
39
|
+
root: {
|
|
40
|
+
width: string;
|
|
42
41
|
};
|
|
42
|
+
};
|
|
43
43
|
};
|
|
44
44
|
export declare type MultiSelectStyles = ComponentStyles<typeof styles>;
|
|
@@ -2,10 +2,16 @@ import { ReactElement } from 'react';
|
|
|
2
2
|
import { IMultiSelectListValues } from '../../index';
|
|
3
3
|
import { ICommonProps } from '../../../types';
|
|
4
4
|
export interface IMultiSelectInputProps<Value> extends ICommonProps {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
value?: IMultiSelectListValues<Value>;
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
isDisabled: boolean;
|
|
8
|
+
placeholder: string;
|
|
9
|
+
onToggle: (state: boolean) => void;
|
|
10
10
|
}
|
|
11
|
-
export declare function MultiSelectInput<Value>({
|
|
11
|
+
export declare function MultiSelectInput<Value>({
|
|
12
|
+
value: v,
|
|
13
|
+
isOpen,
|
|
14
|
+
isDisabled,
|
|
15
|
+
placeholder,
|
|
16
|
+
onToggle,
|
|
17
|
+
}: IMultiSelectInputProps<Value>): ReactElement | null;
|
|
@@ -1,62 +1,62 @@
|
|
|
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
|
-
|
|
59
|
-
|
|
60
|
-
|
|
3
|
+
root: {
|
|
4
|
+
display: string;
|
|
5
|
+
justifyContent: string;
|
|
6
|
+
flexDirection: string;
|
|
7
|
+
height: string;
|
|
8
|
+
padding: number[];
|
|
9
|
+
overflow: string;
|
|
10
|
+
whiteSpace: string;
|
|
11
|
+
};
|
|
12
|
+
placeholder: {
|
|
13
|
+
fontSize: number;
|
|
14
|
+
userSelect: string;
|
|
15
|
+
};
|
|
16
|
+
placeholderSmall: {
|
|
17
|
+
fontSize: number;
|
|
18
|
+
marginBottom: number;
|
|
19
|
+
position: string;
|
|
20
|
+
};
|
|
21
|
+
values: {
|
|
22
|
+
width: string;
|
|
23
|
+
};
|
|
24
|
+
value: {
|
|
25
|
+
width: string;
|
|
26
|
+
overflow: string;
|
|
27
|
+
textOverflow: string;
|
|
28
|
+
};
|
|
29
|
+
amount: {
|
|
30
|
+
boxSizing: string;
|
|
31
|
+
position: string;
|
|
32
|
+
top: string;
|
|
33
|
+
right: number;
|
|
34
|
+
height: number;
|
|
35
|
+
minWidth: number;
|
|
36
|
+
fontSize: number;
|
|
37
|
+
lineHeight: string;
|
|
38
|
+
textAlign: string;
|
|
39
|
+
padding: number[];
|
|
40
|
+
};
|
|
41
|
+
indicator: {
|
|
42
|
+
position: string;
|
|
43
|
+
top: number;
|
|
44
|
+
right: number;
|
|
45
|
+
height: string;
|
|
46
|
+
width: number;
|
|
47
|
+
borderRadius: number;
|
|
48
|
+
display: string;
|
|
49
|
+
alignItems: string;
|
|
50
|
+
justifyContent: string;
|
|
51
|
+
};
|
|
52
|
+
arrow: {
|
|
53
|
+
width: number;
|
|
54
|
+
height: number;
|
|
55
|
+
transition: string;
|
|
56
|
+
};
|
|
57
|
+
arrowUp: {
|
|
58
|
+
transform: string;
|
|
59
|
+
};
|
|
60
|
+
indicatorDisabled: {};
|
|
61
61
|
};
|
|
62
62
|
export declare type MultiSelectInputStyles = ComponentStyles<typeof styles>;
|
|
@@ -3,26 +3,49 @@ import { ICommonProps } from '../../types';
|
|
|
3
3
|
import { IMultiSelectLocale, IMultiSelectLocaleKey } from './locales';
|
|
4
4
|
import { MultiSelectListStyles } from './MultiSelectList.styles';
|
|
5
5
|
export interface IMultiSelectListValues<Option> {
|
|
6
|
-
|
|
6
|
+
include: Option[];
|
|
7
7
|
}
|
|
8
8
|
export interface IMultiSelectListProps<Value, Option> extends ICommonProps {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
9
|
+
tweakStyles?: MultiSelectListStyles;
|
|
10
|
+
value?: Value;
|
|
11
|
+
isSearchEnabled?: boolean;
|
|
12
|
+
width?: number | string;
|
|
13
|
+
localeKey?: IMultiSelectLocaleKey;
|
|
14
|
+
locale?: Partial<IMultiSelectLocale>;
|
|
15
|
+
onClose?: () => void;
|
|
16
|
+
onChange: (val?: Value) => void;
|
|
17
|
+
options?: Option[];
|
|
18
|
+
fetchOptions?: (val?: string, page?: number) => Promise<Option[]>;
|
|
19
|
+
getValueView?: (val: Option) => ReactNode;
|
|
20
|
+
getValueId?: (val: Option) => string;
|
|
21
|
+
getValueString?: (val: Option) => string;
|
|
22
|
+
isGroupingEnabled?: boolean;
|
|
23
|
+
checkboxPosition?: 'left' | 'right';
|
|
24
|
+
pageSize?: number;
|
|
25
|
+
searchMaxLength?: number;
|
|
26
|
+
testId?: string;
|
|
27
27
|
}
|
|
28
|
-
export declare function MultiSelectList<
|
|
28
|
+
export declare function MultiSelectList<
|
|
29
|
+
Value extends IMultiSelectListValues<Option>,
|
|
30
|
+
Option = string,
|
|
31
|
+
>({
|
|
32
|
+
value,
|
|
33
|
+
tweakStyles,
|
|
34
|
+
data,
|
|
35
|
+
isSearchEnabled,
|
|
36
|
+
width,
|
|
37
|
+
localeKey,
|
|
38
|
+
locale,
|
|
39
|
+
onChange,
|
|
40
|
+
onClose,
|
|
41
|
+
options,
|
|
42
|
+
fetchOptions,
|
|
43
|
+
isGroupingEnabled,
|
|
44
|
+
getValueView,
|
|
45
|
+
getValueId,
|
|
46
|
+
getValueString,
|
|
47
|
+
checkboxPosition,
|
|
48
|
+
pageSize,
|
|
49
|
+
searchMaxLength,
|
|
50
|
+
testId,
|
|
51
|
+
}: IMultiSelectListProps<Value, Option>): JSX.Element;
|
|
@@ -1,105 +1,105 @@
|
|
|
1
1
|
import { ComponentStyles } from '../../types';
|
|
2
2
|
export declare const styles: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
list: {
|
|
3
|
+
root: {
|
|
4
|
+
width: ({ width }: { width: number | string }) => string | number;
|
|
5
|
+
background: '#ffffff';
|
|
6
|
+
};
|
|
7
|
+
list:
|
|
8
|
+
| {
|
|
10
9
|
paddingTop: number;
|
|
11
10
|
maxHeight: number;
|
|
12
11
|
overscrollBehavior: string;
|
|
13
|
-
|
|
12
|
+
}
|
|
13
|
+
| {
|
|
14
14
|
paddingTop: number;
|
|
15
15
|
maxHeight: number;
|
|
16
16
|
overscrollBehavior: string;
|
|
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
|
-
|
|
17
|
+
};
|
|
18
|
+
label: {
|
|
19
|
+
boxSizing: string;
|
|
20
|
+
fontSize: number;
|
|
21
|
+
padding: number[];
|
|
22
|
+
userSelect: string;
|
|
23
|
+
display: string;
|
|
24
|
+
alignItems: string;
|
|
25
|
+
color: '#7a869a';
|
|
26
|
+
};
|
|
27
|
+
labelChosen: {
|
|
28
|
+
fontWeight: string;
|
|
29
|
+
color: '#222a37';
|
|
30
|
+
padding: number[];
|
|
31
|
+
};
|
|
32
|
+
withoutTopGap: {
|
|
33
|
+
paddingTop: number;
|
|
34
|
+
};
|
|
35
|
+
item: {
|
|
36
|
+
boxSizing: string;
|
|
37
|
+
padding: number;
|
|
38
|
+
maxWidth: string;
|
|
39
|
+
fontSize: number;
|
|
40
|
+
};
|
|
41
|
+
option: {
|
|
42
|
+
display: string;
|
|
43
|
+
userSelect: string;
|
|
44
|
+
maxWidth: string;
|
|
45
|
+
overflow: string;
|
|
46
|
+
whiteSpace: string;
|
|
47
|
+
textOverflow: string;
|
|
48
|
+
};
|
|
49
|
+
panel: {
|
|
50
|
+
display: string;
|
|
51
|
+
padding: number[];
|
|
52
|
+
};
|
|
53
|
+
clear: {
|
|
54
|
+
marginLeft: string;
|
|
55
|
+
};
|
|
56
|
+
selectedItem: {};
|
|
57
|
+
preloader: {
|
|
58
|
+
width: number;
|
|
59
|
+
height: number;
|
|
60
|
+
margin: string;
|
|
61
|
+
display: string;
|
|
62
|
+
alignItems: string;
|
|
63
|
+
justifyContent: string;
|
|
64
|
+
};
|
|
65
|
+
dropdownInput: {
|
|
66
|
+
borderBottom: (string | number)[];
|
|
67
|
+
};
|
|
68
|
+
nothingFound: {
|
|
69
|
+
display: string;
|
|
70
|
+
alignItems: string;
|
|
71
|
+
justifyContent: string;
|
|
72
|
+
textAlign: string;
|
|
73
|
+
padding: number;
|
|
74
|
+
fontSize: number;
|
|
75
|
+
};
|
|
76
|
+
tweakSearchInput: {
|
|
77
|
+
tweakInput: {
|
|
78
|
+
inputWrapper: {
|
|
79
|
+
backgroundColor: string;
|
|
80
|
+
border: string;
|
|
59
81
|
height: number;
|
|
60
|
-
|
|
61
|
-
display: string;
|
|
62
|
-
alignItems: string;
|
|
63
|
-
justifyContent: string;
|
|
82
|
+
};
|
|
64
83
|
};
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
display: string;
|
|
70
|
-
alignItems: string;
|
|
71
|
-
justifyContent: string;
|
|
72
|
-
textAlign: string;
|
|
73
|
-
padding: number;
|
|
74
|
-
fontSize: number;
|
|
75
|
-
};
|
|
76
|
-
tweakSearchInput: {
|
|
77
|
-
tweakInput: {
|
|
78
|
-
inputWrapper: {
|
|
79
|
-
backgroundColor: string;
|
|
80
|
-
border: string;
|
|
81
|
-
height: number;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
+
};
|
|
85
|
+
tweakCheckbox: {
|
|
86
|
+
root: {
|
|
87
|
+
padding: number[];
|
|
84
88
|
};
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
padding: number[];
|
|
88
|
-
};
|
|
89
|
-
children: {
|
|
90
|
-
marginRight: string;
|
|
91
|
-
};
|
|
89
|
+
children: {
|
|
90
|
+
marginRight: string;
|
|
92
91
|
};
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
92
|
+
};
|
|
93
|
+
tweakClearButton: {
|
|
94
|
+
text: {
|
|
95
|
+
color: '#95a0b3';
|
|
96
|
+
'&:hover, &:focus': {
|
|
97
|
+
color: '#505f79';
|
|
98
|
+
};
|
|
99
|
+
'&:active': {
|
|
100
|
+
color: '#505f79';
|
|
101
|
+
};
|
|
103
102
|
};
|
|
103
|
+
};
|
|
104
104
|
};
|
|
105
105
|
export declare type MultiSelectListStyles = ComponentStyles<typeof styles>;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
export interface IMultiSelectLocale {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
clear: string;
|
|
3
|
+
all: string;
|
|
4
|
+
chosen: string;
|
|
5
|
+
searchPlaceholder: string;
|
|
6
|
+
nothingFound: string;
|
|
7
7
|
}
|
|
8
8
|
export declare const MultiSelectLocales: Record<string, IMultiSelectLocale>;
|
|
9
9
|
export declare type IMultiSelectLocaleKey = keyof typeof MultiSelectLocales;
|
|
10
10
|
export declare const DEFAULT_LOCALE: IMultiSelectLocaleKey;
|
|
11
|
-
export declare const getLocale: (
|
|
11
|
+
export declare const getLocale: (
|
|
12
|
+
key?: IMultiSelectLocaleKey,
|
|
13
|
+
custom?: Partial<IMultiSelectLocale>,
|
|
14
|
+
custom2?: Partial<IMultiSelectLocale>,
|
|
15
|
+
) => IMultiSelectLocale;
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
2
|
import { ICommonProps } from '../../types';
|
|
3
3
|
import { NotificationStyles } from './Notification.styles';
|
|
4
|
-
export declare type NotificationType =
|
|
4
|
+
export declare type NotificationType =
|
|
5
|
+
| 'error'
|
|
6
|
+
| 'info'
|
|
7
|
+
| 'warning'
|
|
8
|
+
| 'ok'
|
|
9
|
+
| 'not-ok';
|
|
5
10
|
export interface INotificationProps extends ICommonProps {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
tweakStyles?: NotificationStyles;
|
|
12
|
+
type: NotificationType;
|
|
13
|
+
isFullWidth?: boolean;
|
|
14
|
+
text?: string;
|
|
15
|
+
title?: string;
|
|
16
|
+
size?: 's' | 'm' | 'l';
|
|
17
|
+
testId?: string;
|
|
18
|
+
children?: ReactNode;
|
|
14
19
|
}
|
|
15
20
|
export declare const Notification: FC<INotificationProps>;
|
|
16
21
|
export default Notification;
|
|
@@ -1,37 +1,40 @@
|
|
|
1
1
|
import { ComponentStyles } from '../../types';
|
|
2
2
|
import type { NotificationType } from './Notification';
|
|
3
3
|
interface IStyleProps {
|
|
4
|
-
|
|
4
|
+
type: NotificationType;
|
|
5
5
|
}
|
|
6
6
|
export declare const styles: {
|
|
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
|
-
|
|
7
|
+
root: {
|
|
8
|
+
display: string;
|
|
9
|
+
};
|
|
10
|
+
inline: {
|
|
11
|
+
width: string;
|
|
12
|
+
};
|
|
13
|
+
icon: {
|
|
14
|
+
width: number;
|
|
15
|
+
height: number;
|
|
16
|
+
marginRight: number;
|
|
17
|
+
flexShrink: number;
|
|
18
|
+
};
|
|
19
|
+
body: {
|
|
20
|
+
flexGrow: number;
|
|
21
|
+
};
|
|
22
|
+
title: {
|
|
23
|
+
display: string;
|
|
24
|
+
fontWeight: string;
|
|
25
|
+
};
|
|
26
|
+
text: {
|
|
27
|
+
display: string;
|
|
28
|
+
};
|
|
29
|
+
content: {};
|
|
30
|
+
s: {};
|
|
31
|
+
m: {};
|
|
32
|
+
l: {};
|
|
33
|
+
withText: {};
|
|
34
|
+
withTitle: {};
|
|
35
35
|
};
|
|
36
|
-
export declare type NotificationStyles = ComponentStyles<
|
|
36
|
+
export declare type NotificationStyles = ComponentStyles<
|
|
37
|
+
typeof styles,
|
|
38
|
+
IStyleProps
|
|
39
|
+
>;
|
|
37
40
|
export {};
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IInputProps } from '../Input';
|
|
3
|
-
export interface INumberInputProps
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
export interface INumberInputProps
|
|
4
|
+
extends Omit<IInputProps, 'value' | 'onChange' | 'type'> {
|
|
5
|
+
value?: number;
|
|
6
|
+
canBeFloat?: boolean;
|
|
7
|
+
precision?: number;
|
|
8
|
+
intPartPrecision?: number;
|
|
9
|
+
defaultValue?: number;
|
|
10
|
+
min?: number;
|
|
11
|
+
max?: number;
|
|
12
|
+
onChange: (
|
|
13
|
+
value: number | undefined,
|
|
14
|
+
event?: React.FormEvent<HTMLInputElement>,
|
|
15
|
+
) => void;
|
|
12
16
|
}
|
|
13
|
-
export declare const NumberInput: React.ForwardRefExoticComponent<
|
|
17
|
+
export declare const NumberInput: React.ForwardRefExoticComponent<
|
|
18
|
+
INumberInputProps & React.RefAttributes<HTMLInputElement>
|
|
19
|
+
>;
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
export declare const getNewCaretPosition: (
|
|
2
|
-
|
|
1
|
+
export declare const getNewCaretPosition: (
|
|
2
|
+
defaultPosition: number,
|
|
3
|
+
oldValue: string,
|
|
4
|
+
newValue: string,
|
|
5
|
+
isDeleteForwardAction?: boolean,
|
|
6
|
+
) => number;
|
|
7
|
+
export declare const formatNumberWithDefault: (
|
|
8
|
+
value: number | undefined,
|
|
9
|
+
defaultValue?: number,
|
|
10
|
+
) => string;
|