@egovernments/digit-ui-components-css 0.2.0-beta.8 → 0.2.0-rc.1

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.0-beta.8",
3
+ "version": "0.2.0-rc.1",
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",
@@ -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);
@@ -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
+
@@ -427,4 +427,74 @@
427
427
  display: flex;
428
428
  align-items: center;
429
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
+ }
430
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");
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";