@egovernments/digit-ui-components-css 0.0.2-beta.10 → 0.0.2-beta.12

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.10",
3
+ "version": "0.0.2-beta.12",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.css",
6
6
  "author": "Jagankumar <jagan.kumar@egov.org.in>",
@@ -0,0 +1,207 @@
1
+ @import url("../index.scss");
2
+
3
+ /*.digit-action-bar-wrap {
4
+ @extend .light-text-color-primary;
5
+ @extend .light-paper-primary;
6
+ box-shadow: rgba(0, 0, 0, 0.16) 0 -2px 8px;
7
+ max-width: 100%;
8
+ z-index: 100;
9
+
10
+ @apply left-0 bottom-0 w-full bg-white py-sm px-sm fixed text-right;
11
+
12
+ div {
13
+ @apply w-full;
14
+ }
15
+
16
+ .digit-menu-wrap {
17
+ @extend .light-background;
18
+ @apply absolute bg-white text-left mb-xs z-30 cursor-pointer;
19
+ bottom: 45px;
20
+ box-shadow: rgba(0, 0, 0, 0.14) 0 8px 10px 1px, rgba(0, 0, 0, 0.12) 0 3px 14px 2px, rgba(0, 0, 0, 0.2) 0 5px 5px -3px;
21
+ width: calc(100% - 16px);
22
+ right: 8px;
23
+
24
+ div {
25
+ @extend .light-primary;
26
+ @apply h-12 pl-sm py-md text-body-l text-text-primary;
27
+
28
+ &:hover {
29
+ @extend .light-background;
30
+ @apply bg-grey-mid w-full;
31
+ }
32
+ }
33
+ }
34
+ }
35
+
36
+ @screen dt {
37
+ .digit-action-bar-wrap {
38
+ box-shadow: rgba(0, 0, 0, 0.16) 0 -2px 8px;
39
+ left: 0;
40
+ max-width: none;
41
+ z-index: 999;
42
+
43
+ @apply fixed bottom-0 bg-white py-sm pr-lg text-right;
44
+
45
+ div {
46
+ width: calc(100% - 16px);
47
+ }
48
+
49
+ .digit-menu-wrap {
50
+ bottom: 45px;
51
+ top: unset;
52
+ box-shadow: rgba(0, 0, 0, 0.14) 0 8px 10px 1px, rgba(0, 0, 0, 0.12) 0 3px 14px 2px, rgba(0, 0, 0, 0.2) 0 5px 5px -3px;
53
+ @apply absolute h-auto bg-white text-left mb-xs z-30;
54
+ width: 240px;
55
+ right: 24px;
56
+
57
+ div {
58
+ @apply h-12 pl-sm py-md text-body-l text-text-primary;
59
+
60
+ &:hover {
61
+ @apply bg-grey-mid w-full;
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
67
+
68
+ .digit-action-bar-wrap-registry {
69
+ div {
70
+ @apply w-full;
71
+ }
72
+ .digit-menu-wrap {
73
+ @extend .light-background;
74
+ @apply absolute bg-white text-left mb-xs z-30 cursor-pointer;
75
+ box-shadow: rgba(0, 0, 0, 0.14) 0 8px 10px 1px, rgba(0, 0, 0, 0.12) 0 3px 14px 2px, rgba(0, 0, 0, 0.2) 0 5px 5px -3px;
76
+ width: 160px;
77
+ right: 60px;
78
+
79
+ div {
80
+ @apply h-12 pl-sm py-md text-body-l text-text-primary;
81
+
82
+ &:hover {
83
+ @extend .light-background;
84
+ @apply bg-grey-mid w-full;
85
+ }
86
+ }
87
+ }
88
+
89
+ .digit-search-add {
90
+ @extend .light-primary;
91
+ padding: 12px 16px;
92
+ color: rgb(244, 119, 56);
93
+ display: flex;
94
+ cursor: pointer;
95
+ }
96
+
97
+ .digit-search-add-icon {
98
+ @extend .light-primary-button;
99
+ background: rgb(244, 119, 56);
100
+ border-radius: 50%;
101
+ height: 24px;
102
+ width: 24px;
103
+ display: flex;
104
+ justify-content: center;
105
+ align-items: center;
106
+ margin-left: 10px;
107
+ }
108
+ }
109
+ */
110
+
111
+ .digit-action-bar-wrap{
112
+ width: 100%;
113
+ max-width: 100%;
114
+ padding: theme(digitv2.spacers.spacer4) theme(digitv2.spacers.spacer8);
115
+ display: flex !important;
116
+ align-items: center;
117
+ justify-content: space-between;
118
+ box-shadow: theme(digitv2.spacers.spacer0) -0.063rem 0.125rem theme(digitv2.spacers.spacer0) #00000029;
119
+ background-color: theme(digitv2.lightTheme.paper-primary);
120
+ height: 4.5rem;
121
+ position: fixed;
122
+ bottom: 0;
123
+ left: 0;
124
+ right: 0;
125
+ z-index: 100;
126
+
127
+ @media (min-width: 48rem) {
128
+ gap: theme(digitv2.spacers.spacer6);
129
+ }
130
+
131
+ @media (min-width: 30.063rem) and (max-width: 47.938rem) {
132
+ gap: theme(digitv2.spacers.spacer5);
133
+ }
134
+
135
+ @media (max-width: 30rem) {
136
+ gap: theme(digitv2.spacers.spacer4);
137
+ box-shadow: theme(digitv2.spacers.spacer0) -0.063rem 0.125rem theme(digitv2.spacers.spacer0) #00000026;
138
+ height: 8rem;
139
+ padding: theme(digitv2.spacers.spacer4);
140
+ }
141
+
142
+ .digit-action-bar-fields{
143
+ display: flex;
144
+ justify-content: space-between;
145
+ flex-wrap: wrap;
146
+
147
+ @media (min-width: 48rem) {
148
+ gap: theme(digitv2.spacers.spacer6);
149
+ }
150
+
151
+ @media (min-width: 30.063rem) and (max-width: 47.938rem) {
152
+ gap: theme(digitv2.spacers.spacer5);
153
+ }
154
+
155
+ @media (max-width: 30rem) {
156
+ gap: theme(digitv2.spacers.spacer4);
157
+ flex-direction: column;
158
+
159
+ .action-bar-individual-action-field{
160
+ button{
161
+ width: 100%;
162
+ max-width: 100%;
163
+ }
164
+ }
165
+ }
166
+
167
+ &.toRight{
168
+ margin-left: auto;
169
+ }
170
+
171
+ &.toLeft{
172
+ justify-content: unset;
173
+ }
174
+
175
+ .action-bar-individual-action-field{
176
+ button{
177
+ flex: 1;
178
+ }
179
+ }
180
+
181
+ &:not(.toRight){
182
+ width: 100%;
183
+ }
184
+ }
185
+
186
+ .digit-dropdown-select-wrap,
187
+ .digit-employee-dropdown-select-wrap{
188
+ margin-bottom: 0rem;
189
+ }
190
+
191
+ .header-dropdown-container {
192
+ position: relative;
193
+ }
194
+
195
+ .header-dropdown-menu {
196
+ @apply absolute z-30;
197
+ bottom: theme(digitv2.spacers.spacer10);
198
+ right: 0;
199
+ max-height: unset;
200
+ margin-top: unset;
201
+
202
+ &.showBottom{
203
+ bottom: unset;
204
+ }
205
+ }
206
+
207
+ }
@@ -18,7 +18,7 @@
18
18
 
