@justeattakeaway/pie-text-input 0.27.3 → 0.27.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/dist/index.js CHANGED
@@ -12,7 +12,7 @@ var Ht = Object.defineProperty, Dt = (v, l, f, x) => {
12
12
  };
13
13
  class gt extends ft {
14
14
  constructor() {
15
- super(...arguments), this.v = "0.27.3";
15
+ super(...arguments), this.v = "0.27.4";
16
16
  }
17
17
  }
18
18
  Dt([
package/dist/react.d.ts CHANGED
@@ -100,7 +100,7 @@ declare type PieTextInputEvents = {
100
100
  onChange?: (event: CustomEvent) => void;
101
101
  };
102
102
 
103
- declare type ReactBaseType = React_2.InputHTMLAttributes<HTMLInputElement>;
103
+ declare type ReactBaseType = Omit<React_2.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'onInput' | 'size'>;
104
104
 
105
105
  export declare const sizes: readonly ["small", "medium", "large"];
106
106
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@justeattakeaway/pie-text-input",
3
3
  "description": "PIE Design System Input built using Web Components",
4
- "version": "0.27.3",
4
+ "version": "0.27.4",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/justeattakeaway/pie",
package/src/defs-react.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  import type React from 'react';
2
2
 
3
- export type ReactBaseType = React.InputHTMLAttributes<HTMLInputElement>
3
+ // Omit `size` and event types to avoid conflicting with PieTextInput's type definition
4
+ export type ReactBaseType = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'onInput' | 'size'>
package/src/react.ts CHANGED
@@ -16,7 +16,7 @@ const PieTextInputReact = createComponent({
16
16
  },
17
17
  });
18
18
 
19
- type ReactBaseType = React.InputHTMLAttributes<HTMLInputElement>
19
+ type ReactBaseType = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'onInput' | 'size'>
20
20
 
21
21
  type PieTextInputEvents = {
22
22
  onInput?: (event: InputEvent) => void;