@egovernments/digit-ui-components-css 0.0.2-beta.29 → 0.0.2-beta.31
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/CHANGELOG.md +8 -0
- package/dist/index.css +233 -15
- package/dist/index.min.css +2 -2
- package/package.json +6 -5
- package/src/digitv2/components/headerdropdownV2.scss +5 -1
- package/src/digitv2/components/landingpagecardV2.scss +144 -0
- package/src/digitv2/components/menuCardV2.scss +92 -0
- package/src/digitv2/components/mobilesidebarV2.scss +1 -0
- package/src/digitv2/components/sidebarV2.scss +2 -0
- package/src/digitv2/components/topbarV2.scss +1 -1
- package/src/digitv2/index.scss +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@egovernments/digit-ui-components-css",
|
|
3
|
-
"version": "0.0.2-beta.
|
|
3
|
+
"version": "0.0.2-beta.31",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.css",
|
|
6
6
|
"author": "Jagankumar <jagan.kumar@egovernments.org>",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
],
|
|
26
26
|
"style": "./dist/index.css",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
|
|
29
|
-
"normalize.css": "^8.0.1",
|
|
30
|
-
"postcss-scss": "^3.0.1",
|
|
31
|
-
"tailwindcss": "^1.8.10"
|
|
28
|
+
|
|
32
29
|
},
|
|
33
30
|
"devDependencies": {
|
|
31
|
+
"node-sass": "^4.14.1",
|
|
32
|
+
"normalize.css": "^8.0.1",
|
|
33
|
+
"tailwindcss": "^1.8.10",
|
|
34
34
|
"autoprefixer": "^10.0.0",
|
|
35
35
|
"cssnano": "^4.1.10",
|
|
36
36
|
"gh-pages": "3.1.0",
|
|
@@ -67,3 +67,4 @@
|
|
|
67
67
|
"digit-ui-components"
|
|
68
68
|
]
|
|
69
69
|
}
|
|
70
|
+
|
|
@@ -71,11 +71,15 @@
|
|
|
71
71
|
box-shadow: theme(digitv2.spacers.spacer0) 0.063rem 0.275rem theme(digitv2.spacers.spacer0) #00000026;
|
|
72
72
|
max-height: 80%;
|
|
73
73
|
background-color: theme(digitv2.lightTheme.paper-primary);
|
|
74
|
-
margin-top: theme(digitv2.spacers.
|
|
74
|
+
margin-top: theme(digitv2.spacers.spacer6);
|
|
75
75
|
position: fixed;
|
|
76
76
|
min-width: 14rem;
|
|
77
77
|
max-width: 25rem;
|
|
78
78
|
@apply z-30 overflow-y-auto overflow-x-hidden;
|
|
79
|
+
|
|
80
|
+
&.underProfile{
|
|
81
|
+
margin-top: theme(digitv2.spacers.spacer5);
|
|
82
|
+
}
|
|
79
83
|
}
|
|
80
84
|
|
|
81
85
|
.header-dropdown-search-container {
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
.digit-landing-page-card {
|
|
2
|
+
background-color: theme(digitv2.lightTheme.paper-primary);
|
|
3
|
+
box-shadow: theme(digitv2.spacers.spacer0) 1px 2px theme(digitv2.spacers.spacer0) #00000029;
|
|
4
|
+
max-width: 30%;
|
|
5
|
+
min-width: 15%;
|
|
6
|
+
gap: theme(digitv2.spacers.spacer4);
|
|
7
|
+
border-radius: theme(digitv2.spacers.spacer1) theme(digitv2.spacers.spacer0) theme(digitv2.spacers.spacer0) theme(digitv2.spacers.spacer0);
|
|
8
|
+
|
|
9
|
+
@media (max-aspect-ratio: 9/16) {
|
|
10
|
+
/* Media query for mobile */
|
|
11
|
+
max-width: 90%
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
15
|
+
/* Media query for tablets */
|
|
16
|
+
max-width: 60%;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (min-aspect-ratio: 3/4) {
|
|
20
|
+
/* Media query for desktop */
|
|
21
|
+
max-width: 30%;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.icon-module-header {
|
|
25
|
+
display: flex !important;
|
|
26
|
+
align-items: center !important;
|
|
27
|
+
gap: theme(digitv2.spacers.spacer2);
|
|
28
|
+
|
|
29
|
+
.digit-landingpagecard-icon {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
|
|
33
|
+
&.iconBg {
|
|
34
|
+
background-color: theme(digitv2.lightTheme.primary-1);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
svg {
|
|
39
|
+
flex-shrink: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.ladingcard-moduleName {
|
|
43
|
+
@extend .typography.heading-m;
|
|
44
|
+
color: theme(digitv2.lightTheme.primary-2);
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
word-wrap: break-word;
|
|
47
|
+
word-break: break-word;
|
|
48
|
+
line-height: normal;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&.left {
|
|
52
|
+
justify-content: space-between;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.metric-container {
|
|
57
|
+
display: flex !important;
|
|
58
|
+
align-items: flex-start;
|
|
59
|
+
justify-content: space-evenly;
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
&.left {
|
|
63
|
+
justify-content: unset;
|
|
64
|
+
/*gap: 7.5rem;*/
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.metric-item {
|
|
68
|
+
display: flex;
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
align-items: center;
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
flex: 1;
|
|
73
|
+
|
|
74
|
+
&.left {
|
|
75
|
+
align-items: flex-start;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.metric-count {
|
|
79
|
+
@extend .typography.heading-m;
|
|
80
|
+
color: theme(digitv2.lightTheme.text-primary);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.metric-label {
|
|
84
|
+
@extend .typography.body-xs;
|
|
85
|
+
overflow: hidden;
|
|
86
|
+
word-wrap: break-word;
|
|
87
|
+
word-break: break-word;
|
|
88
|
+
line-height: normal;
|
|
89
|
+
color: theme(digitv2.lightTheme.generic-inputborder);
|
|
90
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
91
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
92
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
93
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
94
|
+
|
|
95
|
+
@media (max-aspect-ratio: 9/16) {
|
|
96
|
+
/* Media query for mobile */
|
|
97
|
+
font-size: theme(digitv2.fontSize.body-xs.mobile);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
101
|
+
/* Media query for tablets */
|
|
102
|
+
font-size: theme(digitv2.fontSize.body-xs.tablet);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@media (min-aspect-ratio: 3/4) {
|
|
106
|
+
/* Media query for desktop */
|
|
107
|
+
font-size: theme(digitv2.fontSize.body-xs.desktop);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.digit-button-teritiary {
|
|
114
|
+
justify-content: flex-start;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.digit-landingpage-divider {
|
|
120
|
+
width: 100%;
|
|
121
|
+
margin: theme(digitv2.spacers.spacer0);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.digit-landing-page-wrapper {
|
|
125
|
+
display: flex;
|
|
126
|
+
justify-content: flex-start;
|
|
127
|
+
flex-wrap: wrap;
|
|
128
|
+
|
|
129
|
+
@media (max-aspect-ratio: 9/16) {
|
|
130
|
+
/* Media query for mobile */
|
|
131
|
+
flex-direction: column;
|
|
132
|
+
gap: theme(digitv2.spacers.spacer4);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
136
|
+
/* Media query for tablets */
|
|
137
|
+
gap: theme(digitv2.spacers.spacer5);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
@media (min-aspect-ratio: 3/4) {
|
|
141
|
+
/* Media query for desktop */
|
|
142
|
+
gap: theme(digitv2.spacers.spacer6);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
.digit-menu-card {
|
|
2
|
+
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: theme(digitv2.spacers.spacer3);
|
|
6
|
+
justify-content: flex-start;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
|
|
9
|
+
.icon-menu-header {
|
|
10
|
+
|
|
11
|
+
display: flex !important;
|
|
12
|
+
align-items: center;
|
|
13
|
+
gap: theme(digitv2.spacers.spacer2);
|
|
14
|
+
|
|
15
|
+
.digit-menucard-icon {
|
|
16
|
+
|
|
17
|
+
@media (max-aspect-ratio: 9/16) {
|
|
18
|
+
/* Media query for mobile */
|
|
19
|
+
width: theme(digitv2.spacers.spacer6);
|
|
20
|
+
height: theme(digitv2.spacers.spacer6);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
24
|
+
/* Media query for tablets */
|
|
25
|
+
width: theme(digitv2.spacers.spacer8);
|
|
26
|
+
height: theme(digitv2.spacers.spacer8);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@media (min-aspect-ratio: 3/4) {
|
|
30
|
+
/* Media query for desktop */
|
|
31
|
+
width: theme(digitv2.spacers.spacer10);
|
|
32
|
+
height: theme(digitv2.spacers.spacer10);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
svg {
|
|
37
|
+
flex-shrink: 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.digit-menuacard-menuName {
|
|
41
|
+
@extend .typography.heading-m;
|
|
42
|
+
line-height: normal;
|
|
43
|
+
color: theme(digitv2.lightTheme.primary-2);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.digit-menucard-description {
|
|
48
|
+
@extend .typography.body-s;
|
|
49
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
50
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
51
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
52
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
53
|
+
|
|
54
|
+
@media (max-aspect-ratio: 9/16) {
|
|
55
|
+
/* Media query for mobile */
|
|
56
|
+
font-size: theme(digitv2.fontSize.body-s.mobile);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
60
|
+
/* Media query for tablets */
|
|
61
|
+
font-size: theme(digitv2.fontSize.body-s.tablet);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@media (min-aspect-ratio: 3/4) {
|
|
65
|
+
/* Media query for desktop */
|
|
66
|
+
font-size: theme(digitv2.fontSize.body-s.desktop);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
color: theme(digitv2.lightTheme.text-primary);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.digit-menu-card-wrapper{
|
|
74
|
+
display: flex !important;
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
|
|
77
|
+
@media (max-aspect-ratio: 9/16) {
|
|
78
|
+
/* Media query for mobile */
|
|
79
|
+
gap: theme(digitv2.spacers.spacer4);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
83
|
+
/* Media query for tablets */
|
|
84
|
+
gap: theme(digitv2.spacers.spacer5);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@media (min-aspect-ratio: 3/4) {
|
|
88
|
+
/* Media query for desktop */
|
|
89
|
+
gap: theme(digitv2.spacers.spacer6);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
}
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
z-index: 9999999;
|
|
196
196
|
display: flex;
|
|
197
197
|
background-color: theme(digitv2.lightTheme.paper-primary);
|
|
198
|
-
height:
|
|
198
|
+
height: 4.5rem;
|
|
199
199
|
padding: theme(digitv2.spacers.spacer4) theme(digitv2.spacers.spacer10) theme(digitv2.spacers.spacer4) theme(digitv2.spacers.spacer10);
|
|
200
200
|
|
|
201
201
|
.margin-top-10 {
|
package/src/digitv2/index.scss
CHANGED
|
@@ -42,6 +42,8 @@
|
|
|
42
42
|
@import url("./components/mobilesidebarV2.scss");
|
|
43
43
|
@import url("./components/tooltipwrapperV2.scss");
|
|
44
44
|
@import url("./components/tagV2.scss");
|
|
45
|
+
@import url("./components/landingpagecardV2.scss");
|
|
46
|
+
@import url("./components/menuCardV2.scss");
|
|
45
47
|
|
|
46
48
|
/* pages */
|
|
47
49
|
@import url("./pages/employee/index.scss");
|