@egovernments/digit-ui-components-css 0.2.0 → 0.2.3
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/CHANGELOG.md +29 -0
- package/dist/index.css +8021 -6729
- package/dist/index.min.css +4 -3
- package/package.json +4 -2
- package/src/digitv2/components/buttonsV2.scss +5 -0
- package/src/digitv2/components/cardV2.scss +7 -1
- package/src/digitv2/components/fieldV1.scss +107 -0
- package/src/digitv2/components/labelFieldPairV2.scss +8 -0
- package/src/digitv2/components/multiSelectDropdownV2.scss +7 -2
- package/src/digitv2/components/otpInputV2.scss +1 -1
- package/src/digitv2/components/selectDropdownV2.scss +1 -1
- package/src/digitv2/components/textInputV2.scss +16 -0
- package/src/digitv2/components/timelineV2.scss +1 -1
- package/src/digitv2/components/toggleV2.scss +76 -1
- package/src/digitv2/index.scss +4 -4
- package/src/digitv2/pages/employee/boundaryFilter.scss +63 -0
- package/src/digitv2/pages/employee/inboxsearchcomposer.scss +500 -0
- package/src/digitv2/pages/employee/index.scss +3 -0
- package/src/digitv2/pages/employee/reactdatatable.scss +132 -0
- package/src/digitv2/pages/employee/workbench.scss +1 -1
- package/src/index.scss +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@egovernments/digit-ui-components-css",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.css",
|
|
6
6
|
"author": "Jagankumar <jagan.kumar@egovernments.org>",
|
|
@@ -24,7 +24,9 @@
|
|
|
24
24
|
"last 2 versions"
|
|
25
25
|
],
|
|
26
26
|
"style": "./dist/index.css",
|
|
27
|
-
"dependencies": {
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"react-datepicker": "4.8.0"
|
|
29
|
+
},
|
|
28
30
|
"devDependencies": {
|
|
29
31
|
"node-sass": "^4.14.1",
|
|
30
32
|
"normalize.css": "^8.0.1",
|
|
@@ -337,6 +337,11 @@
|
|
|
337
337
|
min-width: 15rem;
|
|
338
338
|
background-color: theme(digitv2.lightTheme.primary-1);
|
|
339
339
|
|
|
340
|
+
&.digit-formcomposer-submitbar{
|
|
341
|
+
width: fit-content;
|
|
342
|
+
margin-left: auto;
|
|
343
|
+
}
|
|
344
|
+
|
|
340
345
|
h2 {
|
|
341
346
|
@extend .typography.button.large;
|
|
342
347
|
@apply text-white;
|
|
@@ -334,7 +334,8 @@
|
|
|
334
334
|
}
|
|
335
335
|
|
|
336
336
|
.digit-card-section-header {
|
|
337
|
-
@apply text-
|
|
337
|
+
@apply text-heading-m font-bold;
|
|
338
|
+
color: theme(digitv2.lightTheme.text-primary);
|
|
338
339
|
}
|
|
339
340
|
|
|
340
341
|
.digit-card-search-heading {
|
|
@@ -495,4 +496,9 @@
|
|
|
495
496
|
margin-bottom: unset;
|
|
496
497
|
}
|
|
497
498
|
}
|
|
499
|
+
}
|
|
500
|
+
.titleStyle{
|
|
501
|
+
color: theme(digitv2.lightTheme.primary-2);
|
|
502
|
+
font-weight: theme(digitv2.fontWeight.bold);
|
|
503
|
+
font-size: theme(digitv2.spacers.spacer10);
|
|
498
504
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
flex-direction: column;
|
|
6
6
|
justify-content: flex-start;
|
|
7
7
|
gap: theme(digitv2.spacers.spacer1);
|
|
8
|
+
width: 100%;
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
.digit-header-content {
|
|
@@ -22,6 +23,10 @@
|
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
25
|
|
|
26
|
+
&.boldLabel{
|
|
27
|
+
font-weight: 700;
|
|
28
|
+
}
|
|
29
|
+
|
|
25
30
|
.label-container {
|
|
26
31
|
@apply flex items-center w-full;
|
|
27
32
|
gap: theme(digitv2.spacers.spacer1);
|
|
@@ -87,6 +92,10 @@
|
|
|
87
92
|
}
|
|
88
93
|
}
|
|
89
94
|
}
|
|
95
|
+
|
|
96
|
+
&.search-screen{
|
|
97
|
+
width: 100%;
|
|
98
|
+
}
|
|
90
99
|
}
|
|
91
100
|
}
|
|
92
101
|
|
|
@@ -139,4 +148,102 @@
|
|
|
139
148
|
.digit-charcount {
|
|
140
149
|
@apply justify-end;
|
|
141
150
|
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.digit-form-card-subheader {
|
|
154
|
+
@extend .typography.caption-l;
|
|
155
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
156
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
157
|
+
font-weight: theme(digitv2.fontWeight.medium);
|
|
158
|
+
line-height: theme(digitv2.lineHeight.lineheight1);
|
|
159
|
+
|
|
160
|
+
@media (max-aspect-ratio: 9/16) {
|
|
161
|
+
/* Media query for mobile */
|
|
162
|
+
font-size: theme(digitv2.fontSize.caption-l.mobile);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
166
|
+
/* Media query for tablets */
|
|
167
|
+
font-size: theme(digitv2.fontSize.caption-l.tablet);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
@media (min-aspect-ratio: 3/4) {
|
|
171
|
+
/* Media query for desktop */
|
|
172
|
+
font-size: theme(digitv2.fontSize.caption-l.desktop);
|
|
173
|
+
}
|
|
174
|
+
color: theme(digitv2.lightTheme.text-primary);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.digit-form-card-description {
|
|
178
|
+
@extend .typography.heading-s;
|
|
179
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
180
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
181
|
+
font-weight: theme(digitv2.fontWeight.bold);
|
|
182
|
+
line-height: theme(digitv2.lineHeight.lineheight1);
|
|
183
|
+
|
|
184
|
+
@media (max-aspect-ratio: 9/16) {
|
|
185
|
+
/* Media query for mobile */
|
|
186
|
+
font-size: theme(digitv2.fontSize.heading-s.mobile);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
190
|
+
/* Media query for tablets */
|
|
191
|
+
font-size: theme(digitv2.fontSize.heading-s.tablet);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@media (min-aspect-ratio: 3/4) {
|
|
195
|
+
/* Media query for desktop */
|
|
196
|
+
font-size: theme(digitv2.fontSize.heading-s.desktop);
|
|
197
|
+
}
|
|
198
|
+
color: theme(digitv2.lightTheme.text-secondary);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.digit-form-card-text {
|
|
202
|
+
@extend .typography.body-l;
|
|
203
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
204
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
205
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
206
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
207
|
+
|
|
208
|
+
@media (max-aspect-ratio: 9/16) {
|
|
209
|
+
/* Media query for mobile */
|
|
210
|
+
font-size: theme(digitv2.fontSize.body-l.mobile);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
214
|
+
/* Media query for tablets */
|
|
215
|
+
font-size: theme(digitv2.fontSize.body-l.tablet);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
@media (min-aspect-ratio: 3/4) {
|
|
219
|
+
/* Media query for desktop */
|
|
220
|
+
font-size: theme(digitv2.fontSize.body-l.desktop);
|
|
221
|
+
}
|
|
222
|
+
color: theme(digitv2.lightTheme.text-secondary);
|
|
223
|
+
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.sectionSubHeaderStyle{
|
|
227
|
+
@extend .typography.body-s;
|
|
228
|
+
@apply flex justify-between items-baseline;
|
|
229
|
+
color: theme(digitv2.lightTheme.text-secondary);
|
|
230
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
231
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
232
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
233
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
234
|
+
|
|
235
|
+
@media (max-aspect-ratio: 9/16) {
|
|
236
|
+
/* Media query for mobile */
|
|
237
|
+
font-size: theme(digitv2.fontSize.body-s.mobile);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
241
|
+
/* Media query for tablets */
|
|
242
|
+
font-size: theme(digitv2.fontSize.body-s.tablet);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
@media (min-aspect-ratio: 3/4) {
|
|
246
|
+
/* Media query for desktop */
|
|
247
|
+
font-size: theme(digitv2.fontSize.body-s.desktop);
|
|
248
|
+
}
|
|
142
249
|
}
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
.digit-multiselectdropdown-master-active{
|
|
70
|
-
&.
|
|
70
|
+
&.searchable{
|
|
71
71
|
input[type="text"]{
|
|
72
72
|
opacity: 1;
|
|
73
73
|
width: calc(100%-24px);
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
}
|
|
114
114
|
.digit-nested-category {
|
|
115
115
|
@apply flex items-center flex-shrink-0;
|
|
116
|
-
background: theme(digitv2.lightTheme.background);
|
|
116
|
+
background: theme(digitv2.lightTheme.generic-background);
|
|
117
117
|
height: 2.4375rem;
|
|
118
118
|
padding: theme(digitv2.spacers.spacer4) 0.625rem;
|
|
119
119
|
gap: 0.625rem;
|
|
@@ -203,6 +203,11 @@
|
|
|
203
203
|
}
|
|
204
204
|
.digit-multiselectdropodwn-menuitem {
|
|
205
205
|
@apply flex w-full bg-white justify-start items-center;
|
|
206
|
+
|
|
207
|
+
&.frozen{
|
|
208
|
+
pointer-events: none;
|
|
209
|
+
opacity: 0.6;
|
|
210
|
+
}
|
|
206
211
|
min-height: 2.438rem;
|
|
207
212
|
.option-des-container {
|
|
208
213
|
@apply w-full max-w-full overflow-hidden box-border;
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
height: 3.125rem;
|
|
41
41
|
text-align: center;
|
|
42
42
|
color: theme(digitv2.lightTheme.text-primary);
|
|
43
|
-
border: 0.063rem solid theme(digitv2.lightTheme.
|
|
43
|
+
border: 0.063rem solid theme(digitv2.lightTheme.generic-inputborder);
|
|
44
44
|
outline: none;
|
|
45
45
|
transition: border-color 0.3s ease-in-out;
|
|
46
46
|
font-family: theme(digitv2.fontFamily.sans);
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
}
|
|
165
165
|
.digit-nested-category {
|
|
166
166
|
@apply flex items-center flex-shrink-0;
|
|
167
|
-
background: theme(digitv2.lightTheme.background);
|
|
167
|
+
background: theme(digitv2.lightTheme.generic-background);
|
|
168
168
|
height: 2.4375rem;
|
|
169
169
|
padding: theme(digitv2.spacers.spacer4) 0.625rem;
|
|
170
170
|
gap: 0.625rem;
|
|
@@ -462,4 +462,20 @@
|
|
|
462
462
|
&.disabled {
|
|
463
463
|
@apply pointer-events-none;
|
|
464
464
|
}
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.digit-new-date-format{
|
|
468
|
+
position: absolute;
|
|
469
|
+
top: 50%;
|
|
470
|
+
right: 12px;
|
|
471
|
+
transform: translateY(-50%);
|
|
472
|
+
cursor: pointer;
|
|
473
|
+
z-index: 2;
|
|
474
|
+
pointer-events: auto;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.digit-new-date-format.disabled{
|
|
478
|
+
pointer-events: none;
|
|
479
|
+
opacity: 0.4;
|
|
480
|
+
cursor: not-allowed;
|
|
465
481
|
}
|
|
@@ -108,4 +108,79 @@
|
|
|
108
108
|
.digit-toggle-label {
|
|
109
109
|
color: theme(digitv2.lightTheme.text-disabled);
|
|
110
110
|
padding: theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer3);
|
|
111
|
-
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
.digit-toggle-toolbar.vertical-toggle {
|
|
115
|
+
display: flex;
|
|
116
|
+
flex-direction: column;
|
|
117
|
+
align-items: stretch;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.digit-toggle-toolbar.vertical-toggle .toggle-option-container {
|
|
121
|
+
width: fit-content !important;
|
|
122
|
+
max-width: 100% !important;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.digit-toggle-toolbar.vertical-toggle .digit-toggle-btn-wrap {
|
|
126
|
+
box-sizing: border-box;
|
|
127
|
+
display: flex;
|
|
128
|
+
align-items: center;
|
|
129
|
+
justify-content: center;
|
|
130
|
+
padding: 0.75rem;
|
|
131
|
+
background-color: theme(digitv2.lightTheme.paper-primary);
|
|
132
|
+
border: 1px solid #d6d6d6;
|
|
133
|
+
cursor: pointer;
|
|
134
|
+
transition: all 0.2s ease;
|
|
135
|
+
width: 8.5rem !important;
|
|
136
|
+
min-width: 6.25rem;
|
|
137
|
+
height: 8.125rem;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.vertical-toggle .toggle-option-container:first-child .digit-toggle-btn-wrap {
|
|
141
|
+
border-top-left-radius: 0.5rem;
|
|
142
|
+
border-top-right-radius: 0.5rem;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.vertical-toggle .toggle-option-container:last-child .digit-toggle-btn-wrap {
|
|
146
|
+
border-bottom-left-radius: 0.5rem;
|
|
147
|
+
border-bottom-right-radius: 0.5rem;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.digit-toggle-toolbar.vertical-toggle .digit-toggle-btn-wrap.checked {
|
|
151
|
+
border: 2px solid theme(digitv2.lightTheme.primary-1);
|
|
152
|
+
background-color: theme(digitv2.lightTheme.paper-primary) !important;
|
|
153
|
+
color: theme(digitv2.lightTheme.primary-1);
|
|
154
|
+
width: 9rem !important;
|
|
155
|
+
transform: scaleX(1.05);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.digit-toggle-toolbar.vertical-toggle .digit-toggle-label {
|
|
159
|
+
font-weight: bold;
|
|
160
|
+
font-size: theme(digitv2.fontSize.heading-s);
|
|
161
|
+
text-align: center;
|
|
162
|
+
width: 100%;
|
|
163
|
+
background-color: theme(digitv2.lightTheme.paper-primary);
|
|
164
|
+
color: theme(digitv2.lightTheme.primary-2);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.digit-toggle-input {
|
|
168
|
+
display: none;
|
|
169
|
+
}
|
|
170
|
+
.vertical-toggle .digit-toggle-btn-wrap input:checked + .digit-toggle-label {
|
|
171
|
+
background-color:theme(digitv2.lightTheme.paper-primary) !important;
|
|
172
|
+
color: theme(digitv2.lightTheme.primary-1) !important;
|
|
173
|
+
border-bottom-right-radius: 0.5rem;
|
|
174
|
+
border-top-right-radius: 0.5rem;
|
|
175
|
+
}
|
|
176
|
+
.vertical-toggle .digit-toggle-btn-wrap.checked {
|
|
177
|
+
border-bottom-right-radius: 0.5rem;
|
|
178
|
+
border-top-right-radius: 0.5rem;
|
|
179
|
+
}
|
|
180
|
+
.vertical-toggle{
|
|
181
|
+
.digit-toggle-label{
|
|
182
|
+
&.disabled{
|
|
183
|
+
color: theme(digitv2.lightTheme.text-disabled) !important;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
package/src/digitv2/index.scss
CHANGED
|
@@ -60,14 +60,14 @@
|
|
|
60
60
|
/* important to be remove after fixing the components */
|
|
61
61
|
.light {
|
|
62
62
|
&-primary {
|
|
63
|
-
color: theme(digitv2.lightTheme.primary-
|
|
63
|
+
color: theme(digitv2.lightTheme.primary-1) !important;
|
|
64
64
|
|
|
65
65
|
&-button {
|
|
66
|
-
background-color: theme(digitv2.lightTheme.primary-
|
|
66
|
+
background-color: theme(digitv2.lightTheme.primary-1);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
&-bg {
|
|
70
|
-
background-color: theme(digitv2.lightTheme.primary-
|
|
70
|
+
background-color: theme(digitv2.lightTheme.primary-bg);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
&-header-sidenav {
|
|
123
|
-
color: theme(digitv2.lightTheme.primary-
|
|
123
|
+
color: theme(digitv2.lightTheme.primary-2);
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
&-input-border {
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
.selecting-boundary-div {
|
|
2
|
+
padding-top: 0.5rem;
|
|
3
|
+
|
|
4
|
+
gap:1.5rem;
|
|
5
|
+
.label-field-pair {
|
|
6
|
+
margin-bottom: 1.5rem;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
.selecting-boundary-div.horizontal-layout {
|
|
14
|
+
display: grid;
|
|
15
|
+
grid-template-columns: repeat(3, 1fr);
|
|
16
|
+
align-items: flex-start;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
.digit-card-label.boundary-selection-label{
|
|
21
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
22
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
23
|
+
font-weight: theme(digitv2.fontWeight.bold);
|
|
24
|
+
|
|
25
|
+
@media (max-width: 30rem) {
|
|
26
|
+
/* Media query for mobile */
|
|
27
|
+
font-size: theme(digitv2.fontSize.heading-s.mobile);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@media (min-width: 30.063rem) and (max-width: 47.938rem) {
|
|
31
|
+
/* Media query for tablets */
|
|
32
|
+
font-size: theme(digitv2.fontSize.heading-s.tablet);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@media (min-width: 48rem) {
|
|
36
|
+
/* Media query for desktop */
|
|
37
|
+
font-size: theme(digitv2.fontSize.heading-s.desktop);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
color: theme(digitv2.lightTheme.text-primary);
|
|
41
|
+
width:30%;
|
|
42
|
+
}
|
|
43
|
+
.selecting-boundary-div.horizontal-layout .boundary-item {
|
|
44
|
+
display: flex;
|
|
45
|
+
justify-content: center;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.digit-field-full{
|
|
49
|
+
width:100%;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.digit-label-field-pair.boundary-item.vertical{
|
|
53
|
+
margin-bottom: 0rem;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.padding-dropdown{
|
|
57
|
+
padding-bottom: 1.6rem;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.filter-card.filter-card-vertical .selecting-boundary-div {
|
|
61
|
+
max-width: 65%;
|
|
62
|
+
}
|
|
63
|
+
|