@jamsrui/field-error 0.0.6 → 0.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.
@@ -1 +1 @@
1
- import{a}from"./chunk-C4SPV3CS.mjs";import"./chunk-URAU54OI.mjs";export{a as FieldError};
1
+ import{useRenderElement as o}from"@jamsrui/hooks";import{useFieldError as s}from"./use-field-error.mjs";const d=r=>{const e=s(r);return o("span",{props:[e]})};export{d as FieldError};
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- "use client";import{a as r}from"./chunk-C4SPV3CS.mjs";import"./chunk-URAU54OI.mjs";export{r as FieldError};
1
+ "use client";import{FieldError as o}from"./field-error.mjs";export{o as FieldError};
@@ -1 +1 @@
1
- import{a}from"./chunk-URAU54OI.mjs";export{a as useFieldError};
1
+ import{useFieldA11yContext as p}from"@jamsrui/context";import{useMergeRefs as i}from"@jamsrui/hooks";import{cn as n}from"@jamsrui/utils";const a=r=>{const{className:s,ref:o,...t}=r,e=p();return{ref:i([o,e?.setFieldErrorRef]),className:n("field-error text-xs text-danger",s),...e?.getFieldErrorProps(),...t}};export{a as useFieldError};
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@jamsrui/field-error",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "peerDependencies": {
5
5
  "react": ">=19"
6
6
  },
7
7
  "dependencies": {
8
- "@jamsrui/hooks": "^0.0.13",
9
- "@jamsrui/context": "^0.0.2",
10
- "@jamsrui/utils": "^0.0.13"
8
+ "@jamsrui/utils": "^0.0.15",
9
+ "@jamsrui/hooks": "^0.0.15",
10
+ "@jamsrui/context": "^0.0.4"
11
11
  },
12
12
  "exports": {
13
13
  ".": {
@@ -1 +0,0 @@
1
- import{a as r}from"./chunk-URAU54OI.mjs";import{useRenderElement as s}from"@jamsrui/hooks";var d=e=>{let o=r(e);return s("span",{props:[o]})};export{d as a};
@@ -1 +0,0 @@
1
- import{useFieldA11yContext as p}from"@jamsrui/context";import{useMergeRefs as i}from"@jamsrui/hooks";import{cn as n}from"@jamsrui/utils";var a=r=>{let{className:s,ref:o,...t}=r,e=p();return{ref:i([o,e?.setFieldErrorRef]),className:n("field-error text-xs text-danger",s),...e?.getFieldErrorProps(),...t}};export{a};