trepur_components 0.2.44 → 0.2.47

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 pt-4 hover:h-full hover:my-0 hover:mx-0 hover:text-sm ';
46
+ const wrapperClasses = 'h-96 flex items-center justify-center text-center border border-1 py-12 hover:py-0 ease-out duration-300';
47
+ let classList = 'flex flex-col items-center justify-center text-center w-full h-full mx-12 my-12 ease-out duration-300 hover:m-0 hover:text-sm ';
47
48
  classList += bordered ? 'border ' : '';
48
49
  classList += rounded ? 'rounded-2xl ' : '';
49
50
  classList += classes ? classes : '';
50
- const numberClass = number !== null && 'text-lg';
51
+ const numberClass = number !== null ? 'text-lg' : '';
51
52
  const numberClasses = 'text-center ' + numberClass;
52
- const textClass = number === null && ' text-lg ';
53
- const textClasses = 'text-center px-2 text-md md:text-lg ' + textClass;
53
+ const textClass = number === null ? ' text-lg ' : '';
54
+ const textClasses = 'h-24 flex items-center justify-center text-center text-center px-2 text-md md:text-lg ' + textClass;
54
55
 
55
56
  const counterAnimation = (obj, start, end, duration) => {
56
57
  let startTimestamp = null;
@@ -105,7 +106,7 @@ const InformationIcon = _ref => {
105
106
 
106
107
  return /*#__PURE__*/_react.default.createElement("div", {
107
108
  id: "wrapper",
108
- className: "h-56"
109
+ className: wrapperClasses
109
110
  }, /*#__PURE__*/_react.default.createElement("div", _extends({}, id && {
110
111
  id: id
111
112
  }, {
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.2.44",
5
+ "version": "0.2.47",
6
6
  "private": false,
7
7
  "keywords": [
8
8
  "react",
@@ -29,10 +29,7 @@
29
29
  "web-vitals": "^2.1.4"
30
30
  },
31
31
  "scripts": {
32
- "build-old": "NODE_ENV=production babel src/lib --out-dir dist --ignore src/**/*.stories.js --copy-files --no-copy-ignored && rm -rf dist/utils dist/assets",
33
- "build-test": "NODE_ENV=production babel src/lib --out-dir dist --ignore src/**/*.stories.js --copy-files --no-copy-ignored && rm -rf dist/utils dist/assets && rm -rf dist/typography",
34
- "build-working": "NODE_ENV=production babel src --out-dir dist --ignore src/**/*.stories.js --copy-files --no-copy-ignored && rm -rf dist/utils dist/assets && rm -rf dist/lib && rm -rf dist/typography",
35
- "build": "NODE_ENV=production babel src --out-dir dist --ignore src/**/*.stories.js --copy-files --no-copy-ignored && rm -rf dist/lib/utils dist/lib/assets && rm -rf dist/lib/typography",
32
+ "build": "NODE_ENV=production babel src/lib --out-dir dist --ignore src/**/*.stories.js --copy-files --no-copy-ignored && rm -rf dist/utils dist/assets && rm -rf dist/typography",
36
33
  "eject": "react-scripts eject",
37
34
  "storybook": "start-storybook -p 6006",
38
35
  "build-storybook": "build-storybook -s public"
@@ -1,5 +0,0 @@
1
- #wrapper:hover div {
2
- margin: 5px;
3
- margin-bottom: 5px;
4
- font-size: 24px
5
- }