@djb25/digit-ui-css 1.0.5 → 1.0.6
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/dist/index.css +24682 -7
- package/dist/index.min.css +1 -1
- package/package.json +2 -8
- package/src/components/VerticalTimeline.scss +106 -0
- package/src/components/WorkflowTimeline.scss +201 -164
- package/src/components/body.scss +12 -1
- package/src/components/card.scss +600 -1
- package/src/components/financeUi.scss +0 -1
- package/src/components/inboxv2/InboxLinks.scss +1 -1
- package/src/components/moduleHeader.scss +77 -0
- package/src/components/navbar.scss +38 -6
- package/src/components/staticSideBar.scss +3 -3
- package/src/components/topbar.scss +8 -3
- package/src/digitv2/components/appContainerV2.scss +13 -3
- package/src/index.scss +9 -3
- package/src/pages/citizen/HomePageWrapper.scss +28 -5
- package/src/pages/employee/container.scss +17 -6
- package/src/pages/employee/inbox.scss +3 -3
- package/src/pages/employee/index.scss +99 -21
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@djb25/digit-ui-css",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.css",
|
|
6
6
|
"author": "satyam",
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
"gulp-sass": "^5.1.0",
|
|
27
27
|
"normalize.css": "8.0.1",
|
|
28
28
|
"postcss-scss": "3.0.5",
|
|
29
|
-
"sass": "^1.72.0",
|
|
30
29
|
"tailwindcss": "1.9.6"
|
|
31
30
|
},
|
|
32
31
|
"devDependencies": {
|
|
@@ -39,7 +38,6 @@
|
|
|
39
38
|
"gulp-livereload": "4.0.2",
|
|
40
39
|
"gulp-postcss": "9.0.1",
|
|
41
40
|
"gulp-rename": "2.0.0",
|
|
42
|
-
"gulp-sass": "4.1.1",
|
|
43
41
|
"postcss": "8.4.26",
|
|
44
42
|
"postcss-cli": "8.3.1",
|
|
45
43
|
"postcss-header": "2.0.0",
|
|
@@ -63,9 +61,5 @@
|
|
|
63
61
|
"dpg",
|
|
64
62
|
"digit-ui",
|
|
65
63
|
"css"
|
|
66
|
-
]
|
|
67
|
-
"description": "<!-- TODO: update this -->",
|
|
68
|
-
"directories": {
|
|
69
|
-
"example": "example"
|
|
70
|
-
}
|
|
64
|
+
]
|
|
71
65
|
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
.vertical-timeline-container {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
padding: 16px;
|
|
5
|
+
/* Reduced padding slightly to fit better if needed, or keep 24 */
|
|
6
|
+
height: 100%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.vertical-timeline-step {
|
|
10
|
+
display: flex;
|
|
11
|
+
position: relative;
|
|
12
|
+
padding-bottom: 20px;
|
|
13
|
+
min-height: 80px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.vertical-timeline-step:last-child {
|
|
17
|
+
padding-bottom: 0;
|
|
18
|
+
min-height: auto;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.vertical-timeline-connector {
|
|
22
|
+
position: absolute;
|
|
23
|
+
top: 36px;
|
|
24
|
+
left: 17px;
|
|
25
|
+
width: 3px;
|
|
26
|
+
height: calc(100% - 10px);
|
|
27
|
+
/* Adjust based on padding/spacing */
|
|
28
|
+
background-color: #e0e0e0;
|
|
29
|
+
z-index: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.vertical-timeline-step:last-child .vertical-timeline-connector {
|
|
33
|
+
display: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.vertical-timeline-connector.completed {
|
|
37
|
+
background-color: #667eea;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.vertical-timeline-pill {
|
|
41
|
+
width: 38px;
|
|
42
|
+
/* Larger pill */
|
|
43
|
+
height: 38px;
|
|
44
|
+
border-radius: 50%;
|
|
45
|
+
background-color: #fff;
|
|
46
|
+
border: 3px solid #D1D5DB;
|
|
47
|
+
/* Thicker border */
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
font-weight: bold;
|
|
52
|
+
font-size: 16px;
|
|
53
|
+
/* Larger text */
|
|
54
|
+
color: #6B7280;
|
|
55
|
+
z-index: 1;
|
|
56
|
+
margin-right: 16px;
|
|
57
|
+
flex-shrink: 0;
|
|
58
|
+
transition: all 0.3s ease;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.vertical-timeline-step.active .vertical-timeline-pill {
|
|
62
|
+
background-color: #667eea;
|
|
63
|
+
border-color: #667eea;
|
|
64
|
+
color: #fff;
|
|
65
|
+
box-shadow: 0 0 0 5px rgba(244, 119, 56, 0.2);
|
|
66
|
+
/* Enhanced glow */
|
|
67
|
+
transform: scale(1.1);
|
|
68
|
+
/* Slight pulse effect */
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.vertical-timeline-step.completed .vertical-timeline-pill {
|
|
72
|
+
background-color: #667eea;
|
|
73
|
+
border-color: #667eea;
|
|
74
|
+
color: #fff;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.vertical-timeline-content {
|
|
78
|
+
display: flex;
|
|
79
|
+
flex-direction: column;
|
|
80
|
+
min-height: 38px;
|
|
81
|
+
margin-top: 10px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.vertical-timeline-label {
|
|
85
|
+
font-size: 16px;
|
|
86
|
+
color: #4B5563;
|
|
87
|
+
font-weight: 500;
|
|
88
|
+
line-height: normal;
|
|
89
|
+
/* Reset line height */
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.vertical-timeline-step.active .vertical-timeline-label {
|
|
93
|
+
color: #667eea;
|
|
94
|
+
font-weight: 700;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.vertical-timeline-step.completed .vertical-timeline-label {
|
|
98
|
+
color: #111827;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/* Responsive: Hide on small screens or move to top */
|
|
102
|
+
@media (max-width: 768px) {
|
|
103
|
+
.vertical-timeline-container {
|
|
104
|
+
display: none;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
@@ -1,165 +1,202 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
.timeline-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
.timeline-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
.timeline-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.
|
|
164
|
-
|
|
1
|
+
:root {
|
|
2
|
+
/* -- Core Colors -- */
|
|
3
|
+
--tl-color-primary: #3b82f6; /* Blue */
|
|
4
|
+
--tl-color-success: #10b981; /* Emerald */
|
|
5
|
+
--tl-color-line: #e5e7eb; /* Light Gray */
|
|
6
|
+
--tl-bg-card: #ffffff;
|
|
7
|
+
/* -- Text Colors -- */
|
|
8
|
+
--tl-text-main: #1f2937; /* Dark Slate */
|
|
9
|
+
--tl-text-muted: #6b7280; /* Medium Gray */
|
|
10
|
+
/* -- Sizing Variables -- */
|
|
11
|
+
--tl-circle-size: 26px;
|
|
12
|
+
--tl-line-width: 2px;
|
|
13
|
+
--tl-item-spacing: 20px;
|
|
14
|
+
--tl-card-padding: 12px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* Ensure standard box sizing */
|
|
18
|
+
.workflow-timeline-card2 *,
|
|
19
|
+
.workflow-timeline-card2 *::before,
|
|
20
|
+
.workflow-timeline-card2 *::after {
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.timeline-container2 {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
position: relative;
|
|
28
|
+
padding: 10px 0;
|
|
29
|
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.timeline-item2 {
|
|
33
|
+
display: flex;
|
|
34
|
+
position: relative;
|
|
35
|
+
padding-bottom: var(--tl-item-spacing);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.timeline-item2:last-child {
|
|
39
|
+
padding-bottom: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* --- Left Column: Marker & Line --- */
|
|
43
|
+
.timeline-marker2 {
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
align-items: center;
|
|
47
|
+
margin-right: 16px;
|
|
48
|
+
min-width: var(--tl-circle-size);
|
|
49
|
+
position: relative;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* The vertical connecting line */
|
|
53
|
+
.timeline-line2 {
|
|
54
|
+
position: absolute;
|
|
55
|
+
top: var(--tl-circle-size);
|
|
56
|
+
bottom: calc(-1 * var(--tl-item-spacing));
|
|
57
|
+
width: var(--tl-line-width);
|
|
58
|
+
background-color: var(--tl-color-line);
|
|
59
|
+
z-index: 0;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* Color the line green if the *current* step is completed */
|
|
63
|
+
.timeline-item2.completed2 .timeline-line2 {
|
|
64
|
+
background-color: var(--tl-color-success);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* The Circle Node */
|
|
68
|
+
.timeline-circle2 {
|
|
69
|
+
width: var(--tl-circle-size);
|
|
70
|
+
height: var(--tl-circle-size);
|
|
71
|
+
border-radius: 50%;
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
background-color: #fff;
|
|
76
|
+
border: 2px solid var(--tl-color-line);
|
|
77
|
+
z-index: 10;
|
|
78
|
+
transition: all 0.3s ease;
|
|
79
|
+
color: #fff;
|
|
80
|
+
overflow: hidden;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* Status Styles */
|
|
84
|
+
.timeline-item2.completed2 .timeline-circle2 {
|
|
85
|
+
background-color: var(--tl-color-success);
|
|
86
|
+
border-color: var(--tl-color-success);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.timeline-item2.current2 .timeline-circle2 {
|
|
90
|
+
background-color: var(--tl-color-primary);
|
|
91
|
+
border-color: var(--tl-color-primary);
|
|
92
|
+
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* --- Right Column: Card Content --- */
|
|
96
|
+
.timeline-content2 {
|
|
97
|
+
flex: 1;
|
|
98
|
+
background: var(--tl-bg-card);
|
|
99
|
+
border: 1px solid #f0f0f0;
|
|
100
|
+
border-radius: 8px;
|
|
101
|
+
padding: var(--tl-card-padding);
|
|
102
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
|
|
103
|
+
position: relative;
|
|
104
|
+
min-width: 0;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* Tiny triangle pointer pointing to the circle */
|
|
108
|
+
.timeline-content2::before {
|
|
109
|
+
content: '';
|
|
110
|
+
position: absolute;
|
|
111
|
+
left: -5px;
|
|
112
|
+
top: calc(var(--tl-circle-size) / 2 - 5px);
|
|
113
|
+
width: 10px;
|
|
114
|
+
height: 10px;
|
|
115
|
+
background: var(--tl-bg-card);
|
|
116
|
+
border-left: 1px solid #f0f0f0;
|
|
117
|
+
border-bottom: 1px solid #f0f0f0;
|
|
118
|
+
transform: rotate(45deg);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* Header section: Title and Date */
|
|
122
|
+
.timeline-header2 {
|
|
123
|
+
display: flex;
|
|
124
|
+
justify-content: space-between;
|
|
125
|
+
align-items: flex-start;
|
|
126
|
+
margin-bottom: 8px;
|
|
127
|
+
flex-wrap: nowrap;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.timeline-title2 {
|
|
131
|
+
font-weight: 600;
|
|
132
|
+
font-size: 13.5px;
|
|
133
|
+
color: var(--tl-text-main);
|
|
134
|
+
margin-right: 8px;
|
|
135
|
+
line-height: 1.3;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.timeline-date2 {
|
|
139
|
+
font-size: 11px;
|
|
140
|
+
color: var(--tl-text-muted);
|
|
141
|
+
white-space: nowrap;
|
|
142
|
+
background: #f9fafb;
|
|
143
|
+
padding: 2px 6px;
|
|
144
|
+
border-radius: 4px;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* Body section: Status tag and comment */
|
|
148
|
+
.timeline-body2 {
|
|
149
|
+
margin-bottom: 8px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.timeline-status-tag2 {
|
|
153
|
+
display: inline-block;
|
|
154
|
+
font-size: 10px;
|
|
155
|
+
font-weight: 700;
|
|
156
|
+
text-transform: uppercase;
|
|
157
|
+
letter-spacing: 0.5px;
|
|
158
|
+
padding: 3px 8px;
|
|
159
|
+
border-radius: 10px;
|
|
160
|
+
margin-bottom: 6px;
|
|
161
|
+
}
|
|
162
|
+
.status-completed2 { color: #065f46; background: #d1fae5; }
|
|
163
|
+
.status-current2 { color: #1e40af; background: #dbeafe; }
|
|
164
|
+
|
|
165
|
+
.timeline-comment2 {
|
|
166
|
+
font-size: 12.5px;
|
|
167
|
+
color: #4b5563;
|
|
168
|
+
line-height: 1.4;
|
|
169
|
+
background-color: #f9fafb;
|
|
170
|
+
padding: 8px;
|
|
171
|
+
border-radius: 6px;
|
|
172
|
+
border-left: 2px solid #d1d5db;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/* Footer section: Assignee */
|
|
176
|
+
.timeline-footer2 {
|
|
177
|
+
margin-top: 8px;
|
|
178
|
+
padding-top: 8px;
|
|
179
|
+
border-top: 1px solid #f3f4f6;
|
|
180
|
+
font-size: 11px;
|
|
181
|
+
color: var(--tl-text-muted);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
@keyframes spin-time2 {
|
|
185
|
+
from {
|
|
186
|
+
transform: rotate(0deg);
|
|
187
|
+
}
|
|
188
|
+
to {
|
|
189
|
+
transform: rotate(360deg);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/* Apply animation ONLY to the hands of the clock when the item is 'current' */
|
|
194
|
+
.timeline-item2.current2 .clock-hands2 {
|
|
195
|
+
transform-origin: 12px 12px;
|
|
196
|
+
animation: spin-time2 3s linear infinite;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/* Optional: Make the whole clock pulse gently if it's the current item */
|
|
200
|
+
.timeline-item2.current2 .timeline-circle2 svg {
|
|
201
|
+
filter: drop-shadow(0 0 2px rgba(59, 130, 246, 0.5));
|
|
165
202
|
}
|
package/src/components/body.scss
CHANGED
|
@@ -8,10 +8,12 @@ body {
|
|
|
8
8
|
|
|
9
9
|
.navbar {
|
|
10
10
|
@apply text-white bg-secondary p-md w-full mb-md;
|
|
11
|
+
|
|
11
12
|
img {
|
|
12
13
|
height: 24px;
|
|
13
14
|
}
|
|
14
15
|
}
|
|
16
|
+
|
|
15
17
|
/* .navbar-header{
|
|
16
18
|
@apply text-navbarheader float-left px-sm
|
|
17
19
|
}
|
|
@@ -53,6 +55,7 @@ body {
|
|
|
53
55
|
list-style: none;
|
|
54
56
|
padding: 0;
|
|
55
57
|
}
|
|
58
|
+
|
|
56
59
|
.bread-crumb--item {
|
|
57
60
|
margin-left: 5px;
|
|
58
61
|
|
|
@@ -90,20 +93,27 @@ body {
|
|
|
90
93
|
@screen dt {
|
|
91
94
|
.employee-app-container {
|
|
92
95
|
@apply w-full;
|
|
96
|
+
display: flex;
|
|
97
|
+
flex-direction: column;
|
|
98
|
+
gap: 12px;
|
|
99
|
+
padding: 12px 24px;
|
|
93
100
|
}
|
|
94
101
|
|
|
95
102
|
.app-container {
|
|
96
103
|
width: 100%;
|
|
104
|
+
|
|
97
105
|
form {
|
|
98
106
|
.card {
|
|
99
107
|
max-width: 960px;
|
|
108
|
+
|
|
100
109
|
h2 {
|
|
101
110
|
text-align: left;
|
|
102
111
|
}
|
|
103
|
-
|
|
112
|
+
|
|
104
113
|
button {
|
|
105
114
|
max-width: 240px;
|
|
106
115
|
}
|
|
116
|
+
|
|
107
117
|
.input-otp-wrap,
|
|
108
118
|
.card-text-button {
|
|
109
119
|
text-align: left;
|
|
@@ -133,6 +143,7 @@ body {
|
|
|
133
143
|
.body-container::-webkit-scrollbar {
|
|
134
144
|
display: none;
|
|
135
145
|
}
|
|
146
|
+
|
|
136
147
|
.audit-card {
|
|
137
148
|
width: 80%;
|
|
138
149
|
margin-left: -21%;
|