react-tab-set 1.2.3 → 1.2.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-tab-set",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "A React Tab Set component",
5
5
  "main": "./src/index.mjs",
6
6
  "type": "module",
@@ -31,6 +31,7 @@
31
31
  "devDependencies": {
32
32
  "@babel/core": "^7.22.20",
33
33
  "@babel/eslint-parser": "^7.22.15",
34
+ "@babel/plugin-syntax-jsx": "^7.22.5",
34
35
  "@babel/plugin-transform-typescript": "^7.22.15",
35
36
  "@babel/preset-env": "^7.22.20",
36
37
  "@babel/preset-react": "^7.22.15",
@@ -54,8 +55,8 @@
54
55
  "eslint-plugin-storybook": "^0.6.14",
55
56
  "husky": "^8.0.3",
56
57
  "prop-types": "15.7.2",
57
- "react": "16.14.0",
58
- "react-dom": "16.14.0",
58
+ "react": "^18.2.0",
59
+ "react-dom": "^18.2.0",
59
60
  "storybook": "^7.4.4",
60
61
  "typescript": "^5.2.2"
61
62
  },
package/src/.babelrc CHANGED
@@ -21,6 +21,7 @@
21
21
  "@babel/react"
22
22
  ],
23
23
  "plugins": [
24
+ "@babel/syntax-jsx",
24
25
  "@babel/transform-typescript"
25
26
  ]
26
27
  }
@@ -18,7 +18,7 @@ export default class TabGroup extends Component<TabGroupProps> {
18
18
  * an implemented tab
19
19
  */
20
20
  static defaultProps = {
21
- onTabSelect: () => {},
21
+ onTabSelect () {},
22
22
  selectedTab: v4(),
23
23
  children: []
24
24
  }
@@ -17,7 +17,7 @@ export default class Tab extends Component<TabProps> {
17
17
  * an implemented tab
18
18
  */
19
19
  static defaultProps = {
20
- onTabClick: () => {},
20
+ onTabClick () {},
21
21
  tab: v4(),
22
22
  selectedTab: v4(),
23
23
  children: []