contentoh-components-library 21.0.15 → 21.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/index.js +6 -0
- package/src/assets/images/approveRejetPanel/approveRejetPanelCancel.svg +0 -4
- package/src/assets/images/approveRejetPanel/approveRejetPanelDelete.svg +0 -14
- package/src/assets/images/approveRejetPanel/approveRejetPanelExclude.svg +0 -3
- package/src/assets/images/approveRejetPanel/approveRejetPanelSave.svg +0 -4
- package/src/assets/images/listCommercialRetailers/listCommercialRetailers.svg +0 -3
- package/src/assets/images/menuProductImage/menuProductImage.svg +0 -9
- package/src/assets/images/menuProductImage/menuProductImageButton.svg +0 -3
- package/src/assets/images/registrationLoginFirstStep/countrySelectArgentina.svg +0 -1
- package/src/assets/images/registrationLoginFirstStep/countrySelectColombia.svg +0 -1
- package/src/assets/images/registrationLoginFirstStep/countrySelectCostaRica.svg +0 -1
- package/src/assets/images/registrationLoginFirstStep/countrySelectEcuador.svg +0 -1
- package/src/assets/images/registrationLoginFirstStep/countrySelectElSalvador.svg +0 -2364
- package/src/assets/images/registrationLoginFirstStep/countrySelectHonduras.svg +0 -1
- package/src/assets/images/registrationLoginFirstStep/countrySelectMexico.svg +0 -373
- package/src/assets/images/registrationLoginFirstStep/countrySelectPanam/303/241.svg +0 -1
- package/src/assets/images/registrationLoginFirstStep/countrySelectPer/303/272.svg +0 -1
- package/src/assets/images/verticalSideMenuMainPage/verticalSideMenuMainPageFAQS.svg +0 -12
- package/src/assets/images/verticalSideMenuMainPage/verticalSideMenuMainPageFocusProduct.svg +0 -11
- package/src/assets/images/verticalSideMenuMainPage/verticalSideMenuMainPageGroup.svg +0 -3
- package/src/assets/images/verticalSideMenuMainPage/verticalSideMenuMainPageLogo.svg +0 -12
- package/src/assets/images/verticalSideMenuMainPage/verticalSideMenuMainPageSpeedometer.svg +0 -12
- package/src/assets/images/verticalSideMenuMainPage/verticalSideMenuMainPageTask.svg +0 -10
- package/src/components/atoms/ListCommercialRetailers/ListCommercialRetailers.stories.js +0 -17
- package/src/components/atoms/ListCommercialRetailers/index.js +0 -45
- package/src/components/atoms/ListCommercialRetailers/styles.js +0 -36
- package/src/components/atoms/MenuCommercialRetailers/MenuCommercialRetailers.stories.js +0 -19
- package/src/components/atoms/MenuCommercialRetailers/index.js +0 -14
- package/src/components/atoms/MenuCommercialRetailers/styles.js +0 -24
- package/src/components/atoms/MenuProductImage/MenuProductImage.stories.js +0 -14
- package/src/components/atoms/MenuProductImage/index.js +0 -63
- package/src/components/atoms/MenuProductImage/styles.js +0 -66
- package/src/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +0 -12
- package/src/components/atoms/VerticalSideMenuMainPage/index.js +0 -23
- package/src/components/atoms/VerticalSideMenuMainPage/styles.js +0 -24
- package/src/components/molecules/ApproveRejetPanel/ApproveRejetPanel.stories.js +0 -14
- package/src/components/molecules/ApproveRejetPanel/index.js +0 -36
- package/src/components/molecules/ApproveRejetPanel/styles.js +0 -13
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<svg width="22" height="23" viewBox="0 0 22 23" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<g clip-path="url(#clip0_2066_1912)">
|
|
3
|
-
<path d="M17.3454 2.1929H15.2541V1.35938C15.2541 0.884705 14.8694 0.5 14.3947 0.5H7.634C7.15933 0.5 6.77463 0.884705 6.77463 1.35938V2.1929H4.68359C3.49893 2.1929 2.53516 3.15668 2.53516 4.34134V20.3516C2.53516 21.5362 3.49893 22.5 4.68359 22.5H17.3454C18.5301 22.5 19.4939 21.5362 19.4939 20.3516V4.34134C19.4939 3.15668 18.5299 2.1929 17.3454 2.1929ZM13.5353 2.21875V3.88597H8.49321C8.49321 3.31479 8.49321 2.84297 8.49321 2.21875H13.5353ZM17.7751 20.3516C17.7751 20.5886 17.5823 20.7812 17.3454 20.7812H4.68359C4.44659 20.7812 4.25391 20.5886 4.25391 20.3516V4.34134C4.25391 4.10451 4.44659 3.91165 4.68359 3.91165H6.77446V4.74535C6.77446 5.22002 7.15933 5.60472 7.63383 5.60472H14.3947C14.8692 5.60472 15.2541 5.22002 15.2541 4.74535V3.91165H17.3454C17.5823 3.91165 17.7751 4.10451 17.7751 4.34134V20.3516ZM15.0021 10.534C15.3378 10.8697 15.3378 11.4139 15.0021 11.7494L10.4861 16.2655C10.1505 16.6012 9.60637 16.6012 9.27068 16.2655L7.0264 14.0212C6.69087 13.6857 6.69087 13.1415 7.0264 12.8058C7.36209 12.4703 7.90608 12.4703 8.24178 12.8058L9.87845 14.4425L13.7868 10.5342C14.1225 10.1985 14.6664 10.1985 15.0021 10.534Z" fill="#FAFAFA"/>
|
|
4
|
-
</g>
|
|
5
|
-
<defs>
|
|
6
|
-
<clipPath id="clip0_2066_1912">
|
|
7
|
-
<rect width="22" height="22" fill="white" transform="translate(0 0.5)"/>
|
|
8
|
-
</clipPath>
|
|
9
|
-
</defs>
|
|
10
|
-
</svg>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ListCommercialRetailers } from "./index";
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: "Components/atoms/ListCommercialRetailers",
|
|
5
|
-
component: ListCommercialRetailers,
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
const Template = (args) => <ListCommercialRetailers {...args} />;
|
|
9
|
-
export const ListCommercialRetailersDefault = Template.bind({});
|
|
10
|
-
|
|
11
|
-
ListCommercialRetailersDefault.args = {
|
|
12
|
-
retailersAvailable: [
|
|
13
|
-
{ id: 54, name: "Construrama", country: "México", id_region: 1, active: 1 },
|
|
14
|
-
{ id: 4, name: "Walmart Super y Superama" },
|
|
15
|
-
{ id: 6, name: "HEB" },
|
|
16
|
-
],
|
|
17
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Container } from "./styles";
|
|
2
|
-
import ListCommercialRetailersUp from "../../../assets/images/listCommercialRetailers/listCommercialRetailers.svg";
|
|
3
|
-
import { useEffect, useState } from "react";
|
|
4
|
-
import { CheckBox } from "../CheckBox/index";
|
|
5
|
-
|
|
6
|
-
export const ListCommercialRetailers = ({ retailersAvailable }) => {
|
|
7
|
-
const [showMenu, setShowMenu] = useState(false);
|
|
8
|
-
const closeMenu = (e) => {
|
|
9
|
-
if (!e.target.closest(".menu-list-commercial-retailers") && showMenu) {
|
|
10
|
-
document.removeEventListener("click", closeMenu, false);
|
|
11
|
-
setShowMenu(false);
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
useEffect(() => {
|
|
15
|
-
if (showMenu) {
|
|
16
|
-
document.addEventListener("click", closeMenu, false);
|
|
17
|
-
}
|
|
18
|
-
}, [showMenu]);
|
|
19
|
-
return (
|
|
20
|
-
<Container
|
|
21
|
-
onClick={(event) => {
|
|
22
|
-
if (!showMenu) {
|
|
23
|
-
setShowMenu(true);
|
|
24
|
-
} else if (
|
|
25
|
-
showMenu &&
|
|
26
|
-
!event.target.closest(".menu-list-commercial-retailers")
|
|
27
|
-
) {
|
|
28
|
-
setShowMenu(false);
|
|
29
|
-
document.removeEventListener("click", closeMenu, false);
|
|
30
|
-
}
|
|
31
|
-
}}
|
|
32
|
-
className="list-commercial-retailers"
|
|
33
|
-
>
|
|
34
|
-
<img src={ListCommercialRetailersUp} alt="button up icon" />
|
|
35
|
-
{showMenu && (
|
|
36
|
-
<div className="menu-list-commercial-retailers">
|
|
37
|
-
{retailersAvailable?.map((component, index) => (
|
|
38
|
-
<CheckBox id={component.id} label={component.name} key={index+"-"+component.id}></CheckBox>
|
|
39
|
-
|
|
40
|
-
))}
|
|
41
|
-
</div>
|
|
42
|
-
)}
|
|
43
|
-
</Container>
|
|
44
|
-
);
|
|
45
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
import { GlobalColors, FontFamily } from "../../../global-files/variables";
|
|
3
|
-
|
|
4
|
-
export const Container = styled.button`
|
|
5
|
-
background: transparent;
|
|
6
|
-
border: 1px solid ${GlobalColors.magenta_s2};
|
|
7
|
-
border-radius: 2px;
|
|
8
|
-
padding: 3px;
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
cursor: pointer;
|
|
12
|
-
position: relative;
|
|
13
|
-
height: 30px;
|
|
14
|
-
.menu-list-commercial-retailers {
|
|
15
|
-
width: 540px;
|
|
16
|
-
height: auto;
|
|
17
|
-
border-radius: 7px;
|
|
18
|
-
background-color: ${GlobalColors.s2};
|
|
19
|
-
padding: 14px 14px 8px 20px;
|
|
20
|
-
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
|
|
21
|
-
position: absolute;
|
|
22
|
-
top: calc(100% + 3px);
|
|
23
|
-
right: calc(100% - 20px);
|
|
24
|
-
display: flex;
|
|
25
|
-
flex-wrap: wrap;
|
|
26
|
-
z-index: 1;
|
|
27
|
-
div {
|
|
28
|
-
& + * {
|
|
29
|
-
margin-left: 15px;
|
|
30
|
-
}
|
|
31
|
-
p {
|
|
32
|
-
font-size: 11px;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
`;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { MenuCommercialRetailers } from "./index";
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: "Components/atoms/MenuCommercialRetailers",
|
|
5
|
-
component: MenuCommercialRetailers,
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
const Template = (args) => <MenuCommercialRetailers {...args} />;
|
|
9
|
-
|
|
10
|
-
export const MenuCommercialRetailersDefault = Template.bind({});
|
|
11
|
-
|
|
12
|
-
MenuCommercialRetailersDefault.args = {
|
|
13
|
-
editType:"3",
|
|
14
|
-
retailersAvailable: [
|
|
15
|
-
{ id: 54, name: "Construrama", country: "México", id_region: 1, active: 1 },
|
|
16
|
-
{ id: 4, name: "Walmart Super y Superama" },
|
|
17
|
-
{ id: 6, name: "HEB" },
|
|
18
|
-
],
|
|
19
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Container } from "./styles";
|
|
2
|
-
import { StatusTag } from "../StatusTag";
|
|
3
|
-
import { ListCommercialRetailers } from "../ListCommercialRetailers";
|
|
4
|
-
|
|
5
|
-
export const MenuCommercialRetailers = ({editType,retailersAvailable}) => {
|
|
6
|
-
return (
|
|
7
|
-
<Container>
|
|
8
|
-
<StatusTag editType={editType} ovalForm={true} />
|
|
9
|
-
<ListCommercialRetailers
|
|
10
|
-
retailersAvailable={retailersAvailable}
|
|
11
|
-
/>
|
|
12
|
-
</Container>
|
|
13
|
-
);
|
|
14
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
import { GlobalColors } from "../../../global-files/variables";
|
|
3
|
-
|
|
4
|
-
export const Container = styled.div`
|
|
5
|
-
display: flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
.status-version {
|
|
8
|
-
& + * {
|
|
9
|
-
margin-left: 5px;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
.list-commercial-retailers {
|
|
13
|
-
border: 1px solid transparent;
|
|
14
|
-
img {
|
|
15
|
-
display: none;
|
|
16
|
-
}
|
|
17
|
-
&:hover {
|
|
18
|
-
border: 1px solid ${GlobalColors.magenta_s2};
|
|
19
|
-
img {
|
|
20
|
-
display: block;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
`;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { MenuProductImage } from "./index";
|
|
2
|
-
import productImage from "../../../assets/images/menuProductImage/menuProductImage.svg";
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
title: "Components/atoms/MenuProductImage",
|
|
6
|
-
component: MenuProductImage,
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
const Template = (args) => <MenuProductImage {...args} />;
|
|
10
|
-
|
|
11
|
-
export const MenuProductImageDefault = Template.bind({});
|
|
12
|
-
MenuProductImageDefault.args = {
|
|
13
|
-
ProductImg: productImage,
|
|
14
|
-
};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { Container } from "./styles";
|
|
2
|
-
import menuProductImage from "../../../assets/images/menuProductImage/menuProductImageButton.svg";
|
|
3
|
-
import { useEffect, useState } from "react";
|
|
4
|
-
import { LoadImageMenu } from "../LoadImageMenu/index";
|
|
5
|
-
import GenericModalUp from "../../../assets/images/listCommercialRetailers/listCommercialRetailers.svg";
|
|
6
|
-
|
|
7
|
-
export const MenuProductImage = ({ProductImg}) => {
|
|
8
|
-
const [showMenu, setShowMenu] = useState(false);
|
|
9
|
-
const closeMenu = (e) => {
|
|
10
|
-
if (!e.target.closest(".menu-upload-product") && showMenu) {
|
|
11
|
-
document.removeEventListener("click", closeMenu, false);
|
|
12
|
-
setShowMenu(false);
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
useEffect(() => {
|
|
16
|
-
if (showMenu) {
|
|
17
|
-
document.addEventListener("click", closeMenu, false);
|
|
18
|
-
}
|
|
19
|
-
}, [showMenu]);
|
|
20
|
-
return (
|
|
21
|
-
<Container className="div-upload-image">
|
|
22
|
-
<img className="profile-image" src={ProductImg} alt="Product Image"></img>
|
|
23
|
-
<button
|
|
24
|
-
onClick={(event) => {
|
|
25
|
-
if (!showMenu) {
|
|
26
|
-
setShowMenu(true);
|
|
27
|
-
} else if (
|
|
28
|
-
showMenu &&
|
|
29
|
-
!event.target.closest(".menu-upload-product")
|
|
30
|
-
) {
|
|
31
|
-
setShowMenu(false);
|
|
32
|
-
document.removeEventListener("click", closeMenu, false);
|
|
33
|
-
}
|
|
34
|
-
}}
|
|
35
|
-
className={"upload-image-button " + (showMenu && "show-menu-upload-image")}
|
|
36
|
-
>
|
|
37
|
-
<img src={showMenu ? GenericModalUp : menuProductImage} alt="Product Image Button" />
|
|
38
|
-
</button>
|
|
39
|
-
{showMenu && (
|
|
40
|
-
<div className="menu-upload-product">
|
|
41
|
-
<LoadImageMenu
|
|
42
|
-
tipo={"Tipo de empaque "}
|
|
43
|
-
product={"Producto expuesto"}
|
|
44
|
-
content={[
|
|
45
|
-
{ label: "Enbalaje adicional - 0" },
|
|
46
|
-
{ label: "En paquete - 1" },
|
|
47
|
-
{ label: "Producto expuesto - 2" },
|
|
48
|
-
{ label: "Embalaje multiforme - 3" },
|
|
49
|
-
{ label: "Si no es una imagen / no corresponde - X" },
|
|
50
|
-
]}
|
|
51
|
-
id={"menu-packaging-type"}
|
|
52
|
-
/>
|
|
53
|
-
<LoadImageMenu
|
|
54
|
-
tipo={"Tipo de imagen "}
|
|
55
|
-
product={"Render"}
|
|
56
|
-
content={[{ label: "fotografía del producto" }]}
|
|
57
|
-
id={"menu-image-type"}
|
|
58
|
-
/>
|
|
59
|
-
</div>
|
|
60
|
-
)}
|
|
61
|
-
</Container>
|
|
62
|
-
);
|
|
63
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
import { FontFamily, GlobalColors } from "../../../global-files/variables";
|
|
3
|
-
|
|
4
|
-
export const Container = styled.div`
|
|
5
|
-
display: flex;
|
|
6
|
-
justify-content: space-between;
|
|
7
|
-
align-items: center;
|
|
8
|
-
position: relative;
|
|
9
|
-
.profile-image {
|
|
10
|
-
width: 23px;
|
|
11
|
-
height: 23px;
|
|
12
|
-
& + * {
|
|
13
|
-
margin-left: 8px;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
.upload-image-button {
|
|
17
|
-
background: transparent;
|
|
18
|
-
border: 1px solid transparent;
|
|
19
|
-
border-radius: 2px;
|
|
20
|
-
padding: 3px;
|
|
21
|
-
display: flex;
|
|
22
|
-
align-items: center;
|
|
23
|
-
cursor: pointer;
|
|
24
|
-
height: 30px;
|
|
25
|
-
width: 15px;
|
|
26
|
-
left: 100%;
|
|
27
|
-
img {
|
|
28
|
-
display: none;
|
|
29
|
-
}
|
|
30
|
-
&:hover {
|
|
31
|
-
border: 1px solid ${GlobalColors.s3};
|
|
32
|
-
img {
|
|
33
|
-
display: block;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
&.show-menu-upload-image {
|
|
37
|
-
border: 1px solid ${GlobalColors.magenta_s2};
|
|
38
|
-
img {
|
|
39
|
-
display: block;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
.menu-upload-product {
|
|
44
|
-
background: ${GlobalColors.s2};
|
|
45
|
-
border: 1px solid ${GlobalColors.s3};
|
|
46
|
-
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
|
|
47
|
-
border-radius: 7px;
|
|
48
|
-
width: 324px;
|
|
49
|
-
padding: 8px 0px;
|
|
50
|
-
position: absolute;
|
|
51
|
-
right: 0%;
|
|
52
|
-
z-index: 1;
|
|
53
|
-
top: 30px;
|
|
54
|
-
button {
|
|
55
|
-
left: 0%;
|
|
56
|
-
border-radius: 7px;
|
|
57
|
-
span,
|
|
58
|
-
.tipo {
|
|
59
|
-
color: ${GlobalColors.s5};
|
|
60
|
-
}
|
|
61
|
-
.products {
|
|
62
|
-
color: ${GlobalColors.s4};
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
`;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { VerticalSideMenuMainPage } from "./index";
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: "Components/atoms/VerticalSideMenuMainPage",
|
|
5
|
-
component: VerticalSideMenuMainPage,
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
const Template = (args) => <VerticalSideMenuMainPage {...args} />;
|
|
9
|
-
|
|
10
|
-
export const VerticalSideMenuMainPageDefault = Template.bind({});
|
|
11
|
-
|
|
12
|
-
VerticalSideMenuMainPageDefault.args = {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Container } from "./styles";
|
|
2
|
-
import verticalSideMenuMainPageFaqs from "../../../assets/images/verticalSideMenuMainPage/verticalSideMenuMainPageFAQS.svg";
|
|
3
|
-
import verticalSideMenuMainPageFocusProduct from "../../../assets/images/verticalSideMenuMainPage/verticalSideMenuMainPageFocusProduct.svg";
|
|
4
|
-
import verticalSideMenuMainPageGroup from "../../../assets/images/verticalSideMenuMainPage/verticalSideMenuMainPageGroup.svg";
|
|
5
|
-
import verticalSideMenuMainPageLogo from "../../../assets/images/verticalSideMenuMainPage/verticalSideMenuMainPageLogo.svg";
|
|
6
|
-
import verticalSideMenuMainPageSpeedometer from "../../../assets/images/verticalSideMenuMainPage/verticalSideMenuMainPageSpeedometer.svg";
|
|
7
|
-
import verticalSideMenuMainPageTask from "../../../assets/images/verticalSideMenuMainPage/verticalSideMenuMainPageTask.svg";
|
|
8
|
-
|
|
9
|
-
export const VerticalSideMenuMainPage = () => {
|
|
10
|
-
return (
|
|
11
|
-
<Container>
|
|
12
|
-
<img src={verticalSideMenuMainPageLogo} alt="Logo"></img>
|
|
13
|
-
<div>
|
|
14
|
-
<img src={verticalSideMenuMainPageSpeedometer} alt="Speed Meter"></img>
|
|
15
|
-
<img src={verticalSideMenuMainPageFocusProduct} alt="Focus Product"></img>
|
|
16
|
-
<img src={verticalSideMenuMainPageGroup} alt="Group"></img>
|
|
17
|
-
<img src={verticalSideMenuMainPageLogo} alt="Logo"></img>
|
|
18
|
-
<img src={verticalSideMenuMainPageTask} alt="Task"></img>
|
|
19
|
-
</div>
|
|
20
|
-
<img src={verticalSideMenuMainPageFaqs} alt="FAQS"></img>
|
|
21
|
-
</Container>
|
|
22
|
-
);
|
|
23
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
|
|
3
|
-
export const Container = styled.div`
|
|
4
|
-
width: 60px;
|
|
5
|
-
height: 700px;
|
|
6
|
-
background: linear-gradient(180deg, #e33aa9 0%, #3b1366 100%);
|
|
7
|
-
border-radius: 50px;
|
|
8
|
-
padding: 30px 10px 20px 10px;
|
|
9
|
-
text-align: center;
|
|
10
|
-
img {
|
|
11
|
-
cursor: pointer;
|
|
12
|
-
}
|
|
13
|
-
img + div {
|
|
14
|
-
margin-top: 100px;
|
|
15
|
-
}
|
|
16
|
-
div {
|
|
17
|
-
img + * {
|
|
18
|
-
margin-top: 20px;
|
|
19
|
-
}
|
|
20
|
-
& + * {
|
|
21
|
-
margin-top: 250px;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
`;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ApproveRejetPanel } from "./index";
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: "Components/molecules/ApproveRejetPanel",
|
|
5
|
-
component: ApproveRejetPanel,
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
const Template = (args) => <ApproveRejetPanel {...args} />;
|
|
9
|
-
|
|
10
|
-
export const ApproveRejetPanelDefault = Template.bind({});
|
|
11
|
-
ApproveRejetPanelDefault.args = {
|
|
12
|
-
text:"113 productos",
|
|
13
|
-
check:false,
|
|
14
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ScreenHeader } from "../../atoms/ScreenHeader";
|
|
2
|
-
import { Avatar } from "../../atoms/Avatar";
|
|
3
|
-
import { Container } from "./styles";
|
|
4
|
-
import approveRejetPanelDelete from "../../../assets/images/approveRejetPanel/approveRejetPanelDelete.svg";
|
|
5
|
-
import approveRejetPanelCancel from "../../../assets/images/approveRejetPanel/approveRejetPanelCancel.svg";
|
|
6
|
-
import approveRejetPanelSave from "../../../assets/images/approveRejetPanel/approveRejetPanelSave.svg";
|
|
7
|
-
import approveRejetPanelExclude from "../../../assets/images/approveRejetPanel/approveRejetPanelExclude.svg";
|
|
8
|
-
import { FontFamily, GlobalColors } from "../../../global-files/variables";
|
|
9
|
-
|
|
10
|
-
export const ApproveRejetPanel = ({ text, check }) => {
|
|
11
|
-
return (
|
|
12
|
-
<Container>
|
|
13
|
-
<ScreenHeader
|
|
14
|
-
fontFamily={FontFamily.AvenirNext}
|
|
15
|
-
headerType={"date-header"}
|
|
16
|
-
color={GlobalColors.s4}
|
|
17
|
-
text={text}
|
|
18
|
-
></ScreenHeader>
|
|
19
|
-
<Avatar
|
|
20
|
-
image={approveRejetPanelDelete}
|
|
21
|
-
imageType={"big-image"}
|
|
22
|
-
altText={"delete button"}
|
|
23
|
-
></Avatar>
|
|
24
|
-
<Avatar
|
|
25
|
-
image={check?approveRejetPanelCancel:approveRejetPanelExclude}
|
|
26
|
-
imageType={"big-image"}
|
|
27
|
-
altText={check?"cancel button":"exclude button"}
|
|
28
|
-
></Avatar>
|
|
29
|
-
<Avatar
|
|
30
|
-
image={check?approveRejetPanelSave:approveRejetPanelExclude}
|
|
31
|
-
imageType={"big-image"}
|
|
32
|
-
altText={check?"save button":"exclude button"}
|
|
33
|
-
></Avatar>
|
|
34
|
-
</Container>
|
|
35
|
-
);
|
|
36
|
-
};
|