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.
@@ -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.jsx)("span", {
12
- className: "material-icons small",
13
- children: "\uF8EE"
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.jsx)("span", {
16
- className: "material-icons small",
17
- children: "\uE873"
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.jsx)("span", {
20
- className: "material-icons small",
21
- children: "\uE3F4"
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.jsx)("span", {
24
- className: "material-icons small",
25
- children: "\uE8E2"
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.jsx)("span", {
28
- className: "material-icons small",
29
- children: "\uE1BD"
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.2.103",
3
+ "version": "21.2.105",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -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
- <span key="datasheet" className="material-icons small">
4
- &#xf8ee;
5
- </span>
3
+ <div key="datasheet" className="tooltip">
4
+ <span className="material-icons small">
5
+ &#xf8ee;
6
+ </span>
7
+ <span className="tooltiptext">Ficha Técnica</span>
8
+ </div>
6
9
  ),
7
10
  description: (
8
- <span key="description" className="material-icons small">
9
- &#xe873;
10
- </span>
11
+ <div key="description" className="tooltip">
12
+ <span className="material-icons small">
13
+ &#xe873;
14
+ </span>
15
+ <span className="tooltiptext">Descripción</span>
16
+ </div>
11
17
  ),
12
18
  image: (
13
- <span key="image" className="material-icons small">
14
- &#xe3f4;
15
- </span>
19
+ <div key="image" className="tooltip">
20
+ <span className="material-icons small">
21
+ &#xe3f4;
22
+ </span>
23
+ <span className="tooltiptext">Imagen</span>
24
+ </div>
16
25
  ),
17
26
  translate: (
18
- <span key="translate" className="material-icons small">
19
- &#xe8e2;
20
- </span>
27
+ <div key="translate" className="tooltip">
28
+ <span className="material-icons small">
29
+ &#xe8e2;
30
+ </span>
31
+ <span className="tooltiptext">Traducción</span>
32
+ </div>
21
33
  ),
22
34
  build: (
23
- <span key="build" className="material-icons small">
24
- &#xe1bd;
25
- </span>
35
+ <div key="build" className="tooltip">
36
+ <span className="material-icons small">
37
+ &#xe1bd;
38
+ </span>
39
+ <span className="tooltiptext">Construcción</span>
40
+ </div>
26
41
  ),
27
42
  };