Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table molecule #131

Merged
merged 15 commits into from
Sep 26, 2024
4 changes: 4 additions & 0 deletions react/css/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [0.0.2-beta.36] - 2024-09-23
### Changed
- Added Table css

## [0.0.2-beta.35] - 2024-09-19
### Changed
- Added OTPInput css
Expand Down
2 changes: 1 addition & 1 deletion react/css/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@egovernments/digit-ui-components-css",
"version": "0.0.2-beta.35",
"version": "0.0.2-beta.36",
"license": "MIT",
"main": "dist/index.css",
"author": "Jagankumar <jagan.kumar@egovernments.org>",
Expand Down
38 changes: 38 additions & 0 deletions react/css/src/digitv2/components/accordionV2.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,25 @@

.digit-accordion-number {
@extend .typography.heading-s;
font-family: theme(digitv2.fontFamily.sans);
font-style: theme(digitv2.fontStyle.normal);
font-weight: theme(digitv2.fontWeight.bold);
line-height: theme(digitv2.lineHeight.lineheight1);

@media (max-aspect-ratio: 9/16) {
/* Media query for mobile */
font-size: theme(digitv2.fontSize.heading-s.mobile);
}

@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
/* Media query for tablets */
font-size: theme(digitv2.fontSize.heading-s.tablet);
}

@media (min-aspect-ratio: 3/4) {
/* Media query for desktop */
font-size: theme(digitv2.fontSize.heading-s.desktop);
}
Swathi-eGov marked this conversation as resolved.
Show resolved Hide resolved
color: theme(digitv2.lightTheme.text-primary);
min-width: theme(digitv2.spacers.spacer6);
height: theme(digitv2.spacers.spacer6);
Expand All @@ -36,6 +55,25 @@

.digit-accordion-header-title {
@extend .typography.heading-s;
font-family: theme(digitv2.fontFamily.sans);
font-style: theme(digitv2.fontStyle.normal);
font-weight: theme(digitv2.fontWeight.bold);
line-height: theme(digitv2.lineHeight.lineheight1);

@media (max-aspect-ratio: 9/16) {
/* Media query for mobile */
font-size: theme(digitv2.fontSize.heading-s.mobile);
}

@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
/* Media query for tablets */
font-size: theme(digitv2.fontSize.heading-s.tablet);
}

@media (min-aspect-ratio: 3/4) {
/* Media query for desktop */
font-size: theme(digitv2.fontSize.heading-s.desktop);
}
color: theme(digitv2.lightTheme.text-primary);
margin-top: 0.18rem;
flex-grow: 1;
Expand Down
44 changes: 44 additions & 0 deletions react/css/src/digitv2/components/landingpagecardV2.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.digit-landing-page-card {
width: fit-content;
background-color: theme(digitv2.lightTheme.paper-primary);
box-shadow: theme(digitv2.spacers.spacer0) 0.063rem 0.125rem theme(digitv2.spacers.spacer0) #00000029;
min-width: 15%;
Expand Down Expand Up @@ -68,6 +69,25 @@

.ladingcard-moduleName {
@extend .typography.heading-m;
font-family: theme(digitv2.fontFamily.sans);
font-style: theme(digitv2.fontStyle.normal);
font-weight: theme(digitv2.fontWeight.bold);
line-height: theme(digitv2.lineHeight.lineheight1);

@media (max-aspect-ratio: 9/16) {
/* Media query for mobile */
font-size: theme(digitv2.fontSize.heading-m.mobile);
}

@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
/* Media query for tablets */
font-size: theme(digitv2.fontSize.heading-m.tablet);
}

@media (min-aspect-ratio: 3/4) {
/* Media query for desktop */
font-size: theme(digitv2.fontSize.heading-m.desktop);
}
Swathi-eGov marked this conversation as resolved.
Show resolved Hide resolved
color: theme(digitv2.lightTheme.primary-2);
overflow: hidden;
word-wrap: break-word;
Expand Down Expand Up @@ -109,6 +129,25 @@

.metric-count {
@extend .typography.heading-m;
font-family: theme(digitv2.fontFamily.sans);
font-style: theme(digitv2.fontStyle.normal);
font-weight: theme(digitv2.fontWeight.bold);
line-height: theme(digitv2.lineHeight.lineheight1);

@media (max-aspect-ratio: 9/16) {
/* Media query for mobile */
font-size: theme(digitv2.fontSize.heading-m.mobile);
}

@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
/* Media query for tablets */
font-size: theme(digitv2.fontSize.heading-m.tablet);
}

@media (min-aspect-ratio: 3/4) {
/* Media query for desktop */
font-size: theme(digitv2.fontSize.heading-m.desktop);
}
Swathi-eGov marked this conversation as resolved.
Show resolved Hide resolved
color: theme(digitv2.lightTheme.text-primary);
}

Expand Down Expand Up @@ -149,6 +188,11 @@
justify-content: flex-start;
}

@media (max-aspect-ratio: 9/16) {
/* Media query for mobile */
width: 100%;
}

}

