@true-engineering/true-react-common-ui-kit 1.0.2 → 1.2.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 (135) 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 +24 -51
  90. package/dist/components/Select/Select.styles.d.ts +53 -53
  91. package/dist/components/Select/SelectList/SelectList.d.ts +17 -32
  92. package/dist/components/Select/SelectList/SelectList.styles.d.ts +35 -37
  93. package/dist/components/Select/helpers.d.ts +3 -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 +16711 -24314
  126. package/dist/true-react-common-ui-kit.js.map +1 -1
  127. package/dist/true-react-common-ui-kit.umd.cjs +39 -35
  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.stories.tsx +16 -12
  132. package/src/components/Select/Select.tsx +51 -41
  133. package/src/components/Select/SelectList/SelectList.tsx +17 -22
  134. package/src/components/Select/helpers.ts +14 -6
  135. package/src/components/SmartInput/SmartInput.tsx +130 -127
@@ -1,17 +1,7 @@
1
1
  import { FC } from 'react';
2
2
  import { IInputProps } from '../Input';
3
3
  import { SearchInputStyles } from './SearchInput.styles';
4
- export declare type ISearchInputProps = Omit<
5
- IInputProps,
6
- | 'type'
7
- | 'isInvalid'
8
- | 'errorMessage'
9
- | 'label'
10
- | 'isActive'
11
- | 'errorPosition'
12
- | 'hasFloatingLabel'
13
- | 'border'
14
- > & {
15
- tweakStyles?: SearchInputStyles;
4
+ export declare type ISearchInputProps = Omit<IInputProps, 'type' | 'isInvalid' | 'errorMessage' | 'label' | 'isActive' | 'errorPosition' | 'hasFloatingLabel' | 'border'> & {
5
+ tweakStyles?: SearchInputStyles;
16
6
  };
17
7
  export declare const SearchInput: FC<ISearchInputProps>;
@@ -1,39 +1,39 @@
1
1
  import { ComponentStyles } from '../../types';
2
2
  export declare const styles: {
3
- root: {
4
- position: string;
5
- };
6
- icon: {
7
- display: string;
8
- alignItems: string;
9
- position: string;
10
- left: number;
11
- height: string;
12
- width: number;
13
- zIndex: number;
14
- color: '#95a0b3';
15
- };
16
- tweakInput: {
17
- inputWrapper: {
18
- height: number;
19
- borderColor: string;
20
- backgroundColor: string;
21
- borderRadius: number;
22
- paddingLeft: number;
23
- transitionProperty: string;
3
+ root: {
4
+ position: string;
24
5
  };
25
- focused: {
26
- backgroundColor: '#ffffff';
27
- borderColor: '#d0d6e1';
6
+ icon: {
7
+ display: string;
8
+ alignItems: string;
9
+ position: string;
10
+ left: number;
11
+ height: string;
12
+ width: number;
13
+ zIndex: number;
14
+ color: "#95a0b3";
28
15
  };
29
- input: {
30
- fontSize: number;
31
- paddingLeft: number;
16
+ tweakInput: {
17
+ inputWrapper: {
18
+ height: number;
19
+ borderColor: string;
20
+ backgroundColor: string;
21
+ borderRadius: number;
22
+ paddingLeft: number;
23
+ transitionProperty: string;
24
+ };
25
+ focused: {
26
+ backgroundColor: "#ffffff";
27
+ borderColor: "#d0d6e1";
28
+ };
29
+ input: {
30
+ fontSize: number;
31
+ paddingLeft: number;
32
+ };
33
+ label: {
34
+ left: number;
35
+ fontSize: number;
36
+ };
32
37
  };
33
- label: {
34
- left: number;
35
- fontSize: number;
36
- };
37
- };
38
38
  };
39
39
  export declare type SearchInputStyles = ComponentStyles<typeof styles>;
@@ -1,56 +1,29 @@
1
- import React, { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import { IInputProps } from '../Input';
3
3
  import { IIconType } from '../Icon';
4
4
  import { IDropdownWithPopperOptions } from '../../types';
5
5
  import { SelectStyles } from './Select.styles';
6
- export interface ISelectProps<Value>
7
- extends Omit<IInputProps, 'value' | 'onChange' | 'type'> {
8
- tweakStyles?: SelectStyles;
9
- defaultOptionLabel?: string;
10
- noMatchesLabel?: string;
11
- loadingLabel?: React.ReactNode;
12
- optionsMode?: 'search' | 'dynamic' | 'normal';
13
- onType?: (value: string) => Promise<void>;
14
- debounceTime?: number;
15
- minSymbolsCountToOpenList?: number;
16
- dropdownOptions?: IDropdownWithPopperOptions;
17
- dropdownIcon?: IIconType;
18
- onOpen?: () => void;
19
- optionsFilter?: (options: Value[], query: string) => Value[];
20
- options: Value[];
21
- value?: Value;
22
- onChange: (value?: Value) => void;
23
- compareValuesOnChange?: (
24
- v1: Value | undefined,
25
- v2: Value | undefined,
26
- ) => boolean;
27
- convertValueToString?: (value?: Value) => string | undefined;
28
- convertValueToReactNode?: (value?: Value) => ReactNode | undefined;
29
- convertValueToId?: (value?: Value) => string | undefined;
6
+ export interface ISelectProps<Value> extends Omit<IInputProps, 'value' | 'onChange' | 'type'> {
7
+ tweakStyles?: SelectStyles;
8
+ defaultOptionLabel?: string;
9
+ noMatchesLabel?: string;
10
+ loadingLabel?: ReactNode;
11
+ optionsMode?: 'search' | 'dynamic' | 'normal';
12
+ debounceTime?: number;
13
+ minSymbolsCountToOpenList?: number;
14
+ dropdownOptions?: IDropdownWithPopperOptions;
15
+ dropdownIcon?: IIconType;
16
+ options: Value[];
17
+ value: Value | undefined;
18
+ shouldScrollToList?: boolean;
19
+ isOptionDisabled?(option: Value): boolean;
20
+ onChange(value: Value | undefined): void;
21
+ onType?(value: string): Promise<void>;
22
+ optionsFilter?(options: Value[], query: string): Value[];
23
+ onOpen?(): void;
24
+ compareValuesOnChange?(v1: Value | undefined, v2: Value | undefined): boolean;
25
+ convertValueToString?(value: Value): string | undefined;
26
+ convertValueToReactNode?(value: Value): ReactNode;
27
+ convertValueToId?(value: Value): string | undefined;
30
28
  }
31
- export declare function Select<Value>({
32
- options,
33
- value,
34
- onChange,
35
- compareValuesOnChange,
36
- convertValueToString,
37
- convertValueToId,
38
- convertValueToReactNode,
39
- defaultOptionLabel,
40
- onFocus,
41
- onBlur,
42
- onType,
43
- onOpen,
44
- debounceTime,
45
- optionsMode,
46
- optionsFilter,
47
- noMatchesLabel,
48
- loadingLabel,
49
- tweakStyles,
50
- testId,
51
- isDisabled,
52
- dropdownOptions,
53
- minSymbolsCountToOpenList,
54
- dropdownIcon,
55
- ...inputProps
56
- }: ISelectProps<Value>): JSX.Element;
29
+ export declare function Select<Value>({ options, value, defaultOptionLabel, debounceTime, optionsMode, noMatchesLabel, loadingLabel, tweakStyles, testId, isDisabled, dropdownOptions, minSymbolsCountToOpenList, dropdownIcon, shouldScrollToList, onChange, onFocus, onBlur, onType, onOpen, isOptionDisabled, compareValuesOnChange, convertValueToString, convertValueToId, convertValueToReactNode, optionsFilter, ...inputProps }: ISelectProps<Value>): JSX.Element;
@@ -1,61 +1,61 @@
1
1
  import { ComponentStyles } from '../../types';
2
2
  export declare const styles: {
3
- root: {
4
- width: string;
5
- position: string;
6
- boxSizing: string;
7
- };
8
- inputWrapper: {
9
- width: string;
10
- cursor: string;
11
- position: string;
12
- };
13
- listWrapper: {
14
- left: number;
15
- zIndex: number;
16
- width: string;
17
- minWidth: string;
18
- };
19
- withoutPopper: {
20
- position: string;
21
- top: string;
22
- };
23
- listWrapperInBody: {
24
- minWidth: string;
25
- width: string;
26
- maxWidth: string;
27
- };
28
- arrow: {
29
- position: string;
30
- right: number;
31
- top: number;
32
- width: number;
33
- height: number;
34
- cursor: string;
35
- zIndex: number;
36
- transition: string;
37
- };
38
- activeArrow: {
39
- transform: string;
40
- };
41
- disabled: {
42
- '& $arrow': {
43
- cursor: string;
44
- };
45
- };
46
- tweakInput: {
47
- input: {
48
- paddingRight: number;
3
+ root: {
4
+ width: string;
5
+ position: string;
6
+ boxSizing: string;
49
7
  };
50
- disabled: {
51
- '& $input': {
8
+ inputWrapper: {
9
+ width: string;
52
10
  cursor: string;
53
- };
11
+ position: string;
12
+ };
13
+ listWrapper: {
14
+ left: number;
15
+ zIndex: number;
16
+ width: string;
17
+ minWidth: string;
18
+ };
19
+ withoutPopper: {
20
+ position: string;
21
+ top: string;
22
+ };
23
+ listWrapperInBody: {
24
+ minWidth: string;
25
+ width: string;
26
+ maxWidth: string;
27
+ };
28
+ arrow: {
29
+ position: string;
30
+ right: number;
31
+ top: number;
32
+ width: number;
33
+ height: number;
34
+ cursor: string;
35
+ zIndex: number;
36
+ transition: string;
37
+ };
38
+ activeArrow: {
39
+ transform: string;
40
+ };
41
+ disabled: {
42
+ '& $arrow': {
43
+ cursor: string;
44
+ };
54
45
  };
55
- controls: {
56
- paddingRight: number;
46
+ tweakInput: {
47
+ input: {
48
+ paddingRight: number;
49
+ };
50
+ disabled: {
51
+ '& $input': {
52
+ cursor: string;
53
+ };
54
+ };
55
+ controls: {
56
+ paddingRight: number;
57
+ };
57
58
  };
58
- };
59
- tweakSelectList: {};
59
+ tweakSelectList: {};
60
60
  };
61
61
  export declare type SelectStyles = ComponentStyles<typeof styles>;
@@ -1,36 +1,21 @@
1
- import React, { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import { ICommonProps } from '../../../types';
3
3
  import { SelectListStyles } from './SelectList.styles';
4
4
  export interface ISelectListProps<Value> extends ICommonProps {
5
- tweakStyles?: SelectListStyles;
6
- options: Value[];
7
- focusedIndex?: number;
8
- activeValue?: Value;
9
- noMatchesLabel?: string;
10
- isLoading?: boolean;
11
- loadingLabel?: React.ReactNode;
12
- defaultOptionLabel?: string;
13
- onOptionClick: (index: number) => void;
14
- testId?: string;
15
- shouldScrollToList?: boolean;
16
- convertValueToString: (value?: Value) => string | undefined;
17
- convertValueToReactNode?: (value?: Value) => ReactNode | undefined;
18
- convertValueToId?: (value?: Value) => string | undefined;
5
+ tweakStyles?: SelectListStyles;
6
+ options: Value[];
7
+ focusedIndex?: number;
8
+ activeValue?: Value;
9
+ noMatchesLabel?: string;
10
+ isLoading?: boolean;
11
+ loadingLabel?: ReactNode;
12
+ defaultOptionLabel?: string;
13
+ testId?: string;
14
+ shouldScrollToList?: boolean;
15
+ onOptionClick(index: number): void;
16
+ isOptionDisabled(value: Value): boolean;
17
+ convertValueToString(value: Value): string | undefined;
18
+ convertValueToReactNode?(value: Value): ReactNode;
19
+ convertValueToId?(value: Value): string | undefined;
19
20
  }
20
- export declare function isOptionDisabled<Value>(option: Value): boolean;
21
- export declare function SelectList<Value>({
22
- options,
23
- onOptionClick,
24
- focusedIndex,
25
- activeValue,
26
- defaultOptionLabel,
27
- noMatchesLabel,
28
- isLoading,
29
- loadingLabel,
30
- convertValueToString,
31
- convertValueToReactNode,
32
- convertValueToId,
33
- tweakStyles,
34
- testId,
35
- shouldScrollToList,
36
- }: ISelectListProps<Value>): JSX.Element;
21
+ export declare function SelectList<Value>({ options, focusedIndex, activeValue, defaultOptionLabel, noMatchesLabel, isLoading, loadingLabel, tweakStyles, testId, shouldScrollToList, isOptionDisabled, onOptionClick, convertValueToString, convertValueToReactNode, convertValueToId, }: ISelectListProps<Value>): JSX.Element;
@@ -1,48 +1,46 @@
1
1
  import { ComponentStyles } from '../../../types';
2
2
  export declare const ROW_HEIGHT = 40;
3
3
  export declare const styles: {
4
- root: {
5
- borderRadius: 6;
6
- boxShadow: string;
7
- boxSizing: string;
8
- padding: number[];
9
- fontSize: number;
10
- };
11
- list:
12
- | {
4
+ root: {
5
+ borderRadius: 6;
6
+ boxShadow: string;
7
+ boxSizing: string;
8
+ padding: number[];
9
+ fontSize: number;
10
+ };
11
+ list: {
13
12
  height: string;
14
13
  maxHeight: number;
15
14
  cursor: string;
16
- backgroundColor: '#ffffff';
17
- }
18
- | {
15
+ backgroundColor: "#ffffff";
16
+ } | {
19
17
  height: string;
20
18
  maxHeight: number;
21
19
  cursor: string;
22
- backgroundColor: '#ffffff';
23
- };
24
- cell: {
25
- display: string;
26
- cursor: string;
27
- minHeight: number;
28
- width: string;
29
- padding: number[];
30
- alignItems: string;
31
- boxSizing: string;
32
- fontSize: number;
33
- };
34
- noMatchesLabel: {
35
- pointerEvents: string;
36
- };
37
- focused: {};
38
- active: {};
39
- disabled: {
40
- cursor: string;
41
- };
42
- loading: {
43
- cursor: string;
44
- pointerEvents: string;
45
- };
46
- defaultCell: {};
20
+ backgroundColor: "#ffffff";
21
+ };
22
+ cell: {
23
+ display: string;
24
+ cursor: string;
25
+ minHeight: number;
26
+ width: string;
27
+ padding: number[];
28
+ alignItems: string;
29
+ boxSizing: string;
30
+ fontSize: number;
31
+ };
32
+ noMatchesLabel: {
33
+ pointerEvents: string;
34
+ };
35
+ focused: {};
36
+ active: {};
37
+ disabled: {
38
+ cursor: string;
39
+ };
40
+ loading: {
41
+ cursor: string;
42
+ pointerEvents: string;
43
+ };
44
+ defaultCell: {};
47
45
  };
48
46
  export declare type SelectListStyles = ComponentStyles<typeof styles>;
@@ -1,10 +1,4 @@
1
+ export declare const defaultIsOptionDisabled: <Value>(option: Value) => boolean;
1
2
  export declare const defaultConvertFunction: (v: unknown) => string | undefined;
2
- export declare const defaultCompareFunction: <Value>(
3
- v1: Value | undefined,
4
- v2: Value | undefined,
5
- ) => boolean;
6
- export declare const getActiveValueIndex: <Value>(
7
- options: Value[],
8
- value: Value | undefined,
9
- convertFunc: (v?: Value | undefined) => string | undefined,
10
- ) => number;
3
+ export declare const defaultCompareFunction: <Value>(v1: Value, v2: Value) => boolean;
4
+ export declare const getActiveValueIndex: <Value>(options: Value[], value: Value | undefined, convertFunc: (v: Value) => string | undefined) => number;
@@ -1,34 +1,22 @@
1
1
  import React from 'react';
2
2
  import { IInputProps } from '../Input';
3
- export declare type TSmartType =
4
- | 'name'
5
- | 'nameRuEn'
6
- | 'surname'
7
- | 'surnameRuEn'
8
- | 'email'
9
- | 'agencyName'
10
- | 'default'
11
- | 'digits'
12
- | 'docNumber'
13
- | 'benefitCert';
3
+ export declare type TSmartType = 'name' | 'nameRuEn' | 'surname' | 'surnameRuEn' | 'email' | 'agencyName' | 'default' | 'digits' | 'docNumber' | 'benefitCert';
14
4
  export interface ISmartInputProps extends IInputProps {
15
- isUpperCase?: boolean;
16
- smartType?: TSmartType;
17
- regExp?: RegExp;
18
- onChange: (value: string) => void;
5
+ isUpperCase?: boolean;
6
+ smartType?: TSmartType;
7
+ regExp?: RegExp;
8
+ onChange: (value: string) => void;
19
9
  }
20
10
  export declare const SMART_INPUT_REGEX_MAP: {
21
- default: RegExp;
22
- agencyName: RegExp;
23
- surname: RegExp;
24
- name: RegExp;
25
- surnameRuEn: RegExp;
26
- nameRuEn: RegExp;
27
- email: RegExp;
28
- digits: RegExp;
29
- docNumber: RegExp;
30
- benefitCert: RegExp;
11
+ default: RegExp;
12
+ agencyName: RegExp;
13
+ surname: RegExp;
14
+ name: RegExp;
15
+ surnameRuEn: RegExp;
16
+ nameRuEn: RegExp;
17
+ email: RegExp;
18
+ digits: RegExp;
19
+ docNumber: RegExp;
20
+ benefitCert: RegExp;
31
21
  };
32
- export declare const SmartInput: React.ForwardRefExoticComponent<
33
- ISmartInputProps & React.RefAttributes<HTMLInputElement>
34
- >;
22
+ export declare const SmartInput: React.ForwardRefExoticComponent<ISmartInputProps & React.RefAttributes<HTMLInputElement>>;
@@ -1,14 +1,10 @@
1
1
  import { TSmartType } from './SmartInput';
2
- export declare const transformCaseSensitive: (
3
- smartType: TSmartType,
4
- map: {
2
+ export declare const transformCaseSensitive: (smartType: TSmartType, map: {
5
3
  [key: string]: string;
6
- },
7
- symbol: string,
8
- ) => string;
4
+ }, symbol: string) => string;
9
5
  export declare const CharactersMap: {
10
- [key: string]: string;
6
+ [key: string]: string;
11
7
  };
12
8
  export declare const TransliterationMap: {
13
- [key: string]: string;
9
+ [key: string]: string;
14
10
  };
@@ -2,32 +2,19 @@ import { PropsWithChildren } from 'react';
2
2
  import { ICommonProps } from '../../types';
3
3
  import { SwitchStyles } from './Switch.styles';
4
4
  export interface ISwitchState<V = string> {
5
- name: V;
6
- isEnabled: boolean;
5
+ name: V;
6
+ isEnabled: boolean;
7
7
  }
8
8
  export interface ISwitchProps<V extends string> extends ICommonProps {
9
- tweakStyles?: SwitchStyles;
10
- value: V;
11
- isChecked: boolean;
12
- isDisabled?: boolean;
13
- isInvalid?: boolean;
14
- label?: string;
15
- labelPosition?: 'left' | 'right';
16
- color?: 'primary' | 'secondary';
17
- onChange: (state: ISwitchState<V>) => void;
18
- testId?: string;
9
+ tweakStyles?: SwitchStyles;
10
+ value: V;
11
+ isChecked: boolean;
12
+ isDisabled?: boolean;
13
+ isInvalid?: boolean;
14
+ label?: string;
15
+ labelPosition?: 'left' | 'right';
16
+ color?: 'primary' | 'secondary';
17
+ onChange: (state: ISwitchState<V>) => void;
18
+ testId?: string;
19
19
  }
20
- export declare const Switch: <V extends string>({
21
- isDisabled,
22
- isChecked,
23
- isInvalid,
24
- onChange,
25
- value,
26
- label,
27
- children,
28
- labelPosition,
29
- color,
30
- data,
31
- tweakStyles,
32
- testId,
33
- }: PropsWithChildren<ISwitchProps<V>>) => JSX.Element;
20
+ export declare const Switch: <V extends string>({ isDisabled, isChecked, isInvalid, onChange, value, label, children, labelPosition, color, data, tweakStyles, testId, }: PropsWithChildren<ISwitchProps<V>>) => JSX.Element;