@egovernments/digit-ui-components-css 0.2.1 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@egovernments/digit-ui-components-css",
3
- "version": "0.2.1",
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",
@@ -334,7 +334,8 @@
334
334
  }
335
335
 
336
336
  .digit-card-section-header {
337
- @apply text-text-primary text-heading-m font-bold;
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
  }
@@ -23,6 +23,10 @@
23
23
  }
24
24
  }
25
25
 
26
+ &.boldLabel{
27
+ font-weight: 700;
28
+ }
29
+
26
30
  .label-container {
27
31
  @apply flex items-center w-full;
28
32
  gap: theme(digitv2.spacers.spacer1);
@@ -144,4 +148,102 @@
144
148
  .digit-charcount {
145
149
  @apply justify-end;
146
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
+ }
147
249
  }
@@ -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;
@@ -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
+ }
@@ -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
+
@@ -249,6 +249,16 @@
249
249
  .digit-tab-main {
250
250
  width: 100%;
251
251
  }
252
+
253
+ &.tab{
254
+ background: none !important;
255
+ padding: theme(digitv2.spacers.spacer0);
256
+ box-shadow: none;
257
+
258
+ .digit-search-wrapper{
259
+ padding: theme(digitv2.spacers.spacer6);
260
+ }
261
+ }
252
262
  }
253
263
 
254
264
  &.filter{
@@ -301,6 +311,17 @@
301
311
  line-height: normal;
302
312
  }
303
313
 
314
+ .digit-inbox-search-composer-header-action-wrapper{
315
+
316
+ display: flex;
317
+ align-items: center;
318
+ justify-content: space-between;
319
+
320
+ .digit-inbox-search-composer-action{
321
+ margin-bottom: theme(digitv2.spacers.spacer6);
322
+ }
323
+ }
324
+
304
325
  .digit-inbox-search-links-container {
305
326
  .digit-inbox-search-links-header {
306
327
  display: flex;
@@ -375,4 +396,105 @@
375
396
  }
376
397
 
377
398
  }
399
+ }
400
+
401
+ @media screen and (max-width: 426px) {
402
+
403
+ .digit-header-content{
404
+ &.digit-inbox-search-composer-header{
405
+ margin-left: 1rem;
406
+ }
407
+ }
408
+
409
+ .digit-inbox-search-wrapper {
410
+ .digit-inbox-search-component-wrapper {
411
+ .digit-sections-parent {
412
+ display: flex;
413
+ flex-direction: column;
414
+
415
+ &.inbox{
416
+ .searchBox{
417
+ margin: 0rem 1rem;
418
+ }
419
+ }
420
+ }
421
+ }
422
+ }
423
+ }
424
+
425
+ .digit-table-loader{
426
+ height: 31.25rem;
427
+ display: flex;
428
+ align-items: center;
429
+ justify-content: center ;
430
+ }
431
+
432
+ .digit-custom-row-wrapper{
433
+ display: flex;
434
+ flex-direction: column;
435
+ gap: theme(digitv2.spacers.spacer6);
436
+ }
437
+
438
+ .footer-pagination-content {
439
+ &.digit-results-table{
440
+ margin-top:1.5rem;
441
+
442
+ td{
443
+ width: 100%;
444
+
445
+ .pagination{
446
+ border-top: none;
447
+ }
448
+ }
449
+ }
450
+ }
451
+ .digit-results-card-component {
452
+ .digit-results-card-heading-tags-wrapper {
453
+ display: flex;
454
+ align-items: center;
455
+ justify-content: space-between;
456
+
457
+ .digit-results-card-heading {
458
+ color: theme(digitv2.lightTheme.primary-2);
459
+ font-family: theme(digitv2.fontFamily.sans);
460
+ font-style: theme(digitv2.fontStyle.normal);
461
+ font-weight: theme(digitv2.fontWeight.bold);
462
+ line-height: theme(digitv2.lineHeight.lineheight1);
463
+
464
+ @media (max-aspect-ratio: 9/16) {
465
+ /* Media query for mobile */
466
+ font-size: theme(digitv2.fontSize.heading-m.mobile);
467
+ }
468
+
469
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
470
+ /* Media query for tablets */
471
+ font-size: theme(digitv2.fontSize.heading-m.tablet);
472
+ }
473
+
474
+ @media (min-aspect-ratio: 3/4) {
475
+ /* Media query for desktop */
476
+ font-size: theme(digitv2.fontSize.heading-m.desktop);
477
+ }
478
+ }
479
+
480
+ .digit-results-card-tags {
481
+ display: flex;
482
+ gap: theme(digitv2.spacers.spacer4);
483
+ }
484
+ }
485
+ }
486
+
487
+ .pagination {
488
+ &.custom-results {
489
+
490
+ button {
491
+ display: flex;
492
+ align-items: center;
493
+ justify-content: center;
494
+
495
+ svg {
496
+ margin-left: theme(digitv2.spacers.spacer0);
497
+ }
498
+ }
499
+ }
378
500
  }
@@ -1,3 +1,4 @@
1
1
  @import url("./workbench.scss");
2
+ @import url("./boundaryFilter.scss");
2
3
  @import url("./inboxsearchcomposer.scss");
3
- @import url("./reactdatatable.scss");
4
+ @import url("./reactdatatable.scss");
@@ -1,11 +1,11 @@
1
1
 
2
- .digit-global-serach-results-table-wrapper{
2
+ .digit-global-search-results-table-wrapper{
3
3
  display: flex;
4
4
  flex-direction: column;
5
5
  align-items: flex-end;
6
6
  }
7
7
 
8
- .digit-global-serach-results-table{
8
+ .digit-global-search-results-table{
9
9
  margin-bottom: 1.5rem;
10
10
 
11
11
 
package/src/index.scss CHANGED
@@ -10,6 +10,7 @@
10
10
 
11
11
  @import "react-date-range/dist/styles.css";
12
12
  @import "react-date-range/dist/theme/default.css";
13
+ @import "react-datepicker/dist/react-datepicker.css";
13
14
 
14
15
  @import "./pages/employee/index.scss";
15
16
  @import "./pages/employee/login.scss";