contentoh-components-library 21.4.57 → 21.4.59
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/dist/components/atoms/Avatar/index.js +2 -3
- package/dist/components/atoms/CheckBox/index.js +2 -7
- package/dist/components/atoms/CheckBox/styles.js +1 -1
- package/dist/components/atoms/InputFormatter/styles.js +1 -1
- package/dist/components/atoms/SliderToolTip/styles.js +1 -1
- package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/dist/components/molecules/HeaderTop/index.js +11 -68
- package/dist/components/molecules/SignInLogin/index.js +28 -36
- package/dist/components/molecules/StripeCardSelector/CardSelector.stories.js +2 -1
- package/dist/components/molecules/TagAndInput/index.js +3 -64
- package/dist/components/organisms/Chat/Chat.stories.js +8 -27
- package/dist/components/organisms/Chat/ContainerItems/index.js +3 -19
- package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
- package/dist/components/organisms/Chat/ContentChat/index.js +197 -350
- package/dist/components/organisms/Chat/Footer/index.js +39 -48
- package/dist/components/organisms/Chat/index.js +4 -49
- package/dist/components/organisms/Chat/styles.js +1 -1
- package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
- package/dist/components/organisms/InputGroup/index.js +48 -154
- package/dist/components/organisms/Modal/styles.js +1 -1
- package/dist/components/pages/Dashboard/index.js +2 -8
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +137 -123
- package/dist/components/pages/ProviderProductEdition/index.js +258 -269
- package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +3 -7
- package/dist/components/pages/RetailerProductEdition/index.js +276 -278
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/utils.js +2 -61
- package/dist/global-files/data.js +8 -21
- package/dist/global-files/variables.js +1 -5
- package/dist/index.js +58 -201
- package/package.json +1 -2
- package/src/components/atoms/Avatar/index.js +2 -8
- package/src/components/atoms/CheckBox/index.js +1 -4
- package/src/components/atoms/CheckBox/styles.js +0 -2
- package/src/components/atoms/InputFormatter/styles.js +1 -2
- package/src/components/atoms/SliderToolTip/styles.js +1 -1
- package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/src/components/molecules/HeaderTop/index.js +6 -52
- package/src/components/molecules/SignInLogin/index.js +11 -11
- package/src/components/molecules/StripeCardSelector/CardSelector.stories.js +2 -1
- package/src/components/molecules/TagAndInput/index.js +8 -52
- package/src/components/organisms/Chat/Chat.stories.js +7 -27
- package/src/components/organisms/Chat/ContainerItems/index.js +2 -18
- package/src/components/organisms/Chat/ContainerItems/styles.js +2 -14
- package/src/components/organisms/Chat/ContentChat/index.js +12 -88
- package/src/components/organisms/Chat/Footer/index.js +0 -11
- package/src/components/organisms/Chat/index.js +4 -46
- package/src/components/organisms/Chat/styles.js +0 -4
- package/src/components/organisms/FullProductNameHeader/index.js +1 -1
- package/src/components/organisms/InputGroup/index.js +88 -238
- package/src/components/organisms/Modal/styles.js +1 -4
- package/src/components/organisms/OrderDetail/utils/Table/utils.js +16 -6
- package/src/components/pages/Dashboard/index.js +1 -6
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +145 -141
- package/src/components/pages/ProviderProductEdition/index.js +148 -145
- package/src/components/pages/ProviderProductEdition/styles.js +1 -5
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +2 -6
- package/src/components/pages/RetailerProductEdition/index.js +144 -115
- package/src/components/pages/RetailerProductEdition/styles.js +0 -4
- package/src/components/pages/RetailerProductEdition/utils.js +0 -37
- package/src/global-files/data.js +6 -10
- package/src/global-files/variables.js +0 -4
- package/src/index.js +0 -11
- package/src/assets/images/Icons/info.svg +0 -8
- package/src/components/atoms/ImageCarousel/ImgeSlider.stories.js +0 -76
- package/src/components/atoms/ImageCarousel/index.js +0 -103
- package/src/components/atoms/ImageCarousel/styles.js +0 -79
- package/src/components/atoms/PercentTag/PercentTag.stories.js +0 -7
- package/src/components/atoms/PercentTag/index.js +0 -9
- package/src/components/atoms/PercentTag/styles.js +0 -69
- package/src/components/atoms/RatingStars/RatingStars.stories.js +0 -10
- package/src/components/atoms/RatingStars/index.js +0 -31
- package/src/components/atoms/RatingStars/styles.js +0 -28
- package/src/components/atoms/RetailerCatalog/RetailerCatalog.stories.js +0 -36
- package/src/components/atoms/RetailerCatalog/index.js +0 -49
- package/src/components/atoms/RetailerCatalog/styles.js +0 -30
- package/src/components/atoms/RetailerOption/RetailerOption.stories.js +0 -15
- package/src/components/atoms/RetailerOption/index.js +0 -53
- package/src/components/atoms/RetailerOption/styles.js +0 -41
- package/src/components/atoms/RetailersList/RetailersList.stories.js +0 -33
- package/src/components/atoms/RetailersList/index.js +0 -20
- package/src/components/atoms/RetailersList/styles.js +0 -19
- package/src/components/atoms/TabSection/styles.js +0 -23
- package/src/components/atoms/UserCatalog/UserCatalog.stories.js +0 -67
- package/src/components/atoms/UserCatalog/index.js +0 -100
- package/src/components/atoms/UserCatalog/styles.js +0 -24
- package/src/components/atoms/UserOption/UserOption.stories.js +0 -25
- package/src/components/atoms/UserOption/index.js +0 -95
- package/src/components/atoms/UserOption/styles.js +0 -61
- package/src/components/atoms/UserSelector/UserSelector.stories.js +0 -25
- package/src/components/atoms/UserSelector/index.js +0 -86
- package/src/components/atoms/UserSelector/styles.js +0 -55
- package/src/components/molecules/BoxAttribute/BoxAttribute.stories.js +0 -16
- package/src/components/molecules/BoxAttribute/index.js +0 -72
- package/src/components/molecules/BoxAttribute/styles.js +0 -41
- package/src/components/molecules/BoxButtons/BoxButtons.stories.js +0 -15
- package/src/components/molecules/BoxButtons/index.js +0 -32
- package/src/components/molecules/BoxButtons/styles.js +0 -43
- package/src/components/molecules/GridItem/GridItem.stories.js +0 -126
- package/src/components/molecules/GridItem/index.js +0 -105
- package/src/components/molecules/GridItem/styles.js +0 -104
- package/src/components/molecules/HeaderItem/ColumnItem.js +0 -9
- package/src/components/molecules/HeaderItem/HeaderItem.stories.js +0 -24
- package/src/components/molecules/HeaderItem/index.js +0 -26
- package/src/components/molecules/HeaderItem/styles.js +0 -27
- package/src/components/molecules/RowItem/ColumnItem.js +0 -9
- package/src/components/molecules/RowItem/RowItem.stories.js +0 -5660
- package/src/components/molecules/RowItem/index.js +0 -45
- package/src/components/molecules/RowItem/styles.js +0 -40
- package/src/components/organisms/Box/Box.stories.js +0 -17
- package/src/components/organisms/Box/index.js +0 -103
- package/src/components/organisms/Box/styles.js +0 -48
- package/src/components/organisms/BoxOnboarding/BoxOnboarding.stories.js +0 -17
- package/src/components/organisms/BoxOnboarding/index.js +0 -60
- package/src/components/organisms/BoxOnboarding/styles.js +0 -44
- package/src/components/organisms/GridProducts/GridProducts.stories.js +0 -5485
- package/src/components/organisms/GridProducts/index.js +0 -50
- package/src/components/organisms/GridProducts/styles.js +0 -14
- package/src/components/organisms/GridProducts/utils.js +0 -111
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Container, ContainerIcon } from "./styles";
|
|
2
|
-
import { Button } from "@mui/material";
|
|
3
|
-
|
|
4
|
-
export const BoxButtons = ({ showAdd, onAdd, onDelete, isTheFirstBox, index }) => {
|
|
5
|
-
return (
|
|
6
|
-
<Container index={index}>
|
|
7
|
-
{/* <Button variant="outlined" className="button-circle" onClick={onToggleEdit}>
|
|
8
|
-
<ContainerIcon>
|
|
9
|
-
<span className={`iconos-out ${isEditEnabled ? "iconos-grises" : ""}`}>edit</span>
|
|
10
|
-
</ContainerIcon>
|
|
11
|
-
</Button> */}
|
|
12
|
-
{!isTheFirstBox && (
|
|
13
|
-
<Button
|
|
14
|
-
variant="outlined"
|
|
15
|
-
className="button-circle"
|
|
16
|
-
onClick={onDelete}
|
|
17
|
-
>
|
|
18
|
-
<ContainerIcon>
|
|
19
|
-
<span className="iconos-out">delete_forever</span>
|
|
20
|
-
</ContainerIcon>
|
|
21
|
-
</Button>
|
|
22
|
-
)}
|
|
23
|
-
{showAdd && (
|
|
24
|
-
<Button onClick={onAdd} variant="outlined" className="button-circle">
|
|
25
|
-
<ContainerIcon>
|
|
26
|
-
<span className="iconos-out iconos-grises">add</span>
|
|
27
|
-
</ContainerIcon>
|
|
28
|
-
</Button>
|
|
29
|
-
)}
|
|
30
|
-
</Container>
|
|
31
|
-
);
|
|
32
|
-
};
|
|
@@ -1,43 +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
|
-
flex-direction:row;
|
|
7
|
-
gap:8px;
|
|
8
|
-
.button-circle{
|
|
9
|
-
width:30px;
|
|
10
|
-
height:30px;
|
|
11
|
-
padding:2px;
|
|
12
|
-
border-radius:100%;
|
|
13
|
-
min-width:30px;
|
|
14
|
-
border: 1px solid #F0F0F0;
|
|
15
|
-
}
|
|
16
|
-
.button-circle:hover {
|
|
17
|
-
border: 1px solid #F0F0F0;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
`;
|
|
21
|
-
export const ContainerIcon = styled.div`
|
|
22
|
-
cursor: pointer;
|
|
23
|
-
@font-face {
|
|
24
|
-
font-family: "Material Symbols Outlined";
|
|
25
|
-
font-style: normal;
|
|
26
|
-
font-weight: 100 700;
|
|
27
|
-
src: url(https://fonts.gstatic.com/s/materialsymbolsoutlined/v68/kJEhBvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oFsLjBuVY.woff2)
|
|
28
|
-
format("woff2");
|
|
29
|
-
}
|
|
30
|
-
.iconos-out {
|
|
31
|
-
font-family: "Material Symbols Outlined";
|
|
32
|
-
font-size: 20px;
|
|
33
|
-
//line-height: 1;
|
|
34
|
-
margin-top: 10px;
|
|
35
|
-
}
|
|
36
|
-
.iconos-out {
|
|
37
|
-
font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48;
|
|
38
|
-
color: #B64545;
|
|
39
|
-
}
|
|
40
|
-
.iconos-grises {
|
|
41
|
-
font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48;
|
|
42
|
-
color: ${GlobalColors.gray};
|
|
43
|
-
}`;
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { GridItem } from ".";
|
|
2
|
-
|
|
3
|
-
export default { title: "Components/molecules/GridItem", component: GridItem };
|
|
4
|
-
|
|
5
|
-
const Template = (args) => <GridItem {...args} />;
|
|
6
|
-
export const GridItemDefault = Template.bind({});
|
|
7
|
-
GridItemDefault.args = {
|
|
8
|
-
article: {
|
|
9
|
-
services: {
|
|
10
|
-
datasheets: 1,
|
|
11
|
-
descriptions: 1,
|
|
12
|
-
images: 1,
|
|
13
|
-
},
|
|
14
|
-
orderId: 15254,
|
|
15
|
-
status: "Ex",
|
|
16
|
-
datasheet_status: "Ex",
|
|
17
|
-
prio: "none",
|
|
18
|
-
version: 15,
|
|
19
|
-
description_status: "Ex",
|
|
20
|
-
images_status: "Ex",
|
|
21
|
-
statusByRetailer: {
|
|
22
|
-
70: {
|
|
23
|
-
datasheet: "Ex",
|
|
24
|
-
description: "Ex",
|
|
25
|
-
images: "Ex",
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
id_article: 38443,
|
|
29
|
-
id_category: "4319",
|
|
30
|
-
name: "Im Polvo Compacto Natural 2",
|
|
31
|
-
upc: "7501611823017",
|
|
32
|
-
timestamp: "2023-03-15T05:54:54.000Z",
|
|
33
|
-
id_user: 133,
|
|
34
|
-
status: "Ex",
|
|
35
|
-
active: 1,
|
|
36
|
-
company_id: 912,
|
|
37
|
-
company_name: "GRUPO BRAHMA",
|
|
38
|
-
country: "México",
|
|
39
|
-
id_order: 15254,
|
|
40
|
-
id_datasheet_especialist: 1841,
|
|
41
|
-
id_datasheet_facilitator: null,
|
|
42
|
-
id_description_especialist: 509,
|
|
43
|
-
id_description_facilitator: null,
|
|
44
|
-
id_images_especialist: 289,
|
|
45
|
-
id_images_facilitator: 160,
|
|
46
|
-
id_auditor: 493,
|
|
47
|
-
id_recepcionist: null,
|
|
48
|
-
category: "Salud y Belleza|Cosméticos|Cosméticos",
|
|
49
|
-
missingAttributes: 0,
|
|
50
|
-
missingDescriptions: 0,
|
|
51
|
-
missingImages: 0,
|
|
52
|
-
retailers: [
|
|
53
|
-
{
|
|
54
|
-
id: 70,
|
|
55
|
-
name: "Bodega Aurrera",
|
|
56
|
-
},
|
|
57
|
-
],
|
|
58
|
-
country: "México",
|
|
59
|
-
upc: "7501611823017",
|
|
60
|
-
imageArray: [
|
|
61
|
-
{
|
|
62
|
-
id: 35596,
|
|
63
|
-
status: null,
|
|
64
|
-
image_id: 1,
|
|
65
|
-
packing_type: "3",
|
|
66
|
-
image_type: "1",
|
|
67
|
-
article_id: "38443",
|
|
68
|
-
src: "https://d24s337exbt5zr.cloudfront.net/eyJidWNrZXQiOiJjb250ZW50LW1hbmFnZW1lbnQtaW1hZ2VzIiwia2V5IjoiaWQtMzg0NDMvMTUvMS1kNDQ2ZjIwNy0wYTkzLTQyNzgtYWZjNi01MTY2ZjIyY2EzNDMucG5nIiwiZWRpdHMiOnsicmVzaXplIjp7IndpZHRoIjoxMDAwLCJoZWlnaHQiOjEwMDAsImZpdCI6ImNvbnRhaW4iLCJiYWNrZ3JvdW5kIjp7InIiOjI1NSwiZyI6MjU1LCJiIjoyNTUsImFscGhhIjoxfX19fQ==",
|
|
69
|
-
timestamp: "2023-05-30T03:01:12.000Z",
|
|
70
|
-
id_version: 15,
|
|
71
|
-
width: null,
|
|
72
|
-
height: null,
|
|
73
|
-
scene_type: null,
|
|
74
|
-
image_shot_type: null,
|
|
75
|
-
last_modified: "2023-06-05T23:49:49.000Z",
|
|
76
|
-
name: "Central (Frente Comercial)",
|
|
77
|
-
version: 15,
|
|
78
|
-
ext: "png",
|
|
79
|
-
uuid: "d446f207-0a93-4278-afc6-5166f22ca343",
|
|
80
|
-
srcDB: "id-38443/15/1-d446f207-0a93-4278-afc6-5166f22ca343.png",
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
id: 35597,
|
|
84
|
-
status: null,
|
|
85
|
-
image_id: 3,
|
|
86
|
-
packing_type: "3",
|
|
87
|
-
image_type: "1",
|
|
88
|
-
article_id: "38443",
|
|
89
|
-
src: "https://d24s337exbt5zr.cloudfront.net/eyJidWNrZXQiOiJjb250ZW50LW1hbmFnZW1lbnQtaW1hZ2VzIiwia2V5IjoiaWQtMzg0NDMvMTUvMy0yOTZkMzU3ZC00OTUzLTRiMzktYjFjMy04YWZmZDI2NDgwMWIucG5nIiwiZWRpdHMiOnsicmVzaXplIjp7IndpZHRoIjoxMDAwLCJoZWlnaHQiOjEwMDAsImZpdCI6ImNvbnRhaW4iLCJiYWNrZ3JvdW5kIjp7InIiOjI1NSwiZyI6MjU1LCJiIjoyNTUsImFscGhhIjoxfX19fQ==",
|
|
90
|
-
timestamp: "2023-05-30T03:01:12.000Z",
|
|
91
|
-
id_version: 15,
|
|
92
|
-
width: null,
|
|
93
|
-
height: null,
|
|
94
|
-
scene_type: null,
|
|
95
|
-
image_shot_type: null,
|
|
96
|
-
last_modified: "2023-06-05T23:49:49.000Z",
|
|
97
|
-
name: "Trasera (Back)",
|
|
98
|
-
version: 15,
|
|
99
|
-
ext: "png",
|
|
100
|
-
uuid: "296d357d-4953-4b39-b1c3-8affd264801b",
|
|
101
|
-
srcDB: "id-38443/15/3-296d357d-4953-4b39-b1c3-8affd264801b.png",
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
id: 35598,
|
|
105
|
-
status: null,
|
|
106
|
-
image_id: 16,
|
|
107
|
-
packing_type: "3",
|
|
108
|
-
image_type: "1",
|
|
109
|
-
article_id: "38443",
|
|
110
|
-
src: "https://d24s337exbt5zr.cloudfront.net/eyJidWNrZXQiOiJjb250ZW50LW1hbmFnZW1lbnQtaW1hZ2VzIiwia2V5IjoiaWQtMzg0NDMvMTUvMTYtOGMzNDIzM2YtZTRiMC00MjU0LWFlYzUtZjEyN2ZiYjhkYmVkLnBuZyIsImVkaXRzIjp7InJlc2l6ZSI6eyJ3aWR0aCI6MTAwMCwiaGVpZ2h0IjoxMDAwLCJmaXQiOiJjb250YWluIiwiYmFja2dyb3VuZCI6eyJyIjoyNTUsImciOjI1NSwiYiI6MjU1LCJhbHBoYSI6MX19fX0=",
|
|
111
|
-
timestamp: "2023-05-30T03:01:12.000Z",
|
|
112
|
-
id_version: 15,
|
|
113
|
-
width: null,
|
|
114
|
-
height: null,
|
|
115
|
-
scene_type: null,
|
|
116
|
-
image_shot_type: null,
|
|
117
|
-
last_modified: "2023-06-05T23:49:49.000Z",
|
|
118
|
-
name: "Detalle / Características 1",
|
|
119
|
-
version: 15,
|
|
120
|
-
ext: "png",
|
|
121
|
-
uuid: "8c34233f-e4b0-4254-aec5-f127fbb8dbed",
|
|
122
|
-
srcDB: "id-38443/15/16-8c34233f-e4b0-4254-aec5-f127fbb8dbed.png",
|
|
123
|
-
},
|
|
124
|
-
],
|
|
125
|
-
},
|
|
126
|
-
};
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { Container } from "./styles";
|
|
2
|
-
import { ImageCarousel } from "../../atoms/ImageCarousel";
|
|
3
|
-
import { Status } from "../../atoms/Status";
|
|
4
|
-
import { PercentTag } from "../../atoms/PercentTag";
|
|
5
|
-
import { ButtonV2 } from "../../atoms/ButtonV2";
|
|
6
|
-
import { faStar as starIcon } from "@fortawesome/free-regular-svg-icons";
|
|
7
|
-
import { faCartPlus as cartIcon } from "@fortawesome/free-solid-svg-icons";
|
|
8
|
-
import { RatingStars } from "../../atoms/RatingStars";
|
|
9
|
-
import { CheckBox } from "../../atoms/CheckBox";
|
|
10
|
-
|
|
11
|
-
export const GridItem = ({
|
|
12
|
-
gridElement = {},
|
|
13
|
-
product,
|
|
14
|
-
id,
|
|
15
|
-
isMerchans,
|
|
16
|
-
chkOnChange,
|
|
17
|
-
onGridClick,
|
|
18
|
-
chkChecked,
|
|
19
|
-
index,
|
|
20
|
-
}) => {
|
|
21
|
-
const { images = [], info = [], status = [], catalogs = {} } = gridElement;
|
|
22
|
-
|
|
23
|
-
const getSrvName = (srv) => {
|
|
24
|
-
switch (srv) {
|
|
25
|
-
case "datasheet":
|
|
26
|
-
return "F.T.";
|
|
27
|
-
case "description":
|
|
28
|
-
return "D.C.";
|
|
29
|
-
case "images":
|
|
30
|
-
return "IMG";
|
|
31
|
-
case "general":
|
|
32
|
-
return "S.G.";
|
|
33
|
-
default:
|
|
34
|
-
return srv;
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
return (
|
|
39
|
-
<Container onClick={(e) => onGridClick && onGridClick(e, product, index)}>
|
|
40
|
-
<div className="chk-container" onClick={(e) => e.stopPropagation()}>
|
|
41
|
-
<CheckBox
|
|
42
|
-
id={"chk-" + id}
|
|
43
|
-
name={"chk-" + id}
|
|
44
|
-
className="chk-absolute"
|
|
45
|
-
onChange={(e) => chkOnChange && chkOnChange(e, product)}
|
|
46
|
-
defaultChecked={chkChecked && chkChecked(product)}
|
|
47
|
-
/>
|
|
48
|
-
</div>
|
|
49
|
-
<ImageCarousel imageArray={images} />
|
|
50
|
-
<div className="data-body">
|
|
51
|
-
{info?.map((item, i) =>
|
|
52
|
-
i === 0 ? <h3 key={i}>{item.value}</h3> : <p key={i}>{item.value}</p>
|
|
53
|
-
)}
|
|
54
|
-
</div>
|
|
55
|
-
<div className="status-slider">
|
|
56
|
-
{status?.map(({ title, value, percent }) => (
|
|
57
|
-
<div className="status-element">
|
|
58
|
-
{title && (
|
|
59
|
-
<div className="srv-name">
|
|
60
|
-
<p>{getSrvName(title)}</p>
|
|
61
|
-
</div>
|
|
62
|
-
)}
|
|
63
|
-
{value && <Status statusType={value} />}
|
|
64
|
-
{percent && (
|
|
65
|
-
<PercentTag percent={percent} progressBarType={value} />
|
|
66
|
-
)}
|
|
67
|
-
</div>
|
|
68
|
-
))}
|
|
69
|
-
</div>
|
|
70
|
-
{isMerchans ? (
|
|
71
|
-
<div className="cart-and-raiting">
|
|
72
|
-
<ButtonV2
|
|
73
|
-
borderType="circle"
|
|
74
|
-
type="whiteS2"
|
|
75
|
-
icon={starIcon}
|
|
76
|
-
size={10}
|
|
77
|
-
className="star-button"
|
|
78
|
-
/>
|
|
79
|
-
<ButtonV2
|
|
80
|
-
borderType="circle"
|
|
81
|
-
type="whiteS2"
|
|
82
|
-
icon={cartIcon}
|
|
83
|
-
size={10}
|
|
84
|
-
className="star-button"
|
|
85
|
-
/>
|
|
86
|
-
<ButtonV2
|
|
87
|
-
borderType="circle"
|
|
88
|
-
type="whiteS2"
|
|
89
|
-
icon={cartIcon}
|
|
90
|
-
size={10}
|
|
91
|
-
className="star-button"
|
|
92
|
-
/>
|
|
93
|
-
<RatingStars ratingValue={4} />
|
|
94
|
-
</div>
|
|
95
|
-
) : (
|
|
96
|
-
catalogs && (
|
|
97
|
-
<div className="retailers-and-user">
|
|
98
|
-
<div className="retailers-container">{catalogs.leftSide}</div>
|
|
99
|
-
<div className="users-container">{catalogs.rightSide}</div>
|
|
100
|
-
</div>
|
|
101
|
-
)
|
|
102
|
-
)}
|
|
103
|
-
</Container>
|
|
104
|
-
);
|
|
105
|
-
};
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
import { FontFamily } from "../../../global-files/variables";
|
|
3
|
-
|
|
4
|
-
export const Container = styled.div`
|
|
5
|
-
width: 175px;
|
|
6
|
-
border: 1px solid #f0f0f0;
|
|
7
|
-
position: relative;
|
|
8
|
-
height: fit-content;
|
|
9
|
-
|
|
10
|
-
.chk-container {
|
|
11
|
-
position: absolute;
|
|
12
|
-
top: 5px;
|
|
13
|
-
left: 5px;
|
|
14
|
-
z-index: 5;
|
|
15
|
-
height: 16px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.data-body {
|
|
19
|
-
padding: 10px;
|
|
20
|
-
border-bottom: 1px solid #f0f0f0;
|
|
21
|
-
|
|
22
|
-
& > h3,
|
|
23
|
-
& > p {
|
|
24
|
-
color: #262626;
|
|
25
|
-
font-family: ${FontFamily.Lato};
|
|
26
|
-
font-size: 12px;
|
|
27
|
-
line-height: 16px;
|
|
28
|
-
overflow: hidden;
|
|
29
|
-
white-space: nowrap;
|
|
30
|
-
text-overflow: ellipsis;
|
|
31
|
-
|
|
32
|
-
& + p {
|
|
33
|
-
margin-top: 5px;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
p {
|
|
37
|
-
font-size: 10px;
|
|
38
|
-
line-height: 12px;
|
|
39
|
-
color: #808080;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.status-slider {
|
|
44
|
-
display: flex;
|
|
45
|
-
padding: 5px 10px;
|
|
46
|
-
overflow: auto;
|
|
47
|
-
border-bottom: 1px solid #f0f0f0;
|
|
48
|
-
flex-wrap: nowrap;
|
|
49
|
-
|
|
50
|
-
.status-element {
|
|
51
|
-
display: flex;
|
|
52
|
-
|
|
53
|
-
.srv-name {
|
|
54
|
-
background-color: #808080;
|
|
55
|
-
padding: 0 10px;
|
|
56
|
-
border-radius: 5px;
|
|
57
|
-
p {
|
|
58
|
-
font-family: ${FontFamily.AvenirNext};
|
|
59
|
-
font-size: 12px;
|
|
60
|
-
line-height: 20px;
|
|
61
|
-
font-weight: 700;
|
|
62
|
-
color: #fff;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
* + * {
|
|
68
|
-
margin-left: 10px;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.cart-and-raiting,
|
|
73
|
-
.retailers-and-user {
|
|
74
|
-
display: flex;
|
|
75
|
-
align-items: center;
|
|
76
|
-
justify-content: space-between;
|
|
77
|
-
padding: 5px 10px;
|
|
78
|
-
.star-button {
|
|
79
|
-
button {
|
|
80
|
-
padding: 3px;
|
|
81
|
-
color: transparent;
|
|
82
|
-
-webkit-text-stroke: 1px #808080;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.retailers-and-user {
|
|
88
|
-
padding: 0;
|
|
89
|
-
> * {
|
|
90
|
-
flex: 1 0 50%;
|
|
91
|
-
display: flex;
|
|
92
|
-
padding: 5px;
|
|
93
|
-
height: 36px;
|
|
94
|
-
}
|
|
95
|
-
.retailers-container {
|
|
96
|
-
border-right: 1px solid #f0f0f0;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
&:hover {
|
|
101
|
-
cursor: pointer;
|
|
102
|
-
box-shadow: 1px 2px 5px black;
|
|
103
|
-
}
|
|
104
|
-
`;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { HeaderItem } from ".";
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: "Components/molecules/HeaderItem",
|
|
5
|
-
component: HeaderItem,
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
const Template = (args) => <HeaderItem {...args} />;
|
|
9
|
-
export const HeaderItemDefault = Template.bind({});
|
|
10
|
-
|
|
11
|
-
HeaderItemDefault.args = {
|
|
12
|
-
columnsArray: [
|
|
13
|
-
{ name: "Reg", flex: 1, minWidth: 100 },
|
|
14
|
-
{ name: "Orden", flex: 1, minWidth: 100 },
|
|
15
|
-
{ name: "UPC", flex: 1, minWidth: 100 },
|
|
16
|
-
{ name: "Nombre", flex: 1, minWidth: 100 },
|
|
17
|
-
{ name: "Marca", flex: 1, minWidth: 100 },
|
|
18
|
-
{ name: "Estatus", flex: 1, minWidth: 100 },
|
|
19
|
-
{ name: "Cadenas", flex: 1, minWidth: 100 },
|
|
20
|
-
{ name: "Prio", flex: 1, minWidth: 100 },
|
|
21
|
-
{ name: "E.D", flex: 1, minWidth: 100 },
|
|
22
|
-
{ name: "Cont.", flex: 1, minWidth: 100 },
|
|
23
|
-
],
|
|
24
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Container } from "./styles";
|
|
2
|
-
import { ColumnItem } from "./ColumnItem";
|
|
3
|
-
import { CheckBox } from "../../atoms/CheckBox";
|
|
4
|
-
|
|
5
|
-
export const HeaderItem = ({ columnsArray = [], checkAll, chkCheckedAll }) => {
|
|
6
|
-
return (
|
|
7
|
-
<Container>
|
|
8
|
-
<div className="chk-global-container">
|
|
9
|
-
<CheckBox
|
|
10
|
-
id={"chk-global"}
|
|
11
|
-
name={"chk-global"}
|
|
12
|
-
onChange={(e) => checkAll && checkAll(e)}
|
|
13
|
-
checked={chkCheckedAll && chkCheckedAll()}
|
|
14
|
-
/>
|
|
15
|
-
</div>
|
|
16
|
-
{columnsArray.map((col, i) => (
|
|
17
|
-
<ColumnItem
|
|
18
|
-
key={i}
|
|
19
|
-
flex={col.flex}
|
|
20
|
-
name={col.name}
|
|
21
|
-
minWidth={col.minWidth}
|
|
22
|
-
/>
|
|
23
|
-
))}
|
|
24
|
-
</Container>
|
|
25
|
-
);
|
|
26
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
import { FontFamily } from "../../../global-files/variables";
|
|
3
|
-
|
|
4
|
-
export const Container = styled.div`
|
|
5
|
-
background-color: #f0f0f0;
|
|
6
|
-
display: flex;
|
|
7
|
-
width: 100%;
|
|
8
|
-
min-width: fit-content;
|
|
9
|
-
|
|
10
|
-
.chk-global-container {
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
justify-content: center;
|
|
14
|
-
min-width: 30px;
|
|
15
|
-
}
|
|
16
|
-
`;
|
|
17
|
-
|
|
18
|
-
export const Column = styled.div`
|
|
19
|
-
flex: ${({ flex }) => (flex ? flex : 1)};
|
|
20
|
-
min-width: ${({ minWidth }) => (minWidth ? minWidth : 100)}px;
|
|
21
|
-
text-align: center;
|
|
22
|
-
color: #262626;
|
|
23
|
-
font-family: ${FontFamily.Lato};
|
|
24
|
-
font-size: 12px;
|
|
25
|
-
line-height: 16px;
|
|
26
|
-
padding: 10px 5px;
|
|
27
|
-
`;
|