@egovernments/digit-ui-components-css 0.0.2-beta.24 → 0.0.2-beta.26
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 +849 -195
- package/dist/index.min.css +2 -2
- package/package.json +1 -1
- package/src/digitv2/components/accordionV2.scss +67 -0
- package/src/digitv2/components/bottomSheetV2.scss +12 -1
- package/src/digitv2/components/breadcrumbV2.scss +38 -0
- package/src/digitv2/components/buttonsV2.scss +27 -25
- package/src/digitv2/components/checkboxV2.scss +19 -0
- package/src/digitv2/components/fieldV1.scss +38 -0
- package/src/digitv2/components/headerdropdownV2.scss +57 -0
- package/src/digitv2/components/mobilesidebarV2.scss +171 -56
- package/src/digitv2/components/multiSelectDropdownV2.scss +38 -0
- package/src/digitv2/components/panelCardV2.scss +19 -0
- package/src/digitv2/components/popUpV2.scss +38 -0
- package/src/digitv2/components/radiobtnV2.scss +19 -0
- package/src/digitv2/components/selectDropdownV2.scss +38 -0
- package/src/digitv2/components/sidebarV2.scss +19 -0
- package/src/digitv2/components/stepperV2.scss +19 -0
- package/src/digitv2/components/switchV2.scss +1 -1
- package/src/digitv2/components/textblockV2.scss +19 -0
- package/src/digitv2/components/timelineV2.scss +19 -0
- package/src/digitv2/components/toastV2.scss +79 -1
- package/src/digitv2/components/topbarV2.scss +19 -0
- package/src/digitv2/components/treeSelectV2.scss +19 -0
- package/src/digitv2/components/uploaderV2.scss +76 -0
- package/src/digitv2/components/viewCardFieldPairV2.scss +19 -0
package/package.json
CHANGED
|
@@ -102,4 +102,71 @@
|
|
|
102
102
|
&.cardBg{
|
|
103
103
|
background-color: theme(digitv2.lightTheme.paper-secondary);
|
|
104
104
|
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@keyframes rotateOpen {
|
|
108
|
+
from {
|
|
109
|
+
transform: rotate(-180deg);
|
|
110
|
+
}
|
|
111
|
+
to {
|
|
112
|
+
transform: rotate(-90deg);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@keyframes rotateClose {
|
|
117
|
+
from {
|
|
118
|
+
transform: rotate(-90deg);
|
|
119
|
+
}
|
|
120
|
+
to {
|
|
121
|
+
transform: rotate(-180deg);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.digit-accordion-toggle.animate-open svg {
|
|
126
|
+
animation: rotateOpen 0.5s ease forwards;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.digit-accordion-toggle.animate-close svg {
|
|
130
|
+
animation: rotateClose 0.5s ease forwards;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
/* .digit-accordion-content {
|
|
135
|
+
transform: scaleY(0);
|
|
136
|
+
transform-origin: top;
|
|
137
|
+
opacity: 0;
|
|
138
|
+
height: 0;
|
|
139
|
+
overflow: hidden;
|
|
140
|
+
transition: transform 0.3s ease, opacity 0.3s ease;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.digit-accordion-content.open {
|
|
144
|
+
transform: scaleY(1);
|
|
145
|
+
opacity: 1;
|
|
146
|
+
height: auto;
|
|
147
|
+
overflow: visible;
|
|
148
|
+
}*/
|
|
149
|
+
|
|
150
|
+
.digit-accordion-wrapper{
|
|
151
|
+
display: flex;
|
|
152
|
+
flex-direction: column;
|
|
153
|
+
|
|
154
|
+
@media (max-aspect-ratio: 9/16) {
|
|
155
|
+
/* Media query for mobile */
|
|
156
|
+
gap: theme(digitv2.spacers.spacer4);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
160
|
+
/* Media query for tablets */
|
|
161
|
+
gap: theme(digitv2.spacers.spacer5);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
@media (min-aspect-ratio: 3/4) {
|
|
165
|
+
/* Media query for desktop */
|
|
166
|
+
gap: theme(digitv2.spacers.spacer6);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.digit-accordion-divider{
|
|
171
|
+
width: 100%;
|
|
105
172
|
}
|
|
@@ -64,7 +64,18 @@
|
|
|
64
64
|
overflow-y: scroll;
|
|
65
65
|
display: flex;
|
|
66
66
|
flex-direction: column;
|
|
67
|
-
|
|
67
|
+
|
|
68
|
+
@media (max-aspect-ratio: 9/16) {
|
|
69
|
+
gap:theme(digitv2.spacers.spacer4);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
73
|
+
gap:theme(digitv2.spacers.spacer5);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@media (min-aspect-ratio: 3/4) {
|
|
77
|
+
gap:theme(digitv2.spacers.spacer6);
|
|
78
|
+
}
|
|
68
79
|
}
|
|
69
80
|
|
|
70
81
|
|
|
@@ -20,6 +20,25 @@
|
|
|
20
20
|
|
|
21
21
|
.digit-bread-crumb-content {
|
|
22
22
|
@extend .typography.body-s;
|
|
23
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
24
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
25
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
26
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
27
|
+
|
|
28
|
+
@media (max-aspect-ratio: 9/16) {
|
|
29
|
+
/* Media query for mobile */
|
|
30
|
+
font-size: theme(digitv2.fontSize.body-s.mobile);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
34
|
+
/* Media query for tablets */
|
|
35
|
+
font-size: theme(digitv2.fontSize.body-s.tablet);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@media (min-aspect-ratio: 3/4) {
|
|
39
|
+
/* Media query for desktop */
|
|
40
|
+
font-size: theme(digitv2.fontSize.body-s.desktop);
|
|
41
|
+
}
|
|
23
42
|
display: flex !important;
|
|
24
43
|
gap: theme(digitv2.spacers.spacer1);
|
|
25
44
|
cursor: pointer;
|
|
@@ -44,6 +63,25 @@
|
|
|
44
63
|
.digit-bread-crumb-content.current,
|
|
45
64
|
.digit-bread-crumb-seperator {
|
|
46
65
|
@extend .typography.body-s;
|
|
66
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
67
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
68
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
69
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
70
|
+
|
|
71
|
+
@media (max-aspect-ratio: 9/16) {
|
|
72
|
+
/* Media query for mobile */
|
|
73
|
+
font-size: theme(digitv2.fontSize.body-s.mobile);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
77
|
+
/* Media query for tablets */
|
|
78
|
+
font-size: theme(digitv2.fontSize.body-s.tablet);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@media (min-aspect-ratio: 3/4) {
|
|
82
|
+
/* Media query for desktop */
|
|
83
|
+
font-size: theme(digitv2.fontSize.body-s.desktop);
|
|
84
|
+
}
|
|
47
85
|
color: theme(digitv2.lightTheme.text-secondary);
|
|
48
86
|
text-decoration: none;
|
|
49
87
|
cursor: default;
|
|
@@ -324,34 +324,44 @@
|
|
|
324
324
|
}
|
|
325
325
|
|
|
326
326
|
.digit-submit-bar {
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
327
|
+
@apply w-full text-center cursor-pointer outline-none flex max-w-full items-center justify-center h-10;
|
|
328
|
+
padding-left: theme(digitv2.spacers.spacer6);
|
|
329
|
+
padding-right: theme(digitv2.spacers.spacer6);
|
|
330
|
+
gap: theme(digitv2.spacers.spacer2);
|
|
331
|
+
min-width: 15rem;
|
|
330
332
|
background-color: theme(digitv2.lightTheme.primary-1);
|
|
331
333
|
|
|
332
|
-
&:focus {
|
|
333
|
-
@apply outline-none;
|
|
334
|
-
}
|
|
335
|
-
|
|
336
334
|
h2 {
|
|
337
|
-
@
|
|
335
|
+
@extend .typography.button.large;
|
|
336
|
+
@apply text-white;
|
|
338
337
|
margin: 0;
|
|
339
|
-
|
|
338
|
+
width: 100%;
|
|
339
|
+
overflow: hidden;
|
|
340
|
+
white-space: nowrap;
|
|
341
|
+
text-overflow: ellipsis;
|
|
342
|
+
@apply h-5;
|
|
343
|
+
margin-top: 0.125rem;
|
|
340
344
|
}
|
|
341
|
-
}
|
|
342
345
|
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
+
&.disabled {
|
|
347
|
+
@apply opacity-50;
|
|
348
|
+
background: theme(digitv2.lightTheme.text-disabled);
|
|
349
|
+
}
|
|
346
350
|
|
|
347
351
|
&:focus {
|
|
348
352
|
@apply outline-none;
|
|
349
353
|
}
|
|
350
354
|
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
+
&:hover {
|
|
356
|
+
box-shadow: theme(digitv2.spacers.spacer0) -0.125rem theme(digitv2.spacers.spacer0) theme(digitv2.spacers.spacer0) theme(digitv2.lightTheme.text-primary) inset;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
&:active {
|
|
360
|
+
box-shadow: theme(digitv2.spacers.spacer0) -0.125rem theme(digitv2.spacers.spacer0) theme(digitv2.spacers.spacer0) #0B0C0C inset, theme(digitv2.spacers.spacer0) 0.063rem 0.175rem theme(digitv2.spacers.spacer0) #00000040;
|
|
361
|
+
|
|
362
|
+
h2 {
|
|
363
|
+
font-weight: theme(digitv2.fontWeight.bold);
|
|
364
|
+
}
|
|
355
365
|
}
|
|
356
366
|
}
|
|
357
367
|
|
|
@@ -393,14 +403,6 @@
|
|
|
393
403
|
}
|
|
394
404
|
}
|
|
395
405
|
|
|
396
|
-
@screen dt {
|
|
397
|
-
|
|
398
|
-
.digit-submit-bar,
|
|
399
|
-
.digit-submit-bar-disabled {
|
|
400
|
-
width: 15rem;
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
|
|
404
406
|
.digit-submit-bar:focus {
|
|
405
407
|
@apply outline-none !important;
|
|
406
408
|
}
|
|
@@ -62,6 +62,25 @@
|
|
|
62
62
|
|
|
63
63
|
.label {
|
|
64
64
|
@extend .typography.body-s;
|
|
65
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
66
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
67
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
68
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
69
|
+
|
|
70
|
+
@media (max-aspect-ratio: 9/16) {
|
|
71
|
+
/* Media query for mobile */
|
|
72
|
+
font-size: theme(digitv2.fontSize.body-s.mobile);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
76
|
+
/* Media query for tablets */
|
|
77
|
+
font-size: theme(digitv2.fontSize.body-s.tablet);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@media (min-aspect-ratio: 3/4) {
|
|
81
|
+
/* Media query for desktop */
|
|
82
|
+
font-size: theme(digitv2.fontSize.body-s.desktop);
|
|
83
|
+
}
|
|
65
84
|
@apply text-left;
|
|
66
85
|
word-break: break-word;
|
|
67
86
|
letter-spacing: theme(digitv2.spacers.spacer0);
|
|
@@ -35,6 +35,25 @@
|
|
|
35
35
|
.info-icon .infotext {
|
|
36
36
|
@extend .typography.body-s;
|
|
37
37
|
@apply absolute text-center;
|
|
38
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
39
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
40
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
41
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
42
|
+
|
|
43
|
+
@media (max-aspect-ratio: 9/16) {
|
|
44
|
+
/* Media query for mobile */
|
|
45
|
+
font-size: theme(digitv2.fontSize.body-s.mobile);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
49
|
+
/* Media query for tablets */
|
|
50
|
+
font-size: theme(digitv2.fontSize.body-s.tablet);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@media (min-aspect-ratio: 3/4) {
|
|
54
|
+
/* Media query for desktop */
|
|
55
|
+
font-size: theme(digitv2.fontSize.body-s.desktop);
|
|
56
|
+
}
|
|
38
57
|
visibility: hidden;
|
|
39
58
|
width: 7.5rem;
|
|
40
59
|
background-color: #555555;
|
|
@@ -75,6 +94,25 @@
|
|
|
75
94
|
@apply flex justify-between items-baseline;
|
|
76
95
|
color: theme(digitv2.lightTheme.text-secondary);
|
|
77
96
|
gap: theme(digitv2.spacers.spacer2);
|
|
97
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
98
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
99
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
100
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
101
|
+
|
|
102
|
+
@media (max-aspect-ratio: 9/16) {
|
|
103
|
+
/* Media query for mobile */
|
|
104
|
+
font-size: theme(digitv2.fontSize.body-s.mobile);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
108
|
+
/* Media query for tablets */
|
|
109
|
+
font-size: theme(digitv2.fontSize.body-s.tablet);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@media (min-aspect-ratio: 3/4) {
|
|
113
|
+
/* Media query for desktop */
|
|
114
|
+
font-size: theme(digitv2.fontSize.body-s.desktop);
|
|
115
|
+
}
|
|
78
116
|
|
|
79
117
|
|
|
80
118
|
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
@@ -31,6 +31,25 @@
|
|
|
31
31
|
.header-dropdown-label {
|
|
32
32
|
@extend .typography.body-s;
|
|
33
33
|
cursor: pointer;
|
|
34
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
35
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
36
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
37
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
38
|
+
|
|
39
|
+
@media (max-aspect-ratio: 9/16) {
|
|
40
|
+
/* Media query for mobile */
|
|
41
|
+
font-size: theme(digitv2.fontSize.body-s.mobile);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
45
|
+
/* Media query for tablets */
|
|
46
|
+
font-size: theme(digitv2.fontSize.body-s.tablet);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@media (min-aspect-ratio: 3/4) {
|
|
50
|
+
/* Media query for desktop */
|
|
51
|
+
font-size: theme(digitv2.fontSize.body-s.desktop);
|
|
52
|
+
}
|
|
34
53
|
display: flex;
|
|
35
54
|
align-items: center;
|
|
36
55
|
color: theme(digitv2.lightTheme.text-primary);
|
|
@@ -96,6 +115,25 @@
|
|
|
96
115
|
.header-dropdown-option {
|
|
97
116
|
@extend .typography.body-s;
|
|
98
117
|
@apply whitespace-no-wrap w-full max-w-full overflow-hidden;
|
|
118
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
119
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
120
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
121
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
122
|
+
|
|
123
|
+
@media (max-aspect-ratio: 9/16) {
|
|
124
|
+
/* Media query for mobile */
|
|
125
|
+
font-size: theme(digitv2.fontSize.body-s.mobile);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
129
|
+
/* Media query for tablets */
|
|
130
|
+
font-size: theme(digitv2.fontSize.body-s.tablet);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
@media (min-aspect-ratio: 3/4) {
|
|
134
|
+
/* Media query for desktop */
|
|
135
|
+
font-size: theme(digitv2.fontSize.body-s.desktop);
|
|
136
|
+
}
|
|
99
137
|
padding: theme(digitv2.spacers.spacer4) 0.625rem;
|
|
100
138
|
color: theme(digitv2.lightTheme.text-primary);
|
|
101
139
|
gap: theme(digitv2.spacers.spacer2);
|
|
@@ -117,6 +155,25 @@
|
|
|
117
155
|
|
|
118
156
|
.header-dropdown-nooption {
|
|
119
157
|
@extend .typography.body-s;
|
|
158
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
159
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
160
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
161
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
162
|
+
|
|
163
|
+
@media (max-aspect-ratio: 9/16) {
|
|
164
|
+
/* Media query for mobile */
|
|
165
|
+
font-size: theme(digitv2.fontSize.body-s.mobile);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
169
|
+
/* Media query for tablets */
|
|
170
|
+
font-size: theme(digitv2.fontSize.body-s.tablet);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
@media (min-aspect-ratio: 3/4) {
|
|
174
|
+
/* Media query for desktop */
|
|
175
|
+
font-size: theme(digitv2.fontSize.body-s.desktop);
|
|
176
|
+
}
|
|
120
177
|
padding: theme(digitv2.spacers.spacer2);
|
|
121
178
|
pointer-events: none;
|
|
122
179
|
color: theme(digitv2.lightTheme.text-disabled);
|