@justeattakeaway/pie-radio 0.10.1 → 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/custom-elements.json +2 -1
- package/dist/index.js +2 -2
- package/dist/react.d.ts +1 -1
- package/package.json +2 -2
- package/src/defs-react.ts +2 -1
- package/src/index.ts +1 -1
- package/src/react.ts +1 -1
package/custom-elements.json
CHANGED
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ var S = Object.defineProperty, A = (l, r, a, n) => {
|
|
|
11
11
|
};
|
|
12
12
|
class u extends f {
|
|
13
13
|
constructor() {
|
|
14
|
-
super(...arguments), this.v = "0.10.
|
|
14
|
+
super(...arguments), this.v = "0.10.3";
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
A([
|
|
@@ -129,7 +129,7 @@ i([
|
|
|
129
129
|
c({ type: Boolean, reflect: !0 })
|
|
130
130
|
], e.prototype, "disabled");
|
|
131
131
|
i([
|
|
132
|
-
c({ type: String })
|
|
132
|
+
c({ type: String, reflect: !0 })
|
|
133
133
|
], e.prototype, "name");
|
|
134
134
|
i([
|
|
135
135
|
c({ type: Boolean, reflect: !0 })
|
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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justeattakeaway/pie-radio",
|
|
3
3
|
"description": "PIE Design System Radio built using Web Components",
|
|
4
|
-
"version": "0.10.
|
|
4
|
+
"version": "0.10.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"license": "Apache-2.0",
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@custom-elements-manifest/analyzer": "0.9.0",
|
|
36
|
-
"@justeattakeaway/pie-components-config": "0.
|
|
36
|
+
"@justeattakeaway/pie-components-config": "0.20.0",
|
|
37
37
|
"@justeattakeaway/pie-css": "0.16.0",
|
|
38
38
|
"@justeattakeaway/pie-monorepo-utils": "0.5.0",
|
|
39
39
|
"cem-plugin-module-file-extensions": "0.0.5"
|
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/index.ts
CHANGED
|
@@ -40,7 +40,7 @@ export class PieRadio extends FormControlMixin(RtlMixin(PieElement)) implements
|
|
|
40
40
|
@property({ type: Boolean, reflect: true })
|
|
41
41
|
public disabled = defaultProps.disabled;
|
|
42
42
|
|
|
43
|
-
@property({ type: String })
|
|
43
|
+
@property({ type: String, reflect: true })
|
|
44
44
|
public name: RadioProps['name'];
|
|
45
45
|
|
|
46
46
|
@property({ type: Boolean, reflect: true })
|
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;
|