19
19
  .digit-back-link-label {
20
20
  @extend .typography.body-l;
21
- color: theme(digitv2.lightTheme.primary-1);
21
+ color: theme(digitv2.lightTheme.primary-2);
22
22
  margin-top:0.063rem;
23
23
  cursor: pointer;
24
24
  }
@@ -165,7 +165,7 @@
165
165
  &.large{
166
166
  h2{
167
167
  @apply h-5;
168
- margin-top: 0.125rem;
168
+ margin-top: theme(digitv2.spacers.spacer1);
169
169
  }
170
170
  }
171
171
 
@@ -423,4 +423,29 @@
423
423
  button{
424
424
  flex: 1;
425
425
  }
426
- }
426
+ }
427
+
428
+ .header-dropdown-container {
429
+ position: relative;
430
+
431
+ .header-dropdown-menu {
432
+ @apply absolute z-30;
433
+ bottom: theme(digitv2.spacers.spacer5);
434
+ right: 0;
435
+ max-height: unset;
436
+ margin-top: unset;
437
+
438
+ &.showBottom{
439
+ bottom: unset;
440
+ }
441
+
442
+ @media (max-width: 30rem) {
443
+ width: 100% !important;
444
+ }
445
+
446
+ @media (max-width: 15.625rem) {
447
+ left:0 ;
448
+ }
449
+ }
450
+ }
451
+
@@ -389,10 +389,10 @@
389
389
  width: 100%;
390
390
  height: auto;
391
391
  background-color: #ffffff;
392
- border-radius: 0.25rem;
392
+ border-radius: theme(digitv2.spacers.spacer1);
393
393
  box-shadow: 0rem 0.063rem 0.125rem 0rem #00000029;
