@egovernments/digit-ui-components-css 0.0.2-beta.33 → 0.0.2-beta.35

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@egovernments/digit-ui-components-css",
3
- "version": "0.0.2-beta.33",
3
+ "version": "0.0.2-beta.35",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.css",
6
6
  "author": "Jagankumar <jagan.kumar@egovernments.org>",
@@ -1,9 +1,9 @@
1
1
  .digit-accordion-title {
2
2
  display: flex;
3
- align-items: center;
3
+ align-items: flex-start;
4
4
  cursor: pointer;
5
5
  background-color: transparent;
6
- gap: theme(digitv2.spacers.spacer5);
6
+ gap: theme(digitv2.spacers.spacer3);
7
7
 
8
8
  @media (max-aspect-ratio: 9/16) {
9
9
  padding: theme(digitv2.spacers.spacer4);
@@ -31,11 +31,13 @@
31
31
  height: theme(digitv2.spacers.spacer6);
32
32
  display: flex;
33
33
  align-items: center;
34
+ justify-content: center
34
35
  }
35
36
 
36
37
  .digit-accordion-header-title {
37
38
  @extend .typography.heading-s;
38
39
  color: theme(digitv2.lightTheme.text-primary);
40
+ margin-top: 0.18rem;
39
41
  flex-grow: 1;
40
42
  }
41
43
 
@@ -96,7 +98,7 @@
96
98
  border-radius: theme(digitv2.spacers.spacer1);
97
99
  }
98
100
 
99
- &.divider {
101
+ &.withDivider {
100
102
  .digit-accordion-content {
101
103
  border-top: 1px solid theme(digitv2.lightTheme.generic-divider);
102
104
  }
@@ -133,6 +135,13 @@
133
135
  }
134
136
  }
135
137
 
138
+ .digit-accordion-toggle{
139
+ display: flex;
140
+ align-items: center;
141
+ width: theme(digitv2.spacers.spacer6);
142
+ height: theme(digitv2.spacers.spacer6);
143
+ }
144
+
136
145
  .digit-accordion-toggle.animate-open svg {
137
146
  animation: rotateOpen 0.5s ease forwards;
138
147
  }
@@ -188,8 +188,8 @@
188
188
  @apply text-center cursor-pointer outline-none flex max-w-full items-center justify-center h-10;
189
189
  background: none;
190
190
  width: fit-content;
191
- padding-left: theme(digitv2.spacers.spacer2);
192
- padding-right: theme(digitv2.spacers.spacer2);
191
+ padding-left: theme(digitv2.spacers.spacer0);
192
+ padding-right: theme(digitv2.spacers.spacer0);
193
193
  gap: theme(digitv2.spacers.spacer2);
194
194
  min-width: 6.5625rem;
195
195
 
@@ -247,8 +247,8 @@
247
247
  background: none;
248
248
  width: fit-content;
249
249
  height: fit-content;
250
- padding-left: theme(digitv2.spacers.spacer2);
251
- padding-right: theme(digitv2.spacers.spacer2);
250
+ padding-left: theme(digitv2.spacers.spacer0);
251
+ padding-right: theme(digitv2.spacers.spacer0);
252
252
  gap: theme(digitv2.spacers.spacer2);
253
253
  min-width: 4.875rem;
254
254
 
@@ -388,7 +388,7 @@
388
388
 
389
389
  width: 100%;
390
390
  height: auto;
391
- background-color: #ffffff;
391
+ background-color: theme(digitv2.lightTheme.paper-primary);
392
392
  border-radius: theme(digitv2.spacers.spacer1);
393
393
  box-shadow: 0rem 0.063rem 0.125rem 0rem #00000029;
394
394
  display: flex;
@@ -396,8 +396,8 @@
396
396
  flex-direction: column;
397
397
 
398
398
  &.secondary {
399
- background-color: #FAFAFA;
400
- border: 0.063em solid #d6d5d4;
399
+ background-color: theme(digitv2.lightTheme.paper-secondary);
400
+ border: 0.063em solid theme(digitv2.lightTheme.generic-divider);
401
401
  }
402
402
 
403
403
  &.secondary.search,
@@ -422,7 +422,7 @@
422
422
  }
423
423
 
424
424
 
425
- @media (min-width: 30.063rem) and (max-width: 47.938rem) {
425
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
426
426
  flex-direction: row;
427
427
 
428
428
  .digit-buttons-group {
@@ -436,11 +436,11 @@
436
436
  }
437
437
  }
438
438
 
