@djb25/digit-ui-css 1.0.18 → 1.0.20

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.18",
3
+ "version": "1.0.20",
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%;
@@ -228,9 +231,14 @@ body {
228
231
  }
229
232
  }
230
233
 
234
+ .form-container{
235
+ gap:12px
236
+ }
237
+
231
238
  .app-container {
232
239
  width: 100%;
233
240
 
241
+
234
242
  form {
235
243
  .card {
236
244
  max-width: 960px;
@@ -61,9 +61,13 @@
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-md;
70
+ border-radius: 6px;
67
71
 
68
72
  .card-header {
69
73
  @apply text-text-primary text-heading-xl font-bold font-rc align-middle text-left mb-md;
@@ -215,7 +219,6 @@
215
219
  /* TODO need to revisit that we need mx-md NABEEL/ANIL
216
220
  @apply mb-md mx-md !important;
217
221
  */
218
- @apply mb-md !important;
219
222
 
220
223
  &.filter {
221
224
  margin-left: auto;
@@ -236,7 +239,6 @@
236
239
  }
237
240
 
238
241
  .card-section-header {
239
- margin-bottom: 40px;
240
242
  @apply text-heading-m-dt;
241
243
  }
242
244
 
@@ -287,8 +289,7 @@
287
289
  margin-right: unset;
288
290
  }
289
291
  }
290
- }
291
- */
292
+ }*/
292
293
 
293
294
  /* CSS for vertical label-field layout */
294
295
 
@@ -296,6 +297,7 @@
296
297
  display: flex;
297
298
  flex-direction: column;
298
299
  gap: 8px;
300
+ justify-content: center;
299
301
  /* Adjust spacing between label and field */
300
302
  /* Space between form groups */
301
303
  }
@@ -886,7 +886,7 @@
886
886
 
887
887
  .stepper-row {
888
888
  display: flex;
889
- align-items: flex-start;
889
+ align-items: center;
890
890
  position: relative;
891
891
  }
892
892
 
@@ -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{
@@ -19,7 +19,7 @@
19
19
  }
20
20
  */
21
21
  .employee-select-wrap {
22
- @apply mb-lg relative rounded-md;
22
+ @apply relative rounded-md;
23
23
 
24
24
  .select {
25
25
  @apply relative block w-full h-10 border border-solid border-input-border rounded-md;
@@ -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 {
@@ -56,7 +56,6 @@
56
56
  border-right: 1px solid #e0e0e0;
57
57
  background: #f8f9fa;
58
58
  transition: width 0.3s ease;
59
- width: 100%;
60
59
  }
61
60
 
62
61
  .employee-app-wrapper {
@@ -84,11 +83,6 @@
84
83
  flex-direction: row;
85
84
  }
86
85
 
87
- .ground-container {
88
- margin-bottom: 56px;
89
- /* @apply p-md; */
90
- }
91
-
92
86
  .collapsible-sidebar-container {
93
87
  width: auto;
94
88
  }
@@ -2,14 +2,12 @@
2
2
  .inbox-main-container {
3
3
  flex: 1;
4
4
  padding-right: -24px;
5
- background-color: #ffffff;
6
5
  border-radius: 12px;
7
6
  }
8
7
 
9
8
  .inbox-wrapper {
10
9
  min-width: 100%;
11
10
  padding: 24px;
12
- background-color: rgb(241 241 241);
13
11
  border-radius: 12px;
14
12
  }
15
13
 
@@ -29,10 +27,12 @@
29
27
  .ekyc-status-card {
30
28
  flex: 1;
31
29
  text-align: center;
32
- padding: 24px;
33
- border: 1px solid #EAECF0;
34
- border-radius: 12px;
35
- box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
30
+ padding: 8px 24px;
31
+ border-right: 1px solid #EAECF0;
32
+
33
+ &:last-child {
34
+ border-right: none;
35
+ }
36
36
 
37
37
  .count {
38
38
  font-size: 32px;
@@ -14,6 +14,24 @@
14
14
 
15
15
  .stepper-form-wrapper {
16
16
  display: grid;
17
- grid-template-columns: repeat(2, 1fr);
18
- gap: 20px;
17
+ gap: 20px 48px;
18
+ height: max-content;
19
+ .employee-select-wrap{
20
+ margin-bottom: 0;
21
+ }
22
+ @media (min-width:768px) {
23
+ grid-template-columns: repeat(2, 1fr);
24
+ }
25
+ @media (max-width:768px){
26
+
27
+ @media (max-width:480px){
28
+ display: flex;
29
+ flex-direction: column;
30
+ }
31
+ gap: 20px 10px;
32
+ }
33
+
34
+ .card-label-smaller{
35
+ width: 100%;
36
+ }
19
37
  }
@@ -0,0 +1,19 @@
1
+ .employee-form {
2
+ display: flex;
3
+ width: 100%;
4
+ height: 100%;
5
+ gap: 24px;
6
+ overflow-y: auto;
7
+ }
8
+
9
+ .mobile-view {
10
+ flex-direction: column !important;
11
+ gap: 0 !important;
12
+ }
13
+
14
+ @media (max-width: 768px) {
15
+ .employee-form {
16
+ flex-direction: column;
17
+ gap: 24px;
18
+ }
19
+ }
@@ -139,6 +139,7 @@
139
139
 
140
140
  .inbox-container {
141
141
  gap: 16px;
142
+
142
143
  .filters-container {
143
144
  .filter {
144
145
  .filter-card {
@@ -294,10 +295,13 @@
294
295
 
295
296
  .inbox-container {
296
297
  @apply flex;
298
+ height: inherit;
299
+ padding-bottom: 24px;
297
300
 
298
301
  .filters-container {
299
302
  width: 270px;
300
-
303
+ overflow-y: scroll;
304
+
301
305
  .filter {
302
306
  @apply mt-md;
303
307