contentoh-components-library 21.2.103 → 21.2.105
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/organisms/OrderDetail/utils/Table/styles.js +1 -1
- package/dist/components/organisms/OrderDetail/utils/Table/utils.js +45 -15
- package/package.json +1 -1
- package/src/components/organisms/OrderDetail/utils/Table/styles.js +26 -0
- package/src/components/organisms/OrderDetail/utils/Table/utils.js +30 -15
|
@@ -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) {
|
|
@@ -8,25 +8,55 @@ exports.servicesCodeIcon = void 0;
|
|
|
8
8
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
9
|
|
|
10
10
|
var servicesCodeIcon = {
|
|
11
|
-
datasheet: /*#__PURE__*/(0, _jsxRuntime.
|
|
12
|
-
className: "
|
|
13
|
-
children: "
|
|
11
|
+
datasheet: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
12
|
+
className: "tooltip",
|
|
13
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
14
|
+
className: "material-icons small",
|
|
15
|
+
children: "\uF8EE"
|
|
16
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
17
|
+
className: "tooltiptext",
|
|
18
|
+
children: "Ficha T\xE9cnica"
|
|
19
|
+
})]
|
|
14
20
|
}, "datasheet"),
|
|
15
|
-
description: /*#__PURE__*/(0, _jsxRuntime.
|
|
16
|
-
className: "
|
|
17
|
-
children: "
|
|
21
|
+
description: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
22
|
+
className: "tooltip",
|
|
23
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
24
|
+
className: "material-icons small",
|
|
25
|
+
children: "\uE873"
|
|
26
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
27
|
+
className: "tooltiptext",
|
|
28
|
+
children: "Descripci\xF3n"
|
|
29
|
+
})]
|
|
18
30
|
}, "description"),
|
|
19
|
-
image: /*#__PURE__*/(0, _jsxRuntime.
|
|
20
|
-
className: "
|
|
21
|
-
children: "
|
|
31
|
+
image: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
32
|
+
className: "tooltip",
|
|
33
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
34
|
+
className: "material-icons small",
|
|
35
|
+
children: "\uE3F4"
|
|
36
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
37
|
+
className: "tooltiptext",
|
|
38
|
+
children: "Imagen"
|
|
39
|
+
})]
|
|
22
40
|
}, "image"),
|
|
23
|
-
translate: /*#__PURE__*/(0, _jsxRuntime.
|
|
24
|
-
className: "
|
|
25
|
-
children: "
|
|
41
|
+
translate: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
42
|
+
className: "tooltip",
|
|
43
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
44
|
+
className: "material-icons small",
|
|
45
|
+
children: "\uE8E2"
|
|
46
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
47
|
+
className: "tooltiptext",
|
|
48
|
+
children: "Traducci\xF3n"
|
|
49
|
+
})]
|
|
26
50
|
}, "translate"),
|
|
27
|
-
build: /*#__PURE__*/(0, _jsxRuntime.
|
|
28
|
-
className: "
|
|
29
|
-
children: "
|
|
51
|
+
build: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
52
|
+
className: "tooltip",
|
|
53
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
54
|
+
className: "material-icons small",
|
|
55
|
+
children: "\uE1BD"
|
|
56
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
57
|
+
className: "tooltiptext",
|
|
58
|
+
children: "Construcci\xF3n"
|
|
59
|
+
})]
|
|
30
60
|
}, "build")
|
|
31
61
|
};
|
|
32
62
|
exports.servicesCodeIcon = servicesCodeIcon;
|
package/package.json
CHANGED
|
@@ -36,6 +36,32 @@ export const Column = styled.div`
|
|
|
36
36
|
&:nth-child(2) {
|
|
37
37
|
overflow: hidden;
|
|
38
38
|
}
|
|
39
|
+
|
|
40
|
+
.tooltip {
|
|
41
|
+
position: relative;
|
|
42
|
+
display: inline-block;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.tooltip .tooltiptext {
|
|
46
|
+
visibility: hidden;
|
|
47
|
+
background-color: #fff;
|
|
48
|
+
color: black;
|
|
49
|
+
text-align: center;
|
|
50
|
+
padding: 5px 0;
|
|
51
|
+
border-radius: 3px;
|
|
52
|
+
|
|
53
|
+
position: absolute;
|
|
54
|
+
z-index: 1;
|
|
55
|
+
top: -8px;
|
|
56
|
+
left: 3px;
|
|
57
|
+
font-family: Roboto;
|
|
58
|
+
font-size: 10px;
|
|
59
|
+
padding: 2px 5px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.tooltip:hover .tooltiptext {
|
|
63
|
+
visibility: visible;
|
|
64
|
+
}
|
|
39
65
|
`;
|
|
40
66
|
|
|
41
67
|
export const Rows = styled.div`
|
|
@@ -1,27 +1,42 @@
|
|
|
1
1
|
export const servicesCodeIcon = {
|
|
2
2
|
datasheet: (
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
<div key="datasheet" className="tooltip">
|
|
4
|
+
<span className="material-icons small">
|
|
5
|
+

|
|
6
|
+
</span>
|
|
7
|
+
<span className="tooltiptext">Ficha Técnica</span>
|
|
8
|
+
</div>
|
|
6
9
|
),
|
|
7
10
|
description: (
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
<div key="description" className="tooltip">
|
|
12
|
+
<span className="material-icons small">
|
|
13
|
+

|
|
14
|
+
</span>
|
|
15
|
+
<span className="tooltiptext">Descripción</span>
|
|
16
|
+
</div>
|
|
11
17
|
),
|
|
12
18
|
image: (
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
19
|
+
<div key="image" className="tooltip">
|
|
20
|
+
<span className="material-icons small">
|
|
21
|
+

|
|
22
|
+
</span>
|
|
23
|
+
<span className="tooltiptext">Imagen</span>
|
|
24
|
+
</div>
|
|
16
25
|
),
|
|
17
26
|
translate: (
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
|
|
27
|
+
<div key="translate" className="tooltip">
|
|
28
|
+
<span className="material-icons small">
|
|
29
|
+

|
|
30
|
+
</span>
|
|
31
|
+
<span className="tooltiptext">Traducción</span>
|
|
32
|
+
</div>
|
|
21
33
|
),
|
|
22
34
|
build: (
|
|
23
|
-
<
|
|
24
|
-
|
|
25
|
-
|
|
35
|
+
<div key="build" className="tooltip">
|
|
36
|
+
<span className="material-icons small">
|
|
37
|
+

|
|
38
|
+
</span>
|
|
39
|
+
<span className="tooltiptext">Construcción</span>
|
|
40
|
+
</div>
|
|
26
41
|
),
|
|
27
42
|
};
|