.digit-landingpage-divider {
Expand Down
19 changes: 19 additions & 0 deletions react/css/src/digitv2/components/menuCardV2.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,25 @@

.digit-menuacard-menuName {
@extend .typography.heading-m;
font-family: theme(digitv2.fontFamily.sans);
font-style: theme(digitv2.fontStyle.normal);
font-weight: theme(digitv2.fontWeight.bold);
line-height: theme(digitv2.lineHeight.lineheight1);
Swathi-eGov marked this conversation as resolved.
Show resolved Hide resolved

@media (max-aspect-ratio: 9/16) {
/* Media query for mobile */
font-size: theme(digitv2.fontSize.heading-m.mobile);
}

@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
/* Media query for tablets */
font-size: theme(digitv2.fontSize.heading-m.tablet);
}

@media (min-aspect-ratio: 3/4) {
/* Media query for desktop */
font-size: theme(digitv2.fontSize.heading-m.desktop);
}
line-height: normal;
color: theme(digitv2.lightTheme.primary-2);
}
Expand Down
83 changes: 78 additions & 5 deletions react/css/src/digitv2/components/multiSelectDropdownV2.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
@extend .typography.body-l;
@apply absolute top-0 left-0 p-sm min-h-full min-w-full opacity-0;
letter-spacing: theme(digitv2.spacers.spacer0);
padding-left: 1%;
&:focus {
@apply outline-none;
}
Expand Down Expand Up @@ -100,6 +101,25 @@
}
.digit-category-name {
@extend .typography.heading-s;
font-family: theme(digitv2.fontFamily.sans);
font-style: theme(digitv2.fontStyle.normal);
font-weight: theme(digitv2.fontWeight.bold);
line-height: theme(digitv2.lineHeight.lineheight1);

@media (max-aspect-ratio: 9/16) {
/* Media query for mobile */
font-size: theme(digitv2.fontSize.heading-s.mobile);
}

@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
/* Media query for tablets */
font-size: theme(digitv2.fontSize.heading-s.tablet);
}

@media (min-aspect-ratio: 3/4) {
/* Media query for desktop */
font-size: theme(digitv2.fontSize.heading-s.desktop);
}
color: theme(digitv2.lightTheme.text-primary);
}
.digit-category-selectAll {
Expand Down Expand Up @@ -201,6 +221,25 @@
border: 0.031rem solid theme(digitv2.lightTheme.primary-1);
p {
@extend .typography.heading-s;
font-family: theme(digitv2.fontFamily.sans);
font-style: theme(digitv2.fontStyle.normal);
font-weight: theme(digitv2.fontWeight.bold);
line-height: theme(digitv2.lineHeight.lineheight1);

@media (max-aspect-ratio: 9/16) {
/* Media query for mobile */
font-size: theme(digitv2.fontSize.heading-s.mobile);
}

@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
/* Media query for tablets */
font-size: theme(digitv2.fontSize.heading-s.tablet);
}

@media (min-aspect-ratio: 3/4) {
/* Media query for desktop */
font-size: theme(digitv2.fontSize.heading-s.desktop);
}
color: theme(digitv2.lightTheme.paper-primary);
}
.digit-label {
Expand Down Expand Up @@ -244,6 +283,25 @@
background: theme(digitv2.lightTheme.primary-1);
p {
@extend .typography.heading-s;
font-family: theme(digitv2.fontFamily.sans);
font-style: theme(digitv2.fontStyle.normal);
font-weight: theme(digitv2.fontWeight.bold);
line-height: theme(digitv2.lineHeight.lineheight1);

@media (max-aspect-ratio: 9/16) {
/* Media query for mobile */
font-size: theme(digitv2.fontSize.heading-s.mobile);
}

@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
/* Media query for tablets */
font-size: theme(digitv2.fontSize.heading-s.tablet);
}

@media (min-aspect-ratio: 3/4) {
/* Media query for desktop */
font-size: theme(digitv2.fontSize.heading-s.desktop);
}
color: theme(digitv2.lightTheme.paper-primary);
}
.digit-label {
Expand Down Expand Up @@ -327,6 +385,25 @@
.option-des-container {
p {
@extend .typography.heading-s;
font-family: theme(digitv2.fontFamily.sans);
font-style: theme(digitv2.fontStyle.normal);
font-weight: theme(digitv2.fontWeight.bold);
line-height: theme(digitv2.lineHeight.lineheight1);

@media (max-aspect-ratio: 9/16) {
/* Media query for mobile */
font-size: theme(digitv2.fontSize.heading-s.mobile);
}

@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
/* Media query for tablets */
font-size: theme(digitv2.fontSize.heading-s.tablet);
}

@media (min-aspect-ratio: 3/4) {
/* Media query for desktop */
font-size: theme(digitv2.fontSize.heading-s.desktop);
}
}
}
.digit-multiselectdropodwn-custom-checkbox {
Expand Down Expand Up @@ -386,14 +463,10 @@
.digit-multiselectdropdown-master-active {
.digit-multiselectdropdown-label {
p {
@extend .typography.body-l;
white-space: pre;
margin: auto;
margin-left: theme(digitv2.spacers.spacer0);
padding-left: 1%;
font-size: theme(digitv2.spacers.spacer4);
line-height: theme(digitv2.spacers.spacer6);
font-family: theme(digitv2.fontFamily.sans);
font-weight: theme(digitv2.fontWeight.regular);
text-align: left;
}
}
Expand Down
19 changes: 19 additions & 0 deletions react/css/src/digitv2/components/panelV2.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,25 @@

.digit-panel-response {
@extend .typography.heading-m;
font-family: theme(digitv2.fontFamily.sans);
font-style: theme(digitv2.fontStyle.normal);
font-weight: theme(digitv2.fontWeight.bold);
line-height: theme(digitv2.lineHeight.lineheight1);
Swathi-eGov marked this conversation as resolved.
Show resolved Hide resolved

@media (max-aspect-ratio: 9/16) {
/* Media query for mobile */
font-size: theme(digitv2.fontSize.heading-m.mobile);
}

@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
/* Media query for tablets */
font-size: theme(digitv2.fontSize.heading-m.tablet);
}

@media (min-aspect-ratio: 3/4) {
/* Media query for desktop */
font-size: theme(digitv2.fontSize.heading-m.desktop);
}
Swathi-eGov marked this conversation as resolved.
Show resolved Hide resolved
color: theme(digitv2.lightTheme.paper-primary);
line-height: normal;
}
Expand Down
Loading