@sb1/ffe-chips-react 1.1.0 → 1.2.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.
@@ -22,13 +22,11 @@ var __rest = (this && this.__rest) || function (s, e) {
22
22
  };
23
23
  import React from 'react';
24
24
  import { Chip } from './Chip';
25
- import { Icon } from '@sb1/ffe-icons-react';
26
25
  import { fixedForwardRef } from './fixedForwardRef';
27
26
  import classNames from 'classnames';
28
- var checkOpen400Sm = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjAiPjxwYXRoIGQ9Im0zODktMzY5IDI5OS0yOTlxMTAuOTA5LTExIDI1LjQ1NS0xMVE3MjgtNjc5IDczOS02NjhxMTEgMTEgMTEgMjUuNTgyIDAgMTQuNTgzLTEwLjYwNyAyNS4xODhMNDE1LTI5MnEtMTAuOTA5IDExLTI1LjQ1NSAxMVEzNzUtMjgxIDM2NC0yOTJMMjIxLTQzNXEtMTEtMTEtMTEtMjUuNXQxMS0yNS41cTExLTExIDI1LjY2Ny0xMSAxNC42NjYgMCAyNS4zMzMgMTFsMTE3IDExN1oiLz48L3N2Zz4=';
29
27
  function ChipSelectableForwardRef(props, ref) {
30
28
  var className = props.className, isSelected = props.isSelected, rest = __rest(props, ["className", "isSelected"]);
31
- return (React.createElement(Chip, __assign({ ref: ref, leftIcon: isSelected ? React.createElement(Icon, { size: "sm", fileUrl: checkOpen400Sm }) : null, className: classNames(className, {
29
+ return (React.createElement(Chip, __assign({ ref: ref, className: classNames(className, {
32
30
  'ffe-chip--selected': isSelected,
33
31
  }) }, rest)));
34
32
  }
@@ -28,13 +28,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
28
28
  exports.ChipSelectable = void 0;
29
29
  var react_1 = __importDefault(require("react"));
30
30
  var Chip_1 = require("./Chip");
31
- var ffe_icons_react_1 = require("@sb1/ffe-icons-react");
32
31
  var fixedForwardRef_1 = require("./fixedForwardRef");
33
32
  var classnames_1 = __importDefault(require("classnames"));
34
- var checkOpen400Sm = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjAiPjxwYXRoIGQ9Im0zODktMzY5IDI5OS0yOTlxMTAuOTA5LTExIDI1LjQ1NS0xMVE3MjgtNjc5IDczOS02NjhxMTEgMTEgMTEgMjUuNTgyIDAgMTQuNTgzLTEwLjYwNyAyNS4xODhMNDE1LTI5MnEtMTAuOTA5IDExLTI1LjQ1NSAxMVEzNzUtMjgxIDM2NC0yOTJMMjIxLTQzNXEtMTEtMTEtMTEtMjUuNXQxMS0yNS41cTExLTExIDI1LjY2Ny0xMSAxNC42NjYgMCAyNS4zMzMgMTFsMTE3IDExN1oiLz48L3N2Zz4=';
35
33
  function ChipSelectableForwardRef(props, ref) {
36
34
  var className = props.className, isSelected = props.isSelected, rest = __rest(props, ["className", "isSelected"]);
37
- return (react_1.default.createElement(Chip_1.Chip, __assign({ ref: ref, leftIcon: isSelected ? react_1.default.createElement(ffe_icons_react_1.Icon, { size: "sm", fileUrl: checkOpen400Sm }) : null, className: (0, classnames_1.default)(className, {
35
+ return (react_1.default.createElement(Chip_1.Chip, __assign({ ref: ref, className: (0, classnames_1.default)(className, {
38
36
  'ffe-chip--selected': isSelected,
39
37
  }) }, rest)));
40
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-chips-react",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "React implementation of ffe-chips component",
5
5
  "keywords": [
6
6
  "ffe"
@@ -29,9 +29,9 @@
29
29
  "test:watch": "ffe-buildtool jest --watch"
30
30
  },
31
31
  "dependencies": {
32
- "@sb1/ffe-chips": "^1.1.0",
32
+ "@sb1/ffe-chips": "^1.2.0",
33
33
  "@sb1/ffe-core": "^29.1.3",
34
- "@sb1/ffe-icons-react": "^11.0.9"
34
+ "@sb1/ffe-icons-react": "^11.0.10"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@sb1/ffe-buildtool": "^0.9.0",
@@ -44,5 +44,5 @@
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
- "gitHead": "1390475cc0a1d33df73fda6b73168c2e5d4b2c9b"
47
+ "gitHead": "af448f5a636c079703ddef7a304419d06be1bab5"
48
48
  }