diff --git a/react/css/CHANGELOG.md b/react/css/CHANGELOG.md index ca5d6ff838..5a64f5a202 100644 --- a/react/css/CHANGELOG.md +++ b/react/css/CHANGELOG.md @@ -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 diff --git a/react/css/package.json b/react/css/package.json index 1903c6f465..56a0c1bf09 100644 --- a/react/css/package.json +++ b/react/css/package.json @@ -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 ", diff --git a/react/css/src/digitv2/components/accordionV2.scss b/react/css/src/digitv2/components/accordionV2.scss index 56eafc57d1..00f096f2b1 100644 --- a/react/css/src/digitv2/components/accordionV2.scss +++ b/react/css/src/digitv2/components/accordionV2.scss @@ -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); + } color: theme(digitv2.lightTheme.text-primary); min-width: theme(digitv2.spacers.spacer6); height: theme(digitv2.spacers.spacer6); @@ -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; diff --git a/react/css/src/digitv2/components/checkboxV2.scss b/react/css/src/digitv2/components/checkboxV2.scss index 0a5a3095ba..3f5ab2e8a5 100644 --- a/react/css/src/digitv2/components/checkboxV2.scss +++ b/react/css/src/digitv2/components/checkboxV2.scss @@ -26,14 +26,18 @@ @apply opacity-0; } - svg{ + svg { flex-shrink: 0; } &:hover { - @apply border-2 ; + @apply border-2; border-color: theme(digitv2.lightTheme.primary-1); } + + &.intermediate { + border: 0.125rem solid theme(digitv2.lightTheme.primary-1); + } } .digit-custom-checkbox-emp { @@ -45,6 +49,10 @@ border-color: theme(digitv2.lightTheme.primary-1); } + input:hover~.digit-custom-checkbox.intermediate{ + border: 0.125rem solid theme(digitv2.lightTheme.primary-1); + } + input:checked~.digit-custom-checkbox { border: 0.125rem solid theme(digitv2.lightTheme.primary-1); } @@ -60,6 +68,13 @@ height: theme(digitv2.spacers.spacer4); } + .intermediate-square { + width: theme(digitv2.spacers.spacer4); + height: theme(digitv2.spacers.spacer4); + background-color: theme(digitv2.lightTheme.primary-1); + display: block; + } + .label { @extend .typography.body-s; font-family: theme(digitv2.fontFamily.sans); @@ -81,6 +96,7 @@ /* Media query for desktop */ font-size: theme(digitv2.fontSize.body-s.desktop); } + @apply text-left; word-break: break-word; letter-spacing: theme(digitv2.spacers.spacer0); @@ -97,5 +113,16 @@ input:checked~.digit-custom-checkbox { border: 0.125rem solid theme(digitv2.lightTheme.text-disabled); } + + .digit-custom-checkbox.intermediate{ + border: 0.125rem solid theme(digitv2.lightTheme.text-disabled); + } + + .intermediate-square { + width: theme(digitv2.spacers.spacer4); + height: theme(digitv2.spacers.spacer4); + background-color: theme(digitv2.lightTheme.text-disabled); + display: block; + } } } \ No newline at end of file diff --git a/react/css/src/digitv2/components/formCardV2.scss b/react/css/src/digitv2/components/formCardV2.scss new file mode 100644 index 0000000000..9f9f23961e --- /dev/null +++ b/react/css/src/digitv2/components/formCardV2.scss @@ -0,0 +1,202 @@ +.digit-form-card{ + width: 100%; + max-width: 100%; + height: fit-content; + background-color: theme(digitv2.lightTheme.paper-primary); + display: flex; + flex-direction: column; + + .digit-form-card-header { + @apply flex-col; + display: flex !important; + gap: theme(digitv2.spacers.spacer4); + + &.with-shadow { + box-shadow: theme(digitv2.spacers.spacer0) 0.063rem 0.125rem theme(digitv2.spacers.spacer0) #00000026; + } + + @media (min-width: 48rem) { + padding: theme(digitv2.spacers.spacer6); + padding-bottom: theme(digitv2.spacers.spacer0); + + &.with-shadow { + padding-bottom: theme(digitv2.spacers.spacer6); + } + } + + @media (min-width: 30.063rem) and (max-width: 47.938rem) { + padding: theme(digitv2.spacers.spacer5); + padding-bottom: theme(digitv2.spacers.spacer0); + + &.with-shadow { + padding-bottom: theme(digitv2.spacers.spacer5); + } + } + + @media (max-width: 30rem) { + padding: theme(digitv2.spacers.spacer4); + padding-bottom: theme(digitv2.spacers.spacer0); + + &.with-shadow { + padding-bottom: theme(digitv2.spacers.spacer4); + } + } + + } + + .digit-form-card-content { + @extend .typography.body-s; + position: relative; + font-family: theme(digitv2.fontFamily.sans); + font-style: theme(digitv2.fontStyle.normal); + font-weight: theme(digitv2.fontWeight.regular); + line-height: theme(digitv2.lineHeight.lineheight2); + + @media (max-aspect-ratio: 9/16) { + /* Media query for mobile */ + font-size: theme(digitv2.fontSize.body-s.mobile); + } + + @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) { + /* Media query for tablets */ + font-size: theme(digitv2.fontSize.body-s.tablet); + } + + @media (min-aspect-ratio: 3/4) { + /* Media query for desktop */ + font-size: theme(digitv2.fontSize.body-s.desktop); + } + @apply overflow-hidden overflow-y-auto flex-col; + display: flex; + flex: 1; + color: theme(digitv2.lightTheme.text-primary); + + &.inline { + flex-direction: row; + } + + @media (min-width: 48rem) { + gap: theme(digitv2.spacers.spacer6); + padding: theme(digitv2.spacers.spacer6) theme(digitv2.spacers.spacer6) theme(digitv2.spacers.spacer0) theme(digitv2.spacers.spacer6); + + &.with-shadow, + &.without-footer{ + padding: theme(digitv2.spacers.spacer6); + } + + } + + @media (min-width: 30.063rem) and (max-width: 47.938rem) { + gap: theme(digitv2.spacers.spacer5); + padding: theme(digitv2.spacers.spacer5) theme(digitv2.spacers.spacer5) theme(digitv2.spacers.spacer0) theme(digitv2.spacers.spacer5); + + &.with-shadow, + &.without-footer{ + padding: theme(digitv2.spacers.spacer5); + } + + } + + @media (max-width: 30rem) { + gap: theme(digitv2.spacers.spacer4); + padding: theme(digitv2.spacers.spacer4) theme(digitv2.spacers.spacer4) theme(digitv2.spacers.spacer0) theme(digitv2.spacers.spacer4); + + &.with-shadow, + &.without-footer{ + padding: theme(digitv2.spacers.spacer4); + } + } + + .digit-label-field-pair { + margin-bottom: unset; + } + + .digit-radio-options-wrap { + margin-bottom: unset; + } + } + + .digit-form-card-footer { + @apply flex-wrap; + display: flex; + gap: theme(digitv2.spacers.spacer4); + + &.with-shadow { + box-shadow: theme(digitv2.spacers.spacer0) -0.063rem 0.125rem theme(digitv2.spacers.spacer0) #00000026; + } + + @media (min-width: 48rem) { + padding: theme(digitv2.spacers.spacer6); + } + + @media (min-width: 30.063rem) and (max-width: 47.938rem) { + @apply w-full; + padding: theme(digitv2.spacers.spacer5); + } + + @media (max-width: 30rem) { + @apply flex-col; + padding: theme(digitv2.spacers.spacer4); + } + + + .digit-form-card-buttons { + margin-left: auto; + display: flex; + gap: theme(digitv2.spacers.spacer4); + @apply max-w-full flex-wrap; + + @media (min-width: 30.063rem) and (max-width: 47.938rem) { + @apply w-full; + + button { + flex: 1; + } + } + + @media (max-width: 30rem) { + @apply flex-col; + margin: theme(digitv2.spacers.spacer0); + + button { + width: 100%; + } + } + + &.equal-buttons{ + width: 100%; + + @media (min-width: 30.063rem) { + + button { + flex: 1; + } + } + } + } + } + + .vertical-formcard-divider{ + position: absolute; + + @media (max-aspect-ratio: 9/16) { + /* Media query for mobile */ + top: theme(digitv2.spacers.spacer4); + height: calc(100% - 2rem); + } + + @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) { + /* Media query for tablets */ + top: theme(digitv2.spacers.spacer5); + height: calc(100% - 2.5rem); + } + + @media (min-aspect-ratio: 3/4) { + /* Media query for desktop */ + top: theme(digitv2.spacers.spacer6); + height: calc(100% - 3rem); + } + border: 0.063rem solid theme(digitv2.lightTheme.generic-divider); + z-index: 1; + } +} \ No newline at end of file diff --git a/react/css/src/digitv2/components/landingpagecardV2.scss b/react/css/src/digitv2/components/landingpagecardV2.scss index aef6f7f988..728df1d158 100644 --- a/react/css/src/digitv2/components/landingpagecardV2.scss +++ b/react/css/src/digitv2/components/landingpagecardV2.scss @@ -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%; @@ -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); + } color: theme(digitv2.lightTheme.primary-2); overflow: hidden; word-wrap: break-word; @@ -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); + } color: theme(digitv2.lightTheme.text-primary); } @@ -149,6 +188,11 @@ justify-content: flex-start; } + @media (max-aspect-ratio: 9/16) { + /* Media query for mobile */ + width: 100%; + } + } .digit-landingpage-divider { diff --git a/react/css/src/digitv2/components/menuCardV2.scss b/react/css/src/digitv2/components/menuCardV2.scss index 78de76da04..80b8357b67 100644 --- a/react/css/src/digitv2/components/menuCardV2.scss +++ b/react/css/src/digitv2/components/menuCardV2.scss @@ -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); + + @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); } diff --git a/react/css/src/digitv2/components/metricCardV2.scss b/react/css/src/digitv2/components/metricCardV2.scss new file mode 100644 index 0000000000..2e8ce147f1 --- /dev/null +++ b/react/css/src/digitv2/components/metricCardV2.scss @@ -0,0 +1,151 @@ +.digit-metric-card { + position: relative; + @media (max-aspect-ratio: 9/16) { + /* Media query for mobile */ + gap: theme(digitv2.spacers.spacer4); + } + + @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) { + /* Media query for tablets */ + gap: theme(digitv2.spacers.spacer5); + } + + @media (min-aspect-ratio: 3/4) { + /* Media query for desktop */ + gap: theme(digitv2.spacers.spacer6); + } + + .metric-divider{ + margin: theme(digitv2.spacers.spacer0); + } + + .vertical-metric-divider{ + position: absolute; + + @media (max-aspect-ratio: 9/16) { + /* Media query for mobile */ + top: theme(digitv2.spacers.spacer4); + height: calc(100% - 2rem); + } + + @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) { + /* Media query for tablets */ + top: theme(digitv2.spacers.spacer5); + height: calc(100% - 2.5rem); + } + + @media (min-aspect-ratio: 3/4) { + /* Media query for desktop */ + top: theme(digitv2.spacers.spacer6); + height: calc(100% - 3rem); + } + border: 0.063rem solid theme(digitv2.lightTheme.generic-divider); + z-index: 1; + } +} + +.metric-item { + background-color: transparent; + display: flex; + align-items: center; + justify-content: center; + flex-direction: column; + gap: theme(digitv2.spacers.spacer1); + padding: theme(digitv2.spacers.spacer4); + + .metric-value { + @extend .typography.heading-l; + color: theme(digitv2.lightTheme.primary-2); + line-height: normal; + } + + .metric-description { + @extend .typography.body-s; + text-align: center; + color: theme(digitv2.lightTheme.text-primary); + + @media (max-aspect-ratio: 9/16) { + /* Media query for mobile */ + font-size: theme(digitv2.fontSize.body-s.mobile); + font-family: theme(digitv2.fontFamily.sans); + font-style: theme(digitv2.fontStyle.normal); + font-weight: theme(digitv2.fontWeight.regular); + line-height: theme(digitv2.lineHeight.lineheight2); + } + + @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) { + /* Media query for tablets */ + font-size: theme(digitv2.fontSize.body-s.tablet); + font-family: theme(digitv2.fontFamily.sans); + font-style: theme(digitv2.fontStyle.normal); + font-weight: theme(digitv2.fontWeight.regular); + line-height: theme(digitv2.lineHeight.lineheight2); + } + + @media (min-aspect-ratio: 3/4) { + /* Media query for desktop */ + font-size: theme(digitv2.fontSize.body-s.desktop); + font-family: theme(digitv2.fontFamily.sans); + font-style: theme(digitv2.fontStyle.normal); + font-weight: theme(digitv2.fontWeight.regular); + line-height: theme(digitv2.lineHeight.lineheight2); + } + } + + .metric-status { + @extend .typography.body-xs; + display: flex; + text-align: center; + align-items: center; + justify-content: center; + gap: theme(digitv2.spacers.spacer1); + + @media (max-aspect-ratio: 9/16) { + /* Media query for mobile */ + font-size: theme(digitv2.fontSize.body-xs.mobile); + font-family: theme(digitv2.fontFamily.sans); + font-style: theme(digitv2.fontStyle.normal); + font-weight: theme(digitv2.fontWeight.regular); + line-height: theme(digitv2.lineHeight.lineheight2); + } + + @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) { + /* Media query for tablets */ + font-size: theme(digitv2.fontSize.body-xs.tablet); + font-family: theme(digitv2.fontFamily.sans); + font-style: theme(digitv2.fontStyle.normal); + font-weight: theme(digitv2.fontWeight.regular); + line-height: theme(digitv2.lineHeight.lineheight2); + } + + @media (min-aspect-ratio: 3/4) { + /* Media query for desktop */ + font-size: theme(digitv2.fontSize.body-xs.desktop); + font-family: theme(digitv2.fontFamily.sans); + font-style: theme(digitv2.fontStyle.normal); + font-weight: theme(digitv2.fontWeight.regular); + line-height: theme(digitv2.lineHeight.lineheight2); + } + + + svg { + flex-shrink: 0; + width: theme(digitv2.spacers.spacer4); + height: theme(digitv2.spacers.spacer4); + } + + color: theme(digitv2.lightTheme.primary-1); + + &.Increased { + color: theme(digitv2.lightTheme.alert-success); + } + + &.Decreased { + color: theme(digitv2.lightTheme.alert-error); + } + + &.Nochange { + color: theme(digitv2.lightTheme.alert-info); + } + } +} \ No newline at end of file diff --git a/react/css/src/digitv2/components/mobilesidebarV2.scss b/react/css/src/digitv2/components/mobilesidebarV2.scss index 40a242c136..91290c2bda 100644 --- a/react/css/src/digitv2/components/mobilesidebarV2.scss +++ b/react/css/src/digitv2/components/mobilesidebarV2.scss @@ -207,7 +207,7 @@ transition: height 0.3s ease; .digit-inner-level-child { - margin-left: 3.5rem; + margin-left: 2.25rem; border-left: 0.063rem solid theme(digitv2.lightTheme.generic-divider); &.dark { @@ -414,7 +414,7 @@ margin-right: theme(digitv2.spacers.spacer3); width: theme(digitv2.spacers.spacer6); height: theme(digitv2.spacers.spacer6); - margin-left: theme(digitv2.spacers.spacer7); + margin-left: theme(digitv2.spacers.spacer6); } .digit-item-label-msb { diff --git a/react/css/src/digitv2/components/multiSelectDropdownV2.scss b/react/css/src/digitv2/components/multiSelectDropdownV2.scss index d7cd0da0a7..21f74f0721 100644 --- a/react/css/src/digitv2/components/multiSelectDropdownV2.scss +++ b/react/css/src/digitv2/components/multiSelectDropdownV2.scss @@ -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; } @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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; } } diff --git a/react/css/src/digitv2/components/otpInputV2.scss b/react/css/src/digitv2/components/otpInputV2.scss index 4e3dfa5400..cbca1de24a 100644 --- a/react/css/src/digitv2/components/otpInputV2.scss +++ b/react/css/src/digitv2/components/otpInputV2.scss @@ -1,5 +1,5 @@ .digit-label-otp-wrapper { - display: flex; + display: flex !important; align-items: center; flex-direction: column; gap: theme(digitv2.spacers.spacer4); @@ -16,9 +16,9 @@ } .otp-input-container { - display: flex; justify-content: center; gap: theme(digitv2.spacers.spacer3); + display: flex !important; } @@ -27,7 +27,7 @@ align-items: center; justify-content: center; gap:theme(digitv2.spacers.spacer2); - flex-direction: column; + flex-direction: column !important; .digit-error-icon-message-wrap { width: fit-content; diff --git a/react/css/src/digitv2/components/panelV2.scss b/react/css/src/digitv2/components/panelV2.scss index 73fb113110..7f15e63082 100644 --- a/react/css/src/digitv2/components/panelV2.scss +++ b/react/css/src/digitv2/components/panelV2.scss @@ -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); + + @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); + } color: theme(digitv2.lightTheme.paper-primary); line-height: normal; } diff --git a/react/css/src/digitv2/components/popUpV2.scss b/react/css/src/digitv2/components/popUpV2.scss index 97c6dda120..5594455a62 100644 --- a/react/css/src/digitv2/components/popUpV2.scss +++ b/react/css/src/digitv2/components/popUpV2.scss @@ -167,24 +167,31 @@ .digit-popup-description { @extend .typography.body-s; - font-family: theme(digitv2.fontFamily.sans); - font-style: theme(digitv2.fontStyle.normal); - font-weight: theme(digitv2.fontWeight.regular); - line-height: theme(digitv2.lineHeight.lineheight2); - @media (max-aspect-ratio: 9/16) { /* Media query for mobile */ font-size: theme(digitv2.fontSize.body-s.mobile); + font-family: theme(digitv2.fontFamily.sans); + font-style: theme(digitv2.fontStyle.normal); + font-weight: theme(digitv2.fontWeight.regular); + line-height: theme(digitv2.lineHeight.lineheight2); } @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) { /* Media query for tablets */ font-size: theme(digitv2.fontSize.body-s.tablet); + font-family: theme(digitv2.fontFamily.sans); + font-style: theme(digitv2.fontStyle.normal); + font-weight: theme(digitv2.fontWeight.regular); + line-height: theme(digitv2.lineHeight.lineheight2); } @media (min-aspect-ratio: 3/4) { /* Media query for desktop */ font-size: theme(digitv2.fontSize.body-s.desktop); + font-family: theme(digitv2.fontFamily.sans); + font-style: theme(digitv2.fontStyle.normal); + font-weight: theme(digitv2.fontWeight.regular); + line-height: theme(digitv2.lineHeight.lineheight2); } color: theme(digitv2.lightTheme.text-primary); } diff --git a/react/css/src/digitv2/components/selectDropdownV2.scss b/react/css/src/digitv2/components/selectDropdownV2.scss index 96e141c60d..6a2117f46f 100644 --- a/react/css/src/digitv2/components/selectDropdownV2.scss +++ b/react/css/src/digitv2/components/selectDropdownV2.scss @@ -56,7 +56,6 @@ @apply absolute z-10 h-full outline-none; width:calc(100%- (theme(digitv2.spacers.spacer7))); background-color: transparent; - font-size: theme(digitv2.spacers.spacer4); padding-top: theme(digitv2.spacers.spacer2); padding-bottom: theme(digitv2.spacers.spacer2); padding-left: theme(digitv2.spacers.spacer3); @@ -126,6 +125,25 @@ @apply flex items-center overflow-hidden whitespace-no-wrap; color: theme(digitv2.lightTheme.text-primary); gap: theme(digitv2.spacers.spacer1); + 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-dropdown-item { @apply flex flex-row; @@ -224,6 +242,25 @@ .option-des-container { .main-option { @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); + } } } } @@ -241,6 +278,25 @@ .option-des-container { .main-option { @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); } } @@ -260,6 +316,25 @@ .option-des-container { .main-option { @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); } } @@ -294,6 +369,7 @@ } } .digit-dropdown-employee-select-wrap--elipses { + @extend .typography.body-l; @apply overflow-hidden whitespace-no-wrap; width:calc(100%- (theme(digitv2.spacers.spacer7))); text-overflow: ellipsis; diff --git a/react/css/src/digitv2/components/sidebarV2.scss b/react/css/src/digitv2/components/sidebarV2.scss index 81800f2c98..94fc0f4460 100644 --- a/react/css/src/digitv2/components/sidebarV2.scss +++ b/react/css/src/digitv2/components/sidebarV2.scss @@ -236,6 +236,25 @@ .item-label { @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); } } diff --git a/react/css/src/digitv2/components/slideOverMenuV2.scss b/react/css/src/digitv2/components/slideOverMenuV2.scss new file mode 100644 index 0000000000..bcaeba5c17 --- /dev/null +++ b/react/css/src/digitv2/components/slideOverMenuV2.scss @@ -0,0 +1,185 @@ +.digit-slider-container { + position: fixed; + top: 0; + bottom: 0; + transition: transform 0.3s ease; + z-index: 1000; + overflow: hidden; + border: 0.063rem solid theme(digitv2.lightTheme.generic-divider); + background: #FAFAFA; + box-shadow: -0.125rem -0.25rem 0.356rem 0rem #00000026; + +} + +.digit-slider-container.left { + left: 0; + transform: translateX(-100%); + width: 18.75rem; +} + +.digit-slider-container.right { + right: 0; + transform: translateX(100%); + width: 18.75rem; +} + +.digit-slider-container.open.left, +.digit-slider-container.open.right { + transform: translateX(0); +} + +.digit-slider-container.closed { + width: 4rem; +} + +.digit-slider-container.closed.left { + transform: translateX(0); +} + +.digit-slider-container.closed.right { + transform: translateX(0); +} + + +.section-divider-wrapper { + display: flex; + flex-direction: column; + gap: theme(digitv2.spacers.spacer4); +} + +.slider-handler { + position: absolute; + top: 50%; + transform: translateY(-50%); + cursor: pointer; + padding-left: theme(digitv2.spacers.spacer1); + border-radius: 50%; + z-index: 1001; + display: flex; + gap:theme(digitv2.spacers.spacer1); + align-items: center; + + .scroll-bar { + height: 11.25rem; + width: theme(digitv2.spacers.spacer2); + border-radius: 0.563rem; + background-color: #D9D9D9; + + } + + .slider-handler-svg { + background: #FFFFFF; + box-shadow: 0rem 0.063rem 0.125rem 0rem #00000029; + width: theme(digitv2.spacers.spacer8); + height:theme(digitv2.spacers.spacer8); + + } + + &.dynamic { + &.left { + right: 0; + flex-direction: row-reverse; + } + } +} + +.slider-bg-active { + position: fixed; + top: 0; + left: 0; + backdrop-filter: blur(0.125rem); + -webkit-backdrop-filter: blur(0.125rem); + right: 0; + bottom: 0; + background: rgba(11, 12, 12, 0.7); + z-index: 999; +} + +.slider-content { + height: 100%; + display: flex; + flex-direction: column; +} + +.slider-header { + flex-shrink: 0; + padding: theme(digitv2.spacers.spacer4); + border-bottom: 0.063rem solid #d6d5d4; +} + +.slider-section { + display: flex; + flex-direction: column; + gap: theme(digitv2.spacers.spacer2); + flex-grow: 1; + +} + +.section-divider { + border-top: 0.063rem solid #d6d5d4; +} + +.slider-footer { + bottom: 0; + width: 100%; + z-index: 5; + padding: theme(digitv2.spacers.spacer4); + border-top: 0.063rem solid #d6d5d4; + position: relative; + flex-shrink: 0; +} + +.slider-body { + display: flex; + flex-grow: 1; + padding: theme(digitv2.spacers.spacer4); + gap: theme(digitv2.spacers.spacer4); + @extend .typography.body-s; + flex-direction: column; + color: theme(digitv2.lightTheme.text-primary); + overflow-y: auto; + overflow-x: hidden; + + @media (max-aspect-ratio: 9/16) { + /* Media query for mobile */ + font-size: theme(digitv2.fontSize.body-s.mobile); + font-family: theme(digitv2.fontFamily.sans); + font-style: theme(digitv2.fontStyle.normal); + font-weight: theme(digitv2.fontWeight.regular); + line-height: theme(digitv2.lineHeight.lineheight2); + } + + @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) { + /* Media query for tablets */ + font-size: theme(digitv2.fontSize.body-s.tablet); + font-family: theme(digitv2.fontFamily.sans); + font-style: theme(digitv2.fontStyle.normal); + font-weight: theme(digitv2.fontWeight.regular); + line-height: theme(digitv2.lineHeight.lineheight2); + } + + @media (min-aspect-ratio: 3/4) { + /* Media query for desktop */ + font-size: theme(digitv2.fontSize.body-s.desktop); + font-family: theme(digitv2.fontFamily.sans); + font-style: theme(digitv2.fontStyle.normal); + font-weight: theme(digitv2.fontWeight.regular); + line-height: theme(digitv2.lineHeight.lineheight2); + } +} + + +.slider-body::-webkit-scrollbar { + width: 0.375rem; + background-color: theme(digitv2.lightTheme.generic-background); +} + +.slider-body::-webkit-scrollbar-track { + background-color: theme(digitv2.lightTheme.generic-background); + border-radius: 0.563rem; +} + +.slider-body::-webkit-scrollbar-thumb { + background-color: theme(digitv2.lightTheme.generic-divider); + border-radius: 0.563rem; +} \ No newline at end of file diff --git a/react/css/src/digitv2/components/stepperV2.scss b/react/css/src/digitv2/components/stepperV2.scss index ee28328436..665ebbaa50 100644 --- a/react/css/src/digitv2/components/stepperV2.scss +++ b/react/css/src/digitv2/components/stepperV2.scss @@ -65,6 +65,25 @@ &.current { @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); + } line-height: 1.37rem; color: theme(digitv2.lightTheme.text-primary); } @@ -110,18 +129,18 @@ height: 0.125rem; @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) { - min-width: 6.313rem; + /*min-width: 6.313rem;*/ max-width: 39.438rem; } @media (max-aspect-ratio: 9/16) { - min-width: 4.313rem; + /*min-width: 4.313rem;*/ max-width: 16.875rem; top: 0.875rem; } @media (min-aspect-ratio: 3/4) { - min-width: 5.313rem; + /*min-width: 5.313rem;*/ max-width: 82.688rem; } @@ -170,6 +189,25 @@ .stepper-label { &.completed { @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); + } line-height: 1.37rem; color: theme(digitv2.lightTheme.text-primary); } diff --git a/react/css/src/digitv2/components/tabV2.scss b/react/css/src/digitv2/components/tabV2.scss index 4404f868b7..47d16d3fbb 100644 --- a/react/css/src/digitv2/components/tabV2.scss +++ b/react/css/src/digitv2/components/tabV2.scss @@ -80,6 +80,25 @@ .digit-tab-label { @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.primary-1); white-space: noWrap; overflow: hidden; diff --git a/react/css/src/digitv2/components/tableV2.scss b/react/css/src/digitv2/components/tableV2.scss new file mode 100644 index 0000000000..fdb11f2633 --- /dev/null +++ b/react/css/src/digitv2/components/tableV2.scss @@ -0,0 +1,697 @@ +.digit-table-footer-wrapper{ + display: flex; + flex-direction: column; +} + +.digit-table-container { + overflow: auto; + width: 100%; + position: relative; + max-height: 100vh; + max-width: 100%; + + &.withBorder { + border-radius: theme(digitv2.spacers.spacer1) theme(digitv2.spacers.spacer1) theme(digitv2.spacers.spacer0) theme(digitv2.spacers.spacer0); + border: 0.063rem solid theme(digitv2.lightTheme.generic-divider); + } + + .digit-cursorPointer { + width: 100%; + } +} + +.fixed-columns { + position: sticky; + overflow: hidden; + left: 0; + z-index: 2; + position: -webkit-sticky; + position: sticky; +} + +.scrollable-columns { + flex: 1; + /*overflow-x: auto;*/ + white-space: normal; + z-index: 1; +} + +table { + width: 100%; + border-collapse: collapse; + text-align: left; + overflow-x: auto; +} + +th { + @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.primary-2); + background-color: theme(digitv2.lightTheme.generic-background); + padding: theme(digitv2.spacers.spacer4); + min-width: 9.375rem; + word-wrap: break-word; + white-space: normal; + text-align: left; + width: fit-content; + + &.withBorder { + border-bottom: 0.063rem solid theme(digitv2.lightTheme.generic-divider); + } + + &.withColumnDivider { + border-right: 0.063rem solid theme(digitv2.lightTheme.generic-divider); + } + + &.scrollable-columns.withHeaderDivider { + position: relative; + + &::after { + content: ""; + position: absolute; + top: theme(digitv2.spacers.spacer4); + right: 0; + bottom: theme(digitv2.spacers.spacer4); + width: 0.063rem; + background-color: theme(digitv2.lightTheme.text-secondary); + } + } +} + +thead th.withHeaderDivider:last-child::after { + display: none; +} + +.sticky-header { + position: sticky; + top: 0; + z-index: 10; +} + +.hasDes{ + th{ + vertical-align: top; + } +} +td { + padding: theme(digitv2.spacers.spacer4); + word-wrap: break-word; + white-space: normal; + @extend .typography.body-s; + color: theme(digitv2.lightTheme.text-primary); + font-family: theme(digitv2.fontFamily.sans); + font-style: theme(digitv2.fontStyle.normal); + font-weight: theme(digitv2.fontWeight.regular); + line-height: theme(digitv2.lineHeight.lineheight2); + text-align: left; + vertical-align: top; + width: fit-content; + background-color: theme(digitv2.lightTheme.paper-primary); + + &.numeric, + &.serialno{ + text-align: right; + } + + @media (max-aspect-ratio: 9/16) { + /* Media query for mobile */ + font-size: theme(digitv2.fontSize.body-s.mobile); + } + + @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) { + /* Media query for tablets */ + font-size: theme(digitv2.fontSize.body-s.tablet); + } + + @media (min-aspect-ratio: 3/4) { + /* Media query for desktop */ + font-size: theme(digitv2.fontSize.body-s.desktop); + } + + &.withRowDivider { + border-bottom: 0.063rem solid theme(digitv2.lightTheme.generic-divider); + } + + &.withColumnDivider { + border-right: 0.063rem solid theme(digitv2.lightTheme.generic-divider); + } + + &.text, + &.textinput, + &.description, + &.multiselectdropdown, + &.dropdown, + &.custom, + &.checkbox, + &.tag, + &.switch{ + @media (max-aspect-ratio: 9/16) { + /* Media query for mobile */ + min-width: 9.375rem + } + + @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) { + /* Media query for tablets */ + min-width: 12.5rem; + } + + @media (min-aspect-ratio: 3/4) { + /* Media query for desktop */ + min-width: 12.5rem; + } + } + &.serialno, + &.numeric { + @media (max-aspect-ratio: 9/16) { + /* Media query for mobile */ + min-width: theme(digitv2.spacers.spacer10); + } + + @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) { + /* Media query for tablets */ + min-width: theme(digitv2.spacers.spacer10);; + } + + @media (min-aspect-ratio: 3/4) { + /* Media query for desktop */ + min-width: theme(digitv2.spacers.spacer10);; + } + } + &.button { + @media (max-aspect-ratio: 9/16) { + /* Media query for mobile */ + min-width: 9.375rem + } + + @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) { + /* Media query for tablets */ + min-width: 9.375rem; + } + + @media (min-aspect-ratio: 3/4) { + /* Media query for desktop */ + min-width: 9.375rem; + } + } +} + +tbody tr:last-child { + td { + border-bottom: none; + } +} + +tbody tr:nth-child(even).withAlternateBg td{ + background-color: theme(digitv2.lightTheme.paper-secondary); +} + +tbody tr.addHover{ + cursor: pointer; +} + +tbody tr.selected{ + td{ + background-color: theme(digitv2.lightTheme.primary-bg) !important; + } + + td:first-child::before{ + content: ''; + position: absolute; + top: 0.062rem; + left: 0; + bottom: 0.063rem; + width: theme(digitv2.spacers.spacer1); + background: theme(digitv2.lightTheme.primary-1); + border-top-right-radius: theme(digitv2.spacers.spacer1); + border-bottom-right-radius: theme(digitv2.spacers.spacer1); + } +} + +tbody tr.addHover:hover td{ + background-color: theme(digitv2.lightTheme.primary-bg) !important; +} + + +tfoot td { + @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); + background-color: theme(digitv2.lightTheme.generic-background); + padding: theme(digitv2.spacers.spacer4); + text-align: center; + width: 100%; + + &.withBorder { + border: 0.063rem solid theme(digitv2.lightTheme.generic-divider); + border-top:none; + } +} + +.footer-content { + display: flex; + justify-content: space-between; + align-items: center; +} + +.footer-pagination-container { + display: flex; + align-items: center; + gap: theme(digitv2.spacers.spacer2); + margin-left: auto; +} + +.pagination { + display: flex; + justify-content: center; + align-items: center; + gap: theme(digitv2.spacers.spacer2); +} + +.pagination-dropdown{ + padding: theme(digitv2.spacers.spacer1); + outline: none; + min-width: 4rem; + @extend .typography.body-s; + color: theme(digitv2.lightTheme.text-primary); + font-family: theme(digitv2.fontFamily.sans); + font-style: theme(digitv2.fontStyle.normal); + font-weight: theme(digitv2.fontWeight.regular); + line-height: theme(digitv2.lineHeight.lineheight2); + + @media (max-aspect-ratio: 9/16) { + /* Media query for mobile */ + font-size: theme(digitv2.fontSize.body-s.mobile); + } + + @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) { + /* Media query for tablets */ + font-size: theme(digitv2.fontSize.body-s.tablet); + } + + @media (min-aspect-ratio: 3/4) { + /* Media query for desktop */ + font-size: theme(digitv2.fontSize.body-s.desktop); + } + + option{ + width: 100%; + text-align: center; + @extend .typography.body-s; + color: theme(digitv2.lightTheme.text-primary); + font-family: theme(digitv2.fontFamily.sans); + font-style: theme(digitv2.fontStyle.normal); + font-weight: theme(digitv2.fontWeight.regular); + line-height: theme(digitv2.lineHeight.lineheight2); + + @media (max-aspect-ratio: 9/16) { + /* Media query for mobile */ + font-size: theme(digitv2.fontSize.body-s.mobile); + } + + @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) { + /* Media query for tablets */ + font-size: theme(digitv2.fontSize.body-s.tablet); + } + + @media (min-aspect-ratio: 3/4) { + /* Media query for desktop */ + font-size: theme(digitv2.fontSize.body-s.desktop); + } + } +} + + +.pagination button { + border: 0.063 solid theme(digitv2.lightTheme.generic-divider); + cursor: pointer; + width: theme(digitv2.spacers.spacer6); + height: theme(digitv2.spacers.spacer6); +} + +.pagination button:disabled { + cursor: not-allowed; +} + +.pagination span { + font-weight: normal; + margin: 0 10px; +} + +tr th:last-child { + &.withColumnDivider { + border-right: none; + } +} + +tr td:last-child { + &.withColumnDivider { + border-right: none; + } +} + +.sticky-footer-content { + position: sticky; + display: flex; + z-index: 10; + + &.scrollable{ + overflow-x: auto; + } + + td { + text-align: right; + background-color: theme(digitv2.lightTheme.paper-secondary); + color: theme(digitv2.lightTheme.primary-2); + overflow-x: auto; + } +} + +.sort-icon{ + width: theme(digitv2.spacers.spacer4); + height: theme(digitv2.spacers.spacer4); + cursor: pointer; +} +.footer-pagination-content{ + display: flex; +} + +.digit-table-footer{ + max-width: 100%; + overflow-x: hidden !important; + width: 100%; + flex: 1; +} +.sticky-footer { + position: sticky; + bottom: 0; + z-index: 10; +} + +.digit-table-card { + + .digit-text-block-wrap .digit-text-block-header-content .digit-text-block-subheader.table-header { + color: theme(digitv2.lightTheme.text-primary) + } +} + +.selected-state { + @extend .typography.body-s; + color: theme(digitv2.lightTheme.text-primary); + font-family: theme(digitv2.fontFamily.sans); + font-style: theme(digitv2.fontStyle.normal); + font-weight: theme(digitv2.fontWeight.regular); + line-height: theme(digitv2.lineHeight.lineheight2); + text-align: left; + vertical-align: top; + + @media (max-aspect-ratio: 9/16) { + /* Media query for mobile */ + font-size: theme(digitv2.fontSize.body-s.mobile); + } + + @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) { + /* Media query for tablets */ + font-size: theme(digitv2.fontSize.body-s.tablet); + } + + @media (min-aspect-ratio: 3/4) { + /* Media query for desktop */ + font-size: theme(digitv2.fontSize.body-s.desktop); + } +} + +.header-des-wrap { + display: flex; + flex-direction: column; + gap: theme(digitv2.spacers.spacer1); + + .column-header{ + @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); + } + white-space: nowrap; + display: flex; + align-items: center; + gap:theme(digitv2.spacers.spacer1); + } + + .column-description { + color: theme(digitv2.lightTheme.text-secondary); + white-space: nowrap; + @extend .typography.body-s; + font-family: theme(digitv2.fontFamily.sans); + font-style: theme(digitv2.fontStyle.normal); + font-weight: theme(digitv2.fontWeight.regular); + line-height: theme(digitv2.lineHeight.lineheight2); + + @media (max-aspect-ratio: 9/16) { + /* Media query for mobile */ + font-size: theme(digitv2.fontSize.body-s.mobile); + } + + @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) { + /* Media query for tablets */ + font-size: theme(digitv2.fontSize.body-s.tablet); + } + + @media (min-aspect-ratio: 3/4) { + /* Media query for desktop */ + font-size: theme(digitv2.fontSize.body-s.desktop); + } + } +} + +.table-header-wrapper { + display: flex; + flex-direction: column; + gap: theme(digitv2.spacers.spacer2); + + .header-filter-wrapper{ + display: flex; + align-items: center; + justify-content: space-between; + + svg{ + flex-shrink: 0; + margin-left:auto; + cursor: pointer; + } + + .table-header { + @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); + } + color: theme(digitv2.lightTheme.text-primary); + line-height: normal; + } + + + } + + .table-description { + @extend .typography.body-s; + font-family: theme(digitv2.fontFamily.sans); + font-style: theme(digitv2.fontStyle.normal); + font-weight: theme(digitv2.fontWeight.regular); + line-height: theme(digitv2.lineHeight.lineheight2); + + @media (max-aspect-ratio: 9/16) { + /* Media query for mobile */ + font-size: theme(digitv2.fontSize.body-s.mobile); + } + + @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) { + /* Media query for tablets */ + font-size: theme(digitv2.fontSize.body-s.tablet); + } + + @media (min-aspect-ratio: 3/4) { + /* Media query for desktop */ + font-size: theme(digitv2.fontSize.body-s.desktop); + } + + color: theme(digitv2.lightTheme.generic-inputborder); + } +} + +.sticker-footer-td::-webkit-scrollbar { + height: 0.5rem; + background-color: theme(digitv2.lightTheme.generic-background); +} + +.sticker-footer-td::-webkit-scrollbar-track { + background-color: theme(digitv2.lightTheme.generic-background); + border-radius: 0.563rem; +} + +.sticker-footer-td::-webkit-scrollbar-thumb { + background-color: theme(digitv2.lightTheme.generic-divider); + border-radius: 0.563rem; +} + +.digit-table-container::-webkit-scrollbar { + height: 0.5rem; + background-color: theme(digitv2.lightTheme.generic-background); +} + +.digit-table-container::-webkit-scrollbar-track { + background-color: theme(digitv2.lightTheme.generic-background); + border-radius: 0.563rem; +} + +.digit-table-container::-webkit-scrollbar-thumb { + background-color: theme(digitv2.lightTheme.generic-divider); + border-radius: 0.563rem; +} + +.digit-table-container::-webkit-scrollbar:vertical { + width: 0rem; + background-color: transparent; +} + +.digit-table-container::-webkit-scrollbar-track:vertical { + background-color: transparent; + border-radius: 0.563rem; +} + +.digit-table-container::-webkit-scrollbar-thumb:vertical { + background-color: transparent; + border-radius: 0.563rem; +} + +.table-checkbox { + margin: theme(digitv2.spacers.spacer0); + + input { + margin: theme(digitv2.spacers.spacer0); + } + + p { + margin: theme(digitv2.spacers.spacer0); + } +} + + +.selection-state-wrapper{ + display: flex; + justify-content: space-between; + align-items: center; + flex-wrap: wrap; + gap: theme(digitv2.spacers.spacer2); + + .svg-state-wrapper{ + + display: flex; + align-items: center; + gap: theme(digitv2.spacers.spacer2); + + svg{ + flex-shrink: 0 + } + + .selected-state{ + @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.primary-2); + } + } + + +} + +.digit-table-container{ + .digit-table-footer { + position: sticky; + bottom: 0; + width: 100%; + z-index: 10; + } +} diff --git a/react/css/src/digitv2/components/textblockV2.scss b/react/css/src/digitv2/components/textblockV2.scss index a8aacec288..383f1524fa 100644 --- a/react/css/src/digitv2/components/textblockV2.scss +++ b/react/css/src/digitv2/components/textblockV2.scss @@ -35,6 +35,25 @@ .digit-text-block-subheader { @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); + } color: theme(digitv2.lightTheme.text-secondary); line-height: normal; } diff --git a/react/css/src/digitv2/components/timelineV2.scss b/react/css/src/digitv2/components/timelineV2.scss index 42c3e9ad50..a4b1739abc 100644 --- a/react/css/src/digitv2/components/timelineV2.scss +++ b/react/css/src/digitv2/components/timelineV2.scss @@ -56,6 +56,25 @@ .timeline-label { @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); + } @apply whitespace-normal h-auto text-left; color: theme(digitv2.lightTheme.text-primary); word-break: break-word; diff --git a/react/css/src/digitv2/components/toggleV2.scss b/react/css/src/digitv2/components/toggleV2.scss index b625779123..fa3b0af960 100644 --- a/react/css/src/digitv2/components/toggleV2.scss +++ b/react/css/src/digitv2/components/toggleV2.scss @@ -46,6 +46,25 @@ input:checked+.digit-toggle-label { @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); + } background-color: theme(digitv2.lightTheme.primary-1); color: theme(digitv2.lightTheme.paper-primary) !important; } @@ -57,6 +76,25 @@ .digit-toggle-label { @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); } } diff --git a/react/css/src/digitv2/components/tooltipwrapperV2.scss b/react/css/src/digitv2/components/tooltipwrapperV2.scss index cabbae238c..5a52470560 100644 --- a/react/css/src/digitv2/components/tooltipwrapperV2.scss +++ b/react/css/src/digitv2/components/tooltipwrapperV2.scss @@ -40,6 +40,25 @@ .tooltip-header{ @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); } diff --git a/react/css/src/digitv2/components/topbarV2.scss b/react/css/src/digitv2/components/topbarV2.scss index 1f46324db8..0ef705372b 100644 --- a/react/css/src/digitv2/components/topbarV2.scss +++ b/react/css/src/digitv2/components/topbarV2.scss @@ -277,6 +277,25 @@ .digit-topbar-ulb { @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); + } @apply whitespace-no-wrap overflow-hidden; color: theme(digitv2.lightTheme.text-primary); text-overflow: ellipsis; diff --git a/react/css/src/digitv2/components/treeSelectV2.scss b/react/css/src/digitv2/components/treeSelectV2.scss index eb1b0aa06f..bfe4f0f012 100644 --- a/react/css/src/digitv2/components/treeSelectV2.scss +++ b/react/css/src/digitv2/components/treeSelectV2.scss @@ -26,6 +26,25 @@ &.expanded { .digit-option-label { @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); /*font-size: 1rem; font-weight: theme(digitv2.fontWeight.bold); @@ -111,6 +130,25 @@ } .digit-option-label { @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); } } diff --git a/react/css/src/digitv2/components/uploaderV2.scss b/react/css/src/digitv2/components/uploaderV2.scss index bc39ca3f42..860317de20 100644 --- a/react/css/src/digitv2/components/uploaderV2.scss +++ b/react/css/src/digitv2/components/uploaderV2.scss @@ -72,6 +72,10 @@ gap:theme(digitv2.spacers.spacer1); } + &.inline{ + flex-direction: row; + } + .digit-upload-label { @extend .typography.label; @apply text-left; @@ -428,6 +432,25 @@ .uploaded-file-details { @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-secondary); } @@ -596,6 +619,25 @@ .capture-heading { @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); + } @apply items-center; color: #000000; display: flex; @@ -630,4 +672,27 @@ to { transform: translateY(0); } -} \ No newline at end of file +} + + +.digit-upload-file-composer-wrapper{ + display: flex; + flex-direction: column; + + @media (min-width: 30.063rem) and (max-width: 47.938rem) { + gap:theme(digitv2.spacers.spacer5); + } + + @media (max-width: 30rem) { + gap:theme(digitv2.spacers.spacer4); + } + + @media (min-width: 48rem) { + gap:theme(digitv2.spacers.spacer6); + } + + .upload-filecomposer-header{ + color: theme(digitv2.lightTheme.text-primary) !important; + } + +} diff --git a/react/css/src/digitv2/components/viewCardFieldPairV2.scss b/react/css/src/digitv2/components/viewCardFieldPairV2.scss index 96daef137c..2bb7e025f8 100644 --- a/react/css/src/digitv2/components/viewCardFieldPairV2.scss +++ b/react/css/src/digitv2/components/viewCardFieldPairV2.scss @@ -7,6 +7,25 @@ .digit-viewcard-label{ @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); + } @apply whitespace-pre-wrap break-words w-full; word-break: break-word; color: theme(digitv2.lightTheme.text-primary); diff --git a/react/css/src/digitv2/index.scss b/react/css/src/digitv2/index.scss index 43dda570db..1ab3ed9c83 100644 --- a/react/css/src/digitv2/index.scss +++ b/react/css/src/digitv2/index.scss @@ -46,6 +46,10 @@ @import url("./components/landingpagecardV2.scss"); @import url("./components/menuCardV2.scss"); @import url("./components/otpInputV2.scss"); +@import url("./components/tableV2.scss"); +@import url("./components/slideOverMenuV2.scss"); +@import url("./components/metricCardV2.scss"); +@import url("./components/formCardV2.scss"); /* pages */ @import url("./pages/employee/index.scss"); diff --git a/react/example/package.json b/react/example/package.json index bbb3563ce9..648ba01ca6 100644 --- a/react/example/package.json +++ b/react/example/package.json @@ -10,7 +10,7 @@ "build": "webpack --mode production" }, "dependencies": { - "@egovernments/digit-ui-components": "0.0.2-beta.41", + "@egovernments/digit-ui-components": "0.0.2-beta.42", "@egovernments/digit-ui-libraries": "1.8.2-beta.1", "@egovernments/digit-ui-module-common": "1.7.10", "@egovernments/digit-ui-module-core": "1.8.1-beta.6", diff --git a/react/example/public/index.html b/react/example/public/index.html index 8398a371db..fa8d0bd778 100644 --- a/react/example/public/index.html +++ b/react/example/public/index.html @@ -9,7 +9,7 @@ rel='stylesheet' type='text/css'> diff --git a/react/modules/core/package.json b/react/modules/core/package.json index ccff020c9f..2e18d205b1 100644 --- a/react/modules/core/package.json +++ b/react/modules/core/package.json @@ -14,7 +14,7 @@ "prepublish": "yarn build" }, "dependencies": { - "@egovernments/digit-ui-components": "0.0.2-beta.41", + "@egovernments/digit-ui-components": "0.0.2-beta.42", "@egovernments/digit-ui-react-components": "1.8.1-beta.4", "react": "17.0.2", "react-dom": "17.0.2", diff --git a/react/modules/sample/package.json b/react/modules/sample/package.json index ae54ccfcd1..62923da3bc 100644 --- a/react/modules/sample/package.json +++ b/react/modules/sample/package.json @@ -19,7 +19,7 @@ }, "dependencies": { "@egovernments/digit-ui-react-components": "1.8.1-beta.4", - "@egovernments/digit-ui-components": "0.0.2-beta.41", + "@egovernments/digit-ui-components": "0.0.2-beta.42", "react": "17.0.2", "react-date-range": "^1.4.0", "react-dom": "17.0.2", diff --git a/react/package.json b/react/package.json index 51c3d4bd1f..b10e0e459e 100644 --- a/react/package.json +++ b/react/package.json @@ -79,13 +79,13 @@ "@babel/plugin-syntax-jsx": "^7.24.1", "@babel/preset-react": "^7.24.1", "@egovernments/digit-ui-libraries": "1.8.2-beta.1", - "@egovernments/digit-ui-components-css":"0.0.2-beta.35", + "@egovernments/digit-ui-components-css":"0.0.2-beta.36", "@egovernments/digit-ui-module-core": "1.8.1-beta.6", "@egovernments/digit-ui-module-project": "0.3.4", "@egovernments/digit-ui-module-sample": "0.0.1", "@egovernments/digit-ui-react-components": "1.7.10", "@egovernments/digit-ui-svg-components": "1.0.11", - "@egovernments/digit-ui-components": "0.0.2-beta.41", + "@egovernments/digit-ui-components": "0.0.2-beta.42", "babel-loader": "8.1.0", "clean-webpack-plugin": "4.0.0", "css-loader": "5.2.6", diff --git a/react/ui-components/.storybook/preview-head.html b/react/ui-components/.storybook/preview-head.html index e32e63f2e1..6b43182f38 100644 --- a/react/ui-components/.storybook/preview-head.html +++ b/react/ui-components/.storybook/preview-head.html @@ -1,6 +1,6 @@ - + diff --git a/react/ui-components/CHANGELOG.md b/react/ui-components/CHANGELOG.md index 111cd8830d..aea863de33 100644 --- a/react/ui-components/CHANGELOG.md +++ b/react/ui-components/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.0.2-beta.42] - 2024-09-23 +### New Changes +- Added Table Molecule + ## [0.0.2-beta.41] - 2024-09-19 ### New Changes - Added OTPInput diff --git a/react/ui-components/package.json b/react/ui-components/package.json index 3ee8c26eca..3b3b169571 100644 --- a/react/ui-components/package.json +++ b/react/ui-components/package.json @@ -1,6 +1,6 @@ { "name": "@egovernments/digit-ui-components", - "version": "0.0.2-beta.41", + "version": "0.0.2-beta.42", "license": "MIT", "main": "dist/index.js", "module": "dist/index.modern.js", @@ -51,7 +51,7 @@ "dist" ], "dependencies": { - "@egovernments/digit-ui-components-css": "0.0.2-beta.35", + "@egovernments/digit-ui-components-css": "0.0.2-beta.36", "@egovernments/digit-ui-libraries": "1.8.1-beta.1", "@egovernments/digit-ui-svg-components": "1.0.11", "@googlemaps/js-api-loader": "1.13.10", diff --git a/react/ui-components/public/index.html b/react/ui-components/public/index.html index 210dbd81fa..a89374948e 100644 --- a/react/ui-components/public/index.html +++ b/react/ui-components/public/index.html @@ -7,7 +7,7 @@ - +