impact-ui 0.1.1 → 0.1.3
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/build/lib/index.js +301 -2
- 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
|
@@ -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
|
-
};
|