@jamsrui/textfield 0.0.2 → 0.0.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.
- package/dist/index.mjs +1 -1
- package/dist/textfield-context.mjs +1 -1
- package/dist/textfield-root.mjs +1 -1
- package/dist/textfield.mjs +1 -1
- package/dist/use-textfield.mjs +1 -1
- package/package.json +4 -4
- package/dist/chunk-3AWOGADB.mjs +0 -1
- package/dist/chunk-IRWZN5NQ.mjs +0 -1
- package/dist/chunk-LHBVQ575.mjs +0 -1
- package/dist/chunk-UIWXNOKE.mjs +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{
|
|
1
|
+
"use client";import{TextField as o}from"./textfield.mjs";import{useTextFieldContext as r}from"./textfield-context.mjs";import{useTextField as l}from"./use-textfield.mjs";export{o as TextField,l as useTextField,r as useTextFieldContext};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{
|
|
1
|
+
"use client";import{createContext as e,use as t}from"react";const o=e(null),l=()=>t(o);export{o as TextFieldContext,l as useTextFieldContext};
|
package/dist/textfield-root.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useRenderElement as o}from"@jamsrui/hooks";import{useTextFieldContext as r}from"./textfield-context.mjs";const i=e=>{const t=r();return o("div",{props:[e,t?.getRootProps({})??{}]})};export{i as TextfieldRoot};
|
package/dist/textfield.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{FieldA11yContext as l,useFieldA11y as d}from"@jamsrui/context";import{TextFieldContext as r}from"./textfield-context.mjs";import{TextfieldRoot as n}from"./textfield-root.mjs";import{useTextField as s}from"./use-textfield.mjs";const m=t=>{const o=s(t),{children:i}=t,x=d();return e(r,{value:o,children:e(l,{value:x,children:e(n,{children:i})})})};export{m as TextField};
|
package/dist/use-textfield.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{
|
|
1
|
+
"use client";import{useCallback as s,useMemo as p}from"react";import{cn as l}from"@jamsrui/utils";const x=r=>{const{className:e,...t}=r,o=s(()=>({className:l("flex flex-col gap-1",e),...t}),[e,t]);return p(()=>({getRootProps:o}),[o])};export{x as useTextField};
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/textfield",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": ">=19"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@jamsrui/context": "^0.0.
|
|
9
|
-
"@jamsrui/hooks": "^0.0.
|
|
10
|
-
"@jamsrui/utils": "^0.0.
|
|
8
|
+
"@jamsrui/context": "^0.0.3",
|
|
9
|
+
"@jamsrui/hooks": "^0.0.14",
|
|
10
|
+
"@jamsrui/utils": "^0.0.14"
|
|
11
11
|
},
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
package/dist/chunk-3AWOGADB.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{useCallback as s,useMemo as p}from"react";import{cn as l}from"@jamsrui/utils";var x=r=>{let{className:e,...t}=r,o=s(()=>({className:l("flex flex-col gap-1",e),...t}),[e,t]);return p(()=>({getRootProps:o}),[o])};export{x as a};
|
package/dist/chunk-IRWZN5NQ.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as i}from"./chunk-LHBVQ575.mjs";import{a as o}from"./chunk-UIWXNOKE.mjs";import{a as x}from"./chunk-3AWOGADB.mjs";import{FieldA11yContext as n,useFieldA11y as s}from"@jamsrui/context";import{jsx as e}from"react/jsx-runtime";var m=t=>{let l=x(t),{children:d}=t,r=s();return e(o,{value:l,children:e(n,{value:r,children:e(i,{children:d})})})};export{m as a};
|
package/dist/chunk-LHBVQ575.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as e}from"./chunk-UIWXNOKE.mjs";import{useRenderElement as r}from"@jamsrui/hooks";var i=t=>{let o=e();return r("div",{props:[t,o?.getRootProps({})??{}]})};export{i as a};
|
package/dist/chunk-UIWXNOKE.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{createContext as e,use as t}from"react";var o=e(null),r=()=>t(o);export{o as a,r as b};
|