From ee3620c8d14e1eb7e4593ffa515242e56d050acc Mon Sep 17 00:00:00 2001 From: HenriqueSSan Date: Thu, 12 Jan 2023 16:22:24 -0300 Subject: [PATCH] refactor(workspace): created folder organisms, organisms folder have Header,Footer,Sidebar components --- .../Organisms}/Footer/$Footer.module.scss | 0 .../Organisms}/Footer/$Footer.tsx | 0 .../Organisms}/Footer/@types/index.d.ts | 2 +- .../Organisms}/Footer/assets/icons/facebook.svg | 0 .../Organisms}/Footer/assets/icons/instagram.svg | 0 .../Organisms}/Footer/assets/icons/linkedin.svg | 0 .../Organisms}/Footer/assets/icons/twitter.svg | 0 .../Organisms}/Footer/assets/icons/youtube.svg | 0 .../Organisms}/Footer/assets/imgs/Boleto.png | Bin .../Organisms}/Footer/assets/imgs/Diners.png | Bin .../Organisms}/Footer/assets/imgs/Elo.png | Bin .../Organisms}/Footer/assets/imgs/Hiper.png | Bin .../Organisms}/Footer/assets/imgs/Master.png | Bin .../Organisms}/Footer/assets/imgs/Paypal.png | Bin .../Organisms}/Footer/assets/imgs/Visa.png | Bin .../Organisms}/Footer/assets/imgs/svgs/M3.svg | 0 .../Organisms}/Footer/assets/imgs/svgs/Vtex.svg | 0 .../Organisms}/Footer/assets/imgs/vtex-pci-200.png | Bin .../Organisms}/Footer/containers/_List.tsx | 6 +++--- .../Organisms}/Footer/containers/_Newsletter.tsx | 0 .../Organisms}/Footer/containers/_Payment.tsx | 2 +- .../Organisms}/Footer/containers/__Contact.tsx | 4 ++-- .../Footer/containers/__Institutional.tsx | 4 ++-- .../Organisms}/Footer/containers/__Question.tsx | 4 ++-- .../Organisms}/Footer/containers/__Socials.tsx | 2 +- .../Organisms}/Footer/containers/index.tsx | 0 .../Organisms}/Footer/index.ts | 0 .../Organisms}/Header/$Header.module.scss | 0 .../Organisms}/Header/$Header.tsx | 0 .../Organisms}/Header/assets/icons/hamburger.svg | 0 .../Organisms}/Header/assets/icons/minicart.svg | 0 .../Organisms}/Header/assets/icons/search.svg | 0 .../Organisms}/Header/assets/icons/x.svg | 0 .../Organisms}/Header/assets/m3-logo-medium.png | Bin .../Organisms}/Header/assets/m3-logo-small.png | Bin .../Organisms}/Header/containers/@types/index.d.ts | 0 .../Organisms}/Header/containers/_Bottom.tsx | 2 +- .../Organisms}/Header/containers/_Search.tsx | 2 +- .../Organisms}/Header/containers/_Top.tsx | 2 +- .../Organisms}/Header/containers/__Actions.tsx | 4 ++-- .../Organisms}/Header/containers/index.tsx | 0 .../Organisms}/Header/index.ts | 0 .../Organisms}/Sidebar/$Sidebar.module.scss | 0 .../Organisms}/Sidebar/$Sidebar.tsx | 0 .../Organisms}/Sidebar/index.ts | 0 src/routes/$Routes.tsx | 4 ++-- 46 files changed, 19 insertions(+), 19 deletions(-) rename src/{template => components/Organisms}/Footer/$Footer.module.scss (100%) rename src/{template => components/Organisms}/Footer/$Footer.tsx (100%) rename src/{template => components/Organisms}/Footer/@types/index.d.ts (84%) rename src/{template => components/Organisms}/Footer/assets/icons/facebook.svg (100%) rename src/{template => components/Organisms}/Footer/assets/icons/instagram.svg (100%) rename src/{template => components/Organisms}/Footer/assets/icons/linkedin.svg (100%) rename src/{template => components/Organisms}/Footer/assets/icons/twitter.svg (100%) rename src/{template => components/Organisms}/Footer/assets/icons/youtube.svg (100%) rename src/{template => components/Organisms}/Footer/assets/imgs/Boleto.png (100%) rename src/{template => components/Organisms}/Footer/assets/imgs/Diners.png (100%) rename src/{template => components/Organisms}/Footer/assets/imgs/Elo.png (100%) rename src/{template => components/Organisms}/Footer/assets/imgs/Hiper.png (100%) rename src/{template => components/Organisms}/Footer/assets/imgs/Master.png (100%) rename src/{template => components/Organisms}/Footer/assets/imgs/Paypal.png (100%) rename src/{template => components/Organisms}/Footer/assets/imgs/Visa.png (100%) rename src/{template => components/Organisms}/Footer/assets/imgs/svgs/M3.svg (100%) rename src/{template => components/Organisms}/Footer/assets/imgs/svgs/Vtex.svg (100%) rename src/{template => components/Organisms}/Footer/assets/imgs/vtex-pci-200.png (100%) rename src/{template => components/Organisms}/Footer/containers/_List.tsx (82%) rename src/{template => components/Organisms}/Footer/containers/_Newsletter.tsx (100%) rename src/{template => components/Organisms}/Footer/containers/_Payment.tsx (96%) rename src/{template => components/Organisms}/Footer/containers/__Contact.tsx (83%) rename src/{template => components/Organisms}/Footer/containers/__Institutional.tsx (86%) rename src/{template => components/Organisms}/Footer/containers/__Question.tsx (86%) rename src/{template => components/Organisms}/Footer/containers/__Socials.tsx (93%) rename src/{template => components/Organisms}/Footer/containers/index.tsx (100%) rename src/{template => components/Organisms}/Footer/index.ts (100%) rename src/{template => components/Organisms}/Header/$Header.module.scss (100%) rename src/{template => components/Organisms}/Header/$Header.tsx (100%) rename src/{template => components/Organisms}/Header/assets/icons/hamburger.svg (100%) rename src/{template => components/Organisms}/Header/assets/icons/minicart.svg (100%) rename src/{template => components/Organisms}/Header/assets/icons/search.svg (100%) rename src/{template => components/Organisms}/Header/assets/icons/x.svg (100%) rename src/{template => components/Organisms}/Header/assets/m3-logo-medium.png (100%) rename src/{template => components/Organisms}/Header/assets/m3-logo-small.png (100%) rename src/{template => components/Organisms}/Header/containers/@types/index.d.ts (100%) rename src/{template => components/Organisms}/Header/containers/_Bottom.tsx (94%) rename src/{template => components/Organisms}/Header/containers/_Search.tsx (89%) rename src/{template => components/Organisms}/Header/containers/_Top.tsx (94%) rename src/{template => components/Organisms}/Header/containers/__Actions.tsx (71%) rename src/{template => components/Organisms}/Header/containers/index.tsx (100%) rename src/{template => components/Organisms}/Header/index.ts (100%) rename src/{template => components/Organisms}/Sidebar/$Sidebar.module.scss (100%) rename src/{template => components/Organisms}/Sidebar/$Sidebar.tsx (100%) rename src/{template => components/Organisms}/Sidebar/index.ts (100%) diff --git a/src/template/Footer/$Footer.module.scss b/src/components/Organisms/Footer/$Footer.module.scss similarity index 100% rename from src/template/Footer/$Footer.module.scss rename to src/components/Organisms/Footer/$Footer.module.scss diff --git a/src/template/Footer/$Footer.tsx b/src/components/Organisms/Footer/$Footer.tsx similarity index 100% rename from src/template/Footer/$Footer.tsx rename to src/components/Organisms/Footer/$Footer.tsx diff --git a/src/template/Footer/@types/index.d.ts b/src/components/Organisms/Footer/@types/index.d.ts similarity index 84% rename from src/template/Footer/@types/index.d.ts rename to src/components/Organisms/Footer/@types/index.d.ts index f589b26..3f6725d 100644 --- a/src/template/Footer/@types/index.d.ts +++ b/src/components/Organisms/Footer/@types/index.d.ts @@ -1,4 +1,4 @@ -import { AccordionProps } from '../../../components/Molecules/Accordion/@types' +import { AccordionProps } from '../../../Molecules/Accordion/@types' export interface InstitutionalListProps extends Omit {} diff --git a/src/template/Footer/assets/icons/facebook.svg b/src/components/Organisms/Footer/assets/icons/facebook.svg similarity index 100% rename from src/template/Footer/assets/icons/facebook.svg rename to src/components/Organisms/Footer/assets/icons/facebook.svg diff --git a/src/template/Footer/assets/icons/instagram.svg b/src/components/Organisms/Footer/assets/icons/instagram.svg similarity index 100% rename from src/template/Footer/assets/icons/instagram.svg rename to src/components/Organisms/Footer/assets/icons/instagram.svg diff --git a/src/template/Footer/assets/icons/linkedin.svg b/src/components/Organisms/Footer/assets/icons/linkedin.svg similarity index 100% rename from src/template/Footer/assets/icons/linkedin.svg rename to src/components/Organisms/Footer/assets/icons/linkedin.svg diff --git a/src/template/Footer/assets/icons/twitter.svg b/src/components/Organisms/Footer/assets/icons/twitter.svg similarity index 100% rename from src/template/Footer/assets/icons/twitter.svg rename to src/components/Organisms/Footer/assets/icons/twitter.svg diff --git a/src/template/Footer/assets/icons/youtube.svg b/src/components/Organisms/Footer/assets/icons/youtube.svg similarity index 100% rename from src/template/Footer/assets/icons/youtube.svg rename to src/components/Organisms/Footer/assets/icons/youtube.svg diff --git a/src/template/Footer/assets/imgs/Boleto.png b/src/components/Organisms/Footer/assets/imgs/Boleto.png similarity index 100% rename from src/template/Footer/assets/imgs/Boleto.png rename to src/components/Organisms/Footer/assets/imgs/Boleto.png diff --git a/src/template/Footer/assets/imgs/Diners.png b/src/components/Organisms/Footer/assets/imgs/Diners.png similarity index 100% rename from src/template/Footer/assets/imgs/Diners.png rename to src/components/Organisms/Footer/assets/imgs/Diners.png diff --git a/src/template/Footer/assets/imgs/Elo.png b/src/components/Organisms/Footer/assets/imgs/Elo.png similarity index 100% rename from src/template/Footer/assets/imgs/Elo.png rename to src/components/Organisms/Footer/assets/imgs/Elo.png diff --git a/src/template/Footer/assets/imgs/Hiper.png b/src/components/Organisms/Footer/assets/imgs/Hiper.png similarity index 100% rename from src/template/Footer/assets/imgs/Hiper.png rename to src/components/Organisms/Footer/assets/imgs/Hiper.png diff --git a/src/template/Footer/assets/imgs/Master.png b/src/components/Organisms/Footer/assets/imgs/Master.png similarity index 100% rename from src/template/Footer/assets/imgs/Master.png rename to src/components/Organisms/Footer/assets/imgs/Master.png diff --git a/src/template/Footer/assets/imgs/Paypal.png b/src/components/Organisms/Footer/assets/imgs/Paypal.png similarity index 100% rename from src/template/Footer/assets/imgs/Paypal.png rename to src/components/Organisms/Footer/assets/imgs/Paypal.png diff --git a/src/template/Footer/assets/imgs/Visa.png b/src/components/Organisms/Footer/assets/imgs/Visa.png similarity index 100% rename from src/template/Footer/assets/imgs/Visa.png rename to src/components/Organisms/Footer/assets/imgs/Visa.png diff --git a/src/template/Footer/assets/imgs/svgs/M3.svg b/src/components/Organisms/Footer/assets/imgs/svgs/M3.svg similarity index 100% rename from src/template/Footer/assets/imgs/svgs/M3.svg rename to src/components/Organisms/Footer/assets/imgs/svgs/M3.svg diff --git a/src/template/Footer/assets/imgs/svgs/Vtex.svg b/src/components/Organisms/Footer/assets/imgs/svgs/Vtex.svg similarity index 100% rename from src/template/Footer/assets/imgs/svgs/Vtex.svg rename to src/components/Organisms/Footer/assets/imgs/svgs/Vtex.svg diff --git a/src/template/Footer/assets/imgs/vtex-pci-200.png b/src/components/Organisms/Footer/assets/imgs/vtex-pci-200.png similarity index 100% rename from src/template/Footer/assets/imgs/vtex-pci-200.png rename to src/components/Organisms/Footer/assets/imgs/vtex-pci-200.png diff --git a/src/template/Footer/containers/_List.tsx b/src/components/Organisms/Footer/containers/_List.tsx similarity index 82% rename from src/template/Footer/containers/_List.tsx rename to src/components/Organisms/Footer/containers/_List.tsx index 5fae035..44e181c 100644 --- a/src/template/Footer/containers/_List.tsx +++ b/src/components/Organisms/Footer/containers/_List.tsx @@ -1,9 +1,9 @@ import { ListProps } from '../@types' -import { AccordionProviderItems } from '../../../components/Molecules/Accordion/context/Items' +import { AccordionProviderItems } from '../../../Molecules/Accordion/context/Items' -import { Item } from '../../../components/Atoms/Item' -import { CustomLink } from '../../../components/Atoms/CustomLink' +import { Item } from '../../../Atoms/Item' +import { CustomLink } from '../../../Atoms/CustomLink' import { ContactList } from './__Contact' import { InstitutionalList } from './__Institutional' diff --git a/src/template/Footer/containers/_Newsletter.tsx b/src/components/Organisms/Footer/containers/_Newsletter.tsx similarity index 100% rename from src/template/Footer/containers/_Newsletter.tsx rename to src/components/Organisms/Footer/containers/_Newsletter.tsx diff --git a/src/template/Footer/containers/_Payment.tsx b/src/components/Organisms/Footer/containers/_Payment.tsx similarity index 96% rename from src/template/Footer/containers/_Payment.tsx rename to src/components/Organisms/Footer/containers/_Payment.tsx index 08dc91f..fa76ed2 100644 --- a/src/template/Footer/containers/_Payment.tsx +++ b/src/components/Organisms/Footer/containers/_Payment.tsx @@ -1,4 +1,4 @@ -import { Item } from '../../../components/Atoms/Item' +import { Item } from '../../../Atoms/Item' import BoletoImg from '../assets/imgs/Boleto.png' import DinersBrandImg from '../assets/imgs/Diners.png' diff --git a/src/template/Footer/containers/__Contact.tsx b/src/components/Organisms/Footer/containers/__Contact.tsx similarity index 83% rename from src/template/Footer/containers/__Contact.tsx rename to src/components/Organisms/Footer/containers/__Contact.tsx index 6c42cb6..b29d8cc 100644 --- a/src/template/Footer/containers/__Contact.tsx +++ b/src/components/Organisms/Footer/containers/__Contact.tsx @@ -1,7 +1,7 @@ import { ContactListProps } from '../@types' -import { Item } from '../../../components/Atoms/Item' -import { Accordion } from '../../../components/Molecules/Accordion/$Accordion' +import { Item } from '../../../Atoms/Item' +import { Accordion } from '../../../Molecules/Accordion/$Accordion' import styles from '../$Footer.module.scss' diff --git a/src/template/Footer/containers/__Institutional.tsx b/src/components/Organisms/Footer/containers/__Institutional.tsx similarity index 86% rename from src/template/Footer/containers/__Institutional.tsx rename to src/components/Organisms/Footer/containers/__Institutional.tsx index 74a26e6..c2eacb8 100644 --- a/src/template/Footer/containers/__Institutional.tsx +++ b/src/components/Organisms/Footer/containers/__Institutional.tsx @@ -1,8 +1,8 @@ import { InstitutionalListProps } from '../@types' -import { Accordion } from '../../../components/Molecules/Accordion/$Accordion' +import { Accordion } from '../../../Molecules/Accordion/$Accordion' -import { ItemList } from '../../../components/Molecules/ItemList' +import { ItemList } from '../../../Molecules/ItemList' import styles from '../$Footer.module.scss' diff --git a/src/template/Footer/containers/__Question.tsx b/src/components/Organisms/Footer/containers/__Question.tsx similarity index 86% rename from src/template/Footer/containers/__Question.tsx rename to src/components/Organisms/Footer/containers/__Question.tsx index cf983ea..18e3055 100644 --- a/src/template/Footer/containers/__Question.tsx +++ b/src/components/Organisms/Footer/containers/__Question.tsx @@ -1,7 +1,7 @@ import { QuestionsListProps } from '../@types' -import { Accordion } from '../../../components/Molecules/Accordion/$Accordion' -import { ItemList } from '../../../components/Molecules/ItemList' +import { Accordion } from '../../../Molecules/Accordion/$Accordion' +import { ItemList } from '../../../Molecules/ItemList' import styles from '../$Footer.module.scss' diff --git a/src/template/Footer/containers/__Socials.tsx b/src/components/Organisms/Footer/containers/__Socials.tsx similarity index 93% rename from src/template/Footer/containers/__Socials.tsx rename to src/components/Organisms/Footer/containers/__Socials.tsx index ff9d400..ac1fcf4 100644 --- a/src/template/Footer/containers/__Socials.tsx +++ b/src/components/Organisms/Footer/containers/__Socials.tsx @@ -1,4 +1,4 @@ -import { ItemList } from '../../../components/Molecules/ItemList' +import { ItemList } from '../../../Molecules/ItemList' import facebookIcon from '../assets/icons/facebook.svg' import instagramIcon from '../assets/icons/instagram.svg' diff --git a/src/template/Footer/containers/index.tsx b/src/components/Organisms/Footer/containers/index.tsx similarity index 100% rename from src/template/Footer/containers/index.tsx rename to src/components/Organisms/Footer/containers/index.tsx diff --git a/src/template/Footer/index.ts b/src/components/Organisms/Footer/index.ts similarity index 100% rename from src/template/Footer/index.ts rename to src/components/Organisms/Footer/index.ts diff --git a/src/template/Header/$Header.module.scss b/src/components/Organisms/Header/$Header.module.scss similarity index 100% rename from src/template/Header/$Header.module.scss rename to src/components/Organisms/Header/$Header.module.scss diff --git a/src/template/Header/$Header.tsx b/src/components/Organisms/Header/$Header.tsx similarity index 100% rename from src/template/Header/$Header.tsx rename to src/components/Organisms/Header/$Header.tsx diff --git a/src/template/Header/assets/icons/hamburger.svg b/src/components/Organisms/Header/assets/icons/hamburger.svg similarity index 100% rename from src/template/Header/assets/icons/hamburger.svg rename to src/components/Organisms/Header/assets/icons/hamburger.svg diff --git a/src/template/Header/assets/icons/minicart.svg b/src/components/Organisms/Header/assets/icons/minicart.svg similarity index 100% rename from src/template/Header/assets/icons/minicart.svg rename to src/components/Organisms/Header/assets/icons/minicart.svg diff --git a/src/template/Header/assets/icons/search.svg b/src/components/Organisms/Header/assets/icons/search.svg similarity index 100% rename from src/template/Header/assets/icons/search.svg rename to src/components/Organisms/Header/assets/icons/search.svg diff --git a/src/template/Header/assets/icons/x.svg b/src/components/Organisms/Header/assets/icons/x.svg similarity index 100% rename from src/template/Header/assets/icons/x.svg rename to src/components/Organisms/Header/assets/icons/x.svg diff --git a/src/template/Header/assets/m3-logo-medium.png b/src/components/Organisms/Header/assets/m3-logo-medium.png similarity index 100% rename from src/template/Header/assets/m3-logo-medium.png rename to src/components/Organisms/Header/assets/m3-logo-medium.png diff --git a/src/template/Header/assets/m3-logo-small.png b/src/components/Organisms/Header/assets/m3-logo-small.png similarity index 100% rename from src/template/Header/assets/m3-logo-small.png rename to src/components/Organisms/Header/assets/m3-logo-small.png diff --git a/src/template/Header/containers/@types/index.d.ts b/src/components/Organisms/Header/containers/@types/index.d.ts similarity index 100% rename from src/template/Header/containers/@types/index.d.ts rename to src/components/Organisms/Header/containers/@types/index.d.ts diff --git a/src/template/Header/containers/_Bottom.tsx b/src/components/Organisms/Header/containers/_Bottom.tsx similarity index 94% rename from src/template/Header/containers/_Bottom.tsx rename to src/components/Organisms/Header/containers/_Bottom.tsx index 11f962e..a2dacb5 100644 --- a/src/template/Header/containers/_Bottom.tsx +++ b/src/components/Organisms/Header/containers/_Bottom.tsx @@ -1,6 +1,6 @@ import { IBottomProps } from './@types' -import { ItemList } from '../../../components/Molecules/ItemList' +import { ItemList } from '../../../Molecules/ItemList' import { Actions } from './__Actions' import closeIcon from '../assets/icons/x.svg' diff --git a/src/template/Header/containers/_Search.tsx b/src/components/Organisms/Header/containers/_Search.tsx similarity index 89% rename from src/template/Header/containers/_Search.tsx rename to src/components/Organisms/Header/containers/_Search.tsx index 048e2e9..207410d 100644 --- a/src/template/Header/containers/_Search.tsx +++ b/src/components/Organisms/Header/containers/_Search.tsx @@ -2,7 +2,7 @@ import { useState } from 'react' import { ISearchProps } from './@types' -import { ButtonIcon } from '../../../components/Molecules/ButtonIcon' +import { ButtonIcon } from '../../../Molecules/ButtonIcon' import searchIcon from '../assets/icons/search.svg' diff --git a/src/template/Header/containers/_Top.tsx b/src/components/Organisms/Header/containers/_Top.tsx similarity index 94% rename from src/template/Header/containers/_Top.tsx rename to src/components/Organisms/Header/containers/_Top.tsx index c90b374..6ada0b6 100644 --- a/src/template/Header/containers/_Top.tsx +++ b/src/components/Organisms/Header/containers/_Top.tsx @@ -1,6 +1,6 @@ import { ITopProps } from './@types' -import { ButtonIcon } from '../../../components/Molecules/ButtonIcon' +import { ButtonIcon } from '../../../Molecules/ButtonIcon' import { Actions } from './__Actions' import { Search } from './_Search' diff --git a/src/template/Header/containers/__Actions.tsx b/src/components/Organisms/Header/containers/__Actions.tsx similarity index 71% rename from src/template/Header/containers/__Actions.tsx rename to src/components/Organisms/Header/containers/__Actions.tsx index 7d51077..8c0533e 100644 --- a/src/template/Header/containers/__Actions.tsx +++ b/src/components/Organisms/Header/containers/__Actions.tsx @@ -1,6 +1,6 @@ import { ActionsProps } from './@types' -import { CustomLink } from '../../../components/Atoms/CustomLink' -import { ButtonIcon } from '../../../components/Molecules/ButtonIcon' +import { CustomLink } from '../../../Atoms/CustomLink' +import { ButtonIcon } from '../../../Molecules/ButtonIcon' export function Actions({ handleClick, diff --git a/src/template/Header/containers/index.tsx b/src/components/Organisms/Header/containers/index.tsx similarity index 100% rename from src/template/Header/containers/index.tsx rename to src/components/Organisms/Header/containers/index.tsx diff --git a/src/template/Header/index.ts b/src/components/Organisms/Header/index.ts similarity index 100% rename from src/template/Header/index.ts rename to src/components/Organisms/Header/index.ts diff --git a/src/template/Sidebar/$Sidebar.module.scss b/src/components/Organisms/Sidebar/$Sidebar.module.scss similarity index 100% rename from src/template/Sidebar/$Sidebar.module.scss rename to src/components/Organisms/Sidebar/$Sidebar.module.scss diff --git a/src/template/Sidebar/$Sidebar.tsx b/src/components/Organisms/Sidebar/$Sidebar.tsx similarity index 100% rename from src/template/Sidebar/$Sidebar.tsx rename to src/components/Organisms/Sidebar/$Sidebar.tsx diff --git a/src/template/Sidebar/index.ts b/src/components/Organisms/Sidebar/index.ts similarity index 100% rename from src/template/Sidebar/index.ts rename to src/components/Organisms/Sidebar/index.ts diff --git a/src/routes/$Routes.tsx b/src/routes/$Routes.tsx index 6f7afa0..8d7de0e 100644 --- a/src/routes/$Routes.tsx +++ b/src/routes/$Routes.tsx @@ -1,9 +1,9 @@ import { Outlet, Route, Routes } from 'react-router-dom' -import { Header } from '../template/Header/$Header' +import { Header } from '../components/Organisms/Header/$Header' import { Sidebar } from '../template/Sidebar/$Sidebar' -import { Footer } from '../template/Footer/$Footer' +import { Footer } from '../components/Organisms/Footer/$Footer' import { Breadcrumb } from './containers/_BreadCrumb' import { ScrollFixed } from './containers/_ScrollFixed'