@jamsrui/input 0.0.11 → 0.0.13

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.
@@ -0,0 +1 @@
1
+ import{b as t}from"./chunk-D4PQ7L52.mjs";import{Description as s}from"@jamsrui/description";import{jsx as i}from"react/jsx-runtime";var m=o=>{let{children:p,...r}=o,{getDescriptionProps:e}=t();return i(s,{...e(r),children:p})};export{m as a};
@@ -0,0 +1 @@
1
+ import{a as N}from"./chunk-I23VLZM2.mjs";import{useCallback as a,useId as C,useMemo as _}from"react";import{useControlledState as tt,useFocus as et,useFocusVisible as nt,useHover as ot,useMergeRefs as at}from"@jamsrui/hooks";import{cn as r,dataAttr as c,dataAttrDev as s,mapPropsVariants as st,mergeProps as p}from"@jamsrui/utils";var mt=k=>{let[K,g]=st(k,N.variantKeys),{startContent:f,endContent:b,classNames:n,label:v,isClearable:rt,isDisabled:l=!1,isReadonly:M,description:y,errorMessage:R,value:q,defaultValue:z,onValueChange:J,onClearInput:E,ref:Q,slotProps:e,...W}=K,[B="",i]=tt({defaultProp:z,onChange:J,prop:q}),o=N(g),u=g.isInvalid,m=C(),d=C(),P=C(),I=C(),{isFocused:G,ref:X}=et({isDisabled:l}),{isFocusVisible:V,ref:Y}=nt({isDisabled:l}),{isHovered:h,ref:Z}=ot({isDisabled:l}),L=at([Q,X,Y,Z]),pt=a(t=>{E?.(t),i("")},[E,i]),w=a(t=>{i(t.target.value)},[i]),S=a(t=>({...p(e?.root,t),"data-component":s("input"),"data-slot":s("root"),"data-focused":c(G),"data-focus-visible":c(V),"data-hovered":c(h),"data-disabled":c(l),"aria-disabled":c(l),"data-invalid":c(u),className:o.root({className:r(e?.root?.className,n?.root,t.className)})}),[n?.root,l,V,G,h,u,e?.root,o]),D=a(t=>({id:P,disabled:l,readOnly:M,"aria-labelledby":m,"aria-describedby":`${d} ${I}`,...W,...t,ref:L,"data-slot":s("input"),className:o.input({className:r(n?.input,t.className)}),value:B,onChange:w}),[P,l,M,m,d,I,W,L,o,n?.input,B,w]),H=a(t=>({...p(e?.wrapper,t),"data-slot":s("inputWrapper"),className:o.wrapper({className:r(e?.wrapper?.className,n?.wrapper,t.className)})}),[n?.wrapper,e?.wrapper,o]),T=a(t=>({...p(e?.content,t),"data-slot":s("content"),className:o.content({className:r(e?.content?.className,n?.content,t.className)})}),[n?.content,e?.content,o]),F=a(t=>({...p(e?.contentWrapper,t),"data-slot":s("contentWrapper"),className:o.contentWrapper({className:r(e?.contentWrapper?.className,n?.contentWrapper,t.className)})}),[n?.contentWrapper,e?.contentWrapper,o]),x=a(t=>({...p(e?.startContent,t),"data-slot":s("startContent"),className:o.startContent({className:r(e?.startContent?.className,n?.startContent,t.className)})}),[n?.startContent,e?.startContent,o]),$=a(t=>({...p(e?.endContent,t),"data-slot":s("endContent"),className:o.endContent({className:r(e?.endContent?.className,n?.endContent,t.className)})}),[n?.endContent,e?.endContent,o]),A=a(t=>({id:d,...p(e?.description,t),"data-slot":s("description"),className:o.description({className:r(e?.description?.className,n?.description,t.className)})}),[n?.description,d,e?.description,o]),O=a(t=>({id:I,...p(e?.errorMessage,t),"data-slot":s("errorMessage"),className:o.errorMessage({className:r(e?.errorMessage?.className,n?.errorMessage,t.className)})}),[n?.errorMessage,I,e?.errorMessage,o]),U=a(t=>({...p(e?.clearButton,t),"data-slot":s("clearButton"),className:o.clearButton({className:r(e?.clearButton?.className,n?.clearButton,t.className)})}),[n?.clearButton,e?.clearButton,o]),j=a(t=>({htmlFor:P,id:m,...p(e?.label,t),"data-slot":s("label"),className:o.label({className:r(e?.label?.className,n?.label,t.className)})}),[n?.label,P,m,e?.label,o]);return _(()=>({getRootProps:S,getClearButtonProps:U,getStartContentProps:x,getEndContentProps:$,getInputProps:D,getLabelProps:j,getDescriptionProps:A,getErrorMessageProps:O,label:v,description:y,errorMessage:R,isInvalid:u,getWrapperProps:H,getContentProps:T,getContentWrapperProps:F,startContent:f,endContent:b}),[S,U,x,$,D,j,A,O,v,y,R,u,H,T,F,f,b])};export{mt as a};
@@ -0,0 +1 @@
1
+ import{b as e}from"./chunk-D4PQ7L52.mjs";import{Label as s}from"@jamsrui/label";import{jsx as n}from"react/jsx-runtime";var b=t=>{let{children:o,...r}=t,{getLabelProps:p}=e();return n(s,{...p(r),children:o})};export{b as a};
@@ -0,0 +1 @@
1
+ import{b as r}from"./chunk-D4PQ7L52.mjs";import{FieldError as p}from"@jamsrui/field-error";import{jsx as n}from"react/jsx-runtime";var m=o=>{let{children:e,...s}=o,{getErrorMessageProps:t}=r();return n(p,{...t(s),children:e})};export{m as a};
@@ -0,0 +1 @@
1
+ import{radiusVariant as t,tv as r}from"@jamsrui/utils";var o=r({slots:{root:"input__root flex flex-col gap-1.5 group",label:"input__label",description:"input__description",errorMessage:"input__error_message",input:["input__control grow bg-transparent font-normal","placeholder:text-foreground-secondary read-only:cursor-not-allowed focus:outline-none disabled:cursor-not-allowed disabled:opacity-50"],wrapper:"input__wrapper",content:"input__content grow flex",contentWrapper:["input__content_wrapper border flex items-center border-divider","uig-disabled:cursor-not-allowed uig-disabled:opacity-60","not-uig-invalid:uig-focus:border-primary uig-focus:ring-primary","not-uig-invalid:uig-hover:border-divider-dark"],startContent:"input__start_content pl-2 text-sm text-foreground-secondary",endContent:"input__end_content pr-2 text-sm text-foreground-secondary",clearButton:"input__clear_button"},variants:{fullWidth:{true:{root:"w-full"}},size:{sm:{root:"input--sm",input:"px-3 py-1.5 text-sm placeholder:text-sm"},md:{root:"input--md",input:"px-3 py-2 text-sm placeholder:text-sm"},lg:{root:"input--lg",input:"px-3 py-2 text-base placeholder:text-base"}},isInvalid:{true:{root:"input--invalid",contentWrapper:"border-danger",label:"text-danger"}},radius:t("contentWrapper")},defaultVariants:{fullWidth:!1,isInvalid:!1,radius:"md",size:"md"}});export{o as a};
@@ -0,0 +1 @@
1
+ import{a as P}from"./chunk-3T5HYT35.mjs";import{a as c}from"./chunk-DXYJK6Z2.mjs";import{a as C}from"./chunk-U25JGUU3.mjs";import{a as g}from"./chunk-744J4KCN.mjs";import{a as l}from"./chunk-IJYNHO5F.mjs";import{a as x}from"./chunk-LCBLRGH5.mjs";import{a as d}from"./chunk-QA6KD5QS.mjs";import{b as u}from"./chunk-ZNAJDFMD.mjs";import{a as s}from"./chunk-M46PIXLU.mjs";import{a as i}from"./chunk-VU73JURM.mjs";import{a as f}from"./chunk-3JAB5TM5.mjs";import{a}from"./chunk-JZ5MUM6R.mjs";import{a as I}from"./chunk-D4PQ7L52.mjs";import{mergeConfigProps as E}from"@jamsrui/utils";import{jsx as t,jsxs as o}from"react/jsx-runtime";var B=W=>{let r=u(),b=E(r,r,W),p=P(b),{label:n,description:e,errorMessage:m}=p;return t(I,{value:p,children:o(l,{children:[o(d,{children:[!!n&&t(g,{children:n}),o(s,{children:[t(x,{}),t(i,{children:t(C,{})}),t(a,{})]})]}),!!e&&t(f,{children:e}),!!m&&t(c,{children:m})]})})};export{B as a};
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { I as Input } from './input-Ulbg7ZdJ.mjs';
1
+ export { I as Input } from './input-B2ew93BT.mjs';
2
2
  export { InputConfig, useInputConfig } from './input-config.mjs';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- "use client";import{a as t}from"./chunk-5HFZKP5Z.mjs";import"./chunk-AYL2YJ7L.mjs";import"./chunk-EAUBBKY5.mjs";import"./chunk-U25JGUU3.mjs";import"./chunk-CSQOTAPR.mjs";import"./chunk-IJYNHO5F.mjs";import"./chunk-LCBLRGH5.mjs";import"./chunk-QA6KD5QS.mjs";import"./chunk-4LKT64RP.mjs";import{a as n,b as o}from"./chunk-ZNAJDFMD.mjs";import"./chunk-M46PIXLU.mjs";import"./chunk-VU73JURM.mjs";import"./chunk-3Z56DQ4V.mjs";import"./chunk-JZ5MUM6R.mjs";import"./chunk-D4PQ7L52.mjs";export{t as Input,n as InputConfig,o as useInputConfig};
