@sb1/ffe-chips-react 100.1.1 → 100.2.1

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/es/Chip.js CHANGED
@@ -25,7 +25,7 @@ import React from 'react';
25
25
  import { fixedForwardRef } from './fixedForwardRef';
26
26
  function ChipWithForwardRef(props, ref) {
27
27
  var _a = props.as, Comp = _a === void 0 ? 'button' : _a, className = props.className, size = props.size, leftIcon = props.leftIcon, rightIcon = props.rightIcon, children = props.children, rest = __rest(props, ["as", "className", "size", "leftIcon", "rightIcon", "children"]);
28
- var wrappedChildren = (React.createElement("span", { className: classNames('ffe-chip__label', size === 'sm' ? 'ffe-small-text' : 'ffe-body-paragraph') }, children));
28
+ var wrappedChildren = (React.createElement("span", { className: classNames('ffe-chip__label', size === 'sm' && 'ffe-chip__label--sm') }, children));
29
29
  return (React.createElement(Comp, __assign({ className: classNames('ffe-chip', {
30
30
  'ffe-chip--sm': size === 'sm',
31
31
  'ffe-chip--md': size === 'md',
package/lib/Chip.js CHANGED
@@ -31,7 +31,7 @@ var react_1 = __importDefault(require("react"));
31
31
  var fixedForwardRef_1 = require("./fixedForwardRef");
32
32
  function ChipWithForwardRef(props, ref) {
33
33
  var _a = props.as, Comp = _a === void 0 ? 'button' : _a, className = props.className, size = props.size, leftIcon = props.leftIcon, rightIcon = props.rightIcon, children = props.children, rest = __rest(props, ["as", "className", "size", "leftIcon", "rightIcon", "children"]);
34
- var wrappedChildren = (react_1.default.createElement("span", { className: (0, classnames_1.default)('ffe-chip__label', size === 'sm' ? 'ffe-small-text' : 'ffe-body-paragraph') }, children));
34
+ var wrappedChildren = (react_1.default.createElement("span", { className: (0, classnames_1.default)('ffe-chip__label', size === 'sm' && 'ffe-chip__label--sm') }, children));
35
35
  return (react_1.default.createElement(Comp, __assign({ className: (0, classnames_1.default)('ffe-chip', {
36
36
  'ffe-chip--sm': size === 'sm',
37
37
  'ffe-chip--md': size === 'md',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-chips-react",
3
- "version": "100.1.1",
3
+ "version": "100.2.1",
4
4
  "description": "React implementation of ffe-chips component",
5
5
  "keywords": [
6
6
  "ffe"
@@ -28,13 +28,13 @@
28
28
  "test:watch": "ffe-buildtool jest --watch"
29
29
  },
30
30
  "dependencies": {
31
- "@sb1/ffe-chips": "^100.1.1",
32
- "@sb1/ffe-core": "^100.1.1",
33
- "@sb1/ffe-icons-react": "^100.1.1",
31
+ "@sb1/ffe-chips": "^100.2.1",
32
+ "@sb1/ffe-core": "^100.2.1",
33
+ "@sb1/ffe-icons-react": "^100.2.1",
34
34
  "classnames": "^2.5.1"
35
35
  },
36
36
  "devDependencies": {
37
- "@sb1/ffe-buildtool": "^100.1.1",
37
+ "@sb1/ffe-buildtool": "^100.2.1",
38
38
  "react": "^18.2.0",
39
39
  "react-dom": "^18.2.0"
40
40
  },
@@ -44,5 +44,5 @@
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
- "gitHead": "6ae73c2e7574d096f6faf05c35b186210dd18cf5"
47
+ "gitHead": "dca6950c2a08660d819c1a891de6a4e53afe345b"
48
48
  }