@true-engineering/true-react-common-ui-kit 2.4.0 → 2.5.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 (82) hide show
  1. package/LICENSE +201 -201
  2. package/dist/components/DatePicker/DatePicker.styles.d.ts +4 -5
  3. package/dist/components/FiltersPane/index.d.ts +1 -0
  4. package/dist/components/Flag/augment.d.ts +1 -1
  5. package/dist/components/Icon/complexIcons/augment.d.ts +1 -1
  6. package/dist/components/Input/Input.d.ts +1 -0
  7. package/dist/true-react-common-ui-kit.js +59 -59
  8. package/dist/true-react-common-ui-kit.js.map +1 -1
  9. package/dist/true-react-common-ui-kit.umd.cjs +59 -59
  10. package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
  11. package/dist/vite-env.d.ts +1 -1
  12. package/package.json +1 -1
  13. package/src/components/AccountInfo/AccountInfo.styles.ts +55 -55
  14. package/src/components/AccountInfo/index.ts +2 -2
  15. package/src/components/AddButton/AddButton.stories.tsx +21 -21
  16. package/src/components/AddButton/AddButton.styles.ts +34 -34
  17. package/src/components/AddButton/index.ts +2 -2
  18. package/src/components/Button/Button.styles.ts +196 -196
  19. package/src/components/Checkbox/Checkbox.styles.ts +62 -62
  20. package/src/components/Checkbox/index.ts +2 -2
  21. package/src/components/CloseButton/index.ts +2 -2
  22. package/src/components/Colors/Colors.stories.tsx +7 -7
  23. package/src/components/Colors/Colors.styles.ts +38 -38
  24. package/src/components/Colors/index.ts +2 -2
  25. package/src/components/CssBaseline/CssBaseline.styles.ts +15 -15
  26. package/src/components/CssBaseline/index.ts +2 -2
  27. package/src/components/DateInput/DateInput.styles.ts +14 -14
  28. package/src/components/DateInput/constants.ts +2 -2
  29. package/src/components/DateInput/index.ts +3 -3
  30. package/src/components/DatePicker/DatePicker.styles.ts +4 -4
  31. package/src/components/Description/Description.styles.ts +31 -31
  32. package/src/components/Description/index.ts +2 -2
  33. package/src/components/FiltersPane/FiltersPane.styles.ts +71 -71
  34. package/src/components/FiltersPane/index.ts +1 -0
  35. package/src/components/Flag/Flag.styles.ts +18 -18
  36. package/src/components/Flag/augment.d.ts +1 -1
  37. package/src/components/Flag/index.ts +2 -2
  38. package/src/components/FlexibleTable/index.ts +3 -3
  39. package/src/components/Icon/Icon.styles.ts +10 -10
  40. package/src/components/Icon/complexIcons/augment.d.ts +1 -1
  41. package/src/components/Icon/complexIcons/avatarGreen.svg +57 -57
  42. package/src/components/Icon/complexIcons/index.ts +1 -1
  43. package/src/components/IncrementInput/IncrementInput.styles.ts +77 -77
  44. package/src/components/IncrementInput/index.ts +2 -2
  45. package/src/components/Input/Input.styles.ts +307 -307
  46. package/src/components/Input/Input.tsx +4 -2
  47. package/src/components/List/List.styles.ts +52 -52
  48. package/src/components/MoreMenu/MoreMenu.stories.tsx +46 -46
  49. package/src/components/MoreMenu/index.ts +2 -2
  50. package/src/components/MultiSelect/MultiSelect.styles.ts +55 -55
  51. package/src/components/NumberInput/index.ts +1 -1
  52. package/src/components/PhoneInput/PhoneInput.styles.ts +84 -84
  53. package/src/components/PhoneInput/types.ts +16 -16
  54. package/src/components/RadioButton/RadioButton.styles.ts +37 -37
  55. package/src/components/RadioButton/index.ts +2 -2
  56. package/src/components/ScrollIntoViewIfNeeded/index.ts +1 -1
  57. package/src/components/SearchInput/index.ts +2 -2
  58. package/src/components/Select/Select.styles.ts +96 -96
  59. package/src/components/Select/constants.ts +2 -2
  60. package/src/components/Select/types.ts +1 -1
  61. package/src/components/Switch/Switch.styles.ts +75 -75
  62. package/src/components/TextArea/TextArea.styles.ts +153 -153
  63. package/src/components/TextArea/index.ts +2 -2
  64. package/src/components/TextWithInfo/TextWithInfo.styles.ts +60 -60
  65. package/src/components/TextWithInfo/index.ts +2 -2
  66. package/src/components/TextWithTooltip/TextWithTooltip.stories.tsx +58 -58
  67. package/src/components/TextWithTooltip/TextWithTooltip.styles.ts +19 -19
  68. package/src/components/TextWithTooltip/index.ts +2 -2
  69. package/src/components/ThemedPreloader/ThemedPreloader.styles.ts +21 -21
  70. package/src/components/ThemedPreloader/components/DefaultPreloader/index.ts +1 -1
  71. package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.ts +54 -54
  72. package/src/components/ThemedPreloader/components/DotsPreloader/index.ts +2 -2
  73. package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.ts +11 -11
  74. package/src/components/ThemedPreloader/components/SvgPreloader/index.ts +2 -2
  75. package/src/components/Toaster/Toaster.styles.ts +59 -59
  76. package/src/components/Tooltip/types.ts +1 -1
  77. package/src/components/index.ts +36 -36
  78. package/src/helpers/popper-helpers.ts +17 -17
  79. package/src/hooks/index.ts +6 -6
  80. package/src/hooks/use-is-mounted.ts +15 -15
  81. package/src/index.ts +6 -6
  82. package/src/vite-env.d.ts +1 -1