1
+ "use client";import{a as t}from"./chunk-XHCBRMBJ.mjs";import"./chunk-3T5HYT35.mjs";import"./chunk-DXYJK6Z2.mjs";import"./chunk-U25JGUU3.mjs";import"./chunk-744J4KCN.mjs";import"./chunk-IJYNHO5F.mjs";import"./chunk-LCBLRGH5.mjs";import"./chunk-QA6KD5QS.mjs";import"./chunk-I23VLZM2.mjs";import{a as n,b as o}from"./chunk-ZNAJDFMD.mjs";import"./chunk-M46PIXLU.mjs";import"./chunk-VU73JURM.mjs";import"./chunk-3JAB5TM5.mjs";import"./chunk-JZ5MUM6R.mjs";import"./chunk-D4PQ7L52.mjs";export{t as Input,n as InputConfig,o as useInputConfig};
@@ -24,7 +24,7 @@ declare const useInput: (props: useInput.Props) => {
24
24
  getDescriptionProps: PropGetter<InputDescription.Props>;
25
25
  getErrorMessageProps: PropGetter<InputErrorMessage.Props>;
26
26
  label: string | undefined;
27
- helperText: react.ReactNode;
27
+ description: react.ReactNode;
28
28
  errorMessage: react.ReactNode;
29
29
  isInvalid: boolean | undefined;
30
30
  getWrapperProps: PropGetter<InputWrapper.Props>;
@@ -1,4 +1,4 @@
1
- import { I as Input } from './input-Ulbg7ZdJ.mjs';
1
+ import { I as Input } from './input-B2ew93BT.mjs';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import { GlobalConfigProps } from '@jamsrui/core';
4
4
  import 'react';
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { u as useInput } from './input-Ulbg7ZdJ.mjs';
2
+ import { u as useInput } from './input-B2ew93BT.mjs';
3
3
  import 'react/jsx-runtime';
4
4
  import '@jamsrui/utils';
5
5
  import './input-clear-button.mjs';
@@ -1,9 +1,9 @@
1
- import * as react from 'react';
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { UIProps } from '@jamsrui/utils';
3
3
 
4
- declare const InputDescription: (props: InputDescription.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | null;
4
+ declare const InputDescription: (props: InputDescription.Props) => react_jsx_runtime.JSX.Element;
5
5
  declare namespace InputDescription {
6
- interface Props extends UIProps<"span"> {
6
+ interface Props extends UIProps<"p"> {
7
7
  }
8
8
  }
9
9
 
@@ -1 +1 @@
1
- import{a}from"./chunk-3Z56DQ4V.mjs";import"./chunk-D4PQ7L52.mjs";export{a as InputDescription};
1
+ import{a}from"./chunk-3JAB5TM5.mjs";import"./chunk-D4PQ7L52.mjs";export{a as InputDescription};
@@ -1,7 +1,7 @@
1
- import * as react from 'react';
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { UIProps } from '@jamsrui/utils';
3
3
 
4
- declare const InputErrorMessage: (props: InputErrorMessage.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | null;
4
+ declare const InputErrorMessage: (props: InputErrorMessage.Props) => react_jsx_runtime.JSX.Element;
5
5
  declare namespace InputErrorMessage {
6
6
  interface Props extends UIProps<"span"> {
7
7
  }
@@ -1 +1 @@
1
- import{a}from"./chunk-EAUBBKY5.mjs";import"./chunk-D4PQ7L52.mjs";export{a as InputErrorMessage};
1
+ import{a}from"./chunk-DXYJK6Z2.mjs";import"./chunk-D4PQ7L52.mjs";export{a as InputErrorMessage};
@@ -1,7 +1,7 @@
1
- import * as react from 'react';
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { UIProps } from '@jamsrui/utils';
3
3
 
4
- declare const InputLabel: (props: InputLabel.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | null;
4
+ declare const InputLabel: (props: InputLabel.Props) => react_jsx_runtime.JSX.Element;
5
5
  declare namespace InputLabel {
6
6
  interface Props extends UIProps<"label"> {
7
7
  }
@@ -1 +1 @@
1
- import{a}from"./chunk-CSQOTAPR.mjs";import"./chunk-D4PQ7L52.mjs";export{a as InputLabel};
1
+ import{a}from"./chunk-744J4KCN.mjs";import"./chunk-D4PQ7L52.mjs";export{a as InputLabel};
package/dist/input.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import 'react/jsx-runtime';
2
- export { I as Input } from './input-Ulbg7ZdJ.mjs';
2
+ export { I as Input } from './input-B2ew93BT.mjs';
3
3
  import 'react';
4
4
  import '@jamsrui/utils';
5
5
  import './input-clear-button.mjs';
package/dist/input.mjs CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-5HFZKP5Z.mjs";import"./chunk-AYL2YJ7L.mjs";import"./chunk-EAUBBKY5.mjs";import"./chunk-U25JGUU3.mjs";import"./chunk-CSQOTAPR.mjs";import"./chunk-IJYNHO5F.mjs";import"./chunk-LCBLRGH5.mjs";import"./chunk-QA6KD5QS.mjs";import"./chunk-4LKT64RP.mjs";import"./chunk-ZNAJDFMD.mjs";import"./chunk-M46PIXLU.mjs";import"./chunk-VU73JURM.mjs";import"./chunk-3Z56DQ4V.mjs";import"./chunk-JZ5MUM6R.mjs";import"./chunk-D4PQ7L52.mjs";export{a as Input};
1
+ import{a}from"./chunk-XHCBRMBJ.mjs";import"./chunk-3T5HYT35.mjs";import"./chunk-DXYJK6Z2.mjs";import"./chunk-U25JGUU3.mjs";import"./chunk-744J4KCN.mjs";import"./chunk-IJYNHO5F.mjs";import"./chunk-LCBLRGH5.mjs";import"./chunk-QA6KD5QS.mjs";import"./chunk-I23VLZM2.mjs";import"./chunk-ZNAJDFMD.mjs";import"./chunk-M46PIXLU.mjs";import"./chunk-VU73JURM.mjs";import"./chunk-3JAB5TM5.mjs";import"./chunk-JZ5MUM6R.mjs";import"./chunk-D4PQ7L52.mjs";export{a as Input};
package/dist/styles.d.mts CHANGED
@@ -9,17 +9,21 @@ declare const inputVariants: _jamsrui_utils.TVReturnType<{
9
9
  };
10
10
  size: {
11
11
  sm: {
12
+ root: string;
12
13
  input: string;
13
14
  };
14
15
  md: {
16
+ root: string;
15
17
  input: string;
16
18
  };
17
19
  lg: {
20
+ root: string;
18
21
  input: string;
19
22
  };
20
23
  };
21
24
  isInvalid: {
22
25
  true: {
26
+ root: string;
23
27
  contentWrapper: string;
24
28
  label: string;
25
29
  };
@@ -54,17 +58,21 @@ declare const inputVariants: _jamsrui_utils.TVReturnType<{
54
58
  };
55
59
  size: {
56
60
  sm: {
61
+ root: string;
57
62
  input: string;
58
63
  };
59
64
  md: {
65
+ root: string;
60
66
  input: string;
61
67
  };
62
68
  lg: {
69
+ root: string;
63
70
  input: string;
64
71
  };
65
72
  };
66
73
  isInvalid: {
67
74
  true: {
75
+ root: string;
68
76
  contentWrapper: string;
69
77
  label: string;
70
78
  };
@@ -99,17 +107,21 @@ declare const inputVariants: _jamsrui_utils.TVReturnType<{
99
107
  };
100
108
  size: {
101
109
  sm: {
110
+ root: string;
102
111
  input: string;
103
112
  };
104
113
  md: {
114
+ root: string;
105
115
  input: string;
106
116
  };
107
117
  lg: {
118
+ root: string;
108
119
  input: string;
109
120
  };
110
121
  };
111
122
  isInvalid: {
112
123
  true: {
124
+ root: string;
113
125
  contentWrapper: string;
114
126
  label: string;
115
127
  };
package/dist/styles.mjs CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-4LKT64RP.mjs";export{a as inputVariants};
1
+ import{a}from"./chunk-I23VLZM2.mjs";export{a as inputVariants};
@@ -1,6 +1,6 @@
1
1
  import 'react';
2
2
  import '@jamsrui/utils';
3
- export { u as useInput } from './input-Ulbg7ZdJ.mjs';
3
+ export { u as useInput } from './input-B2ew93BT.mjs';
4
4
  import './input-clear-button.mjs';
5
5
  import './input-content.mjs';
6
6
  import './input-content-wrapper.mjs';
@@ -1 +1 @@
1
- import{a}from"./chunk-AYL2YJ7L.mjs";import"./chunk-4LKT64RP.mjs";export{a as useInput};
1
+ import{a}from"./chunk-3T5HYT35.mjs";import"./chunk-I23VLZM2.mjs";export{a as useInput};
package/package.json CHANGED
@@ -1,13 +1,16 @@
1
1
  {
2
2
  "name": "@jamsrui/input",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "peerDependencies": {
5
5
  "react": ">=19"
6
6
  },
7
7
  "dependencies": {
8
- "@jamsrui/hooks": "^0.0.11",
8
+ "@jamsrui/field-error": "^0.0.5",
9
+ "@jamsrui/label": "^0.0.5",
9
10
  "@jamsrui/core": "^0.0.10",
10
- "@jamsrui/utils": "^0.0.11"
11
+ "@jamsrui/utils": "^0.0.12",
12
+ "@jamsrui/description": "^0.0.5",
13
+ "@jamsrui/hooks": "^0.0.12"
11
14
  },
12
15
  "exports": {
13
16
  ".": {
@@ -1 +0,0 @@
1
- import{b as r}from"./chunk-D4PQ7L52.mjs";import{useRenderElement as o}from"@jamsrui/hooks";var u=t=>{let{getDescriptionProps:p,helperText:e}=r(),n=o("span",{props:[p(t),{children:e}]});return e?n:null};export{u as a};
@@ -1 +0,0 @@
1
- import{radiusVariant as t,tv as e}from"@jamsrui/utils";var o=e({slots:{root:"flex flex-col gap-1.5 group",label:"shrink-0 text-sm font-normal text-foreground",description:"text-xs text-foreground-tertiary",errorMessage:"text-xs text-danger",input:["grow bg-transparent font-normal","placeholder:text-foreground-secondary read-only:cursor-not-allowed focus:outline-none disabled:cursor-not-allowed disabled:opacity-50"],wrapper:"",content:"grow flex",contentWrapper:["border flex items-center border-divider","uig-disabled:cursor-not-allowed uig-disabled:opacity-60","not-uig-invalid:uig-focus:border-primary uig-focus:ring-primary","not-uig-invalid:uig-hover:border-divider-dark"],startContent:"pl-2 text-sm text-foreground-secondary",endContent:"pr-2 text-sm text-foreground-secondary",clearButton:""},variants:{fullWidth:{true:{root:"w-full"}},size:{sm:{input:"px-3 py-1.5 text-sm placeholder:text-sm"},md:{input:"px-3 py-2 text-sm placeholder:text-sm"},lg:{input:"px-3 py-2 text-base placeholder:text-base"}},isInvalid:{true:{contentWrapper:"border-danger",label:"text-danger"}},radius:t("contentWrapper")},defaultVariants:{fullWidth:!1,isInvalid:!1,radius:"md",size:"md"}});export{o as a};
@@ -1 +0,0 @@
1
- import{a as g}from"./chunk-AYL2YJ7L.mjs";import{a as i}from"./chunk-EAUBBKY5.mjs";import{a as f}from"./chunk-U25JGUU3.mjs";import{a as s}from"./chunk-CSQOTAPR.mjs";import{a}from"./chunk-IJYNHO5F.mjs";import{a as C}from"./chunk-LCBLRGH5.mjs";import{a as c}from"./chunk-QA6KD5QS.mjs";import{b as r}from"./chunk-ZNAJDFMD.mjs";import{a as m}from"./chunk-M46PIXLU.mjs";import{a as e}from"./chunk-VU73JURM.mjs";import{a as u}from"./chunk-3Z56DQ4V.mjs";import{a as I}from"./chunk-JZ5MUM6R.mjs";import{a as n}from"./chunk-D4PQ7L52.mjs";import{mergeConfigProps as W}from"@jamsrui/utils";import{jsx as t,jsxs as o}from"react/jsx-runtime";var y=x=>{let p=r(),P=W(p,p,x),d=g(P);return t(n,{value:d,children:o(a,{children:[o(c,{children:[t(s,{}),o(m,{children:[t(C,{}),t(e,{children:t(f,{})}),t(I,{})]})]}),t(u,{}),t(i,{})]})})};export{y as a};
@@ -1 +0,0 @@
1
- import{a as u}from"./chunk-4LKT64RP.mjs";import{useCallback as o,useMemo as J}from"react";import{useControlledState as Q,useFocus as X,useFocusVisible as Y,useHover as Z,useIsDisabled as _,useMergeRefs as tt}from"@jamsrui/hooks";import{cn as r,dataAttrDev as a,mapPropsVariants as et,mergeProps as p}from"@jamsrui/utils";var ct=F=>{let[x,m]=et(F,u.variantKeys),{startContent:d,endContent:P,classNames:s,label:C,isClearable:st,isDisabled:U=!1,isReadonly:nt,description:I,errorMessage:N,value:j,defaultValue:k,onValueChange:A,onClearInput:f,ref:K,slotProps:e,...g}=x,[b="",c]=Q({defaultProp:k,onChange:A,prop:j}),n=u(m),i=m.isInvalid,{isDisabled:l,ref:O}=_({isDisabled:U,isFormControl:!1}),{isFocused:M,ref:$}=X({isDisabled:l}),{isFocusVisible:v,ref:q}=Y({isDisabled:l}),{isHovered:R,ref:z}=Z({isDisabled:l}),y=tt([K,O,$,q,z]),ot=o(t=>{f?.(t),c("")},[f,c]),E=o(t=>{c(t.target.value)},[c]),W=o(t=>({...p(e?.root,t),"data-component":a("input"),"data-slot":a("root"),"data-focused":M,"data-focus-visible":v,"data-hovered":R,"data-disabled":l,"aria-disabled":l,"data-invalid":i,className:n.root({className:r(e?.root?.className,s?.root,t.className)})}),[s?.root,l,v,M,R,i,e?.root,n]),B=o(t=>({...g,...t,ref:y,disabled:l,"data-slot":a("input"),className:n.input({className:r(s?.input,t.className)}),value:b,onChange:E}),[s?.input,g,E,y,l,n,b]),D=o(t=>({...p(e?.wrapper,t),"data-slot":a("inputWrapper"),className:n.wrapper({className:r(e?.wrapper?.className,s?.wrapper,t.className)})}),[s?.wrapper,e?.wrapper,n]),G=o(t=>({...p(e?.content,t),"data-slot":a("content"),className:n.content({className:r(e?.content?.className,s?.content,t.className)})}),[s?.content,e?.content,n]),V=o(t=>({...p(e?.contentWrapper,t),"data-slot":a("contentWrapper"),className:n.contentWrapper({className:r(e?.contentWrapper?.className,s?.contentWrapper,t.className)})}),[s?.contentWrapper,e?.contentWrapper,n]),h=o(t=>({...p(e?.startContent,t),"data-slot":a("startContent"),className:n.startContent({className:r(e?.startContent?.className,s?.startContent,t.className)})}),[s?.startContent,e?.startContent,n]),L=o(t=>({...p(e?.endContent,t),"data-slot":a("endContent"),className:n.endContent({className:r(e?.endContent?.className,s?.endContent,t.className)})}),[s?.endContent,e?.endContent,n]),T=o(t=>({...p(e?.description,t),"data-slot":a("description"),className:n.description({className:r(e?.description?.className,s?.description,t.className)})}),[s?.description,e?.description,n]),w=o(t=>({...p(e?.errorMessage,t),"data-slot":a("errorMessage"),className:n.errorMessage({className:r(e?.errorMessage?.className,s?.errorMessage,t.className)})}),[s?.errorMessage,e?.errorMessage,n]),H=o(t=>({...p(e?.clearButton,t),"data-slot":a("clearButton"),className:n.clearButton({className:r(e?.clearButton?.className,s?.clearButton,t.className)})}),[s?.clearButton,e?.clearButton,n]),S=o(t=>({...p(e?.label,t),"data-slot":a("label"),className:n.label({className:r(e?.label?.className,s?.label,t.className)})}),[s?.label,e?.label,n]);return J(()=>({getRootProps:W,getClearButtonProps:H,getStartContentProps:h,getEndContentProps:L,getInputProps:B,getLabelProps:S,getDescriptionProps:T,getErrorMessageProps:w,label:C,helperText:I,errorMessage:N,isInvalid:i,getWrapperProps:D,getContentProps:G,getContentWrapperProps:V,startContent:d,endContent:P}),[W,H,h,L,B,S,T,w,C,I,N,i,D,G,V,d,P])};export{ct as a};
@@ -1 +0,0 @@
1
- import{b as r}from"./chunk-D4PQ7L52.mjs";import{useRenderElement as p}from"@jamsrui/hooks";var a=t=>{let{getLabelProps:n,label:e}=r(),o=p("label",{props:[n(t),{children:e}]});return e?o:null};export{a};
@@ -1 +0,0 @@
1
- import{b as e}from"./chunk-D4PQ7L52.mjs";import{useRenderElement as n}from"@jamsrui/hooks";var u=s=>{let{getErrorMessageProps:o,errorMessage:r}=e(),t=n("span",{props:[o(s),{children:r}]});return r?t:null};export{u as a};