intelicoreact 1.3.9 → 1.3.10

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.
@@ -23,7 +23,8 @@ const Button = _ref => {
23
23
  isIconRight,
24
24
  testId = '',
25
25
  tabIndex = 0,
26
- variant = 'primary'
26
+ variant = 'primary',
27
+ isTextEllipsis = false
27
28
  } = _ref;
28
29
  const noRenderIcon = noIcon || variant === 'ellipse-apply' || variant === 'ellipse-cancel';
29
30
  return /*#__PURE__*/_react.default.createElement("button", {
@@ -38,7 +39,9 @@ const Button = _ref => {
38
39
  onClick: onClick,
39
40
  disabled: disabled
40
41
  }, !noRenderIcon && icon, label && /*#__PURE__*/_react.default.createElement("div", {
41
- className: "button__text"
42
+ className: (0, _classnames.default)('button__text', {
43
+ 'text-ellipsis': isTextEllipsis
44
+ })
42
45
  }, label), !label && children ? children : null);
43
46
  };
44
47
  var _default = exports.default = Button;
@@ -1,6 +1,5 @@
1
1
  .button {
2
2
  position: relative;
3
-
4
3
  display: inline-flex;
5
4
  align-items: center;
6
5
  justify-content: center;
@@ -116,13 +115,13 @@
116
115
  }
117
116
 
118
117
  &__text {
118
+ display: flex;
119
+ align-items: center;
120
+ justify-content: center;
121
+
119
122
  width: 100%;
120
123
 
121
124
  box-shadow: none;
122
-
123
- overflow: hidden;
124
- text-overflow: ellipsis;
125
- white-space: nowrap;
126
125
  }
127
126
 
128
127
  &:active {
@@ -154,3 +153,11 @@
154
153
  }
155
154
  }
156
155
  }
156
+
157
+ .text-ellipsis {
158
+ width: 100%;
159
+ display: block;
160
+ overflow: hidden;
161
+ text-overflow: ellipsis;
162
+ white-space: nowrap;
163
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "1.3.9",
3
+ "version": "1.3.10",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [