@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,50 +1,47 @@
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;
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
+ };
43
44
  };
44
- };
45
45
  };
46
- export declare type CheckboxStyles = ComponentStyles<
47
- typeof styles,
48
- IStyleProps
49
- >;
46
+ export declare type CheckboxStyles = ComponentStyles<typeof styles, IStyleProps>;
50
47
  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;
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
+ };
18
25
  };
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,14 +2,13 @@ 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
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;
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;
14
13
  }
15
14
  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,41 +1,34 @@
1
1
  import React, { FC } from 'react';
2
- import {
3
- ReactDatePickerCustomHeaderProps,
4
- ReactDatePickerProps,
5
- } from 'react-datepicker';
2
+ import { ReactDatePickerCustomHeaderProps, ReactDatePickerProps } from 'react-datepicker';
6
3
  import { IInputProps } from '../Input';
7
4
  import { DatePickerStyles } from './DatePicker.styles';
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'];
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'];
40
33
  }
41
34
  export declare const DatePicker: FC<IDatePickerProps>;
@@ -1,42 +1,46 @@
1
1
  import { ComponentStyles } from '../../types';
2
2
  export declare const styles: {
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;
3
+ root: {
4
+ width: string;
5
+ height: string;
30
6
  };
31
- '&[data-placement^="top"]': {
32
- paddingBottom: number;
7
+ day: {
8
+ width: number;
9
+ height: number;
10
+ lineHeight: string;
11
+ boxSizing: string;
12
+ paddingTop: number;
13
+ fontSize: number;
33
14
  };
34
- '&[data-placement^="left"]': {
35
- paddingRight: number;
15
+ datepicker: {
16
+ display: string;
17
+ padding: number[];
18
+ width: number;
19
+ boxSizing: string;
36
20
  };
37
- '&[data-placement^="right"]': {
38
- paddingLeft: number;
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
+ };
39
44
  };
40
- };
41
45
  };
42
46
  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;
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: {
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: {
3
+ btn: {
4
+ width: number;
57
5
  height: number;
6
+ padding: number;
7
+ boxSizing: string;
58
8
  border: string;
59
- };
60
- input: {
9
+ outline: string;
10
+ cursor: string;
11
+ marginLeft: number;
12
+ };
13
+ select: {
14
+ height: number;
15
+ fontSize: number;
16
+ position: string;
17
+ };
18
+ selectValue: {
61
19
  fontSize: number;
62
20
  fontWeight: string;
63
- paddingRight: number;
21
+ color: string;
22
+ pointerEvents: string;
64
23
  paddingLeft: number;
65
- };
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: {
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
+ };
66
67
  };
67
- };
68
68
  };
69
69
  export declare type DatePickerHeaderStyles = ComponentStyles<typeof styles>;
@@ -1,13 +1,11 @@
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<
12
- IDatePickerInputProps & import('react').RefAttributes<HTMLDivElement>
13
- >;
11
+ export declare const DatePickerInput: import("react").ForwardRefExoticComponent<IDatePickerInputProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -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>;