@justeattakeaway/pie-radio-group 0.8.2 → 0.8.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.
@@ -100,7 +100,8 @@
100
100
  "text": "RadioGroupProps['name']"
101
101
  },
102
102
  "privacy": "public",
103
- "attribute": "name"
103
+ "attribute": "name",
104
+ "reflects": true
104
105
  },
105
106
  {
106
107
  "kind": "field",
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ var k = Object.defineProperty, F = (h, e, t, i) => {
11
11
  };
12
12
  class _ extends m {
13
13
  constructor() {
14
- super(...arguments), this.v = "0.8.2";
14
+ super(...arguments), this.v = "0.8.4";
15
15
  }
16
16
  }
17
17
  F([
@@ -238,7 +238,7 @@ d([
238
238
  y()
239
239
  ], o.prototype, "_hasLabel");
240
240
  d([
241
- l({ type: String })
241
+ l({ type: String, reflect: !0 })
242
242
  ], o.prototype, "name");
243
243
  d([
244
244
  l({ type: String })
package/dist/react.d.ts CHANGED
@@ -183,7 +183,7 @@ export declare interface RadioGroupProps {
183
183
  assistiveText?: string;
184
184
  }
185
185
 
186
- declare type ReactBaseType = React_2.HTMLAttributes<HTMLElement>;
186
+ declare type ReactBaseType = Omit<React_2.HTMLAttributes<HTMLElement>, 'onChange'>;
187
187
 
188
188
  export declare const statusTypes: readonly ["default", "success", "error"];
189
189
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@justeattakeaway/pie-radio-group",
3
3
  "description": "PIE Design System Radio Group built using Web Components",
4
- "version": "0.8.2",
4
+ "version": "0.8.4",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -36,7 +36,7 @@
36
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
- "@justeattakeaway/pie-radio": "0.10.1",
39
+ "@justeattakeaway/pie-radio": "0.10.3",
40
40
  "cem-plugin-module-file-extensions": "0.0.5"
41
41
  },
42
42
  "dependencies": {
package/src/defs-react.ts CHANGED
@@ -5,4 +5,5 @@ import type React from 'react';
5
5
  * Example: an HTML button maps to `React.ButtonHTMLAttributes<HTMLButtonElement>`
6
6
  * https://github.com/DefinitelyTyped/DefinitelyTyped/blob/0bb210867d16170c4a08d9ce5d132817651a0f80/types/react/index.d.ts#L2829
7
7
  */
8
- export type ReactBaseType = React.HTMLAttributes<HTMLElement>
8
+ // Omit event types to avoid conflicting with PieRadioGroup's type definition
9
+ export type ReactBaseType = Omit<React.HTMLAttributes<HTMLElement>, 'onChange'>
package/src/index.ts CHANGED
@@ -43,7 +43,7 @@ export class PieRadioGroup extends FormControlMixin(RtlMixin(PieElement)) implem
43
43
  @state()
44
44
  private _hasLabel = false;
45
45
 
46
- @property({ type: String })
46
+ @property({ type: String, reflect: true })
47
47
  public name: RadioGroupProps['name'];
48
48
 
49
49
  @property({ type: String })
package/src/react.ts CHANGED
@@ -15,7 +15,7 @@ const PieRadioGroupReact = createComponent({
15
15
  },
16
16
  });
17
17
 
18
- type ReactBaseType = React.HTMLAttributes<HTMLElement>
18
+ type ReactBaseType = Omit<React.HTMLAttributes<HTMLElement>, 'onChange'>
19
19
 
20
20
  type PieRadioGroupEvents = {
21
21
  onChange?: (event: CustomEvent) => void;