@justeattakeaway/pie-checkbox 0.15.2 → 0.15.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/custom-elements.json +2 -1
- package/dist/index.js +2 -2
- package/dist/react.d.ts +1 -1
- package/package.json +1 -1
- 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
|
@@ -12,7 +12,7 @@ var R = Object.defineProperty, L = (s, c, r, d) => {
|
|
|
12
12
|
};
|
|
13
13
|
class w extends f {
|
|
14
14
|
constructor() {
|
|
15
|
-
super(...arguments), this.v = "0.15.
|
|
15
|
+
super(...arguments), this.v = "0.15.4";
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
L([
|
|
@@ -171,7 +171,7 @@ t([
|
|
|
171
171
|
i({ type: String })
|
|
172
172
|
], e.prototype, "value");
|
|
173
173
|
t([
|
|
174
|
-
i({ type: String })
|
|
174
|
+
i({ type: String, reflect: !0 })
|
|
175
175
|
], e.prototype, "name");
|
|
176
176
|
t([
|
|
177
177
|
i({ type: Boolean, reflect: !0 })
|
package/dist/react.d.ts
CHANGED
|
@@ -117,7 +117,7 @@ declare type PieCheckboxEvents = {
|
|
|
117
117
|
onChange?: (event: CustomEvent) => void;
|
|
118
118
|
};
|
|
119
119
|
|
|
120
|
-
declare type ReactBaseType = React_2.InputHTMLAttributes<HTMLInputElement>;
|
|
120
|
+
declare type ReactBaseType = Omit<React_2.InputHTMLAttributes<HTMLInputElement>, 'onChange'>;
|
|
121
121
|
|
|
122
122
|
export declare const statusTypes: readonly ["default", "success", "error"];
|
|
123
123
|
|
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 PieCheckbox's type definition
|
|
4
|
+
export type ReactBaseType = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'>
|
package/src/index.ts
CHANGED
|
@@ -42,7 +42,7 @@ export class PieCheckbox extends FormControlMixin(RtlMixin(PieElement)) implemen
|
|
|
42
42
|
@property({ type: String })
|
|
43
43
|
public value = defaultProps.value;
|
|
44
44
|
|
|
45
|
-
@property({ type: String })
|
|
45
|
+
@property({ type: String, reflect: true })
|
|
46
46
|
public name: CheckboxProps['name'];
|
|
47
47
|
|
|
48
48
|
@property({ type: Boolean, reflect: true })
|
package/src/react.ts
CHANGED
|
@@ -15,7 +15,7 @@ const PieCheckboxReact = createComponent({
|
|
|
15
15
|
},
|
|
16
16
|
});
|
|
17
17
|
|
|
18
|
-
type ReactBaseType = React.InputHTMLAttributes<HTMLInputElement>
|
|
18
|
+
type ReactBaseType = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'>
|
|
19
19
|
|
|
20
20
|
type PieCheckboxEvents = {
|
|
21
21
|
onChange?: (event: CustomEvent) => void;
|