@pathscale/ui 1.1.69 → 1.1.70
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.
- package/dist/hooks/form/useFieldNew.js +2 -2
- package/dist/purge-manifest.json +2441 -2441
- package/dist/styles/icons/generated-icons.css +1 -63
- package/package.json +1 -1
|
@@ -4,8 +4,8 @@ import * as __WEBPACK_EXTERNAL_MODULE__getFirstFieldError_js_285cebb2__ from "./
|
|
|
4
4
|
const useField = (name)=>{
|
|
5
5
|
const form = (0, __WEBPACK_EXTERNAL_MODULE__FormContext_js_47b39222__.useFormContext)();
|
|
6
6
|
const tsForm = form._tsForm;
|
|
7
|
-
const value =
|
|
8
|
-
const meta =
|
|
7
|
+
const value = tsForm.useStore((state)=>state.values[name]);
|
|
8
|
+
const meta = tsForm.useStore((state)=>state.fieldMeta[name]);
|
|
9
9
|
const touched = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>Boolean(meta()?.isTouched));
|
|
10
10
|
const error = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
11
11
|
const m = meta();
|