@greghowe79/the-lib 1.1.6 → 1.1.8

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.
@@ -41,7 +41,7 @@ const Input = qwik.component$(({ id, type, placeholder, value, error, onValidate
41
41
  }
42
42
  if (value) value.value = elem.value;
43
43
  if (onInput$) {
44
- await onInput$();
44
+ await onInput$(_);
45
45
  }
46
46
  if (onValidate$) {
47
47
  const result = await onValidate$(elem.value);
@@ -39,7 +39,7 @@ const Input = component$(({ id, type, placeholder, value, error, onValidate$, on
39
39
  }
40
40
  if (value) value.value = elem.value;
41
41
  if (onInput$) {
42
- await onInput$();
42
+ await onInput$(_);
43
43
  }
44
44
  if (onValidate$) {
45
45
  const result = await onValidate$(elem.value);
@@ -8,7 +8,7 @@ export interface InputProps {
8
8
  value?: Signal<string>;
9
9
  error?: Signal<string | null>;
10
10
  onValidate$?: QRL<(value: string) => Promise<string>>;
11
- onInput$?: QRL<() => void>;
11
+ onInput$?: QRL<(ev: Event) => void>;
12
12
  bgLight?: boolean;
13
13
  currentFile?: Signal<any>;
14
14
  selectedFile?: Signal<string>;
@@ -5,6 +5,7 @@ export default meta;
5
5
  type Story = StoryObj<InputProps>;
6
6
  export declare const Email: Story;
7
7
  export declare const InputLightBackground: Story;
8
+ export declare const InputNumber: Story;
8
9
  export declare const InputWithIcon: Story;
9
10
  export declare const PhoneInput: Story;
10
11
  export declare const FileUpload: Story;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greghowe79/the-lib",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "Collection of fast components for Qwik",
5
5
  "main": "./lib/index.qwik.mjs",
6
6
  "qwik": "./lib/index.qwik.mjs",