@justeattakeaway/pie-textarea 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.
@@ -173,7 +173,8 @@
173
173
  "text": "TextareaProps['name']"
174
174
  },
175
175
  "privacy": "public",
176
- "attribute": "name"
176
+ "attribute": "name",
177
+ "reflects": true
177
178
  },
178
179
  {
179
180
  "kind": "field",
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ var Z = Object.defineProperty, ee = (e, t, r, s) => {
12
12
  };
13
13
  class B extends L {
14
14
  constructor() {
15
- super(...arguments), this.v = "0.15.2";
15
+ super(...arguments), this.v = "0.15.4";
16
16
  }
17
17
  }
18
18
  ee([
@@ -272,7 +272,7 @@ n([
272
272
  u({ type: String })
273
273
  ], o.prototype, "assistiveText");
274
274
  n([
275
- u({ type: String })
275
+ u({ type: String, reflect: !0 })
276
276
  ], o.prototype, "name");
277
277
  n([
278
278
  u({ type: String })
package/dist/react.d.ts CHANGED
@@ -95,7 +95,7 @@ declare type PieTextareaEvents = {
95
95
  onChange?: (event: CustomEvent) => void;
96
96
  };
97
97
 
98
- declare type ReactBaseType = React_2.HTMLAttributes<HTMLTextAreaElement>;
98
+ declare type ReactBaseType = Omit<React_2.HTMLAttributes<HTMLTextAreaElement>, 'onChange' | 'onInput'>;
99
99
 
100
100
  export declare const resizeModes: readonly ["auto", "manual"];
101
101
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@justeattakeaway/pie-textarea",
3
3
  "description": "PIE Design System Textarea built using Web Components",
4
- "version": "0.15.2",
4
+ "version": "0.15.4",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
package/src/defs-react.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  import type React from 'react';
2
2
 
3
- export type ReactBaseType = React.HTMLAttributes<HTMLTextAreaElement>
3
+ // Omit event types to avoid conflicting with PieTextarea's type definition
4
+ export type ReactBaseType = Omit<React.HTMLAttributes<HTMLTextAreaElement>, 'onChange' | 'onInput'>
package/src/index.ts CHANGED
@@ -65,7 +65,7 @@ export class PieTextarea extends FormControlMixin(RtlMixin(PieElement)) implemen
65
65
  @property({ type: String })
66
66
  public assistiveText: TextareaProps['assistiveText'];
67
67
 
68
- @property({ type: String })
68
+ @property({ type: String, reflect: true })
69
69
  public name: TextareaProps['name'];
70
70
 
71
71
  @property({ type: String })
package/src/react.ts CHANGED
@@ -16,7 +16,7 @@ const PieTextareaReact = createComponent({
16
16
  },
17
17
  });
18
18
 
19
- type ReactBaseType = React.HTMLAttributes<HTMLTextAreaElement>
19
+ type ReactBaseType = Omit<React.HTMLAttributes<HTMLTextAreaElement>, 'onChange' | 'onInput'>
20
20
 
21
21
  type PieTextareaEvents = {
22
22
  onInput?: (event: InputEvent) => void;