@sebgroup/green-react 1.9.1 → 1.9.2
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/index.js
CHANGED
|
@@ -2481,6 +2481,7 @@ function Button({
|
|
|
2481
2481
|
}
|
|
2482
2482
|
|
|
2483
2483
|
const IconButton = _a => {
|
|
2484
|
+
var _b;
|
|
2484
2485
|
var {
|
|
2485
2486
|
children,
|
|
2486
2487
|
onClick
|
|
@@ -2490,7 +2491,8 @@ const IconButton = _a => {
|
|
|
2490
2491
|
className: "icon",
|
|
2491
2492
|
onClick: onClick,
|
|
2492
2493
|
"aria-controls": props['aria-controls'],
|
|
2493
|
-
"aria-expanded": props['aria-expanded']
|
|
2494
|
+
"aria-expanded": props['aria-expanded'],
|
|
2495
|
+
type: (_b = props.type) !== null && _b !== void 0 ? _b : 'button'
|
|
2494
2496
|
}, {
|
|
2495
2497
|
children: children
|
|
2496
2498
|
}));
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sebgroup/green-react",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.2",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": "^17 || ^18",
|
|
6
6
|
"react-dom": "^17 || ^18"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@sebgroup/chlorophyll": "^1.10.
|
|
9
|
+
"@sebgroup/chlorophyll": "^1.10.1",
|
|
10
10
|
"@sebgroup/extract": "^1.3.2",
|
|
11
11
|
"classnames": "^2.3.2"
|
|
12
12
|
},
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ReactNode, MouseEvent } from 'react';
|
|
2
|
+
import { ButtonType } from '@sebgroup/extract';
|
|
2
3
|
interface IconButtonInterface {
|
|
3
4
|
children: ReactNode;
|
|
5
|
+
type?: ButtonType;
|
|
4
6
|
onClick: (event: MouseEvent) => void;
|
|
5
7
|
'aria-expanded'?: boolean;
|
|
6
8
|
'aria-controls'?: string;
|