@true-engineering/true-react-common-ui-kit 2.5.0 → 2.6.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 (78) hide show
  1. package/LICENSE +201 -201
  2. package/dist/components/Flag/augment.d.ts +1 -1
  3. package/dist/components/Icon/complexIcons/augment.d.ts +1 -1
  4. package/dist/components/Input/Input.d.ts +2 -2
  5. package/dist/true-react-common-ui-kit.js +58 -58
  6. package/dist/true-react-common-ui-kit.js.map +1 -1
  7. package/dist/true-react-common-ui-kit.umd.cjs +58 -58
  8. package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
  9. package/dist/vite-env.d.ts +1 -1
  10. package/package.json +1 -1
  11. package/src/components/AccountInfo/AccountInfo.styles.ts +55 -55
  12. package/src/components/AccountInfo/index.ts +2 -2
  13. package/src/components/AddButton/AddButton.stories.tsx +21 -21
  14. package/src/components/AddButton/AddButton.styles.ts +34 -34
  15. package/src/components/AddButton/index.ts +2 -2
  16. package/src/components/Button/Button.styles.ts +196 -196
  17. package/src/components/Checkbox/Checkbox.styles.ts +62 -62
  18. package/src/components/Checkbox/index.ts +2 -2
  19. package/src/components/CloseButton/index.ts +2 -2
  20. package/src/components/Colors/Colors.stories.tsx +7 -7
  21. package/src/components/Colors/Colors.styles.ts +38 -38
  22. package/src/components/Colors/index.ts +2 -2
  23. package/src/components/CssBaseline/CssBaseline.styles.ts +15 -15
  24. package/src/components/CssBaseline/index.ts +2 -2
  25. package/src/components/DateInput/DateInput.styles.ts +14 -14
  26. package/src/components/DateInput/constants.ts +2 -2
  27. package/src/components/DateInput/index.ts +3 -3
  28. package/src/components/Description/Description.styles.ts +31 -31
  29. package/src/components/Description/index.ts +2 -2
  30. package/src/components/FiltersPane/FiltersPane.styles.ts +71 -71
  31. package/src/components/Flag/Flag.styles.ts +18 -18
  32. package/src/components/Flag/augment.d.ts +1 -1
  33. package/src/components/Flag/index.ts +2 -2
  34. package/src/components/FlexibleTable/index.ts +3 -3
  35. package/src/components/Icon/Icon.styles.ts +10 -10
  36. package/src/components/Icon/complexIcons/augment.d.ts +1 -1
  37. package/src/components/Icon/complexIcons/avatarGreen.svg +57 -57
  38. package/src/components/Icon/complexIcons/index.ts +1 -1
  39. package/src/components/IncrementInput/IncrementInput.styles.ts +77 -77
  40. package/src/components/IncrementInput/index.ts +2 -2
  41. package/src/components/Input/Input.styles.ts +307 -307
  42. package/src/components/Input/Input.tsx +3 -2
  43. package/src/components/List/List.styles.ts +52 -52
  44. package/src/components/MoreMenu/MoreMenu.stories.tsx +46 -46
  45. package/src/components/MoreMenu/index.ts +2 -2
  46. package/src/components/MultiSelect/MultiSelect.styles.ts +55 -55
  47. package/src/components/NumberInput/index.ts +1 -1
  48. package/src/components/PhoneInput/PhoneInput.styles.ts +84 -84
  49. package/src/components/PhoneInput/types.ts +16 -16
  50. package/src/components/RadioButton/RadioButton.styles.ts +37 -37
  51. package/src/components/RadioButton/index.ts +2 -2
  52. package/src/components/ScrollIntoViewIfNeeded/index.ts +1 -1
  53. package/src/components/SearchInput/index.ts +2 -2
  54. package/src/components/Select/Select.styles.ts +96 -96
  55. package/src/components/Select/constants.ts +2 -2
  56. package/src/components/Select/types.ts +1 -1
  57. package/src/components/Switch/Switch.styles.ts +75 -75
  58. package/src/components/TextArea/TextArea.styles.ts +153 -153
  59. package/src/components/TextArea/index.ts +2 -2
  60. package/src/components/TextWithInfo/TextWithInfo.styles.ts +60 -60
  61. package/src/components/TextWithInfo/index.ts +2 -2
  62. package/src/components/TextWithTooltip/TextWithTooltip.stories.tsx +58 -58
  63. package/src/components/TextWithTooltip/TextWithTooltip.styles.ts +19 -19
  64. package/src/components/TextWithTooltip/index.ts +2 -2
  65. package/src/components/ThemedPreloader/ThemedPreloader.styles.ts +21 -21
  66. package/src/components/ThemedPreloader/components/DefaultPreloader/index.ts +1 -1
  67. package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.ts +54 -54
  68. package/src/components/ThemedPreloader/components/DotsPreloader/index.ts +2 -2
  69. package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.ts +11 -11
  70. package/src/components/ThemedPreloader/components/SvgPreloader/index.ts +2 -2
  71. package/src/components/Toaster/Toaster.styles.ts +59 -59
  72. package/src/components/Tooltip/types.ts +1 -1
  73. package/src/components/index.ts +36 -36
  74. package/src/helpers/popper-helpers.ts +17 -17
  75. package/src/hooks/index.ts +6 -6
  76. package/src/hooks/use-is-mounted.ts +15 -15
  77. package/src/index.ts +6 -6
  78. package/src/vite-env.d.ts +1 -1
