@djb25/digit-ui-css 1.0.16 → 1.0.18

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.16",
3
+ "version": "1.0.18",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.css",
6
6
  "author": "satyam",
@@ -1,17 +1,22 @@
1
1
  :root {
2
2
  /* -- Core Colors -- */
3
- --tl-color-primary: #3b82f6; /* Blue */
4
- --tl-color-success: #10b981; /* Emerald */
5
- --tl-color-line: #e5e7eb; /* Light Gray */
3
+ --tl-color-primary: #3b82f6;
4
+ /* Blue */
5
+ --tl-color-success: #10b981;
6
+ /* Emerald */
7
+ --tl-color-line: #e5e7eb;
8
+ /* Light Gray */
6
9
  --tl-bg-card: #ffffff;
7
10
  /* -- Text Colors -- */
8
- --tl-text-main: #1f2937; /* Dark Slate */
9
- --tl-text-muted: #6b7280; /* Medium Gray */
11
+ --tl-text-main: #1f2937;
12
+ /* Dark Slate */
13
+ --tl-text-muted: #6b7280;
14
+ /* Medium Gray */
10
15
  /* -- Sizing Variables -- */
11
- --tl-circle-size: 26px;
16
+ --tl-circle-size: 26px;
12
17
  --tl-line-width: 2px;
13
- --tl-item-spacing: 20px;
14
- --tl-card-padding: 12px;
18
+ --tl-item-spacing: 20px;
19
+ --tl-card-padding: 12px;
15
20
  }
16
21
 
17
22
  /* Ensure standard box sizing */
@@ -77,7 +82,7 @@
77
82
  z-index: 10;
78
83
  transition: all 0.3s ease;
79
84
  color: #fff;
80
- overflow: hidden;
85
+ overflow: hidden;
81
86
  }
82
87
 
83
88
  /* Status Styles */
@@ -97,11 +102,11 @@
97
102
  flex: 1;
98
103
  background: var(--tl-bg-card);
99
104
  border: 1px solid #f0f0f0;
100
- border-radius: 8px;
105
+ border-radius: 8px;
101
106
  padding: var(--tl-card-padding);
102
107
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
103
108
  position: relative;
104
- min-width: 0;
109
+ min-width: 0;
105
110
  }
106
111
 
107
112
  /* Tiny triangle pointer pointing to the circle */
@@ -124,19 +129,19 @@
124
129
  justify-content: space-between;
125
130
  align-items: flex-start;
126
131
  margin-bottom: 8px;
127
- flex-wrap: nowrap;
132
+ flex-wrap: wrap;
128
133
  }
129
134
 
130
135
  .timeline-title2 {
131
136
  font-weight: 600;
132
- font-size: 13.5px;
137
+ font-size: 13.5px;
133
138
  color: var(--tl-text-main);
134
139
  margin-right: 8px;
135
140
  line-height: 1.3;
136
141
  }
137
142
 
138
143
  .timeline-date2 {
139
- font-size: 11px;
144
+ font-size: 11px;
140
145
  color: var(--tl-text-muted);
141
146
  white-space: nowrap;
142
147
  background: #f9fafb;
@@ -159,11 +164,19 @@
159
164
  border-radius: 10px;
160
165
  margin-bottom: 6px;
161
166
  }
