@justeattakeaway/pie-radio 0.10.2 → 0.10.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.
- package/dist/index.js +1 -1
- package/dist/react.d.ts +1 -1
- package/package.json +1 -1
- package/src/defs-react.ts +2 -1
- package/src/react.ts +1 -1
package/dist/index.js
CHANGED
package/dist/react.d.ts
CHANGED
|
@@ -96,7 +96,7 @@ export declare interface RadioProps {
|
|
|
96
96
|
status?: typeof statusTypes[number];
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
declare type ReactBaseType = React_2.InputHTMLAttributes<HTMLInputElement>;
|
|
99
|
+
declare type ReactBaseType = Omit<React_2.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'onInput'>;
|
|
100
100
|
|
|
101
101
|
export declare const statusTypes: readonly ["default", "error"];
|
|
102
102
|
|
package/package.json
CHANGED
package/src/defs-react.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// Omit event types to avoid conflicting with PieRadio's type definition
|
|
4
|
+
export type ReactBaseType = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'onInput'>;
|
package/src/react.ts
CHANGED
|
@@ -16,7 +16,7 @@ const PieRadioReact = createComponent({
|
|
|
16
16
|
},
|
|
17
17
|
});
|
|
18
18
|
|
|
19
|
-
type ReactBaseType = React.InputHTMLAttributes<HTMLInputElement>;
|
|
19
|
+
type ReactBaseType = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'onInput'>;
|
|
20
20
|
|
|
21
21
|
type PieRadioEvents = {
|
|
22
22
|
onInput?: (event: InputEvent) => void;
|