@@ -1,58 +1,58 @@
1
- <svg
2
- width="100%"
3
- height="100%"
4
- viewBox="0 0 32 32"
5
- fill="none"
6
- xmlns="http://www.w3.org/2000/svg"
7
- >
8
- <circle opacity="0.5" cx="16" cy="16" r="16" fill="#DDE3ED" />
9
- <mask
10
- id="mask0_0_12744"
11
- style="mask-type: 'alpha';"
12
- maskUnits="userSpaceOnUse"
13
- x="0"
14
- y="0"
15
- width="32"
16
- height="32"
17
- >
18
- <circle cx="16" cy="16" r="16" fill="white" />
19
- </mask>
20
- <g mask="url(#mask0_0_12744)">
21
- <circle cx="16" cy="29" r="13" fill="url(#paint0_linear_0_12744)" />
22
- <mask
23
- id="mask1_0_12744"
24
- style="mask-type: 'alpha';"
25
- maskUnits="userSpaceOnUse"
26
- x="3"
27
- y="16"
28
- width="26"
29
- height="26"
30
- >
31
- <circle cx="16" cy="29" r="13" fill="white" />
32
- </mask>
33
- <g mask="url(#mask1_0_12744)">
34
- <ellipse
35
- cx="16"
36
- cy="17.5"
37
- rx="6"
38
- ry="7.5"
39
- fill="#505F79"
40
- fill-opacity="0.204983"
41
- />
42
- </g>
43
- </g>
44
- <ellipse cx="16" cy="13" rx="6" ry="7" fill="white" />
45
- <defs>
46
- <linearGradient
47
- id="paint0_linear_0_12744"
48
- x1="13.347"
49
- y1="46.279"
50
- x2="33.5318"
51
- y2="30.8088"
52
- gradientUnits="userSpaceOnUse"
53
- >
54
- <stop stop-color="#ABD229" />
55
- <stop offset="1" stop-color="#9CD03F" />
56
- </linearGradient>
57
- </defs>
1
+ <svg
2
+ width="100%"
3
+ height="100%"
4
+ viewBox="0 0 32 32"
5
+ fill="none"
6
+ xmlns="http://www.w3.org/2000/svg"
7
+ >
8
+ <circle opacity="0.5" cx="16" cy="16" r="16" fill="#DDE3ED" />
9
+ <mask
10
+ id="mask0_0_12744"
11
+ style="mask-type: 'alpha';"
12
+ maskUnits="userSpaceOnUse"
13
+ x="0"
14
+ y="0"
15
+ width="32"
16
+ height="32"
17
+ >
18
+ <circle cx="16" cy="16" r="16" fill="white" />
19
+ </mask>
20
+ <g mask="url(#mask0_0_12744)">
21
+ <circle cx="16" cy="29" r="13" fill="url(#paint0_linear_0_12744)" />
22
+ <mask
23
+ id="mask1_0_12744"
24
+ style="mask-type: 'alpha';"
25
+ maskUnits="userSpaceOnUse"
26
+ x="3"
27
+ y="16"
28
+ width="26"
29
+ height="26"
30
+ >
31
+ <circle cx="16" cy="29" r="13" fill="white" />
32
+ </mask>
33
+ <g mask="url(#mask1_0_12744)">
34
+ <ellipse
35
+ cx="16"
36
+ cy="17.5"
37
+ rx="6"
38
+ ry="7.5"
39
+ fill="#505F79"
40
+ fill-opacity="0.204983"
41
+ />
42
+ </g>
43
+ </g>
44
+ <ellipse cx="16" cy="13" rx="6" ry="7" fill="white" />
45
+ <defs>
46
+ <linearGradient
47
+ id="paint0_linear_0_12744"
48
+ x1="13.347"
49
+ y1="46.279"
50
+ x2="33.5318"
51
+ y2="30.8088"
52
+ gradientUnits="userSpaceOnUse"
53
+ >
54
+ <stop stop-color="#ABD229" />
55
+ <stop offset="1" stop-color="#9CD03F" />
56
+ </linearGradient>
57
+ </defs>
58
58
  </svg>
