trepur_components 0.3.11 → 0.3.12

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.
@@ -66,7 +66,7 @@ const CarouselV2 = _ref => {
66
66
  arrows,
67
67
  dots
68
68
  } = _ref;
69
- const classList = "".concat(classes);
69
+ const classList = classes;
70
70
  const dotClasses = "w-4 h-4 cursor-pointer focus:".concat(dots === null || dots === void 0 ? void 0 : dots.activeColours, " rounded-full mx-1 ");
71
71
  const [currentSlide, setCurrentSlide] = (0, _react.useState)(0);
72
72
  const [loaded, setLoaded] = (0, _react.useState)(false);
@@ -11,6 +11,8 @@ var _react = _interopRequireDefault(require("react"));
11
11
 
12
12
  var _propTypes = _interopRequireDefault(require("prop-types"));
13
13
 
14
+ var _classnames = _interopRequireDefault(require("classnames"));
15
+
14
16
  require("../index.css");
15
17
 
16
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -67,32 +69,13 @@ const Column = _ref => {
67
69
  return width;
68
70
  };
69
71
 
70
- let classList = columnProps !== null && columnProps !== void 0 && columnProps.classes ? columnProps === null || columnProps === void 0 ? void 0 : columnProps.classes : '';
71
-
72
- if (columnProps !== null && columnProps !== void 0 && columnProps.sm) {
73
- let smClass;
74
- smClass = calculateWidth(columnProps === null || columnProps === void 0 ? void 0 : columnProps.sm);
75
- classList += ' ' + smClass + ' ';
76
- }
77
-
78
- if (columnProps !== null && columnProps !== void 0 && columnProps.md) {
79
- let mdClass;
80
- mdClass = 'md:' + calculateWidth(columnProps === null || columnProps === void 0 ? void 0 : columnProps.md);
81
- classList += ' ' + mdClass + ' ';
82
- }
83
-
84
- if (columnProps !== null && columnProps !== void 0 && columnProps.lg) {
85
- let lgClass;
86
- lgClass = 'lg:' + calculateWidth(columnProps === null || columnProps === void 0 ? void 0 : columnProps.lg);
87
- classList += ' ' + lgClass + ' ';
88
- }
89
-
90
- if (columnProps !== null && columnProps !== void 0 && columnProps.xl) {
91
- let xlClass;
92
- xlClass = 'xl:' + calculateWidth(columnProps === null || columnProps === void 0 ? void 0 : columnProps.xl);
93
- classList += ' ' + xlClass + ' ';
94
- }
95
-
72
+ const classList = (0, _classnames.default)({
73
+ [columnProps === null || columnProps === void 0 ? void 0 : columnProps.classes]: columnProps === null || columnProps === void 0 ? void 0 : columnProps.classes,
74
+ ["sm:".concat(calculateWidth(columnProps === null || columnProps === void 0 ? void 0 : columnProps.sm))]: columnProps === null || columnProps === void 0 ? void 0 : columnProps.sm,
75
+ ["md:".concat(calculateWidth(columnProps === null || columnProps === void 0 ? void 0 : columnProps.md))]: columnProps === null || columnProps === void 0 ? void 0 : columnProps.md,
76
+ ["lg:".concat(calculateWidth(columnProps === null || columnProps === void 0 ? void 0 : columnProps.lg))]: columnProps === null || columnProps === void 0 ? void 0 : columnProps.lg,
77
+ ["xl:".concat(calculateWidth(columnProps === null || columnProps === void 0 ? void 0 : columnProps.xl))]: columnProps === null || columnProps === void 0 ? void 0 : columnProps.xl
78
+ }, 'h-full');
96
79
  return /*#__PURE__*/_react.default.createElement("div", _extends({}, (columnProps === null || columnProps === void 0 ? void 0 : columnProps.id) && {
97
80
  id: columnProps === null || columnProps === void 0 ? void 0 : columnProps.id
98
81
  }, {
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.11",
5
+ "version": "0.3.12",
6
6
  "private": false,
7
7
  "keywords": [
8
8
  "react",