@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.
Files changed (136) hide show
  1. package/LICENSE +1 -1
  2. package/dist/components/AccountInfo/AccountInfo.d.ts +4 -4
  3. package/dist/components/AccountInfo/AccountInfo.styles.d.ts +56 -60
  4. package/dist/components/AddButton/AddButton.d.ts +6 -6
  5. package/dist/components/AddButton/AddButton.styles.d.ts +23 -23
  6. package/dist/components/Button/Button.d.ts +33 -19
  7. package/dist/components/Button/Button.styles.d.ts +144 -144
  8. package/dist/components/Checkbox/Checkbox.d.ts +27 -16
  9. package/dist/components/Checkbox/Checkbox.styles.d.ts +42 -39
  10. package/dist/components/CloseButton/CloseButton.d.ts +4 -4
  11. package/dist/components/CloseButton/CloseButton.styles.d.ts +22 -22
  12. package/dist/components/Colors/Colors.styles.d.ts +28 -28
  13. package/dist/components/CssBaseline/CssBaseline.d.ts +1 -1
  14. package/dist/components/CssBaseline/CssBaseline.styles.d.ts +7 -7
  15. package/dist/components/DateInput/DateInput.d.ts +9 -8
  16. package/dist/components/DateInput/DateInput.styles.d.ts +7 -7
  17. package/dist/components/DatePicker/DatePicker.d.ts +36 -29
  18. package/dist/components/DatePicker/DatePicker.styles.d.ts +34 -38
  19. package/dist/components/DatePicker/DatePickerHeader/DatePickerHeader.d.ts +9 -9
  20. package/dist/components/DatePicker/DatePickerHeader/DatePickerHeader.styles.d.ts +59 -59
  21. package/dist/components/DatePicker/DatePickerInput/DatePickerInput.d.ts +9 -7
  22. package/dist/components/DatePicker/DatePickerInput/DatePickerInput.styles.d.ts +16 -16
  23. package/dist/components/Description/Description.d.ts +6 -6
  24. package/dist/components/Description/Description.styles.d.ts +18 -18
  25. package/dist/components/FiltersPane/FilterInterval/FilterInterval.d.ts +19 -19
  26. package/dist/components/FiltersPane/FilterInterval/FilterInterval.styles.d.ts +44 -44
  27. package/dist/components/FiltersPane/FilterMultiSelect/FilterMultiSelect.d.ts +8 -2
  28. package/dist/components/FiltersPane/FilterSelect/FilterSelect.d.ts +35 -17
  29. package/dist/components/FiltersPane/FilterSelect/FilterSelect.styles.d.ts +111 -111
  30. package/dist/components/FiltersPane/FilterSelect/locales.d.ts +10 -6
  31. package/dist/components/FiltersPane/FilterValueView/FilterValueView.d.ts +9 -1
  32. package/dist/components/FiltersPane/FilterValueView/FilterValueView.styles.d.ts +8 -8
  33. package/dist/components/FiltersPane/FilterWithDates/FilterWithDates.d.ts +21 -13
  34. package/dist/components/FiltersPane/FilterWithDates/FilterWithDates.styles.d.ts +41 -41
  35. package/dist/components/FiltersPane/FilterWithPeriod/FilterWithPeriod.d.ts +8 -8
  36. package/dist/components/FiltersPane/FilterWithPeriod/FilterWithPeriod.styles.d.ts +7 -7
  37. package/dist/components/FiltersPane/FilterWrapper/FilterWrapper.d.ts +41 -18
  38. package/dist/components/FiltersPane/FilterWrapper/FilterWrapper.styles.d.ts +92 -92
  39. package/dist/components/FiltersPane/FiltersPane.d.ts +34 -15
  40. package/dist/components/FiltersPane/FiltersPane.styles.d.ts +50 -50
  41. package/dist/components/FiltersPane/FiltersPaneSearch/FiltersPaneSearch.d.ts +37 -18
  42. package/dist/components/FiltersPane/FiltersPaneSearch/FiltersPaneSearch.styles.d.ts +82 -82
  43. package/dist/components/FiltersPane/locales.d.ts +28 -22
  44. package/dist/components/FiltersPane/types.d.ts +65 -38
  45. package/dist/components/Flag/Flag.d.ts +2 -2
  46. package/dist/components/Flag/Flag.styles.d.ts +8 -8
  47. package/dist/components/FlexibleTable/FlexibleTable.d.ts +45 -20
  48. package/dist/components/FlexibleTable/FlexibleTable.styles.d.ts +93 -93
  49. package/dist/components/FlexibleTable/TableRow.d.ts +38 -21
  50. package/dist/components/FlexibleTable/TableValue.d.ts +28 -16
  51. package/dist/components/FlexibleTable/types.d.ts +37 -31
  52. package/dist/components/Icon/ComplexIconBoilerplate.d.ts +1 -1
  53. package/dist/components/Icon/Icon.d.ts +2 -2
  54. package/dist/components/Icon/Icon.styles.d.ts +4 -4
  55. package/dist/components/Icon/IconBoilerplate.d.ts +1 -1
  56. package/dist/components/Icon/complexIcons/icons.d.ts +1 -1
  57. package/dist/components/Icon/icons/icons.d.ts +97 -5
  58. package/dist/components/IncrementInput/ChangeButton.d.ts +5 -5
  59. package/dist/components/IncrementInput/IncrementInput.d.ts +4 -3
  60. package/dist/components/IncrementInput/IncrementInput.styles.d.ts +52 -52
  61. package/dist/components/Input/Input.d.ts +48 -37
  62. package/dist/components/Input/Input.styles.d.ts +242 -242
  63. package/dist/components/List/List.d.ts +12 -12
  64. package/dist/components/List/List.styles.d.ts +35 -35
  65. package/dist/components/Modal/Modal.d.ts +19 -19
  66. package/dist/components/Modal/Modal.styles.d.ts +235 -235
  67. package/dist/components/MoreMenu/MoreMenu.d.ts +7 -7
  68. package/dist/components/MoreMenu/MoreMenu.styles.d.ts +45 -44
  69. package/dist/components/MultiSelect/MultiSelect.d.ts +28 -13
  70. package/dist/components/MultiSelect/MultiSelect.styles.d.ts +38 -38
  71. package/dist/components/MultiSelect/MultiSelectInput/MultiSelectInput.d.ts +12 -6
  72. package/dist/components/MultiSelect/MultiSelectInput/MultiSelectInput.styles.d.ts +58 -58
  73. package/dist/components/MultiSelectList/MultiSelectList.d.ts +43 -20
  74. package/dist/components/MultiSelectList/MultiSelectList.styles.d.ts +90 -90
  75. package/dist/components/MultiSelectList/locales.d.ts +10 -6
  76. package/dist/components/Notification/Notification.d.ts +14 -9
  77. package/dist/components/Notification/Notification.styles.d.ts +33 -30
  78. package/dist/components/NumberInput/NumberInput.d.ts +16 -10
  79. package/dist/components/NumberInput/helpers.d.ts +10 -2
  80. package/dist/components/PhoneInput/PhoneInput.d.ts +14 -7
  81. package/dist/components/PhoneInput/PhoneInput.styles.d.ts +60 -60
  82. package/dist/components/PhoneInput/PhoneInputCountryList/PhoneInputCountryList.d.ts +7 -7
  83. package/dist/components/PhoneInput/PhoneInputCountryList/PhoneInputCountryList.styles.d.ts +78 -74
  84. package/dist/components/PhoneInput/types.d.ts +11 -11
  85. package/dist/components/RadioButton/RadioButton.d.ts +18 -8
  86. package/dist/components/RadioButton/RadioButton.styles.d.ts +25 -25
  87. package/dist/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.d.ts +634 -374
  88. package/dist/components/SearchInput/SearchInput.d.ts +12 -2
  89. package/dist/components/SearchInput/SearchInput.styles.d.ts +32 -32
  90. package/dist/components/Select/Select.d.ts +50 -21
  91. package/dist/components/Select/Select.styles.d.ts +53 -53
  92. package/dist/components/Select/SelectList/SelectList.d.ts +30 -15
  93. package/dist/components/Select/SelectList/SelectList.styles.d.ts +37 -35
  94. package/dist/components/Select/helpers.d.ts +9 -2
  95. package/dist/components/SmartInput/SmartInput.d.ts +28 -16
  96. package/dist/components/SmartInput/helpers.d.ts +8 -4
  97. package/dist/components/Switch/Switch.d.ts +26 -13
  98. package/dist/components/Switch/Switch.styles.d.ts +58 -58
  99. package/dist/components/TextArea/TextArea.d.ts +26 -23
  100. package/dist/components/TextArea/TextArea.styles.d.ts +124 -124
  101. package/dist/components/TextWithInfo/TextWithInfo.d.ts +9 -9
  102. package/dist/components/TextWithInfo/TextWithInfo.styles.d.ts +40 -40
  103. package/dist/components/TextWithTooltip/TextWithTooltip.d.ts +12 -12
  104. package/dist/components/TextWithTooltip/TextWithTooltip.styles.d.ts +10 -10
  105. package/dist/components/ThemedPreloader/ThemedPreloader.d.ts +4 -4
  106. package/dist/components/ThemedPreloader/ThemedPreloader.styles.d.ts +10 -10
  107. package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.d.ts +1 -1
  108. package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.d.ts +35 -35
  109. package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.d.ts +2 -2
  110. package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.d.ts +5 -5
  111. package/dist/components/Toaster/Toaster.d.ts +16 -11
  112. package/dist/components/Toaster/Toaster.styles.d.ts +41 -41
  113. package/dist/components/Tooltip/Tooltip.d.ts +4 -4
  114. package/dist/components/Tooltip/Tooltip.styles.d.ts +25 -27
  115. package/dist/helpers/data-attributes.d.ts +11 -4
  116. package/dist/helpers/phone.d.ts +28 -8
  117. package/dist/helpers/utils.d.ts +28 -7
  118. package/dist/hooks/use-did-mount-effect.d.ts +4 -1
  119. package/dist/hooks/use-dropdown.d.ts +14 -7
  120. package/dist/hooks/use-is-mounted.d.ts +1 -1
  121. package/dist/hooks/use-on-click-outside.d.ts +25 -4
  122. package/dist/hooks/use-theme.d.ts +10 -5
  123. package/dist/hooks/use-tweak-styles.d.ts +5 -1
  124. package/dist/style.css +205 -90
  125. package/dist/theme.d.ts +51 -55
  126. package/dist/true-react-common-ui-kit.js +24375 -16679
  127. package/dist/true-react-common-ui-kit.js.map +1 -1
  128. package/dist/true-react-common-ui-kit.umd.cjs +300 -211
  129. package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
  130. package/dist/types.d.ts +77 -23
  131. package/package.json +1 -1
  132. package/src/components/List/List.tsx +9 -2
  133. package/src/components/Modal/Modal.tsx +1 -1
  134. package/src/components/MoreMenu/MoreMenu.styles.ts +2 -0
  135. package/src/components/MoreMenu/MoreMenu.tsx +35 -24
  136. 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
