@jamsrui/textfield 0.0.7 → 0.0.9
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/styles.d.mts +1 -1
- package/dist/styles.mjs +1 -1
- package/dist/use-textfield.d.mts +2 -0
- package/dist/use-textfield.mjs +1 -1
- package/package.json +5 -5
package/dist/styles.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _jamsrui_utils from '@jamsrui/utils';
|
|
2
2
|
|
|
3
|
-
declare const textFieldVariants: _jamsrui_utils.TVReturnType<{} | {} | {}, undefined, "textfield flex flex-col gap-1", {} | {}, undefined, _jamsrui_utils.TVReturnType<unknown, undefined, "textfield flex flex-col gap-1", unknown, unknown, undefined>>;
|
|
3
|
+
declare const textFieldVariants: _jamsrui_utils.TVReturnType<{} | {} | {}, undefined, "group textfield flex flex-col gap-1", {} | {}, undefined, _jamsrui_utils.TVReturnType<unknown, undefined, "group textfield flex flex-col gap-1", unknown, unknown, undefined>>;
|
|
4
4
|
|
|
5
5
|
export { textFieldVariants };
|
package/dist/styles.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{tv as t}from"@jamsrui/utils";const
|
|
1
|
+
import{tv as t}from"@jamsrui/utils";const o=t({base:"group textfield flex flex-col gap-1"});export{o as textFieldVariants};
|
package/dist/use-textfield.d.mts
CHANGED
package/dist/use-textfield.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{useCallback as
|
|
1
|
+
"use client";import{useCallback as l,useMemo as p}from"react";import{dataAttr as t}from"@jamsrui/utils";import{textFieldVariants as n}from"./styles.mjs";const f=r=>{const{className:d,disabled:e=!1,isInvalid:o,...s}=r,a=n({className:d}),i=l(()=>({className:a,disabled:e,"data-disabled":t(e),"aria-disabled":t(e),"data-invalid":t(o),"aria-invalid":t(o),...s}),[a,e,o,s]);return p(()=>({getRootProps:i}),[i])};export{f as useTextField};
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/textfield",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": ">=19"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@jamsrui/context": "^0.0.
|
|
9
|
-
"@jamsrui/hooks": "^0.0.
|
|
10
|
-
"@jamsrui/core": "^0.0.
|
|
11
|
-
"@jamsrui/utils": "^0.0.
|
|
8
|
+
"@jamsrui/context": "^0.0.9",
|
|
9
|
+
"@jamsrui/hooks": "^0.0.20",
|
|
10
|
+
"@jamsrui/core": "^0.0.16",
|
|
11
|
+
"@jamsrui/utils": "^0.0.20"
|
|
12
12
|
},
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|