@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
|
@@ -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
|
-
|
|
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";
|
|
13
|
+
};
|
|
13
14
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
link: {
|
|
16
|
+
color: "#505f79";
|
|
17
|
+
textDecoration: string;
|
|
18
|
+
borderBottom: (string | number)[];
|
|
19
|
+
'&:hover': {
|
|
20
|
+
color: "#222a37";
|
|
21
|
+
};
|
|
21
22
|
};
|
|
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
|
-
|
|
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;
|
|
3
|
+
root: {
|
|
4
|
+
padding: number;
|
|
5
|
+
background: "#ffffff";
|
|
31
6
|
};
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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;
|
|
36
18
|
paddingRight: number;
|
|
37
|
-
|
|
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;
|
|
31
|
+
};
|
|
32
|
+
icon: {
|
|
33
|
+
padding: number;
|
|
34
|
+
width: number;
|
|
35
|
+
'&:last-child': {
|
|
36
|
+
paddingRight: number;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
38
39
|
};
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
40
|
+
tweakClearButton: {
|
|
41
|
+
text: {
|
|
42
|
+
color: "#95a0b3";
|
|
43
|
+
'&:hover, &:focus': {
|
|
44
|
+
color: "#505f79";
|
|
45
|
+
};
|
|
46
|
+
'&:active': {
|
|
47
|
+
color: "#505f79";
|
|
48
|
+
};
|
|
49
|
+
};
|
|
49
50
|
};
|
|
50
|
-
};
|
|
51
51
|
};
|
|
52
52
|
export declare type FilterIntervalStyles = ComponentStyles<typeof styles>;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IFilterMultiSelectValues } from '../types';
|
|
3
3
|
import { IMultiSelectListProps } from '../../MultiSelectList';
|
|
4
|
-
export declare type IFilterMultiSelectProps<
|
|
5
|
-
|
|
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
|
+
export declare type IFilterMultiSelectProps<Value, Option = string> = IMultiSelectListProps<Value, Option>;
|
|
5
|
+
export declare function FilterMultiSelect<Value extends IFilterMultiSelectValues<Option>, Option = string>(props: IFilterMultiSelectProps<Value, Option>): JSX.Element;
|
|
@@ -4,40 +4,22 @@ 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>({
|
|
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;
|
|
25
|
+
export declare function FilterSelect<Value>({ data, tweakStyles, value, isSearchEnabled, isGroupingEnabled, width, localeKey, locale, onChange, options, fetchOptions, footer, getValueView, getValueId, getValueString, hasClearButton, testId, }: 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
|
-
|
|
3
|
+
root: {
|
|
4
|
+
width: ({ width }: {
|
|
5
|
+
width: string | number;
|
|
6
|
+
}) => string | number;
|
|
7
|
+
background: "#ffffff";
|
|
8
|
+
};
|
|
9
|
+
list: {
|
|
9
10
|
paddingTop: number;
|
|
10
11
|
padding: number[];
|
|
11
12
|
maxHeight: number;
|
|
12
13
|
overscrollBehavior: string;
|
|
13
|
-
|
|
14
|
-
| {
|
|
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
|
-
|
|
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;
|
|
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;
|
|
108
63
|
height: number;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
};
|
|
122
|
-
|
|
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;
|
|
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
|
+
};
|
|
123
123
|
};
|
|
124
124
|
export declare type FilterSelectStyles = ComponentStyles<typeof styles>;
|
|
@@ -1,15 +1,11 @@
|
|
|
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: (
|
|
12
|
-
key?: ISelectLocaleKey,
|
|
13
|
-
custom?: Partial<ISelectLocale>,
|
|
14
|
-
custom2?: Partial<ISelectLocale>,
|
|
15
|
-
) => ISelectLocale;
|
|
11
|
+
export declare const getLocale: (key?: ISelectLocaleKey, custom?: Partial<ISelectLocale>, custom2?: Partial<ISelectLocale>) => ISelectLocale;
|
|
@@ -1,11 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IFilterWrapperProps } from '../FilterWrapper';
|
|
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;
|
|
3
|
+
export declare function FilterValueView<Values, Key extends keyof Values>({ locale, localeKey, filter, value, }: Omit<IFilterWrapperProps<Values, Key>, 'onChange' | 'filtersPaneRef'>): 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,28 +4,20 @@ 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<
|
|
8
|
-
IDatePickerProps,
|
|
9
|
-
| 'onChange'
|
|
10
|
-
| 'value'
|
|
11
|
-
| 'isNeedClearSelectedDate'
|
|
12
|
-
| 'locale'
|
|
13
|
-
| 'months'
|
|
14
|
-
| 'selectedDate'
|
|
15
|
-
>;
|
|
7
|
+
declare type PickerProps = Omit<IDatePickerProps, 'onChange' | 'value' | 'isNeedClearSelectedDate' | 'locale' | 'months' | 'selectedDate'>;
|
|
16
8
|
export interface IFilterWithDatesProps extends ICommonProps {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
9
|
+
tweakStyles?: FilterWithDatesStyles;
|
|
10
|
+
value?: IFilterWithDatesValue;
|
|
11
|
+
onChange: (val: IFilterWithDatesValue) => void;
|
|
12
|
+
localeKey?: IFilterLocaleKey;
|
|
13
|
+
locale?: IPartialFilterLocale;
|
|
14
|
+
onStartBtnSubmit?: () => void;
|
|
15
|
+
onEndBtnSubmit: () => void;
|
|
16
|
+
testId?: string;
|
|
17
|
+
isClearable?: boolean;
|
|
18
|
+
startPickerProps?: PickerProps;
|
|
19
|
+
endPickerProps?: PickerProps;
|
|
28
20
|
}
|
|
29
|
-
export declare const DATE_FORMAT =
|
|
21
|
+
export declare const DATE_FORMAT = "dd.MM.yyyy";
|
|
30
22
|
export declare const FilterWithDates: FC<IFilterWithDatesProps>;
|
|
31
23
|
export {};
|