@@ -1,62 +1,62 @@
1
- import { ComponentStyles } from '../../types';
2
- import type { ICheckboxProps } from './Checkbox';
3
-
4
- interface IStyleProps {
5
- size: NonNullable<ICheckboxProps<unknown>['size']>;
6
- alignItems: NonNullable<ICheckboxProps<unknown>['alignItems']>;
7
- textMargin: ICheckboxProps<unknown>['textMargin'];
8
- }
9
-
10
- export const styles = {
11
- root: {
12
- cursor: 'pointer',
13
- display: 'flex',
14
- alignItems: ({ alignItems }: IStyleProps): string =>
15
- alignItems === 'top' ? 'flex-start' : 'center',
16
- },
17
-
18
- disabled: {
19
- cursor: 'default',
20
- pointerEvents: 'none',
21
- },
22
-
23
- input: {
24
- width: 1,
25
- height: 1,
26
- position: 'absolute',
27
- opacity: 0,
28
- },
29
-
30
- children: {
31
- maxWidth: 'calc(100% - 32px)',
32
- display: 'flex',
33
- alignItems: 'center',
34
- },
35
-
36
- check: {
37
- width: ({ size }: IStyleProps): number => size,
38
- height: ({ size }: IStyleProps): number => size,
39
- borderRadius: 2,
40
- flexShrink: 0,
41
- marginRight: ({ size, textMargin }: IStyleProps): number =>
42
- textMargin !== undefined ? textMargin : size - 4,
43
- display: 'flex',
44
- alignItems: 'center',
45
- justifyContent: 'center',
46
- boxSizing: 'border-box',
47
- },
48
-
49
- checked: {},
50
-
51
- labelPositionLeft: {
52
- flexDirection: 'row-reverse',
53
-
54
- '& $check': {
55
- marginRight: 0,
56
- marginLeft: ({ size, textMargin }: IStyleProps): number =>
57
- textMargin !== undefined ? textMargin : size - 4,
58
- },
59
- },
60
- };
61
-
62
- export type CheckboxStyles = ComponentStyles<typeof styles, IStyleProps>;
1
+ import { ComponentStyles } from '../../types';
2
+ import type { ICheckboxProps } from './Checkbox';
3
+
4
+ interface IStyleProps {
5
+ size: NonNullable<ICheckboxProps<unknown>['size']>;
6
+ alignItems: NonNullable<ICheckboxProps<unknown>['alignItems']>;
7
+ textMargin: ICheckboxProps<unknown>['textMargin'];
8
+ }
9
+
10
+ export const styles = {
11
+ root: {
12
+ cursor: 'pointer',
13
+ display: 'flex',
14
+ alignItems: ({ alignItems }: IStyleProps): string =>
15
+ alignItems === 'top' ? 'flex-start' : 'center',
16
+ },
17
+
18
+ disabled: {
19
+ cursor: 'default',
20
+ pointerEvents: 'none',
21
+ },
22
+
23
+ input: {
24
+ width: 1,
25
+ height: 1,
26
+ position: 'absolute',
27
+ opacity: 0,
28
+ },
29
+
30
+ children: {
31
+ maxWidth: 'calc(100% - 32px)',
32
+ display: 'flex',
33
+ alignItems: 'center',
34
+ },
35
+
36
+ check: {
37
+ width: ({ size }: IStyleProps): number => size,
38
+ height: ({ size }: IStyleProps): number => size,
39
+ borderRadius: 2,
40
+ flexShrink: 0,
41
+ marginRight: ({ size, textMargin }: IStyleProps): number =>
42
+ textMargin !== undefined ? textMargin : size - 4,
43
+ display: 'flex',
44
+ alignItems: 'center',
45
+ justifyContent: 'center',
46
+ boxSizing: 'border-box',
47
+ },
48
+
49
+ checked: {},
50
+
51
+ labelPositionLeft: {
52
+ flexDirection: 'row-reverse',
53
+
54
+ '& $check': {
55
+ marginRight: 0,
56
+ marginLeft: ({ size, textMargin }: IStyleProps): number =>
57
+ textMargin !== undefined ? textMargin : size - 4,
58
+ },
59
+ },
60
+ };
61
+
62
+ export type CheckboxStyles = ComponentStyles<typeof styles, IStyleProps>;
@@ -1,2 +1,2 @@
1
- export * from './Checkbox';
2
- export type { CheckboxStyles } from './Checkbox.styles';
1
+ export * from './Checkbox';
2
+ export type { CheckboxStyles } from './Checkbox.styles';
@@ -1,2 +1,2 @@
1
- export * from './CloseButton';
2
- export type { CloseButtonStyles } from './CloseButton.styles';
1
+ export * from './CloseButton';
2
+ export type { CloseButtonStyles } from './CloseButton.styles';
@@ -1,7 +1,7 @@
1
- import { Colors } from './Colors';
2
-
3
- export default {
4
- title: 'Colors',
5
- };
6
-
7
- export const Default = (): JSX.Element => <Colors />;
1
+ import { Colors } from './Colors';
2
+
3
+ export default {
4
+ title: 'Colors',
5
+ };
6
+
7
+ export const Default = (): JSX.Element => <Colors />;
@@ -1,38 +1,38 @@
1
- import { ComponentStyles } from '../../types';
2
-
3
- export const styles = {
4
- root: {
5
- display: 'flex',
6
- flexWrap: 'wrap',
7
- },
8
-
9
- colorCard: {
10
- width: 120,
11
- border: 'solid 1px #dde3ed',
12
- borderRadius: 8,
13
- color: '#222a37',
14
- fontSize: 14,
15
- margin: 6,
16
- },
17
-
18
- color: {
19
- height: 120,
20
- borderTopLeftRadius: 8,
21
- borderTopRightRadius: 8,
22
- },
23
-
24
- colorName: {
25
- marginBottom: 6,
26
- padding: 6,
27
- overflow: 'hidden',
28
- },
29
-
30
- hex: {
31
- marginTop: 6,
32
- textTransform: 'uppercase',
33
- fontWeight: 'bold',
34
- padding: [0, 6, 6],
35
- },
36
- };
37
-
38
- export type ColorsStyles = ComponentStyles<typeof styles>;
1
+ import { ComponentStyles } from '../../types';
2
+
3
+ export const styles = {
4
+ root: {
5
+ display: 'flex',
6
+ flexWrap: 'wrap',
7
+ },
8
+
9
+ colorCard: {
10
+ width: 120,
11
+ border: 'solid 1px #dde3ed',
12
+ borderRadius: 8,
13
+ color: '#222a37',
14
+ fontSize: 14,
15
+ margin: 6,
16
+ },
17
+
18
+ color: {
19
+ height: 120,
20
+ borderTopLeftRadius: 8,
21
+ borderTopRightRadius: 8,
22
+ },
23
+
24
+ colorName: {
25
+ marginBottom: 6,
26
+ padding: 6,
27
+ overflow: 'hidden',
28
+ },
29
+
30
+ hex: {
31
+ marginTop: 6,
32
+ textTransform: 'uppercase',
33
+ fontWeight: 'bold',
34
+ padding: [0, 6, 6],
35
+ },
36
+ };
37
+
38
+ export type ColorsStyles = ComponentStyles<typeof styles>;
@@ -1,2 +1,2 @@
1
- export * from './Colors';
2
- export type { ColorsStyles } from './Colors.styles';
1
+ export * from './Colors';
2
+ export type { ColorsStyles } from './Colors.styles';
@@ -1,15 +1,15 @@
1
- import { colors } from '../../theme';
2
- import { ComponentStyles } from '../../types';
3
-
4
- export const styles = {
5
- '@global html, body': {
6
- fontFamily: 'Arial, sans-serif',
7
- color: colors.FONT_MAIN,
8
- padding: 0,
9
- margin: 0,
10
- },
11
-
12
- root: {},
13
- };
14
-
15
- export type CssBaselineStyles = ComponentStyles<typeof styles>;
1
+ import { colors } from '../../theme';
2
+ import { ComponentStyles } from '../../types';
3
+
4
+ export const styles = {
5
+ '@global html, body': {
6
+ fontFamily: 'Arial, sans-serif',
7
+ color: colors.FONT_MAIN,
8
+ padding: 0,
9
+ margin: 0,
10
+ },
11
+
12
+ root: {},
13
+ };
14
+
15
+ export type CssBaselineStyles = ComponentStyles<typeof styles>;
@@ -1,2 +1,2 @@
1
- export * from './CssBaseline';
2
- export type { CssBaselineStyles } from './CssBaseline.styles';
1
+ export * from './CssBaseline';
2
+ export type { CssBaselineStyles } from './CssBaseline.styles';
@@ -1,14 +1,14 @@
1
- import { ComponentStyles } from '../../types';
2
-
3
- export const styles = {
4
- root: {
5
- width: '100%',
6
- height: '100%',
7
- cursor: 'pointer',
8
- position: 'relative',
9
- },
10
-
11
- tweakInput: {},
12
- };
13
-
14
- export type DateInputStyles = ComponentStyles<typeof styles>;
1
+ import { ComponentStyles } from '../../types';
2
+
3
+ export const styles = {
4
+ root: {
5
+ width: '100%',
6
+ height: '100%',
7
+ cursor: 'pointer',
8
+ position: 'relative',
9
+ },
10
+
11
+ tweakInput: {},
12
+ };
13
+
14
+ export type DateInputStyles = ComponentStyles<typeof styles>;
@@ -1,2 +1,2 @@
1
- export const EMPTY_DATE_INPUT_VALUE = '__.__.____';
2
- export const EMPTY_DATE_RANGE_INPUT_VALUE = `${EMPTY_DATE_INPUT_VALUE} - ${EMPTY_DATE_INPUT_VALUE}`;
1
+ export const EMPTY_DATE_INPUT_VALUE = '__.__.____';
2
+ export const EMPTY_DATE_RANGE_INPUT_VALUE = `${EMPTY_DATE_INPUT_VALUE} - ${EMPTY_DATE_INPUT_VALUE}`;
@@ -1,3 +1,3 @@
1
- export * from './DateInput';
2
- export type { DateInputStyles } from './DateInput.styles';
3
- export * from './constants';
1
+ export * from './DateInput';
2
+ export type { DateInputStyles } from './DateInput.styles';
3
+ export * from './constants';
@@ -1,7 +1,7 @@
1
1
  import { ComponentStyles } from '../../types';
