@egovernments/digit-ui-components-css 2.0.0-dev-11 → 2.0.0-dev-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/dist/index.css +2 -2
- package/package.json +1 -1
- package/src/digitv2/components/FormComposerV2.scss +1 -1
- package/src/digitv2/components/alertCardV2.scss +41 -41
- package/src/digitv2/components/backLinkV2.scss +7 -7
- package/src/digitv2/components/bottomSheetV2.scss +19 -19
- package/src/digitv2/components/breadcrumbV2.scss +21 -21
- package/src/digitv2/components/cardV2.scss +14 -14
- package/src/digitv2/components/cardlabelV2.scss +2 -2
- package/src/digitv2/components/checkboxV2.scss +41 -31
- package/src/digitv2/components/chipV2.scss +40 -40
- package/src/digitv2/components/dividerV2.scss +4 -4
- package/src/digitv2/components/errorMessageV2.scss +12 -12
- package/src/digitv2/components/fieldV1.scss +55 -55
- package/src/digitv2/components/fileUploadV2.scss +115 -115
- package/src/digitv2/components/filterCardV2.scss +50 -50
- package/src/digitv2/components/footerV2.scss +12 -12
- package/src/digitv2/components/formCardV2.scss +48 -48
- package/src/digitv2/components/hamburgerV2.scss +138 -138
- package/src/digitv2/components/headerV2.scss +48 -48
- package/src/digitv2/components/headerdropdownV2.scss +64 -64
- package/src/digitv2/components/infobuttonV2.scss +12 -12
- package/src/digitv2/components/labelFieldPairV2.scss +7 -7
- package/src/digitv2/components/landingpagecardV2.scss +66 -66
- package/src/digitv2/components/loaderV2.scss +3 -3
- package/src/digitv2/components/menuCardV2.scss +29 -29
- package/src/digitv2/components/metricCardV2.scss +49 -49
- package/src/digitv2/components/mobileNumberV2.scss +93 -3
- package/src/digitv2/components/multiSelectDropdownV2.scss +152 -152
- package/src/digitv2/components/otpInputV2.scss +23 -23
- package/src/digitv2/components/panelCardV2.scss +42 -42
- package/src/digitv2/components/panelV2.scss +28 -28
- package/src/digitv2/components/popUpV2.scss +85 -85
- package/src/digitv2/components/radiobtnV2.scss +21 -21
- package/src/digitv2/components/selectDropdownV2.scss +181 -181
- package/src/digitv2/components/selectionTagV2.scss +27 -27
- package/src/digitv2/components/sidePanelV2.scss +46 -46
- package/src/digitv2/components/sidenavV2.scss +114 -114
- package/src/digitv2/components/stepperV2.scss +54 -54
- package/src/digitv2/components/summaryCardFieldPairV2.scss +20 -20
- package/src/digitv2/components/summaryCardV2.scss +25 -25
- package/src/digitv2/components/switchV2.scss +30 -30
- package/src/digitv2/components/tabV2.scss +24 -24
- package/src/digitv2/components/tableV2.scss +138 -138
- package/src/digitv2/components/tagV2.scss +23 -23
- package/src/digitv2/components/textInputV2.scss +90 -89
- package/src/digitv2/components/textareaV2.scss +20 -20
- package/src/digitv2/components/textblockV2.scss +24 -24
- package/src/digitv2/components/timelineV2.scss +57 -57
- package/src/digitv2/components/toastV2.scss +21 -21
- package/src/digitv2/components/toggleV2.scss +45 -45
- package/src/digitv2/components/tooltipwrapperV2.scss +88 -88
- package/src/digitv2/components/treeSelectV2.scss +52 -52
- package/src/digitv2/index.scss +78 -78
- package/src/digitv2/pages/employee/boundaryFilter.scss +7 -7
- package/src/digitv2/pages/employee/inboxsearchcomposer.scss +41 -41
- package/src/digitv2/pages/employee/reactdatatable.scss +13 -13
- package/src/digitv2/pages/employee/workbench.scss +24 -24
- package/src/index.scss +3 -3
|
@@ -5,21 +5,21 @@
|
|
|
5
5
|
position: relative;
|
|
6
6
|
@media (max-aspect-ratio: 9/16) {
|
|
7
7
|
/* Media query for mobile */
|
|
8
|
-
gap:
|
|
8
|
+
gap: var(--digitv2-spacers-spacer4);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
12
12
|
/* Media query for tablets */
|
|
13
|
-
gap:
|
|
13
|
+
gap: var(--digitv2-spacers-spacer5);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
@media (min-aspect-ratio: 3/4) {
|
|
17
17
|
/* Media query for desktop */
|
|
18
|
-
gap:
|
|
18
|
+
gap: var(--digitv2-spacers-spacer6);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.metric-divider{
|
|
22
|
-
margin:
|
|
22
|
+
margin: var(--digitv2-spacers-spacer0);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.vertical-metric-divider{
|
|
@@ -27,22 +27,22 @@
|
|
|
27
27
|
|
|
28
28
|
@media (max-aspect-ratio: 9/16) {
|
|
29
29
|
/* Media query for mobile */
|
|
30
|
-
top:
|
|
30
|
+
top: var(--digitv2-spacers-spacer4);
|
|
31
31
|
height: calc(100% - 2rem);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
35
35
|
/* Media query for tablets */
|
|
36
|
-
top:
|
|
36
|
+
top: var(--digitv2-spacers-spacer5);
|
|
37
37
|
height: calc(100% - 2.5rem);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
@media (min-aspect-ratio: 3/4) {
|
|
41
41
|
/* Media query for desktop */
|
|
42
|
-
top:
|
|
42
|
+
top: var(--digitv2-spacers-spacer6);
|
|
43
43
|
height: calc(100% - 3rem);
|
|
44
44
|
}
|
|
45
|
-
border: 0.063rem solid
|
|
45
|
+
border: 0.063rem solid var(--digitv2-lightTheme-generic-divider);
|
|
46
46
|
z-index: 1;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
@@ -53,45 +53,45 @@
|
|
|
53
53
|
align-items: center;
|
|
54
54
|
justify-content: center;
|
|
55
55
|
flex-direction: column;
|
|
56
|
-
gap:
|
|
57
|
-
padding:
|
|
56
|
+
gap: var(--digitv2-spacers-spacer1);
|
|
57
|
+
padding: var(--digitv2-spacers-spacer4);
|
|
58
58
|
|
|
59
59
|
.metric-value {
|
|
60
60
|
@include typography-heading-l;
|
|
61
|
-
color:
|
|
61
|
+
color: var(--digitv2-lightTheme-primary-2);
|
|
62
62
|
line-height: normal;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.metric-description {
|
|
66
66
|
@include typography-body-s;
|
|
67
67
|
text-align: center;
|
|
68
|
-
color:
|
|
68
|
+
color: var(--digitv2-lightTheme-text-primary);
|
|
69
69
|
|
|
70
70
|
@media (max-aspect-ratio: 9/16) {
|
|
71
71
|
/* Media query for mobile */
|
|
72
|
-
font-size:
|
|
73
|
-
font-family:
|
|
74
|
-
font-style:
|
|
75
|
-
font-weight:
|
|
76
|
-
line-height:
|
|
72
|
+
font-size: var( --digitv2-fontSize-body-s-mobile);
|
|
73
|
+
font-family: var(--digitv2-fontFamily-sans);
|
|
74
|
+
font-style: var(--digitv2-fontStyle-normal);
|
|
75
|
+
font-weight: var(--digitv2-fontWeight-regular);
|
|
76
|
+
line-height: var(--digitv2-lineHeight-lineheight2);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
80
80
|
/* Media query for tablets */
|
|
81
|
-
font-size:
|
|
82
|
-
font-family:
|
|
83
|
-
font-style:
|
|
84
|
-
font-weight:
|
|
85
|
-
line-height:
|
|
81
|
+
font-size: var( --digitv2-fontSize-body-s-tablet);
|
|
82
|
+
font-family: var(--digitv2-fontFamily-sans);
|
|
83
|
+
font-style: var(--digitv2-fontStyle-normal);
|
|
84
|
+
font-weight: var(--digitv2-fontWeight-regular);
|
|
85
|
+
line-height: var(--digitv2-lineHeight-lineheight2);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
@media (min-aspect-ratio: 3/4) {
|
|
89
89
|
/* Media query for desktop */
|
|
90
|
-
font-size:
|
|
91
|
-
font-family:
|
|
92
|
-
font-style:
|
|
93
|
-
font-weight:
|
|
94
|
-
line-height:
|
|
90
|
+
font-size: var( --digitv2-fontSize-body-s-desktop);
|
|
91
|
+
font-family: var(--digitv2-fontFamily-sans);
|
|
92
|
+
font-style: var(--digitv2-fontStyle-normal);
|
|
93
|
+
font-weight: var(--digitv2-fontWeight-regular);
|
|
94
|
+
line-height: var(--digitv2-lineHeight-lineheight2);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
|
|
@@ -101,54 +101,54 @@
|
|
|
101
101
|
text-align: center;
|
|
102
102
|
align-items: center;
|
|
103
103
|
justify-content: center;
|
|
104
|
-
gap:
|
|
104
|
+
gap: var(--digitv2-spacers-spacer1);
|
|
105
105
|
|
|
106
106
|
@media (max-aspect-ratio: 9/16) {
|
|
107
107
|
/* Media query for mobile */
|
|
108
|
-
font-size:
|
|
109
|
-
font-family:
|
|
110
|
-
font-style:
|
|
111
|
-
font-weight:
|
|
112
|
-
line-height:
|
|
108
|
+
font-size: var(--digitv2-fontSize-body-xs-mobile);
|
|
109
|
+
font-family: var(--digitv2-fontFamily-sans);
|
|
110
|
+
font-style: var(--digitv2-fontStyle-normal);
|
|
111
|
+
font-weight: var(--digitv2-fontWeight-regular);
|
|
112
|
+
line-height: var(--digitv2-lineHeight-lineheight2);
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
116
116
|
/* Media query for tablets */
|
|
117
|
-
font-size:
|
|
118
|
-
font-family:
|
|
119
|
-
font-style:
|
|
120
|
-
font-weight:
|
|
121
|
-
line-height:
|
|
117
|
+
font-size: var(--digitv2-fontSize-body-xs-tablet);
|
|
118
|
+
font-family: var(--digitv2-fontFamily-sans);
|
|
119
|
+
font-style: var(--digitv2-fontStyle-normal);
|
|
120
|
+
font-weight: var(--digitv2-fontWeight-regular);
|
|
121
|
+
line-height: var(--digitv2-lineHeight-lineheight2);
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
@media (min-aspect-ratio: 3/4) {
|
|
125
125
|
/* Media query for desktop */
|
|
126
|
-
font-size:
|
|
127
|
-
font-family:
|
|
128
|
-
font-style:
|
|
129
|
-
font-weight:
|
|
130
|
-
line-height:
|
|
126
|
+
font-size: var(--digitv2-fontSize-body-xs-desktop);
|
|
127
|
+
font-family: var(--digitv2-fontFamily-sans);
|
|
128
|
+
font-style: var(--digitv2-fontStyle-normal);
|
|
129
|
+
font-weight: var(--digitv2-fontWeight-regular);
|
|
130
|
+
line-height: var(--digitv2-lineHeight-lineheight2);
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
|
|
134
134
|
svg {
|
|
135
135
|
flex-shrink: 0;
|
|
136
|
-
width:
|
|
137
|
-
height:
|
|
136
|
+
width: var(--digitv2-spacers-spacer4);
|
|
137
|
+
height: var(--digitv2-spacers-spacer4);
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
color:
|
|
140
|
+
color: var(--digitv2-lightTheme-primary-1);
|
|
141
141
|
|
|
142
142
|
&.Increased {
|
|
143
|
-
color:
|
|
143
|
+
color: var(--digitv2-lightTheme-alert-success);
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
&.Decreased {
|
|
147
|
-
color:
|
|
147
|
+
color: var(--digitv2-lightTheme-alert-error);
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
&.Nochange {
|
|
151
|
-
color:
|
|
151
|
+
color: var(--digitv2-lightTheme-alert-info);
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
}
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
max-width: 37.5rem;
|
|
24
24
|
min-width: 12.5rem;
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
|
|
27
27
|
.digit-text-mobile-input-width {
|
|
28
28
|
.digit-text-input-width {
|
|
29
29
|
width: calc(540px - 41px);
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
.digit-citizen-card-input {
|
|
44
44
|
@include typography-text-body-s;
|
|
45
45
|
@apply pl-sm outline-none block w-full h-10 bg-white leading-10 text-form-field;
|
|
46
|
-
border: 1px solid
|
|
47
|
-
color:
|
|
46
|
+
border: 1px solid var(--digitv2-lightTheme-text-secondary);
|
|
47
|
+
color: var(--digitv2-lightTheme-text-primary);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.digit-citizen-card-input--front {
|
|
@@ -62,4 +62,94 @@
|
|
|
62
62
|
@extend .alert-error;
|
|
63
63
|
@apply mb-lg pl-sm block w-full h-10 outline-none border-2 border-solid bg-white leading-10 text-form-field text-text-primary;
|
|
64
64
|
}
|
|
65
|
+
|
|
66
|
+
// Country code dropdown styles
|
|
67
|
+
.digit-country-code-dropdown {
|
|
68
|
+
flex-shrink: 0;
|
|
69
|
+
width: 7.5rem;
|
|
70
|
+
position: relative;
|
|
71
|
+
overflow: visible;
|
|
72
|
+
height: 40px;
|
|
73
|
+
|
|
74
|
+
.digit-dropdown-employee-select-wrap,
|
|
75
|
+
.digit-dropdown-select-wrap {
|
|
76
|
+
width: 100%;
|
|
77
|
+
min-width: unset;
|
|
78
|
+
max-width: unset;
|
|
79
|
+
overflow: visible;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.digit-dropdown-select,
|
|
83
|
+
.digit-dropdown-select-active {
|
|
84
|
+
height: var(--digitv2-spacers-spacer10);
|
|
85
|
+
border-top-right-radius: 0 !important;
|
|
86
|
+
border-bottom-right-radius: 0 !important;
|
|
87
|
+
border-right: none !important;
|
|
88
|
+
border-top-left-radius: var(--digitv2-borderRadius-radius2);
|
|
89
|
+
border-bottom-left-radius: var(--digitv2-borderRadius-radius2);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.digit-dropdown-employee-select-wrap--elipses {
|
|
93
|
+
@apply font-bold;
|
|
94
|
+
font-size: var(--digitv2-spacers-spacer4);
|
|
95
|
+
color: var(--digitv2-lightTheme-text-secondary);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&.has-country-dropdown {
|
|
100
|
+
// The text input field should take remaining width
|
|
101
|
+
> .digit-text-input-field {
|
|
102
|
+
flex: 1;
|
|
103
|
+
min-width: 0;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// Remove left border-radius from inputs so they merge with dropdown
|
|
107
|
+
.digit-text-input-field {
|
|
108
|
+
.digit-employeeCard-input,
|
|
109
|
+
.digit-citizenCard-input,
|
|
110
|
+
.digit-employeeCard-inputError,
|
|
111
|
+
.digit-card-inputError {
|
|
112
|
+
border-top-left-radius: 0 !important;
|
|
113
|
+
border-bottom-left-radius: 0 !important;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.digit-dropdown-select {
|
|
118
|
+
border-color: #787878;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.digit-country-code-dropdown {
|
|
122
|
+
.digit-dropdown-select,
|
|
123
|
+
.digit-dropdown-select-active {
|
|
124
|
+
border-right: none !important;
|
|
125
|
+
|
|
126
|
+
&.disabled{
|
|
127
|
+
input{
|
|
128
|
+
color: #787878;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// Unified focus state — highlight both dropdown and input as one unit
|
|
135
|
+
&:focus-within {
|
|
136
|
+
.digit-country-code-dropdown {
|
|
137
|
+
.digit-dropdown-select,
|
|
138
|
+
.digit-dropdown-select-active {
|
|
139
|
+
border-color: var(--digitv2-lightTheme-primary-1) !important;
|
|
140
|
+
border-right: none !important;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.digit-text-input-field {
|
|
145
|
+
.digit-employeeCard-input,
|
|
146
|
+
.digit-citizenCard-input,
|
|
147
|
+
.digit-employeeCard-inputError,
|
|
148
|
+
.digit-card-inputError {
|
|
149
|
+
border-color: var(--digitv2-lightTheme-primary-1) !important;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
65
154
|
}
|
|
155
|
+
|