trepur_components 0.2.45 → 0.2.46
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.
|
@@ -43,14 +43,15 @@ const InformationIcon = _ref => {
|
|
|
43
43
|
let loaded = (0, _react.useRef)(false);
|
|
44
44
|
let imageClassList = 'mx-auto pt-2 ';
|
|
45
45
|
imageClassList += imageClasses ? imageClasses : '';
|
|
46
|
-
let classList = 'flex flex-col mx-12
|
|
46
|
+
let classList = 'flex flex-col mx-12 hover:h-full ease-out duration-300 hover:mx-0 w-full hover:my-0 hover:mx-0 hover:text-sm flex items-center justify-center text-center ';
|
|
47
47
|
classList += bordered ? 'border ' : '';
|
|
48
48
|
classList += rounded ? 'rounded-2xl ' : '';
|
|
49
49
|
classList += classes ? classes : '';
|
|
50
50
|
const numberClass = number !== null ? 'text-lg' : '';
|
|
51
51
|
const numberClasses = 'text-center ' + numberClass;
|
|
52
52
|
const textClass = number === null ? ' text-lg ' : '';
|
|
53
|
-
const textClasses = 'text-center px-2 text-md md:text-lg
|
|
53
|
+
const textClasses = 'text-center px-2 text-md md:text-lg ' + textClass;
|
|
54
|
+
const wrapperClasses = 'h-60 border border-1 flex items-center justify-center text-center';
|
|
54
55
|
|
|
55
56
|
const counterAnimation = (obj, start, end, duration) => {
|
|
56
57
|
let startTimestamp = null;
|
|
@@ -104,7 +105,8 @@ const InformationIcon = _ref => {
|
|
|
104
105
|
|
|
105
106
|
|
|
106
107
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
107
|
-
id: "wrapper"
|
|
108
|
+
id: "wrapper",
|
|
109
|
+
className: wrapperClasses
|
|
108
110
|
}, /*#__PURE__*/_react.default.createElement("div", _extends({}, id && {
|
|
109
111
|
id: id
|
|
110
112
|
}, {
|