@nr1e/qwik-ui 2.0.4 → 2.0.5

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.
@@ -136,18 +136,18 @@ const TextField = qwik.component$((props) => {
136
136
  const schema = await props.schema$();
137
137
  const result = index.safeParse(schema, value.value);
138
138
  if (result.success) {
139
- if (props.valid$) {
140
- props.valid$.value = true;
139
+ if (props.valid) {
140
+ props.valid.value = true;
141
141
  }
142
142
  error.value = void 0;
143
143
  } else if (result.issues.length > 0) {
144
- if (props.valid$) {
145
- props.valid$.value = false;
144
+ if (props.valid) {
145
+ props.valid.value = false;
146
146
  }
147
147
  error.value = result.issues[0].message;
148
148
  } else {
149
- if (props.valid$) {
150
- props.valid$.value = false;
149
+ if (props.valid) {
150
+ props.valid.value = false;
151
151
  }
152
152
  error.value = "Invalid value";
153
153
  }
@@ -134,18 +134,18 @@ const TextField = component$((props) => {
134
134
  const schema = await props.schema$();
135
135
  const result = safeParse(schema, value.value);
136
136
  if (result.success) {
137
- if (props.valid$) {
138
- props.valid$.value = true;
137
+ if (props.valid) {
138
+ props.valid.value = true;
139
139
  }
140
140
  error.value = void 0;
141
141
  } else if (result.issues.length > 0) {
142
- if (props.valid$) {
143
- props.valid$.value = false;
142
+ if (props.valid) {
143
+ props.valid.value = false;
144
144
  }
145
145
  error.value = result.issues[0].message;
146
146
  } else {
147
- if (props.valid$) {
148
- props.valid$.value = false;
147
+ if (props.valid) {
148
+ props.valid.value = false;
149
149
  }
150
150
  error.value = "Invalid value";
151
151
  }
@@ -15,7 +15,7 @@ export interface TextFieldProps {
15
15
  onEvent$?: QRL<(type: 'blur' | 'input', event: FocusEvent | InputEvent, value: string, error: Signal<string | undefined>) => void>;
16
16
  validate$?: QRL<(value: string) => string | undefined>;
17
17
  schema$?: QRL<() => v.BaseSchema<any, any, any>>;
18
- valid$?: Signal<undefined | boolean>;
18
+ valid?: Signal<undefined | boolean>;
19
19
  /**
20
20
  * Increment the value of this signal to reset the input to its original value.
21
21
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nr1e/qwik-ui",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "NR1E Qwik UI Library",
5
5
  "author": "NR1E, Inc.",
6
6
  "publishConfig": {