From 0ab65f6f6edb7f6e5cf4985d917ddb34e8893d37 Mon Sep 17 00:00:00 2001 From: Swathi-eGov <137176788+Swathi-eGov@users.noreply.github.com> Date: Fri, 13 Sep 2024 13:39:50 +0530 Subject: [PATCH] React component changes (#126) * added tab component * added search functionality for multiselectdropdown * updated landingpagecard * added hover state for menucard * updated stepper * updated preselected label color for radio btns * added stories for color and spacers * updated sidebar * enhancements * uodated versions * review changes * added long text stories * default value for allowMultipleOpen * updated versions * updated tab styles * updated animation name * added review changes * updated version --- react/css/CHANGELOG.md | 5 + react/css/package.json | 2 +- .../src/digitv2/components/bottomSheetV2.scss | 8 ++ .../css/src/digitv2/components/buttonsV2.scss | 3 +- react/css/src/digitv2/components/chipV2.scss | 19 +++ .../css/src/digitv2/components/dividerV2.scss | 1 + .../digitv2/components/landingpagecardV2.scss | 9 +- .../src/digitv2/components/menuCardV2.scss | 5 + .../components/multiSelectDropdownV2.scss | 59 +++++++- .../src/digitv2/components/radiobtnV2.scss | 4 +- .../digitv2/components/selectDropdownV2.scss | 4 +- .../digitv2/components/selectionCardV2.scss | 1 + .../css/src/digitv2/components/stepperV2.scss | 40 +++++- react/css/src/digitv2/components/tabV2.scss | 107 ++++++++++++++ react/css/src/digitv2/index.scss | 62 ++++++++ react/css/src/digitv2/typography.scss | 33 +++-- react/example/package.json | 2 +- react/example/public/index.html | 2 +- react/modules/core/package.json | 2 +- react/modules/sample/package.json | 2 +- react/package.json | 4 +- react/ui-components/CHANGELOG.md | 4 +- react/ui-components/package.json | 4 +- react/ui-components/public/index.html | 2 +- react/ui-components/src/atoms/Accordion.js | 2 +- react/ui-components/src/atoms/BackLink.js | 5 +- react/ui-components/src/atoms/Dropdown.js | 4 +- .../ui-components/src/atoms/MobileSidebar.js | 6 +- .../src/atoms/MultiSelectDropdown.js | 50 +++++-- react/ui-components/src/atoms/RadioButtons.js | 16 ++- react/ui-components/src/atoms/Stepper.js | 24 +++- react/ui-components/src/atoms/Tab.js | 125 ++++++++++++++++ react/ui-components/src/atoms/Toggle.js | 12 +- react/ui-components/src/atoms/Tooltip.js | 6 +- react/ui-components/src/atoms/index.js | 2 + .../src/atoms/stories/BackLink.stories.js | 6 +- .../src/atoms/stories/ColorLibrary.stories.js | 85 +++++++++++ .../src/atoms/stories/Dropdown.stories.js | 3 +- .../src/atoms/stories/Hamburger.stories.js | 18 +-- .../src/atoms/stories/RadioButtons.stories.js | 2 +- .../src/atoms/stories/Spacers.stories.js | 45 ++++++ .../src/atoms/stories/Stepper.stories.js | 21 ++- .../src/atoms/stories/Tab.stories.js | 135 ++++++++++++++++++ react/ui-components/src/hoc/FieldV1.js | 1 + react/ui-components/src/index.js | 2 + .../src/molecules/LandingPageCard.js | 5 +- react/ui-components/src/molecules/MenuCard.js | 14 +- .../stories/LandingPageCard.stories.js | 16 ++- .../stories/LandingPageWrapper.stories.js | 2 +- .../src/molecules/stories/MenuCard.stories.js | 38 ++--- 50 files changed, 913 insertions(+), 116 deletions(-) create mode 100644 react/css/src/digitv2/components/tabV2.scss create mode 100644 react/ui-components/src/atoms/Tab.js create mode 100644 react/ui-components/src/atoms/stories/ColorLibrary.stories.js create mode 100644 react/ui-components/src/atoms/stories/Spacers.stories.js create mode 100644 react/ui-components/src/atoms/stories/Tab.stories.js diff --git a/react/css/CHANGELOG.md b/react/css/CHANGELOG.md index ece4b1e907..25712e7615 100644 --- a/react/css/CHANGELOG.md +++ b/react/css/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog + +## [0.0.2-beta.33] - 2024-09-13 +### Changed +- Added Tab Styles and other changes + ## [0.0.2-beta.30] - 2024-09-12 ### fixes - Css version fix diff --git a/react/css/package.json b/react/css/package.json index be83deda58..79fa79cc31 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.32", + "version": "0.0.2-beta.33", "license": "MIT", "main": "dist/index.css", "author": "Jagankumar ", diff --git a/react/css/src/digitv2/components/bottomSheetV2.scss b/react/css/src/digitv2/components/bottomSheetV2.scss index 347fdab7e0..e460ddf2d7 100644 --- a/react/css/src/digitv2/components/bottomSheetV2.scss +++ b/react/css/src/digitv2/components/bottomSheetV2.scss @@ -52,6 +52,14 @@ margin: theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer0); } +.digit-bottom-sheet-header{ + &.full { + .digit-bottom-sheet-handle-indicator{ + display: none; + } + } +} + .digit-bottom-sheet-content { padding: theme(digitv2.spacers.spacer4); overflow-y: scroll; diff --git a/react/css/src/digitv2/components/buttonsV2.scss b/react/css/src/digitv2/components/buttonsV2.scss index 858b1da26a..8872c8759a 100644 --- a/react/css/src/digitv2/components/buttonsV2.scss +++ b/react/css/src/digitv2/components/buttonsV2.scss @@ -4,8 +4,7 @@ @apply flex max-w-full items-center; gap: theme(digitv2.spacers.spacer2); - &.small, - &.medium { + &.small{ gap: theme(digitv2.spacers.spacer1); } diff --git a/react/css/src/digitv2/components/chipV2.scss b/react/css/src/digitv2/components/chipV2.scss index 2f96fd9b31..0e26818f56 100644 --- a/react/css/src/digitv2/components/chipV2.scss +++ b/react/css/src/digitv2/components/chipV2.scss @@ -49,6 +49,25 @@ .digit-text { @extend .typography.body-xs; @apply overflow-hidden items-center whitespace-no-wrap; + 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-xs.mobile); + } + + @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) { + /* Media query for tablets */ + font-size: theme(digitv2.fontSize.body-xs.tablet); + } + + @media (min-aspect-ratio: 3/4) { + /* Media query for desktop */ + font-size: theme(digitv2.fontSize.body-xs.desktop); + } max-width: calc(100% - (theme(digitv2.spacers.spacer7))); width: calc(100% - (theme(digitv2.spacers.spacer7))); text-overflow: clip; diff --git a/react/css/src/digitv2/components/dividerV2.scss b/react/css/src/digitv2/components/dividerV2.scss index 95e8887376..70ad783327 100644 --- a/react/css/src/digitv2/components/dividerV2.scss +++ b/react/css/src/digitv2/components/dividerV2.scss @@ -1,5 +1,6 @@ .digit-divider { border: theme(digitv2.divider.dividerS); + width: 100%; &.medium { border: theme(digitv2.divider.dividerM); diff --git a/react/css/src/digitv2/components/landingpagecardV2.scss b/react/css/src/digitv2/components/landingpagecardV2.scss index db4a4ea250..8c87102073 100644 --- a/react/css/src/digitv2/components/landingpagecardV2.scss +++ b/react/css/src/digitv2/components/landingpagecardV2.scss @@ -31,10 +31,17 @@ align-items: center; &.iconBg { - background-color: theme(digitv2.lightTheme.primary-1); + background-color: theme(digitv2.lightTheme.primary-1); + border-radius: 0.125rem; } } + &.right{ + &.iconBg { + gap:theme(digitv2.spacers.spacer4); + } + } + svg { flex-shrink: 0; } diff --git a/react/css/src/digitv2/components/menuCardV2.scss b/react/css/src/digitv2/components/menuCardV2.scss index 83ba20586b..78de76da04 100644 --- a/react/css/src/digitv2/components/menuCardV2.scss +++ b/react/css/src/digitv2/components/menuCardV2.scss @@ -6,6 +6,11 @@ justify-content: flex-start; cursor: pointer; + &.clickable:hover{ + border: 0.063rem solid theme(digitv2.lightTheme.primary-1); + box-shadow: 0.063rem theme(digitv2.spacers.spacer1) theme(digitv2.spacers.spacer1) theme(digitv2.spacers.spacer0) #00000029; + } + .icon-menu-header { display: flex !important; diff --git a/react/css/src/digitv2/components/multiSelectDropdownV2.scss b/react/css/src/digitv2/components/multiSelectDropdownV2.scss index 7307a86731..d7cd0da0a7 100644 --- a/react/css/src/digitv2/components/multiSelectDropdownV2.scss +++ b/react/css/src/digitv2/components/multiSelectDropdownV2.scss @@ -38,6 +38,23 @@ } } } + + .digit-multiselectdropdown-master-active{ + &.serachable{ + input[type="text"]{ + opacity: 1; + width: calc(100%-24px); + } + + .digit-multiselectdropdown-label { + svg { + z-index: 1; + cursor: pointer; + } + } + } + } + .digit-multiselectdropdown-master { &.disabled { pointer-events: none !important; @@ -153,7 +170,7 @@ } } } - &.nestedmultiselect { + &.nestedmultiselect:not(.unsuccessfulresults){ position: relative; &:not(.selectAll)::before { content: ""; @@ -334,6 +351,33 @@ color: theme(digitv2.lightTheme.primary-1); } } + &.unsuccessfulresults { + background-color: theme(digitv2.lightTheme.paper-secondary); + pointer-events: none; + span { + @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.text-disabled); + } + } } .digit-cursorPointer { @apply cursor-pointer; @@ -343,11 +387,14 @@ .digit-multiselectdropdown-label { p { 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); + 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/radiobtnV2.scss b/react/css/src/digitv2/components/radiobtnV2.scss index 195311d149..fd3dc73511 100644 --- a/react/css/src/digitv2/components/radiobtnV2.scss +++ b/react/css/src/digitv2/components/radiobtnV2.scss @@ -51,8 +51,7 @@ pointer-events: none !important; } - &.disabled, - &.preselected { + &:not(.preselected):not(.has-preselected).disabled{ label { color: theme(digitv2.lightTheme.text-disabled); } @@ -80,6 +79,7 @@ font-style: theme(digitv2.fontStyle.normal); font-weight: theme(digitv2.fontWeight.regular); line-height: theme(digitv2.lineHeight.lineheight2); + margin-top: 0.065rem; @media (max-aspect-ratio: 9/16) { /* Media query for mobile */ diff --git a/react/css/src/digitv2/components/selectDropdownV2.scss b/react/css/src/digitv2/components/selectDropdownV2.scss index fd8df33ff6..96e141c60d 100644 --- a/react/css/src/digitv2/components/selectDropdownV2.scss +++ b/react/css/src/digitv2/components/selectDropdownV2.scss @@ -49,7 +49,7 @@ } } .digit-dropdown-select-active { - @apply relative block w-full h-10; + @apply relative block w-full h-10 bg-white; border: 0.063rem solid theme(digitv2.lightTheme.primary-1); input[type="text"] { @extend .typography.body-l; @@ -189,7 +189,7 @@ &:not(.nesteddropdown, .treedropdown):not(:active):nth-of-type(even) { background: theme(digitv2.lightTheme.paper-secondary); } - &.nesteddropdown { + &:not(.unsuccessfulresults).nesteddropdown { position: relative; height: 2.4375rem; &::before { diff --git a/react/css/src/digitv2/components/selectionCardV2.scss b/react/css/src/digitv2/components/selectionCardV2.scss index 79d3f4f8f1..c2c90cefc4 100644 --- a/react/css/src/digitv2/components/selectionCardV2.scss +++ b/react/css/src/digitv2/components/selectionCardV2.scss @@ -2,6 +2,7 @@ display: flex; flex-direction: column; align-items: flex-start; + gap:theme(digitv2.spacers.spacer1); } .selection-card { diff --git a/react/css/src/digitv2/components/stepperV2.scss b/react/css/src/digitv2/components/stepperV2.scss index 2f9b01317a..ee28328436 100644 --- a/react/css/src/digitv2/components/stepperV2.scss +++ b/react/css/src/digitv2/components/stepperV2.scss @@ -10,6 +10,18 @@ @apply relative flex-1; min-height: 4rem; z-index: 1; + + @media (max-aspect-ratio: 9/16) { + min-width: 3.75rem; + } + + @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) { + min-width: 5rem; + } + + @media (min-aspect-ratio: 3/4) { + min-width: 6.25rem; + } } .digit-stepper-content { @@ -98,18 +110,30 @@ height: 0.125rem; @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) { + min-width: 6.313rem; max-width: 39.438rem; } @media (max-aspect-ratio: 9/16) { + min-width: 4.313rem; max-width: 16.875rem; top: 0.875rem; } @media (min-aspect-ratio: 3/4) { + min-width: 5.313rem; max-width: 82.688rem; } + &.lastbutone{ + @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) { + min-width: unset; + } + + @media (max-aspect-ratio: 9/16) { + min-width: unset; + } + } &.active { background-color: theme(digitv2.lightTheme.primary-1); border-color: theme(digitv2.lightTheme.primary-1); @@ -129,6 +153,12 @@ background-color: transparent; border-color: theme(digitv2.lightTheme.primary-1); } + @media (max-aspect-ratio: 9/16) { + left: -2.75rem; + } + @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) { + left: -3.5rem; + } } } @@ -148,8 +178,8 @@ } .digit-stepper-container::-webkit-scrollbar { - width: theme(digitv2.spacers.spacer2); - height: theme(digitv2.spacers.spacer2); + width: theme(digitv2.spacers.spacer0); + height: theme(digitv2.spacers.spacer0); background-color: theme(digitv2.lightTheme.generic-background); } @@ -161,4 +191,10 @@ .digit-stepper-container::-webkit-scrollbar-thumb { background-color: theme(digitv2.lightTheme.generic-divider); border-radius: 0.563rem; +} + +.stepper-vertical-divider{ + position: absolute; + left: theme(digitv2.spacers.spacer10); + margin: theme(digitv2.spacers.spacer0); } \ No newline at end of file diff --git a/react/css/src/digitv2/components/tabV2.scss b/react/css/src/digitv2/components/tabV2.scss new file mode 100644 index 0000000000..4404f868b7 --- /dev/null +++ b/react/css/src/digitv2/components/tabV2.scss @@ -0,0 +1,107 @@ +.digit-tab { + display: flex; + height: fit-content; + overflow: auto; + align-items: flex-end; + + .digit-tab-list { + + height: 3.75rem; + + .digit-tab-item { + display: flex; + width: 100%; + min-height: 3.75rem; + padding: theme(digitv2.spacers.spacer4) theme(digitv2.spacers.spacer6); + height: 3.75rem; + align-items: center; + justify-content: center; + background-color: theme(digitv2.lightTheme.paper-secondary); + border: 0.063rem solid theme(digitv2.lightTheme.generic-inputborder); + border-radius: theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer0) theme(digitv2.spacers.spacer0); + cursor: pointer; + gap: theme(digitv2.spacers.spacer1); + + .digit-tab-icon { + display: flex; + align-items: center; + + svg { + flex-shrink: 0; + } + } + + + justify-content: center; + + + .digit-tab-label { + @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.text-secondary); + white-space: noWrap; + overflow: hidden; + text-overflow: ellipsis; + line-height: normal; + } + } + + &.active { + height: 4rem; + + .digit-tab-item { + border: 0.125rem solid theme(digitv2.lightTheme.primary-1); + border-bottom: theme(digitv2.spacers.spacer1) solid theme(digitv2.lightTheme.primary-1); + background-color: theme(digitv2.lightTheme.paper-primary); + height: 4rem; + min-height: 4rem; + + .digit-tab-label { + @extend .typography.heading-s; + color: theme(digitv2.lightTheme.primary-1); + white-space: noWrap; + overflow: hidden; + text-overflow: ellipsis; + line-height: normal; + } + } + } + } +} + +.digit-tab::-webkit-scrollbar { + height: 0.375rem; + background-color: transparent; +} + +.digit-tab::-webkit-scrollbar-track { + background-color: transparent; + border-radius: 0.563rem; +} + +.digit--tab::-webkit-scrollbar-thumb { + background-color: transparent; + border-radius: 0.563rem; +} \ No newline at end of file diff --git a/react/css/src/digitv2/index.scss b/react/css/src/digitv2/index.scss index 827018cf95..408ff76f64 100644 --- a/react/css/src/digitv2/index.scss +++ b/react/css/src/digitv2/index.scss @@ -38,6 +38,7 @@ @import url("./components/actionbarV2.scss"); @import url("./components/headerdropdownV2.scss"); @import url("./components/topbarV2.scss"); +@import url("./components/tabV2.scss"); @import url("./components/sidebarV2.scss"); @import url("./components/mobilesidebarV2.scss"); @import url("./components/tooltipwrapperV2.scss"); @@ -177,4 +178,65 @@ &-item-5 { color: theme(digitv2.chart.chart-5); } +} + +.color-constants-story{ + + &.primary-1{ + background-color: theme(digitv2.lightTheme.primary-1); + } + &.primary-bg{ + background-color: theme(digitv2.lightTheme.primary-bg); + } + &.primary-2{ + background-color: theme(digitv2.lightTheme.primary-2); + } + &.text-primary{ + background-color: theme(digitv2.lightTheme.text-primary); + } + &.text-secondary{ + background-color: theme(digitv2.lightTheme.text-secondary); + } + &.text-disabled{ + background-color: theme(digitv2.lightTheme.text-disabled); + } + &.alert-error{ + background-color: theme(digitv2.lightTheme.alert-error); + } + &.alert-errorbg{ + background-color: theme(digitv2.lightTheme.alert-errorbg); + } + &.alert-success{ + background-color: theme(digitv2.lightTheme.alert-success); + } + &.alert-successbg{ + background-color: theme(digitv2.lightTheme.alert-successbg); + } + &.alert-info{ + background-color: theme(digitv2.lightTheme.alert-info); + } + &.alert-infobg{ + background-color: theme(digitv2.lightTheme.alert-infobg); + } + &.alert-warning{ + background-color: theme(digitv2.lightTheme.alert-warning); + } + &.alert-warningbg{ + background-color: theme(digitv2.lightTheme.alert-warning-bg); + } + &.generic-background{ + background-color: theme(digitv2.lightTheme.generic-background); + } + &.generic-divider{ + background-color: theme(digitv2.lightTheme.generic-divider); + } + &.generic-inputborder{ + background-color: theme(digitv2.lightTheme.generic-inputborder); + } + &.paper-primary{ + background-color: theme(digitv2.lightTheme.paper-primary); + } + &.paper-secondary{ + background-color: theme(digitv2.lightTheme.paper-secondary); + } } \ No newline at end of file diff --git a/react/css/src/digitv2/typography.scss b/react/css/src/digitv2/typography.scss index 47a22e4af5..e0b628274b 100644 --- a/react/css/src/digitv2/typography.scss +++ b/react/css/src/digitv2/typography.scss @@ -443,46 +443,61 @@ } &.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); } } &.body-xs { - 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-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); } } diff --git a/react/example/package.json b/react/example/package.json index f8c4f2c0ad..ca1ab3dd67 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.38", + "@egovernments/digit-ui-components": "0.0.2-beta.39", "@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 a53b277d30..e14498a21b 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 06fa02a71b..0a09fd5f34 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.38", + "@egovernments/digit-ui-components": "0.0.2-beta.39", "@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 5b4f41707b..54fb60611e 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.37", + "@egovernments/digit-ui-components": "0.0.2-beta.39", "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 dceddb52b9..1673b10bde 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.32", + "@egovernments/digit-ui-components-css":"0.0.2-beta.33", "@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.38", + "@egovernments/digit-ui-components": "0.0.2-beta.39", "babel-loader": "8.1.0", "clean-webpack-plugin": "4.0.0", "css-loader": "5.2.6", diff --git a/react/ui-components/CHANGELOG.md b/react/ui-components/CHANGELOG.md index b976d8e099..e72dc07154 100644 --- a/react/ui-components/CHANGELOG.md +++ b/react/ui-components/CHANGELOG.md @@ -4,6 +4,9 @@ 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.39] - 2024-09-12 +### New Changes +- Added Tab Component and other changes ## [0.0.2-beta.38] - 2024-09-12 ### fixes @@ -13,7 +16,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### New Changes - Css version fix - ## [0.0.2-beta.36] - 2024-09-06 ### New Changes - Updated SelectionCard Component diff --git a/react/ui-components/package.json b/react/ui-components/package.json index 840d6b0bae..6753b42d90 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.38", + "version": "0.0.2-beta.39", "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.32", + "@egovernments/digit-ui-components-css": "0.0.2-beta.33", "@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 c5b8d524ff..dd0db768fd 100644 --- a/react/ui-components/public/index.html +++ b/react/ui-components/public/index.html @@ -7,7 +7,7 @@ - +