@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
@@ -1,44 +1,44 @@
1
1
  import { ComponentStyles } from '../../types';
2
2
  export declare const styles: {
3
- root: {
4
- position: string;
5
- boxSizing: string;
6
- height: string;
7
- width: string;
8
- cursor: string;
9
- fontSize: number;
10
- };
11
- required: {
12
- '&:before': {
13
- content: string;
14
- position: string;
15
- left: number;
16
- top: string;
17
- transform: string;
18
- width: number;
19
- height: number;
20
- borderRadius: string;
21
- };
22
- };
23
- disabled: {
24
- cursor: string;
25
- };
26
- listContainer: {
27
- position: string;
28
- top: string;
29
- left: number;
30
- right: number;
31
- zIndex: number;
32
- };
33
- invalid: {};
34
- open: {};
35
- full: {};
36
- left: {};
37
- right: {};
38
- tweakMultiSelectList: {
39
3
  root: {
40
- width: string;
4
+ position: string;
5
+ boxSizing: string;
6
+ height: string;
7
+ width: string;
8
+ cursor: string;
9
+ fontSize: number;
10
+ };
11
+ required: {
12
+ '&:before': {
13
+ content: string;
14
+ position: string;
15
+ left: number;
16
+ top: string;
17
+ transform: string;
18
+ width: number;
19
+ height: number;
20
+ borderRadius: string;
21
+ };
22
+ };
23
+ disabled: {
24
+ cursor: string;
25
+ };
26
+ listContainer: {
27
+ position: string;
28
+ top: string;
29
+ left: number;
30
+ right: number;
31
+ zIndex: number;
32
+ };
33
+ invalid: {};
34
+ open: {};
35
+ full: {};
36
+ left: {};
37
+ right: {};
38
+ tweakMultiSelectList: {
39
+ root: {
40
+ width: string;
41
+ };
41
42
  };
42
- };
43
43
  };
44
44
  export declare type MultiSelectStyles = ComponentStyles<typeof styles>;
@@ -2,16 +2,10 @@ import { ReactElement } from 'react';
2
2
  import { IMultiSelectListValues } from '../../index';
3
3
  import { ICommonProps } from '../../../types';
4
4
  export interface IMultiSelectInputProps<Value> extends ICommonProps {
5
- value?: IMultiSelectListValues<Value>;
6
- isOpen: boolean;
7
- isDisabled: boolean;
8
- placeholder: string;
9
- onToggle: (state: boolean) => void;
5
+ value?: IMultiSelectListValues<Value>;
6
+ isOpen: boolean;
7
+ isDisabled: boolean;
8
+ placeholder: string;
9
+ onToggle: (state: boolean) => void;
10
10
  }
11
- export declare function MultiSelectInput<Value>({
12
- value: v,
13
- isOpen,
14
- isDisabled,
15
- placeholder,
16
- onToggle,
17
- }: IMultiSelectInputProps<Value>): ReactElement | null;
11
+ export declare function MultiSelectInput<Value>({ value: v, isOpen, isDisabled, placeholder, onToggle, }: IMultiSelectInputProps<Value>): ReactElement | null;
@@ -1,62 +1,62 @@
1
1
  import { ComponentStyles } from '../../../types';