@@ -1 +1 @@
1
- export * from './icons';
1
+ export * from './icons';
@@ -1,77 +1,77 @@
1
- import { colors, dimensions } from '../../theme';
2
- import { ComponentStyles } from '../../types';
3
-
4
- export const BUTTONS_WIDTH = 36;
5
- export const BUTTONS_GAP = 2;
6
-
7
- export const styles = {
8
- root: {
9
- display: 'flex',
10
- alignItems: 'center',
11
- position: 'relative',
12
- },
13
-
14
- buttons: {
15
- display: 'flex',
16
- flexDirection: 'column',
17
- width: BUTTONS_WIDTH,
18
- position: 'absolute',
19
- right: BUTTONS_GAP,
20
- top: BUTTONS_GAP,
21
- bottom: BUTTONS_GAP,
22
- zIndex: 1,
23
- },
24
-
25
- button: {
26
- width: '100%',
27
- height: (dimensions.CONTROL_HEIGHT - 5) / 2,
28
- border: 'none',
29
- outline: 'none',
30
- backgroundColor: colors.GREY_BACKGROUND,
31
- transition: 'background-color 0.25s ease-in-out',
32
- color: colors.FONT_MEDIUM,
33
- cursor: 'pointer',
34
- display: 'flex',
35
- alignItems: 'center',
36
- justifyContent: 'center',
37
- padding: [0, 10],
38
-
39
- '&:hover, &:focus': {
40
- backgroundColor: colors.GREY_HOVER,
41
- },
42
-
43
- '&:active': {
44
- backgroundColor: colors.GREY_ACTIVE,
45
- },
46
-
47
- '&:first-child': {
48
- marginBottom: 1,
49
- },
50
- },
51
-
52
- disabledButton: {
53
- backgroundColor: colors.CLASSIC_WHITE,
54
- color: colors.FONT_DISABLED,
55
- cursor: 'default',
56
-
57
- '&:hover': {
58
- backgroundColor: colors.CLASSIC_WHITE,
59
- },
60
- },
61
-
62
- errorButton: {},
63
-
64
- tweakInput: {
65
- input: {
66
- '&:not($withControls)': {
67
- paddingRight: BUTTONS_WIDTH + BUTTONS_GAP,
68
- },
69
- },
70
-
71
- controls: {
72
- paddingRight: BUTTONS_WIDTH + BUTTONS_GAP,
73
- },
74
- },
75
- };
76
-
77
- export type IncrementInputStyles = ComponentStyles<typeof styles>;
1
+ import { colors, dimensions } from '../../theme';
2
+ import { ComponentStyles } from '../../types';
3
+
4
+ export const BUTTONS_WIDTH = 36;
5
+ export const BUTTONS_GAP = 2;
6
+
7
+ export const styles = {
8
+ root: {
9
+ display: 'flex',
10
+ alignItems: 'center',
11
+ position: 'relative',
12
+ },
13
+
14
+ buttons: {
15
+ display: 'flex',
16
+ flexDirection: 'column',
17
+ width: BUTTONS_WIDTH,
18
+ position: 'absolute',
19
+ right: BUTTONS_GAP,
20
+ top: BUTTONS_GAP,
21
+ bottom: BUTTONS_GAP,
22
+ zIndex: 1,
23
+ },
24
+
25
+ button: {
26
+ width: '100%',
27
+ height: (dimensions.CONTROL_HEIGHT - 5) / 2,
28
+ border: 'none',
29
+ outline: 'none',
30
+ backgroundColor: colors.GREY_BACKGROUND,
31
+ transition: 'background-color 0.25s ease-in-out',
32
+ color: colors.FONT_MEDIUM,
33
+ cursor: 'pointer',
34
+ display: 'flex',
35
+ alignItems: 'center',
36
+ justifyContent: 'center',
37
+ padding: [0, 10],
38
+
39
+ '&:hover, &:focus': {
40
+ backgroundColor: colors.GREY_HOVER,
41
+ },
42
+
43
+ '&:active': {
44
+ backgroundColor: colors.GREY_ACTIVE,
45
+ },
46
+
47
+ '&:first-child': {
48
+ marginBottom: 1,
49
+ },
50
+ },
51
+
52
+ disabledButton: {
53
+ backgroundColor: colors.CLASSIC_WHITE,
54
+ color: colors.FONT_DISABLED,
55
+ cursor: 'default',
56
+
57
+ '&:hover': {
58
+ backgroundColor: colors.CLASSIC_WHITE,
59
+ },
60
+ },
61
+
62
+ errorButton: {},
63
+
64
+ tweakInput: {
65
+ input: {
66
+ '&:not($withControls)': {
67
+ paddingRight: BUTTONS_WIDTH + BUTTONS_GAP,
68
+ },
69
+ },
70
+
71
+ controls: {
72
+ paddingRight: BUTTONS_WIDTH + BUTTONS_GAP,
73
+ },
74
+ },
75
+ };
76
+
77
+ export type IncrementInputStyles = ComponentStyles<typeof styles>;
@@ -1,2 +1,2 @@
1
- export * from './IncrementInput';
2
- export type { IncrementInputStyles } from './IncrementInput.styles';
1
+ export * from './IncrementInput';
2
+ export type { IncrementInputStyles } from './IncrementInput.styles';