@greghowe79/the-lib 0.9.1 → 0.9.3

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.
@@ -8,7 +8,9 @@ const Select = qwik.component$(({ id, label, options, selected }) => {
8
8
  qwik.useStylesScoped$(styles);
9
9
  const handleChange$ = qwik.$((event) => {
10
10
  const target = event.target;
11
- selected.value = target.value;
11
+ const rawValue = target.value;
12
+ const numericPrefix = "+" + rawValue.replace(/[^\d]/g, "");
13
+ selected.value = numericPrefix;
12
14
  });
13
15
  return /* @__PURE__ */ jsxRuntime.jsx("div", {
14
16
  class: "select-container",
@@ -6,7 +6,9 @@ const Select = component$(({ id, label, options, selected }) => {
6
6
  useStylesScoped$(styles);
7
7
  const handleChange$ = $((event) => {
8
8
  const target = event.target;
9
- selected.value = target.value;
9
+ const rawValue = target.value;
10
+ const numericPrefix = "+" + rawValue.replace(/[^\d]/g, "");
11
+ selected.value = numericPrefix;
10
12
  });
11
13
  return /* @__PURE__ */ jsx("div", {
12
14
  class: "select-container",
@@ -13,7 +13,7 @@ export interface InputProps {
13
13
  currentFile?: Signal<any>;
14
14
  selectedFile?: Signal<string>;
15
15
  icon?: JSXOutput | Component<unknown>;
16
- prefix?: Signal<string>;
16
+ prefix?: string;
17
17
  }
18
18
  export declare const displayLocalImage: QRL<(file: File, imageUrl?: Signal<string>) => void>;
19
19
  export declare const uploadImage: QRL<(_event: Event, input: HTMLInputElement, currentFile?: Signal<any>, selectedFile?: Signal<string>, imageUrl?: Signal<string>) => Promise<void>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greghowe79/the-lib",
3
- "version": "0.9.1",
3
+ "version": "0.9.3",
4
4
  "description": "Collection of fast components for Qwik",
5
5
  "main": "./lib/index.qwik.mjs",
6
6
  "qwik": "./lib/index.qwik.mjs",