trepur_components 0.3.9 → 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 =
|
|
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
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
}, {
|
|
@@ -50,7 +50,8 @@ const Nav = _ref => {
|
|
|
50
50
|
fixedTop,
|
|
51
51
|
mobileClasses,
|
|
52
52
|
borderBottom,
|
|
53
|
-
borderBottomColor
|
|
53
|
+
borderBottomColor,
|
|
54
|
+
closeMobileIconProps
|
|
54
55
|
} = _ref;
|
|
55
56
|
const [showSideNav, setShowSideNav] = (0, _react.useState)(false);
|
|
56
57
|
const [showDropdownNav, setShowDropdownNav] = (0, _react.useState)(false);
|
|
@@ -194,10 +195,10 @@ const Nav = _ref => {
|
|
|
194
195
|
className: sideNavClasses
|
|
195
196
|
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
196
197
|
iconProps: {
|
|
197
|
-
classes:
|
|
198
|
+
classes: closeMobileIconProps === null || closeMobileIconProps === void 0 ? void 0 : closeMobileIconProps.classes,
|
|
198
199
|
onClick: () => setShowSideNav(false),
|
|
199
|
-
type:
|
|
200
|
-
size:
|
|
200
|
+
type: closeMobileIconProps === null || closeMobileIconProps === void 0 ? void 0 : closeMobileIconProps.type,
|
|
201
|
+
size: closeMobileIconProps === null || closeMobileIconProps === void 0 ? void 0 : closeMobileIconProps.size
|
|
201
202
|
}
|
|
202
203
|
}), mobileItems && mobileItems.map((item, i) => {
|
|
203
204
|
return /*#__PURE__*/_react.default.createElement("div", {
|