trepur_components 0.3.24 → 0.3.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.
- package/dist/components/Card/index.js +0 -2
- package/dist/components/Carousel/index.js +3 -3
- package/dist/components/Container/index.js +1 -1
- package/dist/components/Nav/index.js +26 -3
- package/dist/components/SocialBlock/index.js +7 -3
- package/dist/components/Timeline/index.js +16 -16
- package/package.json +1 -1
|
@@ -19,8 +19,6 @@ var _Video = _interopRequireDefault(require("../Video"));
|
|
|
19
19
|
|
|
20
20
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
21
21
|
|
|
22
|
-
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
23
|
-
|
|
24
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
23
|
|
|
26
24
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -24,7 +24,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
24
24
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
25
|
|
|
26
26
|
//https://keen-slider.io/docs#usage-in-react
|
|
27
|
-
const
|
|
27
|
+
const Carousel = _ref => {
|
|
28
28
|
var _instanceRef$current3, _instanceRef$current4, _instanceRef$current5, _instanceRef$current6, _instanceRef$current7, _instanceRef$current8, _instanceRef$current9, _instanceRef$current10;
|
|
29
29
|
|
|
30
30
|
let {
|
|
@@ -167,7 +167,7 @@ function Arrow(props) {
|
|
|
167
167
|
}, 'arrow w-12 translate-y-2/4 h-12 absolute cursor-pointer top-1/2');
|
|
168
168
|
return /*#__PURE__*/_react.default.createElement("svg", {
|
|
169
169
|
style: {
|
|
170
|
-
'
|
|
170
|
+
'WebkitTransform': 'translateY(-50%)'
|
|
171
171
|
},
|
|
172
172
|
onClick: props === null || props === void 0 ? void 0 : props.onClick,
|
|
173
173
|
className: "".concat(arrowClasses),
|
|
@@ -180,5 +180,5 @@ function Arrow(props) {
|
|
|
180
180
|
}));
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
var _default =
|
|
183
|
+
var _default = Carousel;
|
|
184
184
|
exports.default = _default;
|
|
@@ -39,7 +39,7 @@ const Container = _ref => {
|
|
|
39
39
|
}, 'mx-auto');
|
|
40
40
|
return /*#__PURE__*/_react.default.createElement("div", _extends({
|
|
41
41
|
style: {
|
|
42
|
-
'
|
|
42
|
+
'maxWidth': containerProps.maxWidth
|
|
43
43
|
}
|
|
44
44
|
}, (containerProps === null || containerProps === void 0 ? void 0 : containerProps.id) && {
|
|
45
45
|
id: containerProps === null || containerProps === void 0 ? void 0 : containerProps.id
|
|
@@ -50,7 +50,8 @@ const Nav = _ref => {
|
|
|
50
50
|
borderBottom,
|
|
51
51
|
borderBottomColor,
|
|
52
52
|
closeMobileIconProps,
|
|
53
|
-
rowHeight
|
|
53
|
+
rowHeight,
|
|
54
|
+
getNavStatus
|
|
54
55
|
} = _ref;
|
|
55
56
|
const [showSideNav, setShowSideNav] = (0, _react.useState)(false);
|
|
56
57
|
const [showDropdownNav, setShowDropdownNav] = (0, _react.useState)(false);
|
|
@@ -105,6 +106,28 @@ const Nav = _ref => {
|
|
|
105
106
|
'fixed w-full z-50 top-0 mt-0': fixedTop,
|
|
106
107
|
'border-b': borderBottom
|
|
107
108
|
}, "hidden md:block items-center justify-between sm:items-stretch text-center");
|
|
109
|
+
|
|
110
|
+
const openMenu = () => {
|
|
111
|
+
getNavStatus({
|
|
112
|
+
asSideBar: asSideBar,
|
|
113
|
+
open: true
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
if (asSideBar) {
|
|
117
|
+
setShowSideNav(true);
|
|
118
|
+
} else {
|
|
119
|
+
setShowDropdownNav(!showDropdownNav);
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
const closeMenu = () => {
|
|
124
|
+
getNavStatus({
|
|
125
|
+
asSideBar: asSideBar,
|
|
126
|
+
open: false
|
|
127
|
+
});
|
|
128
|
+
setShowSideNav(false);
|
|
129
|
+
};
|
|
130
|
+
|
|
108
131
|
return /*#__PURE__*/_react.default.createElement("nav", {
|
|
109
132
|
id: id,
|
|
110
133
|
className: classes
|
|
@@ -115,7 +138,7 @@ const Nav = _ref => {
|
|
|
115
138
|
id: "nav-collapse-btn-wrapper",
|
|
116
139
|
className: "absolute inset-y-0 left-2 flex items-center"
|
|
117
140
|
}, /*#__PURE__*/_react.default.createElement("button", {
|
|
118
|
-
onClick:
|
|
141
|
+
onClick: openMenu,
|
|
119
142
|
type: "button",
|
|
120
143
|
className: "inline-flex items-center justify-center \n p-2 rounded-md focus:ring-2 focus:ring-inset \n focus:ring-white ".concat(styles),
|
|
121
144
|
"aria-controls": "mobile-menu",
|
|
@@ -205,7 +228,7 @@ const Nav = _ref => {
|
|
|
205
228
|
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
206
229
|
iconProps: {
|
|
207
230
|
classes: closeMobileIconProps === null || closeMobileIconProps === void 0 ? void 0 : closeMobileIconProps.classes,
|
|
208
|
-
onClick:
|
|
231
|
+
onClick: closeMenu,
|
|
209
232
|
type: closeMobileIconProps === null || closeMobileIconProps === void 0 ? void 0 : closeMobileIconProps.type,
|
|
210
233
|
size: closeMobileIconProps === null || closeMobileIconProps === void 0 ? void 0 : closeMobileIconProps.size
|
|
211
234
|
}
|
|
@@ -71,7 +71,7 @@ const SocialBlock = _ref => {
|
|
|
71
71
|
});
|
|
72
72
|
const buttnoWrapperClasslist = (0, _classnames.default)({
|
|
73
73
|
[buttonWrapperClasses]: buttonWrapperClasses
|
|
74
|
-
}, 'pt-4
|
|
74
|
+
}, 'pt-4');
|
|
75
75
|
const hoverClassList = (0, _classnames.default)({
|
|
76
76
|
[hoverClasses]: withLiveUpdates && !isInEditingMode && isHovering,
|
|
77
77
|
[textWrapperClasses]: textWrapperClasses
|
|
@@ -172,9 +172,13 @@ const SocialBlock = _ref => {
|
|
|
172
172
|
className: "pt-4"
|
|
173
173
|
}, componentData.text.text)), /*#__PURE__*/_react.default.createElement("div", {
|
|
174
174
|
className: buttnoWrapperClasslist
|
|
175
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
176
|
+
className: "flex flex-wrap w-full justify-center"
|
|
175
177
|
}, socialButtons && socialButtons.map((button, i) => {
|
|
176
|
-
return
|
|
177
|
-
|
|
178
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
179
|
+
key: "social_btn_".concat(i + 1)
|
|
180
|
+
}, button);
|
|
181
|
+
})))));
|
|
178
182
|
};
|
|
179
183
|
|
|
180
184
|
var _default = SocialBlock;
|
|
@@ -61,82 +61,82 @@ const Timeline = _ref => {
|
|
|
61
61
|
const circleVerticalBefore = {
|
|
62
62
|
'position': 'absolute',
|
|
63
63
|
'display': 'block',
|
|
64
|
-
'
|
|
64
|
+
'borderLeft': '1px solid #31a3dd',
|
|
65
65
|
'content': '""',
|
|
66
66
|
'height': '50%',
|
|
67
67
|
'top': '0%',
|
|
68
68
|
'left': '49.9%',
|
|
69
|
-
'
|
|
69
|
+
'zIndex': '-1'
|
|
70
70
|
};
|
|
71
71
|
const circleVerticalCollapseBefore = {
|
|
72
72
|
'position': ' absolute',
|
|
73
73
|
'display': ' block',
|
|
74
|
-
'
|
|
74
|
+
'borderLeft': ' 1px solid #31a3dd',
|
|
75
75
|
'content': ' ""',
|
|
76
76
|
'height': ' 50%',
|
|
77
77
|
'top': ' 0%',
|
|
78
78
|
'left': ' 8.2%',
|
|
79
|
-
'
|
|
79
|
+
'zIndex': ' -1'
|
|
80
80
|
};
|
|
81
81
|
const lastCircleVerticalBefore = {
|
|
82
82
|
'position': 'absolute',
|
|
83
83
|
'display': 'block',
|
|
84
|
-
'
|
|
84
|
+
'borderLeft': '1px solid #31a3dd',
|
|
85
85
|
'content': '""',
|
|
86
86
|
'height': '50%',
|
|
87
87
|
'top': '0%',
|
|
88
88
|
'left': '49.9%',
|
|
89
|
-
'
|
|
89
|
+
'zIndex': '-1'
|
|
90
90
|
};
|
|
91
91
|
const lastCircleVerticalCollapseBefore = {
|
|
92
92
|
'position': ' absolute',
|
|
93
93
|
'display': ' block',
|
|
94
|
-
'
|
|
94
|
+
'borderLeft': ' 1px solid #31a3dd',
|
|
95
95
|
'content': ' ""',
|
|
96
96
|
'height': ' 50%',
|
|
97
97
|
'top': ' 0%',
|
|
98
98
|
'left': ' 8.2%',
|
|
99
|
-
'
|
|
99
|
+
'zIndex': ' -1'
|
|
100
100
|
};
|
|
101
101
|
const circleVerticalAfter = {
|
|
102
102
|
'position': 'absolute',
|
|
103
103
|
'display': 'block',
|
|
104
|
-
'
|
|
104
|
+
'borderLeft': '1px solid #31a3dd',
|
|
105
105
|
'content': '""',
|
|
106
106
|
'height': '50%',
|
|
107
107
|
'bottom': '0%',
|
|
108
108
|
'left': '49.9%',
|
|
109
|
-
'
|
|
109
|
+
'zIndex': '-1'
|
|
110
110
|
};
|
|
111
111
|
const firstCircleVerticalAfter = {
|
|
112
112
|
'position': 'absolute',
|
|
113
113
|
'display': 'block',
|
|
114
|
-
'
|
|
114
|
+
'borderLeft': '1px solid #31a3dd',
|
|
115
115
|
'content': '""',
|
|
116
116
|
'height': '50%',
|
|
117
117
|
'bottom': '0%',
|
|
118
118
|
'left': '49.9%',
|
|
119
|
-
'
|
|
119
|
+
'zIndex': '-1'
|
|
120
120
|
};
|
|
121
121
|
const circleVerticalCollapseAfter = {
|
|
122
122
|
'position': 'absolute',
|
|
123
123
|
'display': 'block',
|
|
124
|
-
'
|
|
124
|
+
'borderLeft': '1px solid #31a3dd',
|
|
125
125
|
'content': '""',
|
|
126
126
|
'height': '50%',
|
|
127
127
|
'bottom': '0%',
|
|
128
128
|
'left': '8.2%',
|
|
129
|
-
'
|
|
129
|
+
'zIndex': '-1'
|
|
130
130
|
};
|
|
131
131
|
const firstCircleVerticalCollapseAfter = {
|
|
132
132
|
'position': 'absolute',
|
|
133
133
|
'display': 'block',
|
|
134
|
-
'
|
|
134
|
+
'borderLeft': '1px solid #31a3dd',
|
|
135
135
|
'content': '""',
|
|
136
136
|
'height': '50%',
|
|
137
137
|
'bottom': '0%',
|
|
138
138
|
'left': '8.2%',
|
|
139
|
-
'
|
|
139
|
+
'zIndex': '-1'
|
|
140
140
|
};
|
|
141
141
|
return /*#__PURE__*/_react.default.createElement(_Column.default, {
|
|
142
142
|
columnProps: {
|