@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
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import { ComponentStyles } from '../../../types';
|
|
2
2
|
export declare const styles: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
};
|
|
3
|
+
root: {
|
|
4
|
+
background: "#ffffff";
|
|
5
|
+
position: string;
|
|
6
|
+
zIndex: number;
|
|
33
7
|
};
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
tweakBackButton: {
|
|
36
|
+
text: {
|
|
37
|
+
color: "#95a0b3";
|
|
38
|
+
'&:hover, &:focus': {
|
|
39
|
+
color: "#505f79";
|
|
40
|
+
};
|
|
41
|
+
'&:active': {
|
|
42
|
+
color: "#505f79";
|
|
43
|
+
};
|
|
44
|
+
};
|
|
44
45
|
};
|
|
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
|
-
|
|
3
|
+
root: {};
|
|
4
|
+
main: {};
|
|
5
|
+
picker: {};
|
|
6
|
+
tweakSelect: {
|
|
7
|
+
options: {
|
|
8
|
+
maxHeight: string;
|
|
9
|
+
};
|
|
9
10
|
};
|
|
10
|
-
};
|
|
11
11
|
};
|
|
12
12
|
export declare type FilterWithPeriodStyles = ComponentStyles<typeof styles>;
|
|
@@ -4,47 +4,24 @@ 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
|
-
|
|
24
|
-
classes: Classes<'left' | 'right' | 'dropdown'>;
|
|
17
|
+
interface IFilterOtherProps<Values, Key extends keyof Values> extends IFilterWrapperProps<Values, Key> {
|
|
18
|
+
parentRef?: RefObject<HTMLElement>;
|
|
19
|
+
isInline?: boolean;
|
|
20
|
+
onChange: <V>(v: V) => void;
|
|
21
|
+
onClose?: () => void;
|
|
22
|
+
filtersPaneRef: RefObject<HTMLDivElement> | null;
|
|
23
|
+
classes: Classes<'left' | 'right' | 'dropdown'>;
|
|
25
24
|
}
|
|
26
|
-
export declare function FilterWrapper<Values, Key extends keyof Values>({
|
|
27
|
-
|
|
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;
|
|
25
|
+
export declare function FilterWrapper<Values, Key extends keyof Values>({ filter, value, isDisabled, onChange, locale, localeKey, testId, filtersPaneRef, tweakStyles, }: IFilterWrapperProps<Values, Key>): JSX.Element;
|
|
26
|
+
export declare function Filter<Values, Key extends keyof Values>({ filter, value, parentRef, isInline, onChange, onClose, localeKey, locale, filtersPaneRef, testId, classes, }: IFilterOtherProps<Values, Key>): JSX.Element | null;
|
|
50
27
|
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,38 +4,19 @@ 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
|
-
|
|
21
|
-
testId?: string;
|
|
7
|
+
export interface IFiltersPaneProps<Values, Content = Values> extends ICommonProps {
|
|
8
|
+
tweakStyles?: FiltersPaneStyles;
|
|
9
|
+
filtersConfig: ConfigType<Values>;
|
|
10
|
+
enabledFilters?: Array<keyof ConfigType<Values>>;
|
|
11
|
+
values?: Partial<Values>;
|
|
12
|
+
search?: IFiltersPaneSearchProps<keyof Content>;
|
|
13
|
+
localeKey?: IFilterLocaleKey;
|
|
14
|
+
locale?: IPartialFilterLocale;
|
|
15
|
+
isDisabled?: boolean;
|
|
16
|
+
hasClearButton?: boolean;
|
|
17
|
+
onClear?: () => void;
|
|
18
|
+
onChangeFilters: (values: Partial<Values>) => void;
|
|
19
|
+
onSettingsButtonClick?: () => void;
|
|
20
|
+
testId?: string;
|
|
22
21
|
}
|
|
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;
|
|
22
|
+
export declare function FiltersPane<Values extends Record<string, unknown>, Content = Values>({ data, tweakStyles, filtersConfig, enabledFilters, values, localeKey, locale, search, isDisabled, hasClearButton, onChangeFilters, onSettingsButtonClick, onClear, testId, }: 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
|
-
|
|
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;
|
|
4
|
+
root: {
|
|
5
|
+
display: string;
|
|
6
|
+
flexWrap: string;
|
|
7
|
+
gap: number;
|
|
8
|
+
width: string;
|
|
40
9
|
};
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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;
|
|
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
|
+
};
|
|
54
55
|
};
|
|
55
|
-
};
|
|
56
56
|
};
|
|
57
57
|
export declare type FiltersPaneStyles = ComponentStyles<typeof styles>;
|
|
@@ -5,41 +5,22 @@ 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>({
|
|
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;
|
|
26
|
+
export declare function FiltersPaneSearch<Value>({ value, fields, field, onChange, localeKey, locale, getValueId, getValueView, getValueString, selectWidth, hasClearSelectButton, isDisabled, isSelectSearchEnabled, isAutoSizeable, maxLength, data, tweakStyles, testId, }: IFiltersPaneSearchProps<Value>): JSX.Element;
|