w-design-system 0.0.16 → 0.0.18
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/dist/bundle.js +1 -2
- package/dist/components/Banner/index.js.map +1 -1
- package/dist/components/Banner/styles.js +1 -0
- package/dist/components/Banner/styles.js.map +1 -1
- package/dist/components/Paragraph/stories.js +6 -6
- package/dist/components/Paragraph/stories.js.map +1 -1
- package/dist/components/Tabs/index.js.map +1 -1
- package/dist/components/Title/stories.js +3 -3
- package/dist/components/Title/stories.js.map +1 -1
- package/dist/components/index.js +11 -1
- package/dist/components/index.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/reportWebVitals.js +10 -10
- package/dist/reportWebVitals.js.map +1 -1
- package/dist/stories/Page.stories.js +1 -1
- package/dist/stories/Page.stories.js.map +1 -1
- package/package.json +5 -4
- package/dist/App.d.ts +0 -5
- package/dist/App.d.ts.map +0 -1
- package/dist/App.js +0 -9
- package/dist/App.js.map +0 -1
- package/dist/App.test.d.ts +0 -2
- package/dist/App.test.d.ts.map +0 -1
- package/dist/App.test.js +0 -9
- package/dist/App.test.js.map +0 -1
- package/dist/assets/icons/index.ts +0 -6
- package/dist/assets/icons/svg.d.ts +0 -7
- package/dist/bundle.js.map +0 -1
- package/dist/components/Button /index.d.ts +0 -5
- package/dist/components/Button /index.d.ts.map +0 -1
- package/dist/components/Button /index.js +0 -22
- package/dist/components/Button /index.js.map +0 -1
- package/dist/components/Button /stories.d.ts +0 -14
- package/dist/components/Button /stories.d.ts.map +0 -1
- package/dist/components/Button /stories.js +0 -88
- package/dist/components/Button /stories.js.map +0 -1
- package/dist/components/Button /styles.d.ts +0 -4
- package/dist/components/Button /styles.d.ts.map +0 -1
- package/dist/components/Button /styles.js +0 -194
- package/dist/components/Button /styles.js.map +0 -1
- package/dist/components/Button /test.d.ts +0 -2
- package/dist/components/Button /test.d.ts.map +0 -1
- package/dist/components/Button /test.js +0 -33
- package/dist/components/Button /test.js.map +0 -1
- package/dist/types/App.d.ts +0 -4
- package/dist/types/App.test.d.ts +0 -1
- package/dist/types/assets/icon/index.d.ts +0 -6
- package/dist/types/components/Banner/index.d.ts +0 -4
- package/dist/types/components/Banner/stories.d.ts +0 -6
- package/dist/types/components/Banner/styles.d.ts +0 -3
- package/dist/types/components/Button /index.d.ts +0 -4
- package/dist/types/components/Button /stories.d.ts +0 -13
- package/dist/types/components/Button /styles.d.ts +0 -3
- package/dist/types/components/Button /test.d.ts +0 -1
- package/dist/types/components/ButtonRadiusIcon/index.d.ts +0 -4
- package/dist/types/components/ButtonRadiusIcon/stories.d.ts +0 -7
- package/dist/types/components/ButtonRadiusIcon/styles.d.ts +0 -3
- package/dist/types/components/ButtonRound/index.d.ts +0 -4
- package/dist/types/components/ButtonRound/stories.d.ts +0 -7
- package/dist/types/components/ButtonRound/styles.d.ts +0 -3
- package/dist/types/components/IconWrapper/index.d.ts +0 -11
- package/dist/types/components/Modal/index.d.ts +0 -4
- package/dist/types/components/Modal/stories.d.ts +0 -6
- package/dist/types/components/Modal/styles.d.ts +0 -3
- package/dist/types/components/Paragraph/index.d.ts +0 -10
- package/dist/types/components/Paragraph/stories.d.ts +0 -13
- package/dist/types/components/Tabs/index.d.ts +0 -4
- package/dist/types/components/Tabs/stories.d.ts +0 -6
- package/dist/types/components/Tabs/styles.d.ts +0 -5
- package/dist/types/components/Themes/index.d.ts +0 -78
- package/dist/types/components/Title/index.d.ts +0 -10
- package/dist/types/components/Title/stories.d.ts +0 -8
- package/dist/types/components/Types/index.d.ts +0 -40
- package/dist/types/components/index.d.ts +0 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/reportWebVitals.d.ts +0 -3
- package/dist/types/setupTests.d.ts +0 -1
- package/dist/types/src/globalStyles.d.ts +0 -3
- package/dist/types/stories/Button.d.ts +0 -28
- package/dist/types/stories/Button.stories.d.ts +0 -24
- package/dist/types/stories/Header.d.ts +0 -13
- package/dist/types/stories/Header.stories.d.ts +0 -19
- package/dist/types/stories/Page.d.ts +0 -3
- package/dist/types/stories/Page.stories.d.ts +0 -13
- package/dist/types/utils/constanst.d.ts +0 -2
- package/src/assets/icon/alert.svg +0 -3
- package/src/assets/icon/close.svg +0 -10
- package/src/assets/icon/comment.svg +0 -10
- package/src/assets/icon/doc-check.svg +0 -10
- package/src/assets/icon/image.svg +0 -3
- package/src/assets/icon/index.ts +0 -6
- package/src/assets/icon/svg.d.ts +0 -7
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button /index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAEtC,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAyBjC,CAAA;AAED,eAAe,MAAM,CAAA"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import React from 'react';
|
|
13
|
-
import IconWrapper from '../IconWrapper';
|
|
14
|
-
import { ButtonStyled } from './styles';
|
|
15
|
-
const Button = (_a) => {
|
|
16
|
-
var { variant = 'primary', children, disabled = false, icon, radius, outline, halfLeft, halfRight, fullWidth } = _a, props = __rest(_a, ["variant", "children", "disabled", "icon", "radius", "outline", "halfLeft", "halfRight", "fullWidth"]);
|
|
17
|
-
return (React.createElement(ButtonStyled, Object.assign({ variant: variant, disabled: disabled, radius: radius, outline: outline, halfLeft: halfLeft, halfRight: halfRight, fullWidth: fullWidth }, props),
|
|
18
|
-
icon && React.createElement(IconWrapper, { src: icon, color: 'white', className: 'buttonRadiusWrapperIcon' }),
|
|
19
|
-
children));
|
|
20
|
-
};
|
|
21
|
-
export default Button;
|
|
22
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Button /index.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,WAAW,MAAM,gBAAgB,CAAA;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAGvC,MAAM,MAAM,GAA0B,CAAC,EAWtC,EAAE,EAAE;QAXkC,EACrC,OAAO,GAAG,SAAS,EACnB,QAAQ,EACR,QAAQ,GAAG,KAAK,EAChB,IAAI,EACJ,MAAM,EACN,OAAO,EACP,QAAQ,EACR,SAAS,EACT,SAAS,OAEV,EADI,KAAK,cAV6B,sGAWtC,CADS;IACJ,OAAA,CACJ,oBAAC,YAAY,kBACX,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,SAAS,IAChB,KAAK;QAER,IAAI,IAAI,oBAAC,WAAW,IAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,yBAAyB,GAAI;QACxF,QAAQ,CACI,CAChB,CAAA;CAAA,CAAA;AAED,eAAe,MAAM,CAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import Button from './index';
|
|
3
|
-
declare const meta: Meta<typeof Button>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof Button>;
|
|
6
|
-
export declare const Playground: Story;
|
|
7
|
-
export declare const ButtonDefault: Story;
|
|
8
|
-
export declare const ButtonOutilne: Story;
|
|
9
|
-
export declare const ButtonRadius: Story;
|
|
10
|
-
export declare const ButtonDisabled: Story;
|
|
11
|
-
export declare const ButtonIcon: Story;
|
|
12
|
-
export declare const ButtonIconHalfRightOutiline: Story;
|
|
13
|
-
export declare const ButtonIconHalfLeft: Story;
|
|
14
|
-
//# sourceMappingURL=stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stories.d.ts","sourceRoot":"","sources":["../../../src/components/Button /stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAEjD,OAAO,MAAM,MAAM,SAAS,CAAA;AAG5B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAsBC,CAAA;AAE/B,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAA;AAEpC,eAAO,MAAM,UAAU,EAAE,KAMxB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAM3B,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAO3B,CAAA;AACD,eAAO,MAAM,YAAY,EAAE,KAO1B,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAM5B,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAMxB,CAAA;AAED,eAAO,MAAM,2BAA2B,EAAE,KAQzC,CAAA;AACD,eAAO,MAAM,kBAAkB,EAAE,KAOhC,CAAA"}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import exampleIcon from '../../assets/icon/image.svg';
|
|
2
|
-
import Button from './index';
|
|
3
|
-
import { VARIANTS_TYPES } from '../../utils/constanst';
|
|
4
|
-
const meta = {
|
|
5
|
-
title: 'Components/Button',
|
|
6
|
-
component: Button,
|
|
7
|
-
tags: ['autodocs'],
|
|
8
|
-
argTypes: {
|
|
9
|
-
variant: {
|
|
10
|
-
control: {
|
|
11
|
-
type: 'select',
|
|
12
|
-
options: VARIANTS_TYPES,
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
disabled: {
|
|
16
|
-
control: 'boolean',
|
|
17
|
-
},
|
|
18
|
-
icon: {
|
|
19
|
-
control: 'object',
|
|
20
|
-
options: [exampleIcon],
|
|
21
|
-
description: exampleIcon,
|
|
22
|
-
},
|
|
23
|
-
onClick: { action: 'clicked' },
|
|
24
|
-
},
|
|
25
|
-
};
|
|
26
|
-
export default meta;
|
|
27
|
-
export const Playground = {
|
|
28
|
-
args: {
|
|
29
|
-
variant: 'primary',
|
|
30
|
-
children: 'ButtonPlayground',
|
|
31
|
-
disabled: false,
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
export const ButtonDefault = {
|
|
35
|
-
args: {
|
|
36
|
-
variant: 'secondary',
|
|
37
|
-
children: 'ButtonPlayground',
|
|
38
|
-
disabled: false,
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
export const ButtonOutilne = {
|
|
42
|
-
args: {
|
|
43
|
-
variant: 'secondary',
|
|
44
|
-
children: 'ButtonPlayground',
|
|
45
|
-
disabled: false,
|
|
46
|
-
outline: true,
|
|
47
|
-
},
|
|
48
|
-
};
|
|
49
|
-
export const ButtonRadius = {
|
|
50
|
-
args: {
|
|
51
|
-
variant: 'success',
|
|
52
|
-
children: 'ButtonPlayground',
|
|
53
|
-
disabled: false,
|
|
54
|
-
radius: true,
|
|
55
|
-
},
|
|
56
|
-
};
|
|
57
|
-
export const ButtonDisabled = {
|
|
58
|
-
args: {
|
|
59
|
-
variant: 'danger',
|
|
60
|
-
children: 'ButtonPlayground',
|
|
61
|
-
disabled: true,
|
|
62
|
-
},
|
|
63
|
-
};
|
|
64
|
-
export const ButtonIcon = {
|
|
65
|
-
args: {
|
|
66
|
-
variant: 'primary',
|
|
67
|
-
children: 'ButtonPlayground',
|
|
68
|
-
icon: exampleIcon,
|
|
69
|
-
},
|
|
70
|
-
};
|
|
71
|
-
export const ButtonIconHalfRightOutiline = {
|
|
72
|
-
args: {
|
|
73
|
-
variant: 'success',
|
|
74
|
-
children: 'ButtonPlayground',
|
|
75
|
-
icon: exampleIcon,
|
|
76
|
-
halfRight: true,
|
|
77
|
-
outline: true,
|
|
78
|
-
},
|
|
79
|
-
};
|
|
80
|
-
export const ButtonIconHalfLeft = {
|
|
81
|
-
args: {
|
|
82
|
-
variant: 'success',
|
|
83
|
-
children: 'ButtonPlayground',
|
|
84
|
-
icon: exampleIcon,
|
|
85
|
-
halfLeft: true,
|
|
86
|
-
},
|
|
87
|
-
};
|
|
88
|
-
//# sourceMappingURL=stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stories.js","sourceRoot":"","sources":["../../../src/components/Button /stories.tsx"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,6BAA6B,CAAA;AACrD,OAAO,MAAM,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtD,MAAM,IAAI,GAAwB;IAChC,KAAK,EAAE,mBAAmB;IAC1B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,cAAc;aACxB;SACF;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,SAAS;SACnB;QACD,IAAI,EAAE;YACJ,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,CAAC,WAAW,CAAC;YACtB,WAAW,EAAE,WAAW;SACzB;QAED,OAAO,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE;KAC/B;CAC4B,CAAA;AAE/B,eAAe,IAAI,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E,kBAAkB;QAC5B,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,IAAI;KACf;CACF,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ButtonTypes } from '../Types';
|
|
3
|
-
export declare const ButtonStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ButtonTypes>> & string;
|
|
4
|
-
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Button /styles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAsKtC,eAAO,MAAM,YAAY,4PA6BxB,CAAA"}
|
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
import styled, { css } from 'styled-components';
|
|
2
|
-
import { theme } from '../Themes';
|
|
3
|
-
const { colors } = theme;
|
|
4
|
-
const buttonRadiusWrapperIconStyles = (color) => css `
|
|
5
|
-
.buttonRadiusWrapperIcon {
|
|
6
|
-
margin-top: 4px;
|
|
7
|
-
svg {
|
|
8
|
-
fill: ${color};
|
|
9
|
-
path {
|
|
10
|
-
fill: ${color};
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
`;
|
|
15
|
-
const colorScheme = {
|
|
16
|
-
primary: css `
|
|
17
|
-
background: ${colors.cyan50};
|
|
18
|
-
&:hover {
|
|
19
|
-
background-color: ${colors.cyan40};
|
|
20
|
-
}
|
|
21
|
-
&:active {
|
|
22
|
-
background-color: ${colors.cyan50};
|
|
23
|
-
}
|
|
24
|
-
`,
|
|
25
|
-
secondary: css `
|
|
26
|
-
background: ${colors.cyan30};
|
|
27
|
-
&:hover {
|
|
28
|
-
background-color: ${colors.cyan40};
|
|
29
|
-
}
|
|
30
|
-
&:active {
|
|
31
|
-
background-color: ${colors.cyan30};
|
|
32
|
-
}
|
|
33
|
-
`,
|
|
34
|
-
danger: css `
|
|
35
|
-
background: ${colors.red40};
|
|
36
|
-
&:hover {
|
|
37
|
-
background-color: ${colors.red30};
|
|
38
|
-
}
|
|
39
|
-
&:active {
|
|
40
|
-
background-color: ${colors.red40};
|
|
41
|
-
}
|
|
42
|
-
`,
|
|
43
|
-
warning: css `
|
|
44
|
-
background: ${colors.honey10};
|
|
45
|
-
color: ${colors.honey30};
|
|
46
|
-
&:hover {
|
|
47
|
-
background-color: ${colors.honey20};
|
|
48
|
-
}
|
|
49
|
-
&:active {
|
|
50
|
-
background-color: ${colors.honey10};
|
|
51
|
-
}
|
|
52
|
-
${buttonRadiusWrapperIconStyles(colors.honey30)};
|
|
53
|
-
`,
|
|
54
|
-
success: css `
|
|
55
|
-
background: ${colors.mint40};
|
|
56
|
-
&:hover {
|
|
57
|
-
background-color: ${colors.mint30};
|
|
58
|
-
}
|
|
59
|
-
&:active {
|
|
60
|
-
background-color: ${colors.mint40};
|
|
61
|
-
}
|
|
62
|
-
`,
|
|
63
|
-
gray: css `
|
|
64
|
-
background: ${colors.shade10};
|
|
65
|
-
color: ${colors.shade40};
|
|
66
|
-
&:hover {
|
|
67
|
-
background-color: ${colors.shade20};
|
|
68
|
-
}
|
|
69
|
-
&:active {
|
|
70
|
-
background-color: ${colors.shade10};
|
|
71
|
-
}
|
|
72
|
-
${buttonRadiusWrapperIconStyles(colors.shade40)};
|
|
73
|
-
`,
|
|
74
|
-
yellow: css `
|
|
75
|
-
background: ${colors.yellow10};
|
|
76
|
-
color: ${colors.yellow30};
|
|
77
|
-
&:hover {
|
|
78
|
-
background-color: ${colors.yellow20};
|
|
79
|
-
}
|
|
80
|
-
&:active {
|
|
81
|
-
background-color: ${colors.yellow10};
|
|
82
|
-
}
|
|
83
|
-
${buttonRadiusWrapperIconStyles(colors.yellow30)};
|
|
84
|
-
`,
|
|
85
|
-
};
|
|
86
|
-
const colorSchemeOutilne = {
|
|
87
|
-
primary: css `
|
|
88
|
-
color: ${colors.cyan50};
|
|
89
|
-
border: 2px solid ${colors.cyan50};
|
|
90
|
-
&:hover {
|
|
91
|
-
background-color: ${colors.cyan10};
|
|
92
|
-
}
|
|
93
|
-
&:active {
|
|
94
|
-
background-color: ${colors.cyan10};
|
|
95
|
-
}
|
|
96
|
-
${buttonRadiusWrapperIconStyles(colors.cyan50)};
|
|
97
|
-
`,
|
|
98
|
-
secondary: css `
|
|
99
|
-
color: ${colors.cyan40};
|
|
100
|
-
border: 2px solid ${colors.cyan40};
|
|
101
|
-
&:hover {
|
|
102
|
-
background-color: ${colors.cyan10};
|
|
103
|
-
}
|
|
104
|
-
&:active {
|
|
105
|
-
background-color: ${colors.cyan10};
|
|
106
|
-
}
|
|
107
|
-
${buttonRadiusWrapperIconStyles(colors.cyan40)};
|
|
108
|
-
`,
|
|
109
|
-
danger: css `
|
|
110
|
-
color: ${colors.red40};
|
|
111
|
-
border: 2px solid ${colors.red40};
|
|
112
|
-
&:hover {
|
|
113
|
-
background-color: ${colors.red10};
|
|
114
|
-
}
|
|
115
|
-
&:active {
|
|
116
|
-
background-color: ${colors.red10};
|
|
117
|
-
}
|
|
118
|
-
${buttonRadiusWrapperIconStyles(colors.red40)};
|
|
119
|
-
`,
|
|
120
|
-
warning: css `
|
|
121
|
-
color: ${colors.honey40};
|
|
122
|
-
border: 2px solid ${colors.honey40};
|
|
123
|
-
&:hover {
|
|
124
|
-
background-color: ${colors.honey10};
|
|
125
|
-
}
|
|
126
|
-
&:active {
|
|
127
|
-
background-color: ${colors.honey10};
|
|
128
|
-
}
|
|
129
|
-
${buttonRadiusWrapperIconStyles(colors.honey40)};
|
|
130
|
-
`,
|
|
131
|
-
success: css `
|
|
132
|
-
color: ${colors.mint40};
|
|
133
|
-
border: 2px solid ${colors.mint40};
|
|
134
|
-
&:hover {
|
|
135
|
-
background-color: ${colors.mint10};
|
|
136
|
-
}
|
|
137
|
-
&:active {
|
|
138
|
-
background-color: ${colors.mint10};
|
|
139
|
-
}
|
|
140
|
-
${buttonRadiusWrapperIconStyles(colors.mint40)};
|
|
141
|
-
`,
|
|
142
|
-
gray: css `
|
|
143
|
-
color: ${colors.shade40};
|
|
144
|
-
border: 2px solid ${colors.shade40};
|
|
145
|
-
&:hover {
|
|
146
|
-
background-color: ${colors.shade20};
|
|
147
|
-
}
|
|
148
|
-
&:active {
|
|
149
|
-
background-color: ${colors.shade10};
|
|
150
|
-
}
|
|
151
|
-
${buttonRadiusWrapperIconStyles(colors.shade40)};
|
|
152
|
-
`,
|
|
153
|
-
yellow: css `
|
|
154
|
-
color: ${colors.yellow30};
|
|
155
|
-
border: 2px solid ${colors.yellow30};
|
|
156
|
-
&:hover {
|
|
157
|
-
background-color: ${colors.yellow10};
|
|
158
|
-
}
|
|
159
|
-
&:active {
|
|
160
|
-
background-color: ${colors.yellow10};
|
|
161
|
-
}
|
|
162
|
-
${buttonRadiusWrapperIconStyles(colors.yellow30)};
|
|
163
|
-
`,
|
|
164
|
-
};
|
|
165
|
-
export const ButtonStyled = styled.button `
|
|
166
|
-
display: inline-flex;
|
|
167
|
-
align-items: center;
|
|
168
|
-
justify-content: center;
|
|
169
|
-
box-sizing: border-box;
|
|
170
|
-
height: 48px;
|
|
171
|
-
width: ${({ fullWidth }) => (fullWidth ? '100%' : 'auto')};
|
|
172
|
-
padding: 12px 24px;
|
|
173
|
-
font-size: 16px;
|
|
174
|
-
font-weight: 600;
|
|
175
|
-
line-height: 140%;
|
|
176
|
-
border: none;
|
|
177
|
-
border-radius: ${({ radius }) => (radius ? '24px' : '5px')};
|
|
178
|
-
font-family: 'Nunito Sans', sans-serif;
|
|
179
|
-
transition:
|
|
180
|
-
background-color 0.3s,
|
|
181
|
-
opacity 0.3s;
|
|
182
|
-
color: white;
|
|
183
|
-
gap: 12px;
|
|
184
|
-
cursor: ${({ disabled }) => (disabled ? 'not-allowed' : 'pointer')};
|
|
185
|
-
opacity: ${({ disabled }) => (disabled ? 0.5 : 1)};
|
|
186
|
-
${({ variant = 'primary', outline }) => (!outline ? colorScheme[variant] : colorSchemeOutilne[variant])};
|
|
187
|
-
background: ${({ outline }) => outline && 'white'};
|
|
188
|
-
border-radius: ${({ halfLeft, halfRight, radius }) => !halfLeft && !halfRight ? (radius ? '24px' : '5px') : halfLeft ? '24px 0 0 24px' : '0 24px 24px 0'};
|
|
189
|
-
|
|
190
|
-
.buttonRadiusWrapperIcon {
|
|
191
|
-
margin-top: 4px;
|
|
192
|
-
}
|
|
193
|
-
`;
|
|
194
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Button /styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAA;AAGjC,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAA;AACxB,MAAM,6BAA6B,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,GAAG,CAAA;;;;cAI9C,KAAK;;gBAEH,KAAK;;;;CAIpB,CAAA;AACD,MAAM,WAAW,GAAG;IAClB,OAAO,EAAE,GAAG,CAAA;kBACI,MAAM,CAAC,MAAM;;0BAEL,MAAM,CAAC,MAAM;;;0BAGb,MAAM,CAAC,MAAM;;GAEpC;IACD,SAAS,EAAE,GAAG,CAAA;kBACE,MAAM,CAAC,MAAM;;0BAEL,MAAM,CAAC,MAAM;;;0BAGb,MAAM,CAAC,MAAM;;GAEpC;IACD,MAAM,EAAE,GAAG,CAAA;kBACK,MAAM,CAAC,KAAK;;0BAEJ,MAAM,CAAC,KAAK;;;0BAGZ,MAAM,CAAC,KAAK;;GAEnC;IACD,OAAO,EAAE,GAAG,CAAA;kBACI,MAAM,CAAC,OAAO;aACnB,MAAM,CAAC,OAAO;;0BAED,MAAM,CAAC,O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/C,CAAC,EAAE,OAAO,GAAG,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;gBACzF,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,IAAI,OAAO;mBAChC,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CACnD,CAAC,QAAQ,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,eAAe;;;;;CAKrG,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../../src/components/Button /test.tsx"],"names":[],"mappings":"AAEA,OAAO,2BAA2B,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { render, screen, fireEvent } from '@testing-library/react';
|
|
3
|
-
import '@testing-library/jest-dom';
|
|
4
|
-
import Button from "./index";
|
|
5
|
-
describe('Button Component', () => {
|
|
6
|
-
test('renders button with primary variant', () => {
|
|
7
|
-
render(React.createElement(Button, { variant: "primary" }, "Primary Button"));
|
|
8
|
-
const button = screen.getByText('Primary Button');
|
|
9
|
-
expect(button).toBeInTheDocument();
|
|
10
|
-
expect(button).toHaveStyle(`background-color: #1A3D7F`);
|
|
11
|
-
});
|
|
12
|
-
test('renders button with secondary variant', () => {
|
|
13
|
-
render(React.createElement(Button, { variant: "secondary" }, "Secondary Button"));
|
|
14
|
-
const button = screen.getByText('Secondary Button');
|
|
15
|
-
expect(button).toBeInTheDocument();
|
|
16
|
-
expect(button).toHaveStyle(`background-color: #217EFD`);
|
|
17
|
-
});
|
|
18
|
-
test('button responds to click event', () => {
|
|
19
|
-
const handleClick = jest.fn();
|
|
20
|
-
render(React.createElement(Button, { variant: "primary", onClick: handleClick }, "Clickable Button"));
|
|
21
|
-
const button = screen.getByText('Clickable Button');
|
|
22
|
-
fireEvent.click(button);
|
|
23
|
-
expect(handleClick).toHaveBeenCalledTimes(1);
|
|
24
|
-
});
|
|
25
|
-
test('button is disabled when the disabled prop is true', () => {
|
|
26
|
-
render(React.createElement(Button, { variant: "primary", disabled: true }, "Disabled Button"));
|
|
27
|
-
const button = screen.getByText('Disabled Button');
|
|
28
|
-
expect(button).toBeInTheDocument();
|
|
29
|
-
expect(button).toHaveStyle(`opacity: 0.5`);
|
|
30
|
-
expect(button).toHaveStyle(`cursor: not-allowed`);
|
|
31
|
-
});
|
|
32
|
-
});
|
|
33
|
-
//# sourceMappingURL=test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../src/components/Button /test.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,2BAA2B,CAAC;AACnC,OAAO,MAAM,MAAM,SAAS,CAAC;AAE7B,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAC9B,IAAI,CAAC,qCAAqC,EAAE,GAAG,EAAE;QAC7C,MAAM,CAAC,oBAAC,MAAM,IAAC,OAAO,EAAC,SAAS,qBAAwB,CAAC,CAAC;QAC1D,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;QAClD,MAAM,CAAC,MAAM,CAAC,CAAC,iBAAiB,EAAE,CAAC;QACnC,MAAM,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,2BAA2B,CAAC,CAAC;IAC5D,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,uCA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1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { BannerTypes } from '../Types';
|
|
3
|
-
export declare const BannerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, BannerTypes>> & string;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import Button from './index';
|
|
3
|
-
declare const meta: Meta<typeof Button>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof Button>;
|
|
6
|
-
export declare const Playground: Story;
|
|
7
|
-
export declare const ButtonDefault: Story;
|
|
8
|
-
export declare const ButtonOutilne: Story;
|
|
9
|
-
export declare const ButtonRadius: Story;
|
|
10
|
-
export declare const ButtonDisabled: Story;
|
|
11
|
-
export declare const ButtonIcon: Story;
|
|
12
|
-
export declare const ButtonIconHalfRightOutiline: Story;
|
|
13
|
-
export declare const ButtonIconHalfLeft: Story;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ButtonTypes } from '../Types';
|
|
3
|
-
export declare const ButtonStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ButtonTypes>> & string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@testing-library/jest-dom';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import ButtonRadiusIcon from './index';
|
|
3
|
-
declare const meta: Meta<typeof ButtonRadiusIcon>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof ButtonRadiusIcon>;
|
|
6
|
-
export declare const Playground: Story;
|
|
7
|
-
export declare const PlaygroundTitlePrimary: Story;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ButtonRadiusIconTypes } from '../Types';
|
|
3
|
-
export declare const ButtonStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ButtonRadiusIconTypes>> & string;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import ButtonRound from './index';
|
|
3
|
-
declare const meta: Meta<typeof ButtonRound>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof ButtonRound>;
|
|
6
|
-
export declare const Playground: Story;
|
|
7
|
-
export declare const ButtonBadge: Story;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ButtonRoundTypes } from '../Types';
|
|
3
|
-
export declare const ButtonStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ButtonRoundTypes>> & string;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface IconWrapperProps {
|
|
3
|
-
src: string;
|
|
4
|
-
color?: string;
|
|
5
|
-
width?: string;
|
|
6
|
-
height?: string;
|
|
7
|
-
className?: string;
|
|
8
|
-
onClick?: () => void;
|
|
9
|
-
}
|
|
10
|
-
declare const IconWrapper: React.FC<IconWrapperProps>;
|
|
11
|
-
export default IconWrapper;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const Overlay: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
-
export declare const ModalContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface ParagraphProps {
|
|
3
|
-
size?: 'x-small' | 'small' | 'medium' | 'large';
|
|
4
|
-
weight?: 400 | 600 | 700 | 800;
|
|
5
|
-
as?: 'span' | 'div' | 'label' | 'p';
|
|
6
|
-
color?: string;
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
}
|
|
9
|
-
declare const Paragraph: React.FC<ParagraphProps>;
|
|
10
|
-
export default Paragraph;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import Paragraph from "./index";
|
|
3
|
-
declare const meta: Meta<typeof Paragraph>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof meta>;
|
|
6
|
-
export declare const XSmall: Story;
|
|
7
|
-
export declare const Small: Story;
|
|
8
|
-
export declare const Medium: Story;
|
|
9
|
-
export declare const Large: Story;
|
|
10
|
-
export declare const CustomElement: Story;
|
|
11
|
-
export declare const AllSizes: Story;
|
|
12
|
-
export declare const AllWeights: Story;
|
|
13
|
-
export declare const AllElements: Story;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const TabsContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
-
export declare const TabStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
4
|
-
active: boolean;
|
|
5
|
-
}>> & string;
|