@greghowe79/the-lib 1.0.7 → 1.0.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.
@@ -39,6 +39,12 @@ const Input = qwik.component$(({ id, type, placeholder, value, error, onValidate
39
39
  return;
40
40
  }
41
41
  }
42
+ if (type === "radio") {
43
+ if (value) {
44
+ elem.value = value.value;
45
+ }
46
+ return;
47
+ }
42
48
  if (value) value.value = elem.value;
43
49
  if (onInput$) {
44
50
  await onInput$();
@@ -119,7 +125,8 @@ const Input = qwik.component$(({ id, type, placeholder, value, error, onValidate
119
125
  name,
120
126
  checked: checked?.value,
121
127
  required,
122
- "bind:value": value
128
+ "bind:value": value,
129
+ onInput$: inputHandler
123
130
  }) : /* @__PURE__ */ jsxRuntime.jsx("label", {
124
131
  class: `input-label ${bgLight ? "bg_light" : ""}`,
125
132
  children: /* @__PURE__ */ jsxRuntime.jsxs("div", {
@@ -37,6 +37,12 @@ const Input = component$(({ id, type, placeholder, value, error, onValidate$, on
37
37
  return;
38
38
  }
39
39
  }
40
+ if (type === "radio") {
41
+ if (value) {
42
+ elem.value = value.value;
43
+ }
44
+ return;
45
+ }
40
46
  if (value) value.value = elem.value;
41
47
  if (onInput$) {
42
48
  await onInput$();
@@ -117,7 +123,8 @@ const Input = component$(({ id, type, placeholder, value, error, onValidate$, on
117
123
  name,
118
124
  checked: checked?.value,
119
125
  required,
120
- "bind:value": value
126
+ "bind:value": value,
127
+ onInput$: inputHandler
121
128
  }) : /* @__PURE__ */ jsx("label", {
122
129
  class: `input-label ${bgLight ? "bg_light" : ""}`,
123
130
  children: /* @__PURE__ */ jsxs("div", {
@@ -7,4 +7,5 @@ export declare const Email: Story;
7
7
  export declare const InputLightBackground: Story;
8
8
  export declare const InputWithIcon: Story;
9
9
  export declare const PhoneInput: Story;
10
+ export declare const RadioInput: 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.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Collection of fast components for Qwik",
5
5
  "main": "./lib/index.qwik.mjs",
6
6
  "qwik": "./lib/index.qwik.mjs",