2
2
  export declare const styles: {
3
- root: {
4
- display: string;
5
- justifyContent: string;
6
- flexDirection: string;
7
- height: string;
8
- padding: number[];
9
- overflow: string;
10
- whiteSpace: string;
11
- };
12
- placeholder: {
13
- fontSize: number;
14
- userSelect: string;
15
- };
16
- placeholderSmall: {
17
- fontSize: number;
18
- marginBottom: number;
19
- position: string;
20
- };
21
- values: {
22
- width: string;
23
- };
24
- value: {
25
- width: string;
26
- overflow: string;
27
- textOverflow: string;
28
- };
29
- amount: {
30
- boxSizing: string;
31
- position: string;
32
- top: string;
33
- right: number;
34
- height: number;
35
- minWidth: number;
36
- fontSize: number;
37
- lineHeight: string;
38
- textAlign: string;
39
- padding: number[];
40
- };
41
- indicator: {
42
- position: string;
43
- top: number;
44
- right: number;
45
- height: string;
46
- width: number;
47
- borderRadius: number;
48
- display: string;
49
- alignItems: string;
50
- justifyContent: string;
51
- };
52
- arrow: {
53
- width: number;
54
- height: number;
55
- transition: string;
56
- };
57
- arrowUp: {
58
- transform: string;
59
- };
60
- indicatorDisabled: {};
3
+ root: {
4
+ display: string;
5
+ justifyContent: string;
6
+ flexDirection: string;
7
+ height: string;
8
+ padding: number[];
9
+ overflow: string;
10
+ whiteSpace: string;
11
+ };
12
+ placeholder: {
13
+ fontSize: number;
14
+ userSelect: string;
15
+ };
16
+ placeholderSmall: {
17
+ fontSize: number;
18
+ marginBottom: number;
19
+ position: string;
20
+ };
21
+ values: {
22
+ width: string;
23
+ };
24
+ value: {
25
+ width: string;
26
+ overflow: string;
27
+ textOverflow: string;
28
+ };
29
+ amount: {
30
+ boxSizing: string;
31
+ position: string;
32
+ top: string;
33
+ right: number;
34
+ height: number;
35
+ minWidth: number;
36
+ fontSize: number;
37
+ lineHeight: string;
38
+ textAlign: string;
39
+ padding: number[];
40
+ };
41
+ indicator: {
42
+ position: string;
43
+ top: number;
44
+ right: number;
45
+ height: string;
46
+ width: number;
47
+ borderRadius: number;
48
+ display: string;
49
+ alignItems: string;
50
+ justifyContent: string;
51
+ };
52
+ arrow: {
53
+ width: number;
54
+ height: number;
55
+ transition: string;
56
+ };
57
+ arrowUp: {
58
+ transform: string;
59
+ };
60
+ indicatorDisabled: {};
61
61
  };
62
62
  export declare type MultiSelectInputStyles = ComponentStyles<typeof styles>;
@@ -3,49 +3,26 @@ import { ICommonProps } from '../../types';
3
3
  import { IMultiSelectLocale, IMultiSelectLocaleKey } from './locales';
4
4
  import { MultiSelectListStyles } from './MultiSelectList.styles';
5
5
  export interface IMultiSelectListValues<Option> {
6
- include: Option[];
6
+ include: Option[];
7
7
  }
8
8
  export interface IMultiSelectListProps<Value, Option> extends ICommonProps {
9
- tweakStyles?: MultiSelectListStyles;
10
- value?: Value;
11
- isSearchEnabled?: boolean;
12
- width?: number | string;
13
- localeKey?: IMultiSelectLocaleKey;
14
- locale?: Partial<IMultiSelectLocale>;
15
- onClose?: () => void;
16
- onChange: (val?: Value) => void;
17
- options?: Option[];
18
- fetchOptions?: (val?: string, page?: number) => Promise<Option[]>;
19
- getValueView?: (val: Option) => ReactNode;
20
- getValueId?: (val: Option) => string;
21
- getValueString?: (val: Option) => string;
22
- isGroupingEnabled?: boolean;
23
- checkboxPosition?: 'left' | 'right';
24
- pageSize?: number;
25
- searchMaxLength?: number;
26
- testId?: string;
9
+ tweakStyles?: MultiSelectListStyles;
10
+ value?: Value;
11
+ isSearchEnabled?: boolean;
12
+ width?: number | string;
13
+ localeKey?: IMultiSelectLocaleKey;
14
+ locale?: Partial<IMultiSelectLocale>;
15
+ onClose?: () => void;
16
+ onChange: (val?: Value) => void;
17
+ options?: Option[];
18
+ fetchOptions?: (val?: string, page?: number) => Promise<Option[]>;
19
+ getValueView?: (val: Option) => ReactNode;
20
+ getValueId?: (val: Option) => string;
21
+ getValueString?: (val: Option) => string;
22
+ isGroupingEnabled?: boolean;
23
+ checkboxPosition?: 'left' | 'right';
24
+ pageSize?: number;
25
+ searchMaxLength?: number;
26
+ testId?: string;
27
27
  }
