intelicoreact 0.3.37 → 0.3.39

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.
@@ -40,8 +40,8 @@ var ActionAlert = function ActionAlert(_ref) {
40
40
  className: "action-alert__message"
41
41
  }, message || children)), !noButton && /*#__PURE__*/_react.default.createElement(_Button.default, {
42
42
  style: {
43
- 'background-color': buttonColor || '#F59A2F',
44
- 'border-color': buttonColor || '#F59A2F'
43
+ 'backgroundColor': buttonColor || '#F59A2F',
44
+ 'borderColor': buttonColor || '#F59A2F'
45
45
  },
46
46
  className: "ml5",
47
47
  label: buttonLabel,
@@ -2,7 +2,6 @@
2
2
 
3
3
  .action-alert {
4
4
  padding: 10px 8px;
5
- width: 100%;
6
5
  height: 20px;
7
6
  display: flex;
8
7
  align-items:center;
@@ -172,9 +172,10 @@ var Dropdown = function Dropdown(_ref) {
172
172
  var hightlightedText = function hightlightedText(text, postfix) {
173
173
  var _text;
174
174
 
175
- text = text.replace(/["<>]/g, function (a) {
175
+ text = text.replace(/["&<>]/g, function (a) {
176
176
  return {
177
177
  '"': '&quot;',
178
+ '&': '&amp;',
178
179
  '<': '&lt;',
179
180
  '>': '&gt;'
180
181
  }[a];
@@ -23,12 +23,14 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
23
23
 
24
24
  var AdvancedTags = function AdvancedTags(_ref) {
25
25
  var items = _ref.items,
26
+ emptyText = _ref.emptyText,
26
27
  className = _ref.className,
27
28
  _ref$testId = _ref.testId,
28
29
  testId = _ref$testId === void 0 ? 'advanced-tag-test' : _ref$testId,
29
30
  _ref$toTop = _ref.toTop,
30
31
  toTop = _ref$toTop === void 0 ? true : _ref$toTop;
31
- if (!items) return null;
32
+ if (!items && !emptyText) return null;
33
+ if ((!items || (items === null || items === void 0 ? void 0 : items.length) === 0) && emptyText) return emptyText === null || emptyText === void 0 ? void 0 : emptyText.toString();
32
34
 
33
35
  var _useState = (0, _react.useState)([items[0], items[1]]),
34
36
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "0.3.37",
3
+ "version": "0.3.39",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [