@djb25/digit-ui-css 1.0.26 → 1.0.28

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.26",
3
+ "version": "1.0.28",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.css",
6
6
  "author": "satyam",
@@ -68,13 +68,27 @@
68
68
  .formcomposer-section-grid {
69
69
  display: grid;
70
70
  grid-template-columns: 1fr 1fr;
71
- gap: 16px;
71
+ gap: 8px;
72
+ column-gap: 24px;
72
73
  width: 100%;
73
74
  .grid-title {
74
75
  grid-column: span 2;
75
76
  }
76
77
  }
77
78
 
79
+ .formcomposer-grid-container-form {
80
+ display: flex;
81
+ flex-direction: column;
82
+ gap: 24px;
83
+ }
84
+
85
+ .no-grid {
86
+ display: flex !important;
87
+ flex-direction: column !important;
88
+ gap: 16px !important;
89
+ grid-template-columns: unset !important;
90
+ }
91
+
78
92
  @media (max-width: 768px) {
79
93
  .formcomposer-section-grid {
80
94
  grid-template-columns: 1fr;
@@ -33,7 +33,7 @@
33
33
  .circle {
34
34
  width: 24px;
35
35
  height: 24px;
36
- background-color: #B1B4B6;
36
+ background-color: #b1b4b6;
37
37
  border-radius: 50%;
38
38
  text-align: center;
39
39
  }
@@ -42,38 +42,38 @@
42
42
  background-color: theme(colors.primary.main);
43
43
  border-color: theme(colors.primary.main);
44
44
  }
45
- }
45
+ }
46
46
 
