reactive-bulma 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  interface ButtonProps {
3
- text: string;
3
+ text?: string;
4
4
  }
5
5
  declare const Button: React.FC<ButtonProps>;
6
6
  export default Button;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  interface ButtonProps {
3
- text: string;
3
+ text?: string;
4
4
  }
5
5
  declare const Button: React.FC<ButtonProps>;
6
6
  export default Button;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
 
3
3
  interface ButtonProps {
4
- text: string;
4
+ text?: string;
5
5
  }
6
6
  declare const Button: React.FC<ButtonProps>;
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reactive-bulma",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "A typescript-react-based library using bulma",
5
5
  "keywords": [
6
6
  "typescript",
@@ -20,6 +20,8 @@
20
20
  },
21
21
  "scripts": {
22
22
  "start": "start-storybook -p 6006",
23
+ "test": "jest --watchAll=false --verbose",
24
+ "test:ci": "npm test -- --coverage",
23
25
  "prepare": "npm run build",
24
26
  "build": "rollup -c --bundleConfigAsCjs",
25
27
  "build-storybook": "build-storybook",
@@ -27,6 +29,9 @@
27
29
  },
28
30
  "devDependencies": {
29
31
  "@babel/core": "^7.20.12",
32
+ "@babel/preset-env": "^7.20.2",
33
+ "@babel/preset-react": "^7.18.6",
34
+ "@babel/preset-typescript": "^7.18.6",
30
35
  "@rollup/plugin-commonjs": "^24.0.0",
31
36
  "@rollup/plugin-node-resolve": "^15.0.1",
32
37
  "@rollup/plugin-typescript": "^10.0.1",
@@ -45,9 +50,14 @@
45
50
  "@storybook/manager-webpack5": "^6.5.15",
46
51
  "@storybook/react": "^6.5.15",
47
52
  "@storybook/testing-library": "^0.0.13",
53
+ "@testing-library/react": "^13.4.0",
54
+ "@types/jest": "^29.4.0",
48
55
  "@types/react": "^18.0.26",
56
+ "babel-jest": "^29.4.1",
49
57
  "babel-loader": "^8.3.0",
50
58
  "bulma": "^0.9.4",
59
+ "jest": "^29.4.1",
60
+ "jest-environment-jsdom": "^29.4.1",
51
61
  "react": "^18.2.0",
52
62
  "react-dom": "^18.2.0",
53
63
  "rollup": "^3.9.1",