@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
|
@@ -2,11 +2,11 @@ import { FC } from 'react';
|
|
|
2
2
|
import { ICommonProps } from '../../types';
|
|
3
3
|
import { DescriptionStyles } from './Description.styles';
|
|
4
4
|
export interface IDescriptionProps extends ICommonProps {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
tweakStyles?: DescriptionStyles;
|
|
6
|
+
text: string;
|
|
7
|
+
moreTitle?: string;
|
|
8
|
+
lessTitle?: string;
|
|
9
|
+
truncateIndex?: number;
|
|
10
|
+
isAlwaysOpen?: boolean;
|
|
11
11
|
}
|
|
12
12
|
export declare const Description: FC<IDescriptionProps>;
|
|
@@ -1,24 +1,24 @@
|
|
|
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
|
+
button: {
|
|
5
|
+
cursor: string;
|
|
6
|
+
display: string;
|
|
7
|
+
color: '#505f79';
|
|
8
|
+
marginTop: number;
|
|
9
|
+
textTransform: string;
|
|
10
|
+
borderBottom: (string | number)[];
|
|
11
|
+
'&:hover': {
|
|
12
|
+
color: '#222a37';
|
|
14
13
|
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
};
|
|
15
|
+
link: {
|
|
16
|
+
color: '#505f79';
|
|
17
|
+
textDecoration: string;
|
|
18
|
+
borderBottom: (string | number)[];
|
|
19
|
+
'&:hover': {
|
|
20
|
+
color: '#222a37';
|
|
22
21
|
};
|
|
22
|
+
};
|
|
23
23
|
};
|
|
24
24
|
export declare type DescriptionStyles = ComponentStyles<typeof styles>;
|
|
@@ -3,24 +3,24 @@ import { ICommonProps } from '../../../types';
|
|
|
3
3
|
import { IFilterLocaleKey, IPartialFilterLocale } from '../locales';
|
|
4
4
|
import { FilterIntervalStyles } from './FilterInterval.styles';
|
|
5
5
|
export interface IFilterIntervalProps extends ICommonProps {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
6
|
+
tweakStyles?: FilterIntervalStyles;
|
|
7
|
+
value?: Array<number | undefined>;
|
|
8
|
+
onChange: (value?: Array<number | undefined>) => void;
|
|
9
|
+
labelName: string;
|
|
10
|
+
localeKey?: IFilterLocaleKey;
|
|
11
|
+
locale?: IPartialFilterLocale;
|
|
12
|
+
withFieldNameInLabel?: boolean;
|
|
13
|
+
canBeFloat?: boolean;
|
|
14
|
+
fromInput?: {
|
|
15
|
+
min?: number;
|
|
16
|
+
max?: number;
|
|
17
|
+
maxLength?: number;
|
|
18
|
+
};
|
|
19
|
+
toInput?: {
|
|
20
|
+
min?: number;
|
|
21
|
+
max?: number;
|
|
22
|
+
maxLength?: number;
|
|
23
|
+
};
|
|
24
|
+
testId?: string;
|
|
25
25
|
}
|
|
26
26
|
export declare const FilterInterval: FC<IFilterIntervalProps>;
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
import { ComponentStyles } from '../../../types';
|
|
2
2
|
export declare const styles: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
root: {
|
|
4
|
+
padding: number;
|
|
5
|
+
background: '#ffffff';
|
|
6
|
+
};
|
|
7
|
+
inputWrapper: {
|
|
8
|
+
padding: number[];
|
|
9
|
+
display: string;
|
|
10
|
+
gridTemplateColumns: string;
|
|
11
|
+
gap: number;
|
|
12
|
+
marginBottom: number;
|
|
13
|
+
};
|
|
14
|
+
autosize: {
|
|
15
|
+
minWidth: number;
|
|
16
|
+
height: number;
|
|
17
|
+
opacity: number;
|
|
18
|
+
paddingRight: number;
|
|
19
|
+
fontSize: number;
|
|
20
|
+
whiteSpace: string;
|
|
21
|
+
userSelect: string;
|
|
22
|
+
pointerEvents: string;
|
|
23
|
+
};
|
|
24
|
+
clear: {
|
|
25
|
+
display: string;
|
|
26
|
+
justifyContent: string;
|
|
27
|
+
};
|
|
28
|
+
tweakInput: {
|
|
29
|
+
input: {
|
|
30
|
+
minWidth: number;
|
|
6
31
|
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
gap: number;
|
|
12
|
-
marginBottom: number;
|
|
13
|
-
};
|
|
14
|
-
autosize: {
|
|
15
|
-
minWidth: number;
|
|
16
|
-
height: number;
|
|
17
|
-
opacity: number;
|
|
32
|
+
icon: {
|
|
33
|
+
padding: number;
|
|
34
|
+
width: number;
|
|
35
|
+
'&:last-child': {
|
|
18
36
|
paddingRight: number;
|
|
19
|
-
|
|
20
|
-
whiteSpace: string;
|
|
21
|
-
userSelect: string;
|
|
22
|
-
pointerEvents: string;
|
|
23
|
-
};
|
|
24
|
-
clear: {
|
|
25
|
-
display: string;
|
|
26
|
-
justifyContent: string;
|
|
27
|
-
};
|
|
28
|
-
tweakInput: {
|
|
29
|
-
input: {
|
|
30
|
-
minWidth: number;
|
|
31
|
-
};
|
|
32
|
-
icon: {
|
|
33
|
-
padding: number;
|
|
34
|
-
width: number;
|
|
35
|
-
'&:last-child': {
|
|
36
|
-
paddingRight: number;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
37
|
+
};
|
|
39
38
|
};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
39
|
+
};
|
|
40
|
+
tweakClearButton: {
|
|
41
|
+
text: {
|
|
42
|
+
color: '#95a0b3';
|
|
43
|
+
'&:hover, &:focus': {
|
|
44
|
+
color: '#505f79';
|
|
45
|
+
};
|
|
46
|
+
'&:active': {
|
|
47
|
+
color: '#505f79';
|
|
48
|
+
};
|
|
50
49
|
};
|
|
50
|
+
};
|
|
51
51
|
};
|
|
52
52
|
export declare type FilterIntervalStyles = ComponentStyles<typeof styles>;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IFilterMultiSelectValues } from '../types';
|
|
3
3
|
import { IMultiSelectListProps } from '../../MultiSelectList';
|
|
4
|
-
export declare type IFilterMultiSelectProps<
|
|
5
|
-
|
|
4
|
+
export declare type IFilterMultiSelectProps<
|
|
5
|
+
Value,
|
|
6
|
+
Option = string,
|
|
7
|
+
> = IMultiSelectListProps<Value, Option>;
|
|
8
|
+
export declare function FilterMultiSelect<
|
|
9
|
+
Value extends IFilterMultiSelectValues<Option>,
|
|
10
|
+
Option = string,
|
|
11
|
+
>(props: IFilterMultiSelectProps<Value, Option>): JSX.Element;
|
|
@@ -4,22 +4,40 @@ import { IFilterLocaleKey } from '../locales';
|
|
|
4
4
|
import { ISelectLocale } from './locales';
|
|
5
5
|
import { FilterSelectStyles } from './FilterSelect.styles';
|
|
6
6
|
export interface IFilterSelectProps<Value> extends ICommonProps {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
7
|
+
tweakStyles?: FilterSelectStyles;
|
|
8
|
+
value?: Value;
|
|
9
|
+
onChange: (value?: Value) => void;
|
|
10
|
+
isSearchEnabled?: boolean;
|
|
11
|
+
isGroupingEnabled?: boolean;
|
|
12
|
+
width?: string | number;
|
|
13
|
+
localeKey?: IFilterLocaleKey;
|
|
14
|
+
locale?: Partial<ISelectLocale>;
|
|
15
|
+
options?: Value[];
|
|
16
|
+
footer?: ReactNode;
|
|
17
|
+
fetchOptions?: (value?: string, page?: number) => Promise<Value[]>;
|
|
18
|
+
getValueString?: (value: Value) => string;
|
|
19
|
+
getValueView?: (value: Value) => ReactNode;
|
|
20
|
+
getValueId?: (value: Value) => string;
|
|
21
|
+
hasClearButton?: boolean;
|
|
22
|
+
testId?: string;
|
|
23
23
|
}
|
|
24
24
|
export declare const defaultConvertFunction: (val: unknown) => string;
|
|
25
|
-
export declare function FilterSelect<Value>({
|
|
25
|
+
export declare function FilterSelect<Value>({
|
|
26
|
+
data,
|
|
27
|
+
tweakStyles,
|
|
28
|
+
value,
|
|
29
|
+
isSearchEnabled,
|
|
30
|
+
isGroupingEnabled,
|
|
31
|
+
width,
|
|
32
|
+
localeKey,
|
|
33
|
+
locale,
|
|
34
|
+
onChange,
|
|
35
|
+
options,
|
|
36
|
+
fetchOptions,
|
|
37
|
+
footer,
|
|
38
|
+
getValueView,
|
|
39
|
+
getValueId,
|
|
40
|
+
getValueString,
|
|
41
|
+
hasClearButton,
|
|
42
|
+
testId,
|
|
43
|
+
}: IFilterSelectProps<Value>): JSX.Element;
|
|
@@ -1,124 +1,124 @@
|
|
|
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: string | number }) => string | number;
|
|
5
|
+
background: '#ffffff';
|
|
6
|
+
};
|
|
7
|
+
list:
|
|
8
|
+
| {
|
|
10
9
|
paddingTop: number;
|
|
11
10
|
padding: number[];
|
|
12
11
|
maxHeight: number;
|
|
13
12
|
overscrollBehavior: string;
|
|
14
|
-
|
|
13
|
+
}
|
|
14
|
+
| {
|
|
15
15
|
paddingTop: number;
|
|
16
16
|
padding: number[];
|
|
17
17
|
maxHeight: number;
|
|
18
18
|
overscrollBehavior: string;
|
|
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
|
-
|
|
19
|
+
};
|
|
20
|
+
label: {
|
|
21
|
+
boxSizing: string;
|
|
22
|
+
fontSize: number;
|
|
23
|
+
padding: number[];
|
|
24
|
+
userSelect: string;
|
|
25
|
+
display: string;
|
|
26
|
+
alignItems: string;
|
|
27
|
+
color: '#7a869a';
|
|
28
|
+
};
|
|
29
|
+
labelChosen: {
|
|
30
|
+
fontWeight: string;
|
|
31
|
+
color: '#222a37';
|
|
32
|
+
padding: number[];
|
|
33
|
+
};
|
|
34
|
+
withoutTopGap: {
|
|
35
|
+
paddingTop: number;
|
|
36
|
+
};
|
|
37
|
+
withClearButton: {
|
|
38
|
+
paddingBottom: number;
|
|
39
|
+
maxHeight: number;
|
|
40
|
+
};
|
|
41
|
+
item: {
|
|
42
|
+
display: string;
|
|
43
|
+
alignItems: string;
|
|
44
|
+
justifyContent: string;
|
|
45
|
+
padding: number[];
|
|
46
|
+
maxWidth: string;
|
|
47
|
+
cursor: string;
|
|
48
|
+
fontSize: number;
|
|
49
|
+
minHeight: number;
|
|
50
|
+
transition: string;
|
|
51
|
+
boxSizing: string;
|
|
52
|
+
};
|
|
53
|
+
option: {
|
|
54
|
+
display: string;
|
|
55
|
+
userSelect: string;
|
|
56
|
+
width: string;
|
|
57
|
+
overflow: string;
|
|
58
|
+
whiteSpace: string;
|
|
59
|
+
textOverflow: string;
|
|
60
|
+
};
|
|
61
|
+
icon: {
|
|
62
|
+
width: number;
|
|
63
|
+
height: number;
|
|
64
|
+
marginRight: number;
|
|
65
|
+
alignSelf: string;
|
|
66
|
+
flexShrink: number;
|
|
67
|
+
};
|
|
68
|
+
panel: {
|
|
69
|
+
display: string;
|
|
70
|
+
padding: number[];
|
|
71
|
+
gap: number;
|
|
72
|
+
};
|
|
73
|
+
panelWithFooter: {
|
|
74
|
+
borderTop: (string | number)[];
|
|
75
|
+
padding: number[];
|
|
76
|
+
};
|
|
77
|
+
footer: {
|
|
78
|
+
wordBreak: string;
|
|
79
|
+
alignSelf: string;
|
|
80
|
+
};
|
|
81
|
+
clear: {
|
|
82
|
+
marginLeft: string;
|
|
83
|
+
alignSelf: string;
|
|
84
|
+
};
|
|
85
|
+
preloader: {
|
|
86
|
+
width: number;
|
|
87
|
+
height: number;
|
|
88
|
+
margin: string;
|
|
89
|
+
display: string;
|
|
90
|
+
alignItems: string;
|
|
91
|
+
justifyContent: string;
|
|
92
|
+
};
|
|
93
|
+
dropdownInput: {
|
|
94
|
+
borderBottom: (string | number)[];
|
|
95
|
+
};
|
|
96
|
+
nothingFound: {
|
|
97
|
+
display: string;
|
|
98
|
+
alignItems: string;
|
|
99
|
+
textAlign: string;
|
|
100
|
+
padding: number;
|
|
101
|
+
fontSize: number;
|
|
102
|
+
};
|
|
103
|
+
tweakSearchInput: {
|
|
104
|
+
tweakInput: {
|
|
105
|
+
inputWrapper: {
|
|
106
|
+
backgroundColor: string;
|
|
107
|
+
border: string;
|
|
63
108
|
height: number;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
wordBreak: string;
|
|
79
|
-
alignSelf: string;
|
|
80
|
-
};
|
|
81
|
-
clear: {
|
|
82
|
-
marginLeft: string;
|
|
83
|
-
alignSelf: string;
|
|
84
|
-
};
|
|
85
|
-
preloader: {
|
|
86
|
-
width: number;
|
|
87
|
-
height: number;
|
|
88
|
-
margin: string;
|
|
89
|
-
display: string;
|
|
90
|
-
alignItems: string;
|
|
91
|
-
justifyContent: string;
|
|
92
|
-
};
|
|
93
|
-
dropdownInput: {
|
|
94
|
-
borderBottom: (string | number)[];
|
|
95
|
-
};
|
|
96
|
-
nothingFound: {
|
|
97
|
-
display: string;
|
|
98
|
-
alignItems: string;
|
|
99
|
-
textAlign: string;
|
|
100
|
-
padding: number;
|
|
101
|
-
fontSize: number;
|
|
102
|
-
};
|
|
103
|
-
tweakSearchInput: {
|
|
104
|
-
tweakInput: {
|
|
105
|
-
inputWrapper: {
|
|
106
|
-
backgroundColor: string;
|
|
107
|
-
border: string;
|
|
108
|
-
height: number;
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
tweakClearButton: {
|
|
113
|
-
text: {
|
|
114
|
-
color: "#95a0b3";
|
|
115
|
-
'&:hover, &:focus': {
|
|
116
|
-
color: "#505f79";
|
|
117
|
-
};
|
|
118
|
-
'&:active': {
|
|
119
|
-
color: "#505f79";
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
};
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
tweakClearButton: {
|
|
113
|
+
text: {
|
|
114
|
+
color: '#95a0b3';
|
|
115
|
+
'&:hover, &:focus': {
|
|
116
|
+
color: '#505f79';
|
|
117
|
+
};
|
|
118
|
+
'&:active': {
|
|
119
|
+
color: '#505f79';
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
123
|
};
|
|
124
124
|
export declare type FilterSelectStyles = ComponentStyles<typeof styles>;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
export interface ISelectLocale {
|
|
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 SelectLocales: Record<string, ISelectLocale>;
|
|
9
9
|
export declare type ISelectLocaleKey = keyof typeof SelectLocales;
|
|
10
10
|
export declare const DEFAULT_LOCALE: ISelectLocaleKey;
|
|
11
|
-
export declare const getLocale: (
|
|
11
|
+
export declare const getLocale: (
|
|
12
|
+
key?: ISelectLocaleKey,
|
|
13
|
+
custom?: Partial<ISelectLocale>,
|
|
14
|
+
custom2?: Partial<ISelectLocale>,
|
|
15
|
+
) => ISelectLocale;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IFilterWrapperProps } from '../FilterWrapper';
|
|
3
|
-
export declare function FilterValueView<Values, Key extends keyof Values>({
|
|
3
|
+
export declare function FilterValueView<Values, Key extends keyof Values>({
|
|
4
|
+
locale,
|
|
5
|
+
localeKey,
|
|
6
|
+
filter,
|
|
7
|
+
value,
|
|
8
|
+
}: Omit<
|
|
9
|
+
IFilterWrapperProps<Values, Key>,
|
|
10
|
+
'onChange' | 'filtersPaneRef'
|
|
11
|
+
>): JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ComponentStyles } from '../../../types';
|
|
2
2
|
export declare const styles: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
text: {
|
|
4
|
+
overflow: string;
|
|
5
|
+
textOverflow: string;
|
|
6
|
+
whiteSpace: string;
|
|
7
|
+
};
|
|
8
|
+
count: {
|
|
9
|
+
whiteSpace: string;
|
|
10
|
+
};
|
|
11
11
|
};
|
|
12
12
|
export declare type FilterValueViewStyles = ComponentStyles<typeof styles>;
|
|
@@ -4,20 +4,28 @@ import { IDatePickerProps } from '../../DatePicker';
|
|
|
4
4
|
import { IFilterWithDatesValue } from '../types';
|
|
5
5
|
import { IFilterLocaleKey, IPartialFilterLocale } from '../locales';
|
|
6
6
|
import { FilterWithDatesStyles } from './FilterWithDates.styles';
|
|
7
|
-
declare type PickerProps = Omit<
|
|
7
|
+
declare type PickerProps = Omit<
|
|
8
|
+
IDatePickerProps,
|
|
9
|
+
| 'onChange'
|
|
10
|
+
| 'value'
|
|
11
|
+
| 'isNeedClearSelectedDate'
|
|
12
|
+
| 'locale'
|
|
13
|
+
| 'months'
|
|
14
|
+
| 'selectedDate'
|
|
15
|
+
>;
|
|
8
16
|
export interface IFilterWithDatesProps extends ICommonProps {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
tweakStyles?: FilterWithDatesStyles;
|
|
18
|
+
value?: IFilterWithDatesValue;
|
|
19
|
+
onChange: (val: IFilterWithDatesValue) => void;
|
|
20
|
+
localeKey?: IFilterLocaleKey;
|
|
21
|
+
locale?: IPartialFilterLocale;
|
|
22
|
+
onStartBtnSubmit?: () => void;
|
|
23
|
+
onEndBtnSubmit: () => void;
|
|
24
|
+
testId?: string;
|
|
25
|
+
isClearable?: boolean;
|
|
26
|
+
startPickerProps?: PickerProps;
|
|
27
|
+
endPickerProps?: PickerProps;
|
|
20
28
|
}
|
|
21
|
-
export declare const DATE_FORMAT =
|
|
29
|
+
export declare const DATE_FORMAT = 'dd.MM.yyyy';
|
|
22
30
|
export declare const FilterWithDates: FC<IFilterWithDatesProps>;
|
|
23
31
|
export {};
|