From b1a9b0e73efeee830191a1c18e7bb7db738ea905 Mon Sep 17 00:00:00 2001 From: Swathi-eGov <137176788+Swathi-eGov@users.noreply.github.com> Date: Thu, 26 Dec 2024 11:31:47 +0530 Subject: [PATCH] storybook audit fixes-1 (#163) --- react/css/package.json | 2 +- .../{infoCardV2.scss => alertCardV2.scss} | 0 .../{uploaderV2.scss => fileUploadV2.scss} | 25 +- .../{actionbarV2.scss => footerV2.scss} | 0 ...ilesidebarV2.scss => mobilesidenavV2.scss} | 0 .../components/multiSelectDropdownV2.scss | 1 + .../src/digitv2/components/radiobtnV2.scss | 4 + .../digitv2/components/selectDropdownV2.scss | 6 +- ...lectionCardV2.scss => selectionTagV2.scss} | 35 +- ...{slideOverMenuV2.scss => sidePanelV2.scss} | 20 + .../{sidebarV2.scss => sidenavV2.scss} | 0 .../css/src/digitv2/components/topbarV2.scss | 2 +- .../src/digitv2/components/treeSelectV2.scss | 2 +- react/css/src/digitv2/index.scss | 20 +- react/example/package.json | 2 +- react/example/public/index.html | 2 +- react/modules/Project/package.json | 2 +- .../CreateProject/CreateProjectResponse.js | 6 +- .../pages/employee/ProjectDetails/index.js | 6 +- react/modules/core/package.json | 2 +- react/modules/sample/package.json | 2 +- .../sample/src/pages/employee/Sample.js | 14 +- .../components/ApplicationDetailsActionBar.js | 10 +- react/package.json | 4 +- .../.storybook/preview-head.html | 2 +- react/ui-components/CHANGELOG.md | 10 + react/ui-components/package.json | 4 +- react/ui-components/public/index.html | 2 +- react/ui-components/src/atoms/Accordion.js | 15 +- react/ui-components/src/atoms/ActionBar.js | 76 - .../src/atoms/{InfoCard.js => AlertCard.js} | 8 +- react/ui-components/src/atoms/BreadCrumb.js | 4 - react/ui-components/src/atoms/ButtonGroup.js | 14 +- react/ui-components/src/atoms/CustomSVG.js | 1322 +++++++++-------- react/ui-components/src/atoms/Dropdown.js | 29 + .../src/atoms/{Uploader.js => FileUpload.js} | 44 +- react/ui-components/src/atoms/Footer.js | 86 +- react/ui-components/src/atoms/HomeFooter.js | 22 + .../src/atoms/LoaderComponent.js | 8 +- .../{MobileSidebar.js => MobileSideNav.js} | 6 +- react/ui-components/src/atoms/RadioButtons.js | 6 +- .../{SelectionCard.js => SelectionTag.js} | 17 +- .../src/atoms/{Sidebar.js => SideNav.js} | 8 +- .../atoms/{SlideOverMenu.js => SidePanel.js} | 6 +- react/ui-components/src/atoms/Switch.js | 5 +- react/ui-components/src/atoms/Tab.js | 2 +- react/ui-components/src/atoms/Table.js | 6 +- react/ui-components/src/atoms/UploadImage.js | 3 +- .../atoms/{UploadPopup.js => UploadWidget.js} | 30 +- .../foundationstories/Iconography.stories.js | 57 + react/ui-components/src/atoms/index.js | 38 +- .../src/atoms/stories/Accordion.stories.js | 98 +- .../src/atoms/stories/AlertCard.stories.js | 170 +++ .../src/atoms/stories/BackLink.stories.js | 53 +- .../src/atoms/stories/BreadCrumb.stories.js | 286 ++-- .../src/atoms/stories/Checkbox.stories.js | 100 ++ .../src/atoms/stories/CheckboxDocs.stories.js | 30 - .../atoms/stories/CheckedCheckbox.stories.js | 130 -- .../src/atoms/stories/Chip.stories.js | 49 +- .../src/atoms/stories/Dropdown.stories.js | 2 +- .../src/atoms/stories/Dropdowndocs.stories.js | 2 +- .../stories/DynamicSideovermenu.stories.js | 1094 -------------- .../src/atoms/stories/ErrorMessage.stories.js | 87 -- .../src/atoms/stories/ErrorPanel.stories.js | 53 +- .../src/atoms/stories/Iconography.stories.js | 53 - ...mage.stories.js => ImageUpload.stories.js} | 10 +- .../src/atoms/stories/InfoButton.stories.js | 95 -- .../src/atoms/stories/InfoCard.stories.js | 207 --- .../stories/IntermediateCheckbox.stories.js | 153 -- .../atoms/stories/LabelFieldPair.stories.js | 45 - .../src/atoms/stories/LinkButton.stories.js | 147 +- .../src/atoms/stories/Loader.stories.js | 6 + .../stories/MultiselectDropdown.stories.js | 2 +- .../Multiselectdropdowndocs.stories.js | 2 +- .../atoms/stories/PrimaryButton.stories.js | 224 ++- .../src/atoms/stories/RadioButtons.stories.js | 146 +- .../atoms/stories/SecondaryButton.stories.js | 153 +- ...ard.stories.js => SelectionTag.stories.js} | 149 +- .../stories/StaticSlideOverMenu.stories.js | 1024 ------------- .../src/atoms/stories/SuccessPanel.stories.js | 83 +- .../src/atoms/stories/Switch.stories.js | 129 +- .../src/atoms/stories/Tab.stories.js | 171 +-- .../src/atoms/stories/Tag.stories.js | 123 +- .../atoms/stories/TeritiaryButton.stories.js | 153 +- .../src/atoms/stories/TextBlock.stories.js | 43 +- .../src/atoms/stories/Toggle.stories.js | 4 +- .../stories/UnCheckedCheckBox.stories.js | 132 -- .../src/atoms/stories/UploaderDocs.stories.js | 10 +- ...le.stories.js => UploaderField.stories.js} | 76 +- ...p.stories.js => UploaderWidget.stories.js} | 18 +- react/ui-components/src/hoc/FormComposerV2.js | 6 +- .../hoc/MobileView/MobileSearchComponent.js | 6 +- react/ui-components/src/index.js | 40 +- .../src/molecules/CustomDropdown.js | 2 + .../src/molecules/DetailsCard.js | 6 +- .../ui-components/src/molecules/PanelCard.js | 35 +- ...er.stories.js => AccordionList.stories.js} | 39 +- .../stories/AlertPopup.stories.js | 28 +- .../stories/BasicPopup.stories.js} | 28 +- .../molecules/stories/ButtonGroup.stories.js | 177 ++- .../stories/CardVariantPrimaryCard.stories.js | 4 +- .../CardVariantScondaryCard.stories.js | 4 +- ...ar.stories.js => CustomSideNav.stories.js} | 8 +- ...ebar.stories.js => DarkSideNav.stories.js} | 8 +- .../stories/DarkThemeHamburger.stories.js | 6 +- .../stories/DarkThemeHeader.stories.js | 14 +- .../stories/DynamicSidePanel.stories.js | 412 +++++ ...l.stories.js => ErrorPanelCard.stories.js} | 8 +- .../src/molecules/stories/Footer.stories.js | 102 +- .../src/molecules/stories/FormCard.stories.js | 14 +- .../stories/HamburgerDocs.stories.js | 4 +- ...bar.stories.js => LightSideNav.stories.js} | 8 +- .../stories/LightThemeHamburger.stories.js | 6 +- .../stories/LightThemeHeader.stories.js | 14 +- .../stories/PopupDocs.stories.js | 6 +- ...Docs.stories.js => SideNavDocs.stories.js} | 8 +- .../stories/SidePanelDocs.stories.js} | 10 +- .../stories/StaticSidePanel.stories.js | 220 +++ .../stories/SuccessPanelCard.stories.js | 4 +- 119 files changed, 3377 insertions(+), 5359 deletions(-) rename react/css/src/digitv2/components/{infoCardV2.scss => alertCardV2.scss} (100%) rename react/css/src/digitv2/components/{uploaderV2.scss => fileUploadV2.scss} (96%) rename react/css/src/digitv2/components/{actionbarV2.scss => footerV2.scss} (100%) rename react/css/src/digitv2/components/{mobilesidebarV2.scss => mobilesidenavV2.scss} (100%) rename react/css/src/digitv2/components/{selectionCardV2.scss => selectionTagV2.scss} (67%) rename react/css/src/digitv2/components/{slideOverMenuV2.scss => sidePanelV2.scss} (87%) rename react/css/src/digitv2/components/{sidebarV2.scss => sidenavV2.scss} (100%) delete mode 100644 react/ui-components/src/atoms/ActionBar.js rename react/ui-components/src/atoms/{InfoCard.js => AlertCard.js} (91%) rename react/ui-components/src/atoms/{Uploader.js => FileUpload.js} (95%) create mode 100644 react/ui-components/src/atoms/HomeFooter.js rename react/ui-components/src/atoms/{MobileSidebar.js => MobileSideNav.js} (99%) rename react/ui-components/src/atoms/{SelectionCard.js => SelectionTag.js} (90%) rename react/ui-components/src/atoms/{Sidebar.js => SideNav.js} (99%) rename react/ui-components/src/atoms/{SlideOverMenu.js => SidePanel.js} (98%) rename react/ui-components/src/atoms/{UploadPopup.js => UploadWidget.js} (89%) create mode 100644 react/ui-components/src/atoms/foundationstories/Iconography.stories.js create mode 100644 react/ui-components/src/atoms/stories/AlertCard.stories.js create mode 100644 react/ui-components/src/atoms/stories/Checkbox.stories.js delete mode 100644 react/ui-components/src/atoms/stories/CheckboxDocs.stories.js delete mode 100644 react/ui-components/src/atoms/stories/CheckedCheckbox.stories.js delete mode 100644 react/ui-components/src/atoms/stories/DynamicSideovermenu.stories.js delete mode 100644 react/ui-components/src/atoms/stories/ErrorMessage.stories.js delete mode 100644 react/ui-components/src/atoms/stories/Iconography.stories.js rename react/ui-components/src/atoms/stories/{UploadImage.stories.js => ImageUpload.stories.js} (89%) delete mode 100644 react/ui-components/src/atoms/stories/InfoButton.stories.js delete mode 100644 react/ui-components/src/atoms/stories/InfoCard.stories.js delete mode 100644 react/ui-components/src/atoms/stories/IntermediateCheckbox.stories.js delete mode 100644 react/ui-components/src/atoms/stories/LabelFieldPair.stories.js rename react/ui-components/src/atoms/stories/{SelectionCard.stories.js => SelectionTag.stories.js} (50%) delete mode 100644 react/ui-components/src/atoms/stories/StaticSlideOverMenu.stories.js delete mode 100644 react/ui-components/src/atoms/stories/UnCheckedCheckBox.stories.js rename react/ui-components/src/atoms/stories/{UploadeFile.stories.js => UploaderField.stories.js} (60%) rename react/ui-components/src/atoms/stories/{UploadPopup.stories.js => UploaderWidget.stories.js} (87%) rename react/ui-components/src/molecules/stories/{AccordionWrapper.stories.js => AccordionList.stories.js} (69%) rename react/ui-components/src/{atoms => molecules}/stories/AlertPopup.stories.js (88%) rename react/ui-components/src/{atoms/stories/BasicPopUp.stories.js => molecules/stories/BasicPopup.stories.js} (90%) rename react/ui-components/src/molecules/stories/{CustomSidebar.stories.js => CustomSideNav.stories.js} (95%) rename react/ui-components/src/molecules/stories/{DarkSidebar.stories.js => DarkSideNav.stories.js} (95%) create mode 100644 react/ui-components/src/molecules/stories/DynamicSidePanel.stories.js rename react/ui-components/src/molecules/stories/{ErrorPanel.stories.js => ErrorPanelCard.stories.js} (98%) rename react/ui-components/src/molecules/stories/{LightSidebar.stories.js => LightSideNav.stories.js} (97%) rename react/ui-components/src/{atoms => molecules}/stories/PopupDocs.stories.js (94%) rename react/ui-components/src/molecules/stories/{SidebarDocs.stories.js => SideNavDocs.stories.js} (87%) rename react/ui-components/src/{atoms/stories/SlideOverMenuDocs.stories.js => molecules/stories/SidePanelDocs.stories.js} (86%) create mode 100644 react/ui-components/src/molecules/stories/StaticSidePanel.stories.js diff --git a/react/css/package.json b/react/css/package.json index e473f634b8e..1d50f9f77ac 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.43", + "version": "0.0.2-beta.44", "license": "MIT", "main": "dist/index.css", "author": "Jagankumar ", diff --git a/react/css/src/digitv2/components/infoCardV2.scss b/react/css/src/digitv2/components/alertCardV2.scss similarity index 100% rename from react/css/src/digitv2/components/infoCardV2.scss rename to react/css/src/digitv2/components/alertCardV2.scss diff --git a/react/css/src/digitv2/components/uploaderV2.scss b/react/css/src/digitv2/components/fileUploadV2.scss similarity index 96% rename from react/css/src/digitv2/components/uploaderV2.scss rename to react/css/src/digitv2/components/fileUploadV2.scss index 860317de206..ad35035384b 100644 --- a/react/css/src/digitv2/components/uploaderV2.scss +++ b/react/css/src/digitv2/components/fileUploadV2.scss @@ -20,8 +20,14 @@ gap: theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer0); } + .upload-options-svg-wrap{ + width: theme(digitv2.spacers.spacer10); + height: theme(digitv2.spacers.spacer10); + cursor: pointer; + } + .upload-options-label { - @extend .typography.label; + @extend .typography.button.large; @apply cursor-pointer; color: theme(digitv2.lightTheme.primary-1); } @@ -108,7 +114,7 @@ outline: none !important; } - .digit-uploader-content-uploadpopup { + .digit-uploader-content-uploadWidget { @apply flex flex-col w-full items-center justify-center max-w-full; gap: theme(digitv2.spacers.spacer4); border: 0.063rem solid theme(digitv2.lightTheme.generic-divider); @@ -164,13 +170,20 @@ } } + .drag-drop-link{ + @extend .typography.link-S; + margin-left: theme(digitv2.spacers.spacer1); + color: theme(digitv2.lightTheme.primary-1); + cursor: pointer; + } + &.error { border-style: dashed !important; border: 0.094rem solid theme(digitv2.lightTheme.alert-error); } } - .digit-uploadpopup-label { + .digit-uploadWidget-label { @extend .typography.body-s; font-family: theme(digitv2.fontFamily.sans); font-style: theme(digitv2.fontStyle.normal); @@ -471,7 +484,7 @@ } } - .digit-uploadpopup-close-icon { + .digit-uploadWidget-close-icon { @apply absolute top-0 right-0 w-6 h-6 items-center cursor-pointer; background: theme(digitv2.lightTheme.generic-background); border: 0.063rem solid theme(digitv2.lightTheme.generic-divider); @@ -488,7 +501,7 @@ &.error { border: 0.063rem solid theme(digitv2.lightTheme.alert-error); - .digit-uploadpopup-close-icon { + .digit-uploadWidget-close-icon { background: theme(digitv2.lightTheme.alert-error); border: 0.063rem solid theme(digitv2.lightTheme.alert-error); border-top: none; @@ -505,7 +518,7 @@ } } - .uploadpopup-error-card { + .uploadWidget-error-card { @apply w-full max-w-full; margin: theme(digitv2.spacers.spacer0); } diff --git a/react/css/src/digitv2/components/actionbarV2.scss b/react/css/src/digitv2/components/footerV2.scss similarity index 100% rename from react/css/src/digitv2/components/actionbarV2.scss rename to react/css/src/digitv2/components/footerV2.scss diff --git a/react/css/src/digitv2/components/mobilesidebarV2.scss b/react/css/src/digitv2/components/mobilesidenavV2.scss similarity index 100% rename from react/css/src/digitv2/components/mobilesidebarV2.scss rename to react/css/src/digitv2/components/mobilesidenavV2.scss diff --git a/react/css/src/digitv2/components/multiSelectDropdownV2.scss b/react/css/src/digitv2/components/multiSelectDropdownV2.scss index 7c82d4b127c..bcdf5a3970b 100644 --- a/react/css/src/digitv2/components/multiSelectDropdownV2.scss +++ b/react/css/src/digitv2/components/multiSelectDropdownV2.scss @@ -463,6 +463,7 @@ font-style: theme(digitv2.fontStyle.normal); font-weight: theme(digitv2.fontWeight.regular); line-height: theme(digitv2.lineHeight.lineheight2); + padding-left: theme(digitv2.spacers.spacer3); @media (max-aspect-ratio: 9/16) { /* Media query for mobile */ diff --git a/react/css/src/digitv2/components/radiobtnV2.scss b/react/css/src/digitv2/components/radiobtnV2.scss index bf22da68a34..1d07c3758a3 100644 --- a/react/css/src/digitv2/components/radiobtnV2.scss +++ b/react/css/src/digitv2/components/radiobtnV2.scss @@ -61,6 +61,10 @@ } } + &.label-first{ + flex-direction: row-reverse; + } + } .radio-option-container label:only-child { diff --git a/react/css/src/digitv2/components/selectDropdownV2.scss b/react/css/src/digitv2/components/selectDropdownV2.scss index 8b5097fea5a..ff2896b0d4f 100644 --- a/react/css/src/digitv2/components/selectDropdownV2.scss +++ b/react/css/src/digitv2/components/selectDropdownV2.scss @@ -199,7 +199,7 @@ } .digit-dropdown-item { @apply flex flex-row; - padding: 0.625rem; + padding: theme(digitv2.spacers.spacer3); gap: 0.625rem; min-height: 2.438rem; color: theme(digitv2.lightTheme.text-primary) !important; @@ -318,7 +318,7 @@ } &.nestedtextdropdown { min-height: 4.75rem; - padding: theme(digitv2.spacers.spacer2) 0.635rem theme(digitv2.spacers.spacer2) 0.635rem; + padding: theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer3) theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer3); color: theme(digitv2.lightTheme.text-secondary) !important; &:hover { border: 0.063rem solid theme(digitv2.lightTheme.primary-1); @@ -356,7 +356,7 @@ } &.profiledropdown { min-height: theme(digitv2.spacers.spacer12); - padding: theme(digitv2.spacers.spacer2) 0.625rem; + padding: theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer3); } &.profilenestedtext { min-height: 4.75rem; diff --git a/react/css/src/digitv2/components/selectionCardV2.scss b/react/css/src/digitv2/components/selectionTagV2.scss similarity index 67% rename from react/css/src/digitv2/components/selectionCardV2.scss rename to react/css/src/digitv2/components/selectionTagV2.scss index c2c90cefc4a..b71f8eab83c 100644 --- a/react/css/src/digitv2/components/selectionCardV2.scss +++ b/react/css/src/digitv2/components/selectionTagV2.scss @@ -19,6 +19,12 @@ justify-content: center; } + &.hideContainer{ + border: none; + background-color: transparent; + border-radius: theme(digitv2.spacers.spacer0); + } + } .selection-card.error { @@ -26,6 +32,7 @@ } .option { + @extend .typography.body-s; display: flex; align-items: center; padding: theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer4); @@ -40,30 +47,46 @@ 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-l.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-l.tablet); + font-size: theme(digitv2.fontSize.body-s.tablet); } @media (min-aspect-ratio: 3/4) { /* Media query for desktop */ - font-size: theme(digitv2.fontSize.body-l.desktop); + font-size: theme(digitv2.fontSize.body-s.desktop); } } .option.selected { + @extend .typography.heading-s; background-color: theme(digitv2.lightTheme.primary-1); color: theme(digitv2.lightTheme.paper-primary); 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); + } } - .option .selectioncard-option-label { + .option .selectiontag-option-label { width: 100%; display: flex; align-items: center; @@ -71,7 +94,7 @@ } - .option .selectioncardicon { + .option .selectiontagicon { flex-shrink: 0; display: flex; align-items: center; diff --git a/react/css/src/digitv2/components/slideOverMenuV2.scss b/react/css/src/digitv2/components/sidePanelV2.scss similarity index 87% rename from react/css/src/digitv2/components/slideOverMenuV2.scss rename to react/css/src/digitv2/components/sidePanelV2.scss index bef178cee5b..748fede7ffa 100644 --- a/react/css/src/digitv2/components/slideOverMenuV2.scss +++ b/react/css/src/digitv2/components/sidePanelV2.scss @@ -102,8 +102,28 @@ } .slider-header { + @extend .typography.heading-m; flex-shrink: 0; padding: theme(digitv2.spacers.spacer4); + 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); + } border-bottom: 0.063rem solid #d6d5d4; .close-icon { diff --git a/react/css/src/digitv2/components/sidebarV2.scss b/react/css/src/digitv2/components/sidenavV2.scss similarity index 100% rename from react/css/src/digitv2/components/sidebarV2.scss rename to react/css/src/digitv2/components/sidenavV2.scss diff --git a/react/css/src/digitv2/components/topbarV2.scss b/react/css/src/digitv2/components/topbarV2.scss index 0ef705372ba..82f3487a0ee 100644 --- a/react/css/src/digitv2/components/topbarV2.scss +++ b/react/css/src/digitv2/components/topbarV2.scss @@ -221,7 +221,7 @@ .digit-dropdown-item { display: flex; flex-direction: row; - padding: 0.625rem; + padding: theme(digitv2.spacers.spacer3); column-gap: 0.625rem; color: theme(colors.text.secondary); diff --git a/react/css/src/digitv2/components/treeSelectV2.scss b/react/css/src/digitv2/components/treeSelectV2.scss index bfe4f0f012d..7c89be6926f 100644 --- a/react/css/src/digitv2/components/treeSelectV2.scss +++ b/react/css/src/digitv2/components/treeSelectV2.scss @@ -18,7 +18,7 @@ @apply relative cursor-pointer flex items-center; height: 2.4375rem; gap: theme(digitv2.spacers.spacer1); - padding: theme(digitv2.spacers.spacer4) 0.625rem; + padding: theme(digitv2.spacers.spacer4) theme(digitv2.spacers.spacer3); &:hover { background: theme(digitv2.lightTheme.primary-bg); border: 0.063rem solid theme(digitv2.lightTheme.primary-1); diff --git a/react/css/src/digitv2/index.scss b/react/css/src/digitv2/index.scss index ba896270f02..8ec77ec1682 100644 --- a/react/css/src/digitv2/index.scss +++ b/react/css/src/digitv2/index.scss @@ -13,7 +13,7 @@ @import url("./components/fieldV1.scss"); @import url("./components/FormComposerV2.scss"); @import url("./components/infobuttonV2.scss"); -@import url("./components/infoCardV2.scss"); +@import url("./components/alertCardV2.scss"); @import url("./components/labelFieldPairV2.scss"); @import url("./components/mobileNumberV2.scss"); @import url("./components/multiSelectDropdownV2.scss"); @@ -25,7 +25,7 @@ @import url("./components/selectDropdownV2.scss"); @import url("./components/stepperV2.scss"); @import url("./components/switchV2.scss"); -@import url("./components/selectionCardV2.scss"); +@import url("./components/selectionTagV2.scss"); @import url("./components/textareaV2.scss"); @import url("./components/textblockV2.scss"); @import url("./components/textInputV2.scss"); @@ -33,21 +33,21 @@ @import url("./components/toastV2.scss"); @import url("./components/toggleV2.scss"); @import url("./components/treeSelectV2.scss"); -@import url("./components/uploaderV2.scss"); +@import url("./components/fileUploadV2.scss"); @import url("./components/viewCardFieldPairV2.scss"); -@import url("./components/actionbarV2.scss"); +@import url("./components/footerV2.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/sidenavV2.scss"); +@import url("./components/mobilesidenavV2.scss"); @import url("./components/tooltipwrapperV2.scss"); @import url("./components/tagV2.scss"); @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/sidePanelV2.scss"); @import url("./components/metricCardV2.scss"); @import url("./components/formCardV2.scss"); @import url("./components/filterCardV2.scss"); @@ -322,4 +322,10 @@ line-height: theme(digitv2.lineHeight.lineheight2); } } +} + +.sb-main-padded{ + &.sb-show-main{ + background-color: theme(digitv2.lightTheme.paper-primary); + } } \ No newline at end of file diff --git a/react/example/package.json b/react/example/package.json index a34f84165b3..d703c12acd4 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.59", + "@egovernments/digit-ui-components": "0.0.2-beta.60", "@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 a7350f1cebe..8820a0a94a2 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/Project/package.json b/react/modules/Project/package.json index 02264eba829..0fd43bbdb86 100644 --- a/react/modules/Project/package.json +++ b/react/modules/Project/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.59", + "@egovernments/digit-ui-components": "0.0.2-beta.60", "lodash": "^4.17.21", "react": "17.0.2", "react-date-range": "^1.4.0", diff --git a/react/modules/Project/src/pages/employee/CreateProject/CreateProjectResponse.js b/react/modules/Project/src/pages/employee/CreateProject/CreateProjectResponse.js index 0dcf37cb080..ad42d0455b4 100644 --- a/react/modules/Project/src/pages/employee/CreateProject/CreateProjectResponse.js +++ b/react/modules/Project/src/pages/employee/CreateProject/CreateProjectResponse.js @@ -6,7 +6,7 @@ import { LinkLabel, Card, SubmitBar, - ActionBar, + Footer, ArrowLeftWhite, AddFileFilled, } from "@egovernments/digit-ui-components"; @@ -82,11 +82,11 @@ const CreateProjectResponse = () => { )} - +
- +
); }; diff --git a/react/modules/Project/src/pages/employee/ProjectDetails/index.js b/react/modules/Project/src/pages/employee/ProjectDetails/index.js index ac2d044ce7b..a514f2d953e 100644 --- a/react/modules/Project/src/pages/employee/ProjectDetails/index.js +++ b/react/modules/Project/src/pages/employee/ProjectDetails/index.js @@ -10,7 +10,7 @@ import { Card, Loader, SubmitBar, - ActionBar, + Footer, HorizontalNav, Toast, } from "@egovernments/digit-ui-components"; @@ -286,7 +286,7 @@ const ProjectDetails = () => { /> {!hideActionBar && ( - +
{showActions ? ( { label={t("WORKS_ACTIONS")} onSubmit={() => setShowActions(!showActions)} /> - +
)} {toast?.show && ( { />
- { } label={"Info"} /> - { } label={"Success"} /> - { } label={"Warning"} /> - { label={"Error"} /> - { additionalElements={additionalElementsforInfoCard} /> - {!workflowDetails?.isLoading && isMenuBotton && !isSingleButton && ( - +
{displayMenu && (workflowDetails?.data?.actionState?.nextActions || workflowDetails?.data?.nextActions) ? ( ) : null} setDisplayMenu(!displayMenu)} /> - +
)} {!workflowDetails?.isLoading && !isMenuBotton && isSingleButton && ( - +
- +
)} ); diff --git a/react/package.json b/react/package.json index d7eac559be7..c14810f4b36 100644 --- a/react/package.json +++ b/react/package.json @@ -81,13 +81,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.43", + "@egovernments/digit-ui-components-css":"0.0.2-beta.44", "@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.14", - "@egovernments/digit-ui-components": "0.0.2-beta.59", + "@egovernments/digit-ui-components": "0.0.2-beta.60", "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 163647117b2..2072efc9d0f 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 5d3a1273d94..253c36dd2e8 100644 --- a/react/ui-components/CHANGELOG.md +++ b/react/ui-components/CHANGELOG.md @@ -4,6 +4,16 @@ 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.60] - 2024-12-26 +### New Changes +- SelectionCard Component is renamed as SelectionTag Component +- AccordionWrapper Molecule is renamed as AccordionList +- Sidebar Molecule is renamed as SideNav +- MobileSideBar Molecule is renamed as MobileSideNav +- SlideOverMenu Molecule is renamed as SidePanel +- InfoCard Component is renamed as AlertCard +- Uploader Component is renamed as FileUpload +- ActionBar Component is renamed as Footer ## [0.0.2-beta.56] - 2024-11-16 ### New Changes diff --git a/react/ui-components/package.json b/react/ui-components/package.json index 92ba1460658..976a2377e9c 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.59", + "version": "0.0.2-beta.60", "license": "MIT", "main": "dist/index.js", "module": "dist/index.modern.js", @@ -52,7 +52,7 @@ "dist" ], "dependencies": { - "@egovernments/digit-ui-components-css": "0.0.2-beta.43", + "@egovernments/digit-ui-components-css": "0.0.2-beta.44", "@egovernments/digit-ui-libraries": "1.8.1-beta.1", "@egovernments/digit-ui-svg-components": "1.0.14", "@googlemaps/js-api-loader": "1.13.10", diff --git a/react/ui-components/public/index.html b/react/ui-components/public/index.html index 9826e409c87..22b65cbdca7 100644 --- a/react/ui-components/public/index.html +++ b/react/ui-components/public/index.html @@ -7,7 +7,7 @@ - +