contentoh-components-library 21.1.92 → 21.1.95
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/InputFormatter/index.js +0 -1
- package/dist/components/atoms/StatusTag/StatusTag.stories.js +48 -0
- package/dist/components/atoms/StatusTag/index.js +58 -0
- package/dist/components/atoms/StatusTag/styles.js +20 -0
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +129 -111
- package/dist/components/pages/ProviderProductEdition/index.js +6 -2
- package/dist/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js +37 -0
- package/dist/components/pages/RegistrationLoginFirstStep/index.js +269 -0
- package/dist/components/pages/RegistrationLoginFirstStep/styles.js +20 -0
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +31 -31
- package/dist/components/pages/RetailerProductEdition/index.js +1 -1
- package/package.json +1 -1
- package/src/components/atoms/InputFormatter/index.js +0 -1
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +146 -111
- package/src/components/pages/ProviderProductEdition/index.js +4 -2
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +31 -31
- package/src/components/pages/RetailerProductEdition/index.js +2 -1
|
@@ -62,7 +62,6 @@ var InputFormatter = function InputFormatter(_ref) {
|
|
|
62
62
|
var maxLength = maxChar ? maxChar : 999;
|
|
63
63
|
|
|
64
64
|
var getValue = function getValue(value) {
|
|
65
|
-
console.log(value);
|
|
66
65
|
var temp = value.replace(/\n/gm, "<br>").replace(/\&(nbsp;|amp;)/gm, " ");
|
|
67
66
|
return temp;
|
|
68
67
|
}; //const quillRef = useRef();
|
|
@@ -0,0 +1,48 @@
|
|
|
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.StatusTagDefault = void 0;
|
|
9
|
+
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
12
|
+
var _index = require("./index");
|
|
13
|
+
|
|
14
|
+
var _variables = require("../../../global-files/variables");
|
|
15
|
+
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
|
|
18
|
+
var status = _variables.GlobalStatus;
|
|
19
|
+
var _default = {
|
|
20
|
+
title: "Components/atoms/StatusTag",
|
|
21
|
+
component: _index.StatusTag,
|
|
22
|
+
argTypes: {
|
|
23
|
+
statusType: {
|
|
24
|
+
options: status,
|
|
25
|
+
control: {
|
|
26
|
+
type: "select"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
ovalForm: {
|
|
30
|
+
options: [true, false],
|
|
31
|
+
control: {
|
|
32
|
+
type: "boolean"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
exports.default = _default;
|
|
38
|
+
|
|
39
|
+
var Template = function Template(args) {
|
|
40
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StatusTag, (0, _objectSpread2.default)({}, args));
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
var StatusTagDefault = Template.bind({});
|
|
44
|
+
exports.StatusTagDefault = StatusTagDefault;
|
|
45
|
+
StatusTagDefault.args = {
|
|
46
|
+
statusType: "-",
|
|
47
|
+
ovalForm: false
|
|
48
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.StatusTag = void 0;
|
|
7
|
+
|
|
8
|
+
var _styles = require("./styles");
|
|
9
|
+
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
|
|
12
|
+
var StatusTag = function StatusTag(_ref) {
|
|
13
|
+
var statusType = _ref.statusType,
|
|
14
|
+
ovalForm = _ref.ovalForm;
|
|
15
|
+
|
|
16
|
+
var getShortStatus = function getShortStatus(status) {
|
|
17
|
+
switch (status) {
|
|
18
|
+
case "COMPLETED":
|
|
19
|
+
return "C";
|
|
20
|
+
|
|
21
|
+
case "RECEPTION":
|
|
22
|
+
return "Pr";
|
|
23
|
+
|
|
24
|
+
case "NULL":
|
|
25
|
+
return "-";
|
|
26
|
+
|
|
27
|
+
case "RECEIVED":
|
|
28
|
+
return "Rc";
|
|
29
|
+
|
|
30
|
+
case "IN_PROGRESS":
|
|
31
|
+
return "P";
|
|
32
|
+
|
|
33
|
+
case "ASSIGNED":
|
|
34
|
+
return "As";
|
|
35
|
+
|
|
36
|
+
case "APPROVED":
|
|
37
|
+
return "Ap";
|
|
38
|
+
|
|
39
|
+
case "VALIDATING":
|
|
40
|
+
return "V";
|
|
41
|
+
|
|
42
|
+
case "PAID_OUT":
|
|
43
|
+
return "Po";
|
|
44
|
+
|
|
45
|
+
default:
|
|
46
|
+
return status;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
51
|
+
className: "status-".concat(getShortStatus(statusType), " ").concat(ovalForm && "oval-form"),
|
|
52
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
53
|
+
children: getShortStatus(statusType)
|
|
54
|
+
})
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
exports.StatusTag = StatusTag;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 width: fit-content;\n padding: 0 10px;\n height: 20px;\n background-color: ", ";\n border-radius: 3px;\n\n p {\n text-align: center;\n color: ", ";\n font-family: ", ";\n font-size: 12px;\n line-height: 20px;\n }\n\n &.status-As,\n &.status-P,\n &.status-IN_PROGRESS,\n &.status-QF {\n background-color: ", ";\n }\n\n &.status-Pr,\n &.status-Rr,\n &.status-Rc {\n background-color: ", ";\n }\n\n &.status-AA,\n &.status-AP,\n &.status-AC,\n &.status-AF {\n background-color: ", ";\n }\n\n &.status-RA,\n &.status-RF,\n &.status-RP,\n &.status-RC {\n background-color: ", ";\n }\n\n &.status-Dat,\n &.status-Dsc,\n &.status-Imgs {\n background-color: ", ";\n }\n\n &.status-Ex {\n background-color: ", ";\n }\n\n &.status-DDI {\n background-color: ", ";\n }\n\n &.status-GLD {\n background-color: ", ";\n }\n\n &.status-TAB {\n background-color: ", ";\n }\n\n &.status-Pt {\n background-color: ", ";\n color: ", ";\n }\n\n &.oval-form {\n border-radius: 10px;\n }\n"])), _variables.GlobalColors.s3, _variables.GlobalColors.white, _variables.FontFamily.Lato, _variables.GlobalColors.in_progress, _variables.GlobalColors.reception, _variables.GlobalColors.finished, _variables.GlobalColors.rejected_status, _variables.GlobalColors.s4, _variables.GlobalColors.exported, _variables.GlobalColors.original_purpura, _variables.GlobalColors.in_progress, _variables.GlobalColors.deep_gray, _variables.GlobalColors.s2, _variables.GlobalColors.s4);
|
|
19
|
+
|
|
20
|
+
exports.Container = Container;
|
|
@@ -31,130 +31,148 @@ ProviderProductEditionDefault.args = {
|
|
|
31
31
|
"Ficha técnica": true,
|
|
32
32
|
Imágenes: true
|
|
33
33
|
},
|
|
34
|
-
token: "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.
|
|
34
|
+
token: "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJhYmUxODhlMi0yNWIxLTRhMTktODY3Mi0wZDRiYzExYTliZjIiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImFiZTE4OGUyLTI1YjEtNGExOS04NjcyLTBkNGJjMTFhOWJmMiIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiIzOTUzZWZjMy0yZjAxLTQwNDYtYmY3Mi0zYTkxZDA0MDNkNTAiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2MDA2NDUwNCwibmFtZSI6IlJldGFpbGVyIEFjYyIsInBob25lX251bWJlciI6Iis1MjMxMTExMTExMTEiLCJleHAiOjE2NjAwNjgxMDQsImlhdCI6MTY2MDA2NDUwNCwiZW1haWwiOiJyZXRhaWxlclRoZEBBbGxGcmVlTWFpbC5uZXQifQ.Nwsu6XKRp2u5pGqqftQxkSPjD-6xv2Xovmo-tS1VRsfGByPlY0qfyqF0QFZCgncubcYtDoAmpqad7UT0_5HKE1d5nwPM-fA639uv1029YnZwbgfPE3TSAna9NLKN7b0q9DZ6VeX05cjSPtdlnOCCjpdbaQk1Qkl6sAg80tidgBaCyffqns7uYgnSg73GAYxlkRkffH90pddxSykQbj-VVkJFEuLiBSGvu2oj5iwmmZ_EVB6XYv0a5p70IZmbia-3HrQB_qZJxDXLDK4sV3asv-iJJizU0lp64pD0k5TM0q4kY3iVTlHxb7uXBHeTJS8cxPVutxbITYLFyFOTCmm3mQ",
|
|
35
35
|
articleId: 238,
|
|
36
36
|
category: 846,
|
|
37
37
|
version: 2,
|
|
38
38
|
productSelected: {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
images: 1
|
|
43
|
-
},
|
|
44
|
-
orderId: 2437,
|
|
45
|
-
status: "AS",
|
|
46
|
-
datasheet_status: "AS",
|
|
47
|
-
prio: "none",
|
|
48
|
-
version: 2,
|
|
49
|
-
description_status: "AS",
|
|
50
|
-
images_status: "AS",
|
|
39
|
+
articleStatus: "ACA",
|
|
40
|
+
version: 5,
|
|
41
|
+
missing: {},
|
|
51
42
|
article: {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
active: 1,
|
|
60
|
-
company_id: 226,
|
|
61
|
-
SKU: null,
|
|
62
|
-
Descripcion: null,
|
|
63
|
-
Proveedor: null,
|
|
64
|
-
id_proveedor: 0,
|
|
65
|
-
company_name: "COLGATE PALMOLIVE S.A. DE C.V.",
|
|
66
|
-
country: null,
|
|
67
|
-
id_order: 2437,
|
|
68
|
-
id_datasheet_especialist: 405,
|
|
69
|
-
id_datasheet_facilitator: 158,
|
|
70
|
-
id_description_especialist: 405,
|
|
71
|
-
id_description_facilitator: 158,
|
|
72
|
-
id_images_especialist: 381,
|
|
73
|
-
id_images_facilitator: 160,
|
|
74
|
-
id_auditor: 9,
|
|
75
|
-
id_recepcionist: null,
|
|
76
|
-
category: "Salud y Belleza|Cuidado Bucal|Pastas Dentales y Aseo Bucal",
|
|
77
|
-
missingAttributes: 47,
|
|
78
|
-
missingDescriptions: 2,
|
|
79
|
-
missingImages: 4
|
|
43
|
+
category: "Materiales de Construcción|Impermeabilizantes y Recubrimientos|Selladores",
|
|
44
|
+
company_name: "SIKA MEXICANA S.A. DE C.V.",
|
|
45
|
+
company_id: 383,
|
|
46
|
+
id_category: "2249",
|
|
47
|
+
id_article: 29457,
|
|
48
|
+
name: "SIKA TECHO FRESCO SUPER 15",
|
|
49
|
+
upc: "111187"
|
|
80
50
|
},
|
|
51
|
+
asignations: [],
|
|
81
52
|
retailers: [{
|
|
82
|
-
id:
|
|
83
|
-
name: "
|
|
53
|
+
id: 58,
|
|
54
|
+
name: "The Home Depot Golden",
|
|
55
|
+
country: "México",
|
|
56
|
+
id_region: 1,
|
|
57
|
+
active: 1
|
|
58
|
+
}, {
|
|
59
|
+
id: 59,
|
|
60
|
+
name: "The Home Depot Platinum",
|
|
61
|
+
country: "México",
|
|
62
|
+
id_region: 1,
|
|
63
|
+
active: 1
|
|
64
|
+
}, {
|
|
65
|
+
id: 61,
|
|
66
|
+
name: "Home Depot TAB",
|
|
67
|
+
country: "México",
|
|
68
|
+
id_region: 1,
|
|
69
|
+
active: 1
|
|
70
|
+
}],
|
|
71
|
+
percentage: 33.35,
|
|
72
|
+
retailersAvailable: [{
|
|
73
|
+
id: 58,
|
|
74
|
+
name: "The Home Depot Golden",
|
|
75
|
+
country: "México",
|
|
76
|
+
id_region: 1,
|
|
77
|
+
active: 1
|
|
78
|
+
}, {
|
|
79
|
+
id: 59,
|
|
80
|
+
name: "The Home Depot Platinum",
|
|
84
81
|
country: "México",
|
|
85
82
|
id_region: 1,
|
|
86
83
|
active: 1
|
|
87
84
|
}, {
|
|
88
|
-
id:
|
|
89
|
-
name: "
|
|
85
|
+
id: 61,
|
|
86
|
+
name: "Home Depot TAB",
|
|
90
87
|
country: "México",
|
|
91
88
|
id_region: 1,
|
|
92
89
|
active: 1
|
|
93
90
|
}],
|
|
94
|
-
|
|
95
|
-
|
|
91
|
+
upc: "111187",
|
|
92
|
+
name: "SIKA TECHO FRESCO SUPER 15",
|
|
93
|
+
categoryName: "Materiales de Construcción|Impermeabilizantes y Recubrimientos|Selladores",
|
|
94
|
+
id_category: "2249",
|
|
95
|
+
id_article: 29457,
|
|
96
|
+
services: [{
|
|
97
|
+
id_article: 29457,
|
|
98
|
+
service: "datasheet",
|
|
99
|
+
quantity: 1,
|
|
100
|
+
price: 0,
|
|
101
|
+
id_user: 1237,
|
|
102
|
+
datasheet_common: null,
|
|
103
|
+
discount: null
|
|
104
|
+
}]
|
|
96
105
|
},
|
|
97
106
|
productToEdit: {
|
|
98
|
-
idCategory: "
|
|
99
|
-
ArticleId:
|
|
107
|
+
idCategory: "2249",
|
|
108
|
+
ArticleId: 29457,
|
|
100
109
|
product: [{
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
images: 1
|
|
105
|
-
},
|
|
106
|
-
orderId: 2437,
|
|
107
|
-
status: "AS",
|
|
108
|
-
datasheet_status: "AS",
|
|
109
|
-
prio: "none",
|
|
110
|
-
version: 2,
|
|
111
|
-
description_status: "AS",
|
|
112
|
-
images_status: "AS",
|
|
110
|
+
articleStatus: "ACA",
|
|
111
|
+
version: 5,
|
|
112
|
+
missing: {},
|
|
113
113
|
article: {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
active: 1,
|
|
122
|
-
company_id: 226,
|
|
123
|
-
SKU: null,
|
|
124
|
-
Descripcion: null,
|
|
125
|
-
Proveedor: null,
|
|
126
|
-
id_proveedor: 0,
|
|
127
|
-
company_name: "COLGATE PALMOLIVE S.A. DE C.V.",
|
|
128
|
-
country: null,
|
|
129
|
-
id_order: 2437,
|
|
130
|
-
id_datasheet_especialist: 405,
|
|
131
|
-
id_datasheet_facilitator: 158,
|
|
132
|
-
id_description_especialist: 405,
|
|
133
|
-
id_description_facilitator: 158,
|
|
134
|
-
id_images_especialist: 381,
|
|
135
|
-
id_images_facilitator: 160,
|
|
136
|
-
id_auditor: 9,
|
|
137
|
-
id_recepcionist: null,
|
|
138
|
-
category: "Salud y Belleza|Cuidado Bucal|Pastas Dentales y Aseo Bucal",
|
|
139
|
-
missingAttributes: 47,
|
|
140
|
-
missingDescriptions: 2,
|
|
141
|
-
missingImages: 4
|
|
114
|
+
category: "Materiales de Construcción|Impermeabilizantes y Recubrimientos|Selladores",
|
|
115
|
+
company_name: "SIKA MEXICANA S.A. DE C.V.",
|
|
116
|
+
company_id: 383,
|
|
117
|
+
id_category: "2249",
|
|
118
|
+
id_article: 29457,
|
|
119
|
+
name: "SIKA TECHO FRESCO SUPER 15",
|
|
120
|
+
upc: "111187"
|
|
142
121
|
},
|
|
122
|
+
asignations: [],
|
|
143
123
|
retailers: [{
|
|
144
|
-
id:
|
|
145
|
-
name: "
|
|
124
|
+
id: 58,
|
|
125
|
+
name: "The Home Depot Golden",
|
|
146
126
|
country: "México",
|
|
147
127
|
id_region: 1,
|
|
148
128
|
active: 1
|
|
149
129
|
}, {
|
|
150
|
-
id:
|
|
151
|
-
name: "
|
|
130
|
+
id: 59,
|
|
131
|
+
name: "The Home Depot Platinum",
|
|
132
|
+
country: "México",
|
|
133
|
+
id_region: 1,
|
|
134
|
+
active: 1
|
|
135
|
+
}, {
|
|
136
|
+
id: 61,
|
|
137
|
+
name: "Home Depot TAB",
|
|
152
138
|
country: "México",
|
|
153
139
|
id_region: 1,
|
|
154
140
|
active: 1
|
|
155
141
|
}],
|
|
156
|
-
|
|
157
|
-
|
|
142
|
+
percentage: 33.35,
|
|
143
|
+
retailersAvailable: [{
|
|
144
|
+
id: 58,
|
|
145
|
+
name: "The Home Depot Golden",
|
|
146
|
+
country: "México",
|
|
147
|
+
id_region: 1,
|
|
148
|
+
active: 1
|
|
149
|
+
}, {
|
|
150
|
+
id: 59,
|
|
151
|
+
name: "The Home Depot Platinum",
|
|
152
|
+
country: "México",
|
|
153
|
+
id_region: 1,
|
|
154
|
+
active: 1
|
|
155
|
+
}, {
|
|
156
|
+
id: 61,
|
|
157
|
+
name: "Home Depot TAB",
|
|
158
|
+
country: "México",
|
|
159
|
+
id_region: 1,
|
|
160
|
+
active: 1
|
|
161
|
+
}],
|
|
162
|
+
upc: "111187",
|
|
163
|
+
name: "SIKA TECHO FRESCO SUPER 15",
|
|
164
|
+
categoryName: "Materiales de Construcción|Impermeabilizantes y Recubrimientos|Selladores",
|
|
165
|
+
id_category: "2249",
|
|
166
|
+
id_article: 29457,
|
|
167
|
+
services: [{
|
|
168
|
+
id_article: 29457,
|
|
169
|
+
service: "datasheet",
|
|
170
|
+
quantity: 1,
|
|
171
|
+
price: 0,
|
|
172
|
+
id_user: 1237,
|
|
173
|
+
datasheet_common: null,
|
|
174
|
+
discount: null
|
|
175
|
+
}]
|
|
158
176
|
}]
|
|
159
177
|
},
|
|
160
178
|
location: {
|
|
@@ -163,29 +181,29 @@ ProviderProductEditionDefault.args = {
|
|
|
163
181
|
}
|
|
164
182
|
},
|
|
165
183
|
user: {
|
|
166
|
-
id_user:
|
|
167
|
-
name: "
|
|
168
|
-
last_name: "
|
|
169
|
-
email: "
|
|
170
|
-
position: "
|
|
171
|
-
telephone:
|
|
184
|
+
id_user: 1237,
|
|
185
|
+
name: "The Home",
|
|
186
|
+
last_name: "Depot",
|
|
187
|
+
email: "retailerThd@AllFreeMail.net",
|
|
188
|
+
position: "Retailer",
|
|
189
|
+
telephone: "+523111111111",
|
|
172
190
|
country: "México",
|
|
173
|
-
id_company:
|
|
174
|
-
id_cognito: "
|
|
175
|
-
birth_Date:
|
|
191
|
+
id_company: 817,
|
|
192
|
+
id_cognito: "abe188e2-25b1-4a19-8672-0d4bc11a9bf2",
|
|
193
|
+
birth_Date: null,
|
|
176
194
|
about_me: null,
|
|
177
195
|
zip_code: null,
|
|
178
196
|
address: null,
|
|
179
197
|
job: null,
|
|
180
198
|
id_stripe: null,
|
|
181
|
-
id_role:
|
|
199
|
+
id_role: 0,
|
|
182
200
|
active: 1,
|
|
183
|
-
is_retailer:
|
|
184
|
-
email_notify:
|
|
201
|
+
is_retailer: 1,
|
|
202
|
+
email_notify: 1,
|
|
185
203
|
membership: {
|
|
186
|
-
id:
|
|
187
|
-
start_date: "2022-
|
|
188
|
-
end_date: "2023-
|
|
204
|
+
id: 798,
|
|
205
|
+
start_date: "2022-06-19T04:25:07.000Z",
|
|
206
|
+
end_date: "2023-06-19T04:25:07.000Z",
|
|
189
207
|
planID: 6,
|
|
190
208
|
plan: "prod_KvGd6YSTJyR3AP",
|
|
191
209
|
name: "Plan Small",
|
|
@@ -193,7 +211,7 @@ ProviderProductEditionDefault.args = {
|
|
|
193
211
|
products_limit: "1000",
|
|
194
212
|
type: "Enterprise"
|
|
195
213
|
},
|
|
196
|
-
src: "https://content-management-profile-prod.s3.amazonaws.com/id-
|
|
214
|
+
src: "https://content-management-profile-prod.s3.amazonaws.com/id-1237/1237.png?1660064505178"
|
|
197
215
|
},
|
|
198
216
|
company: {
|
|
199
217
|
id_company: 817,
|
|
@@ -695,7 +695,11 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
695
695
|
(0, _data.fetchUsers)(token).then(function (res) {
|
|
696
696
|
return setUserGroups(res);
|
|
697
697
|
});
|
|
698
|
-
|
|
698
|
+
setImages({
|
|
699
|
+
action: "orderImages",
|
|
700
|
+
retailerId: activeRetailer.id
|
|
701
|
+
});
|
|
702
|
+
}, [product, version]);
|
|
699
703
|
|
|
700
704
|
var loadAssignations = function loadAssignations(currentProduct) {
|
|
701
705
|
setAssig(product === null || product === void 0 ? void 0 : product.asignations);
|
|
@@ -740,7 +744,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
740
744
|
|
|
741
745
|
(0, _react.useEffect)(function () {
|
|
742
746
|
loadInputs();
|
|
743
|
-
setImages({
|
|
747
|
+
activeRetailer.id && setImages({
|
|
744
748
|
action: "orderImages",
|
|
745
749
|
retailerId: activeRetailer.id
|
|
746
750
|
});
|
package/dist/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
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.RegistrationLoginFirstStepDefault = void 0;
|
|
9
|
+
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
12
|
+
var _index = require("./index");
|
|
13
|
+
|
|
14
|
+
var _loginImage = _interopRequireDefault(require("../../../assets/images/carouselImagesLogin/loginImage.svg"));
|
|
15
|
+
|
|
16
|
+
var _login = _interopRequireDefault(require("../../../assets/images/carouselImagesLogin/login2.svg"));
|
|
17
|
+
|
|
18
|
+
var _login2 = _interopRequireDefault(require("../../../assets/images/carouselImagesLogin/login3.svg"));
|
|
19
|
+
|
|
20
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
+
|
|
22
|
+
var _default = {
|
|
23
|
+
title: "Components/pages/RegistrationLoginFirstStep",
|
|
24
|
+
component: _index.RegistrationLoginFirstStep
|
|
25
|
+
};
|
|
26
|
+
exports.default = _default;
|
|
27
|
+
|
|
28
|
+
var Template = function Template(args) {
|
|
29
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.RegistrationLoginFirstStep, (0, _objectSpread2.default)({}, args));
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
var RegistrationLoginFirstStepDefault = Template.bind({});
|
|
33
|
+
exports.RegistrationLoginFirstStepDefault = RegistrationLoginFirstStepDefault;
|
|
34
|
+
RegistrationLoginFirstStepDefault.args = {
|
|
35
|
+
imageArrayCarousel: [_loginImage.default, _login.default, _login2.default],
|
|
36
|
+
textCarousel: "Elige la plataforma que conecta proovedores y retailers"
|
|
37
|
+
};
|