oa-componentbook 0.1.0

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.
@@ -0,0 +1,335 @@
1
+ #menu{
2
+ display: none;
3
+ }
4
+ .loginWrapper{
5
+ display: flex;
6
+ height: 100vh;
7
+ background: #fff;
8
+ align-items: center;
9
+ position: relative;
10
+ }
11
+
12
+ .loginWrapper .loginBg{
13
+ width: calc(100% - 50%);
14
+ height: 100%;
15
+ position: relative;
16
+ }
17
+
18
+ .loginWrapper .loginBg img{
19
+ height: 100%;
20
+ width: 100%;
21
+ }
22
+
23
+ .loginWrapper .loginBox{
24
+ width: 50%;
25
+ height: 100vh;
26
+ display: flex;
27
+ flex-direction: column;
28
+ justify-content: flex-start;
29
+ align-items: center;
30
+ position: relative;
31
+ }
32
+
33
+ .loginWrapper .loginBox .formBox{
34
+ border: none;
35
+ border-radius: 0;
36
+ box-shadow: none;
37
+ margin: 0;
38
+ width: 100%;
39
+ max-width: 432px;
40
+ padding: 0;
41
+ height: 100%;
42
+ z-index: 1;
43
+ display: flex;
44
+ flex-direction: column;
45
+ justify-content: center;
46
+ }
47
+
48
+ .loginWrapper .loginBox form{
49
+ padding: 0;
50
+ width: 100%;
51
+ }
52
+
53
+ .loginWrapper .loginBox form h1, .loginWrapper .loginBox h1{
54
+ font-size: 36px;
55
+ line-height: 45px;
56
+ color: #454545;
57
+ float: none;
58
+ width: 100%;
59
+ padding: 0;
60
+ margin: 0;
61
+ }
62
+
63
+ .loginWrapper form .subdesc, .loginWrapper .loginBox .subdesc1{
64
+ font-weight: 400;
65
+ font-size: 14px;
66
+ line-height: 16px;
67
+ color: #454545;
68
+ padding: 6px 0 48px 0;
69
+ }
70
+
71
+ .loginWrapper .loginBox .subdesc1{
72
+ padding: 6px 0 24px 0;
73
+ }
74
+
75
+ .loginWrapper form .fieldDivSet{
76
+ background: none;
77
+ border: none;
78
+ padding: 0;
79
+ margin: 36px 0 0 0;
80
+ display: inline-block;
81
+ width: 100%;
82
+ position: relative;
83
+ }
84
+
85
+ .loginWrapper form .fieldDivSet .ant-form-item{
86
+ margin: 0;
87
+ }
88
+
89
+ .loginWrapper form .fieldDivSet:first-of-type{
90
+ margin: 0;
91
+ }
92
+
93
+ .loginWrapper form .fieldDivSet img{
94
+ position: absolute;
95
+ right: 12px;
96
+ bottom: 13px;
97
+ }
98
+
99
+ .loginWrapper form .fieldDivSet label{
100
+ font-size: 14px;
101
+ line-height: 20px;
102
+ margin: 0;
103
+ color: #454545;
104
+ width: 100%;
105
+ font-weight: normal;
106
+ }
107
+
108
+ .loginWrapper form .fieldDivSet input::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
109
+ color: #B3B3B3;
110
+ opacity: 1; /* Firefox */
111
+ }
112
+
113
+ .loginWrapper form .fieldDivSet input:-ms-input-placeholder { /* Internet Explorer 10-11 */
114
+ color: #B3B3B3;
115
+ }
116
+
117
+ .loginWrapper form .fieldDivSet input::-ms-input-placeholder { /* Microsoft Edge */
118
+ color: #B3B3B3;
119
+ }
120
+
121
+ .loginWrapper form .fieldDivSet input{
122
+ line-height: 1.5;
123
+ font-size: 14px;
124
+ border-radius: 4px;
125
+ padding: 12px;
126
+ outline: none;
127
+ background-color: #fff;
128
+ border: solid 1px #dcdcdc;
129
+ -webkit-box-sizing: border-box;
130
+ box-sizing: border-box;
131
+ margin: 4px 0 0 0;
132
+ position: relative;
133
+ display: inline-block;
134
+ width: 100%;
135
+ height: auto;
136
+ background-image: none;
137
+ -webkit-transition: all .3s;
138
+ transition: all .3s;
139
+ }
140
+
141
+ .loginWrapper form .fieldDivSet input[type=text]:focus, .loginWrapper form .fieldDivSet input[type=password]:focus {
142
+ border-color: #0282F0;
143
+ box-shadow: 0px 0px 4px #0282F0;
144
+ }
145
+
146
+ .loginWrapper form .fieldDivSet input.error{
147
+ border: 1px solid #E62A10;
148
+ box-shadow: 0px 0px 4px #E62A10;
149
+ }
150
+
151
+ .loginWrapper form .has-error .ant-form-explain{
152
+ font-size: 12px;
153
+ line-height: 18px;
154
+ padding: 5px 0 0 0;
155
+ }
156
+
157
+ .loginWrapper form .fieldDivSet .forgotLink{
158
+ display: block;
159
+ text-align: right;
160
+ margin: 4px 0 0 0;
161
+ }
162
+
163
+ .loginWrapper form .fieldDivSet .ant-form-item-with-help + a{
164
+ position: absolute;
165
+ right: 0;
166
+ bottom: -4px;
167
+ line-height: 20px;
168
+ color: #0282F0;
169
+ font-size: 14px;
170
+ }
171
+
172
+ .loginWrapper form .fieldDivSet .forgotLink:hover, .loginWrapper form .fieldDivSet .forgotLink:focus, .loginWrapper form .loginBack:hover, .loginWrapper form .loginBack:focus, .loginWrapper form .loginBack:hover, .loginWrapper form .loginBack:focus, .loginWrapper .loginBox .loginBackError:hover, .loginWrapper .loginBox .loginBackError:focus, .loginWrapper .formBox .loginBack:hover, .loginWrapper .formBox .loginBack:focus{
173
+ color: #40a9ff;
174
+ text-decoration: underline;
175
+ }
176
+ .loginWrapper form .loginBtn{
177
+ width: 100%;
178
+ background: #0282F0;
179
+ color: #fff;
180
+ height: 48px;
181
+ font-size: 16px;
182
+ line-height: 24px;
183
+ border: none;
184
+ border-radius: 4px;
185
+ outline: none;
186
+ cursor: pointer;
187
+ }
188
+
189
+ .loginWrapper form .loginBtn:hover, .loginWrapper form .loginBtn:focus{
190
+ background: #40a9ff;
191
+ outline: none;
192
+ }
193
+
194
+ .loginWrapper .divedLine{
195
+ width: 36px;
196
+ height: 1px;
197
+ background: #DCDCDC;
198
+ margin: 30px auto;
199
+ }
200
+
201
+ .loginWrapper .googleBtn{
202
+ text-align: center;
203
+ display: flex;
204
+ justify-content: center;
205
+ }
206
+
207
+ .loginWrapper .loginBox .footer{
208
+ background: none;
209
+ position: relative;
210
+ z-index: 0;
211
+ text-align: center;
212
+ }
213
+
214
+ .loginWrapper .loginBox .footer p{
215
+ font-size: 14px;
216
+ line-height: 22px;
217
+ color: #7A7A7A;
218
+ padding: 5px 0 20px 0 ;
219
+ }
220
+
221
+ .loginWrapper form .loginBack, .loginWrapper .formBox .loginBack{
222
+ text-align: center;
223
+ margin: 35px auto 10px;
224
+ display: flex;
225
+ justify-content: center;
226
+ width: fit-content;
227
+ font-size: 14px;
228
+ }
229
+
230
+ .loginWrapper .loginBox .loginBackError{
231
+ font-size: 14px;
232
+ width: fit-content;
233
+ }
234
+
235
+ .loginWrapper form .visibleOff{
236
+ opacity: 0;
237
+ }
238
+
239
+ .loginWrapper .loginBox .successIcon{
240
+ margin: 0 0 24px 0;
241
+ display: flex;
242
+ justify-content: center;
243
+ }
244
+
245
+ .loginWrapper .successText{
246
+ font-size: 16px;
247
+ line-height: 24px;
248
+ text-align: center;
249
+ color: #45B448;
250
+ }
251
+
252
+
253
+ .passwordInfo{ width: 100%; position: absolute; border-radius: 2px; background: #fff; padding: 8px; top: 40px;
254
+ z-index: 99; box-shadow: 0 2px 8px 0 rgba(0,0,0,0.12);}
255
+
256
+ .passwordInfo:after {
257
+ bottom: 100%;
258
+ left: 20px;
259
+ border: solid transparent;
260
+ content: " ";
261
+ height: 0;
262
+ width: 0;
263
+ position: absolute;
264
+ pointer-events: none;
265
+ border-color: rgba(255, 255, 255, 0);
266
+ border-bottom-color: #ffffff;
267
+ border-width: 5px;
268
+ margin-left: -5px;
269
+ }
270
+
271
+ .passwordInfo ul{ width: 100%; margin: 0; list-style: none;}
272
+ .passwordInfo ul li{ width: 100%; display: flex; margin:0; line-height: 18px; padding: 8px 0 0 0;}
273
+ .passwordInfo ul li.green{color:#45B448}
274
+ .passwordInfo ul li.red{color:#E62A10}
275
+ .passwordInfo ul li:first-child{ margin: 0;}
276
+ .passwordInfo ul li:before{ content: "\2022"; font-size: 30px; padding-right: 10px;}
277
+
278
+ .activeSessionModal .ant-modal-content {
279
+ border-radius: 6px;
280
+ border: none;
281
+ box-shadow:none;
282
+ }
283
+ .activeSessionModal .ant-modal-title {
284
+ font-size: 20px;
285
+ }
286
+
287
+
288
+ .activeSessionModal .ant-modal-body {
289
+ padding: 14px 24px;
290
+ font-size: 14px;
291
+ line-height: 1.5;
292
+ }
293
+
294
+ .activeSessionModal .modal-footer {
295
+ display: flex;
296
+ flex-direction: row;
297
+ justify-content: flex-end; margin: 12px 0 0 0;
298
+ }
299
+ .activeSessionModal .modal-footer button{
300
+ margin: 0 0 0 10px;
301
+ background: #b4b4b4;
302
+ color: #fff;
303
+ height: 36px;
304
+ font-size: 14px;
305
+ line-height: 24px;
306
+ border: none;
307
+ border-radius: 4px;
308
+ outline: none;
309
+ cursor: pointer;
310
+ width: 100px;
311
+ }
312
+
313
+ .activeSessionModal .modal-footer button + button{
314
+ background: #0282F0;
315
+ }
316
+
317
+
318
+ .ant-spin-spinning {
319
+ position: static;
320
+ display: inline-block;
321
+ opacity: 1;
322
+ display: flex;
323
+ flex-direction: column;
324
+ align-items: center;
325
+ font-size: 12px;
326
+ }
327
+
328
+
329
+ .actionDiv {
330
+ margin: 40px 0 0 0;
331
+ }
332
+ .ant-spin.ant-spin-show-text .ant-spin-text {
333
+ margin: 10px 0 0 0;
334
+ font-size: 14px;
335
+ }
@@ -0,0 +1,146 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.keyValueDataViewStyles = exports.buttonStyles = void 0;
7
+ const buttonStyles = {
8
+ button: {
9
+ color: 'white',
10
+ padding: '10px 20px',
11
+ border: 'none',
12
+ borderRadius: '5px',
13
+ cursor: 'pointer',
14
+ backgroundColor: '#a7a7a7',
15
+ width: '200px'
16
+ },
17
+ 'button.primary': {
18
+ backgroundColor: '#007bff'
19
+ },
20
+ 'button.secondary': {
21
+ backgroundColor: '#ff005d'
22
+ },
23
+ 'button.small': {
24
+ width: '100px'
25
+ },
26
+ 'button.medium': {
27
+ width: '200px'
28
+ },
29
+ 'button.large': {
30
+ width: '300px'
31
+ },
32
+ 'button:hover': {
33
+ backgroundColor: '#0056b3'
34
+ }
35
+ };
36
+ exports.buttonStyles = buttonStyles;
37
+ const keyValueDataViewStyles = {
38
+ '.complaintDetails': {
39
+ display: 'flex'
40
+ },
41
+ '.complaintDetails span': {
42
+ width: '100%'
43
+ },
44
+ '.complaintDetails b': {
45
+ margin: '0 8px 4px 0',
46
+ minWidth: '140px'
47
+ },
48
+ '.mainDiv': {
49
+ padding: '48px 24px 0'
50
+ },
51
+ '.mainDiv h3': {
52
+ fontSize: '24px',
53
+ fontWeight: '500'
54
+ },
55
+ '.mainDiv h2': {
56
+ color: '#454545',
57
+ fontSize: '20px',
58
+ fontWeight: '500',
59
+ letterSpacing: '0',
60
+ lineHeight: '30px',
61
+ margin: '0 0 12px'
62
+ },
63
+ '.footerBtn': {
64
+ textAlign: 'right',
65
+ padding: '48px 0 0'
66
+ },
67
+ '.footerBtn button:last-child': {
68
+ margin: '0 0 0 12px'
69
+ },
70
+ '.complaintDetails button': {
71
+ width: '110px !important'
72
+ },
73
+ '.flexBody': {
74
+ display: 'flex'
75
+ },
76
+ '.detailCard': {
77
+ display: 'flex',
78
+ aligIitems: 'flex-start',
79
+ background: '#fff',
80
+ padding: '24px 16px',
81
+ border: '1px solid #DCDCDC',
82
+ borderRadius: '4px',
83
+ margin: '0 0 16px'
84
+ },
85
+ '.detailsSec': {
86
+ margin: '0 72px 0 0'
87
+ },
88
+ '.bgColor': {
89
+ padding: '8px',
90
+ background: '#EBEEF0'
91
+ },
92
+ '.headerSecStyles': {
93
+ display: 'flex',
94
+ alignItems: 'center',
95
+ padding: '24px',
96
+ background: '#fff',
97
+ margin: '0 0 8px'
98
+ },
99
+ '.h2Styles': {
100
+ fontSize: '18px',
101
+ margin: '0 16px 0 0'
102
+ },
103
+ '.secondaryBtnStyles': {
104
+ margin: '0 0 0 12px'
105
+ },
106
+ '.detailsSec': {
107
+ margin: '0 72px 0 0'
108
+ },
109
+ '.detailsSec h6': {
110
+ color: '#6F7C87',
111
+ textTransform: 'uppercase',
112
+ padding: '0 0 8px',
113
+ fontSize: '10px',
114
+ fontWeight: 'bold',
115
+ letterSpacing: '1px',
116
+ lineHeight: '10px',
117
+ margin: '0'
118
+ },
119
+ '.detailsSec h5': {
120
+ color: '#6F7C87',
121
+ padding: '0 0 8px',
122
+ fontSize: '12px',
123
+ fontWeight: 'bold',
124
+ letterSpacing: '1px',
125
+ lineHeight: '10px',
126
+ margin: '0'
127
+ },
128
+ '.detailsDiv a': {
129
+ color: '#0282F0',
130
+ display: 'block',
131
+ padding: '2px 0 0',
132
+ fontSize: '12px',
133
+ letterSpacing: '0',
134
+ lineHeight: '20px'
135
+ },
136
+ '.walletTab': {
137
+ background: '#fff',
138
+ padding: '4px'
139
+ },
140
+ '.linkStyle': {
141
+ color: '#1890ff',
142
+ textDecoration: 'underline',
143
+ cursor: 'pointer'
144
+ }
145
+ };
146
+ exports.keyValueDataViewStyles = keyValueDataViewStyles;
package/build/index.js ADDED
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "BasicQuestions", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _basicQuestions.default;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "ComplaintDetails", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _complaintDetail.default;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "CustomButton", {
19
+ enumerable: true,
20
+ get: function get() {
21
+ return _Button.default;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "DrawerDesign", {
25
+ enumerable: true,
26
+ get: function get() {
27
+ return _Drawer.default;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "KeyValueDataView", {
31
+ enumerable: true,
32
+ get: function get() {
33
+ return _KeyValueDataView.default;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "QuesAnsView", {
37
+ enumerable: true,
38
+ get: function get() {
39
+ return _QuesAnsView.default;
40
+ }
41
+ });
42
+ Object.defineProperty(exports, "ServiceDetailsTabView", {
43
+ enumerable: true,
44
+ get: function get() {
45
+ return _serviceDetailsTabView.default;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, "TableDesign", {
49
+ enumerable: true,
50
+ get: function get() {
51
+ return _Table.default;
52
+ }
53
+ });
54
+ Object.defineProperty(exports, "TabsDesign", {
55
+ enumerable: true,
56
+ get: function get() {
57
+ return _Tabs.default;
58
+ }
59
+ });
60
+ Object.defineProperty(exports, "ViewDetailsDrawer", {
61
+ enumerable: true,
62
+ get: function get() {
63
+ return _viewMoreDetailsDrawer.default;
64
+ }
65
+ });
66
+ Object.defineProperty(exports, "WalletServiceDetails", {
67
+ enumerable: true,
68
+ get: function get() {
69
+ return _walletServiceDetails.default;
70
+ }
71
+ });
72
+ Object.defineProperty(exports, "buttonStyles", {
73
+ enumerable: true,
74
+ get: function get() {
75
+ return _styles.buttonStyles;
76
+ }
77
+ });
78
+ Object.defineProperty(exports, "keyValueDataViewStyles", {
79
+ enumerable: true,
80
+ get: function get() {
81
+ return _styles.keyValueDataViewStyles;
82
+ }
83
+ });
84
+ var _Button = _interopRequireDefault(require("./components/Button"));
85
+ var _Drawer = _interopRequireDefault(require("./components/Drawer"));
86
+ var _KeyValueDataView = _interopRequireDefault(require("./components/KeyValueDataView"));
87
+ var _QuesAnsView = _interopRequireDefault(require("./components/QuesAnsView"));
88
+ var _Table = _interopRequireDefault(require("./components/Table"));
89
+ var _Tabs = _interopRequireDefault(require("./components/Tabs"));
90
+ var _basicQuestions = _interopRequireDefault(require("./components/Wallet Service Details/basicQuestions"));
91
+ var _complaintDetail = _interopRequireDefault(require("./components/Wallet Service Details/complaintDetail"));
92
+ var _viewMoreDetailsDrawer = _interopRequireDefault(require("./components/Wallet Service Details/viewMoreDetailsDrawer"));
93
+ var _serviceDetailsTabView = _interopRequireDefault(require("./components/Wallet Service Details/serviceDetailsTabView"));
94
+ var _walletServiceDetails = _interopRequireDefault(require("./components/Wallet Service Details/walletServiceDetails"));
95
+ var _styles = require("./components/styles");
96
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
package/package.json ADDED
@@ -0,0 +1,69 @@
1
+ {
2
+ "name": "oa-componentbook",
3
+ "version": "0.1.0",
4
+ "private": false,
5
+ "description": "Reusable components",
6
+ "main": "build/index.js",
7
+ "module": "build/index.js",
8
+ "files": [
9
+ "build",
10
+ "README.md"
11
+ ],
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "dependencies": {
16
+ "@storybook/cli": "^7.3.2",
17
+ "antd": "^3.23.3",
18
+ "react": "^16.9.0",
19
+ "react-dom": "^16.9.0",
20
+ "react-router-dom": "^5.3.4",
21
+ "styled-components": "^6.0.7"
22
+ },
23
+ "devDependencies": {
24
+ "@babel/cli": "^7.22.9",
25
+ "@babel/core": "^7.6.0",
26
+ "@babel/preset-env": "^7.6.0",
27
+ "@storybook/addon-essentials": "^7.3.2",
28
+ "@storybook/addon-interactions": "^7.3.2",
29
+ "@storybook/addon-links": "^7.3.2",
30
+ "@storybook/addon-onboarding": "^1.0.8",
31
+ "@storybook/blocks": "^7.3.2",
32
+ "@storybook/preset-create-react-app": "^7.3.2",
33
+ "@storybook/react": "^7.3.2",
34
+ "@storybook/react-webpack5": "^7.3.2",
35
+ "@storybook/testing-library": "^0.2.0",
36
+ "babel-plugin-named-exports-order": "^0.0.2",
37
+ "eslint-plugin-storybook": "^0.6.13",
38
+ "prop-types": "^15.8.1",
39
+ "react-scripts": "^5.0.1",
40
+ "storybook": "^7.3.2",
41
+ "webpack": "^5.88.2",
42
+ "webpack-cli": "^5.1.4"
43
+ },
44
+ "scripts": {
45
+ "start": "react-scripts start",
46
+ "build": "rm -rf build && NODE_ENV=production babel src/lib --out-dir build --copy-files",
47
+ "storybook": "storybook dev -p 6006",
48
+ "build-storybook": "storybook build"
49
+ },
50
+ "eslintConfig": {
51
+ "extends": [
52
+ "react-app",
53
+ "react-app/jest",
54
+ "plugin:storybook/recommended"
55
+ ]
56
+ },
57
+ "browserslist": {
58
+ "production": [
59
+ ">0.2%",
60
+ "not dead",
61
+ "not op_mini all"
62
+ ],
63
+ "development": [
64
+ "last 1 chrome version",
65
+ "last 1 firefox version",
66
+ "last 1 safari version"
67
+ ]
68
+ }
69
+ }