@dhis2-ui/button 9.4.8 → 9.4.9
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +6 -6
- package/types/index.d.ts +4 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dhis2-ui/button",
|
3
|
-
"version": "9.4.
|
3
|
+
"version": "9.4.9",
|
4
4
|
"description": "UI Button",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -33,11 +33,11 @@
|
|
33
33
|
},
|
34
34
|
"dependencies": {
|
35
35
|
"@dhis2/prop-types": "^3.1.2",
|
36
|
-
"@dhis2-ui/layer": "9.4.
|
37
|
-
"@dhis2-ui/loader": "9.4.
|
38
|
-
"@dhis2-ui/popper": "9.4.
|
39
|
-
"@dhis2/ui-constants": "9.4.
|
40
|
-
"@dhis2/ui-icons": "9.4.
|
36
|
+
"@dhis2-ui/layer": "9.4.9",
|
37
|
+
"@dhis2-ui/loader": "9.4.9",
|
38
|
+
"@dhis2-ui/popper": "9.4.9",
|
39
|
+
"@dhis2/ui-constants": "9.4.9",
|
40
|
+
"@dhis2/ui-icons": "9.4.9",
|
41
41
|
"classnames": "^2.3.1",
|
42
42
|
"prop-types": "^15.7.2"
|
43
43
|
},
|
package/types/index.d.ts
CHANGED
@@ -16,7 +16,7 @@ type ButtonOpenEventHandler<
|
|
16
16
|
Event extends React.SyntheticEvent = React.MouseEvent<HTMLButtonElement>
|
17
17
|
> = (arg0: ButtonEventPayload & { open: boolean }, event: Event) => void
|
18
18
|
|
19
|
-
export interface
|
19
|
+
export interface BaseButtonProps {
|
20
20
|
/**
|
21
21
|
* Component to render inside the button
|
22
22
|
*/
|
@@ -102,6 +102,9 @@ export interface ButtonProps extends HTMLButtonElement {
|
|
102
102
|
onKeyDown?: ButtonEventHandler<React.KeyboardEvent<HTMLButtonElement>>
|
103
103
|
}
|
104
104
|
|
105
|
+
export type ButtonProps = BaseButtonProps &
|
106
|
+
Omit<React.ComponentPropsWithoutRef<'button'>, keyof BaseButtonProps>
|
107
|
+
|
105
108
|
export const Button: React.FC<ButtonProps>
|
106
109
|
|
107
110
|
export interface ButtonStripProps {
|