394
394
  display: flex;
395
- gap: 1rem;
395
+ gap: theme(digitv2.spacers.spacer4);
396
396
  flex-direction: column;
397
397
 
398
398
  &.secondary {
@@ -459,18 +459,21 @@
459
459
  }
460
460
 
461
461
  @media (min-width: 30.063rem) and (max-width: 47.938rem) {
462
- padding: 1.25rem;
462
+ padding: theme(digitv2.spacers.spacer5);
463
463
  }
464
464
 
465
465
  @media (min-width: 48rem) {
466
- padding: 1.5rem;
466
+ padding: theme(digitv2.spacers.spacer6);
467
467
  }
468
468
 
469
469
  @media (max-width: 30rem) {
470
- padding: 1rem;
470
+ padding: theme(digitv2.spacers.spacer4);
471
471
  }
472
472
 
473
473
  &.action {
474
+ padding: theme(digitv2.spacers.spacer6);
475
+ gap: theme(digitv2.spacers.spacer6);
476
+
474
477
  button {
475
478
  width: 100%;
476
479
  }
@@ -482,4 +485,14 @@
482
485
  color: theme(digitv2.lightTheme.primary-2);
483
486
  }
484
487
  }
488
+
489
+ &.form{
490
+ .digit-label-field-pair {
491
+ margin-bottom: unset;
492
+ }
493
+
494
+ .digit-radio-options-wrap {
495
+ margin-bottom: unset;
496
+ }
497
+ }
485
498
  }
@@ -0,0 +1,152 @@
1
+ .header-dropdown-profile {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ width: theme(digitv2.spacers.spacer8);
6
+ height: theme(digitv2.spacers.spacer8);
7
+ overflow: hidden;
8
+ border-radius: 50%;
9
+
10
+ &.text {
11
+ color: theme(digitv2.lightTheme.paper-primary);
12
+ font-weight: 700;
13
+ background: theme(digitv2.lightTheme.primary-2);
14
+ }
15
+
16
+ &.dark {
17
+ &.text {
18
+ background: theme(digitv2.lightTheme.paper-primary);
19
+ font-weight: 700;
20
+ color: theme(digitv2.lightTheme.primary-2);
21
+ }
22
+ }
23
+
24
+ img {
25
+ width: 100%;
26
+ height: auto;
27
+ display: block;
28
+ }
29
+ }
30
+
31
+ .header-dropdown-label {
32
+ @extend .typography.body-s;
33
+ cursor: pointer;
34
+ display: flex;
35
+ align-items: center;
36
+ color: theme(digitv2.lightTheme.text-primary);
37
+ position: relative;
38
+
39
+ &.dark {
40
+ color: theme(digitv2.lightTheme.paper-primary);
41
+ }
42
+ }
43
+
44
+ .header-dropdown-arrow {
45
+ margin-left: theme(digitv2.spacers.spacer2);
46
+ width: theme(digitv2.spacers.spacer6);
47
+ height: theme(digitv2.spacers.spacer6);
48
+ }
49
+
50
+ .header-dropdown-menu {
51
+ width: fit-content !important;
52
+ box-shadow: theme(digitv2.spacers.spacer0) 0.063rem 0.275rem theme(digitv2.spacers.spacer0) #00000026;
53
+ max-height: 80%;
54
+ background-color: theme(digitv2.lightTheme.paper-primary);
55
+ margin-top: theme(digitv2.spacers.spacer5);
56
+ position: fixed;
57
+ min-width: 14rem;
58
+ max-width: 25rem;
59
+ @apply z-30 overflow-y-auto overflow-x-hidden;
60
+ }
61
+
62
+ .header-dropdown-search-container {
63
+ height: 3.5rem;
64
+ min-width: 14rem;
65
+ max-width: 25rem;
66
+ width: auto;
67
+ padding: theme(digitv2.spacers.spacer3) !important;
68
+ }
69
+
70
+ .header-dropdown-search {
71
+ height: theme(digitv2.spacers.spacer8) !important;
72
+ min-width: 12.5rem;
73
+ max-width: 23.5rem;
74
+
75
+ .digit-text-input-customIcon {
76
+ height: theme(digitv2.spacers.spacer5);
77
+ width: theme(digitv2.spacers.spacer5);
78
+ top: 0.4rem;
79
+ right: theme(digitv2.spacers.spacer4);
80
+ }
81
+
82
+ .input-container {
83
+ max-height: 100%;
84
+ }
85
+
86
+ input {
87
+ max-height: 100%;
88
+ }
89
+ }
90
+
91
+ .header-dropdown-options {
92
+ max-height: 12.5rem;
93
+ overflow-y: auto;
94
+ }
95
+
96
+ .header-dropdown-option {
97
+ @extend .typography.body-s;
98
+ @apply whitespace-no-wrap w-full max-w-full overflow-hidden;
99
+ padding: theme(digitv2.spacers.spacer4) 0.625rem;
100
+ color: theme(digitv2.lightTheme.text-primary);
101
+ gap: theme(digitv2.spacers.spacer2);
102
+ height: theme(digitv2.spacers.spacer10);
103
+ display: flex;
104
+ align-items: center;
105
+ word-break: break-word;
106
+ text-overflow: ellipsis;
107
+ cursor: pointer;
108
+
109
+ svg {
110
+ flex-shrink: 0;
111
+ }
112
+ }
113
+
114
+ .header-dropdown-option:not(:hover):not(:active):nth-of-type(2n +1) {
115
+ background-color: theme(digitv2.lightTheme.paper-secondary);
116
+ }
117
+
118
+ .header-dropdown-nooption {
119
+ @extend .typography.body-s;
120
+ padding: theme(digitv2.spacers.spacer2);
121
+ pointer-events: none;
122
+ color: theme(digitv2.lightTheme.text-disabled);
123
+ background-color: theme(digitv2.lightTheme.paper-secondary);
124
+ }
125
+
126
+ .header-dropdown-option:hover,
127
+ .header-dropdown-option.keyChange {
128
+ background: theme(digitv2.lightTheme.primary-bg) !important;
129
+ border: 0.031rem solid theme(digitv2.lightTheme.primary-1);
130
+ }
131
+
132
+ .header-dropdown-option:active,
133
+ .header-dropdown-option.activeIndex {
134
+ @extend .typography.heading-s;
135
+ background: theme(digitv2.lightTheme.primary-1) !important;
136
+ color: theme(digitv2.lightTheme.paper-primary);
137
+ }
138
+
139
+ .header-dropdown-options::-webkit-scrollbar {
140
+ width: theme(digitv2.spacers.spacer2);
141
+ background-color: theme(digitv2.lightTheme.generic-background);
142
+ }
143
+
144
+ .header-dropdown-options::-webkit-scrollbar-track {
145
+ background-color: theme(digitv2.lightTheme.generic-background);
146
+ border-radius: 0.563rem;
147
+ }
148
+
149
+ .header-dropdown-options::-webkit-scrollbar-thumb {
150
+ background-color: theme(digitv2.lightTheme.generic-divider);
151
+ border-radius: 0.563rem;
152
+ }
@@ -234,6 +234,17 @@
234
234
  width: 100%;
