contentoh-components-library 21.1.20 → 21.1.23
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/assets/images/sliderToolTip/slide21.svg +9 -0
- package/dist/assets/images/sliderToolTip/slide22.svg +9 -0
- package/dist/assets/images/sliderToolTip/slide23.svg +9 -0
- package/dist/components/atoms/CheckBox/styles.js +1 -1
- package/dist/components/atoms/ListCommercialRetailers/ListCommercialRetailers.stories.js +36 -0
- package/dist/components/atoms/ListCommercialRetailers/index.js +64 -0
- package/dist/components/atoms/ListCommercialRetailers/styles.js +20 -0
- package/dist/components/atoms/MenuCommercialRetailers/MenuCommercialRetailers.stories.js +37 -0
- package/dist/components/atoms/MenuCommercialRetailers/index.js +25 -0
- package/dist/components/atoms/MenuCommercialRetailers/styles.js +20 -0
- package/dist/components/atoms/MenuProductImage/MenuProductImage.stories.js +28 -0
- package/dist/components/atoms/MenuProductImage/index.js +88 -0
- package/dist/components/atoms/MenuProductImage/styles.js +20 -0
- package/dist/components/atoms/SliderToolTip/SliderToolTip.stories.js +67 -13
- package/dist/components/atoms/SliderToolTip/index.js +64 -134
- package/dist/components/atoms/SliderToolTip/styles.js +2 -2
- package/dist/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +44 -1
- package/dist/components/atoms/VerticalSideMenuMainPage/index.js +49 -48
- package/dist/components/atoms/VerticalSideMenuMainPage/styles.js +12 -3
- package/dist/components/molecules/ApproveRejetPanel/ApproveRejetPanel.stories.js +25 -0
- package/dist/components/molecules/ApproveRejetPanel/index.js +49 -0
- package/dist/components/molecules/ApproveRejetPanel/styles.js +18 -0
- package/dist/components/molecules/SignInLoginCreationApp/SignInLogin.stories.js +28 -0
- package/dist/components/molecules/SignInLoginCreationApp/index.js +270 -0
- package/dist/components/molecules/SignInLoginCreationApp/styles.js +20 -0
- package/dist/components/molecules/StatusAsignationInfo/index.js +35 -1
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +54 -18
- package/dist/components/pages/ProviderProductEdition/index.js +13 -5
- package/dist/global-files/global-styles.css +0 -1
- package/package.json +1 -1
- package/src/assets/images/sliderToolTip/slide21.svg +9 -0
- package/src/assets/images/sliderToolTip/slide22.svg +9 -0
- package/src/assets/images/sliderToolTip/slide23.svg +9 -0
- package/src/components/atoms/CheckBox/styles.js +0 -1
- package/src/components/atoms/SliderToolTip/SliderToolTip.stories.js +77 -11
- package/src/components/atoms/SliderToolTip/index.js +91 -154
- package/src/components/atoms/SliderToolTip/styles.js +48 -22
- package/src/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +24 -1
- package/src/components/atoms/VerticalSideMenuMainPage/index.js +41 -30
- package/src/components/atoms/VerticalSideMenuMainPage/styles.js +70 -18
- package/src/components/molecules/StatusAsignationInfo/index.js +37 -0
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +60 -18
- package/src/components/pages/ProviderProductEdition/index.js +13 -4
- package/dist/components/atoms/Percent/Percent.stories.js +0 -39
- package/dist/components/atoms/Percent/index.js +0 -39
- package/dist/components/atoms/Percent/styles.js +0 -20
- package/dist/components/molecules/TextAndGradient/TextAndGradient.stories.js +0 -31
- package/dist/components/molecules/TextAndGradient/index.js +0 -36
- package/dist/components/molecules/TextAndGradient/styles.js +0 -18
- package/src/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js +0 -17
- package/src/components/pages/RegistrationLoginFirstStep/index.js +0 -160
- package/src/components/pages/RegistrationLoginFirstStep/styles.js +0 -85
|
@@ -2,44 +2,96 @@ import styled from "styled-components";
|
|
|
2
2
|
|
|
3
3
|
export const Container = styled.div`
|
|
4
4
|
height: 100%;
|
|
5
|
-
width:
|
|
5
|
+
width: 58px;
|
|
6
6
|
box-sizing: border-box;
|
|
7
7
|
padding: 23px 10px 70px 10px;
|
|
8
8
|
flex-direction: column;
|
|
9
9
|
justify-content: space-between;
|
|
10
10
|
overflow: auto;
|
|
11
|
-
border-radius:
|
|
11
|
+
border-radius: 50px;
|
|
12
12
|
background: linear-gradient(180deg, #e33aa9 0%, #3b1366 100%);
|
|
13
13
|
scrollbar-width: none;
|
|
14
14
|
display: flex;
|
|
15
15
|
text-align: center;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
&.active {
|
|
17
|
+
width: 200px;
|
|
18
|
+
padding: 23px 10px 15px 10px;
|
|
19
|
+
border-radius: 20px;
|
|
19
20
|
}
|
|
20
21
|
.navbar-top {
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
.logo {
|
|
23
|
+
& + * {
|
|
24
|
+
margin-top: ${({ bar }) => (bar === "" ? 345 : 50)}%;
|
|
25
|
+
}
|
|
23
26
|
}
|
|
24
27
|
.option {
|
|
25
|
-
|
|
28
|
+
a {
|
|
29
|
+
cursor: pointer;
|
|
26
30
|
height: 38px;
|
|
27
31
|
display: flex;
|
|
28
32
|
justify-content: center;
|
|
29
|
-
border-radius: 100
|
|
30
|
-
|
|
33
|
+
border-radius: ${({ bar }) => (bar ? 18 : 100)}px;
|
|
34
|
+
align-items: center;
|
|
35
|
+
font-family: "Raleway";
|
|
36
|
+
font-style: normal;
|
|
37
|
+
font-weight: 400;
|
|
38
|
+
font-size: 18px;
|
|
39
|
+
line-height: 21px;
|
|
40
|
+
letter-spacing: -0.015em;
|
|
41
|
+
color: #fafafa;
|
|
42
|
+
text-decoration: none;
|
|
43
|
+
&.option-link {
|
|
31
44
|
margin-top: 12px;
|
|
32
45
|
}
|
|
46
|
+
img {
|
|
47
|
+
& + * {
|
|
48
|
+
margin-left: 12px;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
&:hover {
|
|
52
|
+
background: #e33aa9;
|
|
53
|
+
}
|
|
33
54
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
55
|
+
.sub-option {
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-direction: column;
|
|
58
|
+
padding-left: ${({ bar }) => (bar ? 40 : 18)}px;
|
|
59
|
+
a {
|
|
60
|
+
display: flex;
|
|
61
|
+
justify-content: flex-start;
|
|
62
|
+
text-decoration: none;
|
|
63
|
+
position: relative;
|
|
64
|
+
font-size: 13px;
|
|
65
|
+
border-left: 1px solid #f0eef2;
|
|
66
|
+
border-radius: 0;
|
|
67
|
+
color: #f0eef2;
|
|
68
|
+
padding-top: 20px;
|
|
69
|
+
padding-left: 12px;
|
|
70
|
+
height: 25px;
|
|
71
|
+
&::before {
|
|
72
|
+
border-left: 1px solid #e33aa9;
|
|
73
|
+
width: 10px;
|
|
74
|
+
content: "";
|
|
75
|
+
border-radius: 50%;
|
|
76
|
+
height: 10px;
|
|
77
|
+
background-color: white;
|
|
78
|
+
position: absolute;
|
|
79
|
+
left: ${({ bar }) => (bar ? -4 : -35)}%;
|
|
80
|
+
bottom: 1%;
|
|
81
|
+
}
|
|
82
|
+
&:hover {
|
|
83
|
+
background-color: transparent;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
& + * {
|
|
87
|
+
margin-top: 12px;
|
|
88
|
+
}
|
|
42
89
|
}
|
|
43
90
|
}
|
|
44
91
|
}
|
|
92
|
+
.menu-bottom {
|
|
93
|
+
display: flex;
|
|
94
|
+
justify-content: ${({ bar }) => (bar ? "flex-end" : "center")};
|
|
95
|
+
cursor: pointer;
|
|
96
|
+
}
|
|
45
97
|
`;
|
|
@@ -6,6 +6,11 @@ import { Button } from "../../atoms/GeneralButton";
|
|
|
6
6
|
import { useEffect, useState } from "react";
|
|
7
7
|
import { AsignationOption } from "../../atoms/AsignationOption/index";
|
|
8
8
|
import { getProfilePicture } from "../../../global-files/data";
|
|
9
|
+
import { SliderToolTip } from "../../atoms/SliderToolTip";
|
|
10
|
+
import InfoIcon from "../../../assets/images/sliderToolTip/infoIcon.svg";
|
|
11
|
+
import Slide1 from "../../../assets/images/sliderToolTip/slide21.svg";
|
|
12
|
+
import Slide2 from "../../../assets/images/sliderToolTip/slide22.svg";
|
|
13
|
+
import Slide3 from "../../../assets/images/sliderToolTip/slide23.svg";
|
|
9
14
|
|
|
10
15
|
export const StatusAsignationInfo = ({
|
|
11
16
|
status = "-",
|
|
@@ -31,6 +36,32 @@ export const StatusAsignationInfo = ({
|
|
|
31
36
|
setShowAsignationPanel(false);
|
|
32
37
|
}
|
|
33
38
|
};
|
|
39
|
+
const slidefront = [
|
|
40
|
+
{
|
|
41
|
+
slide: Slide1,
|
|
42
|
+
id: "slide1",
|
|
43
|
+
id_link: "slidea1",
|
|
44
|
+
title: "Valida tu producto en cada activo digital",
|
|
45
|
+
description:
|
|
46
|
+
"Al solicitar a Content-oh! podrás validar la información, imágenes y documentación de tu producto, esto hará más sencillo que puedas aprobar o rechazar el contenido.",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
slide: Slide2,
|
|
50
|
+
id: "slide2",
|
|
51
|
+
id_link: "slidea2",
|
|
52
|
+
title: "Aprueba o rechaza con un clic",
|
|
53
|
+
description:
|
|
54
|
+
"Cuando termines de revisar tu información, elige si aproebas o rechazas, esto enviara una notificiación a nuestro equipo, para continuar o corregir el producto.",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
slide: Slide3,
|
|
58
|
+
id: "slide3",
|
|
59
|
+
id_link: "slidea3",
|
|
60
|
+
title: "Estatus de tu producto en el proceso",
|
|
61
|
+
description:
|
|
62
|
+
"La mayor parte del proceso podrás identificar que estatus tiene tu producto, esto dara visibilidad a todo tu equipo para saber la etapa se encuentra.",
|
|
63
|
+
},
|
|
64
|
+
];
|
|
34
65
|
|
|
35
66
|
useEffect(() => {
|
|
36
67
|
if (showAsignationPanel) {
|
|
@@ -40,6 +71,12 @@ export const StatusAsignationInfo = ({
|
|
|
40
71
|
|
|
41
72
|
return (
|
|
42
73
|
<Container id={id}>
|
|
74
|
+
<SliderToolTip
|
|
75
|
+
infoIcon={InfoIcon}
|
|
76
|
+
slidefront={slidefront}
|
|
77
|
+
iconSize={"medium-image"}
|
|
78
|
+
slidePosition={"bottom-slide"}
|
|
79
|
+
></SliderToolTip>
|
|
43
80
|
{status !== "-" && <StatusTag statusType={status} ovalForm={true} />}
|
|
44
81
|
{showSaveButton && (
|
|
45
82
|
<Button
|
|
@@ -21,16 +21,16 @@ ProviderProductEditionDefault.args = {
|
|
|
21
21
|
category: 846,
|
|
22
22
|
version: 2,
|
|
23
23
|
productSelected: {
|
|
24
|
-
id_article:
|
|
25
|
-
id_category: "
|
|
26
|
-
name: "
|
|
27
|
-
upc: "
|
|
28
|
-
timestamp: "2022-06-
|
|
24
|
+
id_article: 55070,
|
|
25
|
+
id_category: "2976",
|
|
26
|
+
name: "TOALLERO CORTO ACCESS NEGRO ÉBANO",
|
|
27
|
+
upc: "161788",
|
|
28
|
+
timestamp: "2022-06-17T17:31:14.000Z",
|
|
29
29
|
status: "NULL",
|
|
30
|
-
categoryName: "
|
|
30
|
+
categoryName: "BAÑOS|ACCESORIOS PARA BAÑO|TOALLEROS",
|
|
31
31
|
asignations: [],
|
|
32
|
-
version:
|
|
33
|
-
version_status:
|
|
32
|
+
version: 1,
|
|
33
|
+
version_status: null,
|
|
34
34
|
retailersAvailable: [
|
|
35
35
|
{
|
|
36
36
|
id: 58,
|
|
@@ -39,24 +39,45 @@ ProviderProductEditionDefault.args = {
|
|
|
39
39
|
id_region: 1,
|
|
40
40
|
active: 1,
|
|
41
41
|
},
|
|
42
|
+
{
|
|
43
|
+
id: 59,
|
|
44
|
+
name: "The Home Depot Platinum",
|
|
45
|
+
country: "México",
|
|
46
|
+
id_region: 1,
|
|
47
|
+
active: 1,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
id: 60,
|
|
51
|
+
name: "The Home Depot Resizing",
|
|
52
|
+
country: "México",
|
|
53
|
+
id_region: 1,
|
|
54
|
+
active: 1,
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: 61,
|
|
58
|
+
name: "Home Depot TAB",
|
|
59
|
+
country: "México",
|
|
60
|
+
id_region: 1,
|
|
61
|
+
active: 1,
|
|
62
|
+
},
|
|
42
63
|
],
|
|
43
64
|
missing: {},
|
|
44
65
|
},
|
|
45
66
|
productToEdit: {
|
|
46
|
-
idCategory: "
|
|
47
|
-
ArticleId:
|
|
67
|
+
idCategory: "2976",
|
|
68
|
+
ArticleId: 55070,
|
|
48
69
|
product: [
|
|
49
70
|
{
|
|
50
|
-
id_article:
|
|
51
|
-
id_category: "
|
|
52
|
-
name: "
|
|
53
|
-
upc: "
|
|
54
|
-
timestamp: "2022-06-
|
|
71
|
+
id_article: 55070,
|
|
72
|
+
id_category: "2976",
|
|
73
|
+
name: "TOALLERO CORTO ACCESS NEGRO ÉBANO",
|
|
74
|
+
upc: "161788",
|
|
75
|
+
timestamp: "2022-06-17T17:31:14.000Z",
|
|
55
76
|
status: "NULL",
|
|
56
|
-
categoryName: "
|
|
77
|
+
categoryName: "BAÑOS|ACCESORIOS PARA BAÑO|TOALLEROS",
|
|
57
78
|
asignations: [],
|
|
58
|
-
version:
|
|
59
|
-
version_status:
|
|
79
|
+
version: 1,
|
|
80
|
+
version_status: null,
|
|
60
81
|
retailersAvailable: [
|
|
61
82
|
{
|
|
62
83
|
id: 58,
|
|
@@ -65,6 +86,27 @@ ProviderProductEditionDefault.args = {
|
|
|
65
86
|
id_region: 1,
|
|
66
87
|
active: 1,
|
|
67
88
|
},
|
|
89
|
+
{
|
|
90
|
+
id: 59,
|
|
91
|
+
name: "The Home Depot Platinum",
|
|
92
|
+
country: "México",
|
|
93
|
+
id_region: 1,
|
|
94
|
+
active: 1,
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
id: 60,
|
|
98
|
+
name: "The Home Depot Resizing",
|
|
99
|
+
country: "México",
|
|
100
|
+
id_region: 1,
|
|
101
|
+
active: 1,
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
id: 61,
|
|
105
|
+
name: "Home Depot TAB",
|
|
106
|
+
country: "México",
|
|
107
|
+
id_region: 1,
|
|
108
|
+
active: 1,
|
|
109
|
+
},
|
|
68
110
|
],
|
|
69
111
|
missing: {},
|
|
70
112
|
},
|
|
@@ -904,10 +904,19 @@ export const ProviderProductEdition = ({
|
|
|
904
904
|
};
|
|
905
905
|
|
|
906
906
|
const enableActions = (versionStatus) => {
|
|
907
|
-
|
|
908
|
-
|
|
907
|
+
try {
|
|
908
|
+
const userIsRetailer = user.is_retailer;
|
|
909
|
+
|
|
910
|
+
if (userIsRetailer) return false;
|
|
911
|
+
|
|
912
|
+
if (versionStatus) {
|
|
913
|
+
return ["AP", "AC", "RC", null].includes(versionStatus);
|
|
914
|
+
}
|
|
915
|
+
return true;
|
|
916
|
+
} catch (err) {
|
|
917
|
+
console.log(err, "Unable de check if user is retailer");
|
|
918
|
+
return false;
|
|
909
919
|
}
|
|
910
|
-
return true;
|
|
911
920
|
};
|
|
912
921
|
|
|
913
922
|
useEffect(() => {
|
|
@@ -1023,7 +1032,7 @@ export const ProviderProductEdition = ({
|
|
|
1023
1032
|
assig={assig}
|
|
1024
1033
|
setAssignation={setAssignation}
|
|
1025
1034
|
isRetailer={isRetailer}
|
|
1026
|
-
showSaveButton={
|
|
1035
|
+
showSaveButton={enableActions(product.version_status)}
|
|
1027
1036
|
onClickSave={() => {
|
|
1028
1037
|
switch (activeTab) {
|
|
1029
1038
|
case "Descripción":
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = exports.PercentDefault = void 0;
|
|
9
|
-
|
|
10
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
-
|
|
12
|
-
var _index = require("./index");
|
|
13
|
-
|
|
14
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
|
|
16
|
-
var status = ["-", "Pr", "Rc", "As", "P", "QF", "AF", "AA", "AP", "AC", "RA", "RF", "RP", "RC", "Ex"];
|
|
17
|
-
var _default = {
|
|
18
|
-
title: "Components/atoms/Percent",
|
|
19
|
-
component: _index.Percent,
|
|
20
|
-
argTypes: {
|
|
21
|
-
statusType: {
|
|
22
|
-
options: status,
|
|
23
|
-
control: {
|
|
24
|
-
type: "select"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
exports.default = _default;
|
|
30
|
-
|
|
31
|
-
var Template = function Template(args) {
|
|
32
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Percent, (0, _objectSpread2.default)({}, args));
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
var PercentDefault = Template.bind({});
|
|
36
|
-
exports.PercentDefault = PercentDefault;
|
|
37
|
-
PercentDefault.args = {
|
|
38
|
-
statusType: "-"
|
|
39
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.Percent = void 0;
|
|
9
|
-
|
|
10
|
-
var _styles = require("./styles");
|
|
11
|
-
|
|
12
|
-
var _polygon = _interopRequireDefault(require("../../../assets/images/arrow/polygon.svg"));
|
|
13
|
-
|
|
14
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
|
|
16
|
-
var Percent = function Percent(_ref) {
|
|
17
|
-
var statusType = _ref.statusType;
|
|
18
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
19
|
-
className: "status-".concat(statusType),
|
|
20
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
21
|
-
className: "text",
|
|
22
|
-
children: "Productos en proceso"
|
|
23
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
24
|
-
className: "percent-text",
|
|
25
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
26
|
-
className: "number",
|
|
27
|
-
children: "20"
|
|
28
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
29
|
-
src: _polygon.default,
|
|
30
|
-
alt: ""
|
|
31
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
32
|
-
className: "span",
|
|
33
|
-
children: "1%"
|
|
34
|
-
})]
|
|
35
|
-
})]
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
exports.Percent = Percent;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.Container = void 0;
|
|
9
|
-
|
|
10
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
|
-
|
|
12
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
-
|
|
14
|
-
var _variables = require("../../../global-files/variables");
|
|
15
|
-
|
|
16
|
-
var _templateObject;
|
|
17
|
-
|
|
18
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n border-radius: 7px;\n width: 97px;\n height: 83px;\n text-align: center;\n padding: 15px;\n\n &.status-Pr,\n &.status-Rc {\n border: 1px solid ", ";\n .span {\n color: ", ";\n }\n }\n &.status-- {\n border: 1px solid ", ";\n .span {\n color: ", ";\n }\n }\n\n &.status-As,\n &.status-P,\n &.status-QF {\n border: 1px solid ", ";\n .span {\n color: ", ";\n }\n }\n\n &.status-AF,\n &.status-AA,\n &.status-AP,\n &.status-AC {\n border: 1px solid ", ";\n .span {\n color: ", ";\n }\n }\n\n &.status-RA,\n &.status-RF,\n &.status-RP,\n &.status-RC {\n border: 1px solid #d74ded;\n .span {\n color: #d74ded;\n }\n }\n\n &.status-Ex {\n border: 1px solid ", ";\n .span {\n color: ", ";\n }\n }\n\n .text {\n color: ", ";\n font-size: 12px;\n font-family: ", ";\n line-height: 14px;\n }\n .percent-text {\n display: flex;\n .number {\n font-family: ", ";\n font-size: 28px;\n color: ", ";\n }\n .span{\n padding-top: 8px;\n font-size: 18px;\n }\n }\n"])), _variables.GlobalColors.reception, _variables.GlobalColors.reception, _variables.GlobalColors.s3, _variables.GlobalColors.s3, _variables.GlobalColors.in_progress, _variables.GlobalColors.in_progress, _variables.GlobalColors.finished, _variables.GlobalColors.finished, _variables.GlobalColors.exported, _variables.GlobalColors.exported, _variables.GlobalColors.s4, _variables.FontFamily.Raleway, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4);
|
|
19
|
-
|
|
20
|
-
exports.Container = Container;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = exports.TextAndGradientDefault = void 0;
|
|
9
|
-
|
|
10
|
-
var _index = require("./index");
|
|
11
|
-
|
|
12
|
-
var _Cadena = _interopRequireDefault(require("../../../assets/images/providerAndCadena/Cadena.svg"));
|
|
13
|
-
|
|
14
|
-
var _default = {
|
|
15
|
-
title: "Components/molecules/TextAndGradient",
|
|
16
|
-
component: _index.TextAndGradient
|
|
17
|
-
};
|
|
18
|
-
exports.default = _default;
|
|
19
|
-
|
|
20
|
-
var Template = function Template(args) {
|
|
21
|
-
return /*#__PURE__*/React.createElement(_index.TextAndGradient, args);
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
var TextAndGradientDefault = Template.bind({});
|
|
25
|
-
exports.TextAndGradientDefault = TextAndGradientDefault;
|
|
26
|
-
TextAndGradientDefault.args = {
|
|
27
|
-
title: "Beneficios de cadenas",
|
|
28
|
-
containerList: {
|
|
29
|
-
content: ["Crea proveedores y agregalos a tu cadena", "Valida los proveedores", "Solicita actualización a proveedores", "Analiza el número de productos totales"]
|
|
30
|
-
}
|
|
31
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.TextAndGradient = void 0;
|
|
7
|
-
|
|
8
|
-
var _styles = require("./styles");
|
|
9
|
-
|
|
10
|
-
var _AtomList = require("../../atoms/AtomList");
|
|
11
|
-
|
|
12
|
-
var _ScreenHeader = require("../../atoms/ScreenHeader");
|
|
13
|
-
|
|
14
|
-
var _variables = require("../../../global-files/variables");
|
|
15
|
-
|
|
16
|
-
var TextAndGradient = function TextAndGradient(_ref) {
|
|
17
|
-
var title = _ref.title,
|
|
18
|
-
image = _ref.image,
|
|
19
|
-
containerList = _ref.containerList;
|
|
20
|
-
return /*#__PURE__*/React.createElement(_styles.Container, null, /*#__PURE__*/React.createElement("div", {
|
|
21
|
-
className: "title"
|
|
22
|
-
}, /*#__PURE__*/React.createElement(_ScreenHeader.ScreenHeader, {
|
|
23
|
-
className: "title",
|
|
24
|
-
headerType: "with-bold-text",
|
|
25
|
-
text: title,
|
|
26
|
-
color: _variables.GlobalColors.s1
|
|
27
|
-
})), image && /*#__PURE__*/React.createElement("img", {
|
|
28
|
-
src: image
|
|
29
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
30
|
-
className: "list"
|
|
31
|
-
}, /*#__PURE__*/React.createElement(_AtomList.AtomList, {
|
|
32
|
-
content: containerList.content
|
|
33
|
-
})));
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
exports.TextAndGradient = TextAndGradient;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.Container = void 0;
|
|
9
|
-
|
|
10
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
|
-
|
|
12
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
-
|
|
14
|
-
var _templateObject;
|
|
15
|
-
|
|
16
|
-
var Container = _styledComponents.default.button(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\n position: absolute;\n width: 720px;\n height: 720px;\n left: 0px;\n top: 0px;\n background: linear-gradient(180deg, #E33AA9 0%, #3B1366 100%);\n align-content: center;\n\n .title{\n position: absolute;\n width: 475px;\n height: 36px;\n left: 110px;\n top: 140px;\n letter-spacing: -0.015em;\n font-feature-settings: 'pnum' on, 'lnum' on;\n }\n .list{\n position: absolute;\n height: 160px;\n left: 180px;\n top: 219px;\n font-family: Raleway;\n font-style: normal;\n font-weight: 500;\n font-size: 18px;\n line-height: 40px;\n letter-spacing: -0.015em;\n text-align: left;\n \n }\n\n"])));
|
|
17
|
-
|
|
18
|
-
exports.Container = Container;
|
package/src/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { RegistrationLoginFirstStep } from "./index";
|
|
2
|
-
import LoginImage from "../../../assets/images/carouselImagesLogin/loginImage.svg";
|
|
3
|
-
import Login2 from "../../../assets/images/carouselImagesLogin/login2.svg";
|
|
4
|
-
import Login3 from "../../../assets/images/carouselImagesLogin/login3.svg";
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
title: "Components/pages/RegistrationLoginFirstStep",
|
|
8
|
-
component: RegistrationLoginFirstStep,
|
|
9
|
-
};
|
|
10
|
-
const Template = (args) => <RegistrationLoginFirstStep {...args} />;
|
|
11
|
-
|
|
12
|
-
export const RegistrationLoginFirstStepDefault = Template.bind({});
|
|
13
|
-
|
|
14
|
-
RegistrationLoginFirstStepDefault.args = {
|
|
15
|
-
imageArrayCarousel: [LoginImage, Login2, Login3],
|
|
16
|
-
textCarousel: "Elige la plataforma que conecta proovedores y retailers",
|
|
17
|
-
};
|