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