439
- @media (min-width: 48rem) {
439
+ @media (min-aspect-ratio: 3/4) {
440
440
  flex-direction: row;
441
441
  }
442
442
 
443
- @media (max-width: 30rem) {
443
+ @media (max-aspect-ratio: 9/16){
444
444
  flex-direction: column;
445
445
 
446
446
  .digit-buttons-group {
@@ -458,15 +458,15 @@
458
458
  }
459
459
  }
460
460
 
461
- @media (min-width: 30.063rem) and (max-width: 47.938rem) {
461
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
462
462
  padding: theme(digitv2.spacers.spacer5);
463
463
  }
464
464
 
465
- @media (min-width: 48rem) {
465
+ @media (min-aspect-ratio: 3/4) {
466
466
  padding: theme(digitv2.spacers.spacer6);
467
467
  }
468
468
 
469
- @media (max-width: 30rem) {
469
+ @media (max-aspect-ratio: 9/16) {
470
470
  padding: theme(digitv2.spacers.spacer4);
471
471
  }
472
472
 
@@ -84,14 +84,12 @@
84
84
  @apply text-left;
85
85
  word-break: break-word;
86
86
  letter-spacing: theme(digitv2.spacers.spacer0);
87
- color: theme(digitv2.lightTheme.text-primary);
87
+ color: theme(digitv2.lightTheme.text-primary) !important;
88
+ display: flex;
89
+ align-items: center;
88
90
  }
89
91
 
90
92
  &.disabled {
91
- .label {
92
- color: theme(digitv2.lightTheme.text-disabled);
93
- }
94
-
95
93
  .digit-custom-checkbox {
96
94
  border: 0.063rem solid theme(digitv2.lightTheme.text-disabled);
97
95
  }
@@ -139,6 +139,12 @@
139
139
  }
140
140
  }
141
141
 
142
+ .digit-tag{
143
+ &.noClose{
144
+ display: inline;
145
+ }
146
+ }
147
+
142
148
  .cp{
143
149
  cursor: pointer;
144
150
  }
@@ -14,6 +14,7 @@
14
14
  }
15
15
 
16
16
  .digit-error-message {
17
+ @extend .typography.body-s;
17
18
  @apply w-full;
18
19
  font-family: theme(digitv2.fontFamily.sans);
19
20
  font-style: theme(digitv2.fontStyle.normal);
@@ -3,7 +3,7 @@
3
3
  .digit-header-content {
4
4
 
5
5
  &.label {
6
- @extend .typography.body-l;
6
+ @extend .typography.label;
7
7
  @apply flex ;
8
8
  color: theme(digitv2.lightTheme.text-primary);
9
9
  gap: theme(digitv2.spacers.spacer1);
@@ -1,26 +1,12 @@
1
1
  .digit-landing-page-card {
2
2
  background-color: theme(digitv2.lightTheme.paper-primary);
3
- box-shadow: theme(digitv2.spacers.spacer0) 1px 2px theme(digitv2.spacers.spacer0) #00000029;
4
- max-width: 30%;
3
+ box-shadow: theme(digitv2.spacers.spacer0) 0.063rem 0.125rem theme(digitv2.spacers.spacer0) #00000029;
5
4
  min-width: 15%;
5
+ display: flex;
6
+ flex-direction: column;
6
7
  gap: theme(digitv2.spacers.spacer4);
7
8
  border-radius: theme(digitv2.spacers.spacer1) theme(digitv2.spacers.spacer0) theme(digitv2.spacers.spacer0) theme(digitv2.spacers.spacer0);
8
9
 
9
- @media (max-aspect-ratio: 9/16) {
10
- /* Media query for mobile */
11
- max-width: 90%
12
- }
13
-
14
- @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
15
- /* Media query for tablets */
16
- max-width: 60%;
17
- }
18
-
19
- @media (min-aspect-ratio: 3/4) {
20
- /* Media query for desktop */
21
- max-width: 30%;
22
- }
23
-
24
10
  .icon-module-header {
25
11
  display: flex !important;
26
12
  align-items: center !important;
@@ -29,6 +15,40 @@
29
15
  .digit-landingpagecard-icon {
30
16
  display: flex;
31
17
  align-items: center;
18
+ justify-content: center;
19
+
20
+ @media (max-aspect-ratio: 9/16) {
21
+ /* Media query for mobile */
22
+ width: theme(digitv2.spacers.spacer11);
23
+ height:theme(digitv2.spacers.spacer11);
24
+
25
+ svg {
26
+ width: theme(digitv2.spacers.spacer7);
27
+ height:theme(digitv2.spacers.spacer7);
28
+ }
29
+ }
30
+
31
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
32
+ /* Media query for tablets */
33
+ width: theme(digitv2.spacers.spacer12);
34
+ height:theme(digitv2.spacers.spacer12);
35
+
36
+ svg {
37
+ width: theme(digitv2.spacers.spacer8);
38
+ height:theme(digitv2.spacers.spacer8);
39
+ }
40
+ }
41
+
42
+ @media (min-aspect-ratio: 3/4) {
43
+ /* Media query for desktop */
44
+ width: theme(digitv2.spacers.spacer13);
45
+ height:theme(digitv2.spacers.spacer13);
46
+
47
+ svg {
48
+ width: theme(digitv2.spacers.spacer10);
49
+ height:theme(digitv2.spacers.spacer10);
50
+ }
51
+ }
32
52
 
33
53
  &.iconBg {
34
54
  background-color: theme(digitv2.lightTheme.primary-1);
@@ -52,7 +72,10 @@
52
72
  overflow: hidden;
53
73
  word-wrap: break-word;
54
74
  word-break: break-word;
75
+ white-space: nowrap;
55
76
  line-height: normal;
77
+ overflow: hidden;
78
+ text-overflow: ellipsis;
56
79
  }
57
80
 
58
81
  &.left {
@@ -64,11 +87,13 @@
64
87
  display: flex !important;
65
88
  align-items: flex-start;
66
89
  justify-content: space-evenly;
90
+ overflow: hidden;
91
+ text-overflow: ellipsis;
92
+ flex-wrap: wrap;
67
93
 
68
94
 
69
95
  &.left {
70
96
  justify-content: unset;
71
- /*gap: 7.5rem;*/
72
97
  }
73
98
 
74
99
  .metric-item {
@@ -93,6 +118,9 @@
93
118
  word-wrap: break-word;
94
119
  word-break: break-word;
95
120
  line-height: normal;
121
+ white-space: nowrap;
122
+ overflow: hidden;
123
+ text-overflow: ellipsis;
96
124
  color: theme(digitv2.lightTheme.generic-inputborder);
97
125
  font-family: theme(digitv2.fontFamily.sans);
98
126
  font-style: theme(digitv2.fontStyle.normal);
@@ -128,11 +156,66 @@
128
156
  margin: theme(digitv2.spacers.spacer0);
129
157
  }
130
158
 
159
+ .landingpagecard-section{
160
+ display: flex;
161
+ flex-direction: column;
162
+ color: theme(digitv2.lightTheme.text-primary);
163
+ @extend .typography.body-s;
164
+ text-align: left;
165
+ justify-content: flex-start;
166
+ @media (max-aspect-ratio: 9/16) {
167
+ /* Media query for mobile */
168
+ font-size: theme(digitv2.fontSize.body-s.mobile);
169
+ font-family: theme(digitv2.fontFamily.sans);
170
+ font-style: theme(digitv2.fontStyle.normal);
171
+ font-weight: theme(digitv2.fontWeight.regular);
172
+ line-height: theme(digitv2.lineHeight.lineheight2);
173
+ }
174
+
175
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
176
+ /* Media query for tablets */
177
+ font-size: theme(digitv2.fontSize.body-s.tablet);
178
+ font-family: theme(digitv2.fontFamily.sans);
179
+ font-style: theme(digitv2.fontStyle.normal);
180
+ font-weight: theme(digitv2.fontWeight.regular);
181
+ line-height: theme(digitv2.lineHeight.lineheight2);
182
+ }
183
+
184
+ @media (min-aspect-ratio: 3/4) {
185
+ /* Media query for desktop */
186
+ font-size: theme(digitv2.fontSize.body-s.desktop);
187
+ font-family: theme(digitv2.fontFamily.sans);
188
+ font-style: theme(digitv2.fontStyle.normal);
189
+ font-weight: theme(digitv2.fontWeight.regular);
190
+ line-height: theme(digitv2.lineHeight.lineheight2);
191
+ }
192
+
193
+ @media (max-aspect-ratio: 9/16) {
194
+ /* Media query for mobile */
195
+ gap: theme(digitv2.spacers.spacer4);
196
+ }
197
+
198
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
199
+ /* Media query for tablets */
200
+ gap: theme(digitv2.spacers.spacer5);
201
+ }
202
+
203
+ @media (min-aspect-ratio: 3/4) {
204
+ /* Media query for desktop */
205
+ gap: theme(digitv2.spacers.spacer6);
206
+ }
207
+ }
208
+
131
209
  .digit-landing-page-wrapper {
132
210
  display: flex;
133
211
  justify-content: flex-start;
134
212
  flex-wrap: wrap;
135
213
 
214
+ &.mobile{
215
+ flex-direction: column;
216
+ align-items: center;
217
+ }
218
+
136
219
  @media (max-aspect-ratio: 9/16) {
137
220
  /* Media query for mobile */
138
221
  flex-direction: column;
@@ -0,0 +1,99 @@
1
+ .digit-label-otp-wrapper {
2
+ display: flex;
3
+ align-items: center;
4
+ flex-direction: column;
5
+ gap: theme(digitv2.spacers.spacer4);
6
+ justify-content: flex-start;
7
+
8
+ &.inline {
9
+ flex-direction: row;
10
+ align-items: center;
11
+ }
12
+
13
+ .digit-otp-label {
14
+ @extend .typography.body-l;
15
+ color: theme(digitv2.lightTheme.text-primary);
16
+ }
17
+
18
+ .otp-input-container {
19
+ display: flex;
20
+ justify-content: center;
21
+ gap: theme(digitv2.spacers.spacer3);
22
+ }
23
+
24
+
25
+ .otp-error-wrapper{
26
+ display: flex;
27
+ align-items: center;
28
+ justify-content: center;
29
+ gap:theme(digitv2.spacers.spacer2);
30
+ flex-direction: column;
31
+
32
+ .digit-error-icon-message-wrap {
33
+ width: fit-content;
34
+ }
35
+ }
36
+
37
+ .otp-input {
38
+ @extend .typography.heading-m;
39
+ width: 3.125rem;
40
+ height: 3.125rem;
41
+ text-align: center;
42
+ color: theme(digitv2.lightTheme.text-primary);
43
+ border: 0.063rem solid theme(digitv2.lightTheme.input-border);
44
+ outline: none;
45
+ transition: border-color 0.3s ease-in-out;
46
+ font-family: theme(digitv2.fontFamily.sans);
47
+ font-style: theme(digitv2.fontStyle.normal);
48
+ font-weight: theme(digitv2.fontWeight.bold);
49
+ line-height: theme(digitv2.lineHeight.lineheight1);
50
+
51
+ &.error {
52
+ border: 0.063rem solid theme(digitv2.lightTheme.alert-error);
53
+ }
54
+
55
+ @media (max-aspect-ratio: 9/16) {
56
+ /* Media query for mobile */
57
+ font-size: theme(digitv2.fontSize.heading-m.mobile);
58
+ }
59
+
60
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
61
+ /* Media query for tablets */
62
+ font-size: theme(digitv2.fontSize.heading-m.tablet);
63
+ }
64
+
65
+ @media (min-aspect-ratio: 3/4) {
66
+ /* Media query for desktop */
67
+ font-size: theme(digitv2.fontSize.heading-m.desktop);
68
+ }
69
+ }
70
+
71
+ .otp-input:focus {
72
+ border-color: theme(digitv2.lightTheme.primary-1);
73
+ }
74
+
75
+ .otp-input::placeholder {
76
+ @extend .typography.heading-m;
77
+ color: theme(digitv2.lightTheme.text-disabled);
78
+ font-family: theme(digitv2.fontFamily.sans);
79
+ font-style: theme(digitv2.fontStyle.normal);
80
+ font-weight: theme(digitv2.fontWeight.bold);
81
+ line-height: theme(digitv2.lineHeight.lineheight1);
82
+
83
+ @media (max-aspect-ratio: 9/16) {
84
+ /* Media query for mobile */
85
+ font-size: theme(digitv2.fontSize.heading-m.mobile);
86
+ }
87
+
88
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
89
+ /* Media query for tablets */
90
+ font-size: theme(digitv2.fontSize.heading-m.tablet);
91
+ }
92
+
93
+ @media (min-aspect-ratio: 3/4) {
94
+ /* Media query for desktop */
95
+ font-size: theme(digitv2.fontSize.heading-m.desktop);
96
+ }
97
+ }
98
+
99
+ }
@@ -45,6 +45,7 @@
45
45
  @import url("./components/tagV2.scss");
46
46
  @import url("./components/landingpagecardV2.scss");
47
47
  @import url("./components/menuCardV2.scss");
48
+ @import url("./components/otpInputV2.scss");
48
49
 
49
50
  /* pages */
50
51
  @import url("./pages/employee/index.scss");