2
2
  import type { IDatePickerProps } from './DatePicker';
3
3
 
4
- interface IStyleProps {
4
+ export interface IDatePickerStyleProps {
5
5
  topPosition: NonNullable<IDatePickerProps['topPosition']>;
6
6
  leftPosition: NonNullable<IDatePickerProps['leftPosition']>;
7
7
  }
@@ -18,8 +18,8 @@ export const styles = {
18
18
 
19
19
  popper: {
20
20
  zIndex: 10,
21
- marginTop: ({ topPosition }: IStyleProps): number => topPosition,
22
- marginLeft: ({ leftPosition }: IStyleProps): number => leftPosition,
21
+ marginTop: ({ topPosition }: IDatePickerStyleProps): number => topPosition,
22
+ marginLeft: ({ leftPosition }: IDatePickerStyleProps): number => leftPosition,
23
23
 
24
24
  '&[data-placement^="bottom"]': {
25
25
  paddingTop: 6,
@@ -41,4 +41,4 @@ export const styles = {
41
41
  tweakDateInput: {},
42
42
  };
43
43
 
44
- export type DatePickerStyles = ComponentStyles<typeof styles, IStyleProps>;
44
+ export type DatePickerStyles = ComponentStyles<typeof styles, IDatePickerStyleProps>;
@@ -1,31 +1,31 @@
1
- import { colors } from '../../theme';
2
- import { ComponentStyles } from '../../types';
3
-
4
- export const styles = {
5
- root: {},
6
-
7
- button: {
8
- cursor: 'pointer',
9
- display: 'inline-block',
10
- color: colors.FONT_MEDIUM,
11
- marginTop: 18,
12
- textTransform: 'capitalize',
13
- borderBottom: [1, 'dashed', colors.FONT_MEDIUM],
14
-
15
- '&:hover': {
16
- color: colors.FONT_MAIN,
17
- },
18
- },
19
-
20
- link: {
21
- color: colors.FONT_MEDIUM,
22
- textDecoration: 'none',
23
- borderBottom: [1, 'dashed', colors.FONT_MEDIUM],
24
-
25
- '&:hover': {
26
- color: colors.FONT_MAIN,
27
- },
28
- },
29
- };
30
-
31
- export type DescriptionStyles = ComponentStyles<typeof styles>;
1
+ import { colors } from '../../theme';
2
+ import { ComponentStyles } from '../../types';
3
+
4
+ export const styles = {
5
+ root: {},
6
+
7
+ button: {
8
+ cursor: 'pointer',
9
+ display: 'inline-block',
10
+ color: colors.FONT_MEDIUM,
11
+ marginTop: 18,
12
+ textTransform: 'capitalize',
13
+ borderBottom: [1, 'dashed', colors.FONT_MEDIUM],
14
+
15
+ '&:hover': {
16
+ color: colors.FONT_MAIN,
17
+ },
18
+ },
19
+
20
+ link: {
21
+ color: colors.FONT_MEDIUM,
22
+ textDecoration: 'none',
23
+ borderBottom: [1, 'dashed', colors.FONT_MEDIUM],
24
+
25
+ '&:hover': {
26
+ color: colors.FONT_MAIN,
27
+ },
28
+ },
29
+ };
30
+
31
+ export type DescriptionStyles = ComponentStyles<typeof styles>;
@@ -1,2 +1,2 @@
1
- export * from './Description';
2
- export type { DescriptionStyles } from './Description.styles';
1
+ export * from './Description';
2
+ export type { DescriptionStyles } from './Description.styles';
@@ -1,71 +1,71 @@
1
- import { colors } from '../../theme';
2
- import { ComponentStyles } from '../../types';
3
-
4
- export const FILTER_HEIGHT = 36;
5
-
6
- export const styles = {
7
- root: {
8
- display: 'flex',
9
- flexWrap: 'wrap',
10
- gap: 8,
11
- width: '100%',
12
- },
13
-
14
- settings: {
15
- display: 'flex',
16
- alignItems: 'center',
17
- justifyContent: 'center',
18
- borderRadius: 18,
19
- boxSizing: 'border-box',
20
- width: 40,
21
- height: FILTER_HEIGHT,
22
- cursor: 'pointer',
23
- transition: 'background-color 0.25s ease-in-out',
24
- },
25
-
26
- settingsIcon: {
27
- width: 16,
28
- height: 16,
29
- },
30
-
31
- clear: {
32
- display: 'flex',
33
- alignItems: 'center',
34
- height: FILTER_HEIGHT,
35
- },
36
-
37
- filterWithClearButton: {
38
- display: 'flex',
39
- gap: 16,
40
- minWidth: 0,
41
- },
42
-
43
- // TODO: удалить когда появятся текстовые кнопки
44
- tweakClearButton: {
45
- s: {
46
- paddingLeft: 0,
47
- paddingRight: 0,
48
- minWidth: 'unset',
49
- },
50
-
51
- text: {
52
- background: 'none',
53
- color: colors.GREY_ACTIVE,
54
-
55
- '&:hover, &:focus': {
56
- color: colors.FONT_MEDIUM,
57
- },
58
-
59
- '&:active': {
60
- color: colors.FONT_MAIN,
61
- },
62
-
63
- '&:hover, &:focus, &:active': {
64
- background: 'none',
65
- borderColor: 'transparent',
66
- },
67
- },
68
- },
69
- };
70
-
71
- export type FiltersPaneStyles = ComponentStyles<typeof styles>;
1
+ import { colors } from '../../theme';
2
+ import { ComponentStyles } from '../../types';
3
+
4
+ export const FILTER_HEIGHT = 36;
5
+
6
+ export const styles = {
7
+ root: {
8
+ display: 'flex',
9
+ flexWrap: 'wrap',
10
+ gap: 8,
11
+ width: '100%',
12
+ },
13
+
14
+ settings: {
15
+ display: 'flex',
16
+ alignItems: 'center',
17
+ justifyContent: 'center',
18
+ borderRadius: 18,
19
+ boxSizing: 'border-box',
20
+ width: 40,
21
+ height: FILTER_HEIGHT,
22
+ cursor: 'pointer',
23
+ transition: 'background-color 0.25s ease-in-out',
24
+ },
25
+
26
+ settingsIcon: {
27
+ width: 16,
28
+ height: 16,
29
+ },
30
+
31
+ clear: {
32
+ display: 'flex',
33
+ alignItems: 'center',
34
+ height: FILTER_HEIGHT,
35
+ },
36
+
37
+ filterWithClearButton: {
38
+ display: 'flex',
39
+ gap: 16,
40
+ minWidth: 0,
41
+ },
42
+
43
+ // TODO: удалить когда появятся текстовые кнопки
44
+ tweakClearButton: {
45
+ s: {
46
+ paddingLeft: 0,
47
+ paddingRight: 0,
48
+ minWidth: 'unset',
49
+ },
50
+
51
+ text: {
52
+ background: 'none',
53
+ color: colors.GREY_ACTIVE,
54
+
55
+ '&:hover, &:focus': {
56
+ color: colors.FONT_MEDIUM,
57
+ },
58
+
59
+ '&:active': {
60
+ color: colors.FONT_MAIN,
61
+ },
62
+
63
+ '&:hover, &:focus, &:active': {
64
+ background: 'none',
65
+ borderColor: 'transparent',
66
+ },
67
+ },
68
+ },
69
+ };
70
+
71
+ export type FiltersPaneStyles = ComponentStyles<typeof styles>;
@@ -2,3 +2,4 @@ export * from './FiltersPane';
2
2
  export * from './types';
3
3
  // TODO : подумать над тем чтобы вынести это все наружу
4
4
  export * from './components';
5
+ export type { FiltersPaneStyles } from './FiltersPane.styles';
@@ -1,18 +1,18 @@
1
- import { colors } from '../../theme';
2
- import { ComponentStyles } from '../../types';
3
-
4
- export const styles = {
5
- root: {
6
- // приходится хардкодить в компоненте, тк либа Flags выдает флаги с 2-3 пиксельным отступом снизу
7
- // если будет нужно, то можно вынести border на уровень пропсов
8
- border: [1, 'solid', colors.BORDER_MAIN],
9
- borderRadius: 2,
10
- },
11
-
12
- noFlag: {
13
- width: 20,
14
- color: colors.FONT_MEDIUM,
15
- },
16
- };
17
-
18
- export type FlagStyles = ComponentStyles<typeof styles>;
1
+ import { colors } from '../../theme';
2
+ import { ComponentStyles } from '../../types';
3
+
4
+ export const styles = {
5
+ root: {
6
+ // приходится хардкодить в компоненте, тк либа Flags выдает флаги с 2-3 пиксельным отступом снизу
7
+ // если будет нужно, то можно вынести border на уровень пропсов
8
+ border: [1, 'solid', colors.BORDER_MAIN],
9
+ borderRadius: 2,
10
+ },
11
+
12
+ noFlag: {
13
+ width: 20,
14
+ color: colors.FONT_MEDIUM,
15
+ },
16
+ };
17
+
18
+ export type FlagStyles = ComponentStyles<typeof styles>;
@@ -1 +1 @@
1
- declare module 'country-flag-icons/react/3x2';
1
+ declare module 'country-flag-icons/react/3x2';
@@ -1,2 +1,2 @@
1
- export * from './Flag';
2
- export type { FlagStyles } from './Flag.styles';
1
+ export * from './Flag';
2
+ export type { FlagStyles } from './Flag.styles';
@@ -1,3 +1,3 @@
1
- export * from './FlexibleTable';
2
- export * from './types';
3
- export type { FlexibleTableStyles } from './FlexibleTable.styles';
1
+ export * from './FlexibleTable';
2
+ export * from './types';
3
+ export type { FlexibleTableStyles } from './FlexibleTable.styles';
@@ -1,10 +1,10 @@
1
- import { ComponentStyles } from '../../types';
2
-
3
- export const styles = {
4
- root: {
5
- display: 'flex',
6
- alignItems: 'center',
7
- },
8
- };
9
-
10
- export type IconStyles = ComponentStyles<typeof styles>;
1
+ import { ComponentStyles } from '../../types';
2
+
3
+ export const styles = {
4
+ root: {
5
+ display: 'flex',
6
+ alignItems: 'center',
7
+ },
8
+ };
9
+
10
+ export type IconStyles = ComponentStyles<typeof styles>;
@@ -1 +1 @@
1
- declare module '*.svg?raw';
1
+ declare module '*.svg?raw';