@egovernments/digit-ui-components-css 0.2.0-beta.9 → 0.2.0-rc.16
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 +4 -14685
- package/package.json +33 -36
- package/src/digitv2/components/FormComposerV2.scss +6 -5
- package/src/digitv2/components/accordionV2.scss +59 -59
- package/src/digitv2/components/alertCardV2.scss +43 -43
- package/src/digitv2/components/backLinkV2.scss +11 -8
- package/src/digitv2/components/bodyContainerV2.scss +2 -1
- package/src/digitv2/components/bottomSheetV2.scss +22 -19
- package/src/digitv2/components/breadcrumbV2.scss +27 -25
- package/src/digitv2/components/buttonsV2.scss +72 -72
- package/src/digitv2/components/cardV2.scss +18 -17
- package/src/digitv2/components/cardbasedoptionsV2.scss +4 -1
- package/src/digitv2/components/cardlabelV2.scss +4 -3
- package/src/digitv2/components/checkboxV2.scss +33 -32
- package/src/digitv2/components/chipV2.scss +46 -43
- package/src/digitv2/components/dividerV2.scss +7 -4
- package/src/digitv2/components/errorMessageV2.scss +15 -15
- package/src/digitv2/components/fieldV1.scss +69 -64
- package/src/digitv2/components/fileUploadV2.scss +129 -126
- package/src/digitv2/components/filterCardV2.scss +54 -51
- package/src/digitv2/components/footerV2.scss +14 -13
- package/src/digitv2/components/formCardV2.scss +52 -49
- package/src/digitv2/components/hamburgerV2.scss +145 -142
- package/src/digitv2/components/headerV2.scss +60 -57
- package/src/digitv2/components/headerdropdownV2.scss +72 -69
- package/src/digitv2/components/infobuttonV2.scss +18 -15
- package/src/digitv2/components/labelFieldPairV2.scss +11 -8
- package/src/digitv2/components/landingpagecardV2.scss +73 -70
- package/src/digitv2/components/loaderV2.scss +7 -4
- package/src/digitv2/components/menuCardV2.scss +34 -31
- package/src/digitv2/components/metricCardV2.scss +55 -52
- package/src/digitv2/components/mobileNumberV2.scss +10 -10
- package/src/digitv2/components/multiSelectDropdownV2.scss +170 -168
- package/src/digitv2/components/otpInputV2.scss +29 -26
- package/src/digitv2/components/panelCardV2.scss +46 -43
- package/src/digitv2/components/panelV2.scss +34 -31
- package/src/digitv2/components/popUpV2.scss +94 -91
- package/src/digitv2/components/radiobtnV2.scss +24 -23
- package/src/digitv2/components/selectDropdownV2.scss +200 -197
- package/src/digitv2/components/selectionTagV2.scss +32 -29
- package/src/digitv2/components/sidePanelV2.scss +51 -48
- package/src/digitv2/components/sidenavV2.scss +119 -116
- package/src/digitv2/components/stepperV2.scss +61 -58
- package/src/digitv2/components/summaryCardFieldPairV2.scss +25 -22
- package/src/digitv2/components/summaryCardV2.scss +30 -27
- package/src/digitv2/components/switchV2.scss +34 -31
- package/src/digitv2/components/tabV2.scss +29 -26
- package/src/digitv2/components/tableV2.scss +152 -149
- package/src/digitv2/components/tagV2.scss +27 -24
- package/src/digitv2/components/textInputV2.scss +117 -101
- package/src/digitv2/components/textareaV2.scss +23 -20
- package/src/digitv2/components/textblockV2.scss +31 -28
- package/src/digitv2/components/timelineV2.scss +64 -61
- package/src/digitv2/components/toastV2.scss +28 -25
- package/src/digitv2/components/toggleV2.scss +121 -37
- package/src/digitv2/components/tooltipwrapperV2.scss +97 -94
- package/src/digitv2/components/treeSelectV2.scss +58 -55
- package/src/digitv2/index.scss +136 -134
- package/src/digitv2/pages/employee/boundaryFilter.scss +7 -7
- package/src/digitv2/pages/employee/inboxsearchcomposer.scss +107 -37
- package/src/digitv2/pages/employee/index.scss +4 -4
- package/src/digitv2/pages/employee/reactdatatable.scss +13 -13
- package/src/digitv2/pages/employee/workbench.scss +29 -28
- package/src/digitv2/typography.scss +633 -640
- package/src/index.scss +21 -19
- package/src/pages/employee/index.scss +26 -26
- package/src/pages/employee/login.scss +4 -4
- package/src/theme-variables.css +137 -0
- package/CHANGELOG.md +0 -235
- package/dist/index.min.css +0 -6
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
@import
|
|
1
|
+
@import './theme-variables.css';
|
|
2
|
+
@import '../typography.scss';
|
|
2
3
|
|
|
3
4
|
.label-field-wrapper{
|
|
4
5
|
display: flex;
|
|
5
6
|
flex-direction: column;
|
|
6
7
|
justify-content: flex-start;
|
|
7
|
-
gap: theme(digitv2.spacers.spacer1);
|
|
8
|
+
gap: theme("digitv2.spacers.spacer1");
|
|
8
9
|
width: 100%;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
.digit-header-content {
|
|
12
13
|
|
|
13
14
|
&.label {
|
|
14
|
-
@
|
|
15
|
+
@include typography-label;
|
|
15
16
|
@apply flex ;
|
|
16
|
-
color: theme(digitv2.lightTheme.text-primary);
|
|
17
|
-
gap: theme(digitv2.spacers.spacer1);
|
|
17
|
+
color: theme("digitv2.lightTheme.text-primary");
|
|
18
|
+
gap: theme("digitv2.spacers.spacer1");
|
|
18
19
|
|
|
19
20
|
&.wraplabel {
|
|
20
21
|
@media (min-aspect-ratio: 9/16){
|
|
@@ -23,9 +24,13 @@
|
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
|
|
27
|
+
&.boldLabel{
|
|
28
|
+
font-weight: 700;
|
|
29
|
+
}
|
|
30
|
+
|
|
26
31
|
.label-container {
|
|
27
32
|
@apply flex items-center w-full;
|
|
28
|
-
gap: theme(digitv2.spacers.spacer1);
|
|
33
|
+
gap: theme("digitv2.spacers.spacer1");
|
|
29
34
|
|
|
30
35
|
&.wraplabel{
|
|
31
36
|
@media (min-aspect-ratio: 9/16) {
|
|
@@ -41,32 +46,32 @@
|
|
|
41
46
|
}
|
|
42
47
|
|
|
43
48
|
.info-icon .infotext {
|
|
44
|
-
@
|
|
49
|
+
@include typography-body-s;
|
|
45
50
|
@apply absolute text-center;
|
|
46
|
-
font-family: theme(digitv2.fontFamily.sans);
|
|
47
|
-
font-style: theme(digitv2.fontStyle.normal);
|
|
48
|
-
font-weight: theme(digitv2.fontWeight.regular);
|
|
49
|
-
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
51
|
+
font-family: theme("digitv2.fontFamily.sans");
|
|
52
|
+
font-style: theme("digitv2.fontStyle.normal");
|
|
53
|
+
font-weight: theme("digitv2.fontWeight.regular");
|
|
54
|
+
line-height: theme("digitv2.lineHeight.lineheight2");
|
|
50
55
|
|
|
51
56
|
@media (max-aspect-ratio: 9/16) {
|
|
52
57
|
/* Media query for mobile */
|
|
53
|
-
font-size: theme(digitv2.fontSize.body-s.mobile);
|
|
58
|
+
font-size: theme("digitv2.fontSize.body-s.mobile");
|
|
54
59
|
}
|
|
55
60
|
|
|
56
61
|
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
57
62
|
/* Media query for tablets */
|
|
58
|
-
font-size: theme(digitv2.fontSize.body-s.tablet);
|
|
63
|
+
font-size: theme("digitv2.fontSize.body-s.tablet");
|
|
59
64
|
}
|
|
60
65
|
|
|
61
66
|
@media (min-aspect-ratio: 3/4) {
|
|
62
67
|
/* Media query for desktop */
|
|
63
|
-
font-size: theme(digitv2.fontSize.body-s.desktop);
|
|
68
|
+
font-size: theme("digitv2.fontSize.body-s.desktop");
|
|
64
69
|
}
|
|
65
70
|
visibility: hidden;
|
|
66
71
|
width: 7.5rem;
|
|
67
72
|
background-color: #555555;
|
|
68
|
-
color: theme(digitv2.lightTheme.paper-primary);
|
|
69
|
-
padding: theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer0);
|
|
73
|
+
color: theme("digitv2.lightTheme.paper-primary");
|
|
74
|
+
padding: theme("digitv2.spacers.spacer2") theme("digitv2.spacers.spacer0");
|
|
70
75
|
z-index: 1;
|
|
71
76
|
bottom: 100%;
|
|
72
77
|
left: 50%;
|
|
@@ -79,7 +84,7 @@
|
|
|
79
84
|
}
|
|
80
85
|
|
|
81
86
|
.label-styles {
|
|
82
|
-
@apply overflow-hidden whitespace-
|
|
87
|
+
@apply overflow-hidden whitespace-nowrap;
|
|
83
88
|
text-overflow: ellipsis;
|
|
84
89
|
|
|
85
90
|
&.wraplabel {
|
|
@@ -98,32 +103,32 @@
|
|
|
98
103
|
.digit-field {
|
|
99
104
|
|
|
100
105
|
@apply flex flex-col w-full;
|
|
101
|
-
gap: theme(digitv2.spacers.spacer1);
|
|
106
|
+
gap: theme("digitv2.spacers.spacer1");
|
|
102
107
|
|
|
103
108
|
.digit-description,
|
|
104
109
|
.digit-charcount {
|
|
105
|
-
@
|
|
110
|
+
@include typography-body-s;
|
|
106
111
|
@apply flex justify-between items-baseline;
|
|
107
|
-
color: theme(digitv2.lightTheme.text-secondary);
|
|
108
|
-
gap: theme(digitv2.spacers.spacer2);
|
|
109
|
-
font-family: theme(digitv2.fontFamily.sans);
|
|
110
|
-
font-style: theme(digitv2.fontStyle.normal);
|
|
111
|
-
font-weight: theme(digitv2.fontWeight.regular);
|
|
112
|
-
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
112
|
+
color: theme("digitv2.lightTheme.text-secondary");
|
|
113
|
+
gap: theme("digitv2.spacers.spacer2");
|
|
114
|
+
font-family: theme("digitv2.fontFamily.sans");
|
|
115
|
+
font-style: theme("digitv2.fontStyle.normal");
|
|
116
|
+
font-weight: theme("digitv2.fontWeight.regular");
|
|
117
|
+
line-height: theme("digitv2.lineHeight.lineheight2");
|
|
113
118
|
|
|
114
119
|
@media (max-aspect-ratio: 9/16) {
|
|
115
120
|
/* Media query for mobile */
|
|
116
|
-
font-size: theme(digitv2.fontSize.body-s.mobile);
|
|
121
|
+
font-size: theme("digitv2.fontSize.body-s.mobile");
|
|
117
122
|
}
|
|
118
123
|
|
|
119
124
|
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
120
125
|
/* Media query for tablets */
|
|
121
|
-
font-size: theme(digitv2.fontSize.body-s.tablet);
|
|
126
|
+
font-size: theme("digitv2.fontSize.body-s.tablet");
|
|
122
127
|
}
|
|
123
128
|
|
|
124
129
|
@media (min-aspect-ratio: 3/4) {
|
|
125
130
|
/* Media query for desktop */
|
|
126
|
-
font-size: theme(digitv2.fontSize.body-s.desktop);
|
|
131
|
+
font-size: theme("digitv2.fontSize.body-s.desktop");
|
|
127
132
|
}
|
|
128
133
|
|
|
129
134
|
|
|
@@ -147,99 +152,99 @@
|
|
|
147
152
|
}
|
|
148
153
|
|
|
149
154
|
.digit-form-card-subheader {
|
|
150
|
-
@
|
|
151
|
-
font-family: theme(digitv2.fontFamily.sans);
|
|
152
|
-
font-style: theme(digitv2.fontStyle.normal);
|
|
153
|
-
font-weight: theme(digitv2.fontWeight.medium);
|
|
154
|
-
line-height: theme(digitv2.lineHeight.lineheight1);
|
|
155
|
+
@include typography-caption-l;
|
|
156
|
+
font-family: theme("digitv2.fontFamily.sans");
|
|
157
|
+
font-style: theme("digitv2.fontStyle.normal");
|
|
158
|
+
font-weight: theme("digitv2.fontWeight.medium");
|
|
159
|
+
line-height: theme("digitv2.lineHeight.lineheight1");
|
|
155
160
|
|
|
156
161
|
@media (max-aspect-ratio: 9/16) {
|
|
157
162
|
/* Media query for mobile */
|
|
158
|
-
font-size: theme(digitv2.fontSize.caption-l.mobile);
|
|
163
|
+
font-size: theme("digitv2.fontSize.caption-l.mobile");
|
|
159
164
|
}
|
|
160
165
|
|
|
161
166
|
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
162
167
|
/* Media query for tablets */
|
|
163
|
-
font-size: theme(digitv2.fontSize.caption-l.tablet);
|
|
168
|
+
font-size: theme("digitv2.fontSize.caption-l.tablet");
|
|
164
169
|
}
|
|
165
170
|
|
|
166
171
|
@media (min-aspect-ratio: 3/4) {
|
|
167
172
|
/* Media query for desktop */
|
|
168
|
-
font-size: theme(digitv2.fontSize.caption-l.desktop);
|
|
173
|
+
font-size: theme("digitv2.fontSize.caption-l.desktop");
|
|
169
174
|
}
|
|
170
|
-
color: theme(digitv2.lightTheme.text-primary);
|
|
175
|
+
color: theme("digitv2.lightTheme.text-primary");
|
|
171
176
|
}
|
|
172
177
|
|
|
173
178
|
.digit-form-card-description {
|
|
174
|
-
@
|
|
175
|
-
font-family: theme(digitv2.fontFamily.sans);
|
|
176
|
-
font-style: theme(digitv2.fontStyle.normal);
|
|
177
|
-
font-weight: theme(digitv2.fontWeight.bold);
|
|
178
|
-
line-height: theme(digitv2.lineHeight.lineheight1);
|
|
179
|
+
@include typography-heading-s;
|
|
180
|
+
font-family: theme("digitv2.fontFamily.sans");
|
|
181
|
+
font-style: theme("digitv2.fontStyle.normal");
|
|
182
|
+
font-weight: theme("digitv2.fontWeight.bold");
|
|
183
|
+
line-height: theme("digitv2.lineHeight.lineheight1");
|
|
179
184
|
|
|
180
185
|
@media (max-aspect-ratio: 9/16) {
|
|
181
186
|
/* Media query for mobile */
|
|
182
|
-
font-size: theme(digitv2.fontSize.heading-s.mobile);
|
|
187
|
+
font-size: theme("digitv2.fontSize.heading-s.mobile");
|
|
183
188
|
}
|
|
184
189
|
|
|
185
190
|
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
186
191
|
/* Media query for tablets */
|
|
187
|
-
font-size: theme(digitv2.fontSize.heading-s.tablet);
|
|
192
|
+
font-size: theme("digitv2.fontSize.heading-s.tablet");
|
|
188
193
|
}
|
|
189
194
|
|
|
190
195
|
@media (min-aspect-ratio: 3/4) {
|
|
191
196
|
/* Media query for desktop */
|
|
192
|
-
font-size: theme(digitv2.fontSize.heading-s.desktop);
|
|
197
|
+
font-size: theme("digitv2.fontSize.heading-s.desktop");
|
|
193
198
|
}
|
|
194
|
-
color: theme(digitv2.lightTheme.text-secondary);
|
|
199
|
+
color: theme("digitv2.lightTheme.text-secondary");
|
|
195
200
|
}
|
|
196
201
|
|
|
197
202
|
.digit-form-card-text {
|
|
198
|
-
@
|
|
199
|
-
font-family: theme(digitv2.fontFamily.sans);
|
|
200
|
-
font-style: theme(digitv2.fontStyle.normal);
|
|
201
|
-
font-weight: theme(digitv2.fontWeight.regular);
|
|
202
|
-
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
203
|
+
@include typography-body-l;
|
|
204
|
+
font-family: theme("digitv2.fontFamily.sans");
|
|
205
|
+
font-style: theme("digitv2.fontStyle.normal");
|
|
206
|
+
font-weight: theme("digitv2.fontWeight.regular");
|
|
207
|
+
line-height: theme("digitv2.lineHeight.lineheight2");
|
|
203
208
|
|
|
204
209
|
@media (max-aspect-ratio: 9/16) {
|
|
205
210
|
/* Media query for mobile */
|
|
206
|
-
font-size: theme(digitv2.fontSize.body-l.mobile);
|
|
211
|
+
font-size: theme("digitv2.fontSize.body-l.mobile");
|
|
207
212
|
}
|
|
208
213
|
|
|
209
214
|
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
210
215
|
/* Media query for tablets */
|
|
211
|
-
font-size: theme(digitv2.fontSize.body-l.tablet);
|
|
216
|
+
font-size: theme("digitv2.fontSize.body-l.tablet");
|
|
212
217
|
}
|
|
213
218
|
|
|
214
219
|
@media (min-aspect-ratio: 3/4) {
|
|
215
220
|
/* Media query for desktop */
|
|
216
|
-
font-size: theme(digitv2.fontSize.body-l.desktop);
|
|
221
|
+
font-size: theme("digitv2.fontSize.body-l.desktop");
|
|
217
222
|
}
|
|
218
|
-
color: theme(digitv2.lightTheme.text-secondary);
|
|
223
|
+
color: theme("digitv2.lightTheme.text-secondary");
|
|
219
224
|
|
|
220
225
|
}
|
|
221
226
|
|
|
222
227
|
.sectionSubHeaderStyle{
|
|
223
|
-
@
|
|
228
|
+
@include typography-body-s;
|
|
224
229
|
@apply flex justify-between items-baseline;
|
|
225
|
-
color: theme(digitv2.lightTheme.text-secondary);
|
|
226
|
-
font-family: theme(digitv2.fontFamily.sans);
|
|
227
|
-
font-style: theme(digitv2.fontStyle.normal);
|
|
228
|
-
font-weight: theme(digitv2.fontWeight.regular);
|
|
229
|
-
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
230
|
+
color: theme("digitv2.lightTheme.text-secondary");
|
|
231
|
+
font-family: theme("digitv2.fontFamily.sans");
|
|
232
|
+
font-style: theme("digitv2.fontStyle.normal");
|
|
233
|
+
font-weight: theme("digitv2.fontWeight.regular");
|
|
234
|
+
line-height: theme("digitv2.lineHeight.lineheight2");
|
|
230
235
|
|
|
231
236
|
@media (max-aspect-ratio: 9/16) {
|
|
232
237
|
/* Media query for mobile */
|
|
233
|
-
font-size: theme(digitv2.fontSize.body-s.mobile);
|
|
238
|
+
font-size: theme("digitv2.fontSize.body-s.mobile");
|
|
234
239
|
}
|
|
235
240
|
|
|
236
241
|
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
237
242
|
/* Media query for tablets */
|
|
238
|
-
font-size: theme(digitv2.fontSize.body-s.tablet);
|
|
243
|
+
font-size: theme("digitv2.fontSize.body-s.tablet");
|
|
239
244
|
}
|
|
240
245
|
|
|
241
246
|
@media (min-aspect-ratio: 3/4) {
|
|
242
247
|
/* Media query for desktop */
|
|
243
|
-
font-size: theme(digitv2.fontSize.body-s.desktop);
|
|
248
|
+
font-size: theme("digitv2.fontSize.body-s.desktop");
|
|
244
249
|
}
|
|
245
250
|
}
|