235
235
  }
236
236
  }
237
+
238
+ &.equal-buttons{
239
+ width: 100%;
240
+
241
+ @media (min-width: 30.063rem) {
242
+
243
+ button {
244
+ flex: 1;
245
+ }
246
+ }
247
+ }
237
248
  }
238
249
 
239
250
 
@@ -98,15 +98,6 @@ img {
98
98
  @apply max-w-full;
99
99
  }
100
100
 
101
- .details-btn {
102
- @extend .typography.link;
103
- @apply text-left;
104
- background-color: transparent;
105
- border: none;
106
- color: theme(digitv2.lightTheme.primary-1);
107
- padding: theme(digitv2.spacers.spacer0);
108
- }
109
-
110
101
  /* Circle Variants */
111
102
  .timeline-circle,
112
103
  .timeline-circle.upcoming {
@@ -152,8 +143,29 @@ img {
152
143
 
153
144
  .digit-timeline-molecule{
154
145
  @apply max-h-full;
146
+
147
+ .timeline-content:not(.lastTimeline){
148
+
149
+ @media (min-aspect-ratio: 3/4) {
150
+ /* Media query for desktop */
151
+ margin-bottom: theme(digitv2.spacers.spacer6);
152
+ }
153
+
154
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
155
+ /* Media query for tablets */
156
+ margin-bottom: theme(digitv2.spacers.spacer5);
157
+ }
158
+ @media (max-aspect-ratio: 9/16) {
159
+ /* Media query for mobile */
160
+ margin-bottom: theme(digitv2.spacers.spacer4);
161
+ }
162
+ }
155
163
  }
156
164
 
157
- .view-more-container {
165
+ .view-more-past-container {
158
166
  margin-top: theme(digitv2.spacers.spacer4);
159
167
  }
168
+
169
+ .view-more-future-container {
170
+ margin-bottom: theme(digitv2.spacers.spacer4);
171
+ }