@jamsrui/field-error 0.0.5 → 0.0.6

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 as r}from"./chunk-O2L3JF4N.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
+ 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};
@@ -0,0 +1 @@
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};
@@ -1 +1 @@
1
- import{a}from"./chunk-6QKNY45B.mjs";import"./chunk-O2L3JF4N.mjs";export{a as FieldError};
1
+ import{a}from"./chunk-C4SPV3CS.mjs";import"./chunk-URAU54OI.mjs";export{a as FieldError};
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- "use client";import{a as r}from"./chunk-6QKNY45B.mjs";import"./chunk-O2L3JF4N.mjs";export{r as FieldError};
1
+ "use client";import{a as r}from"./chunk-C4SPV3CS.mjs";import"./chunk-URAU54OI.mjs";export{r as FieldError};
@@ -1 +1 @@
1
- import{a}from"./chunk-O2L3JF4N.mjs";export{a as useFieldError};
1
+ import{a}from"./chunk-URAU54OI.mjs";export{a as useFieldError};
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@jamsrui/field-error",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "peerDependencies": {
5
5
  "react": ">=19"
6
6
  },
7
7
  "dependencies": {
8
- "@jamsrui/hooks": "^0.0.12",
9
- "@jamsrui/utils": "^0.0.12"
8
+ "@jamsrui/hooks": "^0.0.13",
9
+ "@jamsrui/context": "^0.0.2",
10
+ "@jamsrui/utils": "^0.0.13"
10
11
  },
11
12
  "exports": {
12
13
  ".": {
@@ -1 +0,0 @@
1
- import{cn as t}from"@jamsrui/utils";var p=r=>{let{className:e,...s}=r;return{...s,className:t("field-error text-xs text-danger",e)}};export{p as a};