@djb25/digit-ui-css 1.0.17 → 1.0.19

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@djb25/digit-ui-css",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.css",
6
6
  "author": "satyam",
@@ -65,4 +65,140 @@
65
65
  @apply text-body-l-dt;
66
66
  }
67
67
  }
68
+ }
69
+
70
+
71
+ .stepper-container {
72
+ width: 240px;
73
+ background: #fff;
74
+ padding: 24px 0;
75
+ border-radius: 8px;
76
+ box-shadow: 0 3px 10px rgba(0,0,0,0.08);
77
+ }
78
+
79
+ .stepper-item {
80
+ padding: 0 24px;
81
+ }
82
+
83
+ .stepper-row {
84
+ display: flex;
85
+ align-items: center;
86
+ gap: 12px;
87
+ }
88
+
89
+ .stepper-circle {
90
+ width: 34px;
91
+ height: 34px;
92
+ border-radius: 50%;
93
+ background: #f1f1f1;
94
+ color: #555;
95
+ display: flex;
96
+ justify-content: center;
97
+ align-items: center;
98
+ font-weight: 600;
99
+ flex-shrink: 0;
100
+ transition: all 0.2s ease;
101
+ }
102
+
103
+ .stepper-circle.active {
104
+ background: #667eea;
105
+ color: #fff;
106
+ }
107
+
108
+ .stepper-circle.completed {
109
+ background: #667eea;
110
+ color: #fff;
111
+ }
112
+
113
+ .stepper-label {
114
+ font-size: 14px;
115
+ color: #505a5f;
116
+ }
117
+
118
+ .stepper-label.active {
119
+ font-weight: 600;
120
+ }
121
+
122
+ .stepper-label:hover {
123
+ cursor: pointer;
124
+ color: #667eea;
125
+ }
126
+
127
+ .stepper-line {
128
+ height: 40px;
129
+ width: 2px;
130
+ background: #eee;
131
+ margin-left: 17px;
132
+ }
133
+
134
+ .stepper-line.completed {
135
+ background: #667eea;
136
+ }
137
+
138
+
139
+
140
+
141
+ @media (max-width: 768px) {
142
+
143
+ .stepper-container {
144
+ width: 100%;
145
+ display: flex;
146
+ flex-direction: row;
147
+ justify-content: space-between;
148
+ align-items: flex-start;
149
+ padding: 20px;
150
+ box-shadow: none;
151
+ gap: 0;
152
+ }
153
+
154
+ .stepper-item {
155
+ flex: 1;
156
+ padding: 0;
157
+ position: relative;
158
+ text-align: center;
159
+ }
160
+
161
+ .stepper-row {
162
+ flex-direction: column;
163
+ align-items: center;
164
+ gap: 6px;
165
+ }
166
+
167
+ .stepper-circle {
168
+ margin: 0 auto;
169
+ }
170
+
171
+ /* horizontal line */
172
+ .stepper-line {
173
+ position: absolute;
174
+ top: 17px;
175
+ left: 50%;
176
+ width: 100%;
177
+ height: 2px;
178
+ background: #eee;
179
+ z-index: -1;
180
+ }
181
+
182
+ .stepper-line.completed {
183
+ background: #667eea;
184
+ }
185
+
186
+ /* hide line on last step */
187
+ .stepper-item:last-child .stepper-line {
188
+ display: none;
189
+ }
190
+
191
+ .stepper-label {
192
+ font-size: 12px;
193
+ text-align: center;
194
+ width: 100%;
195
+ }
196
+ }
197
+
198
+ .stepper-circle {
199
+ transition: background 0.2s ease, transform 0.2s ease;
200
+ }
201
+
202
+ .stepper-circle.active {
203
+ transform: scale(1.05);
68
204
  }
@@ -25,6 +25,21 @@
25
25
  }
26
26
  }
27
27
 
