@jamsrui/textfield 0.0.7 → 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.
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 l=t({base:"textfield flex flex-col gap-1"});export{l as textFieldVariants};
1
+ import{tv as t}from"@jamsrui/utils";const o=t({base:"group textfield flex flex-col gap-1"});export{o as textFieldVariants};
@@ -7,6 +7,8 @@ declare const useTextField: (props: useTextField.Props) => {
7
7
  };
8
8
  declare namespace useTextField {
9
9
  interface Props extends TextfieldRoot.Props {
10
+ disabled?: boolean;
11
+ isInvalid?: boolean;
10
12
  }
11
13
  }
12
14
 
@@ -1 +1 @@
1
- "use client";import{useCallback as p,useMemo as i}from"react";import{textFieldVariants as l}from"./styles.mjs";const x=r=>{const{className:s,...e}=r,t=l({className:s}),o=p(()=>({className:t,...e}),[t,e]);return i(()=>({getRootProps:o}),[o])};export{x as useTextField};
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.7",
3
+ "version": "0.0.8",
4
4
  "peerDependencies": {
5
5
  "react": ">=19"
6
6
  },
7
7
  "dependencies": {
8
- "@jamsrui/context": "^0.0.7",
9
- "@jamsrui/hooks": "^0.0.18",
10
- "@jamsrui/core": "^0.0.14",
11
- "@jamsrui/utils": "^0.0.18"
8
+ "@jamsrui/context": "^0.0.8",
9
+ "@jamsrui/core": "^0.0.15",
10
+ "@jamsrui/hooks": "^0.0.19",
11
+ "@jamsrui/utils": "^0.0.19"
12
12
  },
13
13
  "exports": {
14
14
  ".": {