contentoh-components-library 21.1.61 → 21.1.64
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/.env.development +1 -0
- package/.env.production +1 -0
- package/dist/components/atoms/GeneralButton/index.js +3 -1
- package/dist/components/atoms/GeneralButton/styles.js +2 -2
- package/dist/components/atoms/InputFormatter/index.js +1 -2
- package/dist/components/atoms/Select/VersionSelect.js +37 -0
- package/dist/components/atoms/Select/index.js +4 -3
- package/dist/components/atoms/Select/style.js +10 -4
- package/dist/components/atoms/SliderToolTip/styles.js +2 -2
- package/dist/components/molecules/StatusAsignationInfo/index.js +9 -1
- package/dist/components/molecules/VersionItem/VersionItem.stories.js +28 -0
- package/dist/components/molecules/VersionItem/index.js +64 -0
- package/dist/components/molecules/VersionItem/styles.js +20 -0
- package/dist/components/organisms/CreateVersion/CreateVersion.stories.js +31 -0
- package/dist/components/organisms/CreateVersion/RenderChilds.js +157 -0
- package/dist/components/organisms/CreateVersion/index.js +170 -0
- package/dist/components/organisms/CreateVersion/styles.js +28 -0
- package/dist/components/organisms/FullTabsMenu/index.js +6 -2
- package/dist/components/organisms/VersionSelector/VersionSelector.stories.js +32 -0
- package/dist/components/organisms/VersionSelector/index.js +129 -0
- package/dist/components/organisms/VersionSelector/styles.js +20 -0
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +78 -104
- package/dist/components/pages/ProviderProductEdition/index.js +35 -16
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +53 -72
- package/dist/components/pages/RetailerProductEdition/index.js +46 -15
- package/dist/global-files/customHooks.js +35 -0
- package/package.json +2 -2
- package/src/assets/images/versionSelector/acceptIcon.svg +3 -0
- package/src/assets/images/versionSelector/addVersion.svg +5 -0
- package/src/assets/images/versionSelector/closeVersionSelector.svg +4 -0
- package/src/assets/images/versionSelector/createVersion.svg +3 -0
- package/src/assets/images/versionSelector/nullIcon.svg +3 -0
- package/src/assets/images/versionSelector/versionSelected.svg +3 -0
- package/src/components/atoms/GeneralButton/index.js +2 -0
- package/src/components/atoms/GeneralButton/styles.js +18 -0
- package/src/components/atoms/InputFormatter/index.js +1 -2
- package/src/components/atoms/Select/VersionSelect.js +25 -0
- package/src/components/atoms/Select/index.js +1 -1
- package/src/components/atoms/Select/style.js +19 -0
- package/src/components/atoms/SliderToolTip/styles.js +18 -14
- package/src/components/molecules/StatusAsignationInfo/index.js +10 -1
- package/src/components/molecules/VersionItem/VersionItem.stories.js +14 -0
- package/src/components/molecules/VersionItem/index.js +47 -0
- package/src/components/molecules/VersionItem/styles.js +32 -0
- package/src/components/organisms/CreateVersion/CreateVersion.stories.js +14 -0
- package/src/components/organisms/CreateVersion/RenderChilds.js +137 -0
- package/src/components/organisms/CreateVersion/index.js +88 -0
- package/src/components/organisms/CreateVersion/styles.js +79 -0
- package/src/components/organisms/FullTabsMenu/index.js +5 -1
- package/src/components/organisms/VersionSelector/VersionSelector.stories.js +15 -0
- package/src/components/organisms/VersionSelector/index.js +75 -0
- package/src/components/organisms/VersionSelector/styles.js +28 -0
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +97 -134
- package/src/components/pages/ProviderProductEdition/index.js +19 -2
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +53 -74
- package/src/components/pages/RetailerProductEdition/index.js +28 -2
- package/src/global-files/customHooks.js +26 -0
- package/src/global-files/global-styles.css +1 -0
package/.env.development
CHANGED
|
@@ -15,6 +15,7 @@ REACT_APP_TASKS_ENDPOINT = https://lqrc8jfjqi.execute-api.us-east-1.amazonaws.co
|
|
|
15
15
|
REACT_APP_USER_TASKS_ENDPOINT = https://lqrc8jfjqi.execute-api.us-east-1.amazonaws.com/dev/user-tasks
|
|
16
16
|
REACT_APP_CART = https://lqrc8jfjqi.execute-api.us-east-1.amazonaws.com/dev/cart
|
|
17
17
|
REACT_APP_RETAILER_REQUEST = https://lqrc8jfjqi.execute-api.us-east-1.amazonaws.com/dev/retailers-request
|
|
18
|
+
REACT_APP_VERSIONS_ENDPOINT = https://lqrc8jfjqi.execute-api.us-east-1.amazonaws.com/dev/versions
|
|
18
19
|
|
|
19
20
|
REACT_APP_IMAGES_BUCKET=content-management-images
|
|
20
21
|
REACT_APP_KEY_UPLOAD_TO_S3=AKIA5CPHLQTT46EQ5TIK
|
package/.env.production
CHANGED
|
@@ -15,6 +15,7 @@ REACT_APP_TASKS_ENDPOINT = https://6jqnpjf841.execute-api.us-east-1.amazonaws.co
|
|
|
15
15
|
REACT_APP_USER_TASKS_ENDPOINT = https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/user-tasks
|
|
16
16
|
REACT_APP_CART = https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/cart
|
|
17
17
|
REACT_APP_RETAILER_REQUEST = https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/retailers-request
|
|
18
|
+
REACT_APP_VERSIONS_ENDPOINT = https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/versions
|
|
18
19
|
|
|
19
20
|
REACT_APP_IMAGES_BUCKET=content-management-images-prod
|
|
20
21
|
REACT_APP_KEY_UPLOAD_TO_S3=AKIA5CPHLQTT46EQ5TIK
|
|
@@ -14,13 +14,15 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
14
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
15
|
|
|
16
16
|
var Button = function Button(_ref) {
|
|
17
|
-
var
|
|
17
|
+
var id = _ref.id,
|
|
18
|
+
buttonType = _ref.buttonType,
|
|
18
19
|
label = _ref.label,
|
|
19
20
|
image = _ref.image,
|
|
20
21
|
altText = _ref.altText,
|
|
21
22
|
buttonFont = _ref.buttonFont,
|
|
22
23
|
onClick = _ref.onClick;
|
|
23
24
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
25
|
+
id: id,
|
|
24
26
|
className: buttonType,
|
|
25
27
|
buttonFont: buttonFont,
|
|
26
28
|
onClick: onClick,
|
|
@@ -43,8 +43,8 @@ var _variables = require("../../../global-files/variables");
|
|
|
43
43
|
|
|
44
44
|
var _templateObject;
|
|
45
45
|
|
|
46
|
-
var Container = _styledComponents.default.button(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background-color: #e33aa9;\n border: none;\n border-radius: 30px;\n color: #fff;\n font-family: ", ";\n font-style: normal;\n font-weight: normal;\n font-size: 18px;\n line-height: 22px;\n padding: 10px 25px;\n cursor: pointer;\n\n &:hover {\n opacity: 0.7;\n }\n\n &.general-purple-button {\n background-color: #603888;\n }\n\n &.general-transparent-button {\n background-color: transparent;\n border: 1px solid #503d66;\n color: #503d66;\n }\n &.general-white-button {\n background-color: ", ";\n color: ", ";\n }\n\n &.general-green-button {\n background-color: #71de56;\n }\n\n &.circular-button {\n width: 25px;\n height: 25px;\n padding: 0;\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: center;\n &.accept-button {\n background-image: url(", ");\n }\n\n &.reject-button {\n background-image: url(", ");\n }\n\n &.null-button {\n background-image: url(", ");\n }\n\n &.save-button {\n background-image: url(", ");\n border: 1px solid ", ";\n border-radius: 15px;\n\n &:hover {\n background-image: url(", ");\n background-color: ", ";\n border: 1px solid ", ";\n }\n }\n\n &.delete-button {\n background-image: url(", ");\n border: 1px solid ", ";\n border-radius: 15px;\n background-size: 15px;\n\n &:hover {\n background-image: url(", ");\n background-color: ", ";\n border: 1px solid ", ";\n }\n }\n\n &.download-button {\n background-image: url(", ");\n border: 1px solid ", ";\n border-radius: 15px;\n background-size: 15px;\n\n &:hover {\n color: white;\n background-color: ", ";\n border: 1px solid ", ";\n }\n }\n }\n\n &.general-arrow-button {\n background-image: url(", ");\n width: 27px;\n height: 27px;\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: center;\n }\n\n &.close-button {\n width: 52px;\n height: 52px;\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: center;\n background-image: url(", ");\n }\n\n &.open-modal-button {\n background-color: transparent;\n border: none;\n cursor: pointer;\n position: absolute;\n right: 10px;\n bottom: 10px;\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: center;\n width: 21px;\n height: 21px;\n padding: 0;\n border-radius: 0;\n background-image: url(", ");\n }\n\n &.grid-layout,\n &.row-layout {\n background-color: transparent;\n background-repeat: no-repeat;\n width: 24px;\n height: 24px;\n padding: 0;\n }\n\n &.grid-layout {\n background-image: url(", ");\n }\n\n &.row-layout {\n background-image: url(", ");\n }\n\n &.general-button-disabled {\n background-color: grey;\n color: ", ";\n\n &:hover {\n opacity: 1;\n }\n }\n"])), function (props) {
|
|
46
|
+
var Container = _styledComponents.default.button(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background-color: #e33aa9;\n border: none;\n border-radius: 30px;\n color: #fff;\n font-family: ", ";\n font-style: normal;\n font-weight: normal;\n font-size: 18px;\n line-height: 22px;\n padding: 10px 25px;\n cursor: pointer;\n\n &:hover {\n opacity: 0.7;\n }\n\n &.general-purple-button {\n background-color: #603888;\n }\n\n &.general-transparent-button {\n background-color: transparent;\n border: 1px solid #503d66;\n color: #503d66;\n }\n &.general-white-button {\n background-color: ", ";\n color: ", ";\n }\n\n &.general-green-button {\n background-color: #71de56;\n }\n\n &.circular-button {\n width: 25px;\n height: 25px;\n padding: 0;\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: center;\n\n &.accept-button {\n background-image: url(", ");\n }\n\n &.reject-button {\n background-image: url(", ");\n }\n\n &.null-button {\n background-image: url(", ");\n }\n\n &.save-button {\n background-image: url(", ");\n border: 1px solid ", ";\n border-radius: 15px;\n\n &:hover {\n background-image: url(", ");\n background-color: ", ";\n border: 1px solid ", ";\n }\n }\n\n &.delete-button {\n background-image: url(", ");\n border: 1px solid ", ";\n border-radius: 15px;\n background-size: 15px;\n\n &:hover {\n background-image: url(", ");\n background-color: ", ";\n border: 1px solid ", ";\n }\n }\n\n &.download-button {\n background-image: url(", ");\n border: 1px solid ", ";\n border-radius: 15px;\n background-size: 15px;\n\n &:hover {\n color: white;\n background-color: ", ";\n border: 1px solid ", ";\n }\n }\n\n &.disabled {\n opacity: 0.5;\n }\n\n img {\n width: 100%;\n }\n\n &.version-button {\n color: ", ";\n border: 1px solid ", ";\n border-radius: 15px;\n font-size: 12px;\n line-height: 25px;\n text-align: center;\n }\n }\n\n &.general-arrow-button {\n background-image: url(", ");\n width: 27px;\n height: 27px;\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: center;\n }\n\n &.close-button {\n width: 52px;\n height: 52px;\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: center;\n background-image: url(", ");\n }\n\n &.open-modal-button {\n background-color: transparent;\n border: none;\n cursor: pointer;\n position: absolute;\n right: 10px;\n bottom: 10px;\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: center;\n width: 21px;\n height: 21px;\n padding: 0;\n border-radius: 0;\n background-image: url(", ");\n }\n\n &.grid-layout,\n &.row-layout {\n background-color: transparent;\n background-repeat: no-repeat;\n width: 24px;\n height: 24px;\n padding: 0;\n }\n\n &.grid-layout {\n background-image: url(", ");\n }\n\n &.row-layout {\n background-image: url(", ");\n }\n\n &.general-button-disabled {\n background-color: grey;\n color: ", ";\n\n &:hover {\n opacity: 1;\n }\n }\n"])), function (props) {
|
|
47
47
|
return props.buttonFont;
|
|
48
|
-
}, _variables.GlobalColors.s1, _variables.GlobalColors.original_purpura, _acceptIcon.default, _rejectIcon.default, _nullIcon.default, _saveIcon.default, _variables.GlobalColors.s3, _saveIconHover.default, _variables.GlobalColors.magenta_s2, _variables.GlobalColors.magenta_s2, _deleteIcon.default, _variables.GlobalColors.s3, _deleteIconHover.default, _variables.GlobalColors.magenta_s2, _variables.GlobalColors.magenta_s2, _downloadIcon.default, _variables.GlobalColors.s3, _variables.GlobalColors.magenta_s2, _variables.GlobalColors.magenta_s2, _arrowIcon.default, _closeIcon.default, _openModal.default, _rowLayout.default, _gridLayout.default, _variables.GlobalColors.white);
|
|
48
|
+
}, _variables.GlobalColors.s1, _variables.GlobalColors.original_purpura, _acceptIcon.default, _rejectIcon.default, _nullIcon.default, _saveIcon.default, _variables.GlobalColors.s3, _saveIconHover.default, _variables.GlobalColors.magenta_s2, _variables.GlobalColors.magenta_s2, _deleteIcon.default, _variables.GlobalColors.s3, _deleteIconHover.default, _variables.GlobalColors.magenta_s2, _variables.GlobalColors.magenta_s2, _downloadIcon.default, _variables.GlobalColors.s3, _variables.GlobalColors.magenta_s2, _variables.GlobalColors.magenta_s2, _variables.GlobalColors.s3, _variables.GlobalColors.s3, _arrowIcon.default, _closeIcon.default, _openModal.default, _rowLayout.default, _gridLayout.default, _variables.GlobalColors.white);
|
|
49
49
|
|
|
50
50
|
exports.Container = Container;
|
|
@@ -79,7 +79,6 @@ var InputFormatter = function InputFormatter(_ref) {
|
|
|
79
79
|
|
|
80
80
|
var _onChange = function onChange(valueInput, delta, user, h) {
|
|
81
81
|
var value = "";
|
|
82
|
-
console.log(valueInput, "valueInput");
|
|
83
82
|
|
|
84
83
|
try {
|
|
85
84
|
if (h.getLength() - 1 <= maxLength) {
|
|
@@ -155,7 +154,7 @@ var InputFormatter = function InputFormatter(_ref) {
|
|
|
155
154
|
ref: function ref(el) {
|
|
156
155
|
return setQuill(el);
|
|
157
156
|
},
|
|
158
|
-
|
|
157
|
+
defaultValue: getValue(inputValue) //disabled={!props.enableInputs}
|
|
159
158
|
,
|
|
160
159
|
modules: {
|
|
161
160
|
toolbar: ["bold"]
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.VersionSelect = void 0;
|
|
7
|
+
|
|
8
|
+
var _style = require("./style");
|
|
9
|
+
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
|
|
12
|
+
var VersionSelect = function VersionSelect(_ref) {
|
|
13
|
+
var id = _ref.id,
|
|
14
|
+
selectedVersions = _ref.selectedVersions,
|
|
15
|
+
onChange = _ref.onChange,
|
|
16
|
+
label = _ref.label,
|
|
17
|
+
_ref$versions = _ref.versions,
|
|
18
|
+
versions = _ref$versions === void 0 ? [] : _ref$versions;
|
|
19
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_style.VrsnSelect, {
|
|
20
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
21
|
+
htmlFor: id,
|
|
22
|
+
children: label
|
|
23
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("select", {
|
|
24
|
+
id: id,
|
|
25
|
+
name: id,
|
|
26
|
+
value: "Version ".concat(selectedVersions[id]),
|
|
27
|
+
onChange: onChange,
|
|
28
|
+
children: versions.map(function (item, index) {
|
|
29
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("option", {
|
|
30
|
+
children: ["Version ", item.version]
|
|
31
|
+
}, "".concat(id, "-").concat(index));
|
|
32
|
+
})
|
|
33
|
+
})]
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
exports.VersionSelect = VersionSelect;
|
|
@@ -10,13 +10,14 @@ var _style = require("./style");
|
|
|
10
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
11
|
|
|
12
12
|
function Select(props) {
|
|
13
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
13
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_style.Container, {
|
|
14
14
|
width: props.width,
|
|
15
|
-
children:
|
|
15
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_style.SelectCustom, {
|
|
16
16
|
id: props.id,
|
|
17
17
|
width: props.width,
|
|
18
18
|
onChange: props.onChange,
|
|
19
19
|
defaultValue: props.valueSelected ? props.valueSelected : "",
|
|
20
|
+
className: props.className,
|
|
20
21
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
21
22
|
value: "",
|
|
22
23
|
disabled: true,
|
|
@@ -34,6 +35,6 @@ function Select(props) {
|
|
|
34
35
|
children: [item.name ? item.name : item, " ", item !== null && item !== void 0 && item.required ? "*" : ""]
|
|
35
36
|
}, "select-" + item.value ? item.value : item + "-" + i);
|
|
36
37
|
})]
|
|
37
|
-
})
|
|
38
|
+
})
|
|
38
39
|
});
|
|
39
40
|
}
|
|
@@ -5,13 +5,15 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.SelectCustom = exports.Container = exports.BackgroundEnd = void 0;
|
|
8
|
+
exports.VrsnSelect = exports.SelectCustom = exports.Container = exports.BackgroundEnd = void 0;
|
|
9
9
|
|
|
10
10
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
11
|
|
|
12
12
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _variables = require("../../../global-files/variables");
|
|
15
|
+
|
|
16
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
15
17
|
|
|
16
18
|
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n display: flex;\n align-items: center;\n cursor: pointer;\n height: 21px;\n line-height: 3;\n width: ", ";\n overflow: hidden;\n border-radius: 0.25em;\n &::after {\n border-left: 1px solid #e33aa9;\n border-top: 1px solid #e33aa9;\n width: 4px;\n content: \"\";\n height: 4px;\n position: absolute;\n right: 7px;\n -webkit-transform: rotate(-135deg);\n -ms-transform: rotate(-135deg);\n transform: rotate(-135deg);\n top: 35%;\n }\n &::before {\n border-left: 1px solid #e33aa9;\n width: 1px;\n content: \"\";\n height: 15px;\n right: 15px;\n position: absolute;\n z-index: 2;\n }\n"])), function (_ref) {
|
|
17
19
|
var width = _ref.width;
|
|
@@ -24,9 +26,13 @@ var BackgroundEnd = _styledComponents.default.div(_templateObject2 || (_template
|
|
|
24
26
|
|
|
25
27
|
exports.BackgroundEnd = BackgroundEnd;
|
|
26
28
|
|
|
27
|
-
var SelectCustom = _styledComponents.default.select(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n background: #fafafa;\n -webkit-appearance: none;\n -moz-appearance: none;\n -ms-appearance: none;\n appearance: none;\n outline: 0;\n box-shadow: none;\n border: 0 !important;\n background-image: none;\n width: ", ";\n cursor: pointer;\n height: 21px;\n font-family: Avenir Next;\n font-style: normal;\n font-weight: normal;\n font-size: 12px;\n line-height: 21px;\n padding: 0 5px;\n box-sizing: border-box;\n &::-ms-expand {\n display: none;\n }\n option {\n &:disabled {\n color: #d4d1d7;\n }\n &:invalid {\n color: gray;\n }\n }\n"])), function (_ref2) {
|
|
29
|
+
var SelectCustom = _styledComponents.default.select(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n background: #fafafa;\n -webkit-appearance: none;\n -moz-appearance: none;\n -ms-appearance: none;\n appearance: none;\n outline: 0;\n box-shadow: none;\n border: 0 !important;\n background-image: none;\n width: ", ";\n cursor: pointer;\n height: 21px;\n font-family: Avenir Next;\n font-style: normal;\n font-weight: normal;\n font-size: 12px;\n line-height: 21px;\n padding: 0 5px;\n box-sizing: border-box;\n &::-ms-expand {\n display: none;\n }\n option {\n &:disabled {\n color: #d4d1d7;\n }\n &:invalid {\n color: gray;\n }\n }\n\n &.version-selector {\n }\n"])), function (_ref2) {
|
|
28
30
|
var width = _ref2.width;
|
|
29
31
|
return width || "100%";
|
|
30
32
|
});
|
|
31
33
|
|
|
32
|
-
exports.SelectCustom = SelectCustom;
|
|
34
|
+
exports.SelectCustom = SelectCustom;
|
|
35
|
+
|
|
36
|
+
var VrsnSelect = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n\n select {\n border: 1px solid ", " !important;\n background-color: transparent;\n color: ", ";\n width: 100%;\n text-align: center;\n padding: 5px;\n border-radius: 15px;\n text-decoration: none;\n }\n"])), _variables.GlobalColors.deep_gray, _variables.GlobalColors.s3, _variables.GlobalColors.white);
|
|
37
|
+
|
|
38
|
+
exports.VrsnSelect = VrsnSelect;
|
|
@@ -15,10 +15,10 @@ var _variables = require("../../../global-files/variables");
|
|
|
15
15
|
|
|
16
16
|
var _templateObject, _templateObject2;
|
|
17
17
|
|
|
18
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background: transparent;\n cursor: pointer;\n position: relative;\n & + * {\n margin-left: 10px;\n }\n img {\n &.small-image {\n width: 20px;\n height: 20px;\n }\n &.medium-image {\n width: 30px;\n height: 30px;\n }\n &.big-image {\n width: 40px;\n height: 40px;\n }\n }\n"])));
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background: transparent;\n cursor: pointer;\n position: relative;\n height: 100%;\n display: flex;\n align-items: center;\n & + * {\n margin-left: 10px;\n }\n img {\n margin: auto 0;\n &.small-image {\n width: 20px;\n height: 20px;\n }\n &.medium-image {\n width: 30px;\n height: 30px;\n }\n &.big-image {\n width: 40px;\n height: 40px;\n }\n }\n"])));
|
|
19
19
|
|
|
20
20
|
exports.Container = Container;
|
|
21
21
|
|
|
22
|
-
var Slider = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n font-family: sans-serif;\n margin: auto;\n background: #281f33;\n border-radius: 6px;\n width: 310px;\n padding: 16px;\n padding-top: 20px;\n box-sizing: border-box;\n position: absolute;\n cursor: default;\n z-index: 2;\n width: 310px;\n &.top-slide {\n top: calc(100% - 370px);\n left: calc(100% - 175px);\n }\n &.bottom-slide {\n top: 100%;\n right: calc(100% + -70px);\n }\n ul,\n li {\n padding: 0;\n margin: 0;\n list-style: none;\n }\n .slider {\n position: relative;\n max-width: 300px;\n width: 100%;\n height: 270px;\n margin: 0;\n li {\n position: absolute;\n left: 0px;\n top: 0px;\n opacity: 0;\n width: inherit;\n height: inherit;\n transition: opacity 0.5s;\n background: transparent;\n img {\n width: 100%;\n height: 180px;\n border-radius: 4px;\n background-color: #fafafa;\n & + * {\n margin-top: 10px;\n }\n }\n p {\n font-family: \"Avenir Next\";\n font-style: normal;\n font-weight: 400;\n font-size: 10px;\n line-height: 12px;\n text-align: center;\n letter-spacing: -0.015em;\n color: #fafafa;\n background-color: #281f33;\n }\n div {\n background-color: #fafafa;\n height: 180px;\n border-radius: 4px;\n display: flex;\n justify-content: center;\n flex-direction: column;\n align-items: center;\n img {\n width: 90%;\n }\n & + * {\n margin-top: 13px;\n }\n }\n span {\n
|
|
22
|
+
var Slider = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n font-family: sans-serif;\n margin: auto;\n background: #281f33;\n border-radius: 6px;\n width: 310px;\n padding: 16px;\n padding-top: 20px;\n box-sizing: border-box;\n position: absolute;\n cursor: default;\n z-index: 2;\n width: 310px;\n &.top-slide {\n top: calc(100% - 370px);\n left: calc(100% - 175px);\n }\n &.bottom-slide {\n top: 100%;\n right: calc(100% + -70px);\n }\n ul,\n li {\n padding: 0;\n margin: 0;\n list-style: none;\n }\n .slider {\n position: relative;\n max-width: 300px;\n width: 100%;\n height: 270px;\n margin: 0;\n li {\n position: absolute;\n left: 0px;\n top: 0px;\n opacity: 0;\n width: inherit;\n height: inherit;\n transition: opacity 0.5s;\n background: transparent;\n img {\n width: 100%;\n height: 180px;\n border-radius: 4px;\n background-color: #fafafa;\n & + * {\n margin-top: 10px;\n }\n }\n p {\n font-family: \"Avenir Next\";\n font-style: normal;\n font-weight: 400;\n font-size: 10px;\n line-height: 12px;\n text-align: center;\n letter-spacing: -0.015em;\n color: #fafafa;\n background-color: #281f33;\n }\n div {\n background-color: #fafafa;\n height: 180px;\n border-radius: 4px;\n display: flex;\n justify-content: center;\n flex-direction: column;\n align-items: center;\n img {\n width: 90%;\n }\n & + * {\n margin-top: 13px;\n }\n }\n span {\n font-family: \"Avenir Next\";\n font-style: normal;\n font-weight: 500;\n font-size: 15px;\n line-height: 15px;\n text-align: center;\n letter-spacing: -0.015em;\n color: #fafafa;\n display: flex;\n justify-content: center;\n background-color: #281f33;\n & + * {\n margin-top: 10px;\n }\n }\n }\n .end-div {\n div {\n height: 130px;\n width: 100%;\n background-color: #fafafa;\n display: flex;\n align-items: center;\n border-radius: 4px;\n img {\n width: 100%;\n height: 115px;\n object-fit: contain;\n }\n }\n .lema-end {\n justify-content: center;\n justify-content: space-evenly;\n height: 110px;\n background-color: #281f33;\n flex-direction: column;\n justify-content: space-evenly;\n border-radius: inherit;\n }\n button {\n display: none;\n justify-content: center;\n align-items: center;\n padding: 10px;\n width: 160px;\n height: 30px;\n border: 1px solid #d4d1d7;\n border-radius: 15px;\n color: #fafafa;\n background-color: #281f33;\n font-family: \"Avenir Next\";\n font-style: normal;\n font-weight: 400;\n font-size: 18px;\n line-height: 25px;\n letter-spacing: -0.015em;\n position: absolute;\n left: 22%;\n top: 90%;\n cursor: pointer;\n }\n }\n }\n li:first-child {\n opacity: 1;\n }\n .menu {\n margin: 0;\n text-align: center;\n li {\n display: inline-block;\n text-align: center;\n & + * {\n margin-left: 15px;\n }\n a {\n display: inline-block;\n text-decoration: none;\n background-color: #c4c4c4;\n width: 10px;\n height: 10px;\n border-radius: 100%;\n cursor: pointer;\n }\n #slidea1 {\n background-color: #e33aa9;\n }\n }\n }\n"])));
|
|
23
23
|
|
|
24
24
|
exports.Slider = Slider;
|
|
@@ -55,7 +55,9 @@ var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
|
|
|
55
55
|
id = _ref$id === void 0 ? "default-id" : _ref$id,
|
|
56
56
|
onClickSave = _ref.onClickSave,
|
|
57
57
|
showSaveButton = _ref.showSaveButton,
|
|
58
|
-
canAssign = _ref.canAssign
|
|
58
|
+
canAssign = _ref.canAssign,
|
|
59
|
+
version = _ref.version,
|
|
60
|
+
setShowVersionSelector = _ref.setShowVersionSelector;
|
|
59
61
|
|
|
60
62
|
var _useState = (0, _react.useState)(false),
|
|
61
63
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -104,6 +106,12 @@ var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
|
|
|
104
106
|
slidefront: slidefront,
|
|
105
107
|
iconSize: "medium-image",
|
|
106
108
|
slidePosition: "bottom-slide"
|
|
109
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
110
|
+
buttonType: "general circular-button version-button",
|
|
111
|
+
onClick: function onClick() {
|
|
112
|
+
setShowVersionSelector(true);
|
|
113
|
+
},
|
|
114
|
+
label: "V".concat(version)
|
|
107
115
|
}), status !== "-" && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.StatusTag, {
|
|
108
116
|
statusType: status,
|
|
109
117
|
ovalForm: true
|
|
@@ -0,0 +1,28 @@
|
|
|
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.VersionItemDefault = 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 _default = {
|
|
17
|
+
title: "Components/molecules/VersionItem",
|
|
18
|
+
component: _index.VersionItem
|
|
19
|
+
};
|
|
20
|
+
exports.default = _default;
|
|
21
|
+
|
|
22
|
+
var Template = function Template(args) {
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.VersionItem, (0, _objectSpread2.default)({}, args));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var VersionItemDefault = Template.bind({});
|
|
27
|
+
exports.VersionItemDefault = VersionItemDefault;
|
|
28
|
+
VersionItemDefault.args = {};
|
|
@@ -0,0 +1,64 @@
|
|
|
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.VersionItem = void 0;
|
|
9
|
+
|
|
10
|
+
var _index = require("../../atoms/Avatar/index");
|
|
11
|
+
|
|
12
|
+
var _styles = require("./styles");
|
|
13
|
+
|
|
14
|
+
var _nullIcon = _interopRequireDefault(require("../../../assets/images/versionSelector/nullIcon.svg"));
|
|
15
|
+
|
|
16
|
+
var _acceptIcon = _interopRequireDefault(require("../../../assets/images/versionSelector/acceptIcon.svg"));
|
|
17
|
+
|
|
18
|
+
var _versionSelected = _interopRequireDefault(require("../../../assets/images/versionSelector/versionSelected.svg"));
|
|
19
|
+
|
|
20
|
+
var _GeneralButton = require("../../atoms/GeneralButton");
|
|
21
|
+
|
|
22
|
+
var _ScreenHeader = require("../../atoms/ScreenHeader");
|
|
23
|
+
|
|
24
|
+
var _variables = require("../../../global-files/variables");
|
|
25
|
+
|
|
26
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
27
|
+
|
|
28
|
+
var VersionItem = function VersionItem(_ref) {
|
|
29
|
+
var _ref$version = _ref.version,
|
|
30
|
+
version = _ref$version === void 0 ? "" : _ref$version,
|
|
31
|
+
articleStatus = _ref.articleStatus,
|
|
32
|
+
currentVersion = _ref.currentVersion,
|
|
33
|
+
_ref$productOwner = _ref.productOwner,
|
|
34
|
+
productOwner = _ref$productOwner === void 0 ? "owner test" : _ref$productOwner,
|
|
35
|
+
setVersion = _ref.setVersion;
|
|
36
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
37
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
38
|
+
className: "header",
|
|
39
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
40
|
+
buttonType: "circular-button" + (currentVersion ? " disabled" : ""),
|
|
41
|
+
image: _versionSelected.default,
|
|
42
|
+
onClick: function onClick() {
|
|
43
|
+
return setVersion && setVersion(version);
|
|
44
|
+
}
|
|
45
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
46
|
+
src: articleStatus ? _acceptIcon.default : _nullIcon.default,
|
|
47
|
+
alt: articleStatus ? "Validated version" : "Unvalidated version"
|
|
48
|
+
})]
|
|
49
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
50
|
+
className: "version-info",
|
|
51
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
52
|
+
text: "Version " + version,
|
|
53
|
+
headerType: "input-name-header",
|
|
54
|
+
color: _variables.GlobalColors.magenta_s2
|
|
55
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
56
|
+
children: currentVersion ? "Version actual" : articleStatus ? "Edición Content-oh!" : "Version de " + productOwner
|
|
57
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
58
|
+
children: articleStatus ? "Content-oh! Digital" : productOwner
|
|
59
|
+
})]
|
|
60
|
+
})]
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
exports.VersionItem = VersionItem;
|
|
@@ -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 _variables = require("../../../global-files/variables");
|
|
13
|
+
|
|
14
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
15
|
+
|
|
16
|
+
var _templateObject;
|
|
17
|
+
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n padding-bottom: 5px;\n border-bottom: 1px solid ", ";\n .header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n .version-info {\n text-align: right;\n h2,\n p {\n & + * {\n margin-top: 5px;\n }\n }\n\n p {\n font-size: 12px;\n font-family: ", ";\n color: ", ";\n }\n }\n\n & + * {\n margin-top: 18px;\n }\n"])), _variables.GlobalColors.deep_gray, _variables.GlobalColors.s4, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s2);
|
|
19
|
+
|
|
20
|
+
exports.Container = Container;
|
|
@@ -0,0 +1,31 @@
|
|
|
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.CreateVersionDefault = 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 _default = {
|
|
17
|
+
title: "Components/organisms/CreateVersion",
|
|
18
|
+
component: _index.CreateVersion
|
|
19
|
+
};
|
|
20
|
+
exports.default = _default;
|
|
21
|
+
|
|
22
|
+
var Template = function Template(args) {
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.CreateVersion, (0, _objectSpread2.default)({}, args));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var CreateVersionDefault = Template.bind({});
|
|
27
|
+
exports.CreateVersionDefault = CreateVersionDefault;
|
|
28
|
+
CreateVersionDefault.args = {
|
|
29
|
+
idArticle: 76201,
|
|
30
|
+
version: 2
|
|
31
|
+
};
|
|
@@ -0,0 +1,157 @@
|
|
|
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.Children = void 0;
|
|
9
|
+
|
|
10
|
+
var _variables = require("../../../global-files/variables");
|
|
11
|
+
|
|
12
|
+
var _GeneralButton = require("../../atoms/GeneralButton");
|
|
13
|
+
|
|
14
|
+
var _ScreenHeader = require("../../atoms/ScreenHeader");
|
|
15
|
+
|
|
16
|
+
var _styles = require("./styles");
|
|
17
|
+
|
|
18
|
+
var _createVersion = _interopRequireDefault(require("../../../assets/images/versionSelector/createVersion.svg"));
|
|
19
|
+
|
|
20
|
+
var _genericModalWarning = _interopRequireDefault(require("../../../assets/images/genericModal/genericModalWarning.svg"));
|
|
21
|
+
|
|
22
|
+
var _VersionSelect = require("../../atoms/Select/VersionSelect");
|
|
23
|
+
|
|
24
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
|
+
|
|
26
|
+
var Children = function Children(step, setStep, versions, selectedVersions, _onChange, createVersion) {
|
|
27
|
+
switch (step) {
|
|
28
|
+
case "version-options":
|
|
29
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.VersionOptions, {
|
|
30
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
31
|
+
src: createVersion,
|
|
32
|
+
alt: "create version icon"
|
|
33
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
34
|
+
fontFamily: _variables.FontFamily.Raleway_500,
|
|
35
|
+
headerType: "product-name-header",
|
|
36
|
+
color: _variables.GlobalColors.white,
|
|
37
|
+
text: "Crea una nueva versión"
|
|
38
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
39
|
+
fontFamily: _variables.FontFamily.Raleway,
|
|
40
|
+
headerType: "retailer-name-header",
|
|
41
|
+
color: _variables.GlobalColors.white,
|
|
42
|
+
text: "Puedes elegir el contenido de versiones anteriores o crear una versión desde cero"
|
|
43
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
44
|
+
className: "buttons-container",
|
|
45
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
46
|
+
label: "Versión desde cero",
|
|
47
|
+
buttonType: "general-transparent-button",
|
|
48
|
+
onClick: function onClick() {
|
|
49
|
+
return setStep("empty-version");
|
|
50
|
+
}
|
|
51
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
52
|
+
label: "Versión personalizada",
|
|
53
|
+
buttonType: "general-default-button",
|
|
54
|
+
onClick: function onClick() {
|
|
55
|
+
return setStep("create-version");
|
|
56
|
+
}
|
|
57
|
+
})]
|
|
58
|
+
})]
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
case "empty-version":
|
|
62
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.EmptyVersion, {
|
|
63
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
64
|
+
src: _genericModalWarning.default,
|
|
65
|
+
alt: "warning icon"
|
|
66
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
67
|
+
fontFamily: _variables.FontFamily.Raleway_500,
|
|
68
|
+
headerType: "product-name-header",
|
|
69
|
+
color: _variables.GlobalColors.white,
|
|
70
|
+
text: "Si creas una versión desde cero perderas la información actual"
|
|
71
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
72
|
+
fontFamily: _variables.FontFamily.Raleway,
|
|
73
|
+
headerType: "retailer-name-header",
|
|
74
|
+
color: _variables.GlobalColors.white,
|
|
75
|
+
text: "¿Deseas Continuar?"
|
|
76
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
77
|
+
className: "buttons-container",
|
|
78
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
79
|
+
label: "Atrás",
|
|
80
|
+
buttonType: "general-transparent-button",
|
|
81
|
+
onClick: function onClick() {
|
|
82
|
+
return setStep("version-options");
|
|
83
|
+
}
|
|
84
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
85
|
+
label: "Continuar",
|
|
86
|
+
buttonType: "general-default-button",
|
|
87
|
+
onClick: function onClick() {
|
|
88
|
+
return createVersion(true);
|
|
89
|
+
}
|
|
90
|
+
})]
|
|
91
|
+
})]
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
case "create-version":
|
|
95
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.CreateVersion, {
|
|
96
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
97
|
+
fontFamily: _variables.FontFamily.Raleway_500,
|
|
98
|
+
headerType: "retailer-name-header",
|
|
99
|
+
color: _variables.GlobalColors.white,
|
|
100
|
+
text: "Elige el contenido que deseas utilizar de versiones anteriores"
|
|
101
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
102
|
+
className: "version-selector",
|
|
103
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
104
|
+
className: "selector",
|
|
105
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_VersionSelect.VersionSelect, {
|
|
106
|
+
versions: versions,
|
|
107
|
+
label: "Ficha técnica",
|
|
108
|
+
id: "datasheet",
|
|
109
|
+
selectedVersions: selectedVersions,
|
|
110
|
+
onChange: function onChange(e) {
|
|
111
|
+
return _onChange(e);
|
|
112
|
+
}
|
|
113
|
+
})
|
|
114
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
115
|
+
className: "selector",
|
|
116
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_VersionSelect.VersionSelect, {
|
|
117
|
+
versions: versions,
|
|
118
|
+
label: "Descripción",
|
|
119
|
+
id: "description",
|
|
120
|
+
selectedVersions: selectedVersions,
|
|
121
|
+
onChange: function onChange(e) {
|
|
122
|
+
return _onChange(e);
|
|
123
|
+
}
|
|
124
|
+
})
|
|
125
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
126
|
+
className: "selector",
|
|
127
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_VersionSelect.VersionSelect, {
|
|
128
|
+
versions: versions,
|
|
129
|
+
label: "Imágenes",
|
|
130
|
+
id: "image",
|
|
131
|
+
selectedVersions: selectedVersions,
|
|
132
|
+
onChange: function onChange(e) {
|
|
133
|
+
return _onChange(e);
|
|
134
|
+
}
|
|
135
|
+
})
|
|
136
|
+
})]
|
|
137
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
138
|
+
className: "buttons-container",
|
|
139
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
140
|
+
label: "Atrás",
|
|
141
|
+
buttonType: "general-transparent-button",
|
|
142
|
+
onClick: function onClick() {
|
|
143
|
+
return setStep("version-options");
|
|
144
|
+
}
|
|
145
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
146
|
+
label: "Continuar",
|
|
147
|
+
buttonType: "general-default-button",
|
|
148
|
+
onClick: function onClick() {
|
|
149
|
+
return createVersion();
|
|
150
|
+
}
|
|
151
|
+
})]
|
|
152
|
+
})]
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
exports.Children = Children;
|