28
+ .action-bar-wrap{
29
+ box-shadow: 0 -2px 8px rgba(0,0,0,.16);
30
+ left: 0;
31
+ max-width: none;
32
+ z-index: 999;
33
+ position: fixed;
34
+ bottom: 0;
35
+ --bg-opacity: 1;
36
+ background-color: #fff;
37
+ background-color: rgba(255,255,255,var(--bg-opacity));
38
+ padding-top: 8px;
39
+ padding-bottom: 8px;
40
+ padding-right: 24px;
41
+ text-align: right;
42
+ }
28
43
  @screen dt {
29
44
  .action-bar-wrap {
30
45
  box-shadow: rgba(0, 0, 0, 0.16) 0 -2px 8px;
@@ -94,6 +94,10 @@ body {
94
94
  padding-inline: 24px;
95
95
  }
96
96
 
97
+ .app-container{
98
+ height: 100%;
99
+ }
100
+
97
101
  @screen dt {
98
102
  .employee-app-homepage-container {
99
103
  @apply w-full;
@@ -128,7 +132,6 @@ body {
128
132
  .form-container {
129
133
  display: flex;
130
134
  flex-direction: column;
131
- gap: 12px;
132
135
  padding: 20px;
133
136
  padding-bottom: 0px;
134
137
  width: 100%;
@@ -207,6 +210,7 @@ body {
207
210
  font-weight: 600;
208
211
  margin-right: 8px;
209
212
  }
213
+
210
214
  form {
211
215
  .card {
212
216
  max-width: 960px;
@@ -226,9 +230,15 @@ body {
226
230
  }
227
231
  }
228
232
  }
233
+
234
+ .form-container{
235
+ gap:12px
236
+ }
237
+
229
238
  .app-container {
230
239
  width: 100%;
231
240
 
241
+
232
242
  form {
233
243
  .card {
234
244
  max-width: 960px;
@@ -278,3 +288,124 @@ body {
278
288
  max-height: 120px;
279
289
  margin-top: 90px;
280
290
  }
291
+
292
+ /* --- MODULE CAROUSEL STYLES --- */
293
+
294
+ .module-carousel-section {
295
+ display: flex;
296
+ flex-direction: column;
297
+ width: 100%;
298
+ padding-bottom: 20px;
299
+ }
300
+
301
+ .module-carousel-header {
302
+ display: flex;
303
+ justify-content: flex-end;
304
+ align-items: center;
305
+ width: 100%;
306
+ padding: 0 10px 15px;
307
+ }
308
+
309
+ .module-carousel-actions {
310
+ display: flex;
311
+ gap: 12px;
312
+ }
313
+
314
+ .module-carousel-wrapper {
315
+ position: relative;
316
+ display: flex;
317
+ align-items: center;
318
+ width: 100%;
319
+ }
320
+
321
+ .carousel-track {
322
+ display: grid;
323
+ grid-template-rows: repeat(2, 1fr);
324
+ grid-auto-flow: column;
325
+ gap: 20px;
326
+ overflow-x: auto;
327
+ scroll-behavior: smooth;
328
+ scroll-snap-type: x mandatory;
329
+ width: 100%;
330
+ padding: 10px 0px;
331
+
332
+ /* Hide standard scrollbars for a clean look */
333
+ -ms-overflow-style: none;
334
+ /* IE and Edge */
335
+ scrollbar-width: none;
336
+ /* Firefox */
337
+ }
338
+
339
+ .carousel-track::-webkit-scrollbar {
340
+ display: none;
341
+ /* Chrome, Safari, Opera */
342
+ }
343
+
344
+ /* Default mobile width */
345
+ .carousel-track>div {
346
+ scroll-snap-align: start;
347
+ box-sizing: border-box;
348
+ }
349
+
350
+ /* 1 Column / 2 Rows on Mobile slightly overflowing for affordance */
351
+ .carousel-track {
352
+ grid-auto-columns: calc(100% - 20px);
353
+ }
354
+
355
+ @media (min-width: 640px) {
356
+
357
+ /* 2 Columns / 2 Rows on Tablets */
358
+ .carousel-track {
359
+ grid-auto-columns: calc((100% - 20px) / 2);
360
+ }
361
+ }
362
+
363
+ /* Ensure the child card fills this wrapper without extraneous margins */
364
+ .carousel-track .new-employee-card {
365
+ width: 100%;
366
+ height: 100%;
367
+ margin: 0 !important;
368
+ }
369
+
370
+ /* Modern Minimalist Arrow Button Styles */
371
+ .carousel-arrow {
372
+ background-color: transparent;
373
+ color: #555;
374
+ border: 1px solid #e0e0e0;
375
+ border-radius: 50%;
376
+ width: 38px;
377
+ height: 38px;
378
+ display: flex;
379
+ justify-content: center;
380
+ align-items: center;
381
+ cursor: pointer;
382
+ transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
383
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
384
+ }
385
+
386
+ .carousel-arrow:hover:not(:disabled) {
387
+ background-color: #1a67a3;
388
+ color: white;
389
+ border-color: #1a67a3;
390
+ transform: translateY(-2px);
391
+ box-shadow: 0 4px 12px rgba(244, 119, 56, 0.3);
392
+ }
393
+
394
+ .carousel-arrow:active:not(:disabled) {
395
+ transform: translateY(0);
396
+ }
397
+
398
+ .carousel-arrow:disabled {
399
+ opacity: 0.3;
400
+ cursor: default;
401
+ background-color: #fafafa;
402
+ box-shadow: none;
403
+ }
404
+
405
+ /* Desktop sizing: exactly 4 columns width */
406
+ @screen dt {
407
+ .carousel-track {
408
+ /* 25% width minus the gap offset to perfectly fit 4 per row */
409
+ grid-auto-columns: calc((100% - 60px) / 4);
410
+ }
411
+ }
@@ -61,9 +61,14 @@
61
61
  /*@apply flex justify-center items-center;*/
62
62
  }
63
63
 
64
+ .form-composer-card{
65
+ min-height: 100%;
66
+ }
67
+
64
68
  .employeeCard {
65
- @apply bg-white shadow-card p-md mb-xl;
66
- border-radius: 4px;
69
+ @apply bg-white shadow-card p-xl;
70
+ padding-inline: 48px;
71
+ border-radius: 6px;
67
72
 
68
73
  .card-header {
69
74
  @apply text-text-primary text-heading-xl font-bold font-rc align-middle text-left mb-md;
@@ -215,7 +220,6 @@
215
220
  /* TODO need to revisit that we need mx-md NABEEL/ANIL
216
221
  @apply mb-md mx-md !important;
217
222
  */
218
- @apply mb-md !important;
219
223
 
220
224
  &.filter {
221
225
  margin-left: auto;
@@ -236,7 +240,6 @@
236
240
  }
237
241
 
238
242
  .card-section-header {
239
- margin-bottom: 40px;
240
243
  @apply text-heading-m-dt;
241
244
  }
242
245
 
@@ -287,8 +290,7 @@
287
290
  margin-right: unset;
288
291
  }
289
292
  }
290
- }
291
- */
293
+ }*/
292
294
 
293
295
  /* CSS for vertical label-field layout */
294
296
 
@@ -296,6 +298,7 @@
296
298
  display: flex;
297
299
  flex-direction: column;
298
300
  gap: 8px;
301
+ justify-content: center;
299
302
  /* Adjust spacing between label and field */
300
303
  /* Space between form groups */
301
304
  }
@@ -877,9 +877,9 @@
877
877
 
878
878
 
879
879
  .custom-stepper-card {
880
- width: 280px;
881
- background: #f3f3f3;
882
- padding: 30px 24px;
880
+ width: 20%;
881
+ background: #FFFFFF;
882
+ padding: 25px 25px;
883
883
  border-radius: 10px;
884
884
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
885
885
  }
@@ -933,4 +933,12 @@
933
933
  .step-label.active-text {
934
934
  color: #5a6ee1;
935
935
  font-weight: 600;
936
+ }
937
+
938
+
939
+ .formcomposer-section-grid {
940
+ display: grid;
941
+ grid-template-columns: 1fr 1fr;
942
+ gap: 16px;
943
+ width: 100%;
936
944
  }
@@ -23,7 +23,7 @@
23
23
  @screen dt {
24
24
  .InboxComposerWrapper {
25
25
  grid-template-columns: calc(25% - 32px) 75%;
26
- @apply grid gap-x-8 gap-y-6;
26
+ @apply grid gap-x-4 gap-y-4;
27
27
  }
28
28
 
29
29
  .wns-inbox-composer {
@@ -4,20 +4,11 @@
4
4
  gap: 8px;
5
5
  }
6
6
 
7
- .juridictions {
7
+ .juridiction-form {
8
+ padding: 16px;
8
9
  display: grid;
9
10
  grid-template-columns: repeat(2, 1fr);
10
- width: 100%;
11
- grid-column: span 2;
12
11
  gap: 16px;
13
-
14
- .juridiction-form {
15
- display: flex;
16
- flex-direction: column;
17
- gap: 8px;
18
- }
19
- .label-field-pair {
20
- display: flex;
21
- flex-direction: row;
22
- }
23
12
  }
13
+
14
+
@@ -45,7 +45,8 @@
45
45
  background: linear-gradient(278deg, rgba(110, 192, 221, 0.71) -24.44%, rgba(97, 119, 236, 0.9) 93.53%);
46
46
  padding: 5px 20px;
47
47
  border-radius: 11px;
48
-
48
+ position: relative;
49
+ z-index: 99999;
49
50
  display: flex;
50
51
  align-items: center;
51
52
  justify-content: flex-start;
@@ -85,6 +86,10 @@
85
86
  align-items: center;
86
87
  justify-content: center;
87
88
  padding-left: 20px;
89
+
90
+ @media (max-width:768px){
91
+ display: none !important;
92
+ }
88
93
  }
89
94
 
90
95
  .breadcrumbs {
@@ -108,6 +113,72 @@
108
113
  justify-content: center;
109
114
  border-right: 1px solid #fff;
110
115
  padding-right: 20px;
116
+ @media (max-width:768px){
117
+ display: none;
118
+ }
111
119
  }
120
+ @media (max-width:768px){
121
+ justify-content: space-between;
122
+ }
123
+ }
124
+ }
125
+
126
+ .hamburger-btn{
127
+ display:none;
128
+ background:none;
129
+ border:none;
130
+ font-size:22px;
131
+ color:white;
132
+ cursor:pointer;
133
+ }
134
+
135
+ .mobile-menu{
136
+ display:none;
137
+ }
138
+
139
+ @media (max-width:768px){
140
+
141
+ .hamburger-btn{
142
+ display:block;
143
+ }
144
+
145
+ .desktop-back{
146
+ display:none;
112
147
  }
148
+
149
+ .mobile-menu{
150
+ display:none;
151
+ position:absolute;
152
+ top:55px;
153
+ left:0;
154
+ width:100%;
155
+ background: #667eea;
156
+ color:#fff;
157
+ flex-direction:column;
158
+ padding:16px;
159
+ border-radius:8px;
160
+ box-shadow:0 8px 20px rgba(0,0,0,0.15);
161
+ z-index:999999;
162
+ gap:12px;
163
+ opacity: 1;
164
+ }
165
+
166
+ .mobile-menu.open{
167
+ display:flex;
168
+ position: absolute;
169
+ z-index: 999;
170
+ }
171
+
172
+ .mobile-back{
173
+ font-weight:600;
174
+ padding-bottom:10px;
175
+ border-bottom:1px solid #eee;
176
+ cursor: pointer;
177
+ }
178
+
179
+ .crumbs {
180
+ width: max-content;
181
+ cursor: pointer;
182
+ }
183
+
113
184
  }
@@ -1,9 +1,10 @@
1
1
  .radio-wrap {
2
- @apply my-sm block leading-10 mb-lg;
3
-
4
- div {
5
- @apply block mb-md;
2
+ flex-wrap: wrap;
3
+ .radio-btn-outer-wrap {
4
+ display: flex;
5
+ align-items: center;
6
6
  }
7
+ @apply my-sm block leading-10 mb-lg;
7
8
 
8
9
  .radio-btn-wrap {
9
10
  @apply block float-left relative;
@@ -15,15 +16,15 @@
15
16
  }
16
17
 
17
18
  .radio-btn {
18
- @apply opacity-0 absolute cursor-pointer h-10 w-10;
19
+ @apply opacity-0 absolute cursor-pointer h-10 w-4;
19
20
  }
20
21
 
21
22
  .radio-btn-checkmark {
22
- @apply h-10 w-10 border border-input-border border-solid rounded-full block;
23
+ @apply h-4 w-4 border border-input-border border-solid rounded-full block;
23
24
  }
24
25
 
25
26
  label {
26
- @apply text-text-primary text-form-field ml-md;
27
+ @apply text-text-primary text-form-field ml-sm;
27
28
  }
28
29
 
29
30
  .radio-btn-checkmark:after {
@@ -34,9 +35,13 @@
34
35
  @apply border-2 border-primary-main;
35
36
  }
36
37
 
37
- .radio-btn-wrap input:checked ~ .radio-btn-checkmark:after {
38
- @apply block bg-primary-main h-5 w-5 rounded-full absolute top-10 left-10;
39
- }
38
+ .radio-btn-wrap input:checked ~ .radio-btn-checkmark:after {
39
+ @apply block bg-primary-main h-3 w-3 rounded-full absolute;
40
+
41
+ top: 50%;
42
+ left: 50%;
43
+ transform: translate(-50%, -50%);
44
+ }
40
45
  }
41
46
  .reverse-radio-selection-wrapper{
42
47
  div{
@@ -56,14 +56,6 @@
56
56
  width: 240px;
57
57
  }
58
58
 
59
- .card-input-error {
60
- width: 480px;
61
- }
62
-
63
- .employee-card-input-error {
64
- @apply w-full;
65
- }
66
-
67
59
  .card-textarea {
68
60
  /* //width: 480px; */
69
61
  @apply w-full;
@@ -80,7 +72,7 @@
80
72
  }
81
73
 
82
74
  .citizen-card-input {
83
- @apply mb-lg pl-sm outline-none block border w-full h-10 border-input-border border-solid bg-white leading-10 text-form-field text-text-primary;
75
+ @apply pl-sm outline-none block border w-full h-10 border-input-border border-solid bg-white leading-10 text-form-field text-text-primary;
84
76
  }
85
77
 
86
78
  .citizen-card-input--front {
@@ -48,7 +48,7 @@
48
48
  }
49
49
 
50
50
  .employee-card-input {
51
- @apply mb-lg pl-sm outline-none block border w-full h-10 border-input-border border-solid bg-white leading-10 text-form-field text-text-primary;
51
+ @apply pl-sm outline-none block border w-full h-10 border-input-border border-solid bg-white leading-10 text-form-field text-text-primary;
52
52
  @extend .light-input-border;
53
53
  }
54
54
  .employee-card-input:disabled {
@@ -82,7 +82,7 @@
82
82
  }
83
83
 
84
84
  .citizen-card-input {
85
- @apply mb-lg pl-sm outline-none block border w-full h-10 border-input-border border-solid bg-white leading-10 text-form-field text-text-primary;
85
+ @apply pl-sm outline-none block border w-full h-10 border-input-border border-solid bg-white leading-10 text-form-field text-text-primary;
86
86
  @extend .light-input-border;
87
87
  }
88
88
  .citizen-card-input--front {
@@ -41,7 +41,10 @@
41
41
 
42
42
  .digit-radio-btn-wrap input:checked ~ .digit-radio-btn-checkmark:after {
43
43
  /* @extend .light-background; */
44
- @apply block bg-primary-main h-5 w-5 rounded-full absolute top-10 left-10;
44
+ @apply block bg-primary-main h-5 w-5 rounded-full absolute;
45
+ top: 50%;
46
+ left: 50%;
47
+ transform: translate(-50%, -50%);
45
48
  }
46
49
  }
47
50
  .digit-reverse-radio-selection-wrapper {
package/src/index.scss CHANGED
@@ -115,6 +115,7 @@
115
115
  @import "./components/moduleHeader.scss";
116
116
  @import "./components/VerticalTimeline.scss";
117
117
  @import "./components/juridictions.scss";
118
+ @import "./pages/employee/hrms.scss";
118
119
 
119
120
  .display-none {
120
121
  display: none;
@@ -468,6 +469,20 @@ input[type="number"] {
468
469
  }
469
470
  }
470
471
 
472
+ .phone-input-wrapper{
473
+ display: flex;
474
+ }
475
+ .phone-input-wrapper:hover {
476
+ .employee-card-input--front {
477
+ border: 1px solid #667eea;
478
+ border-right: 0;
479
+ }
480
+
481
+ input {
482
+ border: 1px solid #667eea;
483
+ }
484
+ }
485
+
471
486
  .text-input {
472
487
  @apply relative w-full;
473
488
 
@@ -537,6 +552,8 @@ input[type="number"] {
537
552
  .form-search-wrapper {
538
553
  flex: 1;
539
554
  min-width: 0;
555
+ display: flex;
556
+ flex-direction: column;
540
557
  }
541
558
 
542
559
  .result {
@@ -544,6 +561,8 @@ input[type="number"] {
544
561
  flex-direction: column;
545
562
  overflow-x: scroll;
546
563
  border-radius: 6px;
564
+ flex:1 1 0%;
565
+
547
566
  }
548
567
  .inbox-search-container {
549
568
  .result {
@@ -704,7 +723,7 @@ input[type="number"] {
704
723
  width: 100%;
705
724
  flex: 1;
706
725
  min-width: 0;
707
- overflow-y: scroll;
726
+ margin-bottom: 56px;
708
727
  }
709
728
 
710
729
  .employee-app-wrapper {
@@ -191,7 +191,7 @@
191
191
  }
192
192
 
193
193
  .documentDetails_pdf {
194
- @apply flex gap-10 cursor-pointer;
194
+ @apply cursor-pointer;
195
195
  }
196
196
  .grid_section {
197
197
  @apply grid grid-cols-4 gap-4;