equestrian-ui-kit 0.0.2 → 0.0.3

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.
@@ -9,6 +9,6 @@ const Text = ({ children, color, isParagraph, className }) => {
9
9
  const colorStyle = color === 'black' ? Text_module_scss_1.default.textBlack : Text_module_scss_1.default.textDarkGray;
10
10
  const isParagraphStyle = isParagraph ? Text_module_scss_1.default.textParagraph : '';
11
11
  const classNameStyle = className ? className : '';
12
- return <p className={[colorStyle, isParagraphStyle, classNameStyle].join(' ')}>{children}</p>;
12
+ return <p className={[Text_module_scss_1.default.text, colorStyle, isParagraphStyle, classNameStyle].filter((s) => s.length != 0).join(' ')}>{children}</p>;
13
13
  };
14
14
  exports.default = Text;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "equestrian-ui-kit",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "The UI kit for main project.",
5
5
  "main": "lib/index.js",
6
6
  "type": "commonjs",
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "scripts": {
12
12
  "build": "tsc",
13
- "deploy": "npm publish",
13
+ "deploy": "npm run build && npm run format && npm publish",
14
14
  "format": "npx prettier 'lib/**/*.{js,ts,json,jsx,tsx,scss}' --write"
15
15
  },
16
16
  "author": "surpri6e",