datastake-daf 0.6.549 → 0.6.550

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,414 @@
1
+ .auth-layout {
2
+ min-height: 100vh;
3
+ width: 100%;
4
+ display: flex;
5
+ flex-direction: column;
6
+ background-color: #fff;
7
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
8
+ 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
9
+ position: relative;
10
+
11
+ .auth-language-selector {
12
+ position: absolute;
13
+ top: 24px;
14
+ right: 24px;
15
+ z-index: 10;
16
+
17
+ @media (max-width: 768px) {
18
+ top: 16px;
19
+ right: 16px;
20
+ }
21
+
22
+ .language-select {
23
+ min-width: 100px;
24
+
25
+ .ant-select-selector {
26
+ background: #ffffff !important;
27
+ border: 1px solid #d0d5dd !important;
28
+ border-radius: 8px !important;
29
+ padding: 4px 12px !important;
30
+ height: auto !important;
31
+ box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05) !important;
32
+ }
33
+
34
+ .ant-select-arrow {
35
+ color: #667085;
36
+ }
37
+
38
+ .row-cont {
39
+ display: flex;
40
+ align-items: center;
41
+ gap: 8px;
42
+ }
43
+ }
44
+ }
45
+
46
+ // Language select popup styling
47
+ .language-select-popup {
48
+ &.ant-select-dropdown {
49
+ border-radius: 8px;
50
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
51
+
52
+ .ant-select-item {
53
+ padding: 8px 12px;
54
+
55
+ &:hover {
56
+ background: #f9fafb;
57
+ }
58
+
59
+ &-option-selected {
60
+ background: #f3f4f6;
61
+ font-weight: 500;
62
+ }
63
+ }
64
+ }
65
+ }
66
+
67
+ .main-cont {
68
+ flex: 1;
69
+ display: flex;
70
+ flex-direction: row;
71
+ justify-content: center;
72
+ min-height: 100vh;
73
+
74
+ @media (max-width: 768px) {
75
+ flex-direction: column;
76
+ justify-content: flex-start;
77
+ }
78
+
79
+ .d-cont {
80
+ flex: 1;
81
+ display: flex;
82
+ flex-direction: column;
83
+
84
+ &.left {
85
+ height: 100dvh;
86
+ overflow-y: auto;
87
+ padding: 6rem 0;
88
+ display: flex;
89
+ justify-content: center;
90
+
91
+ @media (max-width: 768px) {
92
+ height: unset;
93
+ overflow-y: hidden;
94
+ padding: 3rem 2rem;
95
+ }
96
+
97
+ .main {
98
+ width: 350px;
99
+ max-width: 100%;
100
+ display: flex;
101
+ flex-direction: column;
102
+ justify-content: center;
103
+ margin: 0 auto;
104
+
105
+ @media (max-width: 768px) {
106
+ width: 100%;
107
+ padding: 0;
108
+ }
109
+
110
+ .left-header {
111
+ margin-bottom: 32px;
112
+ text-align: start;
113
+
114
+ img.app-logo {
115
+ max-width: 200px;
116
+ width: 136px;
117
+ height: auto;
118
+ margin-bottom: 32px;
119
+ display: block;
120
+ margin-left: auto;
121
+ margin-right: auto;
122
+ }
123
+
124
+ h2 {
125
+ font-size: 36px;
126
+ line-height: 44px;
127
+ font-weight: 700;
128
+ margin-bottom: 8px;
129
+ color: #101828;
130
+
131
+ @media (max-width: 768px) {
132
+ font-size: 28px;
133
+ line-height: 36px;
134
+ }
135
+ }
136
+
137
+ p {
138
+ font-size: 16px;
139
+ line-height: 24px;
140
+ color: #667085;
141
+ margin-bottom: 0;
142
+
143
+ @media (max-width: 768px) {
144
+ font-size: 14px;
145
+ }
146
+ }
147
+ }
148
+
149
+ .dots {
150
+ display: flex;
151
+ gap: 8px;
152
+ margin-top: 32px;
153
+ justify-content: center;
154
+
155
+ .dot {
156
+ width: 12px;
157
+ height: 12px;
158
+ background: #E5E7EB;
159
+ border-radius: 6px;
160
+ transition: 0.4s width, 0.4s background;
161
+
162
+ &.active {
163
+ width: 35px;
164
+ background: #3B82F6;
165
+ }
166
+ }
167
+ }
168
+ }
169
+ }
170
+
171
+ &.right {
172
+ background-size: cover;
173
+ background-position: center;
174
+ background-repeat: no-repeat;
175
+ position: relative;
176
+ padding: 0;
177
+ display: flex;
178
+ flex-direction: column;
179
+
180
+ @media (max-width: 768px) {
181
+ display: none;
182
+ }
183
+
184
+ .right-img {
185
+ flex: 1;
186
+ width: 100%;
187
+ height: 100%;
188
+ min-height: 100vh;
189
+ background-position: center;
190
+ background-repeat: no-repeat;
191
+ background-size: cover;
192
+
193
+ @media (max-width: 1200px) {
194
+ min-height: 100vh;
195
+ }
196
+ }
197
+ }
198
+ }
199
+ }
200
+
201
+ // === FORM STYLING (Common across all apps) ===
202
+ .d-cont.left {
203
+ // Links
204
+ a {
205
+ color: #3B82F6;
206
+ text-decoration: none;
207
+ transition: color 0.2s;
208
+
209
+ &:hover {
210
+ color: #2563EB;
211
+ }
212
+ }
213
+
214
+ // Form items
215
+ .ant-form-item-required {
216
+ &::before {
217
+ content: unset !important;
218
+ }
219
+ }
220
+
221
+ // Text inputs
222
+ .ant-input {
223
+ padding: 10px 12px;
224
+ font-size: 14px;
225
+ font-weight: 400;
226
+ border: 1px solid #E5E7EB;
227
+ border-radius: 6px;
228
+ transition: border-color 0.2s;
229
+
230
+ &:hover {
231
+ border-color: #D1D5DB;
232
+ }
233
+
234
+ &:focus {
235
+ border-color: #3B82F6;
236
+ box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
237
+ }
238
+ }
239
+
240
+ // Input with prefix/suffix
241
+ .ant-input-affix-wrapper {
242
+ padding: 11px 14px;
243
+ border: 1px solid #E5E7EB;
244
+ border-radius: 8px;
245
+
246
+ .ant-input {
247
+ padding: 0;
248
+ border: unset;
249
+ border-radius: unset;
250
+ }
251
+
252
+ .ant-input-prefix {
253
+ margin-right: 10px;
254
+ color: #A4A4A4;
255
+ }
256
+ }
257
+
258
+ // Select dropdowns
259
+ .ant-select-selector {
260
+ padding: 4px 12px !important;
261
+ border-radius: 6px !important;
262
+ height: fit-content !important;
263
+ font-size: 14px;
264
+ border: 1px solid #E5E7EB !important;
265
+ font-weight: 400;
266
+ transition: border-color 0.2s !important;
267
+
268
+ .ant-select-selection-item {
269
+ transition: 0s;
270
+ }
271
+
272
+ .ant-select-selection-search {
273
+ display: flex;
274
+ flex-direction: column;
275
+ justify-content: center;
276
+ }
277
+ }
278
+
279
+ .ant-select:hover .ant-select-selector {
280
+ border-color: #D1D5DB !important;
281
+ }
282
+
283
+ .ant-select-focused .ant-select-selector {
284
+ border-color: #3B82F6 !important;
285
+ box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
286
+ }
287
+
288
+ // Checkboxes
289
+ .ant-checkbox-wrapper + .ant-checkbox-wrapper {
290
+ margin-left: 0px;
291
+ }
292
+
293
+ .ant-checkbox-wrapper {
294
+ color: #344054;
295
+ font-size: 14px;
296
+ font-weight: 400;
297
+ }
298
+
299
+ // Form layout
300
+ form {
301
+ display: flex;
302
+ flex-direction: column;
303
+ gap: 10px;
304
+ }
305
+
306
+ .ant-row.ant-form-item {
307
+ margin-bottom: 0px;
308
+ }
309
+
310
+ .ant-form-item-label {
311
+ label {
312
+ color: #1F2A37;
313
+ font-size: 14px;
314
+ font-weight: 500;
315
+ line-height: 20px;
316
+ }
317
+ }
318
+
319
+ // Buttons
320
+ .buttons {
321
+ display: flex;
322
+ flex-direction: column;
323
+ margin-top: 24px;
324
+ gap: 12px;
325
+
326
+ .d-btn-cont {
327
+ flex: 1;
328
+ }
329
+ }
330
+
331
+ // Bottom content (sign up links, etc.)
332
+ .bottom {
333
+ margin-top: 10px;
334
+ display: flex;
335
+ flex-direction: column;
336
+ gap: 4px;
337
+
338
+ p {
339
+ color: #667085;
340
+ font-size: 14px;
341
+ line-height: 20px;
342
+ margin-bottom: 0px;
343
+ }
344
+ }
345
+
346
+ // Error messages
347
+ .errors-cont {
348
+ margin-top: 16px;
349
+
350
+ &.no-pt {
351
+ margin-top: 0px;
352
+ }
353
+ }
354
+
355
+ @media (max-width: 575px) {
356
+ .ant-form-item {
357
+ flex-direction: row !important;
358
+ }
359
+ }
360
+ }
361
+
362
+ // === ANIMATIONS ===
363
+ @keyframes slideLeft {
364
+ 0% {
365
+ transform: translate(-10%, 0%);
366
+ opacity: 0;
367
+ }
368
+ 100% {
369
+ transform: translate(0%, 0%);
370
+ opacity: 1;
371
+ }
372
+ }
373
+
374
+ @keyframes slideRight {
375
+ 0% {
376
+ transform: translate(10%, 0%);
377
+ opacity: 0;
378
+ }
379
+ 100% {
380
+ transform: translate(0%, 0%);
381
+ opacity: 1;
382
+ }
383
+ }
384
+
385
+ .d-cont.left {
386
+ animation: 0.7s slideRight forwards;
387
+ }
388
+
389
+ .d-cont.right {
390
+ animation: 0.7s slideLeft forwards;
391
+ }
392
+ }
393
+
394
+ .auth-layout.sbg {
395
+ .app-logo {
396
+ }
397
+ }
398
+
399
+ .auth-layout.nashiriki {
400
+ .app-logo {
401
+ }
402
+ }
403
+
404
+ .auth-layout.tif {
405
+ .app-logo {
406
+ width: 230px !important;
407
+ }
408
+ }
409
+
410
+ .auth-layout.cukura {
411
+ .app-logo {
412
+ }
413
+ }
414
+
@@ -9,7 +9,6 @@ import { ErrorService } from './ErrorService.js';
9
9
  export class BaseService extends BaseHTTPService {
10
10
  constructor() {
11
11
  const config = getConfig();
12
- console.log({config1: config})
13
12
 
14
13
  const errorHandler = createErrorHandler({
15
14
  getStorageManager: () => StorageManager,
@@ -36,7 +35,6 @@ export class BaseService extends BaseHTTPService {
36
35
  getToken: () => getToken(),
37
36
  getHeaders: () => {
38
37
  const config = getConfig();
39
- console.log({config2: config})
40
38
  return {
41
39
  Language: config.language || StorageManager.get('datastakeLng') || 'en',
42
40
  'ngrok-skip-browser-warning': true,
@@ -1,4 +1,13 @@
1
- let globalConfig = {};
1
+ let globalConfig = {
2
+ application: null,
3
+ mainApiUrl: null,
4
+ storeUrl: null,
5
+ language: 'en',
6
+ onError: null,
7
+ messageHandler: null,
8
+ store: null,
9
+ addToastAction: null,
10
+ };
2
11
 
3
12
  export const configureServices = (config) => {
4
13
  globalConfig = { ...globalConfig, ...config };
package/src/layouts.js CHANGED
@@ -1 +1,2 @@
1
- export { default as AppLayout } from './@daf/layouts/AppLayout/index.jsx';
1
+ export { default as AppLayout } from './@daf/layouts/AppLayout/index.jsx';
2
+ export { default as AuthLayout } from './@daf/layouts/AuthLayout/index.jsx';
package/build/favicon.ico DELETED
Binary file
package/build/logo192.png DELETED
Binary file
package/build/logo512.png DELETED
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/build/robots.txt DELETED
@@ -1,3 +0,0 @@
1
- # https://www.robotstxt.org/robotstxt.html
2
- User-agent: *
3
- Disallow:
@@ -1,3 +0,0 @@
1
- <svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M12.5 0C19.4034 2.57553e-07 24.9998 5.59291 25 12.4922C25 19.0517 19.9409 24.4313 13.5098 24.9453C13.1456 24.9799 12.7786 24.998 12.4102 25H0.00683594V12.9092C0.00230514 12.7709 0 12.6315 0 12.4922C0.000187398 5.59291 5.59656 0 12.5 0ZM12.6611 11.2812C12.6307 11.2549 12.5843 11.257 12.5557 11.2852L5.13184 18.7051C5.12913 18.7077 5.12575 18.7112 5.12305 18.7139C4.75958 19.0775 4.7918 19.6992 5.19531 20.1025C5.59894 20.5059 6.22106 20.5381 6.58496 20.1748C6.58767 20.1721 6.59111 20.1687 6.59375 20.166L14.0176 12.7471C14.046 12.7184 14.048 12.6721 14.0215 12.6416C13.8124 12.4009 13.5937 12.1659 13.3652 11.9375C13.1368 11.7092 12.902 11.4901 12.6611 11.2812ZM7.07812 6.25195C6.62772 6.2082 6.51954 6.79558 6.93164 6.98242C9.36925 8.08764 11.6528 9.64229 13.6572 11.6455C15.6617 13.6488 17.2173 15.9319 18.3232 18.3682C18.5104 18.7795 19.0975 18.6707 19.0537 18.2207C18.7651 15.254 17.4845 12.365 15.2109 10.0928C12.9373 7.82058 10.0467 6.54034 7.07812 6.25195ZM17.4102 7.89551C17.0316 7.51717 16.4324 7.49395 16.0264 7.8252L15.9385 7.9043L14.8311 9.01172C14.7994 9.04333 14.8007 9.09526 14.834 9.125C15.07 9.33358 15.3016 9.55073 15.5273 9.77637C15.7531 10.002 15.971 10.2339 16.1797 10.4697C16.2094 10.503 16.2613 10.5043 16.293 10.4727L17.4014 9.36523C17.4042 9.36242 17.4073 9.35929 17.4102 9.35645C17.8136 8.95298 17.8136 8.29893 17.4102 7.89551Z" fill="#992D24"/>
3
- </svg>
@@ -1,4 +0,0 @@
1
- <svg width="133" height="26" viewBox="0 0 133 26" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M12.5 0.365234C19.4034 0.365235 24.9998 5.95815 25 12.8574C25 19.417 19.9409 24.7965 13.5098 25.3105C13.1456 25.3451 12.7786 25.3632 12.4102 25.3652H0.00683594V13.2744C0.00230514 13.1362 0 12.9968 0 12.8574C0.000187398 5.95815 5.59656 0.365234 12.5 0.365234ZM12.6611 11.6465C12.6307 11.6201 12.5843 11.6222 12.5557 11.6504L5.13184 19.0703C5.12913 19.073 5.12575 19.0764 5.12305 19.0791C4.75958 19.4428 4.7918 20.0644 5.19531 20.4678C5.59894 20.8712 6.22106 20.9034 6.58496 20.54C6.58767 20.5373 6.59111 20.534 6.59375 20.5312L14.0176 13.1123C14.046 13.0836 14.048 13.0374 14.0215 13.0068C13.8124 12.7661 13.5937 12.5311 13.3652 12.3027C13.1368 12.0744 12.902 11.8554 12.6611 11.6465ZM7.07812 6.61719C6.62772 6.57344 6.51954 7.16081 6.93164 7.34766C9.36925 8.45287 11.6528 10.0075 13.6572 12.0107C15.6617 14.0141 17.2173 16.2972 18.3232 18.7334C18.5104 19.1447 19.0975 19.0359 19.0537 18.5859C18.7651 15.6192 17.4845 12.7302 15.2109 10.458C12.9373 8.18582 10.0467 6.90557 7.07812 6.61719ZM17.4102 8.26074C17.0316 7.88241 16.4324 7.85919 16.0264 8.19043L15.9385 8.26953L14.8311 9.37695C14.7994 9.40856 14.8007 9.46049 14.834 9.49023C15.07 9.69882 15.3016 9.91597 15.5273 10.1416C15.7531 10.3673 15.971 10.5991 16.1797 10.835C16.2094 10.8683 16.2613 10.8695 16.293 10.8379L17.4014 9.73047C17.4042 9.72766 17.4073 9.72452 17.4102 9.72168C17.8136 9.31822 17.8136 8.66417 17.4102 8.26074Z" fill="#992D24"/>
3
- <path d="M57.1523 25.3652H51.8438V14.6777H40.418V25.3652H35.1094V0H40.418V10.3008H51.8438V0H57.1523V25.3652ZM68.4023 21.8496C70.7754 21.8496 72.6738 20.373 72.6738 18.2637V16.8398L68.6133 17.1211C66.4688 17.2617 65.3262 18.1055 65.3262 19.5293C65.3262 20.9531 66.5391 21.8496 68.4023 21.8496ZM66.7324 25.5938C63.0059 25.5938 60.2109 23.2559 60.2109 19.793C60.2109 16.2773 62.9004 14.291 67.8398 13.9922L72.6738 13.6934V12.4102C72.6738 10.5469 71.3906 9.52734 69.2812 9.52734C67.418 9.52734 66.1172 10.5117 65.8711 11.918H61.1777C61.3184 8.22656 64.6582 5.67773 69.4922 5.67773C74.4668 5.67773 77.7188 8.22656 77.7188 12.0938V25.3652H72.7617V22.377H72.6562C71.6016 24.3984 69.2109 25.5938 66.7324 25.5938ZM82.5527 1.70508H87.6855V6.01172H91.2715V9.89648H87.6855V19.3008C87.6855 20.7949 88.4238 21.5156 89.9883 21.5156C90.4453 21.5156 90.9551 21.4805 91.2715 21.4277V25.2246C90.7441 25.3301 89.8301 25.4355 88.793 25.4355C84.3105 25.4355 82.5527 23.9238 82.5527 20.1445V9.89648H79.9336V6.01172H82.5527V1.70508ZM111.961 6.01172V25.3652H107.004V21.8672H106.898C105.914 24.293 104.016 25.6465 101.08 25.6465C96.8965 25.6465 94.1367 22.9219 94.1367 18.4219V6.01172H99.2695V17.3496C99.2695 19.9688 100.57 21.375 102.943 21.375C105.334 21.375 106.828 19.6523 106.828 17.0332V6.01172H111.961ZM122.859 21.8496C125.232 21.8496 127.131 20.373 127.131 18.2637V16.8398L123.07 17.1211C120.926 17.2617 119.783 18.1055 119.783 19.5293C119.783 20.9531 120.996 21.8496 122.859 21.8496ZM121.189 25.5938C117.463 25.5938 114.668 23.2559 114.668 19.793C114.668 16.2773 117.357 14.291 122.297 13.9922L127.131 13.6934V12.4102C127.131 10.5469 125.848 9.52734 123.738 9.52734C121.875 9.52734 120.574 10.5117 120.328 11.918H115.635C115.775 8.22656 119.115 5.67773 123.949 5.67773C128.924 5.67773 132.176 8.22656 132.176 12.0938V25.3652H127.219V22.377H127.113C126.059 24.3984 123.668 25.5938 121.189 25.5938Z" fill="#451410"/>
4
- </svg>