w-design-system 0.0.1 → 0.0.2
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/App.d.ts.map +1 -1
- package/dist/App.js +1 -1
- package/dist/App.js.map +1 -1
- package/dist/components/Banner/index.d.ts +1 -2
- package/dist/components/Banner/index.d.ts.map +1 -1
- package/dist/components/Banner/index.js +3 -4
- package/dist/components/Banner/index.js.map +1 -1
- package/dist/components/Banner/stories.d.ts +1 -1
- package/dist/components/Banner/stories.d.ts.map +1 -1
- package/dist/components/Banner/stories.js +1 -1
- package/dist/components/Banner/stories.js.map +1 -1
- package/dist/components/Button/index.d.ts +4 -0
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Button/index.js +21 -0
- package/dist/components/Button/index.js.map +1 -0
- package/dist/components/Button/stories.d.ts +14 -0
- package/dist/components/Button/stories.d.ts.map +1 -0
- package/dist/components/Button/stories.js +88 -0
- package/dist/components/Button/stories.js.map +1 -0
- package/dist/components/Button/styles.d.ts +4 -0
- package/dist/components/Button/styles.d.ts.map +1 -0
- package/dist/components/Button/styles.js +194 -0
- package/dist/components/Button/styles.js.map +1 -0
- package/dist/components/Button/test.d.ts +2 -0
- package/dist/components/Button/test.d.ts.map +1 -0
- package/{src/components/Button /test.tsx → dist/components/Button/test.js} +6 -9
- package/dist/components/Button/test.js.map +1 -0
- package/dist/components/ButtonRadiusIcon/index.d.ts +1 -2
- package/dist/components/ButtonRadiusIcon/index.d.ts.map +1 -1
- package/dist/components/ButtonRadiusIcon/index.js +2 -3
- package/dist/components/ButtonRadiusIcon/index.js.map +1 -1
- package/dist/components/ButtonRadiusIcon/stories.d.ts +1 -1
- package/dist/components/ButtonRadiusIcon/stories.d.ts.map +1 -1
- package/dist/components/ButtonRadiusIcon/stories.js +1 -1
- package/dist/components/ButtonRadiusIcon/stories.js.map +1 -1
- package/dist/components/ButtonRound/index.d.ts +1 -2
- package/dist/components/ButtonRound/index.d.ts.map +1 -1
- package/dist/components/ButtonRound/index.js +2 -3
- package/dist/components/ButtonRound/index.js.map +1 -1
- package/dist/components/ButtonRound/stories.d.ts +1 -1
- package/dist/components/ButtonRound/stories.d.ts.map +1 -1
- package/dist/components/ButtonRound/stories.js +1 -1
- package/dist/components/ButtonRound/stories.js.map +1 -1
- package/dist/components/IconWrapper/index.d.ts +2 -2
- package/dist/components/IconWrapper/index.d.ts.map +1 -1
- package/dist/components/IconWrapper/index.js +1 -2
- package/dist/components/IconWrapper/index.js.map +1 -1
- package/dist/components/Modal/index.d.ts +1 -2
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/Modal/index.js +3 -4
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/Modal/stories.d.ts +1 -1
- package/dist/components/Modal/stories.d.ts.map +1 -1
- package/dist/components/Modal/stories.js +3 -3
- package/dist/components/Modal/stories.js.map +1 -1
- package/dist/components/Paragraph/index.d.ts +2 -2
- package/dist/components/Paragraph/index.d.ts.map +1 -1
- package/dist/components/Paragraph/index.js +1 -2
- package/dist/components/Paragraph/index.js.map +1 -1
- package/dist/components/Paragraph/stories.d.ts +1 -1
- package/dist/components/Paragraph/stories.d.ts.map +1 -1
- package/dist/components/Paragraph/stories.js +1 -1
- package/dist/components/Paragraph/stories.js.map +1 -1
- package/dist/components/Tabs/index.d.ts +1 -2
- package/dist/components/Tabs/index.d.ts.map +1 -1
- package/dist/components/Tabs/index.js +1 -2
- package/dist/components/Tabs/index.js.map +1 -1
- package/dist/components/Tabs/stories.d.ts +1 -1
- package/dist/components/Tabs/stories.d.ts.map +1 -1
- package/dist/components/Tabs/stories.js +2 -2
- package/dist/components/Tabs/stories.js.map +1 -1
- package/dist/components/Title/index.d.ts +2 -2
- package/dist/components/Title/index.d.ts.map +1 -1
- package/dist/components/Title/index.js +1 -2
- package/dist/components/Title/index.js.map +1 -1
- package/dist/components/Title/stories.d.ts +1 -1
- package/dist/components/Title/stories.d.ts.map +1 -1
- package/dist/components/Title/stories.js +1 -1
- package/dist/components/Title/stories.js.map +1 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/App.tsx +1 -2
- package/src/assets/icon/svg.d.ts +1 -4
- package/src/components/Banner/index.tsx +3 -5
- package/src/components/Banner/stories.tsx +1 -1
- package/src/components/{Button /index.tsx → Button/index.tsx} +2 -4
- package/src/components/{Button /stories.tsx → Button/stories.tsx} +1 -1
- package/src/components/Button/test.tsx +44 -0
- package/src/components/ButtonRadiusIcon/index.tsx +2 -4
- package/src/components/ButtonRadiusIcon/stories.tsx +1 -1
- package/src/components/ButtonRound/index.tsx +2 -4
- package/src/components/ButtonRound/stories.tsx +1 -1
- package/src/components/IconWrapper/index.tsx +1 -3
- package/src/components/Modal/index.tsx +3 -5
- package/src/components/Modal/stories.tsx +3 -3
- package/src/components/Paragraph/index.tsx +1 -3
- package/src/components/Paragraph/stories.tsx +84 -84
- package/src/components/Tabs/index.tsx +1 -3
- package/src/components/Tabs/stories.tsx +2 -2
- package/src/components/Title/index.tsx +1 -3
- package/src/components/Title/stories.tsx +56 -58
- package/src/index.tsx +10 -19
- package/src/components/index.ts +0 -1
- package/src/index.css +0 -13
- /package/src/components/{Button → Button}/styles.ts +0 -0
|
@@ -36,10 +36,8 @@ const StyledIconWrapper = styled.div<IconWrappeProps>`
|
|
|
36
36
|
}
|
|
37
37
|
`
|
|
38
38
|
|
|
39
|
-
const IconWrapper: React.FC<IconWrapperProps> = ({ src, color, width, height, className, onClick }) => (
|
|
39
|
+
export const IconWrapper: React.FC<IconWrapperProps> = ({ src, color, width, height, className, onClick }) => (
|
|
40
40
|
<StyledIconWrapper color={color} width={width} height={height} className={className} onClick={onClick}>
|
|
41
41
|
<ReactSVG src={src} />
|
|
42
42
|
</StyledIconWrapper>
|
|
43
43
|
)
|
|
44
|
-
|
|
45
|
-
export default IconWrapper
|
|
@@ -2,15 +2,15 @@ import React from 'react'
|
|
|
2
2
|
import ReactDOM from 'react-dom'
|
|
3
3
|
import { closeSVG } from '../../assets/icon'
|
|
4
4
|
import { theme } from '../Themes'
|
|
5
|
-
import Title from '../Title'
|
|
6
|
-
import IconWrapper from '../IconWrapper'
|
|
5
|
+
import { Title } from '../Title'
|
|
6
|
+
import { IconWrapper } from '../IconWrapper'
|
|
7
7
|
import { ModalTypes } from '../Types'
|
|
8
8
|
import { ModalContainer, Overlay } from './styles'
|
|
9
9
|
const {
|
|
10
10
|
colors: { cyan50, shade30 },
|
|
11
11
|
} = theme
|
|
12
12
|
|
|
13
|
-
const Modal: React.FC<ModalTypes> = ({ children, onClose, footer, ...props }) => {
|
|
13
|
+
export const Modal: React.FC<ModalTypes> = ({ children, onClose, footer, ...props }) => {
|
|
14
14
|
return ReactDOM.createPortal(
|
|
15
15
|
<>
|
|
16
16
|
<Overlay onClick={onClose} />
|
|
@@ -28,5 +28,3 @@ const Modal: React.FC<ModalTypes> = ({ children, onClose, footer, ...props }) =>
|
|
|
28
28
|
document.body,
|
|
29
29
|
)
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
export default Modal
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { Meta, StoryObj } from '@storybook/react'
|
|
3
3
|
import { useState } from 'react'
|
|
4
|
-
import Modal from './index'
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import { Modal } from './index'
|
|
5
|
+
import { Paragraph } from '../Paragraph'
|
|
6
|
+
import { Button } from '../Button'
|
|
7
7
|
|
|
8
8
|
const meta: Meta<typeof Modal> = {
|
|
9
9
|
title: 'Components/Modal',
|
|
@@ -33,12 +33,10 @@ const ParagraphStyled = styled.p<ParagraphProps>`
|
|
|
33
33
|
color: ${props => props.color || 'inherit'}; // Aplicando a cor
|
|
34
34
|
`
|
|
35
35
|
|
|
36
|
-
const Paragraph: React.FC<ParagraphProps> = ({ size = 'small', weight, as = 'p', color, children }) => {
|
|
36
|
+
export const Paragraph: React.FC<ParagraphProps> = ({ size = 'small', weight, as = 'p', color, children }) => {
|
|
37
37
|
return (
|
|
38
38
|
<ParagraphStyled as={as} size={size} weight={weight} color={color}>
|
|
39
39
|
{children}
|
|
40
40
|
</ParagraphStyled>
|
|
41
41
|
)
|
|
42
42
|
}
|
|
43
|
-
|
|
44
|
-
export default Paragraph
|
|
@@ -1,107 +1,107 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react'
|
|
2
|
-
import Paragraph from
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react'
|
|
2
|
+
import { Paragraph } from './index'
|
|
3
3
|
|
|
4
4
|
const meta: Meta<typeof Paragraph> = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
title: 'Components/Paragraph',
|
|
6
|
+
component: Paragraph,
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: 'centered',
|
|
9
|
+
},
|
|
10
|
+
tags: ['autodocs'],
|
|
11
|
+
argTypes: {
|
|
12
|
+
size: {
|
|
13
|
+
control: { type: 'select', options: ['x-small', 'small', 'medium', 'large'] },
|
|
14
|
+
description: 'Select the size of the paragraph',
|
|
9
15
|
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
control: { type: 'select', options: ['x-small', 'small', 'medium', 'large'] },
|
|
14
|
-
description: 'Select the size of the paragraph',
|
|
15
|
-
},
|
|
16
|
-
weight: {
|
|
17
|
-
control: { type: 'select', options: [400, 600, 700, 800] },
|
|
18
|
-
description: 'Select the font weight of the paragraph',
|
|
19
|
-
},
|
|
20
|
-
as: {
|
|
21
|
-
control: { type: 'select', options: ['span', 'div', 'label', 'p'] },
|
|
22
|
-
description: 'Select the HTML element to render',
|
|
23
|
-
},
|
|
24
|
-
color: {
|
|
25
|
-
control: 'color', // Adicionando o controle de cor
|
|
26
|
-
description: 'Select the color of the text',
|
|
27
|
-
},
|
|
28
|
-
children: {
|
|
29
|
-
control: 'text',
|
|
30
|
-
description: 'Content of the paragraph',
|
|
31
|
-
},
|
|
16
|
+
weight: {
|
|
17
|
+
control: { type: 'select', options: [400, 600, 700, 800] },
|
|
18
|
+
description: 'Select the font weight of the paragraph',
|
|
32
19
|
},
|
|
33
|
-
|
|
20
|
+
as: {
|
|
21
|
+
control: { type: 'select', options: ['span', 'div', 'label', 'p'] },
|
|
22
|
+
description: 'Select the HTML element to render',
|
|
23
|
+
},
|
|
24
|
+
color: {
|
|
25
|
+
control: 'color', // Adicionando o controle de cor
|
|
26
|
+
description: 'Select the color of the text',
|
|
27
|
+
},
|
|
28
|
+
children: {
|
|
29
|
+
control: 'text',
|
|
30
|
+
description: 'Content of the paragraph',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
} satisfies Meta<typeof Paragraph>
|
|
34
34
|
|
|
35
|
-
export default meta
|
|
36
|
-
type Story = StoryObj<typeof meta
|
|
35
|
+
export default meta
|
|
36
|
+
type Story = StoryObj<typeof meta>
|
|
37
37
|
|
|
38
38
|
// Define different stories for the Paragraph component
|
|
39
39
|
|
|
40
40
|
export const XSmall: Story = {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
41
|
+
args: {
|
|
42
|
+
size: 'x-small',
|
|
43
|
+
color: '#000000', // Definindo a cor para XSmall
|
|
44
|
+
children: 'This is an X-small paragraph.',
|
|
45
|
+
},
|
|
46
|
+
}
|
|
47
47
|
|
|
48
48
|
export const Small: Story = {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
49
|
+
args: {
|
|
50
|
+
size: 'small',
|
|
51
|
+
weight: 600,
|
|
52
|
+
color: '#333333', // Definindo a cor para Small
|
|
53
|
+
children: 'This is a small paragraph with weight 600.',
|
|
54
|
+
},
|
|
55
|
+
}
|
|
56
56
|
|
|
57
57
|
export const Medium: Story = {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
58
|
+
args: {
|
|
59
|
+
size: 'medium',
|
|
60
|
+
weight: 700,
|
|
61
|
+
color: '#666666', // Definindo a cor para Medium
|
|
62
|
+
children: 'This is a medium paragraph with weight 700.',
|
|
63
|
+
},
|
|
64
|
+
}
|
|
65
65
|
|
|
66
66
|
export const Large: Story = {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
67
|
+
args: {
|
|
68
|
+
size: 'large',
|
|
69
|
+
color: '#999999', // Definindo a cor para Large
|
|
70
|
+
children: 'This is a large paragraph.',
|
|
71
|
+
},
|
|
72
|
+
}
|
|
73
73
|
|
|
74
74
|
export const CustomElement: Story = {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
75
|
+
args: {
|
|
76
|
+
size: 'medium',
|
|
77
|
+
as: 'label',
|
|
78
|
+
color: '#CC0000', // Definindo a cor para CustomElement
|
|
79
|
+
children: 'This is a medium paragraph rendered as a label.',
|
|
80
|
+
},
|
|
81
|
+
}
|
|
82
82
|
|
|
83
83
|
export const AllSizes: Story = {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
84
|
+
args: {
|
|
85
|
+
size: 'medium',
|
|
86
|
+
color: '#000000',
|
|
87
|
+
children: 'This paragraph can be adjusted to any size using the controls.',
|
|
88
|
+
},
|
|
89
|
+
}
|
|
90
90
|
|
|
91
91
|
export const AllWeights: Story = {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
92
|
+
args: {
|
|
93
|
+
size: 'medium',
|
|
94
|
+
weight: 400,
|
|
95
|
+
color: '#000000',
|
|
96
|
+
children: 'This paragraph weight can be adjusted to 400, 600, 700, or 800.',
|
|
97
|
+
},
|
|
98
|
+
}
|
|
99
99
|
|
|
100
100
|
export const AllElements: Story = {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
101
|
+
args: {
|
|
102
|
+
size: 'medium',
|
|
103
|
+
as: 'div',
|
|
104
|
+
color: '#000000',
|
|
105
|
+
children: 'This paragraph can be rendered as different HTML elements.',
|
|
106
|
+
},
|
|
107
|
+
}
|
|
@@ -2,7 +2,7 @@ import React, { useState } from 'react'
|
|
|
2
2
|
import { TabsTypes } from '../Types'
|
|
3
3
|
import { TabsContainerStyled, TabStyled } from './styles'
|
|
4
4
|
|
|
5
|
-
const Tabs: React.FC<TabsTypes> = ({ tabs, defaultActiveTab, onTabChange }) => {
|
|
5
|
+
export const Tabs: React.FC<TabsTypes> = ({ tabs, defaultActiveTab, onTabChange }) => {
|
|
6
6
|
const [activeTab, setActiveTab] = useState(defaultActiveTab || tabs[0])
|
|
7
7
|
|
|
8
8
|
const handleTabClick = (tab: string) => {
|
|
@@ -22,5 +22,3 @@ const Tabs: React.FC<TabsTypes> = ({ tabs, defaultActiveTab, onTabChange }) => {
|
|
|
22
22
|
</TabsContainerStyled>
|
|
23
23
|
)
|
|
24
24
|
}
|
|
25
|
-
|
|
26
|
-
export default Tabs
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { Meta, StoryObj } from '@storybook/react'
|
|
3
|
-
import Paragraph from '../Paragraph'
|
|
4
|
-
import Tabs from './index'
|
|
3
|
+
import { Paragraph } from '../Paragraph'
|
|
4
|
+
import { Tabs } from './index'
|
|
5
5
|
import { useState } from 'react'
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof Tabs> = {
|
|
@@ -24,12 +24,10 @@ const TitleStyled = styled.p<ParagraphProps>`
|
|
|
24
24
|
color: ${props => props.color || 'inherit'}; // Aplicando a cor
|
|
25
25
|
`
|
|
26
26
|
|
|
27
|
-
const Title: React.FC<ParagraphProps> = ({ size = 'medium', bold, as = 'h2', color, children }) => {
|
|
27
|
+
export const Title: React.FC<ParagraphProps> = ({ size = 'medium', bold, as = 'h2', color, children }) => {
|
|
28
28
|
return (
|
|
29
29
|
<TitleStyled as={as} size={size} bold={bold} color={color}>
|
|
30
30
|
{children}
|
|
31
31
|
</TitleStyled>
|
|
32
32
|
)
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
export default Title
|
|
@@ -1,70 +1,68 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import Title from "./index";
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react'
|
|
2
|
+
import { theme } from '../Themes'
|
|
3
|
+
import { Title } from './index'
|
|
5
4
|
|
|
6
|
-
const sizes = theme.title
|
|
5
|
+
const sizes = theme.title
|
|
7
6
|
|
|
8
7
|
const meta: Meta<typeof Title> = {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
title: 'Components/Title',
|
|
9
|
+
component: Title,
|
|
10
|
+
parameters: {
|
|
11
|
+
layout: 'centered',
|
|
12
|
+
},
|
|
13
|
+
argTypes: {
|
|
14
|
+
size: {
|
|
15
|
+
control: { type: 'select', options: ['medium', 'large'] },
|
|
16
|
+
description: 'Font size of the title',
|
|
13
17
|
},
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
description: 'Font size of the title',
|
|
18
|
-
},
|
|
19
|
-
bold: {
|
|
20
|
-
control: 'boolean',
|
|
21
|
-
description: 'Apply bold font weight',
|
|
22
|
-
},
|
|
23
|
-
as: {
|
|
24
|
-
control: { type: 'select', options: ['h1', 'h2', 'h3'] },
|
|
25
|
-
description: 'HTML element to render',
|
|
26
|
-
},
|
|
27
|
-
color: {
|
|
28
|
-
control: 'color',
|
|
29
|
-
description: 'Font color of the title',
|
|
30
|
-
},
|
|
31
|
-
children: {
|
|
32
|
-
control: 'text',
|
|
33
|
-
description: 'Content of the title',
|
|
34
|
-
},
|
|
18
|
+
bold: {
|
|
19
|
+
control: 'boolean',
|
|
20
|
+
description: 'Apply bold font weight',
|
|
35
21
|
},
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
22
|
+
as: {
|
|
23
|
+
control: { type: 'select', options: ['h1', 'h2', 'h3'] },
|
|
24
|
+
description: 'HTML element to render',
|
|
25
|
+
},
|
|
26
|
+
color: {
|
|
27
|
+
control: 'color',
|
|
28
|
+
description: 'Font color of the title',
|
|
29
|
+
},
|
|
30
|
+
children: {
|
|
31
|
+
control: 'text',
|
|
32
|
+
description: 'Content of the title',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
}
|
|
40
36
|
|
|
37
|
+
export default meta
|
|
38
|
+
type Story = StoryObj<typeof meta>
|
|
41
39
|
|
|
42
40
|
export const LargeBoldTitle: Story = {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
41
|
+
args: {
|
|
42
|
+
size: 'large',
|
|
43
|
+
bold: true,
|
|
44
|
+
as: 'h1',
|
|
45
|
+
color: '#1A3D7F', // Example color
|
|
46
|
+
children: 'Large Bold Title',
|
|
47
|
+
},
|
|
48
|
+
}
|
|
51
49
|
|
|
52
50
|
export const MediumTitle: Story = {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
51
|
+
args: {
|
|
52
|
+
size: 'medium',
|
|
53
|
+
bold: false,
|
|
54
|
+
as: 'h2',
|
|
55
|
+
color: '#025FDE', // Example color
|
|
56
|
+
children: 'Medium Title',
|
|
57
|
+
},
|
|
58
|
+
}
|
|
61
59
|
|
|
62
60
|
export const CustomColorTitle: Story = {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
61
|
+
args: {
|
|
62
|
+
size: 'large',
|
|
63
|
+
bold: true,
|
|
64
|
+
as: 'h3',
|
|
65
|
+
color: '#FF5733', // Custom color
|
|
66
|
+
children: 'Custom Color Title',
|
|
67
|
+
},
|
|
68
|
+
}
|
package/src/index.tsx
CHANGED
|
@@ -1,19 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
<React.StrictMode>
|
|
12
|
-
<App />
|
|
13
|
-
</React.StrictMode>
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
// If you want to start measuring performance in your app, pass a function
|
|
17
|
-
// to log results (for example: reportWebVitals(console.log))
|
|
18
|
-
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
|
19
|
-
reportWebVitals();
|
|
1
|
+
export { Banner } from './components/Banner/index'
|
|
2
|
+
export { Button } from './components/Button/index'
|
|
3
|
+
export { ButtonRadiusIcon } from './components/ButtonRadiusIcon/index'
|
|
4
|
+
export { ButtonRound } from './components/ButtonRound/index'
|
|
5
|
+
export { IconWrapper } from './components/IconWrapper/index'
|
|
6
|
+
export { Modal } from './components/Modal/index'
|
|
7
|
+
export { Paragraph } from './components/Paragraph/index'
|
|
8
|
+
export { Tabs } from './components/Tabs/index'
|
|
9
|
+
export { theme } from './components/Themes/index'
|
|
10
|
+
export { Title } from './components/Title/index'
|
package/src/components/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Banner } from './Banner'
|
package/src/index.css
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
body {
|
|
2
|
-
margin: 0;
|
|
3
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
|
4
|
-
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
|
5
|
-
sans-serif;
|
|
6
|
-
-webkit-font-smoothing: antialiased;
|
|
7
|
-
-moz-osx-font-smoothing: grayscale;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
code {
|
|
11
|
-
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
|
|
12
|
-
monospace;
|
|
13
|
-
}
|
|
File without changes
|