@threekit-tools/treble 0.0.26 → 0.0.27

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.
@@ -44,9 +44,7 @@ var Swatch = function (props) {
44
44
  description: !showDescription ? undefined : el.description,
45
45
  }), imageUrl = _a.imageUrl, color = _a.color, name = _a.name, description = _a.description, price = _a.price, optionValue = _a.optionValue;
46
46
  var selected = value === optionValue;
47
- var clsOpt = "".concat(cls, "-option option-").concat(i, " ").concat(optionValue) + selected
48
- ? ' selected'
49
- : '';
47
+ var clsOpt = "".concat(cls, "-option option-").concat(i, " ").concat(optionValue).concat(selected ? ' selected' : '');
50
48
  return (react_1.default.createElement(swatch_styles_1.OptionWrapper, { key: i, onClick: function () { return onClick && onClick(optionValue); }, selected: selected, className: clsOpt, shape: shape },
51
49
  react_1.default.createElement("div", null,
52
50
  react_1.default.createElement(Thumbnail, { imageUrl: imageUrl, color: color, shape: shape, className: clsOpt })),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@threekit-tools/treble",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "author": "Amaan Saeed",
5
5
  "license": "MIT",
6
6
  "files": [