28
- export declare function MultiSelectList<
29
- Value extends IMultiSelectListValues<Option>,
30
- Option = string,
31
- >({
32
- value,
33
- tweakStyles,
34
- data,
35
- isSearchEnabled,
36
- width,
37
- localeKey,
38
- locale,
39
- onChange,
40
- onClose,
41
- options,
42
- fetchOptions,
43
- isGroupingEnabled,
44
- getValueView,
45
- getValueId,
46
- getValueString,
47
- checkboxPosition,
48
- pageSize,
49
- searchMaxLength,
50
- testId,
51
- }: IMultiSelectListProps<Value, Option>): JSX.Element;
28
+ export declare function MultiSelectList<Value extends IMultiSelectListValues<Option>, Option = string>({ value, tweakStyles, data, isSearchEnabled, width, localeKey, locale, onChange, onClose, options, fetchOptions, isGroupingEnabled, getValueView, getValueId, getValueString, checkboxPosition, pageSize, searchMaxLength, testId, }: IMultiSelectListProps<Value, Option>): JSX.Element;
@@ -1,105 +1,105 @@
1
1
  import { ComponentStyles } from '../../types';
2
2
  export declare const styles: {
3
- root: {
4
- width: ({ width }: { width: number | string }) => string | number;
5
- background: '#ffffff';
6
- };
7
- list:
8
- | {
3
+ root: {
4
+ width: ({ width }: {
5
+ width: number | string;
6
+ }) => string | number;
7
+ background: "#ffffff";
8
+ };
9
+ list: {
9
10
  paddingTop: number;
10
11
  maxHeight: number;
11
12
  overscrollBehavior: string;
12
- }
13
- | {
13
+ } | {
14
14
  paddingTop: number;
15
15
  maxHeight: number;
16
16
  overscrollBehavior: string;
17
- };
18
- label: {
19
- boxSizing: string;
20
- fontSize: number;
21
- padding: number[];
22
- userSelect: string;
23
- display: string;
24
- alignItems: string;
25
- color: '#7a869a';
26
- };
27
- labelChosen: {
28
- fontWeight: string;
29
- color: '#222a37';
30
- padding: number[];
31
- };
32
- withoutTopGap: {
33
- paddingTop: number;
34
- };
35
- item: {
36
- boxSizing: string;
37
- padding: number;
38
- maxWidth: string;
39
- fontSize: number;
40
- };
41
- option: {
42
- display: string;
43
- userSelect: string;
44
- maxWidth: string;
45
- overflow: string;
46
- whiteSpace: string;
47
- textOverflow: string;
48
- };
49
- panel: {
50
- display: string;
51
- padding: number[];
52
- };
53
- clear: {
54
- marginLeft: string;
55
- };
56
- selectedItem: {};
57
- preloader: {
58
- width: number;
59
- height: number;
60
- margin: string;
61
- display: string;
62
- alignItems: string;
63
- justifyContent: string;
64
- };
65
- dropdownInput: {
66
- borderBottom: (string | number)[];
67
- };
68
- nothingFound: {
69
- display: string;
70
- alignItems: string;
71
- justifyContent: string;
72
- textAlign: string;
73
- padding: number;
74
- fontSize: number;
75
- };
76
- tweakSearchInput: {
77
- tweakInput: {
78
- inputWrapper: {
79
- backgroundColor: string;
80
- border: string;
17
+ };
18
+ label: {
19
+ boxSizing: string;
20
+ fontSize: number;
21
+ padding: number[];
22
+ userSelect: string;
23
+ display: string;
24
+ alignItems: string;
25
+ color: "#7a869a";
26
+ };
27
+ labelChosen: {
28
+ fontWeight: string;
29
+ color: "#222a37";
30
+ padding: number[];
31
+ };
32
+ withoutTopGap: {
33
+ paddingTop: number;
34
+ };
35
+ item: {
36
+ boxSizing: string;
37
+ padding: number;
38
+ maxWidth: string;
39
+ fontSize: number;
40
+ };
41
+ option: {
42
+ display: string;
43
+ userSelect: string;
44
+ maxWidth: string;
45
+ overflow: string;
46
+ whiteSpace: string;
47
+ textOverflow: string;
48
+ };
49
+ panel: {
50
+ display: string;
51
+ padding: number[];
52
+ };
53
+ clear: {
54
+ marginLeft: string;
55
+ };
56
+ selectedItem: {};
57
+ preloader: {
58
+ width: number;
81
59
  height: number;
82
- };
60
+ margin: string;
61
+ display: string;
62
+ alignItems: string;
63
+ justifyContent: string;
83
64
  };
84
- };
85
- tweakCheckbox: {
86
- root: {
87
- padding: number[];
65
+ dropdownInput: {
66
+ borderBottom: (string | number)[];
67
+ };
68
+ nothingFound: {
69
+ display: string;
70
+ alignItems: string;
71
+ justifyContent: string;
72
+ textAlign: string;
73
+ padding: number;
74
+ fontSize: number;
75
+ };
76
+ tweakSearchInput: {
77
+ tweakInput: {
78
+ inputWrapper: {
79
+ backgroundColor: string;
80
+ border: string;
81
+ height: number;
82
+ };
83
+ };
88
84
  };
89
- children: {
90
- marginRight: string;
85
+ tweakCheckbox: {
86
+ root: {
87
+ padding: number[];
88
+ };
89
+ children: {
90
+ marginRight: string;
91
+ };
91
92
  };
92
- };
93
- tweakClearButton: {
94
- text: {
95
- color: '#95a0b3';
96
- '&:hover, &:focus': {
97
- color: '#505f79';
98
- };
99
- '&:active': {
100
- color: '#505f79';
101
- };
93
+ tweakClearButton: {
94
+ text: {
95
+ color: "#95a0b3";
96
+ '&:hover, &:focus': {
97
+ color: "#505f79";
98
+ };
99
+ '&:active': {
100
+ color: "#505f79";
101
+ };
102
+ };
102
103
  };
103
- };
104
104
  };
105
105
  export declare type MultiSelectListStyles = ComponentStyles<typeof styles>;
@@ -1,15 +1,11 @@
1
1
  export interface IMultiSelectLocale {
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 MultiSelectLocales: Record<string, IMultiSelectLocale>;
9
9
  export declare type IMultiSelectLocaleKey = keyof typeof MultiSelectLocales;
10
10
  export declare const DEFAULT_LOCALE: IMultiSelectLocaleKey;
11
- export declare const getLocale: (
12
- key?: IMultiSelectLocaleKey,
13
- custom?: Partial<IMultiSelectLocale>,
14
- custom2?: Partial<IMultiSelectLocale>,
15
- ) => IMultiSelectLocale;
11
+ export declare const getLocale: (key?: IMultiSelectLocaleKey, custom?: Partial<IMultiSelectLocale>, custom2?: Partial<IMultiSelectLocale>) => IMultiSelectLocale;
@@ -1,21 +1,16 @@
1
1
  import { FC, ReactNode } from 'react';
2
2
  import { ICommonProps } from '../../types';
3
3
  import { NotificationStyles } from './Notification.styles';
4
- export declare type NotificationType =
5
- | 'error'
6
- | 'info'
7
- | 'warning'
8
- | 'ok'
9
- | 'not-ok';
4
+ export declare type NotificationType = 'error' | 'info' | 'warning' | 'ok' | 'not-ok';
10
5
  export interface INotificationProps extends ICommonProps {
11
- tweakStyles?: NotificationStyles;
12
- type: NotificationType;
13
- isFullWidth?: boolean;
14
- text?: string;
15
- title?: string;
16
- size?: 's' | 'm' | 'l';
17
- testId?: string;
18
- children?: ReactNode;
6
+ tweakStyles?: NotificationStyles;
7
+ type: NotificationType;
8
+ isFullWidth?: boolean;
9
+ text?: string;
10
+ title?: string;
11
+ size?: 's' | 'm' | 'l';
12
+ testId?: string;
13
+ children?: ReactNode;
19
14
  }
20
15
  export declare const Notification: FC<INotificationProps>;
21
16
  export default Notification;
@@ -1,40 +1,37 @@
1
1
  import { ComponentStyles } from '../../types';
2
2
  import type { NotificationType } from './Notification';
3
3
  interface IStyleProps {
4
- type: NotificationType;
4
+ type: NotificationType;
5
5
  }
6
6
  export declare const styles: {
7
- root: {
8
- display: string;
9
- };
10
- inline: {
11
- width: string;
12
- };
13
- icon: {
14
- width: number;
15
- height: number;
16
- marginRight: number;
17
- flexShrink: number;
18
- };
19
- body: {
20
- flexGrow: number;
21
- };
22
- title: {
23
- display: string;
24
- fontWeight: string;
25
- };
26
- text: {
27
- display: string;
28
- };
29
- content: {};
30
- s: {};
31
- m: {};
32
- l: {};
33
- withText: {};
34
- withTitle: {};
7
+ root: {
8
+ display: string;
9
+ };
10
+ inline: {
11
+ width: string;
12
+ };
13
+ icon: {
14
+ width: number;
15
+ height: number;
16
+ marginRight: number;
17
+ flexShrink: number;
18
+ };
19
+ body: {
20
+ flexGrow: number;
21
+ };
22
+ title: {
23
+ display: string;
24
+ fontWeight: string;
25
+ };
26
+ text: {
27
+ display: string;
28
+ };
29
+ content: {};
30
+ s: {};
31
+ m: {};
32
+ l: {};
33
+ withText: {};
34
+ withTitle: {};
35
35
  };
36
- export declare type NotificationStyles = ComponentStyles<
37
- typeof styles,
38
- IStyleProps
39
- >;
36
+ export declare type NotificationStyles = ComponentStyles<typeof styles, IStyleProps>;
40
37
  export {};
@@ -1,19 +1,13 @@
1
1
  import React from 'react';
2
2
  import { IInputProps } from '../Input';
3
- export interface INumberInputProps
4
- extends Omit<IInputProps, 'value' | 'onChange' | 'type'> {
5
- value?: number;
6
- canBeFloat?: boolean;
7
- precision?: number;
8
- intPartPrecision?: number;
9
- defaultValue?: number;
10
- min?: number;
11
- max?: number;
12
- onChange: (
13
- value: number | undefined,
14
- event?: React.FormEvent<HTMLInputElement>,
15
- ) => void;
3
+ export interface INumberInputProps extends Omit<IInputProps, 'value' | 'onChange' | 'type'> {
4
+ value?: number;
5
+ canBeFloat?: boolean;
6
+ precision?: number;
7
+ intPartPrecision?: number;
8
+ defaultValue?: number;
9
+ min?: number;
10
+ max?: number;
11
+ onChange: (value: number | undefined, event?: React.FormEvent<HTMLInputElement>) => void;
16
12
  }
17
- export declare const NumberInput: React.ForwardRefExoticComponent<
18
- INumberInputProps & React.RefAttributes<HTMLInputElement>
19
- >;
13
+ export declare const NumberInput: React.ForwardRefExoticComponent<INumberInputProps & React.RefAttributes<HTMLInputElement>>;
@@ -1,10 +1,2 @@
1
- export declare const getNewCaretPosition: (
2
- defaultPosition: number,
3
- oldValue: string,
4
- newValue: string,
5
- isDeleteForwardAction?: boolean,
6
- ) => number;
7
- export declare const formatNumberWithDefault: (
8
- value: number | undefined,
9
- defaultValue?: number,
10
- ) => string;
1
+ export declare const getNewCaretPosition: (defaultPosition: number, oldValue: string, newValue: string, isDeleteForwardAction?: boolean) => number;
2
+ export declare const formatNumberWithDefault: (value: number | undefined, defaultValue?: number) => string;