@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.
- package/LICENSE +201 -201
- package/dist/components/Flag/augment.d.ts +1 -1
- package/dist/components/Icon/complexIcons/augment.d.ts +1 -1
- package/dist/components/Input/Input.d.ts +2 -2
- package/dist/true-react-common-ui-kit.js +58 -58
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +58 -58
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/dist/vite-env.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/AccountInfo/AccountInfo.styles.ts +55 -55
- package/src/components/AccountInfo/index.ts +2 -2
- package/src/components/AddButton/AddButton.stories.tsx +21 -21
- package/src/components/AddButton/AddButton.styles.ts +34 -34
- package/src/components/AddButton/index.ts +2 -2
- package/src/components/Button/Button.styles.ts +196 -196
- package/src/components/Checkbox/Checkbox.styles.ts +62 -62
- package/src/components/Checkbox/index.ts +2 -2
- package/src/components/CloseButton/index.ts +2 -2
- package/src/components/Colors/Colors.stories.tsx +7 -7
- package/src/components/Colors/Colors.styles.ts +38 -38
- package/src/components/Colors/index.ts +2 -2
- package/src/components/CssBaseline/CssBaseline.styles.ts +15 -15
- package/src/components/CssBaseline/index.ts +2 -2
- package/src/components/DateInput/DateInput.styles.ts +14 -14
- package/src/components/DateInput/constants.ts +2 -2
- package/src/components/DateInput/index.ts +3 -3
- package/src/components/Description/Description.styles.ts +31 -31
- package/src/components/Description/index.ts +2 -2
- package/src/components/FiltersPane/FiltersPane.styles.ts +71 -71
- package/src/components/Flag/Flag.styles.ts +18 -18
- package/src/components/Flag/augment.d.ts +1 -1
- package/src/components/Flag/index.ts +2 -2
- package/src/components/FlexibleTable/index.ts +3 -3
- package/src/components/Icon/Icon.styles.ts +10 -10
- package/src/components/Icon/complexIcons/augment.d.ts +1 -1
- package/src/components/Icon/complexIcons/avatarGreen.svg +57 -57
- package/src/components/Icon/complexIcons/index.ts +1 -1
- package/src/components/IncrementInput/IncrementInput.styles.ts +77 -77
- package/src/components/IncrementInput/index.ts +2 -2
- package/src/components/Input/Input.styles.ts +307 -307
- package/src/components/Input/Input.tsx +3 -2
- package/src/components/List/List.styles.ts +52 -52
- package/src/components/MoreMenu/MoreMenu.stories.tsx +46 -46
- package/src/components/MoreMenu/index.ts +2 -2
- package/src/components/MultiSelect/MultiSelect.styles.ts +55 -55
- package/src/components/NumberInput/index.ts +1 -1
- package/src/components/PhoneInput/PhoneInput.styles.ts +84 -84
- package/src/components/PhoneInput/types.ts +16 -16
- package/src/components/RadioButton/RadioButton.styles.ts +37 -37
- package/src/components/RadioButton/index.ts +2 -2
- package/src/components/ScrollIntoViewIfNeeded/index.ts +1 -1
- package/src/components/SearchInput/index.ts +2 -2
- package/src/components/Select/Select.styles.ts +96 -96
- package/src/components/Select/constants.ts +2 -2
- package/src/components/Select/types.ts +1 -1
- package/src/components/Switch/Switch.styles.ts +75 -75
- package/src/components/TextArea/TextArea.styles.ts +153 -153
- package/src/components/TextArea/index.ts +2 -2
- package/src/components/TextWithInfo/TextWithInfo.styles.ts +60 -60
- package/src/components/TextWithInfo/index.ts +2 -2
- package/src/components/TextWithTooltip/TextWithTooltip.stories.tsx +58 -58
- package/src/components/TextWithTooltip/TextWithTooltip.styles.ts +19 -19
- package/src/components/TextWithTooltip/index.ts +2 -2
- package/src/components/ThemedPreloader/ThemedPreloader.styles.ts +21 -21
- package/src/components/ThemedPreloader/components/DefaultPreloader/index.ts +1 -1
- package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.ts +54 -54
- package/src/components/ThemedPreloader/components/DotsPreloader/index.ts +2 -2
- package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.ts +11 -11
- package/src/components/ThemedPreloader/components/SvgPreloader/index.ts +2 -2
- package/src/components/Toaster/Toaster.styles.ts +59 -59
- package/src/components/Tooltip/types.ts +1 -1
- package/src/components/index.ts +36 -36
- package/src/helpers/popper-helpers.ts +17 -17
- package/src/hooks/index.ts +6 -6
- package/src/hooks/use-is-mounted.ts +15 -15
- package/src/index.ts +6 -6
- package/src/vite-env.d.ts +1 -1
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
import { colors } from '../../theme';
|
|
2
|
-
import { ComponentStyles } from '../../types';
|
|
3
|
-
|
|
4
|
-
export const styles = {
|
|
5
|
-
root: {
|
|
6
|
-
display: 'inline-block',
|
|
7
|
-
height: 40,
|
|
8
|
-
padding: [0, 18],
|
|
9
|
-
borderRadius: 20,
|
|
10
|
-
boxSizing: 'border-box',
|
|
11
|
-
color: colors.FONT_MEDIUM,
|
|
12
|
-
|
|
13
|
-
'&:hover': {
|
|
14
|
-
backgroundColor: colors.GREY_FOCUS,
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
container: {
|
|
19
|
-
display: 'flex',
|
|
20
|
-
height: '100%',
|
|
21
|
-
alignItems: 'center',
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
selected: {
|
|
25
|
-
backgroundColor: colors.GREY_FOCUS,
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
text: {
|
|
29
|
-
cursor: 'pointer',
|
|
30
|
-
fontSize: 16,
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
info: {
|
|
34
|
-
width: 20,
|
|
35
|
-
marginLeft: 4,
|
|
36
|
-
color: colors.FONT_DISABLED,
|
|
37
|
-
cursor: 'pointer',
|
|
38
|
-
borderRadius: '50%',
|
|
39
|
-
|
|
40
|
-
'&:link': {
|
|
41
|
-
color: colors.FONT_DISABLED,
|
|
42
|
-
},
|
|
43
|
-
|
|
44
|
-
'&:hover': {
|
|
45
|
-
color: colors.CLASSIC_WHITE,
|
|
46
|
-
backgroundColor: colors.FONT_DISABLED,
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
'&:visited': {
|
|
50
|
-
color: colors.FONT_DISABLED,
|
|
51
|
-
|
|
52
|
-
'&:hover': {
|
|
53
|
-
color: colors.CLASSIC_WHITE,
|
|
54
|
-
backgroundColor: colors.FONT_DISABLED,
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
export type TextWithInfoStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
import { colors } from '../../theme';
|
|
2
|
+
import { ComponentStyles } from '../../types';
|
|
3
|
+
|
|
4
|
+
export const styles = {
|
|
5
|
+
root: {
|
|
6
|
+
display: 'inline-block',
|
|
7
|
+
height: 40,
|
|
8
|
+
padding: [0, 18],
|
|
9
|
+
borderRadius: 20,
|
|
10
|
+
boxSizing: 'border-box',
|
|
11
|
+
color: colors.FONT_MEDIUM,
|
|
12
|
+
|
|
13
|
+
'&:hover': {
|
|
14
|
+
backgroundColor: colors.GREY_FOCUS,
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
|
|
18
|
+
container: {
|
|
19
|
+
display: 'flex',
|
|
20
|
+
height: '100%',
|
|
21
|
+
alignItems: 'center',
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
selected: {
|
|
25
|
+
backgroundColor: colors.GREY_FOCUS,
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
text: {
|
|
29
|
+
cursor: 'pointer',
|
|
30
|
+
fontSize: 16,
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
info: {
|
|
34
|
+
width: 20,
|
|
35
|
+
marginLeft: 4,
|
|
36
|
+
color: colors.FONT_DISABLED,
|
|
37
|
+
cursor: 'pointer',
|
|
38
|
+
borderRadius: '50%',
|
|
39
|
+
|
|
40
|
+
'&:link': {
|
|
41
|
+
color: colors.FONT_DISABLED,
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
'&:hover': {
|
|
45
|
+
color: colors.CLASSIC_WHITE,
|
|
46
|
+
backgroundColor: colors.FONT_DISABLED,
|
|
47
|
+
},
|
|
48
|
+
|
|
49
|
+
'&:visited': {
|
|
50
|
+
color: colors.FONT_DISABLED,
|
|
51
|
+
|
|
52
|
+
'&:hover': {
|
|
53
|
+
color: colors.CLASSIC_WHITE,
|
|
54
|
+
backgroundColor: colors.FONT_DISABLED,
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export type TextWithInfoStyles = ComponentStyles<typeof styles>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './TextWithInfo';
|
|
2
|
-
export type { TextWithInfoStyles } from './TextWithInfo.styles';
|
|
1
|
+
export * from './TextWithInfo';
|
|
2
|
+
export type { TextWithInfoStyles } from './TextWithInfo.styles';
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
import { ComponentStory } from '@storybook/react';
|
|
2
|
-
import { TextWithTooltip } from './TextWithTooltip';
|
|
3
|
-
|
|
4
|
-
const positions = [
|
|
5
|
-
'top',
|
|
6
|
-
'bottom',
|
|
7
|
-
'right',
|
|
8
|
-
'left',
|
|
9
|
-
'top-start',
|
|
10
|
-
'top-end',
|
|
11
|
-
'bottom-start',
|
|
12
|
-
'bottom-end',
|
|
13
|
-
'right-start',
|
|
14
|
-
'right-end',
|
|
15
|
-
'left-start',
|
|
16
|
-
'left-end',
|
|
17
|
-
'auto',
|
|
18
|
-
'auto-start',
|
|
19
|
-
'auto-end',
|
|
20
|
-
];
|
|
21
|
-
|
|
22
|
-
export default {
|
|
23
|
-
title: 'TextWithTooltip',
|
|
24
|
-
component: TextWithTooltip,
|
|
25
|
-
argTypes: {
|
|
26
|
-
tooltipPosition: { control: 'select', options: positions },
|
|
27
|
-
tooltipView: { control: 'inline-radio', options: ['tooltip', 'hint'] },
|
|
28
|
-
tooltipType: { control: 'inline-radio', options: ['info', 'error'] },
|
|
29
|
-
mouseEventType: { control: 'inline-radio', options: ['hover', 'click'] },
|
|
30
|
-
},
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
const Template: ComponentStory<typeof TextWithTooltip> = (args) => (
|
|
34
|
-
<div
|
|
35
|
-
style={{
|
|
36
|
-
display: 'flex',
|
|
37
|
-
alignItems: 'center',
|
|
38
|
-
justifyContent: 'center',
|
|
39
|
-
width: 600,
|
|
40
|
-
height: 400,
|
|
41
|
-
}}
|
|
42
|
-
>
|
|
43
|
-
<TextWithTooltip {...args} />
|
|
44
|
-
</div>
|
|
45
|
-
);
|
|
46
|
-
|
|
47
|
-
export const Default = Template.bind({});
|
|
48
|
-
|
|
49
|
-
Default.args = {
|
|
50
|
-
children: 'Наведи на меня - появится тултип',
|
|
51
|
-
tooltipText: 'Текст тултипа',
|
|
52
|
-
tooltipPosition: 'top',
|
|
53
|
-
tooltipView: 'tooltip',
|
|
54
|
-
tooltipType: 'info',
|
|
55
|
-
isDisabled: false,
|
|
56
|
-
mouseEventType: 'hover',
|
|
57
|
-
shouldRenderInBody: true,
|
|
58
|
-
};
|
|
1
|
+
import { ComponentStory } from '@storybook/react';
|
|
2
|
+
import { TextWithTooltip } from './TextWithTooltip';
|
|
3
|
+
|
|
4
|
+
const positions = [
|
|
5
|
+
'top',
|
|
6
|
+
'bottom',
|
|
7
|
+
'right',
|
|
8
|
+
'left',
|
|
9
|
+
'top-start',
|
|
10
|
+
'top-end',
|
|
11
|
+
'bottom-start',
|
|
12
|
+
'bottom-end',
|
|
13
|
+
'right-start',
|
|
14
|
+
'right-end',
|
|
15
|
+
'left-start',
|
|
16
|
+
'left-end',
|
|
17
|
+
'auto',
|
|
18
|
+
'auto-start',
|
|
19
|
+
'auto-end',
|
|
20
|
+
];
|
|
21
|
+
|
|
22
|
+
export default {
|
|
23
|
+
title: 'TextWithTooltip',
|
|
24
|
+
component: TextWithTooltip,
|
|
25
|
+
argTypes: {
|
|
26
|
+
tooltipPosition: { control: 'select', options: positions },
|
|
27
|
+
tooltipView: { control: 'inline-radio', options: ['tooltip', 'hint'] },
|
|
28
|
+
tooltipType: { control: 'inline-radio', options: ['info', 'error'] },
|
|
29
|
+
mouseEventType: { control: 'inline-radio', options: ['hover', 'click'] },
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
const Template: ComponentStory<typeof TextWithTooltip> = (args) => (
|
|
34
|
+
<div
|
|
35
|
+
style={{
|
|
36
|
+
display: 'flex',
|
|
37
|
+
alignItems: 'center',
|
|
38
|
+
justifyContent: 'center',
|
|
39
|
+
width: 600,
|
|
40
|
+
height: 400,
|
|
41
|
+
}}
|
|
42
|
+
>
|
|
43
|
+
<TextWithTooltip {...args} />
|
|
44
|
+
</div>
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
export const Default = Template.bind({});
|
|
48
|
+
|
|
49
|
+
Default.args = {
|
|
50
|
+
children: 'Наведи на меня - появится тултип',
|
|
51
|
+
tooltipText: 'Текст тултипа',
|
|
52
|
+
tooltipPosition: 'top',
|
|
53
|
+
tooltipView: 'tooltip',
|
|
54
|
+
tooltipType: 'info',
|
|
55
|
+
isDisabled: false,
|
|
56
|
+
mouseEventType: 'hover',
|
|
57
|
+
shouldRenderInBody: true,
|
|
58
|
+
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { ComponentStyles } from '../../types';
|
|
2
|
-
|
|
3
|
-
export const styles = {
|
|
4
|
-
root: {
|
|
5
|
-
position: 'relative',
|
|
6
|
-
},
|
|
7
|
-
|
|
8
|
-
tooltip: {
|
|
9
|
-
zIndex: 9999,
|
|
10
|
-
},
|
|
11
|
-
|
|
12
|
-
clickable: {
|
|
13
|
-
cursor: 'pointer',
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
tweakTooltip: {},
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export type TextWithTooltipStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
import { ComponentStyles } from '../../types';
|
|
2
|
+
|
|
3
|
+
export const styles = {
|
|
4
|
+
root: {
|
|
5
|
+
position: 'relative',
|
|
6
|
+
},
|
|
7
|
+
|
|
8
|
+
tooltip: {
|
|
9
|
+
zIndex: 9999,
|
|
10
|
+
},
|
|
11
|
+
|
|
12
|
+
clickable: {
|
|
13
|
+
cursor: 'pointer',
|
|
14
|
+
},
|
|
15
|
+
|
|
16
|
+
tweakTooltip: {},
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export type TextWithTooltipStyles = ComponentStyles<typeof styles>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './TextWithTooltip';
|
|
2
|
-
export type { TextWithTooltipStyles } from './TextWithTooltip.styles';
|
|
1
|
+
export * from './TextWithTooltip';
|
|
2
|
+
export type { TextWithTooltipStyles } from './TextWithTooltip.styles';
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { ComponentStyles } from '../../types';
|
|
2
|
-
|
|
3
|
-
export const styles = {
|
|
4
|
-
root: {
|
|
5
|
-
display: 'flex',
|
|
6
|
-
},
|
|
7
|
-
|
|
8
|
-
dots: {},
|
|
9
|
-
|
|
10
|
-
default: {},
|
|
11
|
-
|
|
12
|
-
logo: {},
|
|
13
|
-
|
|
14
|
-
currentColor: {
|
|
15
|
-
color: 'currentColor',
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
tweakPreloaderComponent: {},
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export type ThemedPreloaderStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
import { ComponentStyles } from '../../types';
|
|
2
|
+
|
|
3
|
+
export const styles = {
|
|
4
|
+
root: {
|
|
5
|
+
display: 'flex',
|
|
6
|
+
},
|
|
7
|
+
|
|
8
|
+
dots: {},
|
|
9
|
+
|
|
10
|
+
default: {},
|
|
11
|
+
|
|
12
|
+
logo: {},
|
|
13
|
+
|
|
14
|
+
currentColor: {
|
|
15
|
+
color: 'currentColor',
|
|
16
|
+
},
|
|
17
|
+
|
|
18
|
+
tweakPreloaderComponent: {},
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export type ThemedPreloaderStyles = ComponentStyles<typeof styles>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './DefaultPreloader';
|
|
1
|
+
export * from './DefaultPreloader';
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { ComponentStyles } from '../../../../types';
|
|
2
|
-
|
|
3
|
-
export const styles = {
|
|
4
|
-
root: {
|
|
5
|
-
display: 'flex',
|
|
6
|
-
gap: 4,
|
|
7
|
-
|
|
8
|
-
'&::before, &::after': {
|
|
9
|
-
content: '""',
|
|
10
|
-
extend: 'fadedDot',
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
'&::before': {
|
|
14
|
-
animationDelay: '0',
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
'&::after': {
|
|
18
|
-
animationDelay: '360ms',
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
/* ----------- 3 DOTS ---------- */
|
|
23
|
-
|
|
24
|
-
'@keyframes FadedDots': {
|
|
25
|
-
'0%': {
|
|
26
|
-
opacity: 0.2,
|
|
27
|
-
},
|
|
28
|
-
'30%': {
|
|
29
|
-
opacity: 1,
|
|
30
|
-
},
|
|
31
|
-
'100%': {
|
|
32
|
-
opacity: 0.2,
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
// используется в .dot и в before и after элементах root
|
|
37
|
-
fadedDot: {
|
|
38
|
-
display: 'block',
|
|
39
|
-
animationDuration: 750,
|
|
40
|
-
animationIterationCount: 'infinite',
|
|
41
|
-
animationName: '$FadedDots',
|
|
42
|
-
borderRadius: '50%',
|
|
43
|
-
height: 8,
|
|
44
|
-
width: 8,
|
|
45
|
-
backgroundColor: 'currentColor',
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
dot: {
|
|
49
|
-
extend: 'fadedDot',
|
|
50
|
-
animationDelay: '180ms',
|
|
51
|
-
},
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
export type DotsPreloaderStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
import { ComponentStyles } from '../../../../types';
|
|
2
|
+
|
|
3
|
+
export const styles = {
|
|
4
|
+
root: {
|
|
5
|
+
display: 'flex',
|
|
6
|
+
gap: 4,
|
|
7
|
+
|
|
8
|
+
'&::before, &::after': {
|
|
9
|
+
content: '""',
|
|
10
|
+
extend: 'fadedDot',
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
'&::before': {
|
|
14
|
+
animationDelay: '0',
|
|
15
|
+
},
|
|
16
|
+
|
|
17
|
+
'&::after': {
|
|
18
|
+
animationDelay: '360ms',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
/* ----------- 3 DOTS ---------- */
|
|
23
|
+
|
|
24
|
+
'@keyframes FadedDots': {
|
|
25
|
+
'0%': {
|
|
26
|
+
opacity: 0.2,
|
|
27
|
+
},
|
|
28
|
+
'30%': {
|
|
29
|
+
opacity: 1,
|
|
30
|
+
},
|
|
31
|
+
'100%': {
|
|
32
|
+
opacity: 0.2,
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
// используется в .dot и в before и after элементах root
|
|
37
|
+
fadedDot: {
|
|
38
|
+
display: 'block',
|
|
39
|
+
animationDuration: 750,
|
|
40
|
+
animationIterationCount: 'infinite',
|
|
41
|
+
animationName: '$FadedDots',
|
|
42
|
+
borderRadius: '50%',
|
|
43
|
+
height: 8,
|
|
44
|
+
width: 8,
|
|
45
|
+
backgroundColor: 'currentColor',
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
dot: {
|
|
49
|
+
extend: 'fadedDot',
|
|
50
|
+
animationDelay: '180ms',
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export type DotsPreloaderStyles = ComponentStyles<typeof styles>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { DotsPreloader } from './DotsPreloader';
|
|
2
|
-
export type { DotsPreloaderStyles } from './DotsPreloader.styles';
|
|
1
|
+
export { DotsPreloader } from './DotsPreloader';
|
|
2
|
+
export type { DotsPreloaderStyles } from './DotsPreloader.styles';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ComponentStyles } from '../../../../types';
|
|
2
|
-
|
|
3
|
-
export const styles = {
|
|
4
|
-
root: {
|
|
5
|
-
display: 'flex',
|
|
6
|
-
width: '100%',
|
|
7
|
-
height: '100%',
|
|
8
|
-
},
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export type SvgPreloaderStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
import { ComponentStyles } from '../../../../types';
|
|
2
|
+
|
|
3
|
+
export const styles = {
|
|
4
|
+
root: {
|
|
5
|
+
display: 'flex',
|
|
6
|
+
width: '100%',
|
|
7
|
+
height: '100%',
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export type SvgPreloaderStyles = ComponentStyles<typeof styles>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './SvgPreloader';
|
|
2
|
-
export type { SvgPreloaderStyles } from './SvgPreloader.styles';
|
|
1
|
+
export * from './SvgPreloader';
|
|
2
|
+
export type { SvgPreloaderStyles } from './SvgPreloader.styles';
|
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import { colors } from '../../theme';
|
|
2
|
-
import { ComponentStyles } from '../../types';
|
|
3
|
-
|
|
4
|
-
export const styles = {
|
|
5
|
-
root: {
|
|
6
|
-
borderRadius: 8,
|
|
7
|
-
position: 'relative',
|
|
8
|
-
background: colors.CLASSIC_WHITE,
|
|
9
|
-
padding: [20, 40, 20, 20],
|
|
10
|
-
display: 'flex',
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
iconContainer: {
|
|
14
|
-
width: 20,
|
|
15
|
-
height: 20,
|
|
16
|
-
flexShrink: 0,
|
|
17
|
-
marginRight: 16,
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
error: {
|
|
21
|
-
color: colors.RED_WARNING,
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
info: {},
|
|
25
|
-
|
|
26
|
-
warning: {
|
|
27
|
-
color: colors.ORANGE_FOCUS,
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
ok: {
|
|
31
|
-
color: colors.GREEN_FOCUS,
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
'not-ok': {
|
|
35
|
-
color: colors.FONT_LABEL,
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
text: {},
|
|
39
|
-
|
|
40
|
-
title: {},
|
|
41
|
-
|
|
42
|
-
content: {
|
|
43
|
-
'&:not(:first-child):not(:empty)': {
|
|
44
|
-
marginTop: 16,
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
close: {
|
|
49
|
-
position: 'absolute',
|
|
50
|
-
top: 12,
|
|
51
|
-
right: 12,
|
|
52
|
-
width: 32,
|
|
53
|
-
height: 32,
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
tweakCloseButton: {},
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export type ToasterStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
import { colors } from '../../theme';
|
|
2
|
+
import { ComponentStyles } from '../../types';
|
|
3
|
+
|
|
4
|
+
export const styles = {
|
|
5
|
+
root: {
|
|
6
|
+
borderRadius: 8,
|
|
7
|
+
position: 'relative',
|
|
8
|
+
background: colors.CLASSIC_WHITE,
|
|
9
|
+
padding: [20, 40, 20, 20],
|
|
10
|
+
display: 'flex',
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
iconContainer: {
|
|
14
|
+
width: 20,
|
|
15
|
+
height: 20,
|
|
16
|
+
flexShrink: 0,
|
|
17
|
+
marginRight: 16,
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
error: {
|
|
21
|
+
color: colors.RED_WARNING,
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
info: {},
|
|
25
|
+
|
|
26
|
+
warning: {
|
|
27
|
+
color: colors.ORANGE_FOCUS,
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
ok: {
|
|
31
|
+
color: colors.GREEN_FOCUS,
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
'not-ok': {
|
|
35
|
+
color: colors.FONT_LABEL,
|
|
36
|
+
},
|
|
37
|
+
|
|
38
|
+
text: {},
|
|
39
|
+
|
|
40
|
+
title: {},
|
|
41
|
+
|
|
42
|
+
content: {
|
|
43
|
+
'&:not(:first-child):not(:empty)': {
|
|
44
|
+
marginTop: 16,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
close: {
|
|
49
|
+
position: 'absolute',
|
|
50
|
+
top: 12,
|
|
51
|
+
right: 12,
|
|
52
|
+
width: 32,
|
|
53
|
+
height: 32,
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
tweakCloseButton: {},
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export type ToasterStyles = ComponentStyles<typeof styles>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type ITooltipType = 'info' | 'warning';
|
|
1
|
+
export type ITooltipType = 'info' | 'warning';
|
package/src/components/index.ts
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
export * from './AccountInfo';
|
|
2
|
-
export * from './AddButton';
|
|
3
|
-
export * from './Button';
|
|
4
|
-
export * from './Checkbox';
|
|
5
|
-
export * from './CloseButton';
|
|
6
|
-
export * from './Colors';
|
|
7
|
-
export * from './CssBaseline';
|
|
8
|
-
export * from './DateInput';
|
|
9
|
-
export * from './DatePicker';
|
|
10
|
-
export * from './Description';
|
|
11
|
-
export * from './FiltersPane';
|
|
12
|
-
export * from './Flag';
|
|
13
|
-
export * from './FlexibleTable';
|
|
14
|
-
export * from './Icon';
|
|
15
|
-
export * from './IncrementInput';
|
|
16
|
-
export * from './Input';
|
|
17
|
-
export * from './List';
|
|
18
|
-
export * from './Modal';
|
|
19
|
-
export * from './MoreMenu';
|
|
20
|
-
export * from './MultiSelect';
|
|
21
|
-
export * from './MultiSelectList';
|
|
22
|
-
export * from './Notification';
|
|
23
|
-
export * from './NumberInput';
|
|
24
|
-
export * from './SearchInput';
|
|
25
|
-
export * from './SmartInput';
|
|
26
|
-
export * from './PhoneInput';
|
|
27
|
-
export * from './RadioButton';
|
|
28
|
-
export * from './Select';
|
|
29
|
-
export * from './Switch';
|
|
30
|
-
export * from './TextArea';
|
|
31
|
-
export * from './TextWithInfo';
|
|
32
|
-
export * from './TextWithTooltip';
|
|
33
|
-
export * from './ThemedPreloader';
|
|
34
|
-
export * from './Toaster';
|
|
35
|
-
export * from './Tooltip';
|
|
36
|
-
export * from './ScrollIntoViewIfNeeded';
|
|
1
|
+
export * from './AccountInfo';
|
|
2
|
+
export * from './AddButton';
|
|
3
|
+
export * from './Button';
|
|
4
|
+
export * from './Checkbox';
|
|
5
|
+
export * from './CloseButton';
|
|
6
|
+
export * from './Colors';
|
|
7
|
+
export * from './CssBaseline';
|
|
8
|
+
export * from './DateInput';
|
|
9
|
+
export * from './DatePicker';
|
|
10
|
+
export * from './Description';
|
|
11
|
+
export * from './FiltersPane';
|
|
12
|
+
export * from './Flag';
|
|
13
|
+
export * from './FlexibleTable';
|
|
14
|
+
export * from './Icon';
|
|
15
|
+
export * from './IncrementInput';
|
|
16
|
+
export * from './Input';
|
|
17
|
+
export * from './List';
|
|
18
|
+
export * from './Modal';
|
|
19
|
+
export * from './MoreMenu';
|
|
20
|
+
export * from './MultiSelect';
|
|
21
|
+
export * from './MultiSelectList';
|
|
22
|
+
export * from './Notification';
|
|
23
|
+
export * from './NumberInput';
|
|
24
|
+
export * from './SearchInput';
|
|
25
|
+
export * from './SmartInput';
|
|
26
|
+
export * from './PhoneInput';
|
|
27
|
+
export * from './RadioButton';
|
|
28
|
+
export * from './Select';
|
|
29
|
+
export * from './Switch';
|
|
30
|
+
export * from './TextArea';
|
|
31
|
+
export * from './TextWithInfo';
|
|
32
|
+
export * from './TextWithTooltip';
|
|
33
|
+
export * from './ThemedPreloader';
|
|
34
|
+
export * from './Toaster';
|
|
35
|
+
export * from './Tooltip';
|
|
36
|
+
export * from './ScrollIntoViewIfNeeded';
|