impact-ui 0.1.1 → 0.1.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/package.json +7 -3
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -43
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +0 -25
- package/public/robots.txt +0 -3
- package/src/App.css +0 -30
- package/src/App.js +0 -46
- package/src/assets/images/Logo.svg +0 -11
- package/src/assets/images/location.png +0 -0
- package/src/components/global-components/Grids-spacing/grid-spacing.js +0 -12
- package/src/components/global-components/button/button.js +0 -129
- package/src/components/global-components/common-misc-components/common-misc-style.js +0 -150
- package/src/components/global-components/common-misc-components/common-misc.js +0 -50
- package/src/components/global-components/icons-images/icons.js +0 -13
- package/src/components/global-components/inputbox/inputbox.js +0 -142
- package/src/index.css +0 -13
- package/src/index.js +0 -13
- package/src/lib/components/global-components/button/button-style.js +0 -71
- package/src/lib/components/global-components/button/button.js +0 -20
- package/src/lib/components/global-components/inputbox/inputbox-style.js +0 -70
- package/src/lib/components/global-components/inputbox/inputbox.js +0 -23
- package/src/lib/index.js +0 -40
- package/webpack.config.js +0 -26
package/package.json
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "impact-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"private": false,
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "build/lib/index.js",
|
|
6
|
+
"module": "build/lib/index.js",
|
|
7
|
+
"files": [
|
|
8
|
+
"build"
|
|
9
|
+
],
|
|
6
10
|
"dependencies": {
|
|
7
11
|
"@testing-library/jest-dom": "^5.16.5",
|
|
8
12
|
"@testing-library/react": "^13.4.0",
|
|
9
13
|
"@testing-library/user-event": "^13.5.0",
|
|
10
|
-
"impact-ui": "^0.1.
|
|
14
|
+
"impact-ui": "^0.1.1",
|
|
11
15
|
"react": "^18.2.0",
|
|
12
16
|
"react-dom": "^18.2.0",
|
|
13
17
|
"react-scripts": "5.0.1",
|
package/public/favicon.ico
DELETED
|
Binary file
|
package/public/index.html
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
-
<meta name="theme-color" content="#000000" />
|
|
8
|
-
<meta
|
|
9
|
-
name="description"
|
|
10
|
-
content="Web site created using create-react-app"
|
|
11
|
-
/>
|
|
12
|
-
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
|
13
|
-
<!--
|
|
14
|
-
manifest.json provides metadata used when your web app is installed on a
|
|
15
|
-
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
|
16
|
-
-->
|
|
17
|
-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
|
18
|
-
<!--
|
|
19
|
-
Notice the use of %PUBLIC_URL% in the tags above.
|
|
20
|
-
It will be replaced with the URL of the `public` folder during the build.
|
|
21
|
-
Only files inside the `public` folder can be referenced from the HTML.
|
|
22
|
-
|
|
23
|
-
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
|
|
24
|
-
work correctly both with client-side routing and a non-root public URL.
|
|
25
|
-
Learn how to configure a non-root public URL by running `npm run build`.
|
|
26
|
-
-->
|
|
27
|
-
<title>React App</title>
|
|
28
|
-
</head>
|
|
29
|
-
<body>
|
|
30
|
-
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
31
|
-
<div id="root"></div>
|
|
32
|
-
<!--
|
|
33
|
-
This HTML file is a template.
|
|
34
|
-
If you open it directly in the browser, you will see an empty page.
|
|
35
|
-
|
|
36
|
-
You can add webfonts, meta tags, or analytics to this file.
|
|
37
|
-
The build step will place the bundled scripts into the <body> tag.
|
|
38
|
-
|
|
39
|
-
To begin the development, run `npm start` or `yarn start`.
|
|
40
|
-
To create a production bundle, use `npm run build` or `yarn build`.
|
|
41
|
-
-->
|
|
42
|
-
</body>
|
|
43
|
-
</html>
|
package/public/logo192.png
DELETED
|
Binary file
|
package/public/logo512.png
DELETED
|
Binary file
|
package/public/manifest.json
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"short_name": "React App",
|
|
3
|
-
"name": "Create React App Sample",
|
|
4
|
-
"icons": [
|
|
5
|
-
{
|
|
6
|
-
"src": "favicon.ico",
|
|
7
|
-
"sizes": "64x64 32x32 24x24 16x16",
|
|
8
|
-
"type": "image/x-icon"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"src": "logo192.png",
|
|
12
|
-
"type": "image/png",
|
|
13
|
-
"sizes": "192x192"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"src": "logo512.png",
|
|
17
|
-
"type": "image/png",
|
|
18
|
-
"sizes": "512x512"
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
"start_url": ".",
|
|
22
|
-
"display": "standalone",
|
|
23
|
-
"theme_color": "#000000",
|
|
24
|
-
"background_color": "#ffffff"
|
|
25
|
-
}
|
package/public/robots.txt
DELETED
package/src/App.css
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
.App {
|
|
2
|
-
text-align: center;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.App-logo {
|
|
6
|
-
height: 40vmin;
|
|
7
|
-
pointer-events: none;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&display=swap');
|
|
11
|
-
body{
|
|
12
|
-
font-family: 'Rubik', sans-serif;
|
|
13
|
-
font-weight: 400;
|
|
14
|
-
}
|
|
15
|
-
h1,h2,h3,h4,h5,h6,p{
|
|
16
|
-
padding: 0;
|
|
17
|
-
margin: 0;
|
|
18
|
-
text-align: left;
|
|
19
|
-
}
|
|
20
|
-
input{
|
|
21
|
-
margin: 0;
|
|
22
|
-
padding: 0;
|
|
23
|
-
}
|
|
24
|
-
input:focus{
|
|
25
|
-
outline: none;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
::placeholder {
|
|
29
|
-
color: #C4C4C4;
|
|
30
|
-
}
|
package/src/App.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { createGlobalStyle } from 'styled-components';
|
|
3
|
-
import './App.css';
|
|
4
|
-
import ButtonSection from './components/global-components/button/button';
|
|
5
|
-
import PortalLayout from './components/global-components/common-misc-components/common-misc';
|
|
6
|
-
import { StyledBodyMainContainer } from './components/global-components/common-misc-components/common-misc-style';
|
|
7
|
-
import InputBox from './components/global-components/inputbox/inputbox';
|
|
8
|
-
// import {StyledlogoImageContainer}from './components/global-components/icons-images/icons';
|
|
9
|
-
const GlobalStyle = createGlobalStyle`
|
|
10
|
-
button{
|
|
11
|
-
font-family: 'Rubik', sans-serif;
|
|
12
|
-
}
|
|
13
|
-
`
|
|
14
|
-
|
|
15
|
-
function App() {
|
|
16
|
-
return (
|
|
17
|
-
|
|
18
|
-
<div className="App">
|
|
19
|
-
<GlobalStyle />
|
|
20
|
-
|
|
21
|
-
{/* Header starts here */}
|
|
22
|
-
|
|
23
|
-
<PortalLayout />
|
|
24
|
-
|
|
25
|
-
{/* Header ends here */}
|
|
26
|
-
|
|
27
|
-
{/* Body starts here */}
|
|
28
|
-
|
|
29
|
-
<StyledBodyMainContainer>
|
|
30
|
-
|
|
31
|
-
<ButtonSection />
|
|
32
|
-
|
|
33
|
-
<InputBox />
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
</StyledBodyMainContainer>
|
|
37
|
-
|
|
38
|
-
{/* Body ends here */}
|
|
39
|
-
|
|
40
|
-
</div>
|
|
41
|
-
);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
export default App;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" standalone="no"?>
|
|
2
|
-
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
|
|
3
|
-
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
|
4
|
-
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
|
|
5
|
-
width="330.000000pt" height="150.000000pt" viewBox="0 0 330.000000 150.000000"
|
|
6
|
-
preserveAspectRatio="xMidYMid meet">
|
|
7
|
-
|
|
8
|
-
<g transform="translate(0.000000,150.000000) scale(0.100000,-0.100000)"
|
|
9
|
-
fill="#000000" stroke="none">
|
|
10
|
-
</g>
|
|
11
|
-
</svg>
|
|
Binary file
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
StyledButton,
|
|
4
|
-
StyledPrimaryButton,
|
|
5
|
-
StyledSecondaryButton,
|
|
6
|
-
StyledDisabledButton,
|
|
7
|
-
StyledURLButton,
|
|
8
|
-
StyledSecondaryDiasabledButton,
|
|
9
|
-
StyledDisabledURLButton,
|
|
10
|
-
} from "impact-ui";
|
|
11
|
-
import {
|
|
12
|
-
StyledHeadingCommon,
|
|
13
|
-
StyledMiscPara,
|
|
14
|
-
BoxContainer,
|
|
15
|
-
StyledDSHeader,
|
|
16
|
-
LeftLogoContainer,
|
|
17
|
-
StyledURLContainer,
|
|
18
|
-
StyledULHeaderList,
|
|
19
|
-
StyledHeaderLI,
|
|
20
|
-
StyledBodyMainContainer,
|
|
21
|
-
StyledCodeBoxContainer,
|
|
22
|
-
StyledCodeBoxMainContainer,
|
|
23
|
-
StyledCodeLineContainer,
|
|
24
|
-
StyledCodeLineContainerTag,
|
|
25
|
-
StyledCodeLineContainerTagContainer,
|
|
26
|
-
} from "./../../../components/global-components/common-misc-components/common-misc-style";
|
|
27
|
-
import {
|
|
28
|
-
SmPadding,
|
|
29
|
-
MedPadding,
|
|
30
|
-
LargePadding,
|
|
31
|
-
} from "./../../../components/global-components/Grids-spacing/grid-spacing";
|
|
32
|
-
const ButtonSection = () => {
|
|
33
|
-
return (
|
|
34
|
-
<div>
|
|
35
|
-
<LargePadding>
|
|
36
|
-
<StyledHeadingCommon>01: CTA BUTTONS</StyledHeadingCommon>
|
|
37
|
-
<StyledMiscPara>
|
|
38
|
-
A call to action (CTA) is a standard way to prompt user to click on
|
|
39
|
-
it, in form or button or URL. Label displayed on CTA must be a single
|
|
40
|
-
word and preferably a verb. The label must be able to communicate to
|
|
41
|
-
the users he actions they are going to take and what effect it will
|
|
42
|
-
have on the content being viewed.
|
|
43
|
-
</StyledMiscPara>
|
|
44
|
-
<StyledMiscPara>
|
|
45
|
-
A primary CTA button is to be placed when the button represents a
|
|
46
|
-
major action performed on the page. This CTA is at highest hierarchy /
|
|
47
|
-
importance on the page. Usually represents actions conclusive in
|
|
48
|
-
nature.
|
|
49
|
-
</StyledMiscPara>
|
|
50
|
-
</LargePadding>
|
|
51
|
-
<BoxContainer>
|
|
52
|
-
<LargePadding>
|
|
53
|
-
<StyledButton>Button</StyledButton>
|
|
54
|
-
</LargePadding>
|
|
55
|
-
|
|
56
|
-
<StyledPrimaryButton>Primary Button</StyledPrimaryButton>
|
|
57
|
-
|
|
58
|
-
<LargePadding>
|
|
59
|
-
<StyledSecondaryButton>Secondary Button</StyledSecondaryButton>
|
|
60
|
-
</LargePadding>
|
|
61
|
-
<LargePadding>
|
|
62
|
-
<StyledSecondaryDiasabledButton>
|
|
63
|
-
Secondary Disabled Button
|
|
64
|
-
</StyledSecondaryDiasabledButton>
|
|
65
|
-
</LargePadding>
|
|
66
|
-
<LargePadding>
|
|
67
|
-
<StyledDisabledButton>Disabled Button</StyledDisabledButton>
|
|
68
|
-
</LargePadding>
|
|
69
|
-
|
|
70
|
-
<LargePadding>
|
|
71
|
-
<StyledURLButton>This is a Tertiary URL</StyledURLButton>
|
|
72
|
-
</LargePadding>
|
|
73
|
-
<LargePadding>
|
|
74
|
-
<StyledDisabledURLButton>
|
|
75
|
-
This is a Tertiary URL
|
|
76
|
-
</StyledDisabledURLButton>
|
|
77
|
-
</LargePadding>
|
|
78
|
-
</BoxContainer>
|
|
79
|
-
|
|
80
|
-
<LargePadding>
|
|
81
|
-
<StyledCodeBoxMainContainer>
|
|
82
|
-
<StyledCodeBoxContainer>
|
|
83
|
-
<StyledCodeLineContainer>
|
|
84
|
-
import React from 'react';
|
|
85
|
-
</StyledCodeLineContainer>
|
|
86
|
-
<StyledCodeLineContainer>
|
|
87
|
-
import styled from 'styled-components';
|
|
88
|
-
</StyledCodeLineContainer>
|
|
89
|
-
<StyledCodeLineContainer>
|
|
90
|
-
import StyledButton, StyledPrimaryButton,StyledSecondaryButton,
|
|
91
|
-
StyledDisabledButton, StyledURLButton,
|
|
92
|
-
StyledSecondaryDiasabledButton, StyledDisabledURLButton from
|
|
93
|
-
'./components';
|
|
94
|
-
</StyledCodeLineContainer>
|
|
95
|
-
<StyledCodeLineContainerTagContainer>
|
|
96
|
-
<StyledCodeLineContainerTag>
|
|
97
|
-
{`<StyledPrimaryButton>Primary Button</StyledPrimaryButton>`}
|
|
98
|
-
</StyledCodeLineContainerTag>
|
|
99
|
-
<StyledCodeLineContainerTag>
|
|
100
|
-
{` <StyledSecondaryButton>Secondary Button</StyledSecondaryButton>`}
|
|
101
|
-
</StyledCodeLineContainerTag>
|
|
102
|
-
<StyledCodeLineContainerTag>
|
|
103
|
-
{`<StyledSecondaryDiasabledButton>Secondary Disabled Button</StyledSecondaryDiasabledButton>`}
|
|
104
|
-
</StyledCodeLineContainerTag>
|
|
105
|
-
<StyledCodeLineContainerTag>
|
|
106
|
-
{`<StyledDisabledButton>Disabled Button</StyledDisabledButton>`}
|
|
107
|
-
</StyledCodeLineContainerTag>
|
|
108
|
-
<StyledCodeLineContainerTag>
|
|
109
|
-
{`<StyledURLButton>This is a Tertiary URL</StyledURLButton>`}
|
|
110
|
-
</StyledCodeLineContainerTag>
|
|
111
|
-
<StyledCodeLineContainerTag>
|
|
112
|
-
{`<StyledDisabledURLButton>This is a Tertiary URL</StyledDisabledURLButton>`}
|
|
113
|
-
</StyledCodeLineContainerTag>
|
|
114
|
-
</StyledCodeLineContainerTagContainer>
|
|
115
|
-
{/* <LargePadding>
|
|
116
|
-
<code>
|
|
117
|
-
{ `<StyledPrimaryButton>Primary Button</StyledPrimaryButton>`}
|
|
118
|
-
</code>
|
|
119
|
-
</LargePadding> */}
|
|
120
|
-
</StyledCodeBoxContainer>
|
|
121
|
-
</StyledCodeBoxMainContainer>
|
|
122
|
-
</LargePadding>
|
|
123
|
-
|
|
124
|
-
{/* Box copy container */}
|
|
125
|
-
</div>
|
|
126
|
-
);
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
export default ButtonSection;
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import styled,{ css } from 'styled-components';
|
|
3
|
-
export const StyledHeadingCommon = styled.h2`
|
|
4
|
-
color: #033162;
|
|
5
|
-
font-size: 20px;
|
|
6
|
-
font-weight: 500;
|
|
7
|
-
text-align: left;
|
|
8
|
-
border-bottom: 1px solid #d4d4d4;
|
|
9
|
-
padding-bottom: 15px;
|
|
10
|
-
`;
|
|
11
|
-
|
|
12
|
-
export const StyledMiscPara = styled.p`
|
|
13
|
-
font-size: 16px;
|
|
14
|
-
color: #1d1d1d;
|
|
15
|
-
margin-top: 20px;
|
|
16
|
-
line-height: 26px;
|
|
17
|
-
`;
|
|
18
|
-
|
|
19
|
-
export const BoxContainer = styled.div`
|
|
20
|
-
padding: 15px;
|
|
21
|
-
border: 1px solid #d4d4d4;
|
|
22
|
-
margin: 15px;
|
|
23
|
-
display: flex;
|
|
24
|
-
align-items: center;
|
|
25
|
-
`;
|
|
26
|
-
|
|
27
|
-
export const StyledDSHeader = styled.header`
|
|
28
|
-
height: 60px;
|
|
29
|
-
padding: 0 20px;
|
|
30
|
-
box-sizing: border-box;
|
|
31
|
-
display: flex;
|
|
32
|
-
justify-content: space-between;
|
|
33
|
-
align-items: center;
|
|
34
|
-
position: absolute;
|
|
35
|
-
left: 0;
|
|
36
|
-
right: 0;
|
|
37
|
-
top: 0;
|
|
38
|
-
z-index: 9999;
|
|
39
|
-
background: #0055AF;
|
|
40
|
-
`;
|
|
41
|
-
|
|
42
|
-
export const LeftLogoContainer = styled.div`
|
|
43
|
-
font-size: 18px;
|
|
44
|
-
color: #fff;
|
|
45
|
-
font-weight: 500;
|
|
46
|
-
cursor: pointer;
|
|
47
|
-
`;
|
|
48
|
-
|
|
49
|
-
export const StyledURLContainer = styled.div``;
|
|
50
|
-
|
|
51
|
-
export const StyledULHeaderList = styled.ul`
|
|
52
|
-
display: flex;
|
|
53
|
-
`;
|
|
54
|
-
|
|
55
|
-
export const StyledHeaderLI = styled.li`
|
|
56
|
-
color: #fff;
|
|
57
|
-
list-style: none;
|
|
58
|
-
cursor: pointer;
|
|
59
|
-
margin-left: 15px;
|
|
60
|
-
${props => props.UrlActive && css`
|
|
61
|
-
font-weight: 600;
|
|
62
|
-
text-decoration: underline;
|
|
63
|
-
padding-bottom: 4px;
|
|
64
|
-
`}
|
|
65
|
-
`;
|
|
66
|
-
|
|
67
|
-
export const StyledBodyMainContainer = styled.div`
|
|
68
|
-
position: absolute;
|
|
69
|
-
left: 200px;
|
|
70
|
-
right: 0;
|
|
71
|
-
top: 60px;
|
|
72
|
-
bottom: 0;
|
|
73
|
-
overflow: auto;
|
|
74
|
-
border-left: 1px solid #d4d4d4;
|
|
75
|
-
`;
|
|
76
|
-
|
|
77
|
-
export const StyledCodeBoxContainer = styled.code`
|
|
78
|
-
padding: 20px;
|
|
79
|
-
background: #F4F5F7;
|
|
80
|
-
display: block;
|
|
81
|
-
border: 1px solid #d4d4d4;
|
|
82
|
-
border-radius: 3px;
|
|
83
|
-
`;
|
|
84
|
-
|
|
85
|
-
export const StyledCodeBoxMainContainer = styled.div`
|
|
86
|
-
position: relative;
|
|
87
|
-
`;
|
|
88
|
-
|
|
89
|
-
export const StyledCodeLineContainer = styled.div`
|
|
90
|
-
text-align: left;
|
|
91
|
-
margin-bottom: 10px;
|
|
92
|
-
font-size: 14px;
|
|
93
|
-
`;
|
|
94
|
-
|
|
95
|
-
export const StyledAsideNav = styled.nav`
|
|
96
|
-
width: 200px;
|
|
97
|
-
position: absolute;
|
|
98
|
-
top: 60px;
|
|
99
|
-
bottom: 0;
|
|
100
|
-
left: 0;
|
|
101
|
-
border-right: 1px solid #d4d4d4;
|
|
102
|
-
`;
|
|
103
|
-
|
|
104
|
-
export const StyledAsideMainHeading = styled.div`
|
|
105
|
-
font-size: 14px;
|
|
106
|
-
|
|
107
|
-
padding: 10px 0px;
|
|
108
|
-
text-align: left;
|
|
109
|
-
padding-left: 20px;
|
|
110
|
-
font-weight: 500;
|
|
111
|
-
letter-spacing: 0.3px;
|
|
112
|
-
`;
|
|
113
|
-
|
|
114
|
-
export const StyledAsideUL = styled.ul`
|
|
115
|
-
padding: 0;
|
|
116
|
-
margin: 0;
|
|
117
|
-
|
|
118
|
-
`;
|
|
119
|
-
|
|
120
|
-
export const StyledAsideLi = styled.li`
|
|
121
|
-
list-style: none;
|
|
122
|
-
text-align: left;
|
|
123
|
-
padding: 10px 0px;
|
|
124
|
-
font-size: 14px;
|
|
125
|
-
cursor: pointer;
|
|
126
|
-
color: #1d1d1d;
|
|
127
|
-
transition: all 300ms ease-in-out 0s;
|
|
128
|
-
padding-left: 20px;
|
|
129
|
-
${props => props.StyleURLActiveAside && css`
|
|
130
|
-
font-weight: 600;
|
|
131
|
-
color: #0055AF;
|
|
132
|
-
background: #e9f2ff;
|
|
133
|
-
`}
|
|
134
|
-
&:hover{
|
|
135
|
-
color: #0055AF;
|
|
136
|
-
background: #f4f5f7;
|
|
137
|
-
}
|
|
138
|
-
`;
|
|
139
|
-
|
|
140
|
-
export const StyledCodeLineContainerTag = styled.div`
|
|
141
|
-
font-weight: 500;
|
|
142
|
-
color: #033162;
|
|
143
|
-
text-align: left;
|
|
144
|
-
font-weight: 600;
|
|
145
|
-
margin-bottom: 10px;
|
|
146
|
-
`;
|
|
147
|
-
|
|
148
|
-
export const StyledCodeLineContainerTagContainer = styled.div`
|
|
149
|
-
margin-top: 40px;
|
|
150
|
-
`;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import {StyledHeadingCommon,StyledMiscPara,BoxContainer,StyledDSHeader, LeftLogoContainer,StyledURLContainer,StyledULHeaderList,StyledHeaderLI,StyledBodyMainContainer,StyledCodeBoxContainer,StyledCodeBoxMainContainer, StyledCodeLineContainer, StyledAsideNav, StyledAsideMainHeading,StyledAsideUL,StyledAsideLi} from './common-misc-style';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import React from 'react';
|
|
6
|
-
|
|
7
|
-
const PortalLayout = () => {
|
|
8
|
-
return (
|
|
9
|
-
<div>
|
|
10
|
-
<StyledDSHeader>
|
|
11
|
-
|
|
12
|
-
<LeftLogoContainer>Impact Style UI</LeftLogoContainer>
|
|
13
|
-
|
|
14
|
-
<StyledURLContainer>
|
|
15
|
-
<StyledULHeaderList>
|
|
16
|
-
<StyledHeaderLI>Get Started</StyledHeaderLI>
|
|
17
|
-
<StyledHeaderLI UrlActive>Components</StyledHeaderLI>
|
|
18
|
-
<StyledHeaderLI>Pattern</StyledHeaderLI>
|
|
19
|
-
<StyledHeaderLI>Foundations</StyledHeaderLI>
|
|
20
|
-
<StyledHeaderLI>Resources</StyledHeaderLI>
|
|
21
|
-
</StyledULHeaderList>
|
|
22
|
-
</StyledURLContainer>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
</StyledDSHeader>
|
|
26
|
-
|
|
27
|
-
<StyledAsideNav>
|
|
28
|
-
|
|
29
|
-
<StyledAsideMainHeading>
|
|
30
|
-
Global Components
|
|
31
|
-
</StyledAsideMainHeading>
|
|
32
|
-
|
|
33
|
-
<StyledAsideUL>
|
|
34
|
-
<StyledAsideLi StyleURLActiveAside>
|
|
35
|
-
CTA Button
|
|
36
|
-
</StyledAsideLi>
|
|
37
|
-
<StyledAsideLi>
|
|
38
|
-
Check box
|
|
39
|
-
</StyledAsideLi>
|
|
40
|
-
<StyledAsideLi>
|
|
41
|
-
Input Box
|
|
42
|
-
</StyledAsideLi>
|
|
43
|
-
</StyledAsideUL>
|
|
44
|
-
|
|
45
|
-
</StyledAsideNav>
|
|
46
|
-
</div>
|
|
47
|
-
);
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export default PortalLayout;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
// import styled from 'styled-components';
|
|
3
|
-
// import LogoImage from '../../global-components/icons-images/Logo.svg';
|
|
4
|
-
// import Location from '../icons-images/location.png';
|
|
5
|
-
|
|
6
|
-
// export const StyledlogoImageContainer = styled.div`
|
|
7
|
-
// background: url(${LogoImage});
|
|
8
|
-
// width: 50px;
|
|
9
|
-
// height: 50px;
|
|
10
|
-
// background-size: cover;
|
|
11
|
-
// `;
|
|
12
|
-
|
|
13
|
-
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import styled from "styled-components";
|
|
3
|
-
import {
|
|
4
|
-
StyledHeadingCommon,
|
|
5
|
-
StyledMiscPara,
|
|
6
|
-
BoxContainer,
|
|
7
|
-
StyledDSHeader,
|
|
8
|
-
LeftLogoContainer,
|
|
9
|
-
StyledURLContainer,
|
|
10
|
-
StyledULHeaderList,
|
|
11
|
-
StyledHeaderLI,
|
|
12
|
-
StyledBodyMainContainer,
|
|
13
|
-
StyledCodeBoxContainer,
|
|
14
|
-
StyledCodeBoxMainContainer,
|
|
15
|
-
StyledCodeLineContainer,
|
|
16
|
-
StyledCodeLineContainerTag,
|
|
17
|
-
StyledCodeLineContainerTagContainer,
|
|
18
|
-
} from "./../../../components/global-components/common-misc-components/common-misc-style";
|
|
19
|
-
import {
|
|
20
|
-
SmPadding,
|
|
21
|
-
MedPadding,
|
|
22
|
-
LargePadding,
|
|
23
|
-
} from "./../../../components/global-components/Grids-spacing/grid-spacing";
|
|
24
|
-
import {
|
|
25
|
-
StyledInputBoxContainer,
|
|
26
|
-
StyledInputLabelContainer,
|
|
27
|
-
StyledInputBox,
|
|
28
|
-
StyledHelperText,
|
|
29
|
-
StyledErrorText,
|
|
30
|
-
StyledSuccessText,
|
|
31
|
-
StyledInputBoxDisabled,
|
|
32
|
-
StyledInputBoxError,
|
|
33
|
-
StyledInputBoxSuccess,
|
|
34
|
-
} from "../../../lib";
|
|
35
|
-
const InputBox = () => {
|
|
36
|
-
return (
|
|
37
|
-
<div>
|
|
38
|
-
<LargePadding>
|
|
39
|
-
<StyledHeadingCommon>02: INPUT BOX</StyledHeadingCommon>
|
|
40
|
-
<StyledMiscPara>
|
|
41
|
-
A text field is a basic text control that enables the user to type a
|
|
42
|
-
small amount of text. No matter what app you use, you’re bound to run
|
|
43
|
-
across some little text field requiring your personal information.
|
|
44
|
-
Even typing a question into Google is considered filling out a form
|
|
45
|
-
which has only one text field. This component is mainly used to enter
|
|
46
|
-
long or short form entries.
|
|
47
|
-
</StyledMiscPara>
|
|
48
|
-
</LargePadding>
|
|
49
|
-
<BoxContainer>
|
|
50
|
-
<LargePadding>
|
|
51
|
-
<StyledInputBoxContainer>
|
|
52
|
-
<StyledInputLabelContainer>
|
|
53
|
-
Inputbox Label
|
|
54
|
-
</StyledInputLabelContainer>
|
|
55
|
-
<StyledInputBox placeholder="Enter text" />
|
|
56
|
-
</StyledInputBoxContainer>
|
|
57
|
-
</LargePadding>
|
|
58
|
-
<LargePadding>
|
|
59
|
-
<StyledInputBoxContainer>
|
|
60
|
-
<StyledInputLabelContainer>
|
|
61
|
-
Inputbox with Helper text
|
|
62
|
-
</StyledInputLabelContainer>
|
|
63
|
-
<StyledInputBox placeholder="Enter text" />
|
|
64
|
-
<StyledHelperText>Please enter Helper Text</StyledHelperText>
|
|
65
|
-
</StyledInputBoxContainer>
|
|
66
|
-
</LargePadding>
|
|
67
|
-
<LargePadding>
|
|
68
|
-
<StyledInputBoxContainer>
|
|
69
|
-
<StyledInputLabelContainer>
|
|
70
|
-
Inputbox with Error text
|
|
71
|
-
</StyledInputLabelContainer>
|
|
72
|
-
<StyledInputBoxError placeholder="Enter text" />
|
|
73
|
-
<StyledErrorText>Please enter Error Text</StyledErrorText>
|
|
74
|
-
</StyledInputBoxContainer>
|
|
75
|
-
</LargePadding>
|
|
76
|
-
<LargePadding>
|
|
77
|
-
<StyledInputBoxContainer>
|
|
78
|
-
<StyledInputLabelContainer>
|
|
79
|
-
Inputbox with Success text
|
|
80
|
-
</StyledInputLabelContainer>
|
|
81
|
-
<StyledInputBoxSuccess placeholder="Enter text" />
|
|
82
|
-
<StyledSuccessText>Please enter Success Text</StyledSuccessText>
|
|
83
|
-
</StyledInputBoxContainer>
|
|
84
|
-
</LargePadding>
|
|
85
|
-
<LargePadding>
|
|
86
|
-
<StyledInputBoxContainer>
|
|
87
|
-
<StyledInputLabelContainer>
|
|
88
|
-
Inputbox with Disabled
|
|
89
|
-
</StyledInputLabelContainer>
|
|
90
|
-
<StyledInputBoxDisabled placeholder="Enter text" />
|
|
91
|
-
</StyledInputBoxContainer>
|
|
92
|
-
</LargePadding>
|
|
93
|
-
</BoxContainer>
|
|
94
|
-
|
|
95
|
-
<LargePadding>
|
|
96
|
-
<StyledCodeBoxMainContainer>
|
|
97
|
-
<StyledCodeBoxContainer>
|
|
98
|
-
<StyledCodeLineContainer>
|
|
99
|
-
import React from 'react';
|
|
100
|
-
</StyledCodeLineContainer>
|
|
101
|
-
<StyledCodeLineContainer>
|
|
102
|
-
import styled from 'styled-components';
|
|
103
|
-
</StyledCodeLineContainer>
|
|
104
|
-
<StyledCodeLineContainer>
|
|
105
|
-
import StyledInputBoxContainer,StyledInputLabelContainer,
|
|
106
|
-
StyledInputBox,StyledHelperText,
|
|
107
|
-
StyledErrorText,StyledSuccessText, StyledInputBoxDisabled from
|
|
108
|
-
'./components';
|
|
109
|
-
</StyledCodeLineContainer>
|
|
110
|
-
<StyledCodeLineContainerTagContainer>
|
|
111
|
-
<StyledCodeLineContainerTag>
|
|
112
|
-
{`<StyledPrimaryButton>Primary Button</StyledPrimaryButton>`}
|
|
113
|
-
</StyledCodeLineContainerTag>
|
|
114
|
-
<StyledCodeLineContainerTag>
|
|
115
|
-
{` <StyledSecondaryButton>Secondary Button</StyledSecondaryButton>`}
|
|
116
|
-
</StyledCodeLineContainerTag>
|
|
117
|
-
<StyledCodeLineContainerTag>
|
|
118
|
-
{`<StyledSecondaryDiasabledButton>Secondary Disabled Button</StyledSecondaryDiasabledButton>`}
|
|
119
|
-
</StyledCodeLineContainerTag>
|
|
120
|
-
<StyledCodeLineContainerTag>
|
|
121
|
-
{`<StyledDisabledButton>Disabled Button</StyledDisabledButton>`}
|
|
122
|
-
</StyledCodeLineContainerTag>
|
|
123
|
-
<StyledCodeLineContainerTag>
|
|
124
|
-
{`<StyledURLButton>This is a Tertiary URL</StyledURLButton>`}
|
|
125
|
-
</StyledCodeLineContainerTag>
|
|
126
|
-
<StyledCodeLineContainerTag>
|
|
127
|
-
{`<StyledDisabledURLButton>This is a Tertiary URL</StyledDisabledURLButton>`}
|
|
128
|
-
</StyledCodeLineContainerTag>
|
|
129
|
-
</StyledCodeLineContainerTagContainer>
|
|
130
|
-
{/* <LargePadding>
|
|
131
|
-
<code>
|
|
132
|
-
{ `<StyledPrimaryButton>Primary Button</StyledPrimaryButton>`}
|
|
133
|
-
</code>
|
|
134
|
-
</LargePadding> */}
|
|
135
|
-
</StyledCodeBoxContainer>
|
|
136
|
-
</StyledCodeBoxMainContainer>
|
|
137
|
-
</LargePadding>
|
|
138
|
-
</div>
|
|
139
|
-
);
|
|
140
|
-
};
|
|
141
|
-
|
|
142
|
-
export default InputBox;
|
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
|
-
}
|
package/src/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import ReactDOM from 'react-dom/client';
|
|
3
|
-
import App from './App';
|
|
4
|
-
import './index.css';
|
|
5
|
-
|
|
6
|
-
const root = ReactDOM.createRoot(document.getElementById('root'));
|
|
7
|
-
root.render(
|
|
8
|
-
<React.StrictMode>
|
|
9
|
-
<App />
|
|
10
|
-
</React.StrictMode>
|
|
11
|
-
);
|
|
12
|
-
|
|
13
|
-
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
|
|
3
|
-
// export const StyledPrimaryButton = styled.button`
|
|
4
|
-
// background: red;
|
|
5
|
-
// border: none;
|
|
6
|
-
// `
|
|
7
|
-
|
|
8
|
-
export const StyledButton = styled.button`
|
|
9
|
-
background: #1d1d1d;
|
|
10
|
-
color: #fff;
|
|
11
|
-
border: none;
|
|
12
|
-
cursor: pointer;
|
|
13
|
-
border-radius: 3px;
|
|
14
|
-
height: 35px;
|
|
15
|
-
box-sizing: border-box;
|
|
16
|
-
padding: 0 20px;
|
|
17
|
-
font-size: 14px;
|
|
18
|
-
transition: all 300ms ease-in-out 0s;
|
|
19
|
-
`
|
|
20
|
-
|
|
21
|
-
export const StyledPrimaryButton = styled(StyledButton)`
|
|
22
|
-
background: #0055AF;
|
|
23
|
-
&:hover{
|
|
24
|
-
background: #033162;
|
|
25
|
-
}
|
|
26
|
-
`;
|
|
27
|
-
|
|
28
|
-
export const StyledSecondaryDiasabledButton = styled(StyledButton)`
|
|
29
|
-
background: #fff;
|
|
30
|
-
border: 1px solid #afafaf;
|
|
31
|
-
color: #AFAFAF;
|
|
32
|
-
cursor: default;
|
|
33
|
-
`;
|
|
34
|
-
|
|
35
|
-
export const StyledSecondaryButton = styled(StyledButton)`
|
|
36
|
-
background: #fff;
|
|
37
|
-
border: 1px solid #0055AF;
|
|
38
|
-
color: #0055AF;
|
|
39
|
-
&:hover{
|
|
40
|
-
border: 1px solid #033162;
|
|
41
|
-
color: #033162;
|
|
42
|
-
}
|
|
43
|
-
`;
|
|
44
|
-
|
|
45
|
-
export const StyledDisabledButton = styled(StyledButton)`
|
|
46
|
-
background: #AFAFAF;
|
|
47
|
-
cursor: default;
|
|
48
|
-
`;
|
|
49
|
-
|
|
50
|
-
export const StyledURLButton = styled(StyledButton)`
|
|
51
|
-
background: #fff;
|
|
52
|
-
color: #0055AF;
|
|
53
|
-
font-size: 16px;
|
|
54
|
-
font-weight: 500;
|
|
55
|
-
padding: 0px;
|
|
56
|
-
height: auto;
|
|
57
|
-
&:hover{
|
|
58
|
-
color: #033162;
|
|
59
|
-
}
|
|
60
|
-
`;
|
|
61
|
-
|
|
62
|
-
export const StyledDisabledURLButton = styled(StyledButton)`
|
|
63
|
-
background: #fff;
|
|
64
|
-
color: #afafaf;
|
|
65
|
-
font-size: 16px;
|
|
66
|
-
font-weight: 500;
|
|
67
|
-
padding: 0px;
|
|
68
|
-
height: auto;
|
|
69
|
-
cursor: default;
|
|
70
|
-
`;
|
|
71
|
-
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
StyledButton,
|
|
4
|
-
StyledPrimaryButton,
|
|
5
|
-
StyledSecondaryButton,
|
|
6
|
-
StyledDisabledButton,
|
|
7
|
-
StyledURLButton,
|
|
8
|
-
StyledSecondaryDiasabledButton,
|
|
9
|
-
StyledDisabledURLButton,
|
|
10
|
-
} from "./button-style";
|
|
11
|
-
|
|
12
|
-
export {
|
|
13
|
-
StyledButton,
|
|
14
|
-
StyledPrimaryButton,
|
|
15
|
-
StyledSecondaryButton,
|
|
16
|
-
StyledDisabledButton,
|
|
17
|
-
StyledURLButton,
|
|
18
|
-
StyledSecondaryDiasabledButton,
|
|
19
|
-
StyledDisabledURLButton,
|
|
20
|
-
};
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
|
|
3
|
-
export const StyledInputBoxContainer = styled.div`
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
position: relative;
|
|
7
|
-
`;
|
|
8
|
-
export const StyledInputLabelContainer = styled.label`
|
|
9
|
-
font-size: 12px;
|
|
10
|
-
color: #758490;
|
|
11
|
-
margin-bottom: 5px;
|
|
12
|
-
text-align: left;
|
|
13
|
-
`;
|
|
14
|
-
|
|
15
|
-
export const StyledInputBox = styled.input`
|
|
16
|
-
border: 1px solid #ACACAC;
|
|
17
|
-
border-radius: 3px;
|
|
18
|
-
padding: 0px 15px;
|
|
19
|
-
box-sizing: border-box;
|
|
20
|
-
height: 35px;
|
|
21
|
-
font-size: 14px;
|
|
22
|
-
color: #1d1d1d;
|
|
23
|
-
&:focus{
|
|
24
|
-
border: 1px solid #0055AF;
|
|
25
|
-
}
|
|
26
|
-
`;
|
|
27
|
-
export const StyledInputBoxError = styled(StyledInputBox)`
|
|
28
|
-
border: 1px solid #DA1E28;
|
|
29
|
-
&:focus{
|
|
30
|
-
border: 1px solid #DA1E28;
|
|
31
|
-
}
|
|
32
|
-
`;
|
|
33
|
-
|
|
34
|
-
export const StyledInputBoxSuccess = styled(StyledInputBox)`
|
|
35
|
-
border: 1px solid #24A148;
|
|
36
|
-
&:focus{
|
|
37
|
-
border: 1px solid #24A148;
|
|
38
|
-
}
|
|
39
|
-
`;
|
|
40
|
-
|
|
41
|
-
export const StyledInputBoxDisabled = styled(StyledInputBox)`
|
|
42
|
-
background: #EFEFEF;
|
|
43
|
-
border: none;
|
|
44
|
-
cursor: no-drop;
|
|
45
|
-
pointer-events: none;
|
|
46
|
-
&:focus{
|
|
47
|
-
border: none;
|
|
48
|
-
}
|
|
49
|
-
`;
|
|
50
|
-
|
|
51
|
-
export const StyledHelperText = styled.span`
|
|
52
|
-
color: #758498;
|
|
53
|
-
font-size: 12px;
|
|
54
|
-
text-align: left;
|
|
55
|
-
margin-top: 2px;
|
|
56
|
-
position: absolute;
|
|
57
|
-
bottom: -15px;
|
|
58
|
-
left: 15px;
|
|
59
|
-
font-style: italic;
|
|
60
|
-
`;
|
|
61
|
-
|
|
62
|
-
export const StyledErrorText = styled(StyledHelperText)`
|
|
63
|
-
color: #DA1E28;
|
|
64
|
-
font-style: normal;
|
|
65
|
-
`;
|
|
66
|
-
|
|
67
|
-
export const StyledSuccessText = styled(StyledHelperText)`
|
|
68
|
-
color: #24A148;
|
|
69
|
-
font-style: normal;
|
|
70
|
-
`;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
StyledInputBoxContainer,
|
|
3
|
-
StyledInputLabelContainer,
|
|
4
|
-
StyledInputBox,
|
|
5
|
-
StyledHelperText,
|
|
6
|
-
StyledErrorText,
|
|
7
|
-
StyledSuccessText,
|
|
8
|
-
StyledInputBoxDisabled,
|
|
9
|
-
StyledInputBoxError,
|
|
10
|
-
StyledInputBoxSuccess,
|
|
11
|
-
} from "./inputbox-style";
|
|
12
|
-
|
|
13
|
-
export {
|
|
14
|
-
StyledInputBoxContainer,
|
|
15
|
-
StyledInputLabelContainer,
|
|
16
|
-
StyledInputBox,
|
|
17
|
-
StyledHelperText,
|
|
18
|
-
StyledErrorText,
|
|
19
|
-
StyledSuccessText,
|
|
20
|
-
StyledInputBoxDisabled,
|
|
21
|
-
StyledInputBoxError,
|
|
22
|
-
StyledInputBoxSuccess,
|
|
23
|
-
};
|
package/src/lib/index.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
StyledInputBoxContainer,
|
|
3
|
-
StyledInputLabelContainer,
|
|
4
|
-
StyledInputBox,
|
|
5
|
-
StyledHelperText,
|
|
6
|
-
StyledErrorText,
|
|
7
|
-
StyledSuccessText,
|
|
8
|
-
StyledInputBoxDisabled,
|
|
9
|
-
StyledInputBoxError,
|
|
10
|
-
StyledInputBoxSuccess,
|
|
11
|
-
} from "./components/global-components/inputbox/inputbox";
|
|
12
|
-
import {
|
|
13
|
-
StyledButton,
|
|
14
|
-
StyledPrimaryButton,
|
|
15
|
-
StyledSecondaryButton,
|
|
16
|
-
StyledDisabledButton,
|
|
17
|
-
StyledURLButton,
|
|
18
|
-
StyledSecondaryDiasabledButton,
|
|
19
|
-
StyledDisabledURLButton,
|
|
20
|
-
} from "./components/global-components/button/button";
|
|
21
|
-
|
|
22
|
-
export {
|
|
23
|
-
StyledInputBoxContainer,
|
|
24
|
-
StyledInputLabelContainer,
|
|
25
|
-
StyledInputBox,
|
|
26
|
-
StyledHelperText,
|
|
27
|
-
StyledErrorText,
|
|
28
|
-
StyledSuccessText,
|
|
29
|
-
StyledInputBoxDisabled,
|
|
30
|
-
StyledInputBoxError,
|
|
31
|
-
StyledInputBoxSuccess,
|
|
32
|
-
|
|
33
|
-
StyledButton,
|
|
34
|
-
StyledPrimaryButton,
|
|
35
|
-
StyledSecondaryButton,
|
|
36
|
-
StyledDisabledButton,
|
|
37
|
-
StyledURLButton,
|
|
38
|
-
StyledSecondaryDiasabledButton,
|
|
39
|
-
StyledDisabledURLButton,
|
|
40
|
-
};
|
package/webpack.config.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
const path = require("path");
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
mode: "production",
|
|
5
|
-
entry: path.resolve(__dirname, "src/lib/index.js"),
|
|
6
|
-
output: {
|
|
7
|
-
path: path.resolve(__dirname, "./build/lib"),
|
|
8
|
-
filename: "index.js",
|
|
9
|
-
},
|
|
10
|
-
module: {
|
|
11
|
-
rules: [
|
|
12
|
-
{
|
|
13
|
-
test: /\.js$/,
|
|
14
|
-
exclude: /(node_modules|bower_components)/,
|
|
15
|
-
loader: "babel-loader",
|
|
16
|
-
options: {
|
|
17
|
-
presets: ["@babel/preset-env", "@babel/preset-react"],
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
test: /\.css$/,
|
|
22
|
-
use: ["style-loader", "css-loader"],
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
},
|
|
26
|
-
};
|