@greghowe79/the-lib 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.
@@ -48,12 +48,6 @@ const Input = qwik.component$(({ id, type, placeholder, value, error, onValidate
48
48
  if (!error) internalError.value = result;
49
49
  }
50
50
  });
51
- const beforeInputHandler = qwik.$((event) => {
52
- const data = event.data;
53
- if (data && /[^0-9]/.test(data)) {
54
- event.preventDefault();
55
- }
56
- });
57
51
  return /* @__PURE__ */ jsxRuntime.jsxs("div", {
58
52
  class: "input-container",
59
53
  children: [
@@ -114,7 +108,7 @@ const Input = qwik.component$(({ id, type, placeholder, value, error, onValidate
114
108
  "bind:value": value,
115
109
  onInput$: inputHandler,
116
110
  onBlur$: inputHandler,
117
- onBeforeInput$: beforeInputHandler
111
+ maxLength: 14
118
112
  })
119
113
  ]
120
114
  })
@@ -46,12 +46,6 @@ const Input = component$(({ id, type, placeholder, value, error, onValidate$, on
46
46
  if (!error) internalError.value = result;
47
47
  }
48
48
  });
49
- const beforeInputHandler = $((event) => {
50
- const data = event.data;
51
- if (data && /[^0-9]/.test(data)) {
52
- event.preventDefault();
53
- }
54
- });
55
49
  return /* @__PURE__ */ jsxs("div", {
56
50
  class: "input-container",
57
51
  children: [
@@ -112,7 +106,7 @@ const Input = component$(({ id, type, placeholder, value, error, onValidate$, on
112
106
  "bind:value": value,
113
107
  onInput$: inputHandler,
114
108
  onBlur$: inputHandler,
115
- onBeforeInput$: beforeInputHandler
109
+ maxLength: 14
116
110
  })
117
111
  ]
118
112
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greghowe79/the-lib",
3
- "version": "0.8.2",
3
+ "version": "0.8.4",
4
4
  "description": "Collection of fast components for Qwik",
5
5
  "main": "./lib/index.qwik.mjs",
6
6
  "qwik": "./lib/index.qwik.mjs",