trepur_components 0.3.31 → 0.3.32

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.
@@ -37,10 +37,36 @@ const Image = _ref => {
37
37
  let {
38
38
  imageProps
39
39
  } = _ref;
40
+ const widthClassList = (0, _classnames.default)({
41
+ 'w-6': imageProps.width === 1,
42
+ 'w-10': imageProps.width === 2,
43
+ 'w-14': imageProps.width === 3,
44
+ 'w-16': imageProps.width === 4,
45
+ 'w-20': imageProps.width === 5,
46
+ 'w-24': imageProps.width === 6,
47
+ 'w-28': imageProps.width === 7,
48
+ 'w-32': imageProps.width === 8,
49
+ 'w-36': imageProps.width === 9,
50
+ 'w-40': imageProps.width === 10,
51
+ 'w-44': imageProps.width === 11
52
+ });
53
+ const heightClassList = (0, _classnames.default)({
54
+ 'h-6': imageProps.height === 1,
55
+ 'h-10': imageProps.height === 2,
56
+ 'h-14': imageProps.height === 3,
57
+ 'h-16': imageProps.height === 4,
58
+ 'h-20': imageProps.height === 5,
59
+ 'h-24': imageProps.height === 6,
60
+ 'h-28': imageProps.height === 7,
61
+ 'h-32': imageProps.height === 8,
62
+ 'h-36': imageProps.height === 9,
63
+ 'h-40': imageProps.height === 10,
64
+ 'h-44': imageProps.height === 11
65
+ });
40
66
  const classList = (0, _classnames.default)({
41
67
  [imageProps === null || imageProps === void 0 ? void 0 : imageProps.classes]: imageProps === null || imageProps === void 0 ? void 0 : imageProps.classes,
42
68
  'rounded-full': imageProps === null || imageProps === void 0 ? void 0 : imageProps.rounded
43
- });
69
+ }, widthClassList, heightClassList);
44
70
  return /*#__PURE__*/_react.default.createElement("img", _extends({}, (imageProps === null || imageProps === void 0 ? void 0 : imageProps.id) && {
45
71
  id: imageProps === null || imageProps === void 0 ? void 0 : imageProps.id
46
72
  }, {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "trepur_components",
3
3
  "description": "component lib",
4
4
  "author": "trepur_ttenneb",
5
- "version": "0.3.31",
5
+ "version": "0.3.32",
6
6
  "private": false,
7
7
  "keywords": [
8
8
  "react",