@gamelearn/arcade-components 1.6.0 → 1.7.0

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.
@@ -27,6 +27,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
27
27
 
28
28
  var UrlComponent = function UrlComponent(_ref) {
29
29
  var emitEvent = _ref.emitEvent,
30
+ name = _ref.name,
30
31
  nameLabel = _ref.name_labelId,
31
32
  link = _ref.link,
32
33
  linkLabel = _ref.link_labelId,
@@ -59,13 +60,6 @@ var UrlComponent = function UrlComponent(_ref) {
59
60
  clicked = _useState2[0],
60
61
  setClicked = _useState2[1];
61
62
 
62
- var superLongLink = {
63
- wordBreak: 'break-all',
64
- display: '-webkit-box',
65
- WebkitLineClamp: '3',
66
- WebkitBoxOrient: 'vertical',
67
- overflow: 'hidden'
68
- };
69
63
  var linkUrl = link.indexOf('http') !== 0 ? "http://".concat(link) : link;
70
64
  return /*#__PURE__*/_react.default.createElement("div", {
71
65
  className: "popup--layer"
@@ -79,14 +73,12 @@ var UrlComponent = function UrlComponent(_ref) {
79
73
  }
80
74
  }, /*#__PURE__*/_react.default.createElement("span", {
81
75
  className: "icon-close"
82
- })) : null, /*#__PURE__*/_react.default.createElement("div", {
83
- className: "popup--info"
84
- }, /*#__PURE__*/_react.default.createElement("span", {
85
- className: "popup--info__item"
86
- }, text), /*#__PURE__*/_react.default.createElement("span", {
87
- className: "popup--info__item"
88
- }, /*#__PURE__*/_react.default.createElement("a", {
89
- style: superLongLink,
76
+ })) : null, /*#__PURE__*/_react.default.createElement("span", {
77
+ className: "popup--link__title popup--link__lineclamp"
78
+ }, name), /*#__PURE__*/_react.default.createElement("span", {
79
+ className: "popup--link__desc popup--link__lineclamp"
80
+ }, text), /*#__PURE__*/_react.default.createElement("a", {
81
+ className: "popup--link__lineclamp popup--link__url",
90
82
  href: linkUrl,
91
83
  target: "_blank",
92
84
  rel: "noopener noreferrer",
@@ -94,7 +86,7 @@ var UrlComponent = function UrlComponent(_ref) {
94
86
  play('click-ui');
95
87
  setClicked(true);
96
88
  }
97
- }, link)))));
89
+ }, link)));
98
90
  };
99
91
 
100
92
  var _default = UrlComponent;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@gamelearn/arcade-components",
3
3
  "author": "Gamelearn",
4
4
  "license": "unlicense",
5
- "version": "1.6.0",
5
+ "version": "1.7.0",
6
6
  "main": "dist/index.js",
7
7
  "files": [
8
8
  "dist",