contentoh-components-library 21.3.4 → 21.3.6
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 +2 -2
- package/.env.production +25 -25
- package/dist/assets/fonts/{roboto → Roboto}/LICENSE.txt +0 -0
- package/dist/assets/fonts/{roboto → Roboto}/Roboto-Black.ttf +0 -0
- package/dist/assets/fonts/{roboto → Roboto}/Roboto-BlackItalic.ttf +0 -0
- package/dist/assets/fonts/{roboto → Roboto}/Roboto-Bold.ttf +0 -0
- package/dist/assets/fonts/{roboto → Roboto}/Roboto-BoldItalic.ttf +0 -0
- package/dist/assets/fonts/{roboto → Roboto}/Roboto-Italic.ttf +0 -0
- package/dist/assets/fonts/{roboto → Roboto}/Roboto-Light.ttf +0 -0
- package/dist/assets/fonts/{roboto → Roboto}/Roboto-LightItalic.ttf +0 -0
- package/dist/assets/fonts/{roboto → Roboto}/Roboto-Medium.ttf +0 -0
- package/dist/assets/fonts/{roboto → Roboto}/Roboto-MediumItalic.ttf +0 -0
- package/dist/assets/fonts/{roboto → Roboto}/Roboto-Regular.ttf +0 -0
- package/dist/assets/fonts/{roboto → Roboto}/Roboto-Thin.ttf +0 -0
- package/dist/assets/fonts/{roboto → Roboto}/Roboto-ThinItalic.ttf +0 -0
- package/dist/components/atoms/GeneralButton/index.js +6 -2
- package/dist/components/atoms/ProgressBar/index.js +36 -6
- package/dist/components/atoms/ProgressBar/styles.js +11 -3
- package/dist/components/atoms/Select/VersionSelect.js +2 -1
- package/dist/components/molecules/ProductNameHeader/index.js +5 -3
- package/dist/components/organisms/CreateVersion/RenderChilds.js +11 -11
- package/dist/components/organisms/CreateVersion/index.js +30 -89
- package/dist/components/organisms/FullProductNameHeader/index.js +1 -0
- package/dist/components/organisms/OrderDetail/OrderDetail.stories.js +1 -1
- package/dist/components/organisms/OrderDetail/index.js +20 -11
- package/dist/components/organisms/OrderDetail/styles.js +1 -1
- package/dist/components/organisms/OrderDetail/utils/Table/styles.js +1 -1
- package/dist/components/organisms/OrderDetail/utils/Table/utils.js +45 -15
- package/dist/components/organisms/VersionSelector/index.js +28 -2
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +69 -147
- package/dist/components/pages/ProviderProductEdition/index.js +27 -47
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +66 -82
- package/dist/components/pages/RetailerProductEdition/index.js +18 -36
- package/package.json +4 -4
- package/src/assets/fonts/{roboto → Roboto}/LICENSE.txt +0 -0
- package/src/assets/fonts/{roboto → Roboto}/Roboto-Black.ttf +0 -0
- package/src/assets/fonts/{roboto → Roboto}/Roboto-BlackItalic.ttf +0 -0
- package/src/assets/fonts/{roboto → Roboto}/Roboto-Bold.ttf +0 -0
- package/src/assets/fonts/{roboto → Roboto}/Roboto-BoldItalic.ttf +0 -0
- package/src/assets/fonts/{roboto → Roboto}/Roboto-Italic.ttf +0 -0
- package/src/assets/fonts/{roboto → Roboto}/Roboto-Light.ttf +0 -0
- package/src/assets/fonts/{roboto → Roboto}/Roboto-LightItalic.ttf +0 -0
- package/src/assets/fonts/{roboto → Roboto}/Roboto-Medium.ttf +0 -0
- package/src/assets/fonts/{roboto → Roboto}/Roboto-MediumItalic.ttf +0 -0
- package/src/assets/fonts/{roboto → Roboto}/Roboto-Regular.ttf +0 -0
- package/src/assets/fonts/{roboto → Roboto}/Roboto-Thin.ttf +0 -0
- package/src/assets/fonts/{roboto → Roboto}/Roboto-ThinItalic.ttf +0 -0
- package/src/components/atoms/GeneralButton/index.js +4 -1
- package/src/components/atoms/ProgressBar/index.js +38 -5
- package/src/components/atoms/ProgressBar/styles.js +23 -0
- package/src/components/atoms/Select/VersionSelect.js +4 -2
- package/src/components/molecules/ProductNameHeader/index.js +6 -1
- package/src/components/organisms/CreateVersion/RenderChilds.js +28 -34
- package/src/components/organisms/CreateVersion/index.js +16 -36
- package/src/components/organisms/FullProductNameHeader/index.js +1 -0
- package/src/components/organisms/OrderDetail/OrderDetail.stories.js +1 -1
- package/src/components/organisms/OrderDetail/index.js +19 -12
- package/src/components/organisms/OrderDetail/styles.js +1 -0
- package/src/components/organisms/OrderDetail/utils/Table/styles.js +26 -0
- package/src/components/organisms/OrderDetail/utils/Table/utils.js +30 -15
- package/src/components/organisms/VersionSelector/index.js +18 -3
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +75 -166
- package/src/components/pages/ProviderProductEdition/index.js +12 -28
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +71 -82
- package/src/components/pages/RetailerProductEdition/index.js +14 -24
- package/src/global-files/customHooks.js +2 -2
package/.env.development
CHANGED
|
@@ -26,8 +26,8 @@ REACT_APP_TICKETS_CHAT_ENDPOINT=https://ocqbzaa4a2.execute-api.us-east-1.amazona
|
|
|
26
26
|
REACT_APP_IMAGES_ENDPOINT=https://content-management-images.s3.amazonaws.com
|
|
27
27
|
|
|
28
28
|
REACT_APP_IMAGES_BUCKET=content-management-images
|
|
29
|
-
REACT_APP_KEY_UPLOAD_TO_S3=AKIA5CPHLQTT46EQ5TIK
|
|
30
29
|
REACT_APP_IMAGES_PROFILE_BUCKET=content-management-profile
|
|
31
|
-
|
|
30
|
+
REACT_APP_KUTS3=AKIA5CPHLQTTS22HCGHW
|
|
31
|
+
REACT_APP_AKUTS3=RSpwEaM0fsLEgN7BJzRyCKqyU0lNExTsPUvxyNXm
|
|
32
32
|
REACT_APP_USER_POOL_ID=us-east-1_XMZQdqkGj
|
|
33
33
|
REACT_APP_USER_POOL_WEB_CLIENT_ID=5ac8tpgs6gbsq13frvrpieep40
|
package/.env.production
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
REACT_APP_ARTICLE_DATA_ENDPOINT=https://
|
|
2
|
-
REACT_APP_ARTICLE_DATA_DATASHEET_ENDPOINT=https://
|
|
3
|
-
REACT_APP_ARTICLE_DATA_DESCRIPTION_ENDPOINT=https://
|
|
4
|
-
REACT_APP_ARTICLE_DATA_IMAGES_ENDPOINT=https://
|
|
5
|
-
REACT_APP_ARTICLE_DATA_ENDPOINT=https://
|
|
6
|
-
REACT_APP_VALID_EXPORT_ENDPOINT = https://
|
|
7
|
-
REACT_APP_SERVICES_ENDPOINT = https://
|
|
8
|
-
REACT_APP_EVALUATION_ENDPOINT = https://
|
|
9
|
-
REACT_APP_SEND_EVAL = https://
|
|
10
|
-
REACT_APP_COMMENTS_ENDPOINT = https://
|
|
11
|
-
REACT_APP_USER_ENDPOINT=https://
|
|
12
|
-
REACT_APP_ASSIGNATIONS_ENDPOINT = https://
|
|
13
|
-
REACT_APP_TASKS_ENDPOINT = https://
|
|
14
|
-
REACT_APP_USER_TASKS_ENDPOINT = https://
|
|
15
|
-
REACT_APP_CART = https://
|
|
16
|
-
REACT_APP_RETAILER_REQUEST = https://
|
|
17
|
-
REACT_APP_VERSIONS_ENDPOINT = https://
|
|
18
|
-
REACT_APP_RETAILER_ENDPOINT=https://
|
|
19
|
-
REACT_APP_READ_ORDERS_BY_STATUS=https://
|
|
20
|
-
REACT_APP_READ_REQUIRED_ORDERS=https://
|
|
21
|
-
REACT_APP_CATEGORY_ENDPOINT=https://
|
|
22
|
-
REACT_APP_READ_PROVIDERS=https://
|
|
23
|
-
REACT_APP_PENDING_INVITATIONS=https://
|
|
1
|
+
REACT_APP_ARTICLE_DATA_ENDPOINT=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/articles-data
|
|
2
|
+
REACT_APP_ARTICLE_DATA_DATASHEET_ENDPOINT=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/articles-data/datasheets
|
|
3
|
+
REACT_APP_ARTICLE_DATA_DESCRIPTION_ENDPOINT=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/articles-data/descriptions
|
|
4
|
+
REACT_APP_ARTICLE_DATA_IMAGES_ENDPOINT=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/articles-data/images
|
|
5
|
+
REACT_APP_ARTICLE_DATA_ENDPOINT=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/articles-data
|
|
6
|
+
REACT_APP_VALID_EXPORT_ENDPOINT = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/valid-export
|
|
7
|
+
REACT_APP_SERVICES_ENDPOINT = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/services
|
|
8
|
+
REACT_APP_EVALUATION_ENDPOINT = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/evaluations
|
|
9
|
+
REACT_APP_SEND_EVAL = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/eval-status
|
|
10
|
+
REACT_APP_COMMENTS_ENDPOINT = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/comments
|
|
11
|
+
REACT_APP_USER_ENDPOINT=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/users
|
|
12
|
+
REACT_APP_ASSIGNATIONS_ENDPOINT = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/assignations
|
|
13
|
+
REACT_APP_TASKS_ENDPOINT = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/tasks
|
|
14
|
+
REACT_APP_USER_TASKS_ENDPOINT = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/user-tasks
|
|
15
|
+
REACT_APP_CART = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/cart
|
|
16
|
+
REACT_APP_RETAILER_REQUEST = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/retailers-request
|
|
17
|
+
REACT_APP_VERSIONS_ENDPOINT = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/versions
|
|
18
|
+
REACT_APP_RETAILER_ENDPOINT=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/retailers
|
|
19
|
+
REACT_APP_READ_ORDERS_BY_STATUS=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/read-orders-by-status
|
|
20
|
+
REACT_APP_READ_REQUIRED_ORDERS=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/read-required-orders
|
|
21
|
+
REACT_APP_CATEGORY_ENDPOINT=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/categories
|
|
22
|
+
REACT_APP_READ_PROVIDERS=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/providers
|
|
23
|
+
REACT_APP_PENDING_INVITATIONS=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/pending-invitations
|
|
24
24
|
|
|
25
25
|
REACT_APP_IMAGES_BUCKET=content-management-images-prod
|
|
26
|
-
REACT_APP_KEY_UPLOAD_TO_S3=AKIA5CPHLQTT46EQ5TIK
|
|
27
26
|
REACT_APP_IMAGES_PROFILE_BUCKET=content-management-profile-prod
|
|
28
|
-
|
|
27
|
+
REACT_APP_KUTS3=AKIA5CPHLQTT46EQ5TIK
|
|
28
|
+
REACT_APP_AKUTS3=tZDdrmvwxM1cScspfxFM3XpU4HSYrCNPazyHd0BL
|
|
29
29
|
REACT_APP_USER_POOL_ID=us-east-1_XMZQdqkGj
|
|
30
30
|
REACT_APP_USER_POOL_WEB_CLIENT_ID=5ac8tpgs6gbsq13frvrpieep40
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -20,12 +20,16 @@ var Button = function Button(_ref) {
|
|
|
20
20
|
image = _ref.image,
|
|
21
21
|
altText = _ref.altText,
|
|
22
22
|
buttonFont = _ref.buttonFont,
|
|
23
|
-
|
|
23
|
+
_onClick = _ref.onClick;
|
|
24
24
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
25
25
|
id: id,
|
|
26
26
|
className: buttonType,
|
|
27
27
|
buttonFont: buttonFont,
|
|
28
|
-
onClick: onClick
|
|
28
|
+
onClick: function onClick(e) {
|
|
29
|
+
e.stopPropagation();
|
|
30
|
+
|
|
31
|
+
_onClick(e);
|
|
32
|
+
},
|
|
29
33
|
disabled: buttonType === "general-button-disabled",
|
|
30
34
|
children: [buttonType.includes("general") && label, image && /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
31
35
|
src: image,
|
|
@@ -7,16 +7,46 @@ exports.ProgressBar = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _styles = require("./styles");
|
|
9
9
|
|
|
10
|
+
var _Tooltip = require("../Tooltip");
|
|
11
|
+
|
|
10
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
13
|
|
|
12
14
|
var ProgressBar = function ProgressBar(_ref) {
|
|
13
15
|
var percent = _ref.percent,
|
|
14
|
-
progressBarType = _ref.progressBarType
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
children: /*#__PURE__*/(0, _jsxRuntime.
|
|
18
|
-
children:
|
|
19
|
-
|
|
16
|
+
progressBarType = _ref.progressBarType,
|
|
17
|
+
percentRequired = _ref.percentRequired;
|
|
18
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
19
|
+
children: [percentRequired && /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
20
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.Tooltip, {
|
|
21
|
+
componentTooltip: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
22
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
23
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("b", {
|
|
24
|
+
children: "Campos requeridos"
|
|
25
|
+
})
|
|
26
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
|
|
27
|
+
children: ["Este nuevo icono te indicar\xE1 cuando ", /*#__PURE__*/(0, _jsxRuntime.jsx)("br", {}), " completes todos los campos requeridos"]
|
|
28
|
+
})]
|
|
29
|
+
}),
|
|
30
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.ContainerIcon, {
|
|
31
|
+
className: "fondo",
|
|
32
|
+
percentageRequired: percentRequired,
|
|
33
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
34
|
+
class: "hola",
|
|
35
|
+
children: "local_police"
|
|
36
|
+
})
|
|
37
|
+
}),
|
|
38
|
+
classNameTooltip: "container-tooltip",
|
|
39
|
+
position: undefined,
|
|
40
|
+
addArrow: undefined,
|
|
41
|
+
transitionType: undefined,
|
|
42
|
+
followCursor: undefined
|
|
43
|
+
})
|
|
44
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
45
|
+
className: "status-".concat(progressBarType),
|
|
46
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
|
|
47
|
+
children: [percent, "%"]
|
|
48
|
+
})
|
|
49
|
+
})]
|
|
20
50
|
});
|
|
21
51
|
};
|
|
22
52
|
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.Container = void 0;
|
|
8
|
+
exports.ContainerIcon = exports.Container = void 0;
|
|
9
9
|
|
|
10
10
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
11
|
|
|
@@ -13,10 +13,18 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
13
13
|
|
|
14
14
|
var _variables = require("../../../global-files/variables");
|
|
15
15
|
|
|
16
|
-
var _templateObject;
|
|
16
|
+
var _templateObject, _templateObject2;
|
|
17
17
|
|
|
18
18
|
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n width: fit-content;\n height: 27px;\n padding: 4px;\n border-radius: 15px;\n font-family: ", ";\n font-weight: 600;\n font-size: 14px;\n line-height: 19px;\n color: ", ";\n\n &.status-CA,\n &.status-IE {\n background-color: ", ";\n }\n\n &.status-R,\n &.status-AS,\n &.status-PA {\n background-color: ", ";\n }\n\n &.status-AA,\n &.status-AP,\n &.status-ACA,\n &.status-AC {\n background-color: ", ";\n }\n\n &.status-RA,\n &.status-RC,\n &.status-RP,\n &.status-RCA {\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"])), _variables.GlobalColors.s3, _variables.FontFamily.AvenirNext, function (backgroundColor) {
|
|
19
19
|
return backgroundColor === "s2" || backgroundColor === "s1" ? _variables.GlobalColors.s4 : _variables.GlobalColors.white;
|
|
20
20
|
}, _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);
|
|
21
21
|
|
|
22
|
-
exports.Container = Container;
|
|
22
|
+
exports.Container = Container;
|
|
23
|
+
|
|
24
|
+
var ContainerIcon = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n @font-face {\n font-family: \"Material Symbols Outlined\";\n font-style: normal;\n font-weight: 100 700;\n src: url(https://fonts.gstatic.com/s/materialsymbolsoutlined/v68/kJEhBvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oFsLjBuVY.woff2)\n format(\"woff2\");\n }\n\n .hola {\n font-family: \"Material Symbols Outlined\";\n font-size: 30px;\n //line-height: 1;\n margin-top: 10px;\n }\n .hola {\n font-variation-settings: \"FILL\"\n ", ",\n \"wght\" 400, \"GRAD\" 0, \"opsz\" 48;\n color: ", ";\n }\n"])), function (props) {
|
|
25
|
+
return props.percentageRequired < 100 ? 0 : 1;
|
|
26
|
+
}, function (props) {
|
|
27
|
+
return props.percentageRequired < 100 ? "#d4d1d7" : "#e33aa9";
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
exports.ContainerIcon = ContainerIcon;
|
|
@@ -23,10 +23,11 @@ var VersionSelect = function VersionSelect(_ref) {
|
|
|
23
23
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("select", {
|
|
24
24
|
id: id,
|
|
25
25
|
name: id,
|
|
26
|
-
value:
|
|
26
|
+
value: selectedVersions[id],
|
|
27
27
|
onChange: onChange,
|
|
28
28
|
children: versions.map(function (item, index) {
|
|
29
29
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("option", {
|
|
30
|
+
value: item.version,
|
|
30
31
|
children: ["Version ", item.version]
|
|
31
32
|
}, "".concat(id, "-").concat(index));
|
|
32
33
|
})
|
|
@@ -22,7 +22,8 @@ var ProductNameHeader = function ProductNameHeader(_ref) {
|
|
|
22
22
|
statusType = _ref.statusType,
|
|
23
23
|
percent = _ref.percent,
|
|
24
24
|
priority = _ref.priority,
|
|
25
|
-
date = _ref.date
|
|
25
|
+
date = _ref.date,
|
|
26
|
+
percentRequired = _ref.percentRequired;
|
|
26
27
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
27
28
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ScreenHeader, {
|
|
28
29
|
headerType: "product-name-header",
|
|
@@ -30,8 +31,9 @@ var ProductNameHeader = function ProductNameHeader(_ref) {
|
|
|
30
31
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Status, {
|
|
31
32
|
statusType: statusType
|
|
32
33
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.ProgressBar, {
|
|
33
|
-
percent:
|
|
34
|
-
progressBarType: statusType
|
|
34
|
+
percent: percentRequired,
|
|
35
|
+
progressBarType: statusType,
|
|
36
|
+
percentRequired: percentRequired
|
|
35
37
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index4.PriorityFlag, {
|
|
36
38
|
priority: priority
|
|
37
39
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ScreenHeader, {
|
|
@@ -34,22 +34,22 @@ var Children = function Children(step, setStep, versions, selectedVersions, _onC
|
|
|
34
34
|
fontFamily: _variables.FontFamily.Raleway_500,
|
|
35
35
|
headerType: "product-name-header",
|
|
36
36
|
color: _variables.GlobalColors.white,
|
|
37
|
-
text: "Crea una nueva
|
|
37
|
+
text: "Crea una nueva versi\xF3n"
|
|
38
38
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
39
39
|
fontFamily: _variables.FontFamily.Raleway,
|
|
40
40
|
headerType: "retailer-name-header",
|
|
41
41
|
color: _variables.GlobalColors.white,
|
|
42
|
-
text: "Puedes elegir el contenido de versiones anteriores o crear una
|
|
42
|
+
text: "Puedes elegir el contenido de versiones anteriores o crear una versi\xF3n desde cero"
|
|
43
43
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
44
44
|
className: "buttons-container",
|
|
45
45
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
46
|
-
label: "
|
|
46
|
+
label: "Versi\xF3n desde cero",
|
|
47
47
|
buttonType: "general-transparent-button",
|
|
48
48
|
onClick: function onClick() {
|
|
49
49
|
return setStep("empty-version");
|
|
50
50
|
}
|
|
51
51
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
52
|
-
label: "
|
|
52
|
+
label: "Versi\xF3n personalizada",
|
|
53
53
|
buttonType: "general-default-button",
|
|
54
54
|
onClick: function onClick() {
|
|
55
55
|
return setStep("create-version");
|
|
@@ -67,16 +67,16 @@ var Children = function Children(step, setStep, versions, selectedVersions, _onC
|
|
|
67
67
|
fontFamily: _variables.FontFamily.Raleway_500,
|
|
68
68
|
headerType: "product-name-header",
|
|
69
69
|
color: _variables.GlobalColors.white,
|
|
70
|
-
text: "Si creas una
|
|
70
|
+
text: "Si creas una versi\xF3n desde cero perderas la informaci\xF3n actual"
|
|
71
71
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
72
72
|
fontFamily: _variables.FontFamily.Raleway,
|
|
73
73
|
headerType: "retailer-name-header",
|
|
74
74
|
color: _variables.GlobalColors.white,
|
|
75
|
-
text: "
|
|
75
|
+
text: "\xBFDeseas Continuar?"
|
|
76
76
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
77
77
|
className: "buttons-container",
|
|
78
78
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
79
|
-
label: "
|
|
79
|
+
label: "Atr\xE1s",
|
|
80
80
|
buttonType: "general-transparent-button",
|
|
81
81
|
onClick: function onClick() {
|
|
82
82
|
return setStep("version-options");
|
|
@@ -104,7 +104,7 @@ var Children = function Children(step, setStep, versions, selectedVersions, _onC
|
|
|
104
104
|
className: "selector",
|
|
105
105
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_VersionSelect.VersionSelect, {
|
|
106
106
|
versions: versions,
|
|
107
|
-
label: "Ficha
|
|
107
|
+
label: "Ficha t\xE9cnica",
|
|
108
108
|
id: "datasheet",
|
|
109
109
|
selectedVersions: selectedVersions,
|
|
110
110
|
onChange: function onChange(e) {
|
|
@@ -115,7 +115,7 @@ var Children = function Children(step, setStep, versions, selectedVersions, _onC
|
|
|
115
115
|
className: "selector",
|
|
116
116
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_VersionSelect.VersionSelect, {
|
|
117
117
|
versions: versions,
|
|
118
|
-
label: "
|
|
118
|
+
label: "Descripci\xF3n",
|
|
119
119
|
id: "description",
|
|
120
120
|
selectedVersions: selectedVersions,
|
|
121
121
|
onChange: function onChange(e) {
|
|
@@ -126,7 +126,7 @@ var Children = function Children(step, setStep, versions, selectedVersions, _onC
|
|
|
126
126
|
className: "selector",
|
|
127
127
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_VersionSelect.VersionSelect, {
|
|
128
128
|
versions: versions,
|
|
129
|
-
label: "
|
|
129
|
+
label: "Im\xE1genes",
|
|
130
130
|
id: "image",
|
|
131
131
|
selectedVersions: selectedVersions,
|
|
132
132
|
onChange: function onChange(e) {
|
|
@@ -137,7 +137,7 @@ var Children = function Children(step, setStep, versions, selectedVersions, _onC
|
|
|
137
137
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
138
138
|
className: "buttons-container",
|
|
139
139
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
140
|
-
label: "
|
|
140
|
+
label: "Atr\xE1s",
|
|
141
141
|
buttonType: "general-transparent-button",
|
|
142
142
|
onClick: function onClick() {
|
|
143
143
|
return setStep("version-options");
|
|
@@ -32,137 +32,78 @@ var _axios = _interopRequireDefault(require("axios"));
|
|
|
32
32
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
33
33
|
|
|
34
34
|
var CreateVersion = function CreateVersion(_ref) {
|
|
35
|
-
var
|
|
35
|
+
var articleId = _ref.articleId,
|
|
36
36
|
version = _ref.version,
|
|
37
|
-
setShowCreateVersion = _ref.setShowCreateVersion
|
|
37
|
+
setShowCreateVersion = _ref.setShowCreateVersion,
|
|
38
|
+
versionsList = _ref.versionsList,
|
|
39
|
+
realoadVersion = _ref.realoadVersion,
|
|
40
|
+
jwt = _ref.jwt;
|
|
38
41
|
|
|
39
42
|
var _useState = (0, _react.useState)("version-options"),
|
|
40
43
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
41
44
|
step = _useState2[0],
|
|
42
45
|
setStep = _useState2[1];
|
|
43
46
|
|
|
44
|
-
var _useState3 = (0, _react.useState)(
|
|
45
|
-
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
46
|
-
versions = _useState4[0],
|
|
47
|
-
setVersions = _useState4[1];
|
|
48
|
-
|
|
49
|
-
var _useState5 = (0, _react.useState)({
|
|
47
|
+
var _useState3 = (0, _react.useState)({
|
|
50
48
|
datasheet: version,
|
|
51
49
|
description: version,
|
|
52
50
|
image: version
|
|
53
51
|
}),
|
|
54
|
-
|
|
55
|
-
selectedVersions =
|
|
56
|
-
setSelectedVersions =
|
|
52
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
53
|
+
selectedVersions = _useState4[0],
|
|
54
|
+
setSelectedVersions = _useState4[1];
|
|
57
55
|
|
|
58
|
-
var
|
|
59
|
-
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
60
|
-
var
|
|
56
|
+
var createVersion = /*#__PURE__*/function () {
|
|
57
|
+
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(isEmpty) {
|
|
58
|
+
var data;
|
|
61
59
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
62
60
|
while (1) {
|
|
63
61
|
switch (_context.prev = _context.next) {
|
|
64
62
|
case 0:
|
|
65
63
|
_context.prev = 0;
|
|
66
|
-
_context.next = 3;
|
|
67
|
-
return (0, _axios.default)({
|
|
68
|
-
method: "get",
|
|
69
|
-
url: "".concat(process.env.REACT_APP_VERSIONS_ENDPOINT, "?articleId=").concat(idArticle, "&provider=true"),
|
|
70
|
-
headers: {
|
|
71
|
-
Authorization: sessionStorage.getItem("jwt")
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
case 3:
|
|
76
|
-
response = _context.sent;
|
|
77
|
-
setVersions(JSON.parse(response.data.body).data);
|
|
78
|
-
_context.next = 10;
|
|
79
|
-
break;
|
|
80
|
-
|
|
81
|
-
case 7:
|
|
82
|
-
_context.prev = 7;
|
|
83
|
-
_context.t0 = _context["catch"](0);
|
|
84
|
-
console.log(_context.t0);
|
|
85
|
-
|
|
86
|
-
case 10:
|
|
87
|
-
case "end":
|
|
88
|
-
return _context.stop();
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}, _callee, null, [[0, 7]]);
|
|
92
|
-
}));
|
|
93
|
-
|
|
94
|
-
return function getVersions() {
|
|
95
|
-
return _ref2.apply(this, arguments);
|
|
96
|
-
};
|
|
97
|
-
}();
|
|
98
|
-
|
|
99
|
-
var createVersion = /*#__PURE__*/function () {
|
|
100
|
-
var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(isEmpty) {
|
|
101
|
-
var data;
|
|
102
|
-
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
103
|
-
while (1) {
|
|
104
|
-
switch (_context2.prev = _context2.next) {
|
|
105
|
-
case 0:
|
|
106
|
-
_context2.prev = 0;
|
|
107
64
|
data = {
|
|
108
|
-
articleId:
|
|
65
|
+
articleId: articleId,
|
|
109
66
|
isEmpty: isEmpty
|
|
110
67
|
};
|
|
111
|
-
isEmpty
|
|
112
|
-
|
|
113
|
-
return
|
|
114
|
-
method: "post",
|
|
115
|
-
url: process.env.REACT_APP_VERSIONS_ENDPOINT,
|
|
116
|
-
data: data,
|
|
68
|
+
if (!isEmpty) data["version"] = selectedVersions;
|
|
69
|
+
_context.next = 5;
|
|
70
|
+
return _axios.default.post(process.env.REACT_APP_VERSIONS_ENDPOINT, data, {
|
|
117
71
|
headers: {
|
|
118
|
-
Authorization:
|
|
72
|
+
Authorization: jwt
|
|
119
73
|
}
|
|
120
74
|
});
|
|
121
75
|
|
|
122
76
|
case 5:
|
|
123
77
|
setShowCreateVersion(false);
|
|
124
|
-
|
|
78
|
+
realoadVersion && realoadVersion();
|
|
79
|
+
_context.next = 12;
|
|
125
80
|
break;
|
|
126
81
|
|
|
127
|
-
case
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
console.log(
|
|
82
|
+
case 9:
|
|
83
|
+
_context.prev = 9;
|
|
84
|
+
_context.t0 = _context["catch"](0);
|
|
85
|
+
console.log(_context.t0);
|
|
131
86
|
|
|
132
|
-
case
|
|
87
|
+
case 12:
|
|
133
88
|
case "end":
|
|
134
|
-
return
|
|
89
|
+
return _context.stop();
|
|
135
90
|
}
|
|
136
91
|
}
|
|
137
|
-
},
|
|
92
|
+
}, _callee, null, [[0, 9]]);
|
|
138
93
|
}));
|
|
139
94
|
|
|
140
95
|
return function createVersion(_x) {
|
|
141
|
-
return
|
|
96
|
+
return _ref2.apply(this, arguments);
|
|
142
97
|
};
|
|
143
98
|
}();
|
|
144
99
|
|
|
145
100
|
var onChange = function onChange(e) {
|
|
146
|
-
setSelectedVersions((0, _objectSpread3.default)((0, _objectSpread3.default)({}, selectedVersions), {}, (0, _defineProperty2.default)({}, e.target.name, parseInt(e.target.value
|
|
101
|
+
setSelectedVersions((0, _objectSpread3.default)((0, _objectSpread3.default)({}, selectedVersions), {}, (0, _defineProperty2.default)({}, e.target.name, parseInt(e.target.value))));
|
|
147
102
|
};
|
|
148
103
|
|
|
149
|
-
(0, _react.useEffect)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
|
150
|
-
return _regenerator.default.wrap(function _callee3$(_context3) {
|
|
151
|
-
while (1) {
|
|
152
|
-
switch (_context3.prev = _context3.next) {
|
|
153
|
-
case 0:
|
|
154
|
-
_context3.next = 2;
|
|
155
|
-
return getVersions();
|
|
156
|
-
|
|
157
|
-
case 2:
|
|
158
|
-
case "end":
|
|
159
|
-
return _context3.stop();
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
}, _callee3);
|
|
163
|
-
})), []);
|
|
164
104
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
165
105
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
106
|
+
id: "create-version",
|
|
166
107
|
className: "modal-container",
|
|
167
108
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
168
109
|
className: "button-container",
|
|
@@ -174,7 +115,7 @@ var CreateVersion = function CreateVersion(_ref) {
|
|
|
174
115
|
return setShowCreateVersion(false);
|
|
175
116
|
}
|
|
176
117
|
})
|
|
177
|
-
}), (0, _RenderChilds.Children)(step, setStep,
|
|
118
|
+
}), (0, _RenderChilds.Children)(step, setStep, versionsList, selectedVersions, onChange, createVersion)]
|
|
178
119
|
})
|
|
179
120
|
});
|
|
180
121
|
};
|
|
@@ -59,6 +59,7 @@ var FullProductNameHeader = function FullProductNameHeader(_ref) {
|
|
|
59
59
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ProductNameHeader.ProductNameHeader, {
|
|
60
60
|
productName: (headerData === null || headerData === void 0 ? void 0 : (_headerData$article = headerData.article) === null || _headerData$article === void 0 ? void 0 : _headerData$article.name) || (headerData === null || headerData === void 0 ? void 0 : headerData.name),
|
|
61
61
|
statusType: (headerData === null || headerData === void 0 ? void 0 : headerData.version_status) || (headerData === null || headerData === void 0 ? void 0 : headerData.status) || (headerData === null || headerData === void 0 ? void 0 : headerData.article_status),
|
|
62
|
+
percentRequired: percent,
|
|
62
63
|
percent: percent === null || percent === void 0 ? void 0 : percent.toFixed(0),
|
|
63
64
|
priority: headerData === null || headerData === void 0 ? void 0 : headerData.prio,
|
|
64
65
|
date: new Date((headerData === null || headerData === void 0 ? void 0 : (_headerData$article2 = headerData.article) === null || _headerData$article2 === void 0 ? void 0 : _headerData$article2.timestamp) || (headerData === null || headerData === void 0 ? void 0 : headerData.timestamp)).toLocaleDateString()
|
|
@@ -19,6 +19,8 @@ var _index = require("../../atoms/Status/index");
|
|
|
19
19
|
|
|
20
20
|
var _index2 = require("../../atoms/ProgressBar/index");
|
|
21
21
|
|
|
22
|
+
var _index3 = require("../../atoms/Loading/index");
|
|
23
|
+
|
|
22
24
|
var _moment = _interopRequireDefault(require("moment"));
|
|
23
25
|
|
|
24
26
|
require("moment/locale/es");
|
|
@@ -36,17 +38,22 @@ _moment.default.locale("es");
|
|
|
36
38
|
var OrderDetail = function OrderDetail(props) {
|
|
37
39
|
var order = props.order;
|
|
38
40
|
|
|
39
|
-
var _useState = (0, _react.useState)(
|
|
41
|
+
var _useState = (0, _react.useState)(true),
|
|
40
42
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
41
|
-
|
|
42
|
-
|
|
43
|
+
isLoading = _useState2[0],
|
|
44
|
+
setIsLoading = _useState2[1];
|
|
43
45
|
|
|
44
|
-
var _useState3 = (0, _react.useState)(
|
|
46
|
+
var _useState3 = (0, _react.useState)(order.payment !== "pagado"),
|
|
45
47
|
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
46
|
-
|
|
47
|
-
|
|
48
|
+
showPaymentButton = _useState4[0],
|
|
49
|
+
setShowPaymentButton = _useState4[1];
|
|
50
|
+
|
|
51
|
+
var _useState5 = (0, _react.useState)({}),
|
|
52
|
+
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
53
|
+
orderData = _useState6[0],
|
|
54
|
+
setOrderData = _useState6[1];
|
|
48
55
|
|
|
49
|
-
var
|
|
56
|
+
var _useState7 = (0, _react.useState)({
|
|
50
57
|
approved: "-",
|
|
51
58
|
rejected: "-",
|
|
52
59
|
in_progress: "-",
|
|
@@ -56,9 +63,9 @@ var OrderDetail = function OrderDetail(props) {
|
|
|
56
63
|
description: "-",
|
|
57
64
|
images: "-"
|
|
58
65
|
}),
|
|
59
|
-
|
|
60
|
-
dataGeneral =
|
|
61
|
-
setDataGeneral =
|
|
66
|
+
_useState8 = (0, _slicedToArray2.default)(_useState7, 2),
|
|
67
|
+
dataGeneral = _useState8[0],
|
|
68
|
+
setDataGeneral = _useState8[1];
|
|
62
69
|
|
|
63
70
|
var updBilling = function updBilling(articleId, newBillingStatus) {
|
|
64
71
|
props.updateBilling && props.updateBilling({
|
|
@@ -81,6 +88,7 @@ var OrderDetail = function OrderDetail(props) {
|
|
|
81
88
|
|
|
82
89
|
(0, _react.useEffect)(function () {
|
|
83
90
|
var ac = new AbortController();
|
|
91
|
+
setIsLoading(true);
|
|
84
92
|
props.getOrderDetail && props.getOrderDetail({
|
|
85
93
|
query: {
|
|
86
94
|
orderId: order.id_order
|
|
@@ -102,6 +110,7 @@ var OrderDetail = function OrderDetail(props) {
|
|
|
102
110
|
setDataGeneral((0, _objectSpread2.default)((0, _objectSpread2.default)({}, countArticles), {}, {
|
|
103
111
|
totalArticles: totalArticles
|
|
104
112
|
}));
|
|
113
|
+
setIsLoading(false);
|
|
105
114
|
});
|
|
106
115
|
return function () {
|
|
107
116
|
return ac.abort();
|
|
@@ -189,7 +198,7 @@ var OrderDetail = function OrderDetail(props) {
|
|
|
189
198
|
})]
|
|
190
199
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
191
200
|
className: "body",
|
|
192
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Table.default, {
|
|
201
|
+
children: isLoading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.Loading, {}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Table.default, {
|
|
193
202
|
headers: [{
|
|
194
203
|
width: 140,
|
|
195
204
|
name: "UPC"
|
|
@@ -15,7 +15,7 @@ var _variables = require("../../../global-files/variables");
|
|
|
15
15
|
|
|
16
16
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
|
17
17
|
|
|
18
|
-
var MainContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: fixed;\n top: 0;\n right: 0;\n width: 785px;\n height: 100vh;\n z-index: 5;\n background: #ffffff;\n box-sizing: border-box;\n font-family: ", ";\n & > * {\n padding: 0 30px;\n }\n .headerTitle {\n font-weight: bold;\n font-size: 25px;\n }\n\n display: grid;\n grid-template-columns: 1fr;\n grid-template-rows: 101px 120px 1fr 115px;\n grid-column-gap: 0px;\n grid-row-gap: 0px;\n\n .body {\n overflow-y: auto;\n }\n .footer {\n width: 100%;\n display: flex;\n align-items: center;\n height: 115px;\n border-top: 1px solid #e6e6e6;\n position: sticky;\n bottom: 0;\n padding: 20px;\n box-sizing: border-box;\n > h2 {\n margin-right: 20px;\n }\n > div {\n margin-right: 10px;\n }\n }\n"])), _variables.FontFamily.Roboto);
|
|
18
|
+
var MainContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: fixed;\n top: 0;\n right: 0;\n width: 785px;\n height: 100vh;\n z-index: 5;\n background: #ffffff;\n box-sizing: border-box;\n font-family: ", ";\n & > * {\n padding: 0 30px;\n }\n box-shadow: -4px 0px 8px 0px rgba(0,0,0,0.1);\n .headerTitle {\n font-weight: bold;\n font-size: 25px;\n }\n\n display: grid;\n grid-template-columns: 1fr;\n grid-template-rows: 101px 120px 1fr 115px;\n grid-column-gap: 0px;\n grid-row-gap: 0px;\n\n .body {\n overflow-y: auto;\n }\n .footer {\n width: 100%;\n display: flex;\n align-items: center;\n height: 115px;\n border-top: 1px solid #e6e6e6;\n position: sticky;\n bottom: 0;\n padding: 20px;\n box-sizing: border-box;\n > h2 {\n margin-right: 20px;\n }\n > div {\n margin-right: 10px;\n }\n }\n"])), _variables.FontFamily.Roboto);
|
|
19
19
|
|
|
20
20
|
exports.MainContainer = MainContainer;
|
|
21
21
|
|
|
@@ -17,7 +17,7 @@ var Header = _styledComponents.default.div(_templateObject || (_templateObject =
|
|
|
17
17
|
|
|
18
18
|
exports.Header = Header;
|
|
19
19
|
|
|
20
|
-
var Column = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n height: 35px;\n width: ", ";\n padding: 10px 15px;\n font-family: Roboto;\n font-size: 12px;\n color: ", ";\n font-weight: ", ";\n white-space: nowrap;\n text-overflow: ellipsis;\n .flex {\n display: flex;\n }\n .material-icons.small {\n font-size: 18px;\n color: #b3b3b3;\n }\n .center {\n margin: auto;\n }\n &:nth-child(2) {\n overflow: hidden;\n }\n"])), function (_ref) {
|
|
20
|
+
var Column = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n height: 35px;\n width: ", ";\n padding: 10px 15px;\n font-family: Roboto;\n font-size: 12px;\n color: ", ";\n font-weight: ", ";\n white-space: nowrap;\n text-overflow: ellipsis;\n .flex {\n display: flex;\n }\n .material-icons.small {\n font-size: 18px;\n color: #b3b3b3;\n }\n .center {\n margin: auto;\n }\n &:nth-child(2) {\n overflow: hidden;\n }\n\n .tooltip {\n position: relative;\n display: inline-block;\n }\n\n .tooltip .tooltiptext {\n visibility: hidden;\n background-color: #fff;\n color: black;\n text-align: center;\n padding: 5px 0;\n border-radius: 3px;\n \n position: absolute;\n z-index: 1;\n top: -8px;\n left: 3px;\n font-family: Roboto;\n font-size: 10px;\n padding: 2px 5px;\n }\n\n .tooltip:hover .tooltiptext {\n visibility: visible;\n }\n"])), function (_ref) {
|
|
21
21
|
var width = _ref.width;
|
|
22
22
|
return "".concat(width, "px");
|
|
23
23
|
}, function (_ref2) {
|