47
- .TLComments{
47
+ .TLComments {
48
48
  max-width: 360px;
49
49
  @apply mb-sm p-sm bg-grey-light;
50
- h3{
50
+ h3 {
51
51
  @apply font-bold text-caption-m;
52
52
  }
53
- p{
53
+ p {
54
54
  @apply text-body-l;
55
55
  }
56
56
  }
57
57
 
58
- @screen dt{
59
- .TLComments{
58
+ @screen dt {
59
+ .TLComments {
60
60
  width: 360px;
61
- h3{
61
+ h3 {
62
62
  @apply text-caption-m-dt;
63
63
  }
64
- p{
64
+ p {
65
65
  @apply text-body-l-dt;
66
66
  }
67
67
  }
68
68
  }
69
69
 
70
-
71
70
  .stepper-container {
72
71
  width: 240px;
73
72
  background: #fff;
74
73
  padding: 24px 0;
75
74
  border-radius: 8px;
76
- box-shadow: 0 3px 10px rgba(0,0,0,0.08);
75
+ box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
76
+ overflow-y: scroll;
77
77
  }
78
78
 
79
79
  .stepper-item {
@@ -135,11 +135,7 @@
135
135
  background: #667eea;
136
136
  }
137
137
 
138
-
139
-
140
-
141
138
  @media (max-width: 768px) {
142
-
143
139
  .stepper-container {
144
140
  width: 100%;
145
141
  display: flex;
@@ -201,4 +197,4 @@
201
197
 
202
198
  .stepper-circle.active {
203
199
  transform: scale(1.05);
204
- }
200
+ }
@@ -133,8 +133,8 @@ body {
133
133
  display: flex;
134
134
  flex-direction: column;
135
135
  padding: 20px;
136
- padding-bottom: 0px;
137
136
  width: 100%;
137
+ gap: 12px;
138
138
 
139
139
  .header {
140
140
  font-size: 18px;
@@ -231,14 +231,9 @@ body {
231
231
  }
232
232
  }
233
233
 
234
- .form-container {
235
- gap: 12px
236
- }
237
-
238
234
  .app-container {
239
235
  width: 100%;
240
236
 
241
-
242
237
  form {
243
238
  .card {
244
239
  max-width: 960px;
@@ -289,7 +284,6 @@ body {
289
284
  margin-top: 90px;
290
285
  }
291
286
 
292
-
293
287
  .module-carousel-section {
294
288
  display: flex;
295
289
  flex-direction: column;
@@ -311,7 +305,7 @@ body {
311
305
  top: 4px;
312
306
  height: 16px;
313
307
  width: 4px;
314
- background: #3B82F6;
308
+ background: #3b82f6;
315
309
  border-radius: 4px;
316
310
  }
317
311
 
@@ -366,7 +360,7 @@ body {
366
360
  display: none;
367
361
  }
368
362
 
369
- .carousel-track>div {
363
+ .carousel-track > div {
370
364
  scroll-snap-align: start;
371
365
  box-sizing: border-box;
372
366
  width: 100%;
@@ -374,8 +368,6 @@ body {
374
368
  margin: 0 !important;
375
369
  }
376
370
 
377
-
378
-
379
371
  .carousel-track .new-employee-card {
380
372
  width: 100%;
381
373
  height: 100%;
@@ -418,7 +410,7 @@ body {
418
410
 
419
411
  .header-right-area {
420
412
  display: flex;
421
- flex-direction: column;
413
+ flex-wrap: wrap;
422
414
  align-items: center;
423
415
  justify-content: center;
424
416
  gap: 10px;
@@ -562,4 +554,4 @@ body {
562
554
  svg {
563
555
  fill: #ffffff !important;
564
556
  }
565
- }
557
+ }
@@ -36,7 +36,7 @@
36
36
  }
37
37
 
38
38
  .card-label-error {
39
- @apply block text-body-s text-error mb-md;
39
+ @apply block text-body-s text-error;
40
40
  }
41
41
 
42
42
  .card-label-desc {
@@ -111,7 +111,7 @@
111
111
  }
112
112
 
113
113
  .card-label-error {
114
- @apply block text-body-s text-error mb-md;
114
+ @apply block text-body-s text-error;
115
115
  }
116
116
 
117
117
  .card-label-desc {
@@ -131,6 +131,15 @@
131
131
  }
132
132
  }
133
133
 
134
+ .vehicle-details-card {
135
+ width: 100%;
136
+ height: fit-content;
137
+ }
138
+
139
+ .no-shadow {
140
+ box-shadow: none !important;
141
+ }
142
+
134
143
  .header-wrap {
135
144
  @apply flex mb-md;
136
145
 
@@ -147,6 +156,11 @@
147
156
  }
148
157
  }
149
158
 
159
+ .header-content {
160
+ word-break: break-word;
161
+ overflow-wrap: break-word;
162
+ }
163
+
150
164
  .card-emp {
151
165
  @extend .card;
152
166
  padding-right: 0;
@@ -186,7 +200,6 @@
186
200
  }
187
201
 
188
202
  @screen dt {
189
-
190
203
  .submit-bar,
191
204
  .submit-bar-disabled {
192
205
  width: 240px;
@@ -348,7 +361,7 @@
348
361
  }
349
362
 
350
363
  /* Remove any default margins that might interfere */
351
- .label-field-pair>* {
364
+ .label-field-pair > * {
352
365
  margin: 0;
353
366
  width: 100%;
354
367
  }
@@ -380,8 +393,6 @@
380
393
  margin-right: auto;
381
394
  }
382
395
 
383
- .header-content {}
384
-
385
396
  .header-end {
386
397
  margin-left: auto;
387
398
  }
@@ -430,7 +441,7 @@
430
441
  }
431
442
 
432
443
  .card-label-error {
433
- @apply block text-body-s text-error mb-md;
444
+ @apply block text-body-s text-error;
434
445
  }
435
446
 
436
447
  .employeeCard-override {
@@ -479,7 +490,6 @@
479
490
  flex-direction: column;
480
491
  gap: 13px;
481
492
  width: 100%;
482
- max-width: 426px;
483
493
  max-height: 180px;
484
494
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
485
495
  font-family: inherit;
@@ -492,7 +502,7 @@
492
502
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
493
503
  }
494
504
 
495
- .new-employee-card>* {
505
+ .new-employee-card > * {
496
506
  position: relative;
497
507
  z-index: 1;
498
508
  }
@@ -836,7 +846,6 @@
836
846
  stroke: #ffffff;
837
847
  }
838
848
 
839
- /* --- RIGHT CONTENT --- */
840
849
  .expanded-content {
841
850
  flex: 1;
842
851
  background-color: #ffffff;
@@ -867,7 +876,6 @@
867
876
  display: flex;
868
877
  flex-direction: column;
869
878
  gap: 0;
870
- /* Items touch borders */
871
879
  }
872
880
 
873
881
  .content-link-row {
@@ -900,17 +908,30 @@
900
908
  padding: 20px 0;
901
909
  }
902
910
 
903
- /* --- EXPANDED VIEW OVERLAY --- */
904
911
  .expanded-page-container {
905
912
  display: flex;
913
+ flex-direction: column;
906
914
  width: 100%;
907
-
908
- min-height: calc(100vh - 100px);
909
- overflow: hidden;
910
- gap: 20px;
911
915
  padding-bottom: 40px;
912
916
  }
913
-
917
+ .mobile-sidebar-toggle {
918
+ display: flex;
919
+ align-items: center;
920
+ gap: 12px;
921
+ padding: 14px 16px;
922
+ background-color: #ffffff;
923
+ border: 1px solid #e5e7eb;
924
+ border-radius: 8px;
925
+ margin-bottom: 16px;
926
+ cursor: pointer;
927
+ font-weight: 600;
928
+ color: #1a365d;
929
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
930
+ }
931
+ .hamburger-icon {
932
+ width: 22px;
933
+ height: 22px;
934
+ }
914
935
  .expanded-overlay {
915
936
  position: fixed;
916
937
  top: 0;
@@ -936,16 +957,35 @@
936
957
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
937
958
  }
938
959
 
939
- /* --- LEFT SIDEBAR --- */
940
960
  .expanded-sidebar {
941
- width: 20%;
961
+ position: fixed;
962
+ top: 0;
963
+ left: -100%;
964
+ width: 80%;
965
+ max-width: 320px;
966
+ height: 100vh;
942
967
  background-color: #ffffff;
968
+ z-index: 1000;
943
969
  display: flex;
944
970
  flex-direction: column;
945
- padding: 20px;
946
- flex-shrink: 0;
971
+ padding: 24px 20px;
972
+ transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
973
+ box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
974
+ overflow-y: auto;
975
+ }
976
+ .expanded-sidebar.open {
977
+ left: 0;
978
+ }
979
+ .sidebar-backdrop {
980
+ position: fixed;
981
+ top: 0;
982
+ left: 0;
983
+ width: 100vw;
984
+ height: 100vh;
985
+ background: rgba(0, 0, 0, 0.5);
986
+ z-index: 999;
987
+ backdrop-filter: blur(2px);
947
988
  }
948
-
949
989
  .sidebar-title {
950
990
  font-size: 1.2rem;
951
991
  font-weight: 600;
@@ -998,7 +1038,6 @@
998
1038
  margin-right: 12px;
999
1039
  }
1000
1040
 
1001
- /* Make SVG white when active */
1002
1041
  .sidebar-item.active .sidebar-icon-placeholder svg {
1003
1042
  stroke: #ffffff !important;
1004
1043
  fill: none;
@@ -1018,7 +1057,6 @@
1018
1057
  opacity: 1;
1019
1058
  }
1020
1059
 
1021
- /* --- RIGHT CONTENT --- */
1022
1060
  .expanded-content {
1023
1061
  flex: 1;
1024
1062
  background-color: #ffffff;
@@ -1139,11 +1177,9 @@
1139
1177
  }
1140
1178
 
1141
1179
  :root {
1142
- /* Dimensions */
1143
1180
  --sidebar-expanded: 280px;
1144
1181
  --sidebar-collapsed: 80px;
1145
1182
 
1146
- /* Colors */
1147
1183
  --bg-color: #ffffff;
1148
1184
  --border-color: #f1f5f9;
1149
1185
  --text-main: #0f172a;
@@ -1152,13 +1188,10 @@
1152
1188
  --active-bg: #eff6ff;
1153
1189
  --active-text: #1a67a3;
1154
1190
 
1155
- /* Animations */
1156
1191
  --transition-slow: 0.7s cubic-bezier(0.4, 0, 0.2, 1);
1157
- /* Slow, elegant easing curve */
1158
1192
  --transition-fast: 0.3s ease;
1159
1193
  }
1160
1194
 
1161
- /* --- Base Sidebar --- */
1162
1195
  .premium-sidebar {
1163
1196
  height: 100%;
1164
1197
  display: flex;
@@ -1184,12 +1217,20 @@
1184
1217
  /* --- Header & Brand --- */
1185
1218
  .sidebar-header {
1186
1219
  display: flex;
1187
- align-items: center;
1188
1220
  justify-content: space-between;
1189
- padding: 24px 20px;
1190
- margin-bottom: 12px;
1191
- position: relative;
1192
- white-space: nowrap;
1221
+ align-items: center;
1222
+ margin-bottom: 24px;
1223
+ }
1224
+ .mobile-close-btn {
1225
+ background: none;
1226
+ border: none;
1227
+ font-size: 1.2rem;
1228
+ color: #6b7280;
1229
+ cursor: pointer;
1230
+ padding: 4px;
1231
+ }
1232
+ .expanded-content-area {
1233
+ flex: 1;
1193
1234
  }
1194
1235
 
1195
1236
  .brand-container {
@@ -1290,7 +1331,6 @@
1290
1331
  font-weight: 500;
1291
1332
  white-space: nowrap;
1292
1333
  margin-left: 16px;
1293
- /* Spacing applied here */
1294
1334
  opacity: 1;
1295
1335
  transition: opacity 0.2s ease, width 0.3s ease, margin 0.3s ease;
1296
1336
  overflow: hidden;
@@ -1315,8 +1355,6 @@
1315
1355
  color: #ffffff;
1316
1356
  }
1317
1357
 
1318
- /* --- COLLAPSED STATE STYLES --- */
1319
-
1320
1358
  .collapsed .brand-name,
1321
1359
  .collapsed .nav-text {
1322
1360
  opacity: 0;
@@ -1325,7 +1363,6 @@
1325
1363
  pointer-events: none;
1326
1364
  }
1327
1365
 
1328
- /* Re-stack header elements to center */
1329
1366
  .collapsed .sidebar-header {
1330
1367
  padding: 24px 0;
1331
1368
  flex-direction: column;
@@ -1337,7 +1374,6 @@
1337
1374
  justify-content: center;
1338
1375
  }
1339
1376
 
1340
- /* Re-center navigation icons */
1341
1377
  .collapsed .sidebar-nav {
1342
1378
  padding: 0 12px;
1343
1379
  }
@@ -1345,4 +1381,30 @@
1345
1381
  .collapsed .nav-item-content {
1346
1382
  justify-content: center;
1347
1383
  padding: 12px 0;
1348
- }
1384
+ }
1385
+ @media (min-width: 768px) {
1386
+ .mobile-sidebar-toggle,
1387
+ .mobile-close-btn,
1388
+ .sidebar-backdrop {
1389
+ display: none;
1390
+ }
1391
+
1392
+ .expanded-page-container {
1393
+ flex-direction: row;
1394
+ gap: 24px;
1395
+ }
1396
+
1397
+ .expanded-sidebar {
1398
+ position: static;
1399
+ left: 0;
1400
+ width: 25%;
1401
+ max-width: 300px;
1402
+ height: auto;
1403
+ z-index: auto;
1404
+ box-shadow: none;
1405
+ border-right: 1px solid #e5e7eb;
1406
+ border-radius: 8px;
1407
+ padding: 20px;
1408
+ transition: none;
1409
+ }
1410
+ }
@@ -920,7 +920,8 @@
920
920
  font-size: 14px;
921
921
  color: #4b5563;
922
922
  font-weight: 500;
923
- margin-top: 8px;
923
+ word-break: break-word;
924
+ white-space: normal;
924
925
  }
925
926
 
926
927
  .step-label.active-text {
@@ -941,7 +942,6 @@
941
942
  border-radius: 6px;
942
943
  }
943
944
 
944
-
945
945
  .additional-grid {
946
946
  display: grid;
947
947
  grid-template-columns: 180px 1fr 180px 1fr;
@@ -965,4 +965,4 @@
965
965
  .additional-grid {
966
966
  grid-template-columns: 160px 1fr;
967
967
  }
968
- }
968
+ }
@@ -1,77 +1,76 @@
1
- .multi-select-dropdown-wrap{
2
- @apply relative text-form-field text-text-primary w-full;
3
- .master, .master-active{
4
- @apply relative border border-solid border-input-border h-10 w-full;
5
- input[type=text]{
6
- @apply absolute top-0 left-0 p-sm pl-sm min-h-full min-w-full opacity-0;
7
- &:focus{
8
- @apply outline-none;
9
- }
10
- }
11
- .label{
12
- @apply flex justify-between p-sm w-full h-full;
13
- svg{
14
- @apply h-6 w-6;
15
- }
16
- }
17
-
18
- &:hover{
19
- @apply border-2 border-solid border-primary-main;
20
- }
1
+ .multi-select-dropdown-wrap {
2
+ @apply relative text-form-field text-text-primary w-full;
3
+ .master,
4
+ .master-active {
5
+ @apply relative border border-solid border-input-border h-10 w-full;
6
+ input[type="text"] {
7
+ @apply absolute top-0 left-0 min-h-full opacity-0;
8
+ &:focus {
9
+ @apply outline-none;
10
+ }
21
11
  }
22
-
23
- .master-active{
24
- @apply border-2 border-primary-main;
25
- input[type=text]{
26
- @apply opacity-100;
27
- }
28
- .label{
29
- @apply hidden;
30
- }
12
+ .label {
13
+ @apply flex justify-between p-sm w-full h-full;
14
+ svg {
15
+ @apply h-6 w-6;
16
+ }
31
17
  }
32
18
 
33
- .server{
34
-
35
- box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.2);
36
- top:40px;
37
-
38
- max-height:20vmax;
39
- overflow: scroll;
40
- @apply absolute min-w-full z-20;
41
- div{
42
- @apply flex w-full bg-white;
43
- justify-content: flex-start;
44
- align-items: center;
45
- &:hover{
46
- @apply bg-grey-mid;
47
- }
48
- input{
49
- height: 44px;
50
- @apply absolute min-w-full opacity-0 z-20 cursor-pointer;
51
- }
52
- p{
53
- padding: 12px;
54
- margin-top: 5px;
55
- margin-bottom: 5px;
56
- @apply text-form-field text-text-primary;
57
- }
58
- .custom-checkbox{
59
- height: 28px;
60
- width: 28px;
61
- @apply border border-solid border-input-border m-sm;
62
- svg{
63
- @apply opacity-0 z-10;
64
- }
65
- }
66
- input:checked ~ .custom-checkbox,
67
- input:hover ~ .custom-checkbox {
68
- @apply border-2 border-primary-main;
69
- }
19
+ &:hover {
20
+ @apply border-2 border-solid border-primary-main;
21
+ }
22
+ }
70
23
 
71
- input:checked ~ .custom-checkbox svg {
72
- @apply opacity-100;
73
- }
24
+ .master-active {
25
+ @apply border-2 border-primary-main;
26
+ input[type="text"] {
27
+ @apply opacity-100;
28
+ }
29
+ .label {
30
+ @apply hidden;
31
+ }
32
+ }
74
33
 
34
+ .server {
35
+ box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.2);
36
+ top: 100%;
37
+ width: 100% !important;
38
+ max-height: 20vmax;
39
+ overflow: scroll;
40
+ @apply absolute z-20;
41
+ div {
42
+ @apply flex w-full bg-white;
43
+ justify-content: flex-start;
44
+ align-items: center;
45
+ &:hover {
46
+ @apply bg-grey-mid;
47
+ }
48
+ input {
49
+ height: 44px;
50
+ @apply absolute min-w-full opacity-0 z-20 cursor-pointer;
51
+ }
52
+ p {
53
+ padding: 12px;
54
+ margin-top: 5px;
55
+ margin-bottom: 5px;
56
+ @apply text-form-field text-text-primary;
57
+ }
58
+ .custom-checkbox {
59
+ height: 28px;
60
+ width: 28px;
61
+ @apply border border-solid border-input-border m-sm;
62
+ svg {
63
+ @apply opacity-0 z-10;
75
64
  }
65
+ }
66
+ input:checked ~ .custom-checkbox,
67
+ input:hover ~ .custom-checkbox {
68
+ border: 2px solid #a1a1aa;
69
+ }
70
+
71
+ input:checked ~ .custom-checkbox svg {
72
+ @apply opacity-100;
73
+ }
76
74
  }
77
- }
75
+ }
76
+ }
@@ -22,9 +22,11 @@
22
22
  @apply relative rounded-md;
23
23
 
24
24
  .select {
25
- @apply relative block w-full h-10 border border-solid border-input-border rounded-md;
25
+ border: 2px solid #e5e5e7;
26
+ @apply relative block w-full h-10 rounded-md;
26
27
  &:hover {
27
- @apply border-2 border-solid border-primary-main rounded-md;
28
+ border: 2px solid #a1a1aa;
29
+ @apply rounded-md;
28
30
  }
29
31
  input[type="text"] {
30
32
  width: calc(100% - 32px);
@@ -7,7 +7,8 @@
7
7
  }
8
8
 
9
9
  .employee-card-input {
10
- @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 rounded-md;
10
+ border: 2px solid #e5e5e7;
11
+ @apply pl-sm outline-none block w-full h-10 bg-white leading-10 text-form-field text-text-primary rounded-md;
11
12
  }
12
13
 
13
14
  .employee-card-input:disabled {
@@ -22,6 +23,7 @@
22
23
  border-right: 0;
23
24
  padding-right: 5px;
24
25
  border-radius: 6px 0 0 6px;
26
+ color: #e5e5e7;
25
27
  }
26
28
  .employee-card-input-error {
27
29
  @apply mb-lg pl-sm block w-full h-10 outline-none border-2 border-error border-solid bg-white leading-10 text-form-field text-text-primary;
@@ -29,7 +31,7 @@
29
31
 
30
32
  .card-textarea,
31
33
  .employee-card-textarea {
32
- @apply block outline-none mt-md mb-lg border w-full border-input-border border-solid bg-white h-24 text-form-field text-text-primary p-sm rounded-md;
34
+ @apply block outline-none border w-full border-input-border border-solid bg-white h-24 text-form-field text-text-primary p-sm rounded-md;
33
35
  }
34
36
 
35
37
  .inputWrapper {