@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,50 @@
1
1
  import { ComponentStyles } from '../../types';
2
2
  import type { ICheckboxProps } from './Checkbox';
3
3
  interface IStyleProps {
4
- size: NonNullable<ICheckboxProps<unknown>['size']>;
5
- alignItems: NonNullable<ICheckboxProps<unknown>['alignItems']>;
6
- textMargin: ICheckboxProps<unknown>['textMargin'];
4
+ size: NonNullable<ICheckboxProps<unknown>['size']>;
5
+ alignItems: NonNullable<ICheckboxProps<unknown>['alignItems']>;
6
+ textMargin: ICheckboxProps<unknown>['textMargin'];
7
7
  }
8
8
  export declare const styles: {
9
- root: {
10
- cursor: string;
11
- display: string;
12
- alignItems: ({ alignItems }: IStyleProps) => string;
13
- };
14
- disabled: {
15
- cursor: string;
16
- pointerEvents: string;
17
- };
18
- input: {
19
- display: string;
20
- };
21
- children: {
22
- maxWidth: string;
23
- display: string;
24
- alignItems: string;
25
- };
26
- check: {
27
- width: ({ size }: IStyleProps) => number;
28
- height: ({ size }: IStyleProps) => number;
29
- borderRadius: number;
30
- flexShrink: number;
31
- marginRight: ({ size, textMargin }: IStyleProps) => number;
32
- display: string;
33
- alignItems: string;
34
- justifyContent: string;
35
- boxSizing: string;
36
- };
37
- checked: {};
38
- labelPositionLeft: {
39
- flexDirection: string;
40
- '& $check': {
41
- marginRight: number;
42
- marginLeft: ({ size, textMargin }: IStyleProps) => number;
43
- };
9
+ root: {
10
+ cursor: string;
11
+ display: string;
12
+ alignItems: ({ alignItems }: IStyleProps) => string;
13
+ };
14
+ disabled: {
15
+ cursor: string;
16
+ pointerEvents: string;
17
+ };
18
+ input: {
19
+ display: string;
20
+ };
21
+ children: {
22
+ maxWidth: string;
23
+ display: string;
24
+ alignItems: string;
25
+ };
26
+ check: {
27
+ width: ({ size }: IStyleProps) => number;
28
+ height: ({ size }: IStyleProps) => number;
29
+ borderRadius: number;
30
+ flexShrink: number;
31
+ marginRight: ({ size, textMargin }: IStyleProps) => number;
32
+ display: string;
33
+ alignItems: string;
34
+ justifyContent: string;
35
+ boxSizing: string;
36
+ };
37
+ checked: {};
38
+ labelPositionLeft: {
39
+ flexDirection: string;
40
+ '& $check': {
41
+ marginRight: number;
42
+ marginLeft: ({ size, textMargin }: IStyleProps) => number;
44
43
  };
44
+ };
45
45
  };
46
- export declare type CheckboxStyles = ComponentStyles<typeof styles, IStyleProps>;
46
+ export declare type CheckboxStyles = ComponentStyles<
47
+ typeof styles,
48
+ IStyleProps
49
+ >;
47
50
  export {};
@@ -2,9 +2,9 @@ import { FC } from 'react';
2
2
  import { ICommonProps } from '../../types';
3
3
  import { CloseButtonStyles } from './CloseButton.styles';
4
4
  export interface ICloseButtonProps extends ICommonProps {
5
- tweakStyles?: CloseButtonStyles;
6
- testId?: string;
7
- onClose?: () => void;
8
- iconType?: 'close' | 'close-large' | 'close-window';
5
+ tweakStyles?: CloseButtonStyles;
6
+ testId?: string;
7
+ onClose?: () => void;
8
+ iconType?: 'close' | 'close-large' | 'close-window';
9
9
  }
10
10
  export declare const CloseButton: FC<ICloseButtonProps>;
@@ -1,27 +1,27 @@
1
1
  import { ComponentStyles } from '../../types';
2
2
  export declare const styles: {
3
- root: {
4
- width: number;
5
- height: number;
6
- maxWidth: string;
7
- maxHeight: string;
8
- padding: number;
9
- color: "#505f79";
10
- border: number;
11
- borderRadius: string;
12
- appearance: string;
13
- backgroundColor: string;
14
- cursor: string;
15
- transition: string;
16
- '&:hover': {
17
- backgroundColor: string;
18
- };
19
- '&:focus': {
20
- backgroundColor: "#eceff5";
21
- };
22
- '&:active': {
23
- backgroundColor: string;
24
- };
3
+ root: {
4
+ width: number;
5
+ height: number;
6
+ maxWidth: string;
7
+ maxHeight: string;
8
+ padding: number;
9
+ color: '#505f79';
10
+ border: number;
11
+ borderRadius: string;
12
+ appearance: string;
13
+ backgroundColor: string;
14
+ cursor: string;
15
+ transition: string;
16
+ '&:hover': {
17
+ backgroundColor: string;
25
18
  };
19
+ '&:focus': {
20
+ backgroundColor: '#eceff5';
21
+ };
22
+ '&:active': {
23
+ backgroundColor: string;
24
+ };
25
+ };
26
26
  };
27
27
  export declare type CloseButtonStyles = ComponentStyles<typeof styles>;
@@ -1,32 +1,32 @@
1
1
  import { ComponentStyles } from '../../types';
2
2
  export declare const styles: {
3
- root: {
4
- display: string;
5
- flexWrap: string;
6
- };
7
- colorCard: {
8
- width: number;
9
- border: string;
10
- borderRadius: number;
11
- color: string;
12
- fontSize: number;
13
- margin: number;
14
- };
15
- color: {
16
- height: number;
17
- borderTopLeftRadius: number;
18
- borderTopRightRadius: number;
19
- };
20
- colorName: {
21
- marginBottom: number;
22
- padding: number;
23
- overflow: string;
24
- };
25
- hex: {
26
- marginTop: number;
27
- textTransform: string;
28
- fontWeight: string;
29
- padding: number[];
30
- };
3
+ root: {
4
+ display: string;
5
+ flexWrap: string;
6
+ };
7
+ colorCard: {
8
+ width: number;
9
+ border: string;
10
+ borderRadius: number;
11
+ color: string;
12
+ fontSize: number;
13
+ margin: number;
14
+ };
15
+ color: {
16
+ height: number;
17
+ borderTopLeftRadius: number;
18
+ borderTopRightRadius: number;
19
+ };
20
+ colorName: {
21
+ marginBottom: number;
22
+ padding: number;
23
+ overflow: string;
24
+ };
25
+ hex: {
26
+ marginTop: number;
27
+ textTransform: string;
28
+ fontWeight: string;
29
+ padding: number[];
30
+ };
31
31
  };
32
32
  export declare type ColorsStyles = ComponentStyles<typeof styles>;
@@ -2,6 +2,6 @@ import { FC } from 'react';
2
2
  import { ICommonProps } from '../../types';
3
3
  import { CssBaselineStyles } from './CssBaseline.styles';
4
4
  export interface ICssBaselineProps extends ICommonProps {
5
- tweakStyles?: CssBaselineStyles;
5
+ tweakStyles?: CssBaselineStyles;
6
6
  }
7
7
  export declare const CssBaseline: FC<ICssBaselineProps>;
@@ -1,11 +1,11 @@
1
1
  import { ComponentStyles } from '../../types';
2
2
  export declare const styles: {
3
- '@global html, body': {
4
- fontFamily: string;
5
- color: "#222a37";
6
- padding: number;
7
- margin: number;
8
- };
9
- root: {};
3
+ '@global html, body': {
4
+ fontFamily: string;
5
+ color: '#222a37';
6
+ padding: number;
7
+ margin: number;
8
+ };
9
+ root: {};
10
10
  };
11
11
  export declare type CssBaselineStyles = ComponentStyles<typeof styles>;
@@ -2,13 +2,14 @@ import { FC } from 'react';
2
2
  import { IDataAttributes } from '../../types';
3
3
  import { IInputProps } from '../Input';
4
4
  import { DateInputStyles } from './DateInput.styles';
5
- export interface IDateInputProps extends Omit<IInputProps, 'onChange' | 'value'> {
6
- tweakStyles?: DateInputStyles;
7
- isRange?: boolean;
8
- date?: string;
9
- startDate?: string;
10
- endDate?: string;
11
- data?: IDataAttributes;
12
- onChange: (date: string) => void;
5
+ export interface IDateInputProps
6
+ extends Omit<IInputProps, 'onChange' | 'value'> {
7
+ tweakStyles?: DateInputStyles;
8
+ isRange?: boolean;
9
+ date?: string;
10
+ startDate?: string;
11
+ endDate?: string;
12
+ data?: IDataAttributes;
13
+ onChange: (date: string) => void;
13
14
  }
14
15
  export declare const DateInput: FC<IDateInputProps>;
@@ -1,11 +1,11 @@
1
1
  import { ComponentStyles } from '../../types';
2
2
  export declare const styles: {
3
- root: {
4
- cursor: string;
5
- position: string;
6
- width: string;
7
- height: string;
8
- };
9
- tweakInput: {};
3
+ root: {
4
+ cursor: string;
5
+ position: string;
6
+ width: string;
7
+ height: string;
8
+ };
9
+ tweakInput: {};
10
10
  };
11
11
  export declare type DateInputStyles = ComponentStyles<typeof styles>;
@@ -1,34 +1,41 @@
1
1
  import React, { FC } from 'react';
2
- import { ReactDatePickerCustomHeaderProps, ReactDatePickerProps } from 'react-datepicker';
2
+ import {
3
+ ReactDatePickerCustomHeaderProps,
4
+ ReactDatePickerProps,
5
+ } from 'react-datepicker';
3
6
  import { IInputProps } from '../Input';
4
7
  import { DatePickerStyles } from './DatePicker.styles';
5
- export interface IDatePickerProps extends Omit<IInputProps, 'onChange' | 'value'> {
6
- selectedDate: Date | null;
7
- locale: Locale;
8
- months: string[];
9
- tweakStyles?: DatePickerStyles;
10
- minDate?: Date | null;
11
- maxDate?: Date | null;
12
- endDate?: Date | null;
13
- startDate?: Date | null;
14
- size?: 's' | 'm' | 'full';
15
- isRange?: boolean;
16
- calendarStartDay?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
17
- leftPosition?: number;
18
- topPosition?: number;
19
- isInline?: boolean;
20
- isNeedClearSelectedDate?: boolean;
21
- dateFormat?: string;
22
- shouldGiveValueOnType?: boolean;
23
- disabledKeyboardNavigation?: boolean;
24
- monthsShown?: number;
25
- showPreviousMonths?: boolean;
26
- customHeader?: (params: ReactDatePickerCustomHeaderProps) => React.ReactNode;
27
- filterDate?: (date: Date) => boolean;
28
- onChangeDate?: (date: Date | null, dateVal?: string) => void;
29
- onChangeRange?: (date: [Date, Date] | null, event?: React.SyntheticEvent<any>) => void;
30
- shouldRenderPopperInBody?: boolean;
31
- popperModifiers?: ReactDatePickerProps['popperModifiers'];
32
- popperPlacement?: ReactDatePickerProps['popperPlacement'];
8
+ export interface IDatePickerProps
9
+ extends Omit<IInputProps, 'onChange' | 'value'> {
10
+ selectedDate: Date | null;
11
+ locale: Locale;
12
+ months: string[];
13
+ tweakStyles?: DatePickerStyles;
14
+ minDate?: Date | null;
15
+ maxDate?: Date | null;
16
+ endDate?: Date | null;
17
+ startDate?: Date | null;
18
+ size?: 's' | 'm' | 'full';
19
+ isRange?: boolean;
20
+ calendarStartDay?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
21
+ leftPosition?: number;
22
+ topPosition?: number;
23
+ isInline?: boolean;
24
+ isNeedClearSelectedDate?: boolean;
25
+ dateFormat?: string;
26
+ shouldGiveValueOnType?: boolean;
27
+ disabledKeyboardNavigation?: boolean;
28
+ monthsShown?: number;
29
+ showPreviousMonths?: boolean;
30
+ customHeader?: (params: ReactDatePickerCustomHeaderProps) => React.ReactNode;
31
+ filterDate?: (date: Date) => boolean;
32
+ onChangeDate?: (date: Date | null, dateVal?: string) => void;
33
+ onChangeRange?: (
34
+ date: [Date, Date] | null,
35
+ event?: React.SyntheticEvent<any>,
36
+ ) => void;
37
+ shouldRenderPopperInBody?: boolean;
38
+ popperModifiers?: ReactDatePickerProps['popperModifiers'];
39
+ popperPlacement?: ReactDatePickerProps['popperPlacement'];
33
40
  }
34
41
  export declare const DatePicker: FC<IDatePickerProps>;
@@ -1,46 +1,42 @@
1
1
  import { ComponentStyles } from '../../types';
2
2
  export declare const styles: {
3
- root: {
4
- width: string;
5
- height: string;
3
+ root: {
4
+ width: string;
5
+ height: string;
6
+ };
7
+ day: {
8
+ width: number;
9
+ height: number;
10
+ lineHeight: string;
11
+ boxSizing: string;
12
+ paddingTop: number;
13
+ fontSize: number;
14
+ };
15
+ datepicker: {
16
+ display: string;
17
+ padding: number[];
18
+ width: number;
19
+ boxSizing: string;
20
+ };
21
+ btnText: {
22
+ marginLeft: string;
23
+ };
24
+ popper: {
25
+ zIndex: number;
26
+ marginLeft: ({ leftPosition }: { leftPosition: number }) => number;
27
+ marginTop: ({ topPosition }: { topPosition: number }) => number;
28
+ '&[data-placement^="bottom"]': {
29
+ paddingTop: number;
6
30
  };
7
- day: {
8
- width: number;
9
- height: number;
10
- lineHeight: string;
11
- boxSizing: string;
12
- paddingTop: number;
13
- fontSize: number;
31
+ '&[data-placement^="top"]': {
32
+ paddingBottom: number;
14
33
  };
15
- datepicker: {
16
- display: string;
17
- padding: number[];
18
- width: number;
19
- boxSizing: string;
34
+ '&[data-placement^="left"]': {
35
+ paddingRight: number;
20
36
  };
21
- btnText: {
22
- marginLeft: string;
23
- };
24
- popper: {
25
- zIndex: number;
26
- marginLeft: ({ leftPosition }: {
27
- leftPosition: number;
28
- }) => number;
29
- marginTop: ({ topPosition }: {
30
- topPosition: number;
31
- }) => number;
32
- '&[data-placement^="bottom"]': {
33
- paddingTop: number;
34
- };
35
- '&[data-placement^="top"]': {
36
- paddingBottom: number;
37
- };
38
- '&[data-placement^="left"]': {
39
- paddingRight: number;
40
- };
41
- '&[data-placement^="right"]': {
42
- paddingLeft: number;
43
- };
37
+ '&[data-placement^="right"]': {
38
+ paddingLeft: number;
44
39
  };
40
+ };
45
41
  };
46
42
  export declare type DatePickerStyles = ComponentStyles<typeof styles>;
@@ -1,14 +1,14 @@
1
1
  import { FC } from 'react';
2
2
  import { DatePickerHeaderStyles } from './DatePickerHeader.styles';
3
3
  export interface IDatePickerHeaderProps {
4
- tweakStyles?: DatePickerHeaderStyles;
5
- date: Date;
6
- changeYear: (year: number) => void;
7
- changeMonth: (month: number) => void;
8
- decreaseMonth: () => void;
9
- increaseMonth: () => void;
10
- isPrevMonthButtonDisabled: boolean;
11
- isNextMonthButtonDisabled: boolean;
12
- months: string[];
4
+ tweakStyles?: DatePickerHeaderStyles;
5
+ date: Date;
6
+ changeYear: (year: number) => void;
7
+ changeMonth: (month: number) => void;
8
+ decreaseMonth: () => void;
9
+ increaseMonth: () => void;
10
+ isPrevMonthButtonDisabled: boolean;
11
+ isNextMonthButtonDisabled: boolean;
12
+ months: string[];
13
13
  }
14
14
  export declare const DatePickerHeader: FC<IDatePickerHeaderProps>;
@@ -1,69 +1,69 @@
1
1
  import { ComponentStyles } from '../../../types';
2
2
  export declare const styles: {
3
- btn: {
4
- width: number;
5
- height: number;
6
- padding: number;
7
- boxSizing: string;
8
- border: string;
9
- outline: string;
10
- cursor: string;
11
- marginLeft: number;
12
- };
13
- select: {
14
- height: number;
3
+ btn: {
4
+ width: number;
5
+ height: number;
6
+ padding: number;
7
+ boxSizing: string;
8
+ border: string;
9
+ outline: string;
10
+ cursor: string;
11
+ marginLeft: number;
12
+ };
13
+ select: {
14
+ height: number;
15
+ fontSize: number;
16
+ position: string;
17
+ };
18
+ selectValue: {
19
+ fontSize: number;
20
+ fontWeight: string;
21
+ color: string;
22
+ pointerEvents: string;
23
+ paddingLeft: number;
24
+ paddingRight: number;
25
+ };
26
+ selectControl: {
27
+ position: string;
28
+ top: number;
29
+ left: number;
30
+ width: string;
31
+ height: string;
32
+ };
33
+ header: {
34
+ margin: number;
35
+ display: string;
36
+ alignItems: string;
37
+ };
38
+ buttons: {
39
+ flexShrink: number;
40
+ marginLeft: string;
41
+ };
42
+ tweakSelect: {
43
+ list: {
44
+ cell: {
15
45
  fontSize: number;
16
- position: string;
46
+ minHeight: number;
47
+ };
17
48
  };
18
- selectValue: {
49
+ arrow: {
50
+ right: number;
51
+ top: number;
52
+ width: number;
53
+ height: number;
54
+ };
55
+ tweakInput: {
56
+ inputWrapper: {
57
+ height: number;
58
+ border: string;
59
+ };
60
+ input: {
19
61
  fontSize: number;
20
62
  fontWeight: string;
21
- color: string;
22
- pointerEvents: string;
23
- paddingLeft: number;
24
63
  paddingRight: number;
64
+ paddingLeft: number;
65
+ };
25
66
  };
26
- selectControl: {
27
- position: string;
28
- top: number;
29
- left: number;
30
- width: string;
31
- height: string;
32
- };
33
- header: {
34
- margin: number;
35
- display: string;
36
- alignItems: string;
37
- };
38
- buttons: {
39
- flexShrink: number;
40
- marginLeft: string;
41
- };
42
- tweakSelect: {
43
- list: {
44
- cell: {
45
- fontSize: number;
46
- minHeight: number;
47
- };
48
- };
49
- arrow: {
50
- right: number;
51
- top: number;
52
- width: number;
53
- height: number;
54
- };
55
- tweakInput: {
56
- inputWrapper: {
57
- height: number;
58
- border: string;
59
- };
60
- input: {
61
- fontSize: number;
62
- fontWeight: string;
63
- paddingRight: number;
64
- paddingLeft: number;
65
- };
66
- };
67
- };
67
+ };
68
68
  };
69
69
  export declare type DatePickerHeaderStyles = ComponentStyles<typeof styles>;
@@ -1,11 +1,13 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { DatePickerInputStyles } from './DatePickerInput.styles';
3
3
  export interface IDatePickerInputProps {
4
- tweakStyles?: DatePickerInputStyles;
5
- onClick?: () => void;
6
- children: ReactElement;
7
- className?: string;
8
- size?: 's' | 'm' | 'full';
9
- isOpen?: boolean;
4
+ tweakStyles?: DatePickerInputStyles;
5
+ onClick?: () => void;
6
+ children: ReactElement;
7
+ className?: string;
8
+ size?: 's' | 'm' | 'full';
9
+ isOpen?: boolean;
10
10
  }
11
- export declare const DatePickerInput: import("react").ForwardRefExoticComponent<IDatePickerInputProps & import("react").RefAttributes<HTMLDivElement>>;
11
+ export declare const DatePickerInput: import('react').ForwardRefExoticComponent<
12
+ IDatePickerInputProps & import('react').RefAttributes<HTMLDivElement>
13
+ >;
@@ -1,20 +1,20 @@
1
1
  import { ComponentStyles } from '../../../types';
2
2
  export declare const styles: {
3
- customInput: {
4
- width: string;
5
- height: string;
6
- };
7
- s: {
8
- width: number;
9
- height: string;
10
- };
11
- m: {
12
- width: number;
13
- height: string;
14
- };
15
- full: {
16
- width: string;
17
- height: string;
18
- };
3
+ customInput: {
4
+ width: string;
5
+ height: string;
6
+ };
7
+ s: {
8
+ width: number;
9
+ height: string;
10
+ };
11
+ m: {
12
+ width: number;
13
+ height: string;
14
+ };
15
+ full: {
16
+ width: string;
17
+ height: string;
18
+ };
19
19
  };
20
20
  export declare type DatePickerInputStyles = ComponentStyles<typeof styles>;