@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,47 +1,47 @@
|
|
|
1
1
|
import { ComponentStyles } from '../../../types';
|
|
2
2
|
export declare const styles: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
root: {
|
|
4
|
+
background: '#ffffff';
|
|
5
|
+
position: string;
|
|
6
|
+
zIndex: number;
|
|
7
|
+
};
|
|
8
|
+
container: {
|
|
9
|
+
display: string;
|
|
10
|
+
gap: number;
|
|
11
|
+
padding: number[];
|
|
12
|
+
};
|
|
13
|
+
containerItem: {
|
|
14
|
+
width: string;
|
|
15
|
+
height: number;
|
|
16
|
+
};
|
|
17
|
+
btnRow: {
|
|
18
|
+
display: string;
|
|
19
|
+
flexDirection: string;
|
|
20
|
+
justifyContent: string;
|
|
21
|
+
padding: number;
|
|
22
|
+
};
|
|
23
|
+
datepicker: {};
|
|
24
|
+
tweakClearButton: {
|
|
25
|
+
text: {
|
|
26
|
+
color: '#95a0b3';
|
|
27
|
+
'&:hover, &:focus': {
|
|
28
|
+
color: '#505f79';
|
|
29
|
+
};
|
|
30
|
+
'&:active': {
|
|
31
|
+
color: '#505f79';
|
|
32
|
+
};
|
|
7
33
|
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
display: string;
|
|
19
|
-
flexDirection: string;
|
|
20
|
-
justifyContent: string;
|
|
21
|
-
padding: number;
|
|
22
|
-
};
|
|
23
|
-
datepicker: {};
|
|
24
|
-
tweakClearButton: {
|
|
25
|
-
text: {
|
|
26
|
-
color: "#95a0b3";
|
|
27
|
-
'&:hover, &:focus': {
|
|
28
|
-
color: "#505f79";
|
|
29
|
-
};
|
|
30
|
-
'&:active': {
|
|
31
|
-
color: "#505f79";
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
tweakBackButton: {
|
|
36
|
-
text: {
|
|
37
|
-
color: "#95a0b3";
|
|
38
|
-
'&:hover, &:focus': {
|
|
39
|
-
color: "#505f79";
|
|
40
|
-
};
|
|
41
|
-
'&:active': {
|
|
42
|
-
color: "#505f79";
|
|
43
|
-
};
|
|
44
|
-
};
|
|
34
|
+
};
|
|
35
|
+
tweakBackButton: {
|
|
36
|
+
text: {
|
|
37
|
+
color: '#95a0b3';
|
|
38
|
+
'&:hover, &:focus': {
|
|
39
|
+
color: '#505f79';
|
|
40
|
+
};
|
|
41
|
+
'&:active': {
|
|
42
|
+
color: '#505f79';
|
|
43
|
+
};
|
|
45
44
|
};
|
|
45
|
+
};
|
|
46
46
|
};
|
|
47
47
|
export declare type FilterWithDatesStyles = ComponentStyles<typeof styles>;
|
|
@@ -4,13 +4,13 @@ import { IPeriod, IPeriodsList } from '../types';
|
|
|
4
4
|
import { IFilterLocaleKey, IPartialFilterLocale } from '../locales';
|
|
5
5
|
import { FilterWithPeriodStyles } from './FilterWithPeriod.styles';
|
|
6
6
|
export interface IFilterWithPeriodProps extends ICommonProps {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
tweakStyles?: FilterWithPeriodStyles;
|
|
8
|
+
value?: IPeriod;
|
|
9
|
+
onChange: (period?: IPeriod) => void;
|
|
10
|
+
onClose?: () => void;
|
|
11
|
+
localeKey?: IFilterLocaleKey;
|
|
12
|
+
locale?: IPartialFilterLocale;
|
|
13
|
+
periods?: IPeriodsList;
|
|
14
|
+
testId?: string;
|
|
15
15
|
}
|
|
16
16
|
export declare const FilterWithPeriod: FC<IFilterWithPeriodProps>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ComponentStyles } from '../../../types';
|
|
2
2
|
export declare const styles: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
3
|
+
root: {};
|
|
4
|
+
main: {};
|
|
5
|
+
picker: {};
|
|
6
|
+
tweakSelect: {
|
|
7
|
+
options: {
|
|
8
|
+
maxHeight: string;
|
|
10
9
|
};
|
|
10
|
+
};
|
|
11
11
|
};
|
|
12
12
|
export declare type FilterWithPeriodStyles = ComponentStyles<typeof styles>;
|
|
@@ -4,24 +4,47 @@ import { ConfigItem } from '../types';
|
|
|
4
4
|
import { IFilterLocaleKey, IPartialFilterLocale } from '../locales';
|
|
5
5
|
import { FilterWrapperStyles } from './FilterWrapper.styles';
|
|
6
6
|
export interface IFilterWrapperProps<Values, Key extends keyof Values> {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
tweakStyles?: FilterWrapperStyles;
|
|
8
|
+
filter: ConfigItem<Values[Key]>;
|
|
9
|
+
value?: Values[Key];
|
|
10
|
+
onChange: <V>(value: V) => void;
|
|
11
|
+
isDisabled?: boolean;
|
|
12
|
+
localeKey?: IFilterLocaleKey;
|
|
13
|
+
locale?: IPartialFilterLocale;
|
|
14
|
+
testId?: string;
|
|
15
|
+
filtersPaneRef: RefObject<HTMLDivElement> | null;
|
|
16
16
|
}
|
|
17
|
-
interface IFilterOtherProps<Values, Key extends keyof Values>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
interface IFilterOtherProps<Values, Key extends keyof Values>
|
|
18
|
+
extends IFilterWrapperProps<Values, Key> {
|
|
19
|
+
parentRef?: RefObject<HTMLElement>;
|
|
20
|
+
isInline?: boolean;
|
|
21
|
+
onChange: <V>(v: V) => void;
|
|
22
|
+
onClose?: () => void;
|
|
23
|
+
filtersPaneRef: RefObject<HTMLDivElement> | null;
|
|
24
|
+
classes: Classes<'left' | 'right' | 'dropdown'>;
|
|
24
25
|
}
|
|
25
|
-
export declare function FilterWrapper<Values, Key extends keyof Values>({
|
|
26
|
-
|
|
26
|
+
export declare function FilterWrapper<Values, Key extends keyof Values>({
|
|
27
|
+
filter,
|
|
28
|
+
value,
|
|
29
|
+
isDisabled,
|
|
30
|
+
onChange,
|
|
31
|
+
locale,
|
|
32
|
+
localeKey,
|
|
33
|
+
testId,
|
|
34
|
+
filtersPaneRef,
|
|
35
|
+
tweakStyles,
|
|
36
|
+
}: IFilterWrapperProps<Values, Key>): JSX.Element;
|
|
37
|
+
export declare function Filter<Values, Key extends keyof Values>({
|
|
38
|
+
filter,
|
|
39
|
+
value,
|
|
40
|
+
parentRef,
|
|
41
|
+
isInline,
|
|
42
|
+
onChange,
|
|
43
|
+
onClose,
|
|
44
|
+
localeKey,
|
|
45
|
+
locale,
|
|
46
|
+
filtersPaneRef,
|
|
47
|
+
testId,
|
|
48
|
+
classes,
|
|
49
|
+
}: IFilterOtherProps<Values, Key>): JSX.Element | null;
|
|
27
50
|
export {};
|
|
@@ -1,96 +1,96 @@
|
|
|
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
|
-
|
|
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
|
-
|
|
3
|
+
root: {
|
|
4
|
+
position: string;
|
|
5
|
+
transition: string;
|
|
6
|
+
transitionProperty: string;
|
|
7
|
+
border: (string | number)[];
|
|
8
|
+
borderRadius: number;
|
|
9
|
+
boxSizing: string;
|
|
10
|
+
height: number;
|
|
11
|
+
minWidth: number;
|
|
12
|
+
};
|
|
13
|
+
item: {
|
|
14
|
+
display: string;
|
|
15
|
+
padding: number[];
|
|
16
|
+
cursor: string;
|
|
17
|
+
};
|
|
18
|
+
booleanItem: {
|
|
19
|
+
padding: number;
|
|
20
|
+
};
|
|
21
|
+
name: {
|
|
22
|
+
fontSize: number;
|
|
23
|
+
lineHeight: string;
|
|
24
|
+
whiteSpace: string;
|
|
25
|
+
};
|
|
26
|
+
boolean: {
|
|
27
|
+
padding: number[];
|
|
28
|
+
};
|
|
29
|
+
noValue: {};
|
|
30
|
+
openNoValue: {};
|
|
31
|
+
openWithValue: {};
|
|
32
|
+
disabled: {
|
|
33
|
+
'& > $item': {
|
|
34
|
+
cursor: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
withValue: {};
|
|
38
|
+
iconContainer: {
|
|
39
|
+
width: number;
|
|
40
|
+
height: number;
|
|
41
|
+
transition: string;
|
|
42
|
+
alignSelf: string;
|
|
43
|
+
marginLeft: number;
|
|
44
|
+
marginRight: number;
|
|
45
|
+
flexShrink: number;
|
|
46
|
+
};
|
|
47
|
+
open: {
|
|
48
|
+
transform: string;
|
|
49
|
+
};
|
|
50
|
+
dropdown: {
|
|
51
|
+
position: string;
|
|
52
|
+
zIndex: number;
|
|
53
|
+
marginTop: number;
|
|
54
|
+
border: (string | number)[];
|
|
55
|
+
};
|
|
56
|
+
left: {
|
|
57
|
+
left: number;
|
|
58
|
+
};
|
|
59
|
+
right: {
|
|
60
|
+
right: number;
|
|
61
|
+
};
|
|
62
|
+
value: {
|
|
63
|
+
alignSelf: string;
|
|
64
|
+
fontSize: number;
|
|
65
|
+
lineHeight: string;
|
|
66
|
+
margin: number[];
|
|
67
|
+
fontWeight: string;
|
|
68
|
+
display: string;
|
|
69
|
+
minWidth: number;
|
|
70
|
+
};
|
|
71
|
+
animationEnd: {
|
|
72
|
+
opacity: number;
|
|
73
|
+
transform: string;
|
|
74
|
+
transition: string;
|
|
75
|
+
transitionProperty: string;
|
|
76
|
+
};
|
|
77
|
+
animationStart: {
|
|
78
|
+
opacity: number;
|
|
79
|
+
transform: string;
|
|
80
|
+
transition: string;
|
|
81
|
+
transitionProperty: string;
|
|
82
|
+
};
|
|
83
|
+
'dropdown-enter': {
|
|
84
|
+
extend: string;
|
|
85
|
+
};
|
|
86
|
+
'dropdown-enter-active': {
|
|
87
|
+
extend: string;
|
|
88
|
+
};
|
|
89
|
+
'dropdown-exit-active': {
|
|
90
|
+
extend: string;
|
|
91
|
+
};
|
|
92
|
+
'dropdown-exit': {
|
|
93
|
+
extend: string;
|
|
94
|
+
};
|
|
95
95
|
};
|
|
96
96
|
export declare type FilterWrapperStyles = ComponentStyles<typeof styles>;
|
|
@@ -4,19 +4,38 @@ import { ConfigType } from './types';
|
|
|
4
4
|
import { IFiltersPaneSearchProps } from './FiltersPaneSearch';
|
|
5
5
|
import { IFilterLocaleKey, IPartialFilterLocale } from './locales';
|
|
6
6
|
import { FiltersPaneStyles } from './FiltersPane.styles';
|
|
7
|
-
export interface IFiltersPaneProps<Values, Content = Values>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
7
|
+
export interface IFiltersPaneProps<Values, Content = Values>
|
|
8
|
+
extends ICommonProps {
|
|
9
|
+
tweakStyles?: FiltersPaneStyles;
|
|
10
|
+
filtersConfig: ConfigType<Values>;
|
|
11
|
+
enabledFilters?: Array<keyof ConfigType<Values>>;
|
|
12
|
+
values?: Partial<Values>;
|
|
13
|
+
search?: IFiltersPaneSearchProps<keyof Content>;
|
|
14
|
+
localeKey?: IFilterLocaleKey;
|
|
15
|
+
locale?: IPartialFilterLocale;
|
|
16
|
+
isDisabled?: boolean;
|
|
17
|
+
hasClearButton?: boolean;
|
|
18
|
+
onClear?: () => void;
|
|
19
|
+
onChangeFilters: (values: Partial<Values>) => void;
|
|
20
|
+
onSettingsButtonClick?: () => void;
|
|
21
|
+
testId?: string;
|
|
21
22
|
}
|
|
22
|
-
export declare function FiltersPane<
|
|
23
|
+
export declare function FiltersPane<
|
|
24
|
+
Values extends Record<string, unknown>,
|
|
25
|
+
Content = Values,
|
|
26
|
+
>({
|
|
27
|
+
data,
|
|
28
|
+
tweakStyles,
|
|
29
|
+
filtersConfig,
|
|
30
|
+
enabledFilters,
|
|
31
|
+
values,
|
|
32
|
+
localeKey,
|
|
33
|
+
locale,
|
|
34
|
+
search,
|
|
35
|
+
isDisabled,
|
|
36
|
+
hasClearButton,
|
|
37
|
+
onChangeFilters,
|
|
38
|
+
onSettingsButtonClick,
|
|
39
|
+
onClear,
|
|
40
|
+
testId,
|
|
41
|
+
}: IFiltersPaneProps<Values, Content>): JSX.Element;
|
|
@@ -1,57 +1,57 @@
|
|
|
1
1
|
import { ComponentStyles } from '../../types';
|
|
2
2
|
export declare const FILTER_HEIGHT = 36;
|
|
3
3
|
export declare const styles: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
root: {
|
|
5
|
+
display: string;
|
|
6
|
+
flexWrap: string;
|
|
7
|
+
gap: number;
|
|
8
|
+
width: string;
|
|
9
|
+
};
|
|
10
|
+
settings: {
|
|
11
|
+
display: string;
|
|
12
|
+
alignItems: string;
|
|
13
|
+
justifyContent: string;
|
|
14
|
+
borderRadius: number;
|
|
15
|
+
boxSizing: string;
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
cursor: string;
|
|
19
|
+
transition: string;
|
|
20
|
+
};
|
|
21
|
+
settingsIcon: {
|
|
22
|
+
width: number;
|
|
23
|
+
height: number;
|
|
24
|
+
};
|
|
25
|
+
clear: {
|
|
26
|
+
display: string;
|
|
27
|
+
alignItems: string;
|
|
28
|
+
height: number;
|
|
29
|
+
};
|
|
30
|
+
filterWithClearButton: {
|
|
31
|
+
display: string;
|
|
32
|
+
gap: number;
|
|
33
|
+
minWidth: number;
|
|
34
|
+
};
|
|
35
|
+
tweakClearButton: {
|
|
36
|
+
s: {
|
|
37
|
+
paddingLeft: number;
|
|
38
|
+
paddingRight: number;
|
|
39
|
+
minWidth: string;
|
|
9
40
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
height: number;
|
|
24
|
-
};
|
|
25
|
-
clear: {
|
|
26
|
-
display: string;
|
|
27
|
-
alignItems: string;
|
|
28
|
-
height: number;
|
|
29
|
-
};
|
|
30
|
-
filterWithClearButton: {
|
|
31
|
-
display: string;
|
|
32
|
-
gap: number;
|
|
33
|
-
minWidth: number;
|
|
34
|
-
};
|
|
35
|
-
tweakClearButton: {
|
|
36
|
-
s: {
|
|
37
|
-
paddingLeft: number;
|
|
38
|
-
paddingRight: number;
|
|
39
|
-
minWidth: string;
|
|
40
|
-
};
|
|
41
|
-
text: {
|
|
42
|
-
background: string;
|
|
43
|
-
color: "#95a0b3";
|
|
44
|
-
'&:hover, &:focus': {
|
|
45
|
-
color: "#505f79";
|
|
46
|
-
};
|
|
47
|
-
'&:active': {
|
|
48
|
-
color: "#222a37";
|
|
49
|
-
};
|
|
50
|
-
'&:hover, &:focus, &:active': {
|
|
51
|
-
background: string;
|
|
52
|
-
borderColor: string;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
41
|
+
text: {
|
|
42
|
+
background: string;
|
|
43
|
+
color: '#95a0b3';
|
|
44
|
+
'&:hover, &:focus': {
|
|
45
|
+
color: '#505f79';
|
|
46
|
+
};
|
|
47
|
+
'&:active': {
|
|
48
|
+
color: '#222a37';
|
|
49
|
+
};
|
|
50
|
+
'&:hover, &:focus, &:active': {
|
|
51
|
+
background: string;
|
|
52
|
+
borderColor: string;
|
|
53
|
+
};
|
|
55
54
|
};
|
|
55
|
+
};
|
|
56
56
|
};
|
|
57
57
|
export declare type FiltersPaneStyles = ComponentStyles<typeof styles>;
|
|
@@ -5,22 +5,41 @@ import { IFiltersPaneSearchPayload } from '../types';
|
|
|
5
5
|
import { ICommonProps } from '../../../types';
|
|
6
6
|
import { FiltersPaneSearchStyles } from './FiltersPaneSearch.styles';
|
|
7
7
|
export interface IFiltersPaneSearchProps<Value> extends ICommonProps {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
8
|
+
tweakStyles?: FiltersPaneSearchStyles;
|
|
9
|
+
field?: Value;
|
|
10
|
+
fields?: Value[];
|
|
11
|
+
value?: string;
|
|
12
|
+
onChange: (v: IFiltersPaneSearchPayload<Value>) => void;
|
|
13
|
+
localeKey?: IFilterLocaleKey;
|
|
14
|
+
locale?: IPartialFilterLocale;
|
|
15
|
+
testId?: string;
|
|
16
|
+
maxLength?: number;
|
|
17
|
+
getValueView?: (value: Value) => ReactNode;
|
|
18
|
+
getValueId?: (value: Value) => string;
|
|
19
|
+
getValueString?: (value: Value) => string;
|
|
20
|
+
selectWidth?: IFilterSelectProps<Value>['width'];
|
|
21
|
+
hasClearSelectButton?: boolean;
|
|
22
|
+
isDisabled?: boolean;
|
|
23
|
+
isSelectSearchEnabled?: boolean;
|
|
24
|
+
isAutoSizeable?: boolean;
|
|
25
25
|
}
|
|
26
|
-
export declare function FiltersPaneSearch<Value>({
|
|
26
|
+
export declare function FiltersPaneSearch<Value>({
|
|
27
|
+
value,
|
|
28
|
+
fields,
|
|
29
|
+
field,
|
|
30
|
+
onChange,
|
|
31
|
+
localeKey,
|
|
32
|
+
locale,
|
|
33
|
+
getValueId,
|
|
34
|
+
getValueView,
|
|
35
|
+
getValueString,
|
|
36
|
+
selectWidth,
|
|
37
|
+
hasClearSelectButton,
|
|
38
|
+
isDisabled,
|
|
39
|
+
isSelectSearchEnabled,
|
|
40
|
+
isAutoSizeable,
|
|
41
|
+
maxLength,
|
|
42
|
+
data,
|
|
43
|
+
tweakStyles,
|
|
44
|
+
testId,
|
|
45
|
+
}: IFiltersPaneSearchProps<Value>): JSX.Element;
|