w-design-system 0.0.83 → 0.0.85
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/.storybook/main.ts +8 -5
- package/.storybook/preview.ts +4 -13
- package/dist/components/Banner/index.d.ts +1 -1
- package/dist/components/Banner/styles.d.ts +1 -1
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Button/styles.d.ts +2 -2
- package/dist/components/Button/test.d.ts +0 -1
- package/dist/components/ButtonRadiusIcon/index.d.ts +1 -1
- package/dist/components/ButtonRadiusIcon/styles.d.ts +1 -1
- package/dist/components/ButtonRound/index.d.ts +1 -1
- package/dist/components/ButtonRound/styles.d.ts +1 -1
- package/dist/components/CardStories/index.d.ts +1 -1
- package/dist/components/CardStories/index.d.ts.map +1 -1
- package/dist/components/CardStories/stories.d.ts +2 -2
- package/dist/components/CountryStateSelector/index.d.ts +1 -2
- package/dist/components/DatePicker/index.d.ts +2 -7
- package/dist/components/DatePicker/index.d.ts.map +1 -1
- package/dist/components/DateRangePicker/index.d.ts +1 -1
- package/dist/components/DateRangePicker/index.d.ts.map +1 -1
- package/dist/components/DateRangePicker/styles.d.ts +7 -7
- package/dist/components/EmptyState/index.d.ts +1 -1
- package/dist/components/EmptyState/index.d.ts.map +1 -1
- package/dist/components/EmptyState/stories.d.ts +1 -1
- package/dist/components/EmptyState/styles.d.ts +1 -1
- package/dist/components/IconWrapper/index.d.ts +1 -1
- package/dist/components/Input/index.d.ts +1 -1
- package/dist/components/Input/index.d.ts.map +1 -1
- package/dist/components/Input/styles.d.ts +6 -6
- package/dist/components/InputTag/index.d.ts +1 -1
- package/dist/components/InputTag/index.d.ts.map +1 -1
- package/dist/components/InputTag/styles.d.ts +6 -6
- package/dist/components/Loading/index.d.ts +1 -1
- package/dist/components/Loading/stories.d.ts +1 -1
- package/dist/components/Modal/index.d.ts +1 -1
- package/dist/components/Modal/styles.d.ts +2 -2
- package/dist/components/MultiSelect/index.d.ts +1 -1
- package/dist/components/MultiSelect/index.d.ts.map +1 -1
- package/dist/components/Paginate/index.d.ts +1 -1
- package/dist/components/Paginate/index.d.ts.map +1 -1
- package/dist/components/Paginate/styles.d.ts +1 -1
- package/dist/components/Paragraph/index.d.ts +1 -1
- package/dist/components/Paragraph/stories.d.ts +1 -1
- package/dist/components/PortalSelect/index.d.ts +1 -1
- package/dist/components/PortalSelect/styles.d.ts +1 -1
- package/dist/components/Select/index.d.ts +1 -1
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/styles.d.ts +9 -9
- package/dist/components/Sidebar/SidebarGroup/index.d.ts +1 -2
- package/dist/components/Sidebar/SidebarGroup/index.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarGroup/styles.d.ts +3 -3
- package/dist/components/Sidebar/SidebarItem/index.d.ts +1 -1
- package/dist/components/Sidebar/SidebarItem/index.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarItem/styles.d.ts +2 -2
- package/dist/components/Sidebar/SidebarLogo/index.d.ts +1 -1
- package/dist/components/Sidebar/SidebarLogo/index.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarLogo/styles.d.ts +1 -1
- package/dist/components/Sidebar/index.d.ts +1 -1
- package/dist/components/Sidebar/index.d.ts.map +1 -1
- package/dist/components/Sidebar/styles.d.ts +4 -4
- package/dist/components/Table/index.d.ts +1 -1
- package/dist/components/Table/stories.d.ts +1 -1
- package/dist/components/Tabs/index.d.ts +1 -1
- package/dist/components/Tabs/styles.d.ts +2 -2
- package/dist/components/Title/index.d.ts +1 -1
- package/dist/components/Title/stories.d.ts +1 -1
- package/dist/favicon.ico +0 -0
- package/dist/index.html +43 -0
- package/dist/logo192.png +0 -0
- package/dist/logo512.png +0 -0
- package/dist/manifest.json +25 -0
- package/dist/robots.txt +3 -0
- package/dist/setupTests.d.ts +0 -1
- package/dist/src/globalStyles.d.ts +1 -1
- package/dist/stories/Button.d.ts +1 -2
- package/dist/stories/Button.d.ts.map +1 -1
- package/dist/stories/Button.stories.d.ts +3 -3
- package/dist/stories/Header.d.ts +1 -2
- package/dist/stories/Header.d.ts.map +1 -1
- package/dist/stories/Header.stories.d.ts +5 -5
- package/dist/stories/Page.d.ts +1 -2
- package/dist/stories/Page.stories.d.ts +2 -2
- package/dist/w-design-system.es.js +4656 -0
- package/dist/w-design-system.umd.js +1412 -0
- package/eslint.config.ts +21 -0
- package/package.json +28 -45
- package/prettier.config.js +11 -0
- package/src/components/Input/index.tsx +3 -6
- package/src/components/InputTag/index.tsx +3 -5
- package/src/components/Select/styles.ts +1 -1
- package/tsconfig.json +5 -18
- package/vite.config.ts +31 -0
- package/.babelrc +0 -8
- package/dist/assets/icon/index.js +0 -41
- package/dist/assets/icon/index.js.map +0 -1
- package/dist/components/Banner/index.js +0 -44
- package/dist/components/Banner/index.js.map +0 -1
- package/dist/components/Banner/stories.js +0 -25
- package/dist/components/Banner/stories.js.map +0 -1
- package/dist/components/Banner/styles.js +0 -56
- package/dist/components/Banner/styles.js.map +0 -1
- package/dist/components/Button/index.js +0 -66
- package/dist/components/Button/index.js.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.js +0 -217
- package/dist/components/Button/styles.js.map +0 -1
- package/dist/components/Button/test.js +0 -33
- package/dist/components/Button/test.js.map +0 -1
- package/dist/components/ButtonRadiusIcon/index.js +0 -25
- package/dist/components/ButtonRadiusIcon/index.js.map +0 -1
- package/dist/components/ButtonRadiusIcon/stories.js +0 -42
- package/dist/components/ButtonRadiusIcon/stories.js.map +0 -1
- package/dist/components/ButtonRadiusIcon/styles.js +0 -150
- package/dist/components/ButtonRadiusIcon/styles.js.map +0 -1
- package/dist/components/ButtonRound/index.js +0 -21
- package/dist/components/ButtonRound/index.js.map +0 -1
- package/dist/components/ButtonRound/stories.js +0 -43
- package/dist/components/ButtonRound/stories.js.map +0 -1
- package/dist/components/ButtonRound/styles.js +0 -134
- package/dist/components/ButtonRound/styles.js.map +0 -1
- package/dist/components/CardStories/index.js +0 -43
- package/dist/components/CardStories/index.js.map +0 -1
- package/dist/components/CardStories/stories.js +0 -35
- package/dist/components/CardStories/stories.js.map +0 -1
- package/dist/components/CountryStateSelector/index.js +0 -106
- package/dist/components/CountryStateSelector/index.js.map +0 -1
- package/dist/components/CountryStateSelector/stories.js +0 -46
- package/dist/components/CountryStateSelector/stories.js.map +0 -1
- package/dist/components/DatePicker/index.js +0 -22
- package/dist/components/DatePicker/index.js.map +0 -1
- package/dist/components/DatePicker/stories.js +0 -61
- package/dist/components/DatePicker/stories.js.map +0 -1
- package/dist/components/DateRangePicker/index.js +0 -187
- package/dist/components/DateRangePicker/index.js.map +0 -1
- package/dist/components/DateRangePicker/stories.js +0 -65
- package/dist/components/DateRangePicker/stories.js.map +0 -1
- package/dist/components/DateRangePicker/styles.js +0 -122
- package/dist/components/DateRangePicker/styles.js.map +0 -1
- package/dist/components/EmptyState/index.js +0 -14
- package/dist/components/EmptyState/index.js.map +0 -1
- package/dist/components/EmptyState/stories.js +0 -31
- package/dist/components/EmptyState/stories.js.map +0 -1
- package/dist/components/EmptyState/styles.js +0 -29
- package/dist/components/EmptyState/styles.js.map +0 -1
- package/dist/components/IconWrapper/index.js +0 -34
- package/dist/components/IconWrapper/index.js.map +0 -1
- package/dist/components/Input/index.js +0 -91
- package/dist/components/Input/index.js.map +0 -1
- package/dist/components/Input/stories.js +0 -55
- package/dist/components/Input/stories.js.map +0 -1
- package/dist/components/Input/styles.js +0 -86
- package/dist/components/Input/styles.js.map +0 -1
- package/dist/components/InputTag/index.js +0 -124
- package/dist/components/InputTag/index.js.map +0 -1
- package/dist/components/InputTag/stories.js +0 -25
- package/dist/components/InputTag/stories.js.map +0 -1
- package/dist/components/InputTag/styles.js +0 -146
- package/dist/components/InputTag/styles.js.map +0 -1
- package/dist/components/Loading/index.js +0 -50
- package/dist/components/Loading/index.js.map +0 -1
- package/dist/components/Loading/stories.js +0 -46
- package/dist/components/Loading/stories.js.map +0 -1
- package/dist/components/Modal/index.js +0 -31
- package/dist/components/Modal/index.js.map +0 -1
- package/dist/components/Modal/stories.js +0 -24
- package/dist/components/Modal/stories.js.map +0 -1
- package/dist/components/Modal/styles.js +0 -48
- package/dist/components/Modal/styles.js.map +0 -1
- package/dist/components/MultiSelect/index.js +0 -284
- package/dist/components/MultiSelect/index.js.map +0 -1
- package/dist/components/MultiSelect/stories.js +0 -39
- package/dist/components/MultiSelect/stories.js.map +0 -1
- package/dist/components/MultiSelect/styles.d.ts +0 -14
- package/dist/components/MultiSelect/styles.d.ts.map +0 -1
- package/dist/components/MultiSelect/styles.js +0 -66
- package/dist/components/MultiSelect/styles.js.map +0 -1
- package/dist/components/Paginate/index.js +0 -63
- package/dist/components/Paginate/index.js.map +0 -1
- package/dist/components/Paginate/stories.js +0 -44
- package/dist/components/Paginate/stories.js.map +0 -1
- package/dist/components/Paginate/styles.js +0 -64
- package/dist/components/Paginate/styles.js.map +0 -1
- package/dist/components/Paragraph/index.js +0 -51
- package/dist/components/Paragraph/index.js.map +0 -1
- package/dist/components/Paragraph/stories.js +0 -113
- package/dist/components/Paragraph/stories.js.map +0 -1
- package/dist/components/PortalSelect/index.js +0 -141
- package/dist/components/PortalSelect/index.js.map +0 -1
- package/dist/components/PortalSelect/stories.js +0 -82
- package/dist/components/PortalSelect/stories.js.map +0 -1
- package/dist/components/PortalSelect/styles.js +0 -9
- package/dist/components/PortalSelect/styles.js.map +0 -1
- package/dist/components/Select/index.js +0 -260
- package/dist/components/Select/index.js.map +0 -1
- package/dist/components/Select/stories.js +0 -40
- package/dist/components/Select/stories.js.map +0 -1
- package/dist/components/Select/styles.js +0 -90
- package/dist/components/Select/styles.js.map +0 -1
- package/dist/components/Sidebar/SidebarGroup/index.js +0 -42
- package/dist/components/Sidebar/SidebarGroup/index.js.map +0 -1
- package/dist/components/Sidebar/SidebarGroup/styles.js +0 -68
- package/dist/components/Sidebar/SidebarGroup/styles.js.map +0 -1
- package/dist/components/Sidebar/SidebarItem/index.js +0 -26
- package/dist/components/Sidebar/SidebarItem/index.js.map +0 -1
- package/dist/components/Sidebar/SidebarItem/styles.js +0 -64
- package/dist/components/Sidebar/SidebarItem/styles.js.map +0 -1
- package/dist/components/Sidebar/SidebarLogo/index.js +0 -12
- package/dist/components/Sidebar/SidebarLogo/index.js.map +0 -1
- package/dist/components/Sidebar/SidebarLogo/styles.js +0 -48
- package/dist/components/Sidebar/SidebarLogo/styles.js.map +0 -1
- package/dist/components/Sidebar/index.js +0 -45
- package/dist/components/Sidebar/index.js.map +0 -1
- package/dist/components/Sidebar/stories.js +0 -94
- package/dist/components/Sidebar/stories.js.map +0 -1
- package/dist/components/Sidebar/styles.js +0 -73
- package/dist/components/Sidebar/styles.js.map +0 -1
- package/dist/components/Table/index.js +0 -95
- package/dist/components/Table/index.js.map +0 -1
- package/dist/components/Table/stories.js +0 -163
- package/dist/components/Table/stories.js.map +0 -1
- package/dist/components/Table/styles.js +0 -2
- package/dist/components/Table/styles.js.map +0 -1
- package/dist/components/Tabs/index.js +0 -13
- package/dist/components/Tabs/index.js.map +0 -1
- package/dist/components/Tabs/stories.js +0 -31
- package/dist/components/Tabs/stories.js.map +0 -1
- package/dist/components/Tabs/styles.js +0 -22
- package/dist/components/Tabs/styles.js.map +0 -1
- package/dist/components/Themes/index.js +0 -88
- package/dist/components/Themes/index.js.map +0 -1
- package/dist/components/Title/index.js +0 -17
- package/dist/components/Title/index.js.map +0 -1
- package/dist/components/Title/stories.js +0 -61
- package/dist/components/Title/stories.js.map +0 -1
- package/dist/components/Types/index.js +0 -2
- package/dist/components/Types/index.js.map +0 -1
- package/dist/components/index.js +0 -16
- package/dist/components/index.js.map +0 -1
- package/dist/index.js +0 -25
- package/dist/index.js.map +0 -1
- package/dist/prettier.config.js +0 -13
- package/dist/prettier.config.js.map +0 -1
- package/dist/reportWebVitals.d.ts +0 -4
- package/dist/reportWebVitals.d.ts.map +0 -1
- package/dist/reportWebVitals.js +0 -14
- package/dist/reportWebVitals.js.map +0 -1
- package/dist/setupTests.js +0 -6
- package/dist/setupTests.js.map +0 -1
- package/dist/src/globalStyles.js +0 -15
- package/dist/src/globalStyles.js.map +0 -1
- package/dist/stories/Button.js +0 -22
- package/dist/stories/Button.js.map +0 -1
- package/dist/stories/Button.stories.js +0 -45
- package/dist/stories/Button.stories.js.map +0 -1
- package/dist/stories/Header.js +0 -21
- package/dist/stories/Header.js.map +0 -1
- package/dist/stories/Header.stories.js +0 -27
- package/dist/stories/Header.stories.js.map +0 -1
- package/dist/stories/Page.js +0 -38
- package/dist/stories/Page.js.map +0 -1
- package/dist/stories/Page.stories.js +0 -34
- package/dist/stories/Page.stories.js.map +0 -1
- package/dist/utils/constanst.js +0 -3
- package/dist/utils/constanst.js.map +0 -1
- package/src/reportWebVitals.ts +0 -16
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
export const TabsContainerStyled = styled.div `
|
|
3
|
-
display: flex;
|
|
4
|
-
align-items: flex-end;
|
|
5
|
-
`;
|
|
6
|
-
export const TabStyled = styled.div `
|
|
7
|
-
padding: 8px 16px;
|
|
8
|
-
cursor: pointer;
|
|
9
|
-
border-radius: 24px 24px 0 0;
|
|
10
|
-
background: white;
|
|
11
|
-
opacity: ${props => (props.active ? 1 : 0.8)};
|
|
12
|
-
height: ${props => (props.active ? '45px' : '40px')};
|
|
13
|
-
min-width: 95px;
|
|
14
|
-
display: inline-flex;
|
|
15
|
-
justify-content: center;
|
|
16
|
-
align-items: center;
|
|
17
|
-
font-family: 'Nunito Sans', sans-serif;
|
|
18
|
-
font-weight: ${props => (props.active ? 'bold' : 'normal')};
|
|
19
|
-
color: ${props => (props.active ? 'var(--PrimaryColor, #000)' : 'var(--SecondaryColor, #666)')};
|
|
20
|
-
transition: opacity 0.3s;
|
|
21
|
-
`;
|
|
22
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Tabs/styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAG5C,CAAA;AAED,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAqB;;;;;aAK3C,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;YAClC,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;;;;;;iBAMpC,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC;WACjD,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,2BAA2B,CAAC,CAAC,CAAC,6BAA6B,CAAC;;CAE/F,CAAA"}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
const cyan = {
|
|
2
|
-
cyan50: '#001640',
|
|
3
|
-
cyan40: '#1A3D7F',
|
|
4
|
-
cyan30: '#025FDE',
|
|
5
|
-
cyan20: '#217EFD',
|
|
6
|
-
cyan15: '#bad8ff',
|
|
7
|
-
cyan10: '#EEF5FF',
|
|
8
|
-
};
|
|
9
|
-
const shades = {
|
|
10
|
-
shade50: '#333333',
|
|
11
|
-
shade40: '#666666',
|
|
12
|
-
shade30: '#999999',
|
|
13
|
-
shade20: '#EEEEEE',
|
|
14
|
-
shade10: '#EFF1F3',
|
|
15
|
-
shade05: '#FAFAFA',
|
|
16
|
-
};
|
|
17
|
-
const red = {
|
|
18
|
-
red40: '#981010',
|
|
19
|
-
red30: '#B41313',
|
|
20
|
-
red20: '#F3D9D9',
|
|
21
|
-
red10: '#F9EDED',
|
|
22
|
-
};
|
|
23
|
-
const honey = {
|
|
24
|
-
honey40: '#F77202',
|
|
25
|
-
honey30: '#F77202',
|
|
26
|
-
honey20: '#FCCEA7',
|
|
27
|
-
honey10: '#FDE3CC',
|
|
28
|
-
};
|
|
29
|
-
const yellow = {
|
|
30
|
-
yellow30: '#D08007',
|
|
31
|
-
yellow20: '#EFD3A8',
|
|
32
|
-
yellow10: '#FAF2E6',
|
|
33
|
-
};
|
|
34
|
-
const mint = {
|
|
35
|
-
mint40: '#059D2F',
|
|
36
|
-
mint30: '#06B737',
|
|
37
|
-
mint20: '#D7EFDE',
|
|
38
|
-
mint10: '#EBF8EF',
|
|
39
|
-
};
|
|
40
|
-
const special = {
|
|
41
|
-
cyan30opacity16: 'rgba(33, 126, 253, 0.16)',
|
|
42
|
-
};
|
|
43
|
-
const white = '#FFFFFF';
|
|
44
|
-
const black = '#333333';
|
|
45
|
-
const transparent = 'transparent';
|
|
46
|
-
export const spacing = {
|
|
47
|
-
space1: '4px',
|
|
48
|
-
space2: '8px',
|
|
49
|
-
space3: '16px',
|
|
50
|
-
space4: '24px',
|
|
51
|
-
space5: '32px',
|
|
52
|
-
space6: '40px',
|
|
53
|
-
space7: '48px',
|
|
54
|
-
space8: '56px',
|
|
55
|
-
space9: '64px',
|
|
56
|
-
};
|
|
57
|
-
const zIndex = {
|
|
58
|
-
z1: 1,
|
|
59
|
-
z2: 2,
|
|
60
|
-
z3: 3,
|
|
61
|
-
z4: 4,
|
|
62
|
-
z5: 5,
|
|
63
|
-
z6: 6,
|
|
64
|
-
z7: 7,
|
|
65
|
-
z8: 8,
|
|
66
|
-
z9: 9,
|
|
67
|
-
full: 10000,
|
|
68
|
-
};
|
|
69
|
-
export const theme = {
|
|
70
|
-
zIndex,
|
|
71
|
-
spacing,
|
|
72
|
-
colors: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, yellow), shades), red), honey), mint), cyan), { white,
|
|
73
|
-
black,
|
|
74
|
-
transparent }), special),
|
|
75
|
-
fonts: ['Nunito Sans', 'Helvetica Neue', 'Helvetica', 'Arial', 'sans-serif'],
|
|
76
|
-
title: {
|
|
77
|
-
medium: '24px',
|
|
78
|
-
large: '34px',
|
|
79
|
-
},
|
|
80
|
-
paragraph: {
|
|
81
|
-
'xx-small': '10px',
|
|
82
|
-
'x-small': '12px',
|
|
83
|
-
small: '14px',
|
|
84
|
-
medium: '16px',
|
|
85
|
-
large: '18px',
|
|
86
|
-
},
|
|
87
|
-
};
|
|
88
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Themes/index.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG;IACX,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;CAClB,CAAA;AAED,MAAM,MAAM,GAAG;IACb,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACnB,CAAA;AAED,MAAM,GAAG,GAAG;IACV,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,SAAS;CACjB,CAAA;AAED,MAAM,KAAK,GAAG;IACZ,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACnB,CAAA;AAED,MAAM,MAAM,GAAG;IACb,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,SAAS;CACpB,CAAA;AAED,MAAM,IAAI,GAAG;IACX,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;CAClB,CAAA;AAED,MAAM,OAAO,GAAG;IACd,eAAe,EAAE,0BAA0B;CAC5C,CAAA;AAED,MAAM,KAAK,GAAG,SAAS,CAAA;AACvB,MAAM,KAAK,GAAG,SAAS,CAAA;AACvB,MAAM,WAAW,GAAG,aAAa,CAAA;AAEjC,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,MAAM,EAAE,KAAK;IACb,MAAM,EAAE,KAAK;IACb,MAAM,EAAE,MAAM;IACd,MAAM,EAAE,MAAM;IACd,MAAM,EAAE,MAAM;IACd,MAAM,EAAE,MAAM;IACd,MAAM,EAAE,MAAM;IACd,MAAM,EAAE,MAAM;IACd,MAAM,EAAE,MAAM;CACf,CAAA;AAED,MAAM,MAAM,GAAG;IACb,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,IAAI,EAAE,KAAK;CACZ,CAAA;AAED,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,MAAM;IACN,OAAO;IACP,MAAM,sHACD,MAAM,GACN,MAAM,GACN,GAAG,GACH,KAAK,GACL,IAAI,GACJ,IAAI,KACP,KAAK;QACL,KAAK;QACL,WAAW,KACR,OAAO,CACX;IACD,KAAK,EAAE,CAAC,aAAa,EAAE,gBAAgB,EAAE,WAAW,EAAE,OAAO,EAAE,YAAY,CAAC;IAC5E,KAAK,EAAE;QACL,MAAM,EAAE,MAAM;QACd,KAAK,EAAE,MAAM;KACd;IACD,SAAS,EAAE;QACT,UAAU,EAAE,MAAM;QAClB,SAAS,EAAE,MAAM;QACjB,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,MAAM;QACd,KAAK,EAAE,MAAM;KACd;CACF,CAAA"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
import { theme } from '../Themes';
|
|
4
|
-
const sizes = Object.assign({}, theme.title);
|
|
5
|
-
const TitleStyled = styled.p `
|
|
6
|
-
margin: 0;
|
|
7
|
-
padding: 0;
|
|
8
|
-
font-size: ${props => sizes[props.size]};
|
|
9
|
-
font-weight: ${props => (props.bold ? 800 : 400)};
|
|
10
|
-
line-height: 130%;
|
|
11
|
-
font-family: 'Nunito Sans', sans-serif;
|
|
12
|
-
color: ${props => props.color || 'inherit'}; // Aplicando a cor
|
|
13
|
-
`;
|
|
14
|
-
export const Title = ({ size = 'medium', bold, as = 'h2', color, children }) => {
|
|
15
|
-
return (React.createElement(TitleStyled, { as: as, size: size, bold: bold, color: color }, children));
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Title/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,MAAM,MAAM,mBAAmB,CAAA;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAA;AAUjC,MAAM,KAAK,qBACN,KAAK,CAAC,KAAK,CACf,CAAA;AAED,MAAM,WAAW,GAAG,MAAM,CAAC,CAAC,CAAgB;;;eAG7B,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC;iBACxB,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;;;WAGvC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,IAAI,SAAS;CAC3C,CAAA;AAED,MAAM,CAAC,MAAM,KAAK,GAA6B,CAAC,EAAE,IAAI,GAAG,QAAQ,EAAE,IAAI,EAAE,EAAE,GAAG,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IACvG,OAAO,CACL,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,IACtD,QAAQ,CACG,CACf,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { theme } from '../Themes';
|
|
2
|
-
import { Title } from './index';
|
|
3
|
-
const sizes = theme.title;
|
|
4
|
-
const meta = {
|
|
5
|
-
title: 'Components/Title',
|
|
6
|
-
component: Title,
|
|
7
|
-
parameters: {
|
|
8
|
-
layout: 'centered',
|
|
9
|
-
},
|
|
10
|
-
argTypes: {
|
|
11
|
-
size: {
|
|
12
|
-
control: { type: 'select', options: ['medium', 'large'] },
|
|
13
|
-
description: 'Font size of the title',
|
|
14
|
-
},
|
|
15
|
-
bold: {
|
|
16
|
-
control: 'boolean',
|
|
17
|
-
description: 'Apply bold font weight',
|
|
18
|
-
},
|
|
19
|
-
as: {
|
|
20
|
-
control: { type: 'select', options: ['h1', 'h2', 'h3'] },
|
|
21
|
-
description: 'HTML element to render',
|
|
22
|
-
},
|
|
23
|
-
color: {
|
|
24
|
-
control: 'color',
|
|
25
|
-
description: 'Font color of the title',
|
|
26
|
-
},
|
|
27
|
-
children: {
|
|
28
|
-
control: 'text',
|
|
29
|
-
description: 'Content of the title',
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
export default meta;
|
|
34
|
-
export const LargeBoldTitle = {
|
|
35
|
-
args: {
|
|
36
|
-
size: 'large',
|
|
37
|
-
bold: true,
|
|
38
|
-
as: 'h1',
|
|
39
|
-
color: '#1A3D7F', // Example color
|
|
40
|
-
children: 'Large Bold Title',
|
|
41
|
-
},
|
|
42
|
-
};
|
|
43
|
-
export const MediumTitle = {
|
|
44
|
-
args: {
|
|
45
|
-
size: 'medium',
|
|
46
|
-
bold: false,
|
|
47
|
-
as: 'h2',
|
|
48
|
-
color: '#025FDE', // Example color
|
|
49
|
-
children: 'Medium Title',
|
|
50
|
-
},
|
|
51
|
-
};
|
|
52
|
-
export const CustomColorTitle = {
|
|
53
|
-
args: {
|
|
54
|
-
size: 'large',
|
|
55
|
-
bold: true,
|
|
56
|
-
as: 'h3',
|
|
57
|
-
color: '#FF5733', // Custom color
|
|
58
|
-
children: 'Custom Color Title',
|
|
59
|
-
},
|
|
60
|
-
};
|
|
61
|
-
//# sourceMappingURL=stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stories.js","sourceRoot":"","sources":["../../../src/components/Title/stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAA;AAEzB,MAAM,IAAI,GAAuB;IAC/B,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,KAAK;IAChB,UAAU,EAAE;QACV,MAAM,EAAE,UAAU;KACnB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,EAAE;YACzD,WAAW,EAAE,wBAAwB;SACtC;QACD,IAAI,EAAE;YACJ,OAAO,EAAE,SAAS;YAClB,WAAW,EAAE,wBAAwB;SACtC;QACD,EAAE,EAAE;YACF,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE;YACxD,WAAW,EAAE,wBAAwB;SACtC;QACD,KAAK,EAAE;YACL,OAAO,EAAE,OAAO;YAChB,WAAW,EAAE,yBAAyB;SACvC;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,MAAM;YACf,WAAW,EAAE,sBAAsB;SACpC;KACF;CACF,CAAA;AAED,eAAe,IAAI,CAAA;AAGnB,MAAM,CAAC,MAAM,cAAc,GAAU;IACnC,IAAI,EAAE;QACJ,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,IAAI;QACV,EAAE,EAAE,IAAI;QACR,KAAK,EAAE,SAAS,EAAE,gBAAgB;QAClC,QAAQ,EAAE,kBAAkB;KAC7B;CACF,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAU;IAChC,IAAI,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,KAAK;QACX,EAAE,EAAE,IAAI;QACR,KAAK,EAAE,SAAS,EAAE,gBAAgB;QAClC,QAAQ,EAAE,cAAc;KACzB;CACF,CAAA;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAU;IACrC,IAAI,EAAE;QACJ,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,IAAI;QACV,EAAE,EAAE,IAAI;QACR,KAAK,EAAE,SAAS,EAAE,eAAe;QACjC,QAAQ,EAAE,oBAAoB;KAC/B;CACF,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Types/index.ts"],"names":[],"mappings":""}
|
package/dist/components/index.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export { Banner } from './Banner/index';
|
|
2
|
-
export { Button } from './Button/index';
|
|
3
|
-
export { ButtonRadiusIcon } from './ButtonRadiusIcon/index';
|
|
4
|
-
export { ButtonRound } from './ButtonRound/index';
|
|
5
|
-
export { IconWrapper } from './IconWrapper/index';
|
|
6
|
-
export { Modal } from './Modal/index';
|
|
7
|
-
export { Paragraph } from './Paragraph/index';
|
|
8
|
-
export { Tabs } from './Tabs/index';
|
|
9
|
-
export { theme } from './Themes/index';
|
|
10
|
-
export { Title } from './Title/index';
|
|
11
|
-
export { Paginate } from './Paginate/index';
|
|
12
|
-
export { Table } from './Table/index';
|
|
13
|
-
export { Input } from './Input/index';
|
|
14
|
-
export { EmptyState } from './EmptyState/index';
|
|
15
|
-
export { InputTag } from './InputTag/index';
|
|
16
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA"}
|
package/dist/index.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
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 { DatePicker } from './components/DatePicker/index';
|
|
6
|
-
export { DateRangePicker } from './components/DateRangePicker/index';
|
|
7
|
-
export { IconWrapper } from './components/IconWrapper/index';
|
|
8
|
-
export { Input } from './components/Input/index';
|
|
9
|
-
export { Modal } from './components/Modal/index';
|
|
10
|
-
export { Paginate } from './components/Paginate/index';
|
|
11
|
-
export { Paragraph } from './components/Paragraph/index';
|
|
12
|
-
export { Select } from './components/Select/index';
|
|
13
|
-
export { MultiSelect } from './components/MultiSelect/index';
|
|
14
|
-
export { PortalSelect } from './components/PortalSelect/index';
|
|
15
|
-
export { CountryStateSelect } from './components/CountryStateSelector/index';
|
|
16
|
-
export { Sidebar } from './components/Sidebar/index';
|
|
17
|
-
export { Table } from './components/Table/index';
|
|
18
|
-
export { Tabs } from './components/Tabs/index';
|
|
19
|
-
export { theme } from './components/Themes/index';
|
|
20
|
-
export { Title } from './components/Title/index';
|
|
21
|
-
export { EmptyState } from './components/EmptyState/index';
|
|
22
|
-
export { InputTag } from './components/InputTag/index';
|
|
23
|
-
export * from './components/Types/index';
|
|
24
|
-
export { alertSVG, appsSVG, bellSVG, bindSVG, bookmarkSVG, calendarSVG, checkSVG, chevronDownSVG, chevronLeftSVG, chevronRightSVG, closeSVG, commentSVG, dashboardSVG, docCheckSVG, docDownloadSVG, docSVG, docUploadSVG, dumpSVG, editSVG, editalSVG, eyesSVG, fileSVG, financeSVG, gearSVG, grid2PlusSVG, imageSVG, moneySVG, monitoringSVG, orderSVG, portalSVG, settingSVG, spinSVG, spreadsheetSVG, wavePulseSVG, } from './assets/icon/index';
|
|
25
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAA;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAA;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAA;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAA;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AACtD,cAAc,0BAA0B,CAAA;AAExC,OAAO,EACL,QAAQ,EACR,OAAO,EACP,OAAO,EACP,OAAO,EACP,WAAW,EACX,WAAW,EACX,QAAQ,EACR,cAAc,EACd,cAAc,EACd,eAAe,EACf,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,WAAW,EACX,cAAc,EACd,MAAM,EACN,YAAY,EACZ,OAAO,EACP,OAAO,EACP,SAAS,EACT,OAAO,EACP,OAAO,EACP,UAAU,EACV,OAAO,EACP,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,SAAS,EACT,UAAU,EACV,OAAO,EACP,cAAc,EACd,YAAY,GACb,MAAM,qBAAqB,CAAA"}
|
package/dist/prettier.config.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
module.exports = {
|
|
3
|
-
semi: false,
|
|
4
|
-
tabWidth: 2,
|
|
5
|
-
singleQuote: true,
|
|
6
|
-
trailingComma: 'all',
|
|
7
|
-
arrowParens: 'avoid',
|
|
8
|
-
printWidth: 120,
|
|
9
|
-
jsxSingleQuote: false,
|
|
10
|
-
jsxBracketSameLine: false,
|
|
11
|
-
bracketSpacing: true,
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=prettier.config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prettier.config.js","sourceRoot":"","sources":["../src/prettier.config.js"],"names":[],"mappings":";AAAA,MAAM,CAAC,OAAO,GAAG;IACf,IAAI,EAAE,KAAK;IACX,QAAQ,EAAE,CAAC;IACX,WAAW,EAAE,IAAI;IACjB,aAAa,EAAE,KAAK;IACpB,WAAW,EAAE,OAAO;IACpB,UAAU,EAAE,GAAG;IACf,cAAc,EAAE,KAAK;IACrB,kBAAkB,EAAE,KAAK;IACzB,cAAc,EAAE,IAAI;CACrB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reportWebVitals.d.ts","sourceRoot":"","sources":["../src/reportWebVitals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAE1C,QAAA,MAAM,eAAe,iBAAkB,aAAa,SAWnD,CAAA;AAED,eAAe,eAAe,CAAA"}
|
package/dist/reportWebVitals.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const reportWebVitals = (onPerfEntry) => {
|
|
2
|
-
// if (onPerfEntry && onPerfEntry instanceof Function) {
|
|
3
|
-
// // @ts-ignore
|
|
4
|
-
// import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
|
|
5
|
-
// getCLS(onPerfEntry)
|
|
6
|
-
// getFID(onPerfEntry)
|
|
7
|
-
// getFCP(onPerfEntry)
|
|
8
|
-
// getLCP(onPerfEntry)
|
|
9
|
-
// getTTFB(onPerfEntry)
|
|
10
|
-
// })
|
|
11
|
-
// }
|
|
12
|
-
};
|
|
13
|
-
export default reportWebVitals;
|
|
14
|
-
//# sourceMappingURL=reportWebVitals.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reportWebVitals.js","sourceRoot":"","sources":["../src/reportWebVitals.ts"],"names":[],"mappings":"AAEA,MAAM,eAAe,GAAG,CAAC,WAA2B,EAAE,EAAE;IACtD,wDAAwD;IACxD,kBAAkB;IAClB,iFAAiF;IACjF,0BAA0B;IAC1B,0BAA0B;IAC1B,0BAA0B;IAC1B,0BAA0B;IAC1B,2BAA2B;IAC3B,OAAO;IACP,IAAI;AACN,CAAC,CAAA;AAED,eAAe,eAAe,CAAA"}
|
package/dist/setupTests.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
// jest-dom adds custom jest matchers for asserting on DOM nodes.
|
|
2
|
-
// allows you to do things like:
|
|
3
|
-
// expect(element).toHaveTextContent(/react/i)
|
|
4
|
-
// learn more: https://github.com/testing-library/jest-dom
|
|
5
|
-
import '@testing-library/jest-dom';
|
|
6
|
-
//# sourceMappingURL=setupTests.js.map
|
package/dist/setupTests.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setupTests.js","sourceRoot":"","sources":["../src/setupTests.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,gCAAgC;AAChC,8CAA8C;AAC9C,0DAA0D;AAC1D,OAAO,2BAA2B,CAAC"}
|
package/dist/src/globalStyles.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { createGlobalStyle } from 'styled-components';
|
|
2
|
-
const GlobalStyle = createGlobalStyle `
|
|
3
|
-
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;700&display=swap');
|
|
4
|
-
*{
|
|
5
|
-
margin: 0;
|
|
6
|
-
padding: 0;
|
|
7
|
-
box-sizing: border-box;
|
|
8
|
-
outline: 0;
|
|
9
|
-
}
|
|
10
|
-
body {
|
|
11
|
-
font-family: 'Nunito Sans', sans-serif;
|
|
12
|
-
}
|
|
13
|
-
`;
|
|
14
|
-
export default GlobalStyle;
|
|
15
|
-
//# sourceMappingURL=globalStyles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"globalStyles.js","sourceRoot":"","sources":["../../src/src/globalStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAErD,MAAM,WAAW,GAAG,iBAAiB,CAAA;;;;;;;;;;;CAWpC,CAAA;AAED,eAAe,WAAW,CAAA"}
|
package/dist/stories/Button.js
DELETED
|
@@ -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 './button.css';
|
|
14
|
-
/**
|
|
15
|
-
* Primary UI component for user interaction
|
|
16
|
-
*/
|
|
17
|
-
export const Button = (_a) => {
|
|
18
|
-
var { primary = false, size = 'medium', backgroundColor, label } = _a, props = __rest(_a, ["primary", "size", "backgroundColor", "label"]);
|
|
19
|
-
const mode = primary ? 'storybook-button--primary' : 'storybook-button--secondary';
|
|
20
|
-
return (React.createElement("button", Object.assign({ type: "button", className: ['storybook-button', `storybook-button--${size}`, mode].join(' '), style: { backgroundColor } }, props), label));
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=Button.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../src/stories/Button.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,cAAc,CAAA;AAyBrB;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EAAmF,EAAE,EAAE;QAAvF,EAAE,OAAO,GAAG,KAAK,EAAE,IAAI,GAAG,QAAQ,EAAE,eAAe,EAAE,KAAK,OAAyB,EAApB,KAAK,cAApE,+CAAsE,CAAF;IACzF,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,2BAA2B,CAAC,CAAC,CAAC,6BAA6B,CAAA;IAClF,OAAO,CACL,8CACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,CAAC,kBAAkB,EAAE,qBAAqB,IAAI,EAAE,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAC5E,KAAK,EAAE,EAAE,eAAe,EAAE,IACtB,KAAK,GAER,KAAK,CACC,CACV,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { fn } from '@storybook/test';
|
|
2
|
-
import { Button } from './Button';
|
|
3
|
-
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
|
|
4
|
-
const meta = {
|
|
5
|
-
title: 'Example/Button',
|
|
6
|
-
component: Button,
|
|
7
|
-
parameters: {
|
|
8
|
-
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
|
|
9
|
-
layout: 'centered',
|
|
10
|
-
},
|
|
11
|
-
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
|
|
12
|
-
tags: ['autodocs'],
|
|
13
|
-
// More on argTypes: https://storybook.js.org/docs/api/argtypes
|
|
14
|
-
argTypes: {
|
|
15
|
-
backgroundColor: { control: 'color' },
|
|
16
|
-
},
|
|
17
|
-
// Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args
|
|
18
|
-
args: { onClick: fn() },
|
|
19
|
-
};
|
|
20
|
-
export default meta;
|
|
21
|
-
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
|
|
22
|
-
export const Primary = {
|
|
23
|
-
args: {
|
|
24
|
-
primary: true,
|
|
25
|
-
label: 'Button',
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
export const Secondary = {
|
|
29
|
-
args: {
|
|
30
|
-
label: 'Button',
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
export const Large = {
|
|
34
|
-
args: {
|
|
35
|
-
size: 'large',
|
|
36
|
-
label: 'Button',
|
|
37
|
-
},
|
|
38
|
-
};
|
|
39
|
-
export const Small = {
|
|
40
|
-
args: {
|
|
41
|
-
size: 'small',
|
|
42
|
-
label: 'Button',
|
|
43
|
-
},
|
|
44
|
-
};
|
|
45
|
-
//# sourceMappingURL=Button.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button.stories.js","sourceRoot":"","sources":["../../src/stories/Button.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,iGAAiG;AACjG,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,gBAAgB;IACvB,SAAS,EAAE,MAAM;IACjB,UAAU,EAAE;QACV,4HAA4H;QAC5H,MAAM,EAAE,UAAU;KACnB;IACD,0HAA0H;IAC1H,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,+DAA+D;IAC/D,QAAQ,EAAE;QACR,eAAe,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;KACtC;IACD,wJAAwJ;IACxJ,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE;CACM,CAAC;AAEhC,eAAe,IAAI,CAAC;AAGpB,wFAAwF;AACxF,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE;QACJ,OAAO,EAAE,IAAI;QACb,KAAK,EAAE,QAAQ;KAChB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAU;IAC9B,IAAI,EAAE;QACJ,KAAK,EAAE,QAAQ;KAChB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAU;IAC1B,IAAI,EAAE;QACJ,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,QAAQ;KAChB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAU;IAC1B,IAAI,EAAE;QACJ,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,QAAQ;KAChB;CACF,CAAC"}
|
package/dist/stories/Header.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Button } from './Button';
|
|
3
|
-
import './header.css';
|
|
4
|
-
export const Header = ({ user, onLogin, onLogout, onCreateAccount }) => (React.createElement("header", null,
|
|
5
|
-
React.createElement("div", { className: "storybook-header" },
|
|
6
|
-
React.createElement("div", null,
|
|
7
|
-
React.createElement("svg", { width: "32", height: "32", viewBox: "0 0 32 32", xmlns: "http://www.w3.org/2000/svg" },
|
|
8
|
-
React.createElement("g", { fill: "none", fillRule: "evenodd" },
|
|
9
|
-
React.createElement("path", { d: "M10 0h12a10 10 0 0110 10v12a10 10 0 01-10 10H10A10 10 0 010 22V10A10 10 0 0110 0z", fill: "#FFF" }),
|
|
10
|
-
React.createElement("path", { d: "M5.3 10.6l10.4 6v11.1l-10.4-6v-11zm11.4-6.2l9.7 5.5-9.7 5.6V4.4z", fill: "#555AB9" }),
|
|
11
|
-
React.createElement("path", { d: "M27.2 10.6v11.2l-10.5 6V16.5l10.5-6zM15.7 4.4v11L6 10l9.7-5.5z", fill: "#91BAF8" }))),
|
|
12
|
-
React.createElement("h1", null, "Acme")),
|
|
13
|
-
React.createElement("div", null, user ? (React.createElement(React.Fragment, null,
|
|
14
|
-
React.createElement("span", { className: "welcome" },
|
|
15
|
-
"Welcome, ",
|
|
16
|
-
React.createElement("b", null, user.name),
|
|
17
|
-
"!"),
|
|
18
|
-
React.createElement(Button, { size: "small", onClick: onLogout, label: "Log out" }))) : (React.createElement(React.Fragment, null,
|
|
19
|
-
React.createElement(Button, { size: "small", onClick: onLogin, label: "Log in" }),
|
|
20
|
-
React.createElement(Button, { primary: true, size: "small", onClick: onCreateAccount, label: "Sign up" })))))));
|
|
21
|
-
//# sourceMappingURL=Header.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../src/stories/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,cAAc,CAAC;AAatB,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAe,EAAE,EAAE,CAAC,CACnF;IACE,6BAAK,SAAS,EAAC,kBAAkB;QAC/B;YACE,6BAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,4BAA4B;gBAChF,2BAAG,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAC,SAAS;oBAC/B,8BACE,CAAC,EAAC,mFAAmF,EACrF,IAAI,EAAC,MAAM,GACX;oBACF,8BACE,CAAC,EAAC,kEAAkE,EACpE,IAAI,EAAC,SAAS,GACd;oBACF,8BACE,CAAC,EAAC,gEAAgE,EAClE,IAAI,EAAC,SAAS,GACd,CACA,CACA;YACN,uCAAa,CACT;QACN,iCACG,IAAI,CAAC,CAAC,CAAC,CACN;YACE,8BAAM,SAAS,EAAC,SAAS;;gBACd,+BAAI,IAAI,CAAC,IAAI,CAAK;oBACtB;YACP,oBAAC,MAAM,IAAC,IAAI,EAAC,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAC,SAAS,GAAG,CACzD,CACJ,CAAC,CAAC,CAAC,CACF;YACE,oBAAC,MAAM,IAAC,IAAI,EAAC,OAAO,EAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAC,QAAQ,GAAG;YACxD,oBAAC,MAAM,IAAC,OAAO,QAAC,IAAI,EAAC,OAAO,EAAC,OAAO,EAAE,eAAe,EAAE,KAAK,EAAC,SAAS,GAAG,CACxE,CACJ,CACG,CACF,CACC,CACV,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { fn } from '@storybook/test';
|
|
2
|
-
import { Header } from './Header';
|
|
3
|
-
const meta = {
|
|
4
|
-
title: 'Example/Header',
|
|
5
|
-
component: Header,
|
|
6
|
-
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
|
|
7
|
-
tags: ['autodocs'],
|
|
8
|
-
parameters: {
|
|
9
|
-
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
|
|
10
|
-
layout: 'fullscreen',
|
|
11
|
-
},
|
|
12
|
-
args: {
|
|
13
|
-
onLogin: fn(),
|
|
14
|
-
onLogout: fn(),
|
|
15
|
-
onCreateAccount: fn(),
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
export default meta;
|
|
19
|
-
export const LoggedIn = {
|
|
20
|
-
args: {
|
|
21
|
-
user: {
|
|
22
|
-
name: 'Jane Doe',
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
};
|
|
26
|
-
export const LoggedOut = {};
|
|
27
|
-
//# sourceMappingURL=Header.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Header.stories.js","sourceRoot":"","sources":["../../src/stories/Header.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAErC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,gBAAgB;IACvB,SAAS,EAAE,MAAM;IACjB,0HAA0H;IAC1H,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE;QACV,2FAA2F;QAC3F,MAAM,EAAE,YAAY;KACrB;IACD,IAAI,EAAE;QACJ,OAAO,EAAE,EAAE,EAAE;QACb,QAAQ,EAAE,EAAE,EAAE;QACd,eAAe,EAAE,EAAE,EAAE;KACtB;CAC4B,CAAC;AAEhC,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,MAAM,QAAQ,GAAU;IAC7B,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,IAAI,EAAE,UAAU;SACjB;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAU,EAAE,CAAC"}
|
package/dist/stories/Page.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Header } from './Header';
|
|
3
|
-
import './page.css';
|
|
4
|
-
export const Page = () => {
|
|
5
|
-
const [user, setUser] = React.useState();
|
|
6
|
-
return (React.createElement("article", null,
|
|
7
|
-
React.createElement(Header, { user: user, onLogin: () => setUser({ name: 'Jane Doe' }), onLogout: () => setUser(undefined), onCreateAccount: () => setUser({ name: 'Jane Doe' }) }),
|
|
8
|
-
React.createElement("section", { className: "storybook-page" },
|
|
9
|
-
React.createElement("h2", null, "Pages in Storybook"),
|
|
10
|
-
React.createElement("p", null,
|
|
11
|
-
"We recommend building UIs with a",
|
|
12
|
-
' ',
|
|
13
|
-
React.createElement("a", { href: "https://componentdriven.org", target: "_blank", rel: "noopener noreferrer" },
|
|
14
|
-
React.createElement("strong", null, "component-driven")),
|
|
15
|
-
' ',
|
|
16
|
-
"process starting with atomic components and ending with pages."),
|
|
17
|
-
React.createElement("p", null, "Render pages with mock data. This makes it easy to build and review page states without needing to navigate to them in your app. Here are some handy patterns for managing page data in Storybook:"),
|
|
18
|
-
React.createElement("ul", null,
|
|
19
|
-
React.createElement("li", null, "Use a higher-level connected component. Storybook helps you compose such data from the \"args\" of child component stories"),
|
|
20
|
-
React.createElement("li", null, "Assemble data in the page component from your services. You can mock these services out using Storybook.")),
|
|
21
|
-
React.createElement("p", null,
|
|
22
|
-
"Get a guided tutorial on component-driven development at",
|
|
23
|
-
' ',
|
|
24
|
-
React.createElement("a", { href: "https://storybook.js.org/tutorials/", target: "_blank", rel: "noopener noreferrer" }, "Storybook tutorials"),
|
|
25
|
-
". Read more in the",
|
|
26
|
-
' ',
|
|
27
|
-
React.createElement("a", { href: "https://storybook.js.org/docs", target: "_blank", rel: "noopener noreferrer" }, "docs"),
|
|
28
|
-
"."),
|
|
29
|
-
React.createElement("div", { className: "tip-wrapper" },
|
|
30
|
-
React.createElement("span", { className: "tip" }, "Tip"),
|
|
31
|
-
" Adjust the width of the canvas with the",
|
|
32
|
-
' ',
|
|
33
|
-
React.createElement("svg", { width: "10", height: "10", viewBox: "0 0 12 12", xmlns: "http://www.w3.org/2000/svg" },
|
|
34
|
-
React.createElement("g", { fill: "none", fillRule: "evenodd" },
|
|
35
|
-
React.createElement("path", { d: "M1.5 5.2h4.8c.3 0 .5.2.5.4v5.1c-.1.2-.3.3-.4.3H1.4a.5.5 0 01-.5-.4V5.7c0-.3.2-.5.5-.5zm0-2.1h6.9c.3 0 .5.2.5.4v7a.5.5 0 01-1 0V4H1.5a.5.5 0 010-1zm0-2.1h9c.3 0 .5.2.5.4v9.1a.5.5 0 01-1 0V2H1.5a.5.5 0 010-1zm4.3 5.2H2V10h3.8V6.2z", id: "a", fill: "#999" }))),
|
|
36
|
-
"Viewports addon in the toolbar"))));
|
|
37
|
-
};
|
|
38
|
-
//# sourceMappingURL=Page.js.map
|
package/dist/stories/Page.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Page.js","sourceRoot":"","sources":["../../src/stories/Page.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,YAAY,CAAC;AAMpB,MAAM,CAAC,MAAM,IAAI,GAAa,GAAG,EAAE;IACjC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAQ,CAAC;IAE/C,OAAO,CACL;QACE,oBAAC,MAAM,IACL,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,EAC5C,QAAQ,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,EAClC,eAAe,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,GACpD;QAEF,iCAAS,SAAS,EAAC,gBAAgB;YACjC,qDAA2B;YAC3B;;gBACmC,GAAG;gBACpC,2BAAG,IAAI,EAAC,6BAA6B,EAAC,MAAM,EAAC,QAAQ,EAAC,GAAG,EAAC,qBAAqB;oBAC7E,uDAAiC,CAC/B;gBAAC,GAAG;iFAEN;YACJ,oOAII;YACJ;gBACE,6JAGK;gBACL,2IAGK,CACF;YACL;;gBAC2D,GAAG;gBAC5D,2BAAG,IAAI,EAAC,qCAAqC,EAAC,MAAM,EAAC,QAAQ,EAAC,GAAG,EAAC,qBAAqB,0BAEnF;;gBACe,GAAG;gBACtB,2BAAG,IAAI,EAAC,+BAA+B,EAAC,MAAM,EAAC,QAAQ,EAAC,GAAG,EAAC,qBAAqB,WAE7E;oBAEF;YACJ,6BAAK,SAAS,EAAC,aAAa;gBAC1B,8BAAM,SAAS,EAAC,KAAK,UAAW;;gBAAyC,GAAG;gBAC5E,6BAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,4BAA4B;oBAChF,2BAAG,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAC,SAAS;wBAC/B,8BACE,CAAC,EAAC,sOAAsO,EACxO,EAAE,EAAC,GAAG,EACN,IAAI,EAAC,MAAM,GACX,CACA,CACA;iDAEF,CACE,CACF,CACX,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import { within, userEvent, expect } from '@storybook/test';
|
|
11
|
-
import { Page } from './Page';
|
|
12
|
-
const meta = {
|
|
13
|
-
title: 'Example/Page',
|
|
14
|
-
component: Page,
|
|
15
|
-
parameters: {
|
|
16
|
-
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
|
|
17
|
-
layout: 'fullscreen',
|
|
18
|
-
},
|
|
19
|
-
};
|
|
20
|
-
export default meta;
|
|
21
|
-
export const LoggedOut = {};
|
|
22
|
-
// More on interaction testing: https://storybook.js.org/docs/writing-tests/interaction-testing
|
|
23
|
-
export const LoggedIn = {
|
|
24
|
-
play: (_a) => __awaiter(void 0, [_a], void 0, function* ({ canvasElement }) {
|
|
25
|
-
const canvas = within(canvasElement);
|
|
26
|
-
const loginButton = canvas.getByRole('button', { name: /Log in/i });
|
|
27
|
-
yield expect(loginButton).toBeInTheDocument();
|
|
28
|
-
yield userEvent.click(loginButton);
|
|
29
|
-
yield expect(loginButton).not.toBeInTheDocument();
|
|
30
|
-
const logoutButton = canvas.getByRole('button', { name: /Log out/i });
|
|
31
|
-
yield expect(logoutButton).toBeInTheDocument();
|
|
32
|
-
}),
|
|
33
|
-
};
|
|
34
|
-
//# sourceMappingURL=Page.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Page.stories.js","sourceRoot":"","sources":["../../src/stories/Page.stories.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAE5D,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,cAAc;IACrB,SAAS,EAAE,IAAI;IACf,UAAU,EAAE;QACV,2FAA2F;QAC3F,MAAM,EAAE,YAAY;KACrB;CAC0B,CAAC;AAE9B,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,MAAM,SAAS,GAAU,EAAE,CAAC;AAEnC,+FAA+F;AAC/F,MAAM,CAAC,MAAM,QAAQ,GAAU;IAC7B,IAAI,EAAE,KAA0B,EAAE,4CAArB,EAAE,aAAa,EAAE;QAC5B,MAAM,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;QACrC,MAAM,WAAW,GAAG,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;QACpE,MAAM,MAAM,CAAC,WAAW,CAAC,CAAC,iBAAiB,EAAE,CAAC;QAC9C,MAAM,SAAS,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QACnC,MAAM,MAAM,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,iBAAiB,EAAE,CAAC;QAElD,MAAM,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;QACtE,MAAM,MAAM,CAAC,YAAY,CAAC,CAAC,iBAAiB,EAAE,CAAC;IACjD,CAAC,CAAA;CACF,CAAC"}
|
package/dist/utils/constanst.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constanst.js","sourceRoot":"","sources":["../../src/utils/constanst.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAA;AACxG,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAA"}
|
package/src/reportWebVitals.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ReportHandler } from 'web-vitals'
|
|
2
|
-
|
|
3
|
-
const reportWebVitals = (onPerfEntry?: ReportHandler) => {
|
|
4
|
-
// if (onPerfEntry && onPerfEntry instanceof Function) {
|
|
5
|
-
// // @ts-ignore
|
|
6
|
-
// import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
|
|
7
|
-
// getCLS(onPerfEntry)
|
|
8
|
-
// getFID(onPerfEntry)
|
|
9
|
-
// getFCP(onPerfEntry)
|
|
10
|
-
// getLCP(onPerfEntry)
|
|
11
|
-
// getTTFB(onPerfEntry)
|
|
12
|
-
// })
|
|
13
|
-
// }
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export default reportWebVitals
|