- tweakStyles?: DescriptionStyles;
6
- text: string;
7
- moreTitle?: string;
8
- lessTitle?: string;
9
- truncateIndex?: number;
10
- isAlwaysOpen?: boolean;
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
- 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
- };
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
- link: {
16
- color: "#505f79";
17
- textDecoration: string;
18
- borderBottom: (string | number)[];
19
- '&:hover': {
20
- color: "#222a37";
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
- 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;
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
- root: {
4
- padding: number;
5
- background: "#ffffff";
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
- 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;
32
+ icon: {
33
+ padding: number;
34
+ width: number;
35
+ '&:last-child': {
18
36
  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;
31
- };
32
- icon: {
33
- padding: number;
34
- width: number;
35
- '&:last-child': {
36
- paddingRight: number;
37
- };
38
- };
37
+ };
39
38
  };
40
- tweakClearButton: {
41
- text: {
42
- color: "#95a0b3";
43
- '&:hover, &:focus': {
44
- color: "#505f79";
45
- };
46
- '&:active': {
47
- color: "#505f79";
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<Value, Option = string> = IMultiSelectListProps<Value, Option>;
5
- export declare function FilterMultiSelect<Value extends IFilterMultiSelectValues<Option>, Option = string>(props: IFilterMultiSelectProps<Value, Option>): JSX.Element;
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
- 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;
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>({ data, tweakStyles, value, isSearchEnabled, isGroupingEnabled, width, localeKey, locale, onChange, options, fetchOptions, footer, getValueView, getValueId, getValueString, hasClearButton, testId, }: IFilterSelectProps<Value>): JSX.Element;
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
- root: {
4
- width: ({ width }: {
5
- width: string | number;
6
- }) => string | number;
7
- background: "#ffffff";
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
- 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;
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
- 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
- };
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
- clear: string;
3
- all: string;
4
- chosen: string;
5
- searchPlaceholder: string;
6
- nothingFound: string;
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: (key?: ISelectLocaleKey, custom?: Partial<ISelectLocale>, custom2?: Partial<ISelectLocale>) => ISelectLocale;
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>({ locale, localeKey, filter, value, }: Omit<IFilterWrapperProps<Values, Key>, 'onChange' | 'filtersPaneRef'>): JSX.Element;
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
- text: {
4
- overflow: string;
5
- textOverflow: string;
6
- whiteSpace: string;
7
- };
8
- count: {
9
- whiteSpace: string;
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<IDatePickerProps, 'onChange' | 'value' | 'isNeedClearSelectedDate' | 'locale' | 'months' | 'selectedDate'>;
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
- 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;
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 = "dd.MM.yyyy";
29
+ export declare const DATE_FORMAT = 'dd.MM.yyyy';
22
30
  export declare const FilterWithDates: FC<IFilterWithDatesProps>;
23
31
  export {};