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