@djb25/digit-ui-css 1.0.16 → 1.0.17
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 +1 -1
- package/dist/index.min.css +1 -1
- package/package.json +1 -1
- package/src/components/WorkflowTimeline.scss +32 -18
- package/src/index.scss +0 -7
- package/src/pages/employee/index.scss +133 -26
package/package.json
CHANGED
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
/* -- Core Colors -- */
|
|
3
|
-
--tl-color-primary: #3b82f6;
|
|
4
|
-
|
|
5
|
-
--tl-color-
|
|
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;
|
|
9
|
-
|
|
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:
|
|
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
|
-
|
|
163
|
-
.status-
|
|
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
|
|
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;
|
|
@@ -771,61 +771,62 @@
|
|
|
771
771
|
}
|
|
772
772
|
}
|
|
773
773
|
|
|
774
|
-
/* Anchors the whole component to the right edge */
|
|
775
774
|
.ra-wrapper {
|
|
776
775
|
display: flex;
|
|
777
776
|
justify-content: flex-end;
|
|
778
|
-
align-items:
|
|
777
|
+
align-items: center;
|
|
779
778
|
|
|
780
|
-
/* Change from relative/static to absolute/fixed */
|
|
781
779
|
position: absolute;
|
|
782
780
|
right: 0;
|
|
783
781
|
top: 0;
|
|
784
|
-
height: 100%;
|
|
782
|
+
height: 100%;
|
|
785
783
|
|
|
786
|
-
/* Ensure it sits on top of everything else */
|
|
787
784
|
z-index: 1000;
|
|
788
|
-
font-family:
|
|
785
|
+
font-family: 'Inter', system-ui, -apple-system, sans-serif;
|
|
789
786
|
|
|
790
|
-
/* Prevents the wrapper itself from blocking clicks on the page when closed */
|
|
791
787
|
pointer-events: none;
|
|
792
788
|
}
|
|
793
789
|
|
|
794
|
-
/* The parent container sets the outer shape and shadow */
|
|
795
790
|
.ra-container {
|
|
796
|
-
pointer-events: auto;
|
|
791
|
+
pointer-events: auto;
|
|
797
792
|
display: flex;
|
|
798
793
|
flex-direction: row;
|
|
799
|
-
background: rgba(255, 255, 255, 0.7);
|
|
800
|
-
border-radius: 24px 0 0 24px;
|
|
794
|
+
background: rgba(255, 255, 255, 0.7);
|
|
795
|
+
border-radius: 24px 0 0 24px;
|
|
801
796
|
|
|
802
797
|
backdrop-filter: blur(16px) saturate(180%);
|
|
803
798
|
-webkit-backdrop-filter: blur(16px) saturate(180%);
|
|
804
799
|
|
|
805
800
|
border: 1px solid rgba(255, 255, 255, 0.4);
|
|
806
801
|
|
|
807
|
-
|
|
808
|
-
|
|
802
|
+
box-shadow:
|
|
803
|
+
-10px 0 30px rgba(0, 0, 0, 0.1),
|
|
804
|
+
0 8px 32px 0 rgba(31, 38, 135, 0.15);
|
|
809
805
|
|
|
810
806
|
overflow: hidden;
|
|
807
|
+
height: 50%;
|
|
808
|
+
transition: transform 0.3s ease, height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
.ra-container.open {
|
|
811
812
|
height: 100%;
|
|
812
|
-
transition: transform 0.3s ease;
|
|
813
813
|
}
|
|
814
814
|
|
|
815
|
-
|
|
816
|
-
/* When closed, width is exactly 0px, causing NO gaps. */
|
|
815
|
+
|
|
817
816
|
.ra-content-door {
|
|
818
817
|
width: 0px;
|
|
819
818
|
overflow: hidden;
|
|
820
819
|
transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
|
|
821
|
-
background: linear-gradient(135deg,
|
|
820
|
+
background: linear-gradient(135deg,
|
|
821
|
+
rgba(255, 255, 255, 0.4) 0%,
|
|
822
|
+
rgba(255, 255, 255, 0.2) 100%);
|
|
822
823
|
}
|
|
824
|
+
|
|
823
825
|
.ra-container.open .ra-content-door {
|
|
824
826
|
width: 380px;
|
|
825
827
|
border-right: 1px solid rgba(0, 0, 0, 0.05);
|
|
826
828
|
}
|
|
827
829
|
|
|
828
|
-
/* The inner content stays a fixed size so it doesn't wrap/squish while the door is opening */
|
|
829
830
|
.ra-content-inner {
|
|
830
831
|
width: 380px;
|
|
831
832
|
height: 100%;
|
|
@@ -835,7 +836,6 @@
|
|
|
835
836
|
justify-content: center;
|
|
836
837
|
}
|
|
837
838
|
|
|
838
|
-
/* --- Header & Layout Alignments --- */
|
|
839
839
|
.ra-header {
|
|
840
840
|
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
|
|
841
841
|
padding: 24px;
|
|
@@ -873,7 +873,6 @@
|
|
|
873
873
|
background: #eff6ff;
|
|
874
874
|
}
|
|
875
875
|
|
|
876
|
-
/* --- Timeline Area --- */
|
|
877
876
|
.ra-timeline::-webkit-scrollbar-thumb {
|
|
878
877
|
background: rgba(255, 255, 255, 0.5);
|
|
879
878
|
border-radius: 10px;
|
|
@@ -901,7 +900,6 @@
|
|
|
901
900
|
margin-bottom: 16px;
|
|
902
901
|
}
|
|
903
902
|
|
|
904
|
-
/* Indicator column strictly aligned */
|
|
905
903
|
.ra-indicator {
|
|
906
904
|
display: flex;
|
|
907
905
|
flex-direction: column;
|
|
@@ -937,7 +935,6 @@
|
|
|
937
935
|
flex: 1;
|
|
938
936
|
padding-bottom: 8px;
|
|
939
937
|
padding-top: 2px;
|
|
940
|
-
/* Micro-adjustment for text alignment */
|
|
941
938
|
}
|
|
942
939
|
|
|
943
940
|
.ra-text {
|
|
@@ -961,7 +958,7 @@
|
|
|
961
958
|
.ra-module {
|
|
962
959
|
font-family: "SFMono-Regular", Consolas, monospace;
|
|
963
960
|
font-size: 11px;
|
|
964
|
-
background: rgba(255, 255, 255, 0.4);
|
|
961
|
+
background: rgba(255, 255, 255, 0.4);
|
|
965
962
|
color: #1e293b;
|
|
966
963
|
padding: 4px 8px;
|
|
967
964
|
border-radius: 6px;
|
|
@@ -976,9 +973,8 @@
|
|
|
976
973
|
font-weight: 500;
|
|
977
974
|
}
|
|
978
975
|
|
|
979
|
-
/* --- Right Side Toggle Strip (Redesigned UI) --- */
|
|
980
976
|
.ra-strip {
|
|
981
|
-
width: 50px;
|
|
977
|
+
width: 50px;
|
|
982
978
|
flex-shrink: 0;
|
|
983
979
|
background: rgba(255, 255, 255, 0.8);
|
|
984
980
|
display: flex;
|
|
@@ -1030,5 +1026,116 @@
|
|
|
1030
1026
|
|
|
1031
1027
|
.ra-history-icon {
|
|
1032
1028
|
transform: rotate(90deg);
|
|
1033
|
-
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
.vendor-two-column-form .employeeCard {
|
|
1032
|
+
display: grid !important;
|
|
1033
|
+
grid-template-columns: 1fr 1fr;
|
|
1034
|
+
column-gap: 2rem;
|
|
1035
|
+
row-gap: 1rem;
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
.vendor-two-column-form .employeeCard>.card-header,
|
|
1039
|
+
.vendor-two-column-form .employeeCard>header,
|
|
1040
|
+
.vendor-two-column-form .employeeCard>.submit-bar,
|
|
1041
|
+
.vendor-two-column-form .employeeCard>.primary-label-btn,
|
|
1042
|
+
.vendor-two-column-form .employeeCard>.break-line {
|
|
1043
|
+
grid-column: 1 / -1;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
.vendor-two-column-form .employeeCard .field-container,
|
|
1047
|
+
.vendor-two-column-form .employeeCard .field {
|
|
1048
|
+
width: 100%;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
@media (max-width: 768px) {
|
|
1052
|
+
.vendor-two-column-form .employeeCard {
|
|
1053
|
+
grid-template-columns: 1fr;
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
.vendor-two-column-form .digit-card,
|
|
1058
|
+
.vendor-two-column-form .employeeCard,
|
|
1059
|
+
.vendor-two-column-form .card {
|
|
1060
|
+
display: grid !important;
|
|
1061
|
+
grid-template-columns: 1fr 1fr;
|
|
1062
|
+
grid-column-gap: 30px;
|
|
1063
|
+
grid-row-gap: 15px;
|
|
1064
|
+
align-items: flex-start;
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
.vendor-two-column-form .digit-card>.card-header,
|
|
1068
|
+
.vendor-two-column-form .digit-card>.card-sub-header,
|
|
1069
|
+
.vendor-two-column-form .digit-card>header,
|
|
1070
|
+
.vendor-two-column-form .employeeCard>.card-header,
|
|
1071
|
+
.vendor-two-column-form .employeeCard>.card-sub-header,
|
|
1072
|
+
.vendor-two-column-form .employeeCard>header,
|
|
1073
|
+
.vendor-two-column-form .card>.card-header,
|
|
1074
|
+
.vendor-two-column-form .card>.card-sub-header,
|
|
1075
|
+
.vendor-two-column-form .card>header,
|
|
1076
|
+
.vendor-two-column-form .card>hr {
|
|
1077
|
+
grid-column: 1 / -1;
|
|
1078
|
+
width: 100%;
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
@media (max-width: 768px) {
|
|
1082
|
+
|
|
1083
|
+
.vendor-two-column-form .digit-card,
|
|
1084
|
+
.vendor-two-column-form .employeeCard,
|
|
1085
|
+
.vendor-two-column-form .card {
|
|
1086
|
+
grid-template-columns: 1fr !important;
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
.vendor-details-two-column {
|
|
1091
|
+
display: grid;
|
|
1092
|
+
grid-template-columns: 1fr 1fr;
|
|
1093
|
+
grid-column-gap: 30px;
|
|
1094
|
+
grid-row-gap: 0px;
|
|
1095
|
+
align-items: center;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
@media (max-width: 768px) {
|
|
1099
|
+
.vendor-details-two-column {
|
|
1100
|
+
grid-template-columns: 1fr;
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
.vendor-two-column-form .input-wrap,
|
|
1105
|
+
.vendor-two-column-form .dropdown-wrap,
|
|
1106
|
+
.vendor-two-column-form .field {
|
|
1107
|
+
width: 100% !important;
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
.vendor-details-two-column .input-wrap,
|
|
1111
|
+
.vendor-details-two-column .dropdown-wrap,
|
|
1112
|
+
.vendor-details-two-column .field {
|
|
1113
|
+
width: 100% !important;
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
.vendor-two-column-form input,
|
|
1117
|
+
.vendor-two-column-form .react-date-picker {
|
|
1118
|
+
width: 100% !important;
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
.vendor-details-two-column input,
|
|
1122
|
+
.vendor-details-two-column .react-date-picker {
|
|
1123
|
+
width: 100% !important;
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
.vendor-select-address-inline {
|
|
1127
|
+
display: flex !important;
|
|
1128
|
+
gap: 30px;
|
|
1129
|
+
width: 100%;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
.vendor-select-address-inline>.label-field-pair {
|
|
1133
|
+
flex: 1;
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
@media (max-width: 768px) {
|
|
1137
|
+
.vendor-select-address-inline {
|
|
1138
|
+
flex-direction: column !important;
|
|
1139
|
+
gap: 0px;
|
|
1140
|
+
}
|
|
1034
1141
|
}
|