@egovernments/digit-ui-components-css 0.2.0-beta.8 → 0.2.0-rc.16
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 +4 -14635
- package/package.json +33 -36
- package/src/digitv2/components/FormComposerV2.scss +6 -5
- package/src/digitv2/components/accordionV2.scss +59 -59
- package/src/digitv2/components/alertCardV2.scss +43 -43
- package/src/digitv2/components/backLinkV2.scss +11 -8
- package/src/digitv2/components/bodyContainerV2.scss +2 -1
- package/src/digitv2/components/bottomSheetV2.scss +22 -19
- package/src/digitv2/components/breadcrumbV2.scss +27 -25
- package/src/digitv2/components/buttonsV2.scss +72 -72
- package/src/digitv2/components/cardV2.scss +18 -17
- package/src/digitv2/components/cardbasedoptionsV2.scss +4 -1
- package/src/digitv2/components/cardlabelV2.scss +4 -3
- package/src/digitv2/components/checkboxV2.scss +33 -32
- package/src/digitv2/components/chipV2.scss +46 -43
- package/src/digitv2/components/dividerV2.scss +7 -4
- package/src/digitv2/components/errorMessageV2.scss +15 -15
- package/src/digitv2/components/fieldV1.scss +69 -64
- package/src/digitv2/components/fileUploadV2.scss +129 -126
- package/src/digitv2/components/filterCardV2.scss +54 -51
- package/src/digitv2/components/footerV2.scss +14 -13
- package/src/digitv2/components/formCardV2.scss +52 -49
- package/src/digitv2/components/hamburgerV2.scss +145 -142
- package/src/digitv2/components/headerV2.scss +60 -57
- package/src/digitv2/components/headerdropdownV2.scss +72 -69
- package/src/digitv2/components/infobuttonV2.scss +18 -15
- package/src/digitv2/components/labelFieldPairV2.scss +11 -8
- package/src/digitv2/components/landingpagecardV2.scss +73 -70
- package/src/digitv2/components/loaderV2.scss +7 -4
- package/src/digitv2/components/menuCardV2.scss +34 -31
- package/src/digitv2/components/metricCardV2.scss +55 -52
- package/src/digitv2/components/mobileNumberV2.scss +10 -10
- package/src/digitv2/components/multiSelectDropdownV2.scss +170 -168
- package/src/digitv2/components/otpInputV2.scss +29 -26
- package/src/digitv2/components/panelCardV2.scss +46 -43
- package/src/digitv2/components/panelV2.scss +34 -31
- package/src/digitv2/components/popUpV2.scss +94 -91
- package/src/digitv2/components/radiobtnV2.scss +24 -23
- package/src/digitv2/components/selectDropdownV2.scss +200 -197
- package/src/digitv2/components/selectionTagV2.scss +32 -29
- package/src/digitv2/components/sidePanelV2.scss +51 -48
- package/src/digitv2/components/sidenavV2.scss +119 -116
- package/src/digitv2/components/stepperV2.scss +61 -58
- package/src/digitv2/components/summaryCardFieldPairV2.scss +25 -22
- package/src/digitv2/components/summaryCardV2.scss +30 -27
- package/src/digitv2/components/switchV2.scss +34 -31
- package/src/digitv2/components/tabV2.scss +29 -26
- package/src/digitv2/components/tableV2.scss +152 -149
- package/src/digitv2/components/tagV2.scss +27 -24
- package/src/digitv2/components/textInputV2.scss +117 -101
- package/src/digitv2/components/textareaV2.scss +23 -20
- package/src/digitv2/components/textblockV2.scss +31 -28
- package/src/digitv2/components/timelineV2.scss +64 -61
- package/src/digitv2/components/toastV2.scss +28 -25
- package/src/digitv2/components/toggleV2.scss +121 -37
- package/src/digitv2/components/tooltipwrapperV2.scss +97 -94
- package/src/digitv2/components/treeSelectV2.scss +58 -55
- package/src/digitv2/index.scss +136 -134
- package/src/digitv2/pages/employee/boundaryFilter.scss +63 -0
- package/src/digitv2/pages/employee/inboxsearchcomposer.scss +107 -37
- package/src/digitv2/pages/employee/index.scss +4 -3
- package/src/digitv2/pages/employee/reactdatatable.scss +13 -13
- package/src/digitv2/pages/employee/workbench.scss +29 -28
- package/src/digitv2/typography.scss +633 -640
- package/src/index.scss +21 -19
- package/src/pages/employee/index.scss +26 -26
- package/src/pages/employee/login.scss +4 -4
- package/src/theme-variables.css +137 -0
- package/CHANGELOG.md +0 -231
- package/dist/index.min.css +0 -6
|
@@ -1,13 +1,16 @@
|
|
|
1
|
+
@import './theme-variables.css';
|
|
2
|
+
@import '../typography.scss';
|
|
3
|
+
|
|
1
4
|
.digit-tree-select-options-container.first-level:nth-of-type(even) {
|
|
2
5
|
.digit-tree-select-option.level-0,
|
|
3
6
|
.digit-tree-multiselect-option.level-0:not(.checked){
|
|
4
|
-
background-color: theme(digitv2.lightTheme.paper-secondary);
|
|
7
|
+
background-color: theme("digitv2.lightTheme.paper-secondary");
|
|
5
8
|
}
|
|
6
9
|
}
|
|
7
10
|
.digit-tree-select-options-container.first-level:nth-of-type(odd) {
|
|
8
11
|
.digit-tree-select-option.level-0,
|
|
9
12
|
.digit-tree-multiselect-option.level-0:not(.checked){
|
|
10
|
-
background-color: theme(digitv2.lightTheme.paper-primary);
|
|
13
|
+
background-color: theme("digitv2.lightTheme.paper-primary");
|
|
11
14
|
}
|
|
12
15
|
}
|
|
13
16
|
.container.innerlevel {
|
|
@@ -17,37 +20,37 @@
|
|
|
17
20
|
.digit-tree-multiselect-option {
|
|
18
21
|
@apply relative cursor-pointer flex items-center;
|
|
19
22
|
height: 2.4375rem;
|
|
20
|
-
gap: theme(digitv2.spacers.spacer1);
|
|
21
|
-
padding: theme(digitv2.spacers.spacer4) theme(digitv2.spacers.spacer3);
|
|
23
|
+
gap: theme("digitv2.spacers.spacer1");
|
|
24
|
+
padding: theme("digitv2.spacers.spacer4") theme("digitv2.spacers.spacer3");
|
|
22
25
|
&:hover {
|
|
23
|
-
background: theme(digitv2.lightTheme.primary-bg);
|
|
24
|
-
border: 0.063rem solid theme(digitv2.lightTheme.primary-1);
|
|
26
|
+
background: theme("digitv2.lightTheme.primary-bg");
|
|
27
|
+
border: 0.063rem solid theme("digitv2.lightTheme.primary-1");
|
|
25
28
|
}
|
|
26
29
|
&.expanded {
|
|
27
30
|
.digit-option-label {
|
|
28
|
-
@
|
|
29
|
-
font-family: theme(digitv2.fontFamily.sans);
|
|
30
|
-
font-style: theme(digitv2.fontStyle.normal);
|
|
31
|
-
font-weight: theme(digitv2.fontWeight.bold);
|
|
32
|
-
line-height: theme(digitv2.lineHeight.lineheight1);
|
|
31
|
+
@include typography-heading-s;
|
|
32
|
+
font-family: theme("digitv2.fontFamily.sans");
|
|
33
|
+
font-style: theme("digitv2.fontStyle.normal");
|
|
34
|
+
font-weight: theme("digitv2.fontWeight.bold");
|
|
35
|
+
line-height: theme("digitv2.lineHeight.lineheight1");
|
|
33
36
|
|
|
34
37
|
@media (max-aspect-ratio: 9/16) {
|
|
35
38
|
/* Media query for mobile */
|
|
36
|
-
font-size: theme(digitv2.fontSize.heading-s.mobile);
|
|
39
|
+
font-size: theme("digitv2.fontSize.heading-s.mobile");
|
|
37
40
|
}
|
|
38
41
|
|
|
39
42
|
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
40
43
|
/* Media query for tablets */
|
|
41
|
-
font-size: theme(digitv2.fontSize.heading-s.tablet);
|
|
44
|
+
font-size: theme("digitv2.fontSize.heading-s.tablet");
|
|
42
45
|
}
|
|
43
46
|
|
|
44
47
|
@media (min-aspect-ratio: 3/4) {
|
|
45
48
|
/* Media query for desktop */
|
|
46
|
-
font-size: theme(digitv2.fontSize.heading-s.desktop);
|
|
49
|
+
font-size: theme("digitv2.fontSize.heading-s.desktop");
|
|
47
50
|
}
|
|
48
|
-
color: theme(digitv2.lightTheme.text-primary);
|
|
51
|
+
color: theme("digitv2.lightTheme.text-primary");
|
|
49
52
|
/*font-size: 1rem;
|
|
50
|
-
font-weight: theme(digitv2.fontWeight.bold);
|
|
53
|
+
font-weight: theme("digitv2.fontWeight.bold");
|
|
51
54
|
line-height: 1.188rem;*/
|
|
52
55
|
}
|
|
53
56
|
}
|
|
@@ -56,31 +59,31 @@
|
|
|
56
59
|
margin: 0;
|
|
57
60
|
}
|
|
58
61
|
.digit-toggle-dropdown {
|
|
59
|
-
width: theme(digitv2.spacers.spacer6);
|
|
60
|
-
height: theme(digitv2.spacers.spacer6);
|
|
62
|
+
width: theme("digitv2.spacers.spacer6");
|
|
63
|
+
height: theme("digitv2.spacers.spacer6");
|
|
61
64
|
}
|
|
62
65
|
.digit-custom-checkbox {
|
|
63
|
-
height: theme(digitv2.spacers.spacer5);
|
|
64
|
-
width: theme(digitv2.spacers.spacer5);
|
|
66
|
+
height: theme("digitv2.spacers.spacer5");
|
|
67
|
+
width: theme("digitv2.spacers.spacer5");
|
|
65
68
|
@apply flex items-center justify-center;
|
|
66
|
-
border: 0.063rem solid theme(digitv2.lightTheme.text-secondary);
|
|
69
|
+
border: 0.063rem solid theme("digitv2.lightTheme.text-secondary");
|
|
67
70
|
svg {
|
|
68
71
|
@apply opacity-0 z-10;
|
|
69
72
|
}
|
|
70
73
|
&.checked {
|
|
71
|
-
border: 0.125rem solid theme(digitv2.lightTheme.primary-1);
|
|
74
|
+
border: 0.125rem solid theme("digitv2.lightTheme.primary-1");
|
|
72
75
|
svg {
|
|
73
76
|
@apply opacity-100;
|
|
74
|
-
width: theme(digitv2.spacers.spacer4);
|
|
75
|
-
height: theme(digitv2.spacers.spacer4);
|
|
77
|
+
width: theme("digitv2.spacers.spacer4");
|
|
78
|
+
height: theme("digitv2.spacers.spacer4");
|
|
76
79
|
}
|
|
77
80
|
}
|
|
78
81
|
&.intermediate {
|
|
79
|
-
border: 0.125rem solid theme(digitv2.lightTheme.primary-1);
|
|
82
|
+
border: 0.125rem solid theme("digitv2.lightTheme.primary-1");
|
|
80
83
|
.intermediate-state {
|
|
81
|
-
width: theme(digitv2.spacers.spacer3);
|
|
82
|
-
height: theme(digitv2.spacers.spacer3);
|
|
83
|
-
background-color: theme(digitv2.lightTheme.primary-1);
|
|
84
|
+
width: theme("digitv2.spacers.spacer3");
|
|
85
|
+
height: theme("digitv2.spacers.spacer3");
|
|
86
|
+
background-color: theme("digitv2.lightTheme.primary-1");
|
|
84
87
|
opacity: 1;
|
|
85
88
|
}
|
|
86
89
|
}
|
|
@@ -88,17 +91,17 @@
|
|
|
88
91
|
}
|
|
89
92
|
.container .digit-tree-multiselect-option.parent.checked.all-child-selected+.child-options-container,
|
|
90
93
|
.container .digit-tree-multiselect-option.parent.checked.all-child-selected .child-options-container {
|
|
91
|
-
background-color: theme(digitv2.lightTheme.primary-bg);
|
|
94
|
+
background-color: theme("digitv2.lightTheme.primary-bg");
|
|
92
95
|
.digit-tree-multiselect-option.checked {
|
|
93
|
-
background: theme(digitv2.lightTheme.primary-bg) !important;
|
|
96
|
+
background: theme("digitv2.lightTheme.primary-bg") !important;
|
|
94
97
|
.digit-toggle-dropdown.svg {
|
|
95
98
|
fill: #0B0C0C;
|
|
96
99
|
}
|
|
97
100
|
.digit-custom-checkbox {
|
|
98
|
-
border: 0.125rem solid theme(digitv2.lightTheme.primary-1);
|
|
101
|
+
border: 0.125rem solid theme("digitv2.lightTheme.primary-1");
|
|
99
102
|
}
|
|
100
103
|
.digit-option-label {
|
|
101
|
-
color: theme(digitv2.lightTheme.text-primary);
|
|
104
|
+
color: theme("digitv2.lightTheme.text-primary");
|
|
102
105
|
}
|
|
103
106
|
}
|
|
104
107
|
.container {
|
|
@@ -108,48 +111,48 @@
|
|
|
108
111
|
.digit-tree-select-option {
|
|
109
112
|
&.expanded{
|
|
110
113
|
&.level-0{
|
|
111
|
-
background-color: theme(digitv2.lightTheme.paper-secondary) !important;
|
|
114
|
+
background-color: theme("digitv2.lightTheme.paper-secondary") !important;
|
|
112
115
|
}
|
|
113
116
|
}
|
|
114
117
|
&.child {
|
|
115
118
|
.digit-option-label {
|
|
116
|
-
padding-left: theme(digitv2.spacers.spacer7);
|
|
119
|
+
padding-left: theme("digitv2.spacers.spacer7");
|
|
117
120
|
}
|
|
118
121
|
}
|
|
119
122
|
}
|
|
120
123
|
.digit-tree-multiselect-option {
|
|
121
124
|
&.expanded{
|
|
122
125
|
&.level-0:not(.checked){
|
|
123
|
-
background-color: theme(digitv2.lightTheme.paper-secondary) !important;
|
|
126
|
+
background-color: theme("digitv2.lightTheme.paper-secondary") !important;
|
|
124
127
|
}
|
|
125
128
|
}
|
|
126
129
|
&.checked {
|
|
127
|
-
background-color: theme(digitv2.lightTheme.primary-1);
|
|
130
|
+
background-color: theme("digitv2.lightTheme.primary-1");
|
|
128
131
|
.digit-custom-checkbox {
|
|
129
|
-
border: 0.125rem solid theme(digitv2.lightTheme.paper-primary);
|
|
132
|
+
border: 0.125rem solid theme("digitv2.lightTheme.paper-primary");
|
|
130
133
|
}
|
|
131
134
|
.digit-option-label {
|
|
132
|
-
@
|
|
133
|
-
font-family: theme(digitv2.fontFamily.sans);
|
|
134
|
-
font-style: theme(digitv2.fontStyle.normal);
|
|
135
|
-
font-weight: theme(digitv2.fontWeight.bold);
|
|
136
|
-
line-height: theme(digitv2.lineHeight.lineheight1);
|
|
135
|
+
@include typography-heading-s;
|
|
136
|
+
font-family: theme("digitv2.fontFamily.sans");
|
|
137
|
+
font-style: theme("digitv2.fontStyle.normal");
|
|
138
|
+
font-weight: theme("digitv2.fontWeight.bold");
|
|
139
|
+
line-height: theme("digitv2.lineHeight.lineheight1");
|
|
137
140
|
|
|
138
141
|
@media (max-aspect-ratio: 9/16) {
|
|
139
142
|
/* Media query for mobile */
|
|
140
|
-
font-size: theme(digitv2.fontSize.heading-s.mobile);
|
|
143
|
+
font-size: theme("digitv2.fontSize.heading-s.mobile");
|
|
141
144
|
}
|
|
142
145
|
|
|
143
146
|
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
144
147
|
/* Media query for tablets */
|
|
145
|
-
font-size: theme(digitv2.fontSize.heading-s.tablet);
|
|
148
|
+
font-size: theme("digitv2.fontSize.heading-s.tablet");
|
|
146
149
|
}
|
|
147
150
|
|
|
148
151
|
@media (min-aspect-ratio: 3/4) {
|
|
149
152
|
/* Media query for desktop */
|
|
150
|
-
font-size: theme(digitv2.fontSize.heading-s.desktop);
|
|
153
|
+
font-size: theme("digitv2.fontSize.heading-s.desktop");
|
|
151
154
|
}
|
|
152
|
-
color: theme(digitv2.lightTheme.paper-primary);
|
|
155
|
+
color: theme("digitv2.lightTheme.paper-primary");
|
|
153
156
|
}
|
|
154
157
|
}
|
|
155
158
|
&.child {
|
|
@@ -162,29 +165,29 @@
|
|
|
162
165
|
}
|
|
163
166
|
}
|
|
164
167
|
.digit-option-label {
|
|
165
|
-
@
|
|
166
|
-
font-family: theme(digitv2.fontFamily.sans);
|
|
167
|
-
font-style: theme(digitv2.fontStyle.normal);
|
|
168
|
-
font-weight: theme(digitv2.fontWeight.regular);
|
|
169
|
-
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
168
|
+
@include typography-body-s;
|
|
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");
|
|
170
173
|
|
|
171
174
|
@media (max-aspect-ratio: 9/16) {
|
|
172
175
|
/* Media query for mobile */
|
|
173
|
-
font-size: theme(digitv2.fontSize.body-s.mobile);
|
|
176
|
+
font-size: theme("digitv2.fontSize.body-s.mobile");
|
|
174
177
|
}
|
|
175
178
|
|
|
176
179
|
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
177
180
|
/* Media query for tablets */
|
|
178
|
-
font-size: theme(digitv2.fontSize.body-s.tablet);
|
|
181
|
+
font-size: theme("digitv2.fontSize.body-s.tablet");
|
|
179
182
|
}
|
|
180
183
|
|
|
181
184
|
@media (min-aspect-ratio: 3/4) {
|
|
182
185
|
/* Media query for desktop */
|
|
183
|
-
font-size: theme(digitv2.fontSize.body-s.desktop);
|
|
186
|
+
font-size: theme("digitv2.fontSize.body-s.desktop");
|
|
184
187
|
}
|
|
185
188
|
@apply overflow-hidden w-full;
|
|
186
189
|
flex: 1;
|
|
187
|
-
color: theme(digitv2.lightTheme.text-primary);}
|
|
190
|
+
color: theme("digitv2.lightTheme.text-primary");}
|
|
188
191
|
.digit-toggle-dropdown {
|
|
189
192
|
@apply cursor-pointer;
|
|
190
193
|
}
|