@cashub/ui 0.13.0 → 0.13.2

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/button/Button.js CHANGED
@@ -13,7 +13,7 @@ var _backgroundColor = _interopRequireDefault(require("../styles/mixin/backgroun
13
13
 
14
14
  var _colorOnBackground = _interopRequireDefault(require("../styles/mixin/colorOnBackground"));
15
15
 
16
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
16
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
17
17
 
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
 
@@ -27,7 +27,7 @@ var Button = _styledComponents.default.button.attrs(function () {
27
27
  return {
28
28
  primary: true
29
29
  };
30
- })(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n border: none;\n font-size: var(--font-button);\n line-height: var(--font-body1);\n cursor: ", ";\n border-radius: var(--border-radius-l);\n padding: 10px var(--spacing-s);\n text-transform: uppercase;\n\n > svg {\n margin-right: calc(var(--spacing-s) - 0.25rem);\n font-size: var(--font-body1);\n }\n\n &:hover {\n ", "\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), function (_ref) {
30
+ })(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n border: none;\n font-size: var(--font-button);\n line-height: var(--font-body1);\n cursor: ", ";\n border-radius: var(--border-radius-l);\n padding: 10px var(--spacing-s);\n text-transform: uppercase;\n\n > svg {\n margin-right: calc(var(--spacing-s) - 0.25rem);\n font-size: var(--font-body1);\n }\n\n &:hover {\n ", "\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), function (_ref) {
31
31
  var disabled = _ref.disabled;
32
32
  return disabled ? 'no-drop' : 'pointer';
33
33
  }, function (_ref2) {
@@ -51,6 +51,9 @@ var Button = _styledComponents.default.button.attrs(function () {
51
51
  }, function (_ref8) {
52
52
  var alignCenter = _ref8.alignCenter;
53
53
  return alignCenter && 'justify-content: center;';
54
+ }, function (_ref9) {
55
+ var filterFocus = _ref9.filterFocus;
56
+ return filterFocus && (0, _styledComponents.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n border: 2px solid var(--color-danger);\n "])));
54
57
  });
55
58
 
56
59
  var _default = Button;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cashub/ui",
3
- "version": "0.13.0",
3
+ "version": "0.13.2",
4
4
  "private": false,
5
5
  "author": "CASHUB Team",
6
6
  "description": "CASHUB UI components library",
package/select/Select.js CHANGED
@@ -531,7 +531,7 @@ var Select = function Select(_ref) {
531
531
  options.forEach(function (option) {
532
532
  if (option.child && option.child.length > 0) {
533
533
  var tmpFilteredChildOptions = option.child.filter(function (option) {
534
- return option.text.toLowerCase().indexOf(search.toLowerCase()) !== -1;
534
+ return option.text.toLowerCase().indexOf(search.toLowerCase().trim()) !== -1;
535
535
  });
536
536
 
537
537
  if (tmpFilteredChildOptions.length > 0) {
@@ -539,7 +539,7 @@ var Select = function Select(_ref) {
539
539
  child: tmpFilteredChildOptions
540
540
  }));
541
541
  }
542
- } else if (option.text.toLowerCase().indexOf(search.toLowerCase()) !== -1) {
542
+ } else if (option.text.toLowerCase().indexOf(search.toLowerCase().trim()) !== -1) {
543
543
  tmpFilteredOptions.push(option);
544
544
  }
545
545
  });