162
- .status-completed2 { color: #065f46; background: #d1fae5; }
163
- .status-current2 { color: #1e40af; background: #dbeafe; }
167
+
168
+ .status-completed2 {
169
+ color: #065f46;
170
+ background: #d1fae5;
171
+ }
172
+
173
+ .status-current2 {
174
+ color: #1e40af;
175
+ background: #dbeafe;
176
+ }
164
177
 
165
178
  .timeline-comment2 {
166
- font-size: 12.5px;
179
+ font-size: 12.5px;
167
180
  color: #4b5563;
168
181
  line-height: 1.4;
169
182
  background-color: #f9fafb;
@@ -185,6 +198,7 @@
185
198
  from {
186
199
  transform: rotate(0deg);
187
200
  }
201
+
188
202
  to {
189
203
  transform: rotate(360deg);
190
204
  }
@@ -192,7 +206,7 @@
192
206
 
193
207
  /* Apply animation ONLY to the hands of the clock when the item is 'current' */
194
208
  .timeline-item2.current2 .clock-hands2 {
195
- transform-origin: 12px 12px;
209
+ transform-origin: 12px 12px;
196
210
  animation: spin-time2 3s linear infinite;
197
211
  }
198
212
 
@@ -207,6 +207,7 @@ body {
207
207
  font-weight: 600;
208
208
  margin-right: 8px;
209
209
  }
210
+
210
211
  form {
211
212
  .card {
212
213
  max-width: 960px;
@@ -226,6 +227,7 @@ body {
226
227
  }
227
228
  }
228
229
  }
230
+
229
231
  .app-container {
230
232
  width: 100%;
231
233
 
@@ -278,3 +280,124 @@ body {
278
280
  max-height: 120px;
279
281
  margin-top: 90px;
280
282
  }
283
+
284
+ /* --- MODULE CAROUSEL STYLES --- */
285
+
286
+ .module-carousel-section {
287
+ display: flex;
288
+ flex-direction: column;
289
+ width: 100%;
290
+ padding-bottom: 20px;
291
+ }
292
+
293
+ .module-carousel-header {
294
+ display: flex;
295
+ justify-content: flex-end;
296
+ align-items: center;
297
+ width: 100%;
298
+ padding: 0 10px 15px;
299
+ }
300
+
301
+ .module-carousel-actions {
302
+ display: flex;
303
+ gap: 12px;
304
+ }
305
+
306
+ .module-carousel-wrapper {
307
+ position: relative;
308
+ display: flex;
309
+ align-items: center;
310
+ width: 100%;
311
+ }
312
+
313
+ .carousel-track {
314
+ display: grid;
315
+ grid-template-rows: repeat(2, 1fr);
316
+ grid-auto-flow: column;
317
+ gap: 20px;
318
+ overflow-x: auto;
319
+ scroll-behavior: smooth;
320
+ scroll-snap-type: x mandatory;
321
+ width: 100%;
322
+ padding: 10px 0px;
323
+
324
+ /* Hide standard scrollbars for a clean look */
325
+ -ms-overflow-style: none;
326
+ /* IE and Edge */
327
+ scrollbar-width: none;
328
+ /* Firefox */
329
+ }
330
+
331
+ .carousel-track::-webkit-scrollbar {
332
+ display: none;
333
+ /* Chrome, Safari, Opera */
334
+ }
335
+
336
+ /* Default mobile width */
337
+ .carousel-track>div {
338
+ scroll-snap-align: start;
339
+ box-sizing: border-box;
340
+ }
341
+
342
+ /* 1 Column / 2 Rows on Mobile slightly overflowing for affordance */
343
+ .carousel-track {
344
+ grid-auto-columns: calc(100% - 20px);
345
+ }
346
+
347
+ @media (min-width: 640px) {
348
+
349
+ /* 2 Columns / 2 Rows on Tablets */
350
+ .carousel-track {
351
+ grid-auto-columns: calc((100% - 20px) / 2);
352
+ }
353
+ }
354
+
355
+ /* Ensure the child card fills this wrapper without extraneous margins */
356
+ .carousel-track .new-employee-card {
357
+ width: 100%;
358
+ height: 100%;
359
+ margin: 0 !important;
360
+ }
361
+
362
+ /* Modern Minimalist Arrow Button Styles */
363
+ .carousel-arrow {
364
+ background-color: transparent;
365
+ color: #555;
366
+ border: 1px solid #e0e0e0;
367
+ border-radius: 50%;
368
+ width: 38px;
369
+ height: 38px;
370
+ display: flex;
371
+ justify-content: center;
372
+ align-items: center;
373
+ cursor: pointer;
374
+ transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
375
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
376
+ }
377
+
378
+ .carousel-arrow:hover:not(:disabled) {
379
+ background-color: #1a67a3;
380
+ color: white;
381
+ border-color: #1a67a3;
382
+ transform: translateY(-2px);
383
+ box-shadow: 0 4px 12px rgba(244, 119, 56, 0.3);
384
+ }
385
+
386
+ .carousel-arrow:active:not(:disabled) {
387
+ transform: translateY(0);
388
+ }
389
+
390
+ .carousel-arrow:disabled {
391
+ opacity: 0.3;
392
+ cursor: default;
393
+ background-color: #fafafa;
394
+ box-shadow: none;
395
+ }
396
+
397
+ /* Desktop sizing: exactly 4 columns width */
398
+ @screen dt {
399
+ .carousel-track {
400
+ /* 25% width minus the gap offset to perfectly fit 4 per row */
401
+ grid-auto-columns: calc((100% - 60px) / 4);
402
+ }
403
+ }
@@ -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
  }
package/src/index.scss CHANGED
@@ -194,13 +194,6 @@ h6 {
194
194
  @apply mb-sm;
195
195
  }
196
196
 
197
- .employeeCard {
198
- /* TODO need to revisit that we need mx-md NABEEL/ANIL
199
- @apply mb-md mx-md !important;
200
- */
201
- @apply mb-md !important;
202
- }
203
-
204
197
  .home-link {
205
198
  margin-left: 16px;
206
199
  margin-bottom: 16px;
@@ -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;