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/package.json CHANGED
@@ -1,13 +1,17 @@
1
1
  {
2
2
  "name": "impact-ui",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "private": false,
5
- "main": "./build/lib/index.js",
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.0",
14
+ "impact-ui": "^0.1.2",
11
15
  "react": "^18.2.0",
12
16
  "react-dom": "^18.2.0",
13
17
  "react-scripts": "5.0.1",
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>
Binary file
Binary file
@@ -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
@@ -1,3 +0,0 @@
1
- # https://www.robotstxt.org/robotstxt.html
2
- User-agent: *
3
- Disallow:
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,12 +0,0 @@
1
- import styled from "styled-components";
2
-
3
- export const SmPadding = styled.div`
4
- padding: 5px;
5
- `;
6
-
7
- export const MedPadding = styled.div`
8
- padding: 10px;
9
- `
10
- export const LargePadding = styled.div`
11
- padding: 15px